Skip to content

Commit 9710753

Browse files
committed
test(kmir): refresh proof and execution snapshots
1 parent c1b27da commit 9710753

67 files changed

Lines changed: 769 additions & 8299 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

kmir/src/tests/integration/data/exec-smir/call-with-args/main-a-b-with-int.state

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<kmir>
22
<k>
3-
#setArgFromStack ( 1 , operandCopy ( place (... local: local ( 1 ) , projection: .ProjectionElems ) ) ) ~> #setArgsFromStack ( 2 , operandConstant ( constOperand (... span: span ( 57 ) , userTy: noUserTypeAnnotationIndex , const: mirConst (... kind: constantKindAllocated ( allocation (... bytes: b"\x0b\x00" , provenance: provenanceMap (... ptrs: .ProvenanceMapEntries ) , align: align ( 2 ) , mutability: mutabilityMut ) ) , ty: ty ( 28 ) , id: mirConstId ( 12 ) ) ) ) .Operands ) ~> #execBlock ( basicBlock (... statements: .Statements , terminator: terminator (... kind: terminatorKindReturn , span: span ( 63 ) ) ) ) ~> .K
3+
#setLocalValue ( place (... local: local ( 1 ) , projection: .ProjectionElems ) , Integer ( 10 , 64 , false ) ) ~> #setArgsFromStack ( 2 , operandConstant ( constOperand (... span: span ( 57 ) , userTy: noUserTypeAnnotationIndex , const: mirConst (... kind: constantKindAllocated ( allocation (... bytes: b"\x0b\x00" , provenance: provenanceMap (... ptrs: .ProvenanceMapEntries ) , align: align ( 2 ) , mutability: mutabilityMut ) ) , ty: ty ( 28 ) , id: mirConstId ( 12 ) ) ) ) .Operands ) ~> #execBlock ( basicBlock (... statements: .Statements , terminator: terminator (... kind: terminatorKindReturn , span: span ( 63 ) ) ) ) ~> .K
44
</k>
55
<retVal>
66
noReturn

