//! Shared helper functions for optimization passes.
use crateDataLogic;
use crateCompiledNode;
use crateis_truthy;
/// Check if a compiled node is a literal value and determine its truthiness.
/// Returns `Some(true)` / `Some(false)` for static values, `None` for dynamic nodes.
///
/// Uses the engine's configured truthiness evaluator (JavaScript, Python, StrictBoolean, Custom).