1 Constant folding is a classic example of semantic optimization where expressions are evaluated at compile time and replaced with their results.
“constant folding is one classic example of this you can evaluate a function and then replace it with the result of that evaluation or an evaluate an expression rather”