svf-lib 1.0.2217 → 1.0.2219

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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -71,10 +71,6 @@ public:
71
71
  SVFArg,
72
72
  SVFConst,
73
73
  SVFConstData,
74
- SVFConstInt,
75
- SVFConstFP,
76
- SVFNullPtr,
77
- SVFBlackHole,
78
74
  SVFMetaAsValue,
79
75
  SVFOther
80
76
  };
@@ -138,14 +134,6 @@ public:
138
134
  {
139
135
  return ptrInUncalledFun;
140
136
  }
141
- inline bool isblackHole() const
142
- {
143
- return getKind() == SVFBlackHole;;
144
- }
145
- inline bool isNullPtr() const
146
- {
147
- return getKind() == SVFNullPtr;
148
- }
149
137
  inline virtual void setSourceLoc(const std::string& sourceCodeInfo)
150
138
  {
151
139
  sourceLoc = sourceCodeInfo;
@@ -526,11 +514,7 @@ public:
526
514
  {
527
515
  return node->getKind() == SVFConst ||
528
516
  node->getKind() == SVFGlob ||
529
- node->getKind() == SVFConstData ||
530
- node->getKind() == SVFConstInt ||
531
- node->getKind() == SVFConstFP ||
532
- node->getKind() == SVFNullPtr ||
533
- node->getKind() == SVFBlackHole;
517
+ node->getKind() == SVFConstData;
534
518
  }
535
519
 
536
520
  };
@@ -629,124 +613,11 @@ public:
629
613
 
630
614
  static inline bool classof(const SVFLLVMValue *node)
631
615
  {
632
- return node->getKind() == SVFConstData ||
633
- node->getKind() == SVFConstInt ||
634
- node->getKind() == SVFConstFP ||
635
- node->getKind() == SVFNullPtr ||
636
- node->getKind() == SVFBlackHole;
637
- }
638
- static inline bool classof(const SVFConstantData *node)
639
- {
640
- return node->getKind() == SVFConstData ||
641
- node->getKind() == SVFConstInt ||
642
- node->getKind() == SVFConstFP ||
643
- node->getKind() == SVFNullPtr ||
644
- node->getKind() == SVFBlackHole;
645
- }
646
- };
647
-
648
- class SVFConstantInt : public SVFConstantData
649
- {
650
- friend class SVFIRWriter;
651
- friend class SVFIRReader;
652
- private:
653
- u64_t zval;
654
- s64_t sval;
655
- public:
656
- SVFConstantInt(const SVFType* ty, u64_t z, s64_t s)
657
- : SVFConstantData(ty, SVFLLVMValue::SVFConstInt), zval(z), sval(s)
658
- {
659
- }
660
- SVFConstantInt() = delete;
661
-
662
- static inline bool classof(const SVFLLVMValue *node)
663
- {
664
- return node->getKind() == SVFConstInt;
665
- }
666
- static inline bool classof(const SVFConstantData *node)
667
- {
668
- return node->getKind() == SVFConstInt;
669
- }
670
- // Return the constant as a 64-bit unsigned integer value after it has been zero extended as appropriate for the type of this constant.
671
- inline u64_t getZExtValue () const
672
- {
673
- return zval;
674
- }
675
- // Return the constant as a 64-bit integer value after it has been sign extended as appropriate for the type of this constant
676
- inline s64_t getSExtValue () const
677
- {
678
- return sval;
679
- }
680
- };
681
-
682
- class SVFConstantFP : public SVFConstantData
683
- {
684
- friend class SVFIRWriter;
685
- friend class SVFIRReader;
686
- private:
687
- float dval;
688
- public:
689
- SVFConstantFP(const SVFType* ty, double d)
690
- : SVFConstantData(ty, SVFLLVMValue::SVFConstFP), dval(d)
691
- {
692
- }
693
- SVFConstantFP() = delete;
694
-
695
- inline double getFPValue () const
696
- {
697
- return dval;
698
- }
699
- static inline bool classof(const SVFLLVMValue *node)
700
- {
701
- return node->getKind() == SVFConstFP;
702
- }
703
- static inline bool classof(const SVFConstantData *node)
704
- {
705
- return node->getKind() == SVFConstFP;
706
- }
707
- };
708
-
709
- class SVFConstantNullPtr : public SVFConstantData
710
- {
711
- friend class SVFIRWriter;
712
- friend class SVFIRReader;
713
-
714
- public:
715
- SVFConstantNullPtr(const SVFType* ty)
716
- : SVFConstantData(ty, SVFLLVMValue::SVFNullPtr)
717
- {
718
- }
719
- SVFConstantNullPtr() = delete;
720
-
721
- static inline bool classof(const SVFLLVMValue *node)
722
- {
723
- return node->getKind() == SVFNullPtr;
724
- }
725
- static inline bool classof(const SVFConstantData *node)
726
- {
727
- return node->getKind() == SVFNullPtr;
728
- }
729
- };
730
-
731
- class SVFBlackHoleValue : public SVFConstantData
732
- {
733
- friend class SVFIRWriter;
734
- friend class SVFIRReader;
735
-
736
- public:
737
- SVFBlackHoleValue(const SVFType* ty)
738
- : SVFConstantData(ty, SVFLLVMValue::SVFBlackHole)
739
- {
740
- }
741
- SVFBlackHoleValue() = delete;
742
-
743
- static inline bool classof(const SVFLLVMValue *node)
744
- {
745
- return node->getKind() == SVFBlackHole;
616
+ return node->getKind() == SVFConstData;
746
617
  }
747
618
  static inline bool classof(const SVFConstantData *node)
748
619
  {
749
- return node->getKind() == SVFBlackHole;
620
+ return node->getKind() == SVFConstData;
750
621
  }
751
622
  };
752
623
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2217",
3
+ "version": "1.0.2219",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {