P6A-7 for the freeze: three reference programs in source; source construct coverage
- programs/parallel_map, channel_transfer, tcp_echo_tasks: the Phase 3 exit programs in .aji, with AIR equivalence on every schedule seed - tools/source_coverage.py: every .aji construct (56) has a run/accept test and, where it rejects, a reject test; CI step - gaps filled: wrapping arithmetic run test, break outside a loop (E7006), close_receiver without pending (E7004) - plan: P6A-7 freeze criterion (owner decision); further twins gradually
This commit is contained in:
1 parent
748eddf4e5
commit
591f0aea19
9 files changed
+372
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// `break` outside a loop has no target.
|
||||
// expect: reject E7006
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
module demo.breakoutside
|
||||
|
||||
fn main() -> u64
|
||||
effects []
|
||||
{
|
||||
break;
|
||||
0
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Wrapping arithmetic `+% -% *%` wraps instead of trapping.
|
||||
// expect: run
|
||||
// result: 9
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
module demo.wrapping
|
||||
|
||||
fn main() -> u8
|
||||
effects []
|
||||
{
|
||||
let a = 250u8;
|
||||
let b = a +% 10;
|
||||
let c = b -% 6;
|
||||
let d = c *% 255;
|
||||
d -% 249
|
||||
}
|
||||
Reference in new issue
Block a user