Skip to content

Commit

Permalink
Clarify siu example
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Mar 27, 2024
1 parent eabe57b commit c941440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/egglog/exp/siu_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# https://github.com/sklam/pyasir/blob/c363ff4f8f91177700ad4108dd5042b9b97d8289/pyasir/tests/test_fib.py

# In progress - should be able to re-create this
# @df.func
# def fib_ir(n: pyasir.Int64) -> pyasir.Int64:
# @df.switch(n <= 1)
Expand All @@ -25,6 +26,7 @@
# return r


# With something like this:
@egglog.function
def fib(n: Int) -> Int:
return (n <= Int(1)).if_int(
Expand Down

0 comments on commit c941440

Please sign in to comment.