Skip to main content

verify_no_overhead_source

Function verify_no_overhead_source 

Source
pub fn verify_no_overhead_source(source: &str) -> Result<(), String>
Expand description

Verify that a LogicAffeine program has no interpretive overhead.

Checks the AST for patterns that indicate unresolved interpreter dispatch:

  • Inspect on CStmt/CExpr/CVal variants
  • References to Core constructor types (CInt, CShow, etc.)
  • Environment lookups on literal strings