verifier: preserve resource obligations across CFG handoff

This commit is contained in:
dev committed 2026-10-08 17:17:08 +03:00
1 parent 0e98638bc6
commit 09fbf8a5bc
34 files changed
+1267 -67

No files matched your search

@@ -0,0 +1,22 @@
; Shields may be passed through block arguments and ended innermost first.
; expect: run
; schedules: 20
; result: 4
; phase: 3
; spec: docs/spec/04-concurrency-and-atomics.md §37.3
module test.cfg_provenance_shield_handoff
air 0
lang 0.1
features [cancellation, effects, ownership, tasks]
fn @main() -> u8
effects []
entry:
%a = task.shield.begin
%b = task.shield.begin
br @next(%a, %b)
next(%outer: shield, %inner: shield):
task.shield.end %inner
task.shield.end %outer
%v = const.u8 4
ret %v