svf-lib 1.0.1618 → 1.0.1619

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.
Files changed (93) hide show
  1. package/SVF-osx/Release-build/svf/libSvfCore.a +0 -0
  2. package/SVF-osx/Release-build/svf-llvm/libSvfLLVM.a +0 -0
  3. package/SVF-osx/svf/include/AbstractExecution/BoundedZ3Expr.h +0 -3
  4. package/SVF-osx/svf/include/AbstractExecution/ConsExeState.h +0 -8
  5. package/SVF-osx/svf/include/AbstractExecution/ExeState.h +0 -4
  6. package/SVF-osx/svf/include/AbstractExecution/IntervalExeState.h +0 -6
  7. package/SVF-osx/svf/include/AbstractExecution/IntervalValue.h +0 -3
  8. package/SVF-osx/svf/include/AbstractExecution/NumericLiteral.h +0 -2
  9. package/SVF-osx/svf/include/AbstractExecution/RelExeState.h +0 -1
  10. package/SVF-osx/svf/include/AbstractExecution/SingleAbsValue.h +0 -2
  11. package/SVF-osx/svf/include/AbstractExecution/SymState.h +0 -4
  12. package/SVF-osx/svf/include/AbstractExecution/WTO.h +0 -5
  13. package/SVF-osx/svf/include/CFL/CFGrammar.h +0 -4
  14. package/SVF-osx/svf/include/CFL/CFLAlias.h +0 -1
  15. package/SVF-osx/svf/include/CFL/CFLGraphBuilder.h +0 -1
  16. package/SVF-osx/svf/include/CFL/CFLStat.h +0 -1
  17. package/SVF-osx/svf/include/CFL/CFLVF.h +0 -1
  18. package/SVF-osx/svf/include/DDA/ContextDDA.h +0 -1
  19. package/SVF-osx/svf/include/DDA/DDAClient.h +0 -5
  20. package/SVF-osx/svf/include/DDA/DDAPass.h +0 -1
  21. package/SVF-osx/svf/include/FastCluster/fastcluster.h +0 -1
  22. package/SVF-osx/svf/include/Graphs/CFBasicBlockG.h +0 -2
  23. package/SVF-osx/svf/include/Graphs/CFLGraph.h +0 -1
  24. package/SVF-osx/svf/include/Graphs/CHG.h +0 -2
  25. package/SVF-osx/svf/include/Graphs/ConsGEdge.h +0 -5
  26. package/SVF-osx/svf/include/Graphs/ConsGNode.h +0 -1
  27. package/SVF-osx/svf/include/Graphs/DOTGraphTraits.h +0 -1
  28. package/SVF-osx/svf/include/Graphs/GenericGraph.h +0 -1
  29. package/SVF-osx/svf/include/Graphs/GraphPrinter.h +0 -3
  30. package/SVF-osx/svf/include/Graphs/ICFG.h +0 -1
  31. package/SVF-osx/svf/include/Graphs/ICFGNode.h +0 -3
  32. package/SVF-osx/svf/include/Graphs/ICFGStat.h +0 -2
  33. package/SVF-osx/svf/include/Graphs/IRGraph.h +0 -1
  34. package/SVF-osx/svf/include/Graphs/PTACallGraph.h +0 -3
  35. package/SVF-osx/svf/include/Graphs/SVFG.h +0 -2
  36. package/SVF-osx/svf/include/Graphs/SVFGEdge.h +0 -1
  37. package/SVF-osx/svf/include/Graphs/SVFGNode.h +0 -7
  38. package/SVF-osx/svf/include/Graphs/SVFGOPT.h +0 -3
  39. package/SVF-osx/svf/include/Graphs/SVFGStat.h +0 -2
  40. package/SVF-osx/svf/include/Graphs/ThreadCallGraph.h +0 -3
  41. package/SVF-osx/svf/include/Graphs/VFG.h +0 -2
  42. package/SVF-osx/svf/include/Graphs/VFGEdge.h +0 -3
  43. package/SVF-osx/svf/include/Graphs/VFGNode.h +0 -8
  44. package/SVF-osx/svf/include/MSSA/MSSAMuChi.h +0 -4
  45. package/SVF-osx/svf/include/MSSA/MemPartition.h +0 -1
  46. package/SVF-osx/svf/include/MSSA/MemRegion.h +0 -1
  47. package/SVF-osx/svf/include/MSSA/MemSSA.h +0 -1
  48. package/SVF-osx/svf/include/MTA/FSMPTA.h +0 -6
  49. package/SVF-osx/svf/include/MTA/LockAnalysis.h +0 -5
  50. package/SVF-osx/svf/include/MTA/MHP.h +0 -3
  51. package/SVF-osx/svf/include/MTA/MTA.h +0 -1
  52. package/SVF-osx/svf/include/MTA/MTAResultValidator.h +0 -2
  53. package/SVF-osx/svf/include/MTA/TCT.h +0 -1
  54. package/SVF-osx/svf/include/MemoryModel/AbstractPointsToDS.h +0 -2
  55. package/SVF-osx/svf/include/MemoryModel/AccessPath.h +0 -5
  56. package/SVF-osx/svf/include/MemoryModel/ConditionalPT.h +0 -5
  57. package/SVF-osx/svf/include/MemoryModel/PersistentPointsToDS.h +0 -1
  58. package/SVF-osx/svf/include/MemoryModel/PointerAnalysis.h +0 -1
  59. package/SVF-osx/svf/include/MemoryModel/PointerAnalysisImpl.h +0 -1
  60. package/SVF-osx/svf/include/MemoryModel/PointsTo.h +0 -1
  61. package/SVF-osx/svf/include/SABER/DoubleFreeChecker.h +0 -1
  62. package/SVF-osx/svf/include/SABER/SaberCondAllocator.h +0 -4
  63. package/SVF-osx/svf/include/SVFIR/SVFIR.h +0 -2
  64. package/SVF-osx/svf/include/SVFIR/SVFStatements.h +0 -2
  65. package/SVF-osx/svf/include/SVFIR/SVFValue.h +0 -2
  66. package/SVF-osx/svf/include/SVFIR/SVFVariables.h +0 -5
  67. package/SVF-osx/svf/include/SVFIR/SymbolTableInfo.h +0 -4
  68. package/SVF-osx/svf/include/Util/CallGraphBuilder.h +0 -2
  69. package/SVF-osx/svf/include/Util/Casting.h +0 -1
  70. package/SVF-osx/svf/include/Util/CommandLine.h +0 -1
  71. package/SVF-osx/svf/include/Util/CxtStmt.h +0 -4
  72. package/SVF-osx/svf/include/Util/DPItem.h +0 -2
  73. package/SVF-osx/svf/include/Util/ExtAPI.json +20 -0
  74. package/SVF-osx/svf/include/Util/SCC.h +0 -2
  75. package/SVF-osx/svf/include/Util/SVFBugReport.h +0 -1
  76. package/SVF-osx/svf/include/Util/SVFStat.h +0 -1
  77. package/SVF-osx/svf/include/Util/SVFUtil.h +1 -2
  78. package/SVF-osx/svf/include/Util/SparseBitVector.h +1 -1
  79. package/SVF-osx/svf/include/Util/ThreadAPI.h +0 -1
  80. package/SVF-osx/svf/include/Util/WorkList.h +0 -1
  81. package/SVF-osx/svf/include/Util/Z3Expr.h +0 -4
  82. package/SVF-osx/svf/include/WPA/Andersen.h +0 -6
  83. package/SVF-osx/svf/include/WPA/AndersenPWC.h +0 -3
  84. package/SVF-osx/svf/include/WPA/WPAFSSolver.h +0 -5
  85. package/SVF-osx/svf/include/WPA/WPAPass.h +0 -2
  86. package/SVF-osx/svf/include/WPA/WPASolver.h +0 -2
  87. package/SVF-osx/svf/include/WPA/WPAStat.h +0 -1
  88. package/SVF-osx/svf-llvm/include/SVF-LLVM/BreakConstantExpr.h +0 -1
  89. package/SVF-osx/svf-llvm/include/SVF-LLVM/DCHG.h +0 -1
  90. package/SVF-osx/svf-llvm/include/SVF-LLVM/GEPTypeBridgeIterator.h +0 -3
  91. package/SVF-osx/svf-llvm/include/SVF-LLVM/LLVMModule.h +0 -1
  92. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVFIRBuilder.h +0 -1
  93. package/package.json +1 -1
