[ 0:00] | load /var/obj/divine-nightly/semidbg/test/_expand/sym/cast-d.pkg.cpp/v.Os.cpp v.Os.cpp [ 0:00] | expect --result error --location v.Os.cpp:25 [ 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 stp --symbolic testcase.bc [ 0:00] compiling v.Os.cpp [ 0:00] loading bitcode … DiOS … LART … RR … constants … done [ 0:10] booting … done [ 0:11] states per second: 10.9489 [ 0:11] state count: 3 [ 0:11] mips: 0.25 [ 0:11] symbolic: 1 [ 0:11] [ 0:11] error found: yes [ 0:11] error trace: | [ 0:11] ASSUME (not (bvslt ((_ extract 15 0) var_1) #x0000)) [ 0:11] ASSUME (and (not (bvslt ((_ extract 15 0) var_1) #x0000)) (= (bvadd (bvshl var_1 #x00000010) #x00010000) #x80000000)) [ 0:11] ASSUME (and (and (not (bvslt ((_ extract 15 0) var_1) #x0000)) (= (bvadd (bvshl var_1 #x00000010) #x00010000) #x80000000)) (not (bvsgt (bvadd (bvshl var_1 #x00000010) #x00010000) #x00000000))) [ 0:11] FAULT: v.Os.cpp:25: int main(): assertion 'y != -32768' failed [ 0:11] [0] FATAL: assertion failure in userspace [ 0:11] [ 0:11] 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.Os.cpp:25 [ 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:23] ^ —————. —.— . . —.— . . .————— . . [ 0:23] ——— | | | | | | |\ | | | | [ 0:23] —(o)— | | | | | | | \ | |———— '————| [ 0:23] ——————— | | | \ / | | \| | | [ 0:23] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:23] [ 0:23] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:23] traced states: [ 0:24] ▶ state #1 [new] -- active threads: [0:0] -- [ 0:24] T: FAULT: v.Os.cpp:25: int main(): assertion 'y != -32768' failed [ 0:24] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:24] # NOTE: $frame in __dios_fault [ 0:24] > backtrace [ 0:24] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:24] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:24] lart.__assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 0:24] main at v.Os.cpp:25 [ 0:24] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:24] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:24] # NOTE: $frame in __dios_fault