Zero-Dependency AST Optimizer & Constant Folder for CEL ASTs.
More...
#include <impulse_cel.h>
Zero-Dependency AST Optimizer & Constant Folder for CEL ASTs.
Implements:
- Constant folding across arithmetic, logical, comparison, and transcendental math functions.
- Algebraic simplification & identity reduction (x + 0, x * 1, x * 0, !(!x), etc.).
- Dead branch elimination for ternary expressions with constant conditions.
◆ optimize()
| std::shared_ptr< AstNode > impulse::cel::AstOptimizer::optimize |
( |
const std::shared_ptr< AstNode > & | node, |
|
|
size_t | depth = 0 ) |
|
inlinestatic |
◆ MAX_PARSE_DEPTH
| size_t impulse::cel::AstOptimizer::MAX_PARSE_DEPTH = 256 |
|
staticconstexpr |
The documentation for this class was generated from the following file: