Skip to content

Commit 070066e

Browse files
committed
test: update expected outputs for interior mutation tests
1 parent 14bce58 commit 070066e

File tree

3 files changed

+40
-15
lines changed

3 files changed

+40
-15
lines changed

kmir/src/tests/integration/data/prove-rs/show/interior-mut-fail.main.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
44
│ span: 0
55
6-
│ (198 steps)
6+
│ (866 steps)
77
└─ 3 (stuck, leaf)
8-
#traverseProjection ( toLocal ( 11 ) , thunk ( #cast ( PtrLocal ( 3 , place ( ..
9-
span: 91
8+
#setUpCalleeData ( monoItemFn ( ... name: symbol ( "** UNKNOWN FUNCTION **" ) ,
9+
span: 32
1010

1111

1212
┌─ 2 (root, leaf, target, terminal)

kmir/src/tests/integration/data/prove-rs/show/interior-mut2-fail.main.expected

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
44
│ span: 0
55
6-
│ (185 steps)
7-
└─ 3 (stuck, leaf)
8-
#traverseProjection ( toLocal ( 2 ) , thunk ( #cast ( PtrLocal ( 3 , place ( ...
9-
span: 53
10-
11-
12-
┌─ 2 (root, leaf, target, terminal)
6+
│ (725 steps)
7+
├─ 3 (terminal)
138
│ #EndProgram ~> .K
9+
│ function: main
10+
11+
┊ constraint: true
12+
┊ subst: ...
13+
└─ 2 (leaf, target, terminal)
14+
#EndProgram ~> .K
15+
1416

1517

kmir/src/tests/integration/data/prove-rs/show/interior-mut3-fail.main.expected

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,34 @@
2626
│ #execBlockIdx ( basicBlockIdx ( 8 ) ) ~> .K
2727
│ function: main
2828
29-
│ (8 steps)
30-
└─ 7 (stuck, leaf)
31-
#traverseProjection ( toLocal ( 2 ) , thunk ( #cast ( PtrLocal ( 1 , place ( ...
32-
function: main
33-
span: 80
29+
│ (111 steps)
30+
├─ 7
31+
│ #expect ( thunk ( #applyBinOp ( binOpEq , thunk ( #applyBinOp ( binOpBitAnd , th
32+
│ function: main
33+
34+
┃ (1 step)
35+
┣━━┓
36+
┃ │
37+
┃ ├─ 8
38+
┃ │ AssertError ( assertMessageMisalignedPointerDereference ( ... required: operandC
39+
┃ │ function: main
40+
┃ │
41+
┃ │ (1 step)
42+
┃ └─ 10 (stuck, leaf)
43+
┃ #ProgramError ( AssertError ( assertMessageMisalignedPointerDereference ( ... re
44+
┃ function: main
45+
46+
┗━━┓
47+
48+
├─ 9
49+
│ #execBlockIdx ( basicBlockIdx ( 7 ) ) ~> .K
50+
│ function: main
51+
52+
│ (17 steps)
53+
└─ 11 (stuck, leaf)
54+
#setLocalValue ( place ( ... local: local ( 1 ) , projection: .ProjectionElems )
55+
function: main
56+
span: 79
3457

3558

3659
┌─ 2 (root, leaf, target, terminal)

0 commit comments

Comments
 (0)