Skip to content

Commit 3a973ea

Browse files
committed
fix(rt): initialize closure env in setupCalleeClosure2
1 parent 5bcca0a commit 3a973ea

5 files changed

Lines changed: 20 additions & 18 deletions

File tree

kmir/src/kmir/kdist/mir-semantics/kmir.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ Therefore a heuristics is used here:
562562
_SPAN
563563
)
564564
=>
565-
#setTupleArgs(2, getValue(LOCALS, TUPLE)) ~> #execBlock(FIRST)
565+
#setLocalValue(place(local(1), .ProjectionElems), #incrementRef(getValue(LOCALS, CLOSURE)))
566+
~> #setTupleArgs(2, getValue(LOCALS, TUPLE)) ~> #execBlock(FIRST)
566567
// arguments are tuple components, stored as _2 .. _n
567568
...
568569
</k>

kmir/src/tests/integration/data/prove-rs/iter-eq-copied-take-dereftruncate-fail.rs renamed to kmir/src/tests/integration/data/prove-rs/iter-eq-copied-take-dereftruncate.rs

File renamed without changes.

kmir/src/tests/integration/data/prove-rs/show/iter-eq-copied-take-dereftruncate-fail.repro.expected

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
┌─ 1 (root, init)
3+
│ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC
4+
│ span: 0
5+
6+
│ (5601 steps)
7+
├─ 3 (terminal)
8+
│ #EndProgram ~> .K
9+
10+
┊ constraint: true
11+
┊ subst: ...
12+
└─ 2 (leaf, target, terminal)
13+
#EndProgram ~> .K
14+
15+
16+

kmir/src/tests/integration/test_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
'assume-cheatcode-conflict-fail': ['check_assume_conflict'],
3939
'transmute-bytes': ['bytes_to_u64', 'u64_to_bytes'],
4040
'test_offset_from-fail': ['testing'],
41-
'iter-eq-copied-take-dereftruncate-fail': ['repro'],
41+
'iter-eq-copied-take-dereftruncate': ['repro'],
4242
}
4343
PROVE_RS_SHOW_SPECS = [
4444
'local-raw-fail',
@@ -64,7 +64,7 @@
6464
'test_offset_from-fail',
6565
'ref-ptr-cast-elem-fail',
6666
'ref-ptr-cast-elem-offset-fail',
67-
'iter-eq-copied-take-dereftruncate-fail',
67+
'iter-eq-copied-take-dereftruncate',
6868
]
6969

7070

0 commit comments

Comments
 (0)