Context
ConstantFolding.optimize stmts
Stmt[]
Assuming that the stmts are localized, i.e., those stmts represent a basic block, perform local constant folding.
ConstantFolding.optimizeLoop stmts idx ctxt
int
ConstantFolding.replace ctxt expr
Expr
bool * Expr
ConstantFolding.updateContextAtDef ctxt dst src