kmir/src/tests/integration/data/exec-smir/structs-tuples/structs-tuples.state

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<kmir>
22
<k>
3-
#traverseProjection ( toSlot ( 1 ) , thunk ( UnableToDecode ( b"\x00\x00\x00\x00\x00\x00$@" , typeInfoPrimitiveType ( primTypeFloat ( floatTyF64 ) ) ) ) , .ProjectionElems , CtxField ( variantIdx ( 0 ) , ListItem ( Integer ( 10 , 32 , true ) )
4-
ListItem ( BoolVal ( false ) )
5-
ListItem ( thunk ( UnableToDecode ( b"\x00\x00\x00\x00\x00\x00$@" , typeInfoPrimitiveType ( primTypeFloat ( floatTyF64 ) ) ) ) ) , 2 , ty ( 27 ) ) .Contexts ) ~> #readProjection ( false ) ~> #freezer#setLocalValue(_,_)_RT-DATA_KItem_Place_Evaluation1_ ( place (... local: local ( 7 ) , projection: .ProjectionElems ) ~> .K ) ~> #execStmts ( .Statements ) ~> #execTerminator ( terminator (... kind: terminatorKindCall (... func: operandConstant ( constOperand (... span: span ( 50 ) , userTy: noUserTypeAnnotationIndex , const: mirConst (... kind: constantKindZeroSized , ty: ty ( 25 ) , id: mirConstId ( 9 ) ) ) ) , args: operandMove ( place (... local: local ( 5 ) , projection: .ProjectionElems ) ) operandMove ( place (... local: local ( 6 ) , projection: .ProjectionElems ) ) operandMove ( place (... local: local ( 7 ) , projection: .ProjectionElems ) ) .Operands , destination: place (... local: local ( 4 ) , projection: .ProjectionElems ) , target: someBasicBlockIdx ( basicBlockIdx ( 1 ) ) , unwind: unwindActionContinue ) , span: span ( 51 ) ) ) ~> .K
3+
#execTerminatorCall ( ty ( 25 ) , monoItemFn (... name: symbol ( "foo" ) , id: defId ( 8 ) , body: someBody ( body (... blocks: basicBlock (... statements: .Statements , terminator: terminator (... kind: terminatorKindReturn , span: span ( 73 ) ) ) .BasicBlocks , locals: localDecl (... ty: ty ( 1 ) , span: span ( 74 ) , mut: mutabilityMut ) localDecl (... ty: ty ( 16 ) , span: span ( 75 ) , mut: mutabilityNot ) localDecl (... ty: ty ( 26 ) , span: span ( 76 ) , mut: mutabilityNot ) localDecl (... ty: ty ( 27 ) , span: span ( 77 ) , mut: mutabilityNot ) .LocalDecls , argCount: 3 , varDebugInfo: varDebugInfo (... name: symbol ( "_i" ) , sourceInfo: sourceInfo (... span: span ( 75 ) , scope: sourceScope ( 0 ) ) , composite: noVarDebugInfoFragment , value: varDebugInfoContentsPlace ( place (... local: local ( 1 ) , projection: .ProjectionElems ) ) , argumentIndex: someInt ( 1 ) ) varDebugInfo (... name: symbol ( "_b" ) , sourceInfo: sourceInfo (... span: span ( 76 ) , scope: sourceScope ( 0 ) ) , composite: noVarDebugInfoFragment , value: varDebugInfoContentsPlace ( place (... local: local ( 2 ) , projection: .ProjectionElems ) ) , argumentIndex: someInt ( 2 ) ) varDebugInfo (... name: symbol ( "_f" ) , sourceInfo: sourceInfo (... span: span ( 77 ) , scope: sourceScope ( 0 ) ) , composite: noVarDebugInfoFragment , value: varDebugInfoContentsPlace ( place (... local: local ( 3 ) , projection: .ProjectionElems ) ) , argumentIndex: someInt ( 3 ) ) .VarDebugInfos , spreadArg: noLocal , span: span ( 78 ) ) ) ) , operandMove ( place (... local: local ( 5 ) , projection: .ProjectionElems ) ) operandMove ( place (... local: local ( 6 ) , projection: .ProjectionElems ) ) operandMove ( place (... local: local ( 7 ) , projection: .ProjectionElems ) ) .Operands , place (... local: local ( 4 ) , projection: .ProjectionElems ) , someBasicBlockIdx ( basicBlockIdx ( 1 ) ) , unwindActionContinue , span ( 51 ) ) ~> .K
64
</k>
75
<retVal>
86
noReturn
@@ -58,7 +56,7 @@
5856
4 |-> newLocal ( ty ( 1 ) , mutabilityNot )
5957
5 |-> typedValue ( Integer ( 10 , 32 , true ) , ty ( 16 ) , mutabilityMut )
6058
6 |-> typedValue ( BoolVal ( false ) , ty ( 26 ) , mutabilityMut )
61-
7 |-> newLocal ( ty ( 27 ) , mutabilityMut )
59+
7 |-> typedValue ( thunk ( UnableToDecode ( b"\x00\x00\x00\x00\x00\x00$@" , typeInfoPrimitiveType ( primTypeFloat ( floatTyF64 ) ) ) ) , ty ( 27 ) , mutabilityMut )
6260
8 |-> newLocal ( ty ( 1 ) , mutabilityNot )
6361
9 |-> newLocal ( ty ( 16 ) , mutabilityMut )
6462
10 |-> newLocal ( ty ( 26 ) , mutabilityMut )

kmir/src/tests/integration/data/prove-rs/show/assert_eq_exp.main.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
44
│ span: 0
55
6-
│ (148 steps)
6+
│ (163 steps)
77
├─ 3 (terminal)
88
│ #EndProgram ~> .K
99
│ function: main

kmir/src/tests/integration/data/prove-rs/show/assume-cheatcode-conflict-fail.check_assume_conflict.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
44
│ span: 0
55
6-
│ (61 steps)
6+
│ (67 steps)
77
└─ 3 (stuck, leaf)
88
#setUpCalleeData ( monoItemFn ( ... name: symbol ( "_ZN4core9panicking5panic17h<hash>
99
span: 32

kmir/src/tests/integration/data/prove-rs/show/bitwise-not-shift.main.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
44
│ span: 0
55
6-
│ (837 steps)
6+
│ (928 steps)
77
├─ 3 (terminal)
88
│ #EndProgram ~> .K
99
│ function: main

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
44
│ span: 0
55
6-
│ (73 steps)
6+
│ (107 steps)
77
├─ 3
88
│ #cast ( Integer ( 4 , 64 , false ) , castKindTransmute , ty ( 29 ) , ty ( 50 ) )
99
│ span: 186

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

