Commit graph

2 commits

Author SHA1 Message Date
bd4fc304df fix(c,octave): C div-by-zero error code, Octave struct init
C: Added division-by-zero check (-8 error) before calling eval_prim
Octave: Fixed struct field assignment (dimension mismatch in struct())
2026-06-30 18:23:58 -05:00
863da04f21 feat(avm-ports): port AVM ISA to all 12 scientific languages
Lean (reference), Python, Rust, C, C++, Go, Julia, R, Scala, Fortran,
Coq, Octave — all implementing the same AVM ISA v1 specification.

Every port implements:
- Full type universe: Q0_16, Q16_16, Bool
- 11 primitives with floor division (Lean Int.ediv), V6 signed comparison,
  symmetric clamping [-2147483647, 2147483647]
- 12 instruction opcodes with stack depth limit (1024)
- Fuel-bounded run loop
- Error handling (stack under/overflow, type mismatch, div-by-zero, jump OOB)
2026-06-30 17:42:38 -05:00