git.iko.soy/rowtype-yoga/purescript-backend-optimizer
on main help sign in
36 lines 958 B history raw
1const $test2test1 = ($test2test1$b$copy, $test2test1$a0$copy) => {
2 let $test2test1$b = $test2test1$b$copy, $test2test1$a0 = $test2test1$a0$copy, $test2test1$c = true, $test2test1$r;
3 while ($test2test1$c) {
4 if ($test2test1$b === 0) {
5 const m = $test2test1$a0;
6 if (m === 2) {
7 $test2test1$c = false;
8 $test2test1$r = m;
9 continue;
10 }
11 $test2test1$b = 1;
12 $test2test1$a0 = m - 2 | 0;
13 continue;
14 }
15 if ($test2test1$b === 1) {
16 const n = $test2test1$a0;
17 if (n === 1) {
18 $test2test1$c = false;
19 $test2test1$r = n;
20 continue;
21 }
22 const $0 = n - 1 | 0;
23 if ($0 === 2) {
24 $test2test1$c = false;
25 $test2test1$r = $0;
26 continue;
27 }
28 $test2test1$b = 1;
29 $test2test1$a0 = $0 - 2 | 0;
30 }
31 }
32 return $test2test1$r;
33};
34const test2 = m => $test2test1(0, m);
35const test1 = n => $test2test1(1, n);
36export {test1, test2};