Skip to main content

classify_node

Function classify_node 

Source
pub fn classify_node(node: &AIRNode) -> Option<NodeKindHint>
Expand description

Classifies an AIR node into a NodeKindHint category, or None if the node is trivial (literal, arithmetic, direct call, etc.) and must never trigger AI synthesis per §17.2 (Q3).

Called by crate::ai_synthesis::needs_ai_synthesis together with TargetProfile::ai_hints to decide invocation per node.