@@ -55,7 +55,6 @@ public:
55
55
 
56
56
  BoundedZ3Expr(const BoundedZ3Expr &z3Expr) : Z3Expr(z3Expr) {}
57
57
 
58
-
59
58
  inline BoundedZ3Expr &operator=(const BoundedZ3Expr &rhs)
60
59
  {
61
60
  Z3Expr::operator=(rhs);
@@ -64,7 +63,6 @@ public:
64
63
 
65
64
  BoundedZ3Expr(BoundedZ3Expr &&z3Expr) : Z3Expr(z3Expr) {}
66
65
 
67
-
68
66
  inline BoundedZ3Expr &operator=(BoundedZ3Expr &&rhs)
69
67
  {
70
68
  Z3Expr::operator=(rhs);
@@ -389,4 +387,3 @@ struct std::hash<SVF::BoundedZ3Expr>
389
387
  }
390
388
  };
391
389
  #endif //SVF_BOUNDEDZ3EXPR_H
392
-
@@ -61,7 +61,6 @@ protected:
61
61
  public:
62
62
  ConsExeState(): ExeState(ExeState::SingleValueK) {}
63
63
 
64
-
65
64
  /// Constructor
66
65
  ConsExeState(VarToValMap varToValMap, LocToValMap locToValMap) : ExeState(ExeState::SingleValueK), _varToVal(
67
66
  SVFUtil::move(varToValMap)), _locToVal(SVFUtil::move(locToValMap)) {}
