[ 0:00] | load /home/xrockai/src/divine/nightly/test/vm/call-implicit-wrong.c call-implicit-wrong.c [ 0:00] | expect --result error --location call-implicit-wrong.c:7 [ 0:00] | expect --trace FAULT: --trace-count 1 [ 0:00] | cc -o testcase.bc /home/xrockai/src/divine/nightly/test/vm/call.helper.c call-implicit-wrong.c [ 0:00] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit -std=c89 testcase.bc [ 0:00] compiling /home/xrockai/src/divine/nightly/test/vm/call.helper.c [ 0:00] compiling call-implicit-wrong.c [ 0:00] call-implicit-wrong.c:7:12: warning: implicit declaration of function 'baz' is invalid in C99 [ 0:00] return baz( 2, y ) - 42; /* ERROR */ /* return value of baz is long */ [ 0:00] ^ [ 0:00] 1 warning generated. [ 0:00] loading bitcode … DiOS … LART … RR … constants … done [ 0:03] booting … done [ 0:03] states per second: 62.5 [ 0:03] state count: 2 [ 0:03] mips: 0.21 [ 0:03] [ 0:03] error found: yes [ 0:03] error trace: | [ 0:03] FAULT: The returned value is bigger than expected by the caller [ 0:03] [0] FATAL: control error in userspace [ 0:03] [ 0:03] active stack: [ 0:04] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:04] location: /dios/sys/fault.hpp:118 [ 0:04] - symbol: baz [ 0:04] location: /home/xrockai/src/divine/nightly/test/vm/call.helper.c:3 [ 0:04] - symbol: main [ 0:04] location: call-implicit-wrong.c:7 [ 0:04] - symbol: __dios_start [ 0:04] location: /dios/libc/sys/start.cpp:94 [ 0:04] + divine sim --batch --skip-init --load-report verify.out [ 0:04] [ 0:07] ^ —————. —.— . . —.— . . .————— . . [ 0:07] ——— | | | | | | |\ | | | | [ 0:07] —(o)— | | | | | | | \ | |———— '————| [ 0:07] ——————— | | | \ / | | \| | | [ 0:07] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:07] [ 0:07] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:07] traced states: [ 0:08] ▶ state #1 [new] -- active threads: [0:0] -- [ 0:08] T: FAULT: The returned value is bigger than expected by the caller [ 0:08] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:08] # NOTE: $frame in baz [ 0:08] > backtrace [ 0:08] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:08] baz at /home/xrockai/src/divine/nightly/test/vm/call.helper.c:3 [ 0:08] main at call-implicit-wrong.c:7 [ 0:08] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:08] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:08] # NOTE: $frame in baz