[ 0:00] + cat [ 0:00] + sim test.c [ 0:00] compiling test.c [ 0:00] [ 0:11] ^ —————. —.— . . —.— . . .————— . . [ 0:11] ——— | | | | | | |\ | | | | [ 0:11] —(o)— | | | | | | | \ | |———— '————| [ 0:11] ——————— | | | \ / | | \| | | [ 0:11] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:11] [ 0:11] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:11] # executing __boot at /divine/src/dios/core/dios.cpp:169 [ 0:11] > start [ 0:11] # a new program state was stored as #1 [ 0:14] # active threads: [0:0] [ 0:14] # a new program state was stored as #2 [ 0:15] # active threads: [0:0] [ 0:15] # executing main at test.c:9 [ 0:15] > step --over [ 0:15] %01 = alloca [i32 1 d] # [heap* 8b5b50af 0 ddp] [ 0:15] # executing main at test.c:10 [ 0:15] > source [ 0:15] 9 int main() { [ 0:15] >> 10 struct BF x = { .a = 2, .b = -5, .c = 8, .d = 1 }; [ 0:15] 11 return 0; [ 0:15] 12 } [ 0:15] # executing main at test.c:10 [ 0:15] > step [ 0:15] %04 = call @memcpy %03 [global* 1 0 ddp] [i64 8 d] # [global* 0 0 uun] [ 0:15] # executing main at test.c:11 [ 0:15] > show .x [ 0:15] attributes: [ 0:15] address: heap* 8b5b50af 0+0 [ 0:15] type: BF [ 0:15] shared: 0 [ 0:15] .a: [ 0:15] type: int [ 0:15] value: [i16 2 d] [ 0:15] .b: [ 0:15] type: int [ 0:15] value: [i16 123 d] [ 0:15] .c: [ 0:15] type: int [ 0:15] value: [i32 8 d] [ 0:15] .d: [ 0:15] type: char [ 0:15] value: [i32 1 d] [ 0:15] # executing main at test.c:11 [ 0:15] [ 0:16] = expected ========== [ 0:16] > start [ 0:16] > step --over [ 0:16] > source [ 0:16] > step [ 0:16] > show .x [ 0:16] + a: [ 0:16] + value:.*[i16 2 d] [ 0:16] + b: [ 0:16] + value:.*[i16 123 d] [ 0:16] + c: [ 0:16] + value:.*[i32 8 d] [ 0:16] + d: [ 0:16] + value:.*[i8 1 d] [ 0:16] [ 0:16] = matched =========== [ 0:16] > start | ^> start [ 0:16] > step --over | ^> step --over [ 0:16] > source | ^> source [ 0:16] > step | ^> step [ 0:16] > show .x | ^> show .x [ 0:16] .a: | a: [ 0:16] value: [i16 2 d] | value:.*[i16 2 d] [ 0:16] .b: | b: [ 0:16] value: [i16 123 d] | value:.*[i16 123 d] [ 0:16] .c: | c: [ 0:16] value: [i32 8 d] | value:.*[i32 8 d] [ 0:16] .d: | d: [ 0:16] value: [i32 1 d] | value:.*[i8 1 d] [ 0:16] + check debris