[ 0:01] | load /var/obj/divine-nightly/semidbg/test/_expand/sym/cast-i.pkg.c/v.O2.c v.O2.c [ 0:01] | expect --result error --location v.O2.c:20 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc -O2 v.O2.c [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --solver z3 --symbolic testcase.bc [ 0:01] compiling v.O2.c [ 0:01] v.O2.c:14:12: warning: incompatible integer to pointer conversion returning 'unsigned long' from a function with result type 'void *' [ 0:01] return __VERIFIER_nondet_ulong(); [ 0:01] ^~~~~~~~~~~~~~~~~~~~~~~~~ [ 0:01] 1 warning generated. [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:11] booting … done [ 0:11] states per second: 21.7391 [ 0:11] state count: 2 [ 0:11] mips: 0.18 [ 0:11] symbolic: 1 [ 0:12] [ 0:12] error found: yes [ 0:12] error trace: | [ 0:12] ASSUME (not (= var_1 #x0000000000000000)) [ 0:12] FAULT: v.O2.c:20: int main(): assertion '!b' failed [ 0:12] [0] FATAL: assertion failure in userspace [ 0:12] [ 0:12] active stack: [ 0:12] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:12] location: /dios/sys/fault.hpp:118 [ 0:12] - symbol: __dios_fault [ 0:12] location: /dios/arch/divm/fault.c:12 [ 0:12] - symbol: lart.__assert_fail [ 0:12] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:12] - symbol: main [ 0:12] location: v.O2.c:20 [ 0:12] - symbol: __dios_start [ 0:12] location: /dios/libc/sys/start.cpp:94 [ 0:12] + divine sim --batch --skip-init --load-report verify.out [ 0:12] [ 0:22] ^ —————. —.— . . —.— . . .————— . . [ 0:22] ——— | | | | | | |\ | | | | [ 0:22] —(o)— | | | | | | | \ | |———— '————| [ 0:22] ——————— | | | \ / | | \| | | [ 0:22] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:22] [ 0:22] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:22] traced states: [ 0:22] ▶ state #1 [new] -- active threads: [0:0] -- [ 0:22] T: FAULT: v.O2.c:20: int main(): assertion '!b' failed [ 0:22] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:22] # NOTE: $frame in __dios_fault [ 0:22] > backtrace [ 0:22] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:22] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:22] lart.__assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 0:22] main at v.O2.c:20 [ 0:22] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:22] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:22] # NOTE: $frame in __dios_fault