@@ -346,12 +345,10 @@ public:
346
345
  return _locToVal;
347
346
  }
348
347
 
349
-
350
348
  s64_t getNumber(u32_t lhs);
351
349
 
352
350
  public:
353
351
 
354
-
355
352
  static inline SingleAbsValue getIntOneZ3Expr()
356
353
  {
357
354
  return getContext().int_val(1);
@@ -404,14 +401,11 @@ public:
404
401
  /// Whether two var to value map is equivalent
405
402
  static bool eqVarToValMap(const VarToValMap &pre, const VarToValMap &nxt);
406
403
 
407
-
408
404
  /// Whether lhs is less than rhs
409
405
  static bool lessThanVarToValMap(const VarToValMap &lhs, const VarToValMap &rhs);
410
406
 
411
-
412
407
  private:
413
408
 
414
-
415
409
  static bool assign(SingleAbsValue &lhs, const SingleAbsValue &rhs);
416
410
 
417
411
  inline bool store(u32_t objId, const SingleAbsValue &z3Expr)
@@ -441,6 +435,4 @@ struct std::hash<SVF::ConsExeState>
441
435
  }
442
436
  };
443
437
 
444
-
445
-
446
438
  #endif // SVF_CONSEXESTATE_H
@@ -27,7 +27,6 @@
27
27
  *
28
28
  */
29
29
 
30
-
31
30
  #ifndef Z3_EXAMPLE_EXESTATE_H
32
31
  #define Z3_EXAMPLE_EXESTATE_H
33
32
 
@@ -272,11 +271,8 @@ public:
272
271
  return AddressValue::getInternalID(idx);
273
272
  }
274
273
 
275
-
276
274
  }; // end class ExeState
277
275
 
278
-
279
-
280
276
  } // end namespace SVF
281
277
 
282
278
  template<>
@@ -69,7 +69,6 @@ protected:
69
69
  /// key: nodeID value: Domain Value
70
70
  LocToValMap _locToItvVal;
