[ 0:01] | load /home/xrockai/src/divine/nightly/test/demo/thread.cpp thread.cpp [ 0:01] | load /home/xrockai/src/divine/nightly/test/demo/demo.h demo.h [ 0:01] | expect --result error --location thread.cpp:18 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc -std=c++14 thread.cpp [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit testcase.bc [ 0:01] compiling thread.cpp [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:09] booting … done [ 0:09] states per second: 109.988 [ 0:12] state count: 359 [ 0:12] mips: 0.28 [ 0:12] [ 0:13] error found: yes [ 0:13] error trace: | [ 0:13] [0] starting thread [ 0:13] [1] thread started [ 0:13] [0] incrementing [ 0:13] [1] thread done [ 0:13] [0] waiting for the thread [ 0:13] [0] thread joined [ 0:13] FAULT: thread.cpp:18: int main(): assertion 'x == 2' 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: __assert_fail [ 0:14] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:14] - symbol: main [ 0:14] location: thread.cpp:18 [ 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:20] ^ —————. —.— . . —.— . . .————— . . [ 0:20] ——— | | | | | | |\ | | | | [ 0:20] —(o)— | | | | | | | \ | |———— '————| [ 0:20] ——————— | | | \ / | | \| | | [ 0:20] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:20] [ 0:20] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:20] traced states: [ 0:20] trace: [ 0:20] T: [0] starting thread [ 0:20] T: [1] thread started [ 0:20] T: [0] incrementing [ 0:20] T: [1] thread done [ 0:20] T: [0] waiting for the thread [ 0:20] ▶ state #19 [new] -- active threads: [0:0] -- [ 0:21] T: [0] thread joined [ 0:21] T: FAULT: thread.cpp:18: int main(): assertion 'x == 2' failed [ 0:21] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:21] # NOTE: $frame in __dios_fault [ 0:21] > backtrace [ 0:21] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:21] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:21] __assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 0:21] main at thread.cpp:18 [ 0:21] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:21] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:21] # NOTE: $frame in __dios_fault