./verifast-validate-witness.sh sv-benchmarks/c/loop-invariants/mod4.c ./results/automizer-verification-files/SV-COMP24_unreach-call/mod4.yml/witness-2.1.yml


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


+ PROGRAM=sv-benchmarks/c/loop-invariants/mod4.c
+ WITNESS=./results/automizer-verification-files/SV-COMP24_unreach-call/mod4.yml/witness-2.1.yml
++ basename sv-benchmarks/c/loop-invariants/mod4.c
+ FILE=mod4.c
++ echo mod4
++ sed 's/[-\.]/_/g' -
+ SANITIZED=mod4
+ INSTRUMENTED_PROGRAM=mod4__verifast_instrumented.c
+ instrument_program_cli.py --program sv-benchmarks/c/loop-invariants/mod4.c --witness ./results/automizer-verification-files/SV-COMP24_unreach-call/mod4.yml/witness-2.1.yml --output-file mod4__verifast_instrumented.c --verifast True
['abort', 'reach_error', '__VERIFIER_nondet_int', '__VERIFIER_assert', 'main']
[]
ILP32
[('((x % 4) == 0)', 20, True)]
[('__VERIFIER_assert', '(cond != 0)', '(cond != 0)')]
[('((x % 4) == 0)', 20, True)]
[('abort', 'true', 'true'), ('reach_error', 'false', 'true'), ('__VERIFIER_nondet_int', 'true', 'true'), ('__VERIFIER_assert', '(cond != 0)', '(cond != 0)'), ('main', 'module(mod4__verifast_instrumented, true)', 'junk()')]
+ sed -i 's|__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__))||g' mod4__verifast_instrumented.c
+ verifast -stats -verbose 2 -disable_overflow_check -allow_dead_code -target ILP32 -read_options_from_source_file -c mod4__verifast_instrumented.c
mod4__verifast_instrumented.c
  0.035645s: mod4__verifast_instrumented.c(26,5-9): Function 'main': Function type implementation check
  0.035702s: /storage/repos/SV-Transformer-Library/verifast-24.08.30-2-gb1220004/bin/prelude.h(1084,18-24): Producing assertion
  0.035718s: /storage/repos/SV-Transformer-Library/verifast-24.08.30-2-gb1220004/bin/prelude.h(1084,49-51): Producing assertion
  0.035733s: /storage/repos/SV-Transformer-Library/verifast-24.08.30-2-gb1220004/bin/prelude.h(1084,61-62): Producing assertion
  0.035742s: /storage/repos/SV-Transformer-Library/verifast-24.08.30-2-gb1220004/bin/prelude.h(1084,64-68): Producing assertion
  0.035764s: mod4__verifast_instrumented.c(27,14-20): Consuming assertion
  0.035780s: mod4__verifast_instrumented.c(28,13-17): Producing assertion
  0.035792s: /storage/repos/SV-Transformer-Library/verifast-24.08.30-2-gb1220004/bin/prelude.h(1085,17-21): Consuming assertion
  0.035800s: mod4__verifast_instrumented.c(26,5-9): Cleaning up dummy fraction chunks
  0.035808s: mod4__verifast_instrumented.c(26,5-9): Leak check.
  0.035845s: mod4__verifast_instrumented.c(12,6-17): Verifying function 'reach_error'
  0.035861s: mod4__verifast_instrumented.c(13,14-19): Producing assertion
  0.035881s: mod4__verifast_instrumented.c(18,6-23): Verifying function '__VERIFIER_assert'
  0.035889s: mod4__verifast_instrumented.c(19,20-22): Producing assertion
  0.035908s: mod4__verifast_instrumented.c(18,6-23): Executing statement
  0.035924s: mod4__verifast_instrumented.c(21,4-6): Executing statement
  0.035946s: mod4__verifast_instrumented.c(24,3-9): Executing return statement
  0.035962s: mod4__verifast_instrumented.c(20,19-21): Consuming assertion
  0.035974s: mod4__verifast_instrumented.c(25,1-2): Cleaning up dummy fraction chunks
  0.035982s: mod4__verifast_instrumented.c(25,1-2): Leak check.
  0.035998s: mod4__verifast_instrumented.c(26,5-9): Verifying function 'main'
  0.036006s: mod4__verifast_instrumented.c(27,14-20): Producing assertion
  0.036018s: mod4__verifast_instrumented.c(30,9-20): Executing statement
  0.036038s: mod4__verifast_instrumented.c(26,5-9): Executing statement
  0.036054s: mod4__verifast_instrumented.c(31,18-19): Executing statement
  0.036066s: mod4__verifast_instrumented.c(32,1-6): Executing statement
  0.036081s: mod4__verifast_instrumented.c(33,24-26): Consuming assertion
  0.036098s: mod4__verifast_instrumented.c(33,24-26): Producing assertion
  0.036113s: mod4__verifast_instrumented.c(32,1-6): Evaluating loop condition
  0.036133s: mod4__verifast_instrumented.c(32,8-29): Verifying call
  0.036142s: mod4__verifast_instrumented.c(16,14-18): Consuming assertion
  0.036161s: mod4__verifast_instrumented.c(17,13-17): Producing assertion
  0.036174s: mod4__verifast_instrumented.c(34,5-6): Executing statement
  0.036188s: mod4__verifast_instrumented.c(35,7-9): Executing statement
  0.036206s: mod4__verifast_instrumented.c(33,24-26): Consuming assertion
  0.036229s: mod4__verifast_instrumented.c(33,24-26): Consuming expression
mod4__verifast_instrumented.c(33,24-26): Cannot prove condition. (Cannot prove %((x + 4), 4) = 0.)