71
71
 
72
-
73
72
  public:
74
73
  /// default constructor, default pc is true
75
74
  IntervalExeState() : ExeState(ExeState::IntervalK) {}
@@ -198,7 +197,6 @@ public:
198
197
 
199
198
  virtual ~IntervalExeState() = default;
200
199
 
201
-
202
200
  /// get var2val map
203
201
  const VarToValMap &getVarToVal() const
204
202
  {
@@ -256,7 +254,6 @@ public:
256
254
  /// domain meet with other varToValMap
257
255
  void meetWith(VarToValMap *other);
258
256
 
259
-
260
257
  /// Return int value from an expression if it is a numeral, otherwise return an approximate value
261
258
  inline s32_t Interval2NumValue(const IntervalValue &e) const
262
259
  {
@@ -390,7 +387,6 @@ public:
390
387
  return true;
391
388
  }
392
389
 
393
-
394
390
  static bool lessThanVarToValMap(const VarToValMap &lhs, const VarToValMap &rhs)
395
391
  {
396
392
  if (lhs.empty()) return !rhs.empty();
@@ -434,7 +430,6 @@ public:
434
430
  return !(*this >= rhs);
435
431
  }
436
432
 
437
-
438
433
  bool operator>=(const IntervalExeState &rhs) const
439
434
  {
440
435
  return geqVarToValMap(_varToItvVal, rhs.getVarToVal()) && geqVarToValMap(_locToItvVal, rhs.getLocToVal());
@@ -448,7 +443,6 @@ public:
448
443
  _varToVAddrs.clear();
449
444
  }
450
445
 
451
-
452
446
  private:
453
447
  void printTable(const VarToValMap &table, std::ostream &oss) const;
454
448
 
@@ -27,7 +27,6 @@
27
27
  *
28
28
  */
29
29
 
30
-
31
30
  #ifndef Z3_EXAMPLE_IntervalValue_H
32
31
  #define Z3_EXAMPLE_IntervalValue_H
33
32
 
@@ -321,7 +320,6 @@ public:
321
320
  }
322
321
  }
323
322
 
324
-
325
323
  /// Equality comparison
326
324
  bool equals(const IntervalValue &other) const
327
325
  {
@@ -653,7 +651,6 @@ inline IntervalValue operator<(const IntervalValue &lhs, const IntervalValue &rh
653
651
  }
654
652
  }
655
653
 
656
-
657
654
  /// Greater than IntervalValues
658
655
  inline IntervalValue operator>=(const IntervalValue &lhs, const IntervalValue &rhs)
659
656
  {
@@ -174,7 +174,6 @@ public:
174
174
  return _n.geq(rhs._n).simplify().is_true();
175
175
  }
176
176
 
177
-
178
177
  /// Reload operator
179
178
  //{%
180
179
  friend NumericLiteral operator==(const NumericLiteral &lhs, const NumericLiteral &rhs)
@@ -434,7 +433,6 @@ public:
434
433
 
435
434
  //%}
436
435
 
437
-
438
436
  }; // end class NumericLiteral
439
437
  } // end namespace SVF
440
438
  #endif //Z3_EXAMPLE_Number_H
@@ -91,7 +91,6 @@ public:
91
91
  /// Overloading Operator==
92
92
  bool operator<(const RelExeState &rhs) const;
93
93
 
94
-
95
94
  static z3::context &getContext()
96
95
  {
97
96
  return Z3Expr::getContext();
@@ -135,7 +135,6 @@ public:
135
135
  return (getExpr() >= rhs.getExpr()).simplify().is_true();
136
136
  }
137
137
 
138
-
139
138
  /// Reload operator
140
139
  //{%
141
140
  friend SingleAbsValue operator==(const SingleAbsValue &lhs, const SingleAbsValue &rhs)
@@ -473,5 +472,4 @@ struct std::hash<SVF::SingleAbsValue>
473
472
  }
474
473
  };
475
474
 
476
-
477
475
  #endif //SVF_SINGLEABSVALUE_H
