Requirements:

To run the benchmarks using the benchmark definitions in benchmarks/CPAchecker/test/test-sets/, you need cgroups.
ESBMC requires the openssl library to be installed.
The benchmark script requires python 2.7.
CPAchecker requires Java 7 and ant.

CPAchecker can be obtained by checking out revision 15499 from our SVN repository at https://svn.sosy-lab.org/software/cpachecker/trunk
Additionally required test set definitions, configurations and external executables are provided in the supplementary archive. Copy the contents of benchmarks/CPAchecker over your local copy of the CPAchecker trunk.
The tools CBMC and ESBMC are placed in subdirectories of the CPAchecker directory, to enable convenient bulk execution of the benchmarks:
benchmarks/CPAchecker/cbmc
benchmarks/CPAchecker/esbmc

The data presented in the paper are also included in this archive: benchmarks/data

-------------------------------------------------------------------------------

To run the CBMC benchmarks:
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/cbmc-kInduction.xml

To run the ESBMC benchmarks (both sequential and parallel):
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/esbmc-kInduction.xml

To run the CPAchecker k-induction benchmarks for the configuration using continuous refinement of invariants:
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/cpachecker-kInduction.xml

To run the CPAchecker k-induction benchmarks for the configuration using no auxiliary invariants:
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/cpachecker-kInduction-no-inv.xml

To run the CPAchecker k-induction benchmarks for the (0,1,t)-configuration using static invariant generation:
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/cpachecker-kInduction-0-1.xml

To run the CPAchecker k-induction benchmarks for the (16,2,t)-configuration using static invariant generation:
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/cpachecker-kInduction-16-2.xml

To run the CPAchecker k-induction benchmarks for the (16,2,f)-configuration using static invariant generation:
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/cpachecker-kInduction-16-2-no-widening.xml

To run the CPAchecker k-induction benchmarks for the configuration using the unsound havocing heuristic introduced by ESBMC instead of sound invariant generation:
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/cpachecker-kInduction-unsound-no-inv.xml

To run the CPAchecker predicate analysis benchmarks:
  cd benchmarks/CPAchecker
  ./scripts/benchmark.py test/test-sets/cpachecker-predicate.xml

-------------------------------------------------------------------------------

You can run also run single verification tasks.
benchmarks/CPAchecker/test/programs/benchmarks/ contains the programs from the competition on software verification.

To verify a single program <path_to_file> with CBMC k-induction:
  cd benchmarks/CPAchecker/cbmc
  ./k-induction.sh <path_to_file> <k-upper-bound>

To verify a single program <path_to_file> with sequential ESBMC k-induction:
  cd benchmarks/CPAchecker/esbmc
  ./esbmc-wrapper <path_to_file>

To verify a single program <path_to_file> with parallel ESBMC k-induction:
  cd benchmarks/CPAchecker/esbmc
  run ./esbmc-wrapper -p <path_to_file>

To verify a single program <path_to_file> with the CPAchecker k-induction configuration using continuous refinement of invariants:
  cd benchmarks/CPAchecker
  ./scripts/cpa.sh -bmc-induction -setprop cfa.useMultiEdges=true -setprop bmc.addInvariantsByInduction=false -spec test/programs/benchmarks/PropertyERROR.prp <path_to_file>

To verify a single program <path_to_file> with the CPAchecker k-induction configuration using no auxiliary invariants:
  cd benchmarks/CPAchecker
  ./scripts/cpa.sh -bmc-induction -setprop cfa.useMultiEdges=true -setprop bmc.addInvariantsByInduction=false -setprop bmc.useInvariantsForInduction=false -spec test/programs/benchmarks/PropertyERROR.prp <path_to_file>

To verify a single program <path_to_file> with the CPAchecker k-induction (0,1,t)-configuration using static invariant generation:
  cd benchmarks/CPAchecker
  ./scripts/cpa.sh -bmc-induction -setprop cfa.useMultiEdges=true -setprop bmc.addInvariantsByInduction=false -setprop invariantGeneration.config=config/invariantGeneration-static-0-1.properties -spec test/programs/benchmarks/PropertyERROR.prp <path_to_file>

To verify a single program <path_to_file> with the CPAchecker k-induction (16,2,t)-configuration using static invariant generation:
  cd benchmarks/CPAchecker
  ./scripts/cpa.sh -bmc-induction -setprop cfa.useMultiEdges=true -setprop bmc.addInvariantsByInduction=false -setprop invariantGeneration.config=config/invariantGeneration-static-16-2.properties -spec test/programs/benchmarks/PropertyERROR.prp <path_to_file>

To verify a single program <path_to_file> with the CPAchecker k-induction (16,2,f)-configuration using static invariant generation:
  cd benchmarks/CPAchecker
  ./scripts/cpa.sh -bmc-induction -setprop cfa.useMultiEdges=true -setprop bmc.addInvariantsByInduction=false -setprop invariantGeneration.config=config/invariantGeneration-static-16-2-no-widening.properties -spec test/programs/benchmarks/PropertyERROR.prp <path_to_file>

To verify a single program <path_to_file> with the CPAchecker k-induction configuration using the unsound havocing heuristic introduced by ESBMC instead of sound invariant generation:
  cd benchmarks/CPAchecker
  ./scripts/cpa.sh -bmc-induction -setprop cfa.useMultiEdges=true -setprop bmc.addInvariantsByInduction=false -setprop bmc.havocLoopTerminationConditionVariablesOnly=true -spec test/programs/benchmarks/PropertyERROR.prp <path_to_file>

To verify a single program <path_to_file> with CPAchecker predicate analysis:
  cd benchmarks/CPAchecker
  ./scripts/cpa.sh -predicateAnalysis -spec test/programs/benchmarks/PropertyERROR.prp <path_to_file>

-------------------------------------------------------------------------------

To produce a user-friendly HTML presentation of benchmark data produced by the benchmark script,
./benchmarks/CPAchecker/scripts/table-generator.py <results_1.xml> [<results_?.xml> ...]
