svf-lib 1.0.2638 → 1.0.2640

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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -177,8 +177,10 @@ public:
177
177
  bool hasIntersect(const AddressValue &other) const
178
178
  {
179
179
  for (const auto& addr : _addrs)
180
+ {
180
181
  if (other._addrs.count(addr))
181
182
  return true;
183
+ }
182
184
  return false;
183
185
  }
184
186
 
@@ -536,7 +536,9 @@ class SparseBitVector
536
536
 
537
537
  // Make sure our current iterator is valid.
538
538
  if (CurrElementIter == End)
539
+ {
539
540
  --CurrElementIter;
541
+ }
540
542
 
541
543
  // Search from our current iterator, either backwards or forwards,
542
544
  // depending on what element we are looking for.
@@ -755,7 +757,9 @@ public:
755
757
  // is nothing more to do.
756
758
  if (ElementIter == Elements.end() ||
757
759
  ElementIter->index() != ElementIndex)
760
+ {
758
761
  return false;
762
+ }
759
763
  return ElementIter->test(Idx % ElementSize);
760
764
  }
761
765
 
@@ -4,30 +4,62 @@
4
4
 
5
5
  include(GNUInstallDirs)
6
6
 
7
+ set(_Z3_HINTS ${Z3_HOME} $ENV{Z3_HOME} ${Z3_DIR} $ENV{Z3_DIR})
8
+ set(_Z3_EXPLICIT_ROOT "")
9
+ foreach(_Z3_HINT IN LISTS _Z3_HINTS)
10
+ if(_Z3_HINT AND EXISTS "${_Z3_HINT}/include/z3++.h")
11
+ set(_Z3_EXPLICIT_ROOT "${_Z3_HINT}")
12
+ break()
13
+ endif()
14
+ endforeach()
15
+
7
16
  # Try upstream/system CONFIG package first; use it if found (sets required variables):
8
- find_package(Z3 CONFIG QUIET HINTS ${Z3_HOME} $ENV{Z3_HOME} ${Z3_DIR} $ENV{Z3_DIR})
17
+ if(NOT _Z3_EXPLICIT_ROOT)
18
+ find_package(Z3 CONFIG QUIET HINTS ${_Z3_HINTS})
19
+ endif()
9
20
  if(Z3_FOUND)
10
21
  if(NOT Z3_FIND_QUIETLY)
11
22
  message(STATUS "Found upstream/system Z3 package (Z3Config.cmake)")
12
23
  endif()
13
24
  else()
14
25
  if(NOT Z3_FIND_QUIETLY)
15
- message(STATUS "Failed to find upstream/system Z3 package; reverting to manual search")
26
+ if(_Z3_EXPLICIT_ROOT)
27
+ message(STATUS "Using explicit Z3 root: ${_Z3_EXPLICIT_ROOT}")
28
+ else()
29
+ message(STATUS "Failed to find upstream/system Z3 package; reverting to manual search")
30
+ endif()
16
31
  endif()
17
32
 
18
33
  # Fall back to explicit manual header + lib search (prioritise searching $Z3_DIR)
19
- find_library(
20
- Z3_LIBRARY_DIR
21
- NAMES z3 libz3
22
- HINTS ${Z3_HOME} $ENV{Z3_HOME} ${Z3_DIR} $ENV{Z3_DIR}
23
- PATH_SUFFIXES bin lib ${CMAKE_INSTALL_BINDIR} ${CMAKE_INSTALL_LIBDIR}
24
- )
25
- find_path(
26
- Z3_INCLUDE_DIR
27
- NAMES z3++.h
28
- HINTS ${Z3_HOME} $ENV{Z3_HOME} ${Z3_DIR} $ENV{Z3_DIR}
29
- PATH_SUFFIXES include ${CMAKE_INSTALL_INCLUDEDIR}
30
- )
34
+ if(_Z3_EXPLICIT_ROOT)
35
+ find_library(
36
+ Z3_LIBRARY_DIR
37
+ NAMES z3 libz3
38
+ HINTS ${_Z3_EXPLICIT_ROOT}
39
+ PATH_SUFFIXES bin lib ${CMAKE_INSTALL_BINDIR} ${CMAKE_INSTALL_LIBDIR}
40
+ NO_DEFAULT_PATH
41
+ )
42
+ find_path(
43
+ Z3_INCLUDE_DIR
44
+ NAMES z3++.h
45
+ HINTS ${_Z3_EXPLICIT_ROOT}
46
+ PATH_SUFFIXES include ${CMAKE_INSTALL_INCLUDEDIR}
47
+ NO_DEFAULT_PATH
48
+ )
49
+ else()
50
+ find_library(
51
+ Z3_LIBRARY_DIR
52
+ NAMES z3 libz3
53
+ HINTS ${_Z3_HINTS}
54
+ PATH_SUFFIXES bin lib ${CMAKE_INSTALL_BINDIR} ${CMAKE_INSTALL_LIBDIR}
55
+ )
56
+ find_path(
57
+ Z3_INCLUDE_DIR
58
+ NAMES z3++.h
59
+ HINTS ${_Z3_HINTS}
60
+ PATH_SUFFIXES include ${CMAKE_INSTALL_INCLUDEDIR}
61
+ )
62
+ endif()
31
63
 
32
64
  # If the headers were found, find & extract the Z3 version number