@@ -83,7 +83,6 @@ public:
83
83
  return *this;
84
84
  }
85
85
 
86
-
87
86
  /// Move Constructor
88
87
  SymState(SymState &&rhs) noexcept: _exeState(SVFUtil::move(rhs._exeState)),
89
88
  _typeState(SVFUtil::move(rhs._typeState)),
@@ -111,7 +110,6 @@ public:
111
110
  return _keyNodesSet;
112
111
  }
113
112
 
114
-
115
113
  void insertKeyNode(NodeID id)
116
114
  {
117
115
  if (_keyNodesSet.empty())
@@ -203,8 +201,6 @@ public:
203
201
 
204
202
  } // end namespace SVF
205
203
 
206
-
207
-
208
204
  /// Specialise hash for SymState
209
205
  template<>
210
206
  struct std::hash<SVF::SymState>
@@ -39,7 +39,6 @@
39
39
  #include "SVFIR/SVFValue.h"
40
40
  #include "Graphs/CFBasicBlockG.h"
41
41
 
42
-
43
42
  namespace SVF
44
43
  {
45
44
 
@@ -333,7 +332,6 @@ private:
333
332
 
334
333
  }; // end class CFBasicBlockGWTOComp
335
334
 
336
-
337
335
  /*!
338
336
  * WTO node for CFBasicBlockG
339
337
  */
@@ -379,7 +377,6 @@ public:
379
377
 
380
378
  }; // end class CFBasicBlockGWTONode
381
379
 
382
-
383
380
  /*!
384
381
  * WTO cycle for CFBasicBlockG
385
382
  */
@@ -457,7 +454,6 @@ public:
457
454
 
458
455
  }; // end class CFBasicBlockGWTOCycle
459
456
 
460
-
461
457
  /*!
462
458
  * Weak topological order for CFBasicBlockG
463
459
  */
@@ -549,7 +545,6 @@ public:
549
545
  return it->second;
550
546
  }
551
547
 
552
-
553
548
  /// Get the wto-cycle-depth of the given node
554
549
  const CFBasicBlockGWTOCycleDepth &getWTOCycleDepth(const CFBasicBlockNode *n) const
555
550
  {
@@ -127,7 +127,6 @@ public:
127
127
  }
128
128
  };
129
129
 
130
-
131
130
  struct SymbolVectorHash
132
131
  {
133
132
  size_t operator()(const std::vector<Symbol> &v) const
@@ -156,7 +155,6 @@ public:
156
155
  typedef std::vector<Symbol> Production;
157
156
  typedef SymbolSet<Production> Productions;
158
157
 
159
-
160
158
  inline Map<std::string, Kind>& getNonterminals()
161
159
  {
162
160
  return this->nonterminals;
@@ -364,7 +362,6 @@ public:
364
362
  return it->second;
365
363
  }
366
364
 
367
-
368
365
  const Symbol& getLHSSymbol(const Production& prod) const
369
366
  {
370
367
  return prod.at(0);
@@ -384,7 +381,6 @@ public:
384
381
 
385
382
  void dump(std::string fileName) const;
386
383
 
387
-
388
384
  const inline u32_t num_generator()
389
385
  {
390
386
  return newTerminalSubscript++;
@@ -54,7 +54,6 @@ public:
54
54
  /// Initialize Solver
55
55
  virtual void initializeSolver();
56
56
 
57
-
58
57
  /// Print grammar and graph
59
58
  virtual void finalize();
60
59
 
@@ -160,7 +160,6 @@ private:
160
160
  void addBiGepCFLEdge(CFLGraph *cflGraph, ConstraintNode* src, ConstraintNode* dst, CFGrammar::Attribute attri);
161
161
  };
162
162
 
163
-
164
163
  }// SVF
165
164
 
166
165
  #endif /* INCLUDE_CFL_CFLGRAPHBUILDER_H_*/
@@ -20,7 +20,6 @@
20
20
  //
21
21
  //===----------------------------------------------------------------------===//
22
22
 
23
-
24
23
  /*
25
24
  * CFLStat.h
26
25
  *
@@ -30,7 +30,6 @@
30
30
  #ifndef INCLUDE_CFL_CFLVF_H_
31
31
  #define INCLUDE_CFL_CFLVF_H_
32
32
 
33
-
34
33
  #include "CFL/CFLBase.h"
35
34
  #include "CFL/CFLStat.h"
36
35
  #include "SABER/SaberSVFGBuilder.h"
@@ -118,7 +118,6 @@ public:
118
118
  /// get callsite id from return, return 0 if it is a spurious return edge
119
119
  CallSiteID getCSIDAtRet(CxtLocDPItem& dpm, const SVFGEdge* edge);
120
120
 
121
-
122
121
  /// Pop recursive callsites
123
122
  inline virtual void popRecursiveCallSites(CxtLocDPItem& dpm)
124
123
  {
@@ -20,7 +20,6 @@
20
20
  //
21
21
  //===----------------------------------------------------------------------===//
22
22
 
23
-
24
23
  /*
25
24
  * @file: DDAClient.h
26
25
  * @author: yesen
@@ -30,7 +29,6 @@
30
29
  *
31
30
  */
32
31
 
33
-
34
32
  #ifndef DDACLIENT_H_
35
33
  #define DDACLIENT_H_
36
34
 
@@ -118,7 +116,6 @@ private:
118
116
  bool solveAll; ///< TRUE if all top level pointers are being queried
119
117
  };
