gib# out run [klee] test/demo/gtest.chk.cpp 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/demo/gtest.chk.cpp expect --result error --location-comment ERROR cc -o test.bc /home/xrockai/src/divine/nightly/test/demo/gtest.chk.cpp /home/xrockai/src/divine/nightly//test/gtest/gtest-all.cc /home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc -I/home/xrockai/src/divine/nightly//test/gtest -lm verify -o nofail:malloc 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 /home/xrockai/src/divine/nightly/test/demo/gtest.chk.cpp /home/xrockai/src/divine/nightly//test/gtest/gtest-all.cc /home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc -I/home/xrockai/src/divine/nightly//test/gtest -lm + opts= + [ 7 -ne 0 ] + out=test.bc + shift + shift + [ 5 -ne 0 ] + input_file=/home/xrockai/src/divine/nightly/test/demo/gtest.chk.cpp + shift + [ 4 -ne 0 ] + input_file=/home/xrockai/src/divine/nightly//test/gtest/gtest-all.cc + shift + [ 3 -ne 0 ] + input_file=/home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc + shift + [ 2 -ne 0 ] + opts= -I/home/xrockai/src/divine/nightly//test/gtest + shift + [ 1 -ne 0 ] + opts= -I/home/xrockai/src/divine/nightly//test/gtest -lm + shift + [ 0 -ne 0 ] + divine cc -o pre-test.bc /home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc -I/home/xrockai/src/divine/nightly//test/gtest -lm /dios/config/seqklee.bc -C,-lsys,-lrst,-lc++abi,-lc,-larch_klee compiling /home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc 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 -o nofail:malloc test.bc + echo verify verify + opts= + [ 3 -ne 0 ] + expr ALLOWED_OPTS nondet-level:5 : .*nofail:malloc.* + [ ! 0 ] + opts= s:nofail:malloc + 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 s:nofail:malloc + 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.1586131/_klee_out" KLEE: Using Z3 solver backend KLEE: WARNING ONCE: unsupported intrinsic llvm.rint.f64 KLEE: WARNING ONCE: unsupported intrinsic llvm.rint.f32 KLEE: WARNING ONCE: unsupported intrinsic llvm.rint.f80 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: _ZN7testing14InitGoogleTestEPiPPc KLEE: WARNING: undefined reference to function: _ZN7testing8UnitTest11GetInstanceEv KLEE: WARNING: undefined reference to function: _ZN7testing8UnitTest3RunEv KLEE: WARNING: undefined reference to function: klee_free KLEE: WARNING: undefined reference to function: klee_malloc i:1 KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. about to __boot:0 about to run the scheduler:0 KLEE: ERROR: /dios/include/sys/thread.h:326: memory error: out of bound pointer KLEE: NOTE: now ignoring this error at this location KLEE: ERROR: EXITING ON ERROR: Error: memory error: out of bound pointer File: /dios/include/sys/thread.h Line: 326 assembly.ll line: 50542 State: 1 Stack: #000050542 in _ZN6__dios11_mutex_lockERNS_14_InterruptMaskILb1EEEP15pthread_mutex_tb(mask=94920167266992, mutex=94920151832496, wait=true) at /dios/include/sys/thread.h:326 #100050929 in pthread_mutex_lock(mutex=94920151832496) at /dios/libc/pthread/pthread-mutex.cpp:173 #200049451 in mtx_lock(mtx=94920151832496) at /dios/libc/threads/mtx_lock.c:9 #300048308 in _PDCLIB_flockfile(file=94920151832480) at /dios/libc/stdio/flockfile.c:12 #400045158 in vfprintf(stream=94920151832480, format=94920165702208, arg=94920167542208) at /dios/libc/stdio/vfprintf.c:26 #500041906 in printf(format=94920165702208) at /dios/libc/stdio/printf.c:13 #600004904 in main(argc=1, argv=94920168014856) at /home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc:35 #700044215 in __dios_start(l=2, argc=1, argv=94920168014856, envp=94920168092168) at /dios/libc/sys/start.cpp:97 #800018414 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv() at /dios/sys/sched_null.hpp:168 #900053144 in klee_boot(argc=2, argv=94920126931456) at /dios/arch/klee/boot.c:41 Info: address: 94918777241624 next: object at 94920121486336 of size 2760 MO1466[2760] allocated at global:ipio2 + grep -m1 -n /\*.*ERROR.*\*/ /home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc + cut -d: -f1 + line= + grep /home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc: klee.out #600004904 in main(argc=1, argv=94920168014856) at /home/xrockai/src/divine/nightly//test/gtest/gtest_main.cc:35