svf-lib 1.0.2637 → 1.0.2639
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-linux-aarch64/bin/ae +0 -0
- package/SVF-linux-aarch64/bin/cfl +0 -0
- package/SVF-linux-aarch64/bin/dvf +0 -0
- package/SVF-linux-aarch64/bin/llvm2svf +0 -0
- package/SVF-linux-aarch64/bin/mta +0 -0
- package/SVF-linux-aarch64/bin/saber +0 -0
- package/SVF-linux-aarch64/bin/svf-ex +0 -0
- package/SVF-linux-aarch64/bin/wpa +0 -0
- package/SVF-linux-aarch64/include/AE/Core/AddressValue.h +2 -0
- package/SVF-linux-aarch64/include/Util/SparseBitVector.h +4 -0
- package/SVF-linux-aarch64/lib/cmake/SVF/Modules/FindZ3.cmake +46 -14
- package/SVF-linux-aarch64/lib/libSvfCore.so.3.4 +0 -0
- package/SVF-linux-aarch64/lib/libSvfLLVM.so.3.4 +0 -0
- package/SVF-linux-x86_64/include/MemoryModel/PointerAnalysis.h +10 -0
- package/SVF-linux-x86_64/include/MemoryModel/PointerAnalysisImpl.h +6 -0
- package/SVF-linux-x86_64/lib/libSvfCore.so.3.4 +0 -0
- package/package.json +1 -1
package/SVF-linux-aarch64/bin/ae
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
@@ -201,6 +201,16 @@ public:
|
|
|
201
201
|
/// Similar to getPts, this also needs to be implemented in child classes.
|
|
202
202
|
virtual const NodeSet& getRevPts(NodeID nodeId) = 0;
|
|
203
203
|
|
|
204
|
+
/// Convenience bool wrappers: return true if the two operands may/must/partial alias
|
|
205
|
+
inline bool mayAlias(const SVFVar* V1, const SVFVar* V2)
|
|
206
|
+
{
|
|
207
|
+
return alias(V1, V2)!= AliasResult::NoAlias;
|
|
208
|
+
}
|
|
209
|
+
inline bool mayAlias(NodeID node1, NodeID node2)
|
|
210
|
+
{
|
|
211
|
+
return alias(node1, node2)!= AliasResult::NoAlias;
|
|
212
|
+
}
|
|
213
|
+
|
|
204
214
|
/// Print targets of a function pointer
|
|
205
215
|
void printIndCSTargets(const CallICFGNode* cs, const FunctionSet& targets);
|
|
206
216
|
|
|
@@ -221,6 +221,12 @@ public:
|
|
|
221
221
|
/// Interface expose to users of our pointer analysis, given two pts
|
|
222
222
|
virtual AliasResult alias(const PointsTo& pts1, const PointsTo& pts2);
|
|
223
223
|
|
|
224
|
+
/// Convenience bool wrappers: return true if the two operands may/must/partial alias
|
|
225
|
+
inline bool mayAlias(const PointsTo& pts1, const PointsTo& pts2)
|
|
226
|
+
{
|
|
227
|
+
return alias(pts1, pts2)!= AliasResult::NoAlias;
|
|
228
|
+
}
|
|
229
|
+
|
|
224
230
|
/// dump and debug, print out conditional pts
|
|
225
231
|
//@{
|
|
226
232
|
void dumpCPts() override
|
|
Binary file
|