120
118
 
121
-
122
119
  /**
123
120
  * DDA client with function pointers as query candidates.
124
121
  */
@@ -136,8 +133,6 @@ public:
136
133
  virtual void performStat(PointerAnalysis* pta);
137
134
  };
138
135
 
139
-
140
-
141
136
  /**
142
137
  * DDA client with function pointers as query candidates.
143
138
  */
@@ -28,7 +28,6 @@
28
28
  *
29
29
  */
30
30
 
31
-
32
31
  #ifndef DDAPASS_H_
33
32
  #define DDAPASS_H_
34
33
 
@@ -76,5 +76,4 @@ enum hclust_fast_methods
76
76
  HCLUST_METHOD_SVF_BEST = 4
77
77
  };
78
78
 
79
-
80
79
  #endif
@@ -45,7 +45,6 @@ class CFBasicBlockEdge : public GenericCFBasicBlockEdgeTy
45
45
  public:
46
46
  CFBasicBlockEdge(CFBasicBlockNode *src, CFBasicBlockNode *dst) : GenericCFBasicBlockEdgeTy(src, dst, 0) {}
47
47
 
48
-
49
48
  friend std::ostream &operator<<(std::ostream &o, const CFBasicBlockEdge &edge)
50
49
  {
51
50
  o << edge.toString();
@@ -191,7 +190,6 @@ public:
191
190
  };
192
191
  }
193
192
 
194
-
195
193
  namespace SVF
196
194
  {
197
195
  /* !
@@ -71,7 +71,6 @@ public:
71
71
  }
72
72
  };
73
73
 
74
-
75
74
  typedef GenericNode<CFLNode,CFLEdge> GenericCFLNodeTy;
76
75
  class CFLNode: public GenericCFLNodeTy
77
76
  {
@@ -73,7 +73,6 @@ protected:
73
73
  CHGKind kind;
74
74
  };
75
75
 
76
-
77
76
  typedef GenericEdge<CHNode> GenericCHEdgeTy;
78
77
  class CHEdge: public GenericCHEdgeTy
79
78
  {
@@ -314,7 +313,6 @@ public:
314
313
  return chg->getKind() == Standard;
315
314
  }
316
315
 
317
-
318
316
  private:
319
317
  SVFModule* svfMod;
320
318
  u32_t classNum;
@@ -86,7 +86,6 @@ public:
86
86
 
87
87
  };
88
88
 
89
-
90
89
  /*!
91
90
  * Copy edge
92
91
  */
@@ -117,7 +116,6 @@ public:
117
116
  AddrCGEdge(ConstraintNode* s, ConstraintNode* d, EdgeID id);
118
117
  };
