git.iko.soy/rowtype-yoga/purescript-backend-optimizer
on main help sign in
21 lines 552 B history raw
1module Snapshot.AssocIntOps where
3import Prelude
5test1 :: Int -> Int
6test1 x = 1 + (((((2 + x) + x) + x) + x) + 3) + 4
8test2 :: Int -> Int
9test2 x = 1 + (2 + (x + (x + (x + (x + 3))))) + 4
11test3 :: Int -> Int
12test3 x = 1 + (2 + (x + (x + (x + (x + 3))))) + 4 + (((((5 + x) + x) + x) + x) + 6) + 7
14test4 :: Int -> Int
15test4 x = 1 * (((((2 * x) * x) * x) * x) * 3) * 4
17test5 :: Int -> Int
18test5 x = 1 * (2 * (x * (x * (x * (x * 3))))) * 4
20test6 :: Int -> Int
21test6 x = 1 * (2 * (x * (x * (x * (x * 3))))) * 4 * (((((5 * x) * x) * x) * x) * 6) * 7