[ 0:01] compiling /home/xrockai/src/divine/nightly/test/demo/1.constants.c [ 0:01] /home/xrockai/src/divine/nightly/test/demo/1.constants.c:15:10: warning: passing 'const int *' to parameter of type 'int *' discards qualifiers [ 0:01] foo( &y ); [ 0:01] ^~ [ 0:01] /home/xrockai/src/divine/nightly/test/demo/1.constants.c:7:16: note: passing argument to parameter 'val' here [ 0:01] void foo( int *val ) { [ 0:01] ^ [ 0:01] /home/xrockai/src/divine/nightly/test/demo/1.constants.c:16:10: warning: passing 'const int *' to parameter of type 'int *' discards qualifiers [ 0:01] foo( &x ); [ 0:01] ^~ [ 0:01] /home/xrockai/src/divine/nightly/test/demo/1.constants.c:7:16: note: passing argument to parameter 'val' here [ 0:01] void foo( int *val ) { [ 0:01] ^ [ 0:01] 2 warnings generated. [ 0:01] states per second: 35.4839 [ 0:17] state count: 44 [ 0:17] mips: 0.32 [ 0:17] [ 0:21] error found: yes [ 0:21] error trace: | [ 0:21] [0] foo got val 10 [ 0:21] [0] val set to 16 [ 0:21] [0] foo got val 42 [ 0:21] FAULT: attempted write to a constant location [global* 2 0 ddp] [ 0:21] [0] FATAL: memory error in userspace [ 0:21] [ 0:21] active stack: [ 0:22] - symbol: void {Fault}::handler<{Context} >(_VM_Fault, _VM_Frame*, void (*)(), ...) [ 0:22] location: /divine/include/dios/core/fault.hpp:187 [ 0:22] - symbol: foo [ 0:22] location: /home/xrockai/src/divine/nightly/test/demo/1.constants.c:9 [ 0:22] - symbol: main [ 0:22] location: /home/xrockai/src/divine/nightly/test/demo/1.constants.c:15 [ 0:22] - symbol: _start [ 0:22] location: /divine/src/libc/functions/sys/start.cpp:76 [ 0:22] a report was written to verify.out [ 0:22] [ 0:32] ^ —————. —.— . . —.— . . .————— . . [ 0:32] ——— | | | | | | |\ | | | | [ 0:32] —(o)— | | | | | | | \ | |———— '————| [ 0:32] ——————— | | | \ / | | \| | | [ 0:32] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:32] [ 0:32] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:32] traced states: #1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19 #20 #21 #22 #23 #24 #25 #26 #27 #28 #29 #30 #31 #32 #33 #34 #35 #36 #37 #38 #39 #40 #41 #42 #43 [ 0:37] trace: [ 0:37] T: [0] foo got val 10 [ 0:37] T: [0] val set to 16 [ 0:37] T: [0] foo got val 42 [ 0:37] # active threads: [0:0] [ 0:37] T: FAULT: attempted write to a constant location [global* 2 0 ddp] [ 0:37] T: [0] FATAL: memory error in userspace [ 0:37] # executing void {Fault}::handler<{Context} >(_VM_Fault, _VM_Frame*, void (*)(), ...) at /divine/include/dios/core/fault.hpp:187 [ 0:37] # NOTE: $frame in foo [ 0:37] > backtrace [ 0:37] void {Fault}::handler<{Context} >(_VM_Fault, _VM_Frame*, void (*)(), ...) at /divine/include/dios/core/fault.hpp:187 [ 0:37] foo at /home/xrockai/src/divine/nightly/test/demo/1.constants.c:9 [ 0:37] main at /home/xrockai/src/divine/nightly/test/demo/1.constants.c:15 [ 0:37] _start at /divine/src/libc/functions/sys/start.cpp:76 [ 0:37] # executing void {Fault}::handler<{Context} >(_VM_Fault, _VM_Frame*, void (*)(), ...) at /divine/include/dios/core/fault.hpp:187 [ 0:37] # NOTE: $frame in foo