Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Fischman committed Jan 30, 2024
1 parent 75db77f commit c9ec419
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tree_unique_args/src/switch_rewrites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ fn switch_rewrite_purity() -> crate::Result {
(let switch-id (Id (i64-fresh!)))
(let let-id (Id (i64-fresh!)))
(let pure (Let let-id (All switch-id (Parallel) (Nil)) (All let-id (Sequential) (Cons (Boolean let-id true) (Nil)))))
(let switch (Switch (And (Boolean switch-id false) (Get pure 0))
(let switch (Switch (And (Boolean switch-id false) (Get pure 0))
(Pair (Num switch-id 1) (Num switch-id 2))))
(ExprIsValid switch)
";
let check = "
(check (= switch (Switch (Boolean switch-id false)
(Pair (Num switch-id 1)
(Switch (Get pure 0)
(Pair (Num switch-id 1) (Num switch-id 2)))))))
(Pair (Num switch-id 1)
(Switch (Get pure 0)
(Pair (Num switch-id 1) (Num switch-id 2)))))))
";
crate::run_test(build, check)
}
Expand Down

0 comments on commit c9ec419

Please sign in to comment.