Lines changed: 98 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,104 @@
33
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
44
│ span: 0
55
6-
│ (1045 steps)
7-
└─ 3 (stuck, leaf)
6+
│ (50 steps)
7+
├─ 3
8+
│ rvalueAggregate ( aggregateKindAdt ( adtDef ( 17 ) , variantIdx ( 0 ) , genericA
9+
│ span: 32
10+
11+
│ (50 steps)
12+
├─ 4
13+
│ Aggregate ( variantIdx ( 0 ) , ListItem ( Aggregate ( variantIdx ( 0 ) , ListIte
14+
│ span: 263
15+
16+
│ (50 steps)
17+
├─ 5
18+
│ #reserveSlots ( localDecl ( ... ty: ty ( 47 ) , span: span ( 68 ) , mut: mutabil
19+
│ span: 68
20+
21+
│ (50 steps)
22+
├─ 6
23+
│ #traverseProjection ( toSlot ( 29 ) , Reference ( slotPlace ( 2 , projectionElem
24+
│ span: 159
25+
26+
│ (50 steps)
27+
├─ 7
28+
│ #cast ( PtrLocal ( slotPlace ( 2 , projectionElemField ( fieldIdx ( 0 ) , ty ( 6
29+
│ span: 86
30+
31+
│ (50 steps)
32+
├─ 8
33+
│ #setLocalValue ( place ( ... local: local ( 16 ) , projection: .ProjectionElems
34+
│ span: 102
35+
36+
│ (50 steps)
37+
├─ 9
38+
│ #decodeConstant ( constantKindAllocated ( allocation ( ... bytes: b"\xff\xff\xff
39+
│ span: 100
40+
41+
│ (50 steps)
42+
├─ 10
43+
│ #execStmt ( statement ( ... kind: statementKindAssign ( ... place: place ( ... l
44+
│ span: 168
45+
46+
│ (50 steps)
47+
├─ 11
48+
│ #execStmts ( statement ( ... kind: statementKindStorageDead ( local ( 7 ) ) , sp
49+
│ span: 171
50+
51+
│ (50 steps)
52+
├─ 12
53+
│ #execStmt ( statement ( ... kind: statementKindStorageDead ( local ( 22 ) ) , sp
54+
│ span: 172
55+
56+
│ (50 steps)
57+
├─ 13
58+
│ #execTerminator ( terminator ( ... kind: terminatorKindReturn , span: span ( 160
59+
│ span: 160
60+
61+
│ (50 steps)
62+
├─ 14
63+
│ rvalueRef ( region ( ... kind: regionKindReErased ) , borrowKindMut ( ... kind:
64+
│ span: 271
65+
66+
│ (50 steps)
67+
├─ 15
68+
│ #execStmt ( statement ( ... kind: statementKindStorageLive ( local ( 5 ) ) , spa
69+
│ span: 237
70+
71+
│ (50 steps)
72+
├─ 16
73+
│ #execStmts ( statement ( ... kind: statementKindAssign ( ... place: place ( ...
74+
│ span: 272
75+
76+
│ (50 steps)
77+
├─ 17
78+
│ #execStmts ( .Statements )
79+
~> #execTerminator ( terminator ( ... kind: terminato
80+
│ span: 274
81+
82+
│ (50 steps)
83+
├─ 18
84+
│ #reserveSlots ( localDecl ( ... ty: ty ( 46 ) , span: span ( 76 ) , mut: mutabil
85+
│ span: 76
86+
87+
│ (50 steps)
88+
├─ 19
89+
│ rvalueRef ( region ( ... kind: regionKindReErased ) , borrowKindShared , place (
90+
│ span: 159
91+
92+
│ (50 steps)
93+
├─ 20
94+
│ PtrLocal ( slotPlace ( 2 , projectionElemField ( fieldIdx ( 0 ) , ty ( 68 ) ) p
95+
│ span: 86
96+
97+
│ (50 steps)
98+
├─ 21
99+
│ #execTerminator ( terminator ( ... kind: terminatorKindGoto ( ... target: basicB
100+
│ span: 162
101+
102+
│ (37 steps)
103+
└─ 22 (stuck, leaf)
8104
#setUpCalleeData ( monoItemFn ( ... name: symbol ( "_ZN4core4cell22panic_already
9105
span: 32
10106

kmir/src/tests/integration/data/prove-rs/show/iter_next_3.main.expected

Lines changed: 220 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,226 @@
33
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
44
│ span: 0
55
6-
│ (2330 steps)
7-
├─ 3 (terminal)
6+
│ (50 steps)
7+
├─ 3
8+
│ rvalueAggregate ( aggregateKindArray ( ty ( 31 ) ) , operandMove ( place ( ... l
9+
│ function: main
10+
│ span: 199
11+
12+
│ (50 steps)
13+
├─ 4
14+
│ #setLocalValue ( place ( ... local: local ( 7 ) , projection: .ProjectionElems )
15+
│ function: main
16+
│ span: 190
17+
18+
│ (50 steps)
19+
├─ 5
20+
│ #setLocalValue ( place ( ... local: local ( 4 ) , projection: .ProjectionElems )
21+
│ span: 176
22+
23+
│ (50 steps)
24+
├─ 6
25+
│ rvalueAddressOf ( mutabilityNot , place ( ... local: local ( 1 ) , projection: p
26+
│ span: 55
27+
28+
│ (50 steps)
29+
├─ 7
30+
│ #selectBlock ( switchTargets ( ... branches: branch ( 0 , basicBlockIdx ( 2 ) )
31+
32+
│ (50 steps)
33+
├─ 8
34+
│ #execStmts ( .Statements )
35+
~> #execTerminator ( terminator ( ... kind: terminato
36+
│ span: 60
37+
38+
│ (50 steps)
39+
├─ 9
40+
│ #dropSlots ( ListItem ( 25 ) ListItem ( 26 ) )
41+
~> #execBlockIdx ( basicBlockIdx
42+
43+
│ (50 steps)
44+
├─ 10
45+
│ #mkRef ( toSlot ( 15 ) , .ProjectionElems , mutabilityMut , metadata ( noMetadat
46+
│ span: 179
47+
48+
│ (50 steps)
49+
├─ 11
50+
│ #execBlockIdx ( basicBlockIdx ( 2 ) ) ~> .K
51+
52+
│ (50 steps)
53+
├─ 12
54+
│ #traverseProjection ( toSlot ( 41 ) , Reference ( slotPlace ( 15 , .ProjectionEl
55+
│ span: 110
56+
57+
│ (50 steps)
58+
├─ 13
59+
│ #traverseProjection ( toSlot ( 45 ) , Aggregate ( variantIdx ( 0 ) , ListItem (
60+
│ span: 115
61+
62+
│ (50 steps)
63+
├─ 14
64+
│ #setLocalValue ( place ( ... local: local ( 15 ) , projection: .ProjectionElems
65+
│ span: 119
66+
67+
│ (50 steps)
68+
├─ 15
69+
│ #execStmts ( statement ( ... kind: statementKindAssign ( ... place: place ( ...
70+
│ span: 144
71+
72+
│ (50 steps)
73+
├─ 16
74+
│ #traverseProjection ( toSlot ( 64 ) , PtrLocal ( slotPlace ( 2 , projectionElemF
75+
│ span: 149
76+
77+
│ (50 steps)
78+
├─ 17
79+
│ #execStmt ( statement ( ... kind: statementKindAssign ( ... place: place ( ... l
80+
│ span: 113
81+
82+
│ (50 steps)
83+
├─ 18
84+
│ Aggregate ( variantIdx ( 1 ) , ListItem ( Reference ( slotPlace ( 2 , projection
85+
│ span: 117
86+
87+
│ (50 steps)
88+
├─ 19
89+
│ rvalueUse ( operandConstant ( constOperand ( ... span: span ( 183 ) , userTy: no
90+
│ span: 183
91+
92+
│ (50 steps)
93+
├─ 20
94+
│ Integer ( 1 , 8 , false )
95+
~> #freezer#setLocalValue(_,_)_RT-DATA_KItem_Place_Eva
96+
│ span: 185
97+
98+
│ (50 steps)
99+
├─ 21
100+
│ #reserveSlots ( localDecl ( ... ty: ty ( 30 ) , span: span ( 145 ) , mut: mutabi
101+
│ span: 145
102+
103+
│ (50 steps)
104+
├─ 22
105+
│ #execStmt ( statement ( ... kind: statementKindAssign ( ... place: place ( ... l
106+
│ span: 107
107+
108+
│ (50 steps)
109+
├─ 23
110+
│ #traverseProjection ( toSlot ( 15 ) , Aggregate ( variantIdx ( 0 ) , ListItem (
111+
│ span: 113
112+
113+
│ (50 steps)
114+
├─ 24
115+
│ #execStmts ( .Statements )
116+
~> #execTerminator ( terminator ( ... kind: terminato
117+
│ span: 97
118+
119+
│ (50 steps)
120+
├─ 25
121+
│ PtrLocal ( slotPlace ( 15 , projectionElemField ( fieldIdx ( 1 ) , ty ( 30 ) )
122+
│ span: 134
123+
124+
│ (50 steps)
125+
├─ 26
126+
│ #traverseProjection ( toSlot ( 93 ) , PtrLocal ( slotPlace ( 2 , projectionElemF
127+
│ span: 32
128+
129+
│ (50 steps)
130+
├─ 27
131+
│ #execStmts ( .Statements )
132+
~> #execTerminator ( terminator ( ... kind: terminato
133+
│ span: 132
134+
135+
│ (50 steps)
136+
├─ 28
137+
│ Reference ( slotPlace ( 2 , projectionElemField ( fieldIdx ( 1 ) , ty ( 48 ) )
138+
│ span: 126
139+
140+
│ (50 steps)
141+
├─ 29
142+
│ #setSlotValue ( 18 , Moved )
143+
~> Integer ( 1 , 0 , false )
144+
~> #freezer#selectBloc
145+
146+
│ (50 steps)
147+
├─ 30
148+
│ operandMove ( place ( ... local: local ( 14 ) , projection: .ProjectionElems ) )
149+
150+
│ (50 steps)
151+
├─ 31
152+
│ #reserveSlots ( localDecl ( ... ty: ty ( 35 ) , span: span ( 156 ) , mut: mutabi
153+
│ span: 156
154+
155+
│ (50 steps)
156+
├─ 32
157+
│ #traverseProjection ( toSlot ( 15 ) , Aggregate ( variantIdx ( 0 ) , ListItem (
158+
│ span: 105
159+
160+
│ (50 steps)
161+
├─ 33
162+
│ rvalueRef ( region ( ... kind: regionKindReErased ) , borrowKindShared , place (
163+
│ span: 111
164+
165+
│ (50 steps)
166+
├─ 34
167+
│ #applyBinOp ( binOpEq , PtrLocal ( slotPlace ( 2 , projectionElemField ( fieldId
168+
│ span: 111
169+
170+
│ (50 steps)
171+
├─ 35
172+
│ operandConstant ( constOperand ( ... span: span ( 119 ) , userTy: noUserTypeAnno
173+
│ span: 119
174+
175+
│ (50 steps)
176+
├─ 36
177+
│ #execStmt ( statement ( ... kind: statementKindStorageLive ( local ( 24 ) ) , sp
178+
│ span: 145
179+
180+
│ (50 steps)
181+
├─ 37
182+
│ #execStmts ( statement ( ... kind: statementKindAssign ( ... place: place ( ...
183+
│ span: 151
184+
185+
│ (50 steps)
186+
├─ 38
187+
│ #cast ( operandCopy ( place ( ... local: local ( 27 ) , projection: .ProjectionE
188+
│ span: 128
189+
190+
│ (50 steps)
191+
├─ 39
192+
│ #execBlockIdx ( basicBlockIdx ( 4 ) ) ~> .K
193+
194+
│ (50 steps)
195+
├─ 40
196+
│ #setLocalValue ( place ( ... local: local ( 13 ) , projection: .ProjectionElems
197+
│ span: 181
198+
199+
│ (50 steps)
200+
├─ 41
201+
│ #execBlockIdx ( basicBlockIdx ( 3 ) ) ~> .K
202+
203+
│ (50 steps)
204+
├─ 42
205+
│ #execStmts ( .Statements )
206+
~> #execTerminator ( terminator ( ... kind: terminato
207+
│ span: 96
208+
209+
│ (50 steps)
210+
├─ 43
211+
│ #execStmt ( statement ( ... kind: statementKindStorageDead ( local ( 6 ) ) , spa
212+
│ span: 108
213+
214+
│ (50 steps)
215+
├─ 44
216+
│ #execStmts ( statement ( ... kind: statementKindStorageDead ( local ( 11 ) ) , s
217+
│ span: 114
218+
219+
│ (50 steps)
220+
├─ 45
221+
│ #execStmts ( statement ( ... kind: statementKindAssign ( ... place: place ( ...
222+
│ span: 32
223+
224+
│ (49 steps)
225+
├─ 46 (terminal)
8226
│ #EndProgram ~> .K
9227
│ function: main
10228

0 commit comments

Comments
 (0)