svf-lib 1.0.2641 → 1.0.2643

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.
package/SVF-osx/bin/ae CHANGED
Binary file
package/SVF-osx/bin/cfl CHANGED
Binary file
package/SVF-osx/bin/dvf CHANGED
Binary file
Binary file
package/SVF-osx/bin/mta CHANGED
Binary file
package/SVF-osx/bin/saber CHANGED
Binary file
Binary file
package/SVF-osx/bin/wpa CHANGED
Binary file
@@ -177,12 +177,14 @@ 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
- return true;
182
- return false;
182
+ return true;
183
183
  }
184
+ return false;
185
+ }
184
186
 
185
- inline bool isBottom() const
187
+ inline bool isBottom() const
186
188
  {
187
189
  return empty();
188
190
  }
@@ -536,27 +536,29 @@ 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
- // Search from our current iterator, either backwards or forwards,
542
- // depending on what element we are looking for.
543
- ElementListIter ElementIter = CurrElementIter;
544
- if (CurrElementIter->index() == ElementIndex)
545
- {
546
- return ElementIter;
543
+ // Search from our current iterator, either backwards or forwards,
544
+ // depending on what element we are looking for.
545
+ ElementListIter ElementIter = CurrElementIter;
546
+ if (CurrElementIter->index() == ElementIndex)
547
+ {
548
+ return ElementIter;
549
+ }
550
+ else if (CurrElementIter->index() > ElementIndex)
551
+ {
552
+ while (ElementIter != Begin
553
+ && ElementIter->index() > ElementIndex)
554
+ --ElementIter;
547
555
  }
548
- else if (CurrElementIter->index() > ElementIndex)
556
+ else
549
557
  {
550
- while (ElementIter != Begin
551
- && ElementIter->index() > ElementIndex)
552
- --ElementIter;
553
- }
554
- else
555
- {
556
- while (ElementIter != End &&
557
- ElementIter->index() < ElementIndex)
558
- ++ElementIter;
559
- }
558
+ while (ElementIter != End &&
559
+ ElementIter->index() < ElementIndex)
560
+ ++ElementIter;
561
+ }
560
562
  CurrElementIter = ElementIter;
561
563
  return ElementIter;
562
564
  }
@@ -755,9 +757,11 @@ public:
755
757
  // is nothing more to do.
756
758
  if (ElementIter == Elements.end() ||
757
759
  ElementIter->index() != ElementIndex)
760
+ {
758
761
  return false;
759
- return ElementIter->test(Idx % ElementSize);
760
762
  }
763
+ return ElementIter->test(Idx % ElementSize);
764
+ }
761
765
 
762
766
  void reset(unsigned Idx)
763
767
  {
@@ -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")
@@ -1,7 +1,7 @@
1
1
  ; ModuleID = '/Users/runner/work/SVF/SVF/svf-llvm/lib/extapi.c'
2
2
  source_filename = "/Users/runner/work/SVF/SVF/svf-llvm/lib/extapi.c"
3
3
  target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32"
4
- target triple = "arm64-apple-macosx14.0.0"
4
+ target triple = "arm64-apple-macosx15.0.0"
5
5
 
6
6
  @getenv_global = global [10 x i8] zeroinitializer, align 1
7
7
  @ctype_b_loc_global = global [10 x i16] zeroinitializer, align 2
@@ -2429,7 +2429,7 @@ attributes #4 = { noinline nounwind optnone ssp willreturn memory(read) uwtable(
2429
2429
  !llvm.module.flags = !{!0, !1, !2, !3, !4}
2430
2430
  !llvm.ident = !{!5}
2431
2431
 
2432
- !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 14, i32 5]}
2432
+ !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
2433
2433
  !1 = !{i32 1, !"wchar_size", i32 4}
2434
2434
  !2 = !{i32 8, !"PIC Level", i32 2}
2435
2435
  !3 = !{i32 7, !"uwtable", i32 1}
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2641",
3
+ "version": "1.0.2643",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {