Skip to content

Commit 9cfc93d

Browse files
1 parent 2833dda commit 9cfc93d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

refman/tactics/simplify-if.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ <h1>Tactic: <code class="docutils literal notranslate"><span class="pre">simplif
162162
"goals":[
163163
"Type variables: <none>\n\nj_: int\n------------------------------------------------------------------------\nContext : hr: {j, i, x, y : int}\n\npre = j = j_\n\n\npost =\n if 0 = j then\n if 1 = j then\n if 2 = j then\n if 3 = j then\n if 4 = j then\n if 5 = j then\n (5, 0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, 0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y0 = 0 + 4 in\n if 5 = j then\n (5, y0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (3, y0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y0 = 0 + 3 in\n if 4 = j then\n if 5 = j then\n (5, y0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 4 in\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (2, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y0 = 0 + 2 in\n if 3 = j then\n if 4 = j then\n if 5 = j then\n (5, y0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 4 in\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (3, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 3 in\n if 4 = j then\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 4 in\n if 5 = j then\n (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (1, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y0 = 0 + 1 in\n if 2 = j then\n if 3 = j then\n if 4 = j then\n if 5 = j then\n (5, y0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 4 in\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (3, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 3 in\n if 4 = j then\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 4 in\n if 5 = j then\n (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (2, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 2 in\n if 3 = j then\n if 4 = j then\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 4 in\n if 5 = j then\n (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (3, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 3 in\n if 4 = j then\n if 5 = j then\n (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y3 = y2 + 4 in\n if 5 = j then\n (5, y3) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (0, y3 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n if 1 = j then\n if 2 = j then\n if 3 = j then\n if 4 = j then\n if 5 = j then\n (5, 0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, 0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y0 = 0 + 4 in\n if 5 = j then\n (5, y0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (3, y0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y0 = 0 + 3 in\n if 4 = j then\n if 5 = j then\n (5, y0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 4 in\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (2, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y0 = 0 + 2 in\n if 3 = j then\n if 4 = j then\n if 5 = j then\n (5, y0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 4 in\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (3, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 3 in\n if 4 = j then\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 4 in\n if 5 = j then\n (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (1, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y0 = 0 + 1 in\n if 2 = j then\n if 3 = j then\n if 4 = j then\n if 5 = j then\n (5, y0) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y0 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 4 in\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (3, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 3 in\n if 4 = j then\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 4 in\n if 5 = j then\n (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (2, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 2 in\n if 3 = j then\n if 4 = j then\n if 5 = j then\n (5, y1) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y1 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 4 in\n if 5 = j then\n (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (3, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 3 in\n if 4 = j then\n if 5 = j then\n (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (4, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y3 = y2 + 4 in\n if 5 = j then\n (5, y3) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (0, y3 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n\n"
164164
],
165-
"message":"info: time: 0.001099"
165+
"message":"info: time: 0.001016"
166166
},
167167
{
168168
"goals":[
@@ -285,7 +285,7 @@ <h2><a class="toc-backref" href="#id1" role="doc-backlink">Variant: Transform at
285285
"goals":[
286286
"Type variables: <none>\n\nj_: int\n------------------------------------------------------------------------\nContext : hr: {j, i, x, y : int}\n\npre = j = j_\n\n\npost =\n let tpl =\n let x0 = 0 in\n let y0 = 0 in (if 0 = j then x0 else 0, if 0 = j then 0 else y0) in\n let y0 = tpl.`2 in\n if 1 = j then\n let tpl0 =\n let x0 = 2 in\n let y1 = y0 + 2 in (if 2 = j then x0 else 1, if 2 = j then y0 else y1)\n in\n let y1 = tpl0.`2 in\n if 3 = j then\n let tpl1 =\n let x0 = 4 in\n let y2 = y1 + 4 in\n (if 4 = j then x0 else 3, if 4 = j then y1 else y2) in\n let y2 = tpl1.`2 in\n if 5 = j then (5, y2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (tpl1.`1, y2 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y2 = y1 + 3 in\n let tpl1 =\n let x0 = 4 in\n let y3 = y2 + 4 in\n (if 4 = j then x0 else tpl0.`1, if 4 = j then y2 else y3) in\n let y3 = tpl1.`2 in\n if 5 = j then (5, y3) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (tpl1.`1, y3 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y1 = y0 + 1 in\n let tpl0 =\n let x0 = 2 in\n let y2 = y1 + 2 in\n (if 2 = j then x0 else tpl.`1, if 2 = j then y1 else y2) in\n let y2 = tpl0.`2 in\n if 3 = j then\n let tpl1 =\n let x0 = 4 in\n let y3 = y2 + 4 in\n (if 4 = j then x0 else 3, if 4 = j then y2 else y3) in\n let y3 = tpl1.`2 in\n if 5 = j then (5, y3) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (tpl1.`1, y3 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else\n let y3 = y2 + 3 in\n let tpl1 =\n let x0 = 4 in\n let y4 = y3 + 4 in\n (if 4 = j then x0 else tpl0.`1, if 4 = j then y3 else y4) in\n let y4 = tpl1.`2 in\n if 5 = j then (5, y4) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n else (tpl1.`1, y4 + 5) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n\n"
287287
],
288-
"message":"info: time: 0.000324"
288+
"message":"info: time: 0.000320"
289289
},
290290
{
291291
"goals":[
@@ -384,7 +384,7 @@ <h2><a class="toc-backref" href="#id2" role="doc-backlink">Variant: Transform as
384384
"goals":[
385385
"Type variables: <none>\n\nj_: int\n------------------------------------------------------------------------\nContext : hr: {j, i, x, y : int}\n\npre = j = j_\n\n\npost =\n let tpl =\n let x0 = 0 in\n let y0 = 0 in (if 0 = j then x0 else 0, if 0 = j then 0 else y0) in\n let y0 = tpl.`2 in\n let tpl0 =\n let x0 = 1 in\n let y1 = y0 + 1 in\n (if 1 = j then x0 else tpl.`1, if 1 = j then y0 else y1) in\n let y1 = tpl0.`2 in\n let tpl1 =\n let x0 = 2 in\n let y2 = y1 + 2 in\n (if 2 = j then x0 else tpl0.`1, if 2 = j then y1 else y2) in\n let y2 = tpl1.`2 in\n let tpl2 =\n let x0 = 3 in\n let y3 = y2 + 3 in\n (if 3 = j then x0 else tpl1.`1, if 3 = j then y2 else y3) in\n let y3 = tpl2.`2 in\n let tpl3 =\n let x0 = 4 in\n let y4 = y3 + 4 in\n (if 4 = j then x0 else tpl2.`1, if 4 = j then y3 else y4) in\n let y4 = tpl3.`2 in\n let tpl4 =\n let x0 = 5 in\n let y5 = y4 + 5 in\n (if 5 = j then x0 else tpl3.`1, if 5 = j then y4 else y5) in\n (tpl4.`1, tpl4.`2) = if 0 <= j_ < 6 then (j_, 15 - j_) else (0, 15)\n\n"
386386
],
387-
"message":"info: time: 0.000115"
387+
"message":"info: time: 0.000138"
388388
},
389389
{
390390
"goals":[

0 commit comments

Comments
 (0)