gib# out run [klee] test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c 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/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c expect --result valid cc -o test.bc -D_PDCLIB_BUILD -DTEST -I/home/xrockai/src/divine/nightly//dios/libc/_PDCLIB /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c verify -o nofail:malloc -o nofail:vfs 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 valid + [ 2 -ne 0 ] + RESULT=valid + shift + shift + [ 0 -ne 0 ] + cc -o test.bc -D_PDCLIB_BUILD -DTEST -I/home/xrockai/src/divine/nightly//dios/libc/_PDCLIB /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c + opts= + [ 6 -ne 0 ] + out=test.bc + shift + shift + [ 4 -ne 0 ] + opts= -D_PDCLIB_BUILD + shift + [ 3 -ne 0 ] + opts= -D_PDCLIB_BUILD -DTEST + shift + [ 2 -ne 0 ] + opts= -D_PDCLIB_BUILD -DTEST -I/home/xrockai/src/divine/nightly//dios/libc/_PDCLIB + shift + [ 1 -ne 0 ] + input_file=/home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c + shift + [ 0 -ne 0 ] + divine cc -o pre-test.bc /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c -D_PDCLIB_BUILD -DTEST -I/home/xrockai/src/divine/nightly//dios/libc/_PDCLIB /dios/config/seqklee.bc -C,-lsys,-lrst,-lc++abi,-lc,-larch_klee compiling /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c:23:44: warning: passing 'char **' to parameter of type 'const char *restrict *' discards qualifiers in nested pointer types TESTCASE(latin1toc32(&c32ptr, &c32rem, &chrptr, &chrrem, &mbs) == true); ^~~~~~~ /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB_test.h:37:28: note: expanded from macro 'TESTCASE' #define TESTCASE( x ) if ( x ) {} \ ^ /home/xrockai/src/divine/nightly//dios/libc/_PDCLIB/_PDCLIB_latin1.c:14:42: note: passing argument to parameter 'p_inbuf' here const char *restrict *restrict p_inbuf, ^ /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c:38:44: warning: passing 'char32_t **' (aka 'unsigned int **') to parameter of type 'const char32_t *restrict *' (aka 'const unsigned int *restrict *') discards qualifiers in nested pointer types TESTCASE(c32tolatin1(&chrptr, &chrrem, &c32ptr, &c32rem, &mbs) == true); ^~~~~~~ /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB_test.h:37:28: note: expanded from macro 'TESTCASE' #define TESTCASE( x ) if ( x ) {} \ ^ /home/xrockai/src/divine/nightly//dios/libc/_PDCLIB/_PDCLIB_latin1.c:37:41: note: passing argument to parameter 'p_inbuf' here const char32_t *restrict *restrict p_inbuf, ^ /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB-_PDCLIB_latin1.chk.c:51:44: warning: passing 'char32_t **' (aka 'unsigned int **') to parameter of type 'const char32_t *restrict *' (aka 'const unsigned int *restrict *') discards qualifiers in nested pointer types TESTCASE(c32tolatin1(&chrptr, &chrrem, &c32ptr, &c32rem, &mbs) == false); ^~~~~~~ /home/xrockai/src/divine/nightly/test/pdclib/_PDCLIB_test.h:37:28: note: expanded from macro 'TESTCASE' #define TESTCASE( x ) if ( x ) {} \ ^ /home/xrockai/src/divine/nightly//dios/libc/_PDCLIB/_PDCLIB_latin1.c:37:41: note: passing argument to parameter 'p_inbuf' here const char32_t *restrict *restrict p_inbuf, ^ 3 warnings 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 -o nofail:malloc -o nofail:vfs test.bc + echo verify verify + opts= + [ 5 -ne 0 ] + expr ALLOWED_OPTS nondet-level:5 : .*nofail:malloc.* + [ ! 0 ] + opts= s:nofail:malloc + shift + shift + [ 3 -ne 0 ] + expr ALLOWED_OPTS nondet-level:5 : .*nofail:vfs.* + [ ! 0 ] + opts= s:nofail:malloc s:nofail:vfs + 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 s:nofail:vfs + 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.1588597/_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 i:1 KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. i:2 about to __boot:0 about to run the scheduler:0 KLEE: done: total instructions = 27365 KLEE: done: completed paths = 0 KLEE: done: partially completed paths = 1 KLEE: done: generated tests = 0 + grep KLEE: done: klee.out KLEE: done: total instructions = 27365 KLEE: done: completed paths = 0 KLEE: done: partially completed paths = 1 KLEE: done: generated tests = 0