119
118
 
120
-
121
119
  /*!
122
120
  * Copy edge
123
121
  */
@@ -150,7 +148,6 @@ public:
150
148
  }
151
149
  };
152
150
 
153
-
154
151
  /*!
155
152
  * Store edge
156
153
  */
@@ -184,7 +181,6 @@ public:
184
181
  }
185
182
  };
186
183
 
187
-
188
184
  /*!
189
185
  * Load edge
190
186
  */
@@ -218,7 +214,6 @@ public:
218
214
  }
219
215
  };
220
216
 
221
-
222
217
  /*!
223
218
  * Gep edge
224
219
  */
@@ -383,7 +383,6 @@ public:
383
383
  }
384
384
  //@}
385
385
 
386
-
387
386
  };
388
387
 
389
388
  } // End namespace SVF
@@ -172,7 +172,6 @@ public:
172
172
  static void addCustomGraphFeatures(const GraphType &, GraphWriter &) {}
173
173
  };
174
174
 
175
-
176
175
  /// DOTGraphTraits - Template class that can be specialized to customize how
177
176
  /// graphs are converted to 'dot' graphs. When specializing, you may inherit
178
177
  /// from DefaultDOTGraphTraits if you don't need to override everything.
@@ -133,7 +133,6 @@ protected:
133
133
  static constexpr u64_t EdgeKindMask = (~0ULL) >> (64 - EdgeKindMaskBits);
134
134
  };
135
135
 
136
-
137
136
  /*!
138
137
  * Generic node on the graph as base class
139
138
  */
@@ -20,7 +20,6 @@
20
20
  //
21
21
  //===----------------------------------------------------------------------===//
22
22
 
23
-
24
23
  /*
25
24
  * GraphPrinter.h
26
25
  *
@@ -106,6 +105,4 @@ public:
106
105
 
107
106
  } // End namespace llvm
108
107
 
109
-
110
-
111
108
  #endif /* INCLUDE_GRAPHS_GRAPHPRINTER_H_ */
@@ -76,7 +76,6 @@ private:
76
76
  GlobalICFGNode* globalBlockNode; ///< unique basic block for all globals
77
77
  ICFGNodeToSVFLoopVec icfgNodeToSVFLoopVec; ///< map ICFG node to the SVF loops where it resides
78
78
 
79
-
80
79
  public:
81
80
  /// Constructor
82
81
  ICFG();
@@ -94,7 +94,6 @@ public:
94
94
  return bb;
95
95
  }
96
96
 
97
-
98
97
  /// Overloading operator << for dumping ICFG node ID
99
98
  //@{
100
99
  friend OutStream &operator<<(OutStream &o, const ICFGNode &node)
@@ -254,7 +253,6 @@ public:
254
253
  //@}
255
254
  };
256
255
 
257
-
258
256
  /*!
259
257
  * Function entry ICFGNode containing a set of FormalParmVFGNodes of a function
260
258
  */
@@ -480,7 +478,6 @@ public:
480
478
  virtual const std::string toString() const;
481
479
  };
482
480
 
483
-
484
481
  /*!
485
482
  * Return ICFGNode containing (at most one) ActualRetVFGNode at a callsite
486
483
  */
@@ -123,7 +123,6 @@ public:
123
123
  else if (SVFUtil::isa<FunExitICFGNode>(node))
124
124
  numOfExitNodes++;
125
125
 
126
-
127
126
  ICFGEdge::ICFGEdgeSetTy::iterator edgeIt =
128
127
  it->second->OutEdgeBegin();
129
128
  ICFGEdge::ICFGEdgeSetTy::iterator edgeEit =
@@ -161,4 +160,3 @@ public:
161
160
  } // End namespace SVF
162
161
 
163
162
  #endif /* INCLUDE_UTIL_ICFGSTAT_H_ */
164
-
@@ -27,7 +27,6 @@
27
27
  * Author: Yulei Sui
