This post includes some valuable hints for building SPF with Ant and some helpful advice for using it.
1. Prepare the site.properties
file
2. Make sure to use Java v8
3. Prepare the jpf-core (i.e., JPF)
3.1 Get the Java-8 branch for jpf-core
→ GitHub - javapathfinder/jpf-core at java-8
3.2 Build jpf-core
Build Log
Potential Errors
4. Prepare jpf-symbc (i.e., SPF)
4.1 Get the latest SPF version
→ GitHub - SymbolicPathFinder/jpf-symbc: Symbolic PathFinder
4.2 Build jpf-symbc
Build Log
5. Run Simple Example from the command line
Inside the jpf-symbc folder, run the following command:
Console Output
6. Use SPF inside Eclipse
6.1 Import both projects to Eclipse
6.2 Run Simple Example
Console Output
7. Try Z3 as constraint solver
7.1 → Change configuration to use z3
Will result in an error:
7.2 → Set the right java library path to the lib folder where the z3 native libraries are located
- MacOS:
- Key: DYLD_LIBRARY_PATH
- Value: /Users/yannic/repositories/jpf-symbc/lib
- Linux:
- Windows:
Successful Run Log
7.3 Simple Example with Z3 in the command line
You can also run SPF from the command line with setting the java library path. For example (macOS):
Console Output
If you have any issues with these instructions, please send an email to Yannic Noller.