svf-lib 1.0.1665 → 1.0.1667

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.
@@ -2,6 +2,6 @@
2
2
  #define CONFIG_H_IN
3
3
 
4
4
  #define PROJECT_PATH "/home/runner/work/SVF/SVF"
5
- #define EXTAPI_PATH PROJECT_PATH "/Release-build/svf-llvm"
5
+ #define EXTAPI_DIR PROJECT_PATH "/Release-build/svf-llvm"
6
6
 
7
7
  #endif
@@ -53,7 +53,7 @@ private:
53
53
 
54
54
  public:
55
55
 
56
- static ExtAPI *getExtAPI(const std::string& = "");
56
+ static ExtAPI *getExtAPI();
57
57
 
58
58
  static void destory();
59
59
 
@@ -248,7 +248,6 @@ public:
248
248
  static const Option<bool> VtableInSVFIR;
249
249
 
250
250
  // WPAPass.cpp
251
- static const Option<std::string> ExtAPIInput;
252
251
  static const Option<bool> AnderSVFG;
253
252
  static const Option<bool> SABERFULLSVFG;
254
253
  static const Option<bool> PrintAliases;
@@ -240,7 +240,7 @@ public:
240
240
  bool isCalledExtFunction(Function* func)
241
241
  {
242
242
  /// if this function func defined in extapi.bc but never used in application code (without any corresponding declared functions).
243
- if (func->getParent()->getName().str() == Options::ExtAPIInput()
243
+ if (func->getParent()->getName().str() == ExtAPI::getExtAPI()->getExtBcPath()
244
244
  && FunDefToDeclsMap.find(func) == FunDefToDeclsMap.end()
245
245
  && std::find(ExtFuncsVec.begin(), ExtFuncsVec.end(), func) == ExtFuncsVec.end())
246
246
  {
@@ -2,6 +2,6 @@
2
2
  #define CONFIG_H_IN
3
3
 
4
4
  #define PROJECT_PATH "/Users/runner/work/SVF/SVF"
5
- #define EXTAPI_PATH PROJECT_PATH "/Release-build/svf-llvm"
5
+ #define EXTAPI_DIR PROJECT_PATH "/Release-build/svf-llvm"
6
6
 
7
7
  #endif
@@ -53,7 +53,7 @@ private:
53
53
 
54
54
  public:
55
55
 
56
- static ExtAPI *getExtAPI(const std::string& = "");
56
+ static ExtAPI *getExtAPI();
57
57
 
58
58
  static void destory();
59
59
 
@@ -248,7 +248,6 @@ public:
248
248
  static const Option<bool> VtableInSVFIR;
249
249
 
250
250
  // WPAPass.cpp
251
- static const Option<std::string> ExtAPIInput;
252
251
  static const Option<bool> AnderSVFG;
253
252
  static const Option<bool> SABERFULLSVFG;
254
253
  static const Option<bool> PrintAliases;
@@ -240,7 +240,7 @@ public:
240
240
  bool isCalledExtFunction(Function* func)
241
241
  {
242
242
  /// if this function func defined in extapi.bc but never used in application code (without any corresponding declared functions).
243
- if (func->getParent()->getName().str() == Options::ExtAPIInput()
243
+ if (func->getParent()->getName().str() == ExtAPI::getExtAPI()->getExtBcPath()
244
244
  && FunDefToDeclsMap.find(func) == FunDefToDeclsMap.end()
245
245
  && std::find(ExtFuncsVec.begin(), ExtFuncsVec.end(), func) == ExtFuncsVec.end())
246
246
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1665",
3
+ "version": "1.0.1667",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {