[ 0:01] | load /home/xrockai/src/divine/nightly/test/undef/undef.31-error.c undef.31-error.c [ 0:01] | expect --result error --location undef.31-error.c:4 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc undef.31-error.c [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit testcase.bc [ 0:01] compiling undef.31-error.c [ 0:01] undef.31-error.c:4:28: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [ 0:01] switch ( x ) { case 0: exit( 2 ); default: exit( 1 ); } /* ERROR */ [ 0:01] ^ [ 0:01] undef.31-error.c:4:28: note: include the header or explicitly provide a declaration for 'exit' [ 0:01] 1 warning generated. [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:04] booting … done [ 0:04] states per second: 60.6061 [ 0:04] state count: 2 [ 0:04] mips: 0.2 [ 0:04] [ 0:04] error found: yes [ 0:04] error trace: | [ 0:04] FAULT: switch on an undefined value [ 0:04] [0] FATAL: control error in userspace [ 0:04] [ 0:04] 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: main [ 0:04] location: undef.31-error.c:4 [ 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: switch on an undefined value [ 0:08] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:08] # NOTE: $frame in main [ 0:08] > backtrace [ 0:08] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:08] main at undef.31-error.c:4 [ 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 main