33
65
  set(_ver_h "${Z3_INCLUDE_DIR}/z3_version.h")
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -177,8 +177,10 @@ public:
177
177
  bool hasIntersect(const AddressValue &other) const
178
178
  {
179
179
  for (const auto& addr : _addrs)
180
+ {
180
181
  if (other._addrs.count(addr))
181
182
  return true;
183
+ }
182
184
  return false;
183
185
  }
184
186
 
@@ -536,7 +536,9 @@ class SparseBitVector
536
536
 
537
537
  // Make sure our current iterator is valid.
538
538
  if (CurrElementIter == End)
539
+ {
539
540
  --CurrElementIter;
541
+ }
540
542
 
541
543
  // Search from our current iterator, either backwards or forwards,
542
544
  // depending on what element we are looking for.
@@ -755,7 +757,9 @@ public:
755
757
  // is nothing more to do.
756
758
  if (ElementIter == Elements.end() ||
757
759
  ElementIter->index() != ElementIndex)
760
+ {
758
761
  return false;
762
+ }
759
763
  return ElementIter->test(Idx % ElementSize);
760
764
  }
761
765
 
@@ -4,30 +4,62 @@
4
4
 
5
5
  include(GNUInstallDirs)
6
6
 
7
+ set(_Z3_HINTS ${Z3_HOME} $ENV{Z3_HOME} ${Z3_DIR} $ENV{Z3_DIR})
8
+ set(_Z3_EXPLICIT_ROOT "")
9
+ foreach(_Z3_HINT IN LISTS _Z3_HINTS)
10
+ if(_Z3_HINT AND EXISTS "${_Z3_HINT}/include/z3++.h")
11
+ set(_Z3_EXPLICIT_ROOT "${_Z3_HINT}")
12
+ break()
13
+ endif()
14
+ endforeach()
15
+
7
16
  # Try upstream/system CONFIG package first; use it if found (sets required variables):
8
- find_package(Z3 CONFIG QUIET HINTS ${Z3_HOME} $ENV{Z3_HOME} ${Z3_DIR} $ENV{Z3_DIR})
17
+ if(NOT _Z3_EXPLICIT_ROOT)
18
+ find_package(Z3 CONFIG QUIET HINTS ${_Z3_HINTS})
19
+ endif()
9
20
  if(Z3_FOUND)
10
21
  if(NOT Z3_FIND_QUIETLY)
11
22
  message(STATUS "Found upstream/system Z3 package (Z3Config.cmake)")
12
23
  endif()
13
24
  else()
14
25
  if(NOT Z3_FIND_QUIETLY)
15
- message(STATUS "Failed to find upstream/system Z3 package; reverting to manual search")
26
+ if(_Z3_EXPLICIT_ROOT)
27
+ message(STATUS "Using explicit Z3 root: ${_Z3_EXPLICIT_ROOT}")
28
+ else()
29
+ message(STATUS "Failed to find upstream/system Z3 package; reverting to manual search")
30
+ endif()
16
31
  endif()
17
32
 
18
33
  # Fall back to explicit manual header + lib search (prioritise searching $Z3_DIR)
19
- find_library(
20
- Z3_LIBRARY_DIR
21
- NAMES z3 libz3
22
- HINTS ${Z3_HOME} $ENV{Z3_HOME} ${Z3_DIR} $ENV{Z3_DIR}
23
- PATH_SUFFIXES bin lib ${CMAKE_INSTALL_BINDIR} ${CMAKE_INSTALL_LIBDIR}
24
- )
25
- find_path(
26
- Z3_INCLUDE_DIR
27
- NAMES z3++.h
28
- HINTS ${Z3_HOME} $ENV{Z3_HOME} ${Z3_DIR} $ENV{Z3_DIR}
29
- PATH_SUFFIXES include ${CMAKE_INSTALL_INCLUDEDIR}
30
- )
34
+ if(_Z3_EXPLICIT_ROOT)
35
+ find_library(
36
+ Z3_LIBRARY_DIR
37
+ NAMES z3 libz3
38
+ HINTS ${_Z3_EXPLICIT_ROOT}
39
+ PATH_SUFFIXES bin lib ${CMAKE_INSTALL_BINDIR} ${CMAKE_INSTALL_LIBDIR}
40
+ NO_DEFAULT_PATH
41
+ )
42
+ find_path(
43
+ Z3_INCLUDE_DIR
44
+ NAMES z3++.h
45
+ HINTS ${_Z3_EXPLICIT_ROOT}
46
+ PATH_SUFFIXES include ${CMAKE_INSTALL_INCLUDEDIR}
47
+ NO_DEFAULT_PATH
48
+ )
49
+ else()
50
+ find_library(
51
+ Z3_LIBRARY_DIR
52
+ NAMES z3 libz3
53
+ HINTS ${_Z3_HINTS}
54
+ PATH_SUFFIXES bin lib ${CMAKE_INSTALL_BINDIR} ${CMAKE_INSTALL_LIBDIR}
55
+ )
56
+ find_path(
57
+ Z3_INCLUDE_DIR
58
+ NAMES z3++.h
59
+ HINTS ${_Z3_HINTS}
60
+ PATH_SUFFIXES include ${CMAKE_INSTALL_INCLUDEDIR}
61
+ )
62
+ endif()
31
63
 
32
64
  # If the headers were found, find & extract the Z3 version number
33
65
  set(_ver_h "${Z3_INCLUDE_DIR}/z3_version.h")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2638",
3
+ "version": "1.0.2640",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {