interp: deterministic interpreter, aji run, run tests (P0-11, P0-12)
- src/interp/machine.zig: format-0 interpreter on the air64 target; checked/wrapping arithmetic, shifts, casts, aggregates, calls with a 1024-frame limit, traps as records with T0xxx codes - aji run: prints one JSON run record; exit code 4 on trap - conformance runner: `expect: run` with `result:`/`trap:`, every run executed twice and compared byte-for-byte; header keys must be single lowercase words - Phase 0 corpus: 3 accept, 19 reject, 15 run tests (41 total)
This commit is contained in:
1 parent
50bf990355
commit
1f5008bb37
45 files changed
+1463
-23
No files matched your search
+15
-6
@@ -1,6 +1,15 @@
|
||||
//! AIR interpreter (spec 07, spec 11). Defines observable semantics.
|
||||
//!
|
||||
//! Requirements:
|
||||
//! - executes only verified AIR;
|
||||
//! - deterministic: identical input and seed give identical output and trace;
|
||||
//! - traps are explicit values, never host panics or unwinding.
|
||||
//! AIR interpreter (spec 07a, spec 11). Defines observable semantics.
|
||||
|
||||
const machine = @import("interp/machine.zig");
|
||||
|
||||
pub const Value = machine.Value;
|
||||
pub const Trap = machine.Trap;
|
||||
pub const Outcome = machine.Outcome;
|
||||
pub const run = machine.run;
|
||||
pub const writeOutcome = machine.writeOutcome;
|
||||
pub const writeValue = machine.writeValue;
|
||||
pub const call_depth_limit = machine.call_depth_limit;
|
||||
|
||||
test {
|
||||
_ = machine;
|
||||
}
|
||||
Reference in new issue
Block a user