gib# out run [klee] test/sym/cast-i.pkg.c v.O2 -O2 valid gib# cmd /usr/bin/env gib# srcdir=/home/xrockai/src/divine/nightly gib# PATH=/home/xrockai/src/divine/nightly/test/lib:/usr/bin:/bin:/opt/klee/bin gib# sh gib# /home/xrockai/src/divine/nightly/test/lib/check_klee gib# test/sym/cast-i.pkg.c gib# v.O2 gib# gib# -O2 gib# gib# gib# gib# gib# gib# valid expect --result error --location-comment ERROR cc -o test.bc -O2 /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c verify --symbolic --solver stp test.bc + klee.dios --version + ALLOWED_OPTS=nofail:malloc simfail:malloc nofail:vfs simfail:vfs + seq 5 + ALLOWED_OPTS=ALLOWED_OPTS nondet-level:1 + ALLOWED_OPTS=ALLOWED_OPTS nondet-level:2 + ALLOWED_OPTS=ALLOWED_OPTS nondet-level:3 + ALLOWED_OPTS=ALLOWED_OPTS nondet-level:4 + ALLOWED_OPTS=ALLOWED_OPTS nondet-level:5 + RESULT= + TYPE= + VALUE= + . ./script + expect --result error --location-comment ERROR + [ 4 -ne 0 ] + RESULT=error + shift + shift + [ 2 -ne 0 ] + TYPE=--location-comment + VALUE=ERROR + shift + shift + [ 0 -ne 0 ] + cc -o test.bc -O2 /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c + opts= + [ 4 -ne 0 ] + out=test.bc + shift + shift + [ 2 -ne 0 ] + opts= -O2 + shift + [ 1 -ne 0 ] + input_file=/home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c + shift + [ 0 -ne 0 ] + divine cc -o pre-test.bc /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c -O2 /dios/config/seqklee.bc -C,-lsys,-lrst,-lc++abi,-lc,-larch_klee compiling /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c:17:12: warning: incompatible integer to pointer conversion returning 'unsigned long' from a function with result type 'void *' return __VERIFIER_nondet_ulong(); ^~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. compiling /dios/config/seqklee.bc + lart pre-test.bc test.bc functionmeta fuse-ctors setting up pass: functionmeta, options = setting up pass: fuse-ctors, options = + verify --symbolic --solver stp test.bc + echo verify verify + opts= + [ 4 -ne 0 ] + shift + [ 3 -ne 0 ] + shift + shift + [ 1 -ne 0 ] + file=test.bc + shift + [ 0 -ne 0 ] + klee.dios -disable-verify -entry-point=klee_boot -exit-on-error -output-dir=_klee_out -check-overshift=false test.bc + tee klee.out KLEE: WARNING: Module and host target triples do not match: 'x86_64-unknown-none-elf' != 'x86_64-pc-linux-gnu' This may cause unexpected crashes or assertion violations. KLEE: output directory is "/var/obj/xrockai-divine-nightly.semidbg/scratch.1602205/_klee_out" KLEE: Using Z3 solver backend WARNING: this target does not support the llvm.stacksave intrinsic. KLEE: WARNING ONCE: unsupported intrinsic llvm.experimental.noalias.scope.decl warning: Linking two modules of different target triples: 'klee_div_zero_check64_Debug+Asserts.bc' is 'x86_64-unknown-linux-gnu' whereas 'test.bc' is 'x86_64-unknown-none-elf' KLEE: WARNING: undefined reference to function: klee_free KLEE: WARNING: undefined reference to function: klee_malloc about to __boot:0 KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. about to run the scheduler:0 KLEE: ERROR: /dios/libc/stdio/_PDCLIB_print.c:109: illegal instruction KLEE: NOTE: now ignoring this error at this location KLEE: ERROR: EXITING ON ERROR: Error: illegal instruction File: /dios/libc/stdio/_PDCLIB_print.c Line: 109 assembly.ll line: 42439 State: 2 Stack: #000042439 in int2base(value=22, status=94073429947072) at /dios/libc/stdio/_PDCLIB_print.c:109 #100042177 in _PDCLIB_print(spec=94073428885891, status=94073429947072) at /dios/libc/stdio/_PDCLIB_print.c:537 #200040551 in _vcbprintf(p=94073425842256, cb=94073425768616, format=94073428885888, arg=94073433007616) at /dios/libc/stdio/_vcbprintf.c:57 #300037903 in vsnprintf(s=94073433161936, n=200, format=94073428885888, arg=94073433007616) at /dios/libc/stdio/vsnprintf.c:32 #400037883 in snprintf(s=94073433161936, n=200, format=94073428885888) at /dios/libc/stdio/snprintf.c:12 #500034192 in __assert_fail(stmt=94073425771280, file=94073425931328, line=22, fun=94073425839040) at /dios/libc/_PDCLIB/assert.c:18 #600004641 in main() at /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c:22 #700036348 in __dios_start(l=0, argc=1, argv=94073430837256, envp=94073430898184) at /dios/libc/sys/start.cpp:94 #800010803 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv() at /dios/sys/sched_null.hpp:168 #900045353 in klee_boot(argc=1, argv=94073395458304) at /dios/arch/klee/boot.c:41 + grep -m1 -n /\*.*ERROR.*\*/ /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c + cut -d: -f1 + line=22 + grep /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c:22 klee.out #600004641 in main() at /home/xrockai/src/divine/nightly/test/sym/cast-i.pkg.c:22