svf-lib 1.0.1087 → 1.0.1090

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.
@@ -57,6 +57,20 @@ public:
57
57
  DPItem(const DPItem& dps) : cur(dps.cur)
58
58
  {
59
59
  }
60
+ /// Move constructor
61
+ DPItem(DPItem&& dps) noexcept : cur(dps.cur)
62
+ {
63
+
64
+ }
65
+ /// Move operator=
66
+ DPItem &operator=(DPItem &&rhs) noexcept
67
+ {
68
+ if (this != &rhs)
69
+ {
70
+ cur = rhs.cur;
71
+ }
72
+ return *this;
73
+ }
60
74
  /// Destructor
61
75
  virtual ~DPItem()
62
76
  {
@@ -202,6 +216,18 @@ public:
202
216
  ContextCond(const ContextCond& cond): context(cond.getContexts()), concreteCxt(cond.isConcreteCxt())
203
217
  {
204
218
  }
219
+ /// Move Constructor
220
+ ContextCond(ContextCond &&cond) noexcept: context(std::move(cond.context)), concreteCxt(cond.concreteCxt) {}
221
+ /// Move operator=
222
+ ContextCond& operator=(ContextCond&&cond) noexcept
223
+ {
224
+ if(this!=&cond)
225
+ {
226
+ context = std::move(cond.context);
227
+ concreteCxt = cond.concreteCxt;
228
+ }
229
+ return *this;
230
+ }
205
231
  /// Destructor
206
232
  virtual ~ContextCond()
207
233
  {
@@ -467,6 +493,20 @@ public:
467
493
  DPItem(dps.getCurNodeID()), context(dps.context)
468
494
  {
469
495
  }
496
+ /// Move constructor
497
+ CxtDPItem(CxtDPItem &&dps) noexcept: DPItem(dps), context(std::move(dps.context))
498
+ {
499
+ }
500
+ /// Move operator=
501
+ CxtDPItem &operator=(CxtDPItem &&dps) noexcept
502
+ {
503
+ if (this != &dps)
504
+ {
505
+ DPItem::operator=(dps);
506
+ context = std::move(dps.context);
507
+ }
508
+ return *this;
509
+ }
470
510
  /// Destructor
471
511
  virtual ~CxtDPItem()
472
512
  {
@@ -724,6 +724,12 @@ inline bool isProgExitCall(const Instruction *inst)
724
724
  return isProgExitFunction(getCallee(inst));
725
725
  }
726
726
 
727
+ template<typename T>
728
+ constexpr typename std::remove_reference<T>::type &&
729
+ move(T &t) noexcept
730
+ {
731
+ return std::move(t);
732
+ }
727
733
 
728
734
  } // End namespace SVFUtil
729
735
 
Binary file
@@ -57,6 +57,20 @@ public:
57
57
  DPItem(const DPItem& dps) : cur(dps.cur)
58
58
  {
59
59
  }
60
+ /// Move constructor
61
+ DPItem(DPItem&& dps) noexcept : cur(dps.cur)
62
+ {
63
+
64
+ }
65
+ /// Move operator=
66
+ DPItem &operator=(DPItem &&rhs) noexcept
67
+ {
68
+ if (this != &rhs)
69
+ {
70
+ cur = rhs.cur;
71
+ }
72
+ return *this;
73
+ }
60
74
  /// Destructor
61
75
  virtual ~DPItem()
62
76
  {
@@ -202,6 +216,18 @@ public:
202
216
  ContextCond(const ContextCond& cond): context(cond.getContexts()), concreteCxt(cond.isConcreteCxt())
203
217
  {
204
218
  }
219
+ /// Move Constructor
220
+ ContextCond(ContextCond &&cond) noexcept: context(std::move(cond.context)), concreteCxt(cond.concreteCxt) {}
221
+ /// Move operator=
222
+ ContextCond& operator=(ContextCond&&cond) noexcept
223
+ {
224
+ if(this!=&cond)
225
+ {
226
+ context = std::move(cond.context);
227
+ concreteCxt = cond.concreteCxt;
228
+ }
229
+ return *this;
230
+ }
205
231
  /// Destructor
206
232
  virtual ~ContextCond()
207
233
  {
@@ -467,6 +493,20 @@ public:
467
493
  DPItem(dps.getCurNodeID()), context(dps.context)
468
494
  {
469
495
  }
496
+ /// Move constructor
497
+ CxtDPItem(CxtDPItem &&dps) noexcept: DPItem(dps), context(std::move(dps.context))
498
+ {
499
+ }
500
+ /// Move operator=
501
+ CxtDPItem &operator=(CxtDPItem &&dps) noexcept
502
+ {
503
+ if (this != &dps)
504
+ {
505
+ DPItem::operator=(dps);
506
+ context = std::move(dps.context);
507
+ }
508
+ return *this;
509
+ }
470
510
  /// Destructor
471
511
  virtual ~CxtDPItem()
472
512
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1087",
3
+ "version": "1.0.1090",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {