[ 0:01] | load /home/xrockai/src/divine/nightly/test/refine/pointers/realloc-a.c realloc-a.c [ 0:01] | expect --result error --location realloc-a.c:12 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc realloc-a.c [ 0:01] | refine -o nofail:malloc --refinement pointers --output testcase.bc testcase.bc [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --solver stp -o nofail:malloc --lamp pointers --symbolic testcase.bc [ 0:01] compiling realloc-a.c [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:49] booting … done [ 0:50] states per second: 16.6667 [ 0:50] state count: 2 [ 0:50] mips: 0.24 [ 0:50] symbolic: 1 [ 0:50] [ 0:50] error found: yes [ 0:50] error trace: | [ 0:50] ASSUME (not (= var_1 #x0000000000000000)) [ 0:50] ASSUME (and (not (= var_1 #x0000000000000000)) (not (not (= #x447c585f00000000 var_1)))) [ 0:50] FAULT: realloc-a.c:12: int main(): assertion 'x != y' failed [ 0:50] [0] FATAL: assertion failure in userspace [ 0:50] [ 0:50] active stack: [ 0:51] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:51] location: /dios/sys/fault.hpp:118 [ 0:51] - symbol: __dios_fault [ 0:51] location: /dios/arch/divm/fault.c:12 [ 0:51] - symbol: lart.__assert_fail [ 0:51] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:51] - symbol: main [ 0:51] location: realloc-a.c:12 [ 0:51] - symbol: __dios_start [ 0:51] location: /dios/libc/sys/start.cpp:94 [ 0:51] + divine sim --batch --skip-init --load-report verify.out [ 0:51] [ 1:11] ^ —————. —.— . . —.— . . .————— . . [ 1:11] ——— | | | | | | |\ | | | | [ 1:11] —(o)— | | | | | | | \ | |———— '————| [ 1:11] ——————— | | | \ / | | \| | | [ 1:11] ————————— —————' —'— ' —'— ' ' '————— ' [ 1:11] [ 1:11] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 1:11] traced states: [ 1:12] ▶ state #1 [new] -- active threads: [0:0] -- [ 1:12] T: FAULT: realloc-a.c:12: int main(): assertion 'x != y' failed [ 1:12] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 1:12] # NOTE: $frame in __dios_fault [ 1:12] > backtrace [ 1:12] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 1:12] __dios_fault at /dios/arch/divm/fault.c:12 [ 1:12] lart.__assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 1:12] main at realloc-a.c:12 [ 1:12] __dios_start at /dios/libc/sys/start.cpp:94 [ 1:12] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 1:12] # NOTE: $frame in __dios_fault