[ 0:00] | load /var/obj/divine-nightly/semidbg/test/_expand/sym/ret-b.pkg.cpp/v.Os.cpp v.Os.cpp [ 0:00] | expect --result error --location v.Os.cpp:30 [ 0:00] | expect --trace FAULT: --trace-count 1 [ 0:00] | cc -o testcase.bc -std=c++14 -Os v.Os.cpp [ 0:00] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --solver z3 --symbolic testcase.bc [ 0:00] compiling v.Os.cpp [ 0:00] loading bitcode … DiOS … LART … RR … constants … done [ 0:12] booting … done [ 0:12] states per second: 4.75059 [ 0:12] state count: 2 [ 0:12] mips: 0.2 [ 0:12] symbolic: 1 [ 0:13] [ 0:13] error found: yes [ 0:13] error trace: | [ 0:13] ASSUME (not (= (concat #x00000000 #x00000002) #x0000000000000000)) [ 0:13] ASSUME (not (bvslt (bvsrem var_4 #x00000002) #x00000000)) [ 0:13] ASSUME (and (not (bvslt (bvsrem var_4 #x00000002) #x00000000)) (not (bvslt (bvsrem var_4 #x00000002) #x00000001))) [ 0:13] ASSUME (and (and (not (bvslt (bvsrem var_4 #x00000002) #x00000000)) (not (bvslt (bvsrem var_4 #x00000002) #x00000001))) (= (bvsrem var_4 #x00000002) #x00000001)) [ 0:13] FAULT: v.Os.cpp:30: int main(): assertion 'x == 42' failed [ 0:13] [0] FATAL: assertion failure in userspace [ 0:13] [ 0:13] active stack: [ 0:14] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:14] location: /dios/sys/fault.hpp:118 [ 0:14] - symbol: __dios_fault [ 0:14] location: /dios/arch/divm/fault.c:12 [ 0:14] - symbol: lart.__assert_fail [ 0:14] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:14] - symbol: main [ 0:14] location: v.Os.cpp:30 [ 0:14] - symbol: __dios_start [ 0:14] location: /dios/libc/sys/start.cpp:94 [ 0:14] + divine sim --batch --skip-init --load-report verify.out [ 0:14] [ 0:26] ^ —————. —.— . . —.— . . .————— . . [ 0:26] ——— | | | | | | |\ | | | | [ 0:26] —(o)— | | | | | | | \ | |———— '————| [ 0:26] ——————— | | | \ / | | \| | | [ 0:26] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:26] [ 0:26] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:26] traced states: [ 0:26] ▶ state #1 [new] -- active threads: [0:0] -- [ 0:26] T: FAULT: v.Os.cpp:30: int main(): assertion 'x == 42' failed [ 0:26] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:26] # NOTE: $frame in __dios_fault [ 0:26] > backtrace [ 0:26] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:26] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:26] lart.__assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 0:26] main at v.Os.cpp:30 [ 0:26] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:26] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:26] # NOTE: $frame in __dios_fault