Skip to main content

MAX_IR_DEPTH

Constant MAX_IR_DEPTH 

Source
pub const MAX_IR_DEPTH: usize = 500;
Expand description

Maximum number of IR nodes on one root-to-leaf path emitted by the bundled structural frontends.

Frontends stop descending before this budget can be exceeded and preserve the omitted source region as an Shape::Error leaf. This keeps structural recovery bounded for mechanically generated and adversarial source files.