[ 0:00] + cp /home/xrockai/src/divine/nightly/test/lang-c/ptr-arith.c . [ 0:00] + sim ptr-arith.c [ 0:00] compiling ptr-arith.c [ 0:00] [ 0:03] ^ —————. —.— . . —.— . . .————— . . [ 0:03] ——— | | | | | | |\ | | | | [ 0:03] —(o)— | | | | | | | \ | |———— '————| [ 0:03] ——————— | | | \ / | | \| | | [ 0:03] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:03] [ 0:03] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:03] # executing __boot at /dios/config/common.hpp:28 [ 0:03] > help [ 0:03] [ 0:03] SYNOPSIS [ 0:03] [ 0:03] $ exit [options] [ 0:03] $ start [options] [ 0:03] $ breakpoint [options] {vector}* [ 0:03] $ step [options] {string}* [ 0:03] $ stepi [options] {string}* [ 0:03] $ stepa [options] {string}* [ 0:03] $ rewind [options] {string}* [ 0:03] $ backtrace [options] {string}* [ 0:03] $ show [options] {string}* [ 0:03] $ diff [options] {vector}* [ 0:03] $ dot [options] {string}* [ 0:03] $ inspect [options] {string}* [ 0:03] $ tamper [options] {string}* [ 0:03] $ call [options] {string} [ 0:03] $ info [options] {string} [ 0:03] $ up [options] [ 0:03] $ down [options] [ 0:03] $ set [options] {vector}* [ 0:03] $ thread [options] {string}* [ 0:03] $ bitcode [options] {string}* [ 0:03] $ source [options] {string}* [ 0:03] $ setup [options] [ 0:03] [ 0:03] # executing __boot at /dios/config/common.hpp:28 [ 0:03] > start [ 0:03] ▶ state #1 [new] -- active threads: [0:0] -- [ 0:03] ▶ state #2 [new] -- active threads: [0:0] -- [ 0:03] ▶ state #3 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #4 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #5 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #6 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #7 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #8 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #9 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #10 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #11 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #12 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #13 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #14 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #15 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #16 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #17 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #18 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #19 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #20 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #21 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #22 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #23 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #24 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #25 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #26 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #27 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #28 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #29 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #30 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #31 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #32 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #33 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #34 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #35 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #36 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #37 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #38 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #39 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #40 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #41 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #42 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #43 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #44 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #45 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #46 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #47 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #48 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #49 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #50 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #51 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #52 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #53 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #54 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #55 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #56 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #57 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #58 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #59 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #60 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #61 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #62 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #63 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #64 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #65 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #66 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #67 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #68 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #69 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #70 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #71 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #72 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #73 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #74 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #75 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #76 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #77 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #78 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #79 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #80 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #81 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #82 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #83 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #84 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #85 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #86 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #87 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #88 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #89 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #90 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #91 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #92 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #93 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #94 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #95 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #96 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #97 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #98 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #99 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #100 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #101 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #102 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #103 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #104 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #105 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #106 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #107 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #108 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #109 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #110 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #111 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #112 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #113 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #114 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #115 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #116 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #117 [new] -- active threads: [0:0] -- [ 0:04] ▶ state #118 [new] -- active threads: [0:0] -- [ 0:04] # executing main at ptr-arith.c:6 [ 0:04] > step --over [ 0:04] %01 = alloca [i32 1 d] # [alloca* 70fe04e 0 ddp] [ 0:04] # executing main at ptr-arith.c:7 [ 0:04] > step --over [ 0:04] call @llvm.lifetime.start.p0i8 [i64 8 d] %02 [ 0:04] %05 = call @malloc [i64 4 d] # [global* 0 0 uun] [ 0:04] store %05 %01 [ 0:04] # executing main at ptr-arith.c:8 [ 0:04] > step --over [ 0:04] vm.test.crit %06 [i32 8 d] [i32 2 d] __dios_reschedule [ 0:04] ▶ state #119 [new] -- active threads: [0:0] -- [ 0:04] %0a = load %01 # [global* 0 0 ddn] [ 0:04] vm.test.crit %09 [i32 8 d] [i32 1 d] __dios_reschedule [ 0:04] ▶ state #120 [new] -- active threads: [0:0] -- [ 0:04] %0c = getelementptr %0a [i64 1 d] # [global* 0 1 ddn] [ 0:04] %0e = load %01 # [global* 0 0 ddn] [ 0:04] vm.test.crit %0d [i32 8 d] [i32 1 d] __dios_reschedule [ 0:04] ▶ state #121 [new] -- active threads: [0:0] -- [ 0:04] %10 = ptrtoint %0c # [i64 1 d] [ 0:04] %11 = ptrtoint %0e # [i64 0 d] [ 0:04] %12 = sub %10 %11 # [i64 1 d] [ 0:04] %13 = icmp.eq %12 [i64 1 d] # [i1 1 1] [ 0:04] br %13 label %cond.false label %cond.true [ 0:04] br label %cond.end [ 0:04] # executing main at ptr-arith.c:9 [ 0:04] [ 0:05] = expected ========== [ 0:05] + ^# executing __boot [ 0:05] > help [ 0:05] + start [ 0:05] > start [ 0:05] + ^# executing main [ 0:05] > step --over [ 0:05] + ^# executing main at ptr-arith.c:7 [ 0:05] > step --over [ 0:05] + ^# executing main at ptr-arith.c:8 [ 0:05] > step --over [ 0:05] + ^# executing main at ptr-arith.c:9 [ 0:05] [ 0:05] = matched =========== [ 0:05] # executing __boot at /dios/config/common.hpp:28 | ^# executing __boot [ 0:05] > help | ^> help [ 0:05] $ start [options] | start [ 0:05] > start | ^> start [ 0:05] # executing main at ptr-arith.c:6 | ^# executing main [ 0:05] > step --over | ^> step --over [ 0:05] # executing main at ptr-arith.c:7 | ^# executing main at ptr-arith.c:7 [ 0:05] > step --over | ^> step --over [ 0:05] # executing main at ptr-arith.c:8 | ^# executing main at ptr-arith.c:8 [ 0:05] > step --over | ^> step --over [ 0:05] # executing main at ptr-arith.c:9 | ^# executing main at ptr-arith.c:9 [ 0:05] + check debris [ 0:05] + test -e warning