Added code snippet precomputation optimization (small loop bodies like [-], [+]