seahorn | SeaHorn Verification Framework | Compiler library
kandi X-RAY | seahorn Summary
kandi X-RAY | seahorn Summary
SeaHorn is an automated analysis framework for LLVM-based languages. This version supports LLVM 5.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of seahorn
seahorn Key Features
seahorn Examples and Code Snippets
Community Discussions
Trending Discussions on seahorn
QUESTION
I am trying to use the C/C++ API of Z3 to parse fixed point constraints in the SMTLib2 format (specifically files produced by SeaHorn). However, my application crashes when parsing the string (I am using the Z3_fixedpoint_from_string
method). The Z3 version I'm working with is version 4.5.1 64 bit.
The SMTLib file I try to parse works find with the Z3 binary, which I have compiled from the sources, but it runs into a segmentation fault when calling Z3_fixedpoint_from_string
. I narrowed the problem down to the point that I think the issue is related to adding relations to the fixed point context. A simple example that produces a seg fault on my machine is the following:
ANSWER
Answered 2017-Mar-10 at 02:26The fixedpoint object "f" is reference counted. the caller is responsible for taking a reference count immediately after it is created. It is easier to use C++ smart pointers to control this, similar to how we control it for other objects. The C++ API does not have a wrapper for fixedpoint objects so you would have to create your own in the style of other wrappers.
Instead of del_fixedpoint one uses reference counters.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install seahorn
cd seahorn ; mkdir build ; cd build (The build directory can also be outside the source directory.)
cmake -DCMAKE_INSTALL_PREFIX=run ../ (Add -GNinja to use the Ninja generator instead of the default one. Build types (Release, Debug) can be set with -DCMAKE_BUILD_TYPE=<TYPE>.)
cmake --build . to build dependencies (Z3 and LLVM)
cmake --build . --target extra && cmake .. to download extra packages
cmake --build . --target crab && cmake .. to configure crab (if extra target was run)
cmake --build . --target install to build seahorn and install everything in run directory
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page