svf-lib 1.0.1668 → 1.0.1670

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,7 @@
2
2
  #define CONFIG_H_IN
3
3
 
4
4
  #define PROJECT_PATH "/home/runner/work/SVF/SVF"
5
+ #define BUILD_TYPE "Release-build"
5
6
  #define EXTAPI_DIR PROJECT_PATH "/Release-build/svf-llvm"
6
7
 
7
8
  #endif
@@ -38,7 +38,7 @@
38
38
 
39
39
  /// For a more detailed explanation of how External APIs are handled in SVF, please refer to the SVF Wiki: https://github.com/SVF-tools/SVF/wiki/Handling-External-APIs-with-extapi.c
40
40
 
41
- #define EXTAPI_BC_PATH "Release-build/svf-llvm/extapi.bc"
41
+ #define DEFUALT_EXTAPI_BC_PATH "/svf-llvm/extapi.bc" // Default path to extapi.bc through the SVF build method(e.g. source ./build.sh)
42
42
 
43
43
  namespace SVF
44
44
  {
@@ -49,6 +49,9 @@ private:
49
49
 
50
50
  static ExtAPI *extOp;
51
51
 
52
+ // extapi.bc file path
53
+ static std::string extBcPath;
54
+
52
55
  ExtAPI() = default;
53
56
 
54
57
  public:
@@ -57,6 +60,9 @@ public:
57
60
 
58
61
  static void destory();
59
62
 
63
+ // Set extapi.bc file path
64
+ static void setExtBcPath(const std::string& path);
65
+
60
66
  // Get extapi.bc file path
61
67
  std::string getExtBcPath();
62
68
 
@@ -248,6 +248,7 @@ public:
248
248
  static const Option<bool> VtableInSVFIR;
249
249
 
250
250
  // WPAPass.cpp
251
+ static const Option<std::string> ExtAPIPath;
251
252
  static const Option<bool> AnderSVFG;
252
253
  static const Option<bool> SABERFULLSVFG;
253
254
  static const Option<bool> PrintAliases;
@@ -38,7 +38,7 @@
38
38
 
39
39
  /// For a more detailed explanation of how External APIs are handled in SVF, please refer to the SVF Wiki: https://github.com/SVF-tools/SVF/wiki/Handling-External-APIs-with-extapi.c
40
40
 
41
- #define DEFUALT_EXTAPI_BC_PATH "/svf-llvm/extapi.bc" // Default path to extapi.bc through the SVF build method(e.g. source ./build.sh)
41
+ #define DEFAULT_EXTAPI_BC_PATH "/svf-llvm/extapi.bc" // Default path to extapi.bc through the SVF build method(e.g. source ./build.sh)
42
42
 
43
43
  namespace SVF
44
44
  {
@@ -61,7 +61,7 @@ public:
61
61
  static void destory();
62
62
 
63
63
  // Set extapi.bc file path
64
- static void setExtBcPath(const std::string& path);
64
+ static bool setExtBcPath(const std::string& path);
65
65
 
66
66
  // Get extapi.bc file path
67
67
  std::string getExtBcPath();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1668",
3
+ "version": "1.0.1670",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {