Files
aji/tests/conformance/phase0/run/signed_min_div.air
T
dev 1f5008bb37 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)
2026-10-04 12:28:27 +03:00

18 lines
310 B
LLVM

; i64 MIN / -1 traps as overflow.
; expect: run
; trap: T0003
; phase: 0
; spec: docs/spec/02-types-and-values.md
module test.signed_min_div
air 0
lang 0.1
features []
fn @main() -> i64
effects []
entry:
%a = const.i64 -9223372036854775808
%b = const.i64 -1
%c = div.checked.i64 %a, %b
ret %c