svf-lib 1.0.2560 → 1.0.2562

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
@@ -33,6 +33,7 @@
33
33
  #include "Util/SVFUtil.h"
34
34
  #include "SVF-LLVM/BasicTypes.h"
35
35
  #include "Util/ThreadAPI.h"
36
+ #include "Util/Options.h"
36
37
 
37
38
  namespace SVF
38
39
  {
@@ -112,7 +113,8 @@ const Function* getProgFunction(const std::string& funName);
112
113
  /// Check whether a function is an entry function (i.e., main)
113
114
  inline bool isProgEntryFunction(const Function* fun)
114
115
  {
115
- return fun && fun->getName() == "main";
116
+ const char* main_name=Options::SVFMain() ? "svf.main" : "main";
117
+ return fun && fun->getName() == main_name;
116
118
  }
117
119
 
118
120
  /// Check whether this value is a black hole
@@ -177,7 +177,7 @@ public:
177
177
 
178
178
  // LLVMModule.cpp
179
179
  static const Option<std::string> Graphtxt;
180
- static const Option<bool> SVFMain;
180
+ static Option<bool> SVFMain;
181
181
 
182
182
  // SymbolTableInfo.cpp
183
183
  static const Option<bool> LocMemModel;
@@ -9,7 +9,7 @@
9
9
  #define SVF_CONFIG_H_IN
10
10
 
11
11
  // Expose base properties of this SVF instance
12
- #define SVF_VERSION "3.3"
12
+ #define SVF_VERSION "3.4"
13
13
  #define SVF_BUILD_TYPE "Release"
14
14
  #define SVF_C_STANDARD "11"
15
15
  #define SVF_CXX_STANDARD "17"
@@ -32,7 +32,7 @@ list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}" "${CMAKE_CURRENT_LIST
32
32
  include("${CMAKE_CURRENT_LIST_DIR}/SVFTargets.cmake")
33
33
 
34
34
  # Set basic variables from this SVF build
35
- set(SVF_VERSION 3.3)
35
+ set(SVF_VERSION 3.4)
36
36
  set(SVF_BUILD_TYPE Release)
37
37
  set(SVF_SHARED_LIBS ON)
38
38
  set(SVF_C_STANDARD 11)
@@ -7,7 +7,7 @@
7
7
  # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
8
8
  # The variable CVF_VERSION must be set before calling configure_file().
9
9
 
10
- set(PACKAGE_VERSION "3.3")
10
+ set(PACKAGE_VERSION "3.4")
11
11
 
12
12
  if (PACKAGE_FIND_VERSION_RANGE)
13
13
  # Package version must be in the requested version range
@@ -8,22 +8,22 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
8
8
  # Import target "SVF::SvfCore" for configuration "Release"
9
9
  set_property(TARGET SVF::SvfCore APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
10
10
  set_target_properties(SVF::SvfCore PROPERTIES
11
- IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSvfCore.so.3.3"
11
+ IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSvfCore.so.3.4"
12
12
  IMPORTED_SONAME_RELEASE "libSvfCore.so.3"
13
13
  )
14
14
 
15
15
  list(APPEND _cmake_import_check_targets SVF::SvfCore )
16
- list(APPEND _cmake_import_check_files_for_SVF::SvfCore "${_IMPORT_PREFIX}/lib/libSvfCore.so.3.3" )
16
+ list(APPEND _cmake_import_check_files_for_SVF::SvfCore "${_IMPORT_PREFIX}/lib/libSvfCore.so.3.4" )
17
17
 
18
18
  # Import target "SVF::SvfLLVM" for configuration "Release"
19
19
  set_property(TARGET SVF::SvfLLVM APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
20
20
  set_target_properties(SVF::SvfLLVM PROPERTIES
21
- IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSvfLLVM.so.3.3"
21
+ IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSvfLLVM.so.3.4"
22
22
  IMPORTED_SONAME_RELEASE "libSvfLLVM.so.3"
23
23
  )
24
24
 
25
25
  list(APPEND _cmake_import_check_targets SVF::SvfLLVM )
26
- list(APPEND _cmake_import_check_files_for_SVF::SvfLLVM "${_IMPORT_PREFIX}/lib/libSvfLLVM.so.3.3" )
26
+ list(APPEND _cmake_import_check_files_for_SVF::SvfLLVM "${_IMPORT_PREFIX}/lib/libSvfLLVM.so.3.4" )
27
27
 
28
28
  # Import target "SVF::ae" for configuration "Release"
29
29
  set_property(TARGET SVF::ae APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
@@ -6,7 +6,7 @@ includedir=${exec_prefix}/include
6
6
 
7
7
  Name: SVF
8
8
  Description: SVF Points to Analysis Framework
9
- Version: 3.3
9
+ Version: 3.4
10
10
  Requires: z3
11
11
  Libs: -L${libdir} -lSvfCore -lSvfLLVM
12
12
  Cflags: -I${includedir}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2560",
3
+ "version": "1.0.2562",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {