svf-lib 1.0.782 → 1.0.783

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -409,7 +409,7 @@ public:
409
409
  {
410
410
  const MemObj* obj = getObject(id);
411
411
  assert(obj && "not an object node?");
412
- return SymbolTableInfo::isConstantObj(id) || obj->isConstant();
412
+ return SymbolTableInfo::isConstantObj(id) || obj->isConstDataOrConstGlobal();
413
413
  }
414
414
  inline bool isNonPointerObj(NodeID id) const
415
415
  {
@@ -479,9 +479,10 @@ public:
479
479
  bool isArray() const;
480
480
  bool isVarStruct() const;
481
481
  bool isVarArray() const;
482
- bool isConstStruct() const;
483
- bool isConstArray() const;
484
- bool isConstant() const;
482
+ bool isConstantStruct() const;
483
+ bool isConstantArray() const;
484
+ bool isConstDataOrConstGlobal() const;
485
+ bool isConstantData() const;
485
486
  bool hasPtrObj() const;
486
487
  bool isNonPtrFieldObj(const LocationSet& ls) const;
487
488
  //@}
@@ -591,8 +592,9 @@ public:
591
592
  VAR_ARRAY_OBJ = 0x40, // object contains array
592
593
  CONST_STRUCT_OBJ = 0x80, // constant struct
593
594
  CONST_ARRAY_OBJ = 0x100, // constant array
594
- CONST_OBJ = 0x200, // constant object str e.g.
595
- HASPTR_OBJ = 0x400 // non pointer object including compound type have field that is a pointer type
595
+ CONST_GLOBAL_OBJ = 0x200, // global constant object
596
+ CONST_DATA = 0x400, // constant object str e.g. 5, 10, 1.0
597
+ HASPTR_OBJ = 0x800 // the object stores a pointer address
596
598
  } MEMTYPE;
597
599
 
598
600
  private:
@@ -689,7 +691,7 @@ public:
689
691
  {
690
692
  return hasFlag(VAR_STRUCT_OBJ);
691
693
  }
692
- inline bool isConstStruct()
694
+ inline bool isConstantStruct()
693
695
  {
694
696
  return hasFlag(CONST_STRUCT_OBJ);
695
697
  }
@@ -701,7 +703,7 @@ public:
701
703
  {
702
704
  return hasFlag(VAR_ARRAY_OBJ);
703
705
  }
704
- inline bool isConstArray()
706
+ inline bool isConstantArray()
705
707
  {
706
708
  return hasFlag(CONST_ARRAY_OBJ);
707
709
  }
@@ -709,9 +711,13 @@ public:
709
711
  {
710
712
  return hasFlag(VAR_ARRAY_OBJ) || hasFlag(CONST_ARRAY_OBJ);
711
713
  }
712
- inline bool isConstant()
714
+ inline bool isConstDataOrConstGlobal()
713
715
  {
714
- return hasFlag(CONST_OBJ);
716
+ return hasFlag(CONST_GLOBAL_OBJ) || hasFlag(CONST_DATA);
717
+ }
718
+ inline bool isConstantData()
719
+ {
720
+ return hasFlag(CONST_DATA);
715
721
  }
716
722
  inline bool hasPtrObj()
717
723
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.782",
3
+ "version": "1.0.783",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {