Skip to content

Commit

Permalink
spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Nov 4, 2024
1 parent 94cdd70 commit 22bee1b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions dag_in_context/src/optimizations/rec_to_loop.egg
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@
((Function name in out body)
(= body (If pred inputs (Call name call-inputs) else))
(HasType body func-ty))
(
;; new if statement doesn't do recursive call
(let new-if
(If pred inputs call-inputs else))
;; new loop continues on the same predicate
(let new-loop
(DoWhile (Arg func-ty (InFunc name))
(Concat (Single pred) new-if)))
(union body new-loop)
)
(;; new if statement doesn't do recursive call
(let new-if
(If pred inputs call-inputs else))
;; new loop continues on the same predicate
(let new-loop
(DoWhile (Arg func-ty (InFunc name))
(Concat (Single pred) new-if)))
(union body new-loop))
:ruleset rec-to-loop)

0 comments on commit 22bee1b

Please sign in to comment.