28
28
  */
29
29
 
30
-
31
30
  #ifndef IRGRAPH_H_
32
31
  #define IRGRAPH_H_
33
32
 
@@ -41,7 +41,6 @@ namespace SVF
41
41
  class PTACallGraphNode;
42
42
  class SVFModule;
43
43
 
44
-
45
44
  /*
46
45
  * Call Graph edge representing a calling relation between two functions
47
46
  * Multiple calls from function A to B are merged into one call edge
@@ -58,7 +57,6 @@ public:
58
57
  CallRetEdge,TDForkEdge,TDJoinEdge,HareParForEdge
59
58
  };
60
59
 
61
-
62
60
  private:
63
61
  CallInstSet directCalls;
64
62
  CallInstSet indirectCalls;
@@ -198,7 +196,6 @@ public:
198
196
  /// Return TRUE if this function can be reached from main.
199
197
  bool isReachableFromProgEntry() const;
200
198
 
201
-
202
199
  /// Overloading operator << for dumping ICFG node ID
203
200
  //@{
204
201
  friend OutStream& operator<< (OutStream &o, const PTACallGraphNode &node)
@@ -57,7 +57,6 @@ typedef PHIVFGNode PHISVFGNode;
57
57
  typedef IntraPHIVFGNode IntraPHISVFGNode;
58
58
  typedef InterPHIVFGNode InterPHISVFGNode;
59
59
 
60
-
61
60
  /*!
62
61
  * Sparse value flow graph
63
62
  * Each node stands for a definition, each edge stands for value flow relations
@@ -345,7 +344,6 @@ protected:
345
344
  }
346
345
  //@}
347
346
 
348
-
349
347
  /// Given a PAGNode, set/get its def SVFG node (definition of top level pointers)
350
348
  //@{
351
349
  inline void setDef(const PAGNode* pagNode, const SVFGNode* node)
@@ -198,7 +198,6 @@ public:
198
198
  virtual const std::string toString() const;
199
199
  };
200
200
 
201
-
202
201
  /*!
203
202
  * MHP SVFG edge representing indirect value-flows between
204
203
  * two memory access may-happen-in-parallel in multithreaded program
@@ -131,7 +131,6 @@ public:
131
131
  virtual const std::string toString() const;
132
132
  };
133
133
 
134
-
135
134
  /*
136
135
  * SVFG Node stands for return mu node (address-taken variables)
137
136
  */
@@ -173,7 +172,6 @@ public:
173
172
  virtual const std::string toString() const;
174
173
  };
175
174
 
176
-
177
175
  /*
178
176
  * SVFG Node stands for callsite mu node (address-taken variables)
179
177
  */
@@ -202,7 +200,6 @@ public:
202
200
  return ver;
203
201
  }
204
202
 
205
-
206
203
  /// Methods for support type inquiry through isa, cast, and dyn_cast:
207
204
  //@{
208
205
  static inline bool classof(const ActualINSVFGNode *)
@@ -222,7 +219,6 @@ public:
222
219
  virtual const std::string toString() const;
223
220
  };
224
221
 
225
-
226
222
  /*
227
223
  * SVFG Node stands for callsite chi node (address-taken variables)
228
224
  */
@@ -269,7 +265,6 @@ public:
269
265
  virtual const std::string toString() const;
270
266
  };
271
267
 
272
-
273
268
  /*
274
269
  * SVFG Node stands for a memory ssa phi node or formalIn or ActualOut
275
270
  */
@@ -397,7 +392,6 @@ public:
397
392
  virtual const std::string toString() const;
398
393
  };
399
394
 
400
-
401
395
  /*
402
396
  * Inter MSSA PHI (formalIN/ActualOUT)
403
397
  */
@@ -507,7 +501,6 @@ private:
507
501
  const Version version;
508
502
  };
509
503
 
510
-
511
504
  } // End namespace SVF
512
505
 
513
506
  #endif /* INCLUDE_MSSA_SVFGNODE_H_ */