@@ -232,7 +232,7 @@ In the simplest case, the reference refers to a local in the same stack frame (h
232
232
233
233
``` k
234
234
rule <k> #readProjection(
235
- typedValue(Reference (0, place(local(I:Int), PLACEPROJS:ProjectionElems), _), _, _),
235
+ typedValue(RefStack (0, place(local(I:Int), PLACEPROJS:ProjectionElems), _), _, _),
236
236
projectionElemDeref PROJS:ProjectionElems
237
237
)
238
238
=>
@@ -259,7 +259,7 @@ An important prerequisite of this rule is that when passing references to a call
259
259
260
260
``` k
261
261
rule <k> #readProjection(
262
- typedValue(Reference (FRAME, place(LOCAL:Local, PLACEPROJS), _), _, _),
262
+ typedValue(RefStack (FRAME, place(LOCAL:Local, PLACEPROJS), _), _, _),
263
263
projectionElemDeref PROJS
264
264
)
265
265
=>
@@ -290,8 +290,8 @@ An important prerequisite of this rule is that when passing references to a call
290
290
| #decrementRef ( TypedLocal ) [function, total]
291
291
| #adjustRef (TypedLocal, Int ) [function, total]
292
292
293
- rule #adjustRef(typedValue(Reference (HEIGHT, PLACE, REFMUT), TY, MUT), OFFSET)
294
- => typedValue(Reference (HEIGHT +Int OFFSET, PLACE, REFMUT), TY, MUT)
293
+ rule #adjustRef(typedValue(RefStack (HEIGHT, PLACE, REFMUT), TY, MUT), OFFSET)
294
+ => typedValue(RefStack (HEIGHT +Int OFFSET, PLACE, REFMUT), TY, MUT)
295
295
rule #adjustRef(TL, _) => TL [owise]
296
296
297
297
rule #incrementRef(TL) => #adjustRef(TL, 1)
@@ -523,7 +523,7 @@ The solution is to use rewrite operations in a downward pass through the project
523
523
524
524
rule <k> #projectedUpdate(
525
525
_DEST,
526
- typedValue(Reference (OFFSET, place(LOCAL, PLACEPROJ), _MUT), _, _),
526
+ typedValue(RefStack (OFFSET, place(LOCAL, PLACEPROJ), _MUT), _, _),
527
527
projectionElemDeref PROJS,
528
528
UPDATE,
529
529
_CTXTS,
@@ -548,7 +548,7 @@ The solution is to use rewrite operations in a downward pass through the project
548
548
549
549
rule <k> #projectedUpdate(
550
550
_DEST,
551
- typedValue(Reference (OFFSET, place(local(I), PLACEPROJ), _MUT), _, _),
551
+ typedValue(RefStack (OFFSET, place(local(I), PLACEPROJ), _MUT), _, _),
552
552
projectionElemDeref PROJS,
553
553
UPDATE,
554
554
_CTXTS,
@@ -799,7 +799,7 @@ The `BorrowKind` indicates mutability of the value through the reference, but al
799
799
``` k
800
800
rule <k> rvalueRef(_REGION, KIND, PLACE)
801
801
=>
802
- typedValue(Reference (0, PLACE, #mutabilityOf(KIND)), TyUnknown, #mutabilityOf(KIND))
802
+ typedValue(RefStack (0, PLACE, #mutabilityOf(KIND)), TyUnknown, #mutabilityOf(KIND))
803
803
...
804
804
</k>
805
805
0 commit comments