base constant folding optimization