wip: shield index relations, dev evaluation tasks, Q-063 audit notes
Verifier borrow/provenance work, new phase3 shield_index conformance cases, dev-intervals/dev-lru/dev-shards tasks with evaluate.py harness, and agent skill/hook config.
This commit is contained in:
1 parent
2d750a0525
commit
e3fc896a0a
68 files changed
+2132
-37
No files matched your search
@@ -0,0 +1,20 @@
|
||||
; expect: reject E4305
|
||||
; phase: 3
|
||||
; spec: docs/spec/04-concurrency-and-atomics.md §37.3
|
||||
module test.shield_index
|
||||
air 0
|
||||
lang 0.1
|
||||
features [cancellation, effects, ownership, tasks]
|
||||
|
||||
fn @main() -> void
|
||||
effects []
|
||||
entry:
|
||||
%a = task.shield.begin
|
||||
%b = task.shield.begin
|
||||
%c = task.shield.begin
|
||||
task.shield.end %c
|
||||
%d = task.shield.begin
|
||||
task.shield.end %a
|
||||
task.shield.end %d
|
||||
task.shield.end %b
|
||||
ret
|
||||
@@ -0,0 +1,21 @@
|
||||
; expect: reject E3002 E4305
|
||||
; phase: 3
|
||||
; spec: docs/spec/04-concurrency-and-atomics.md §37.3
|
||||
module test.shield_index
|
||||
air 0
|
||||
lang 0.1
|
||||
features [cancellation, effects, ownership, tasks]
|
||||
|
||||
fn @main() -> void
|
||||
effects []
|
||||
entry:
|
||||
%a = task.shield.begin
|
||||
%b = task.shield.begin
|
||||
%c = task.shield.begin
|
||||
%condition = const.bool true
|
||||
cbr %condition, @joined(%a, %b, %c), @joined(%b, %a, %c)
|
||||
joined(%x: shield, %y: shield, %z: shield):
|
||||
task.shield.end %z
|
||||
task.shield.end %y
|
||||
task.shield.end %x
|
||||
ret
|
||||
@@ -0,0 +1,23 @@
|
||||
; expect: run
|
||||
; phase: 3
|
||||
; spec: docs/spec/04-concurrency-and-atomics.md §37.3
|
||||
; schedules: 32
|
||||
; result: 42
|
||||
module test.shield_index
|
||||
air 0
|
||||
lang 0.1
|
||||
features [cancellation, effects, ownership, tasks]
|
||||
|
||||
fn @main() -> u8
|
||||
effects []
|
||||
entry:
|
||||
%a = task.shield.begin
|
||||
%b = task.shield.begin
|
||||
%c = task.shield.begin
|
||||
br @next(%c, %a, %b)
|
||||
next(%inner: shield, %outer: shield, %middle: shield):
|
||||
task.shield.end %inner
|
||||
task.shield.end %middle
|
||||
task.shield.end %outer
|
||||
%answer = const.u8 42
|
||||
ret %answer
|
||||
@@ -0,0 +1,23 @@
|
||||
; expect: run
|
||||
; phase: 3
|
||||
; spec: docs/spec/04-concurrency-and-atomics.md §37.3
|
||||
; schedules: 32
|
||||
; result: 42
|
||||
module test.shield_index
|
||||
air 0
|
||||
lang 0.1
|
||||
features [cancellation, effects, ownership, tasks]
|
||||
|
||||
fn @main() -> u8
|
||||
effects []
|
||||
entry:
|
||||
%a = task.shield.begin
|
||||
%b = task.shield.begin
|
||||
%c = task.shield.begin
|
||||
task.shield.end %c
|
||||
%d = task.shield.begin
|
||||
task.shield.end %d
|
||||
task.shield.end %b
|
||||
task.shield.end %a
|
||||
%answer = const.u8 42
|
||||
ret %answer
|
||||
@@ -0,0 +1,14 @@
|
||||
// expect: run
|
||||
// result: 42
|
||||
// schedules: 32
|
||||
// phase: 6
|
||||
// spec: docs/spec/04-concurrency-and-atomics.md §37.3; docs/spec/15-source-language.md §7
|
||||
module test.shield_index
|
||||
fn main() -> u64 effects [] {
|
||||
var x: u64 = 0u64;
|
||||
shield {
|
||||
shield { shield { x = x + 1u64; } shield { x = x + 1u64; } }
|
||||
shield { x = x + 40u64; }
|
||||
}
|
||||
return x;
|
||||
}
|
||||
Reference in new issue
Block a user