Skip to content

Commit

Permalink
Define abs_{real,int} as ites *for external users only*
Browse files Browse the repository at this point in the history
This is for running benchmarks, do not merge.
  • Loading branch information
bclement-ocp committed Jul 25, 2023
1 parent 46077ed commit f07dfc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/preludes/ria.ae
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,6 @@ theory ABS extends RIA =
- i <= x <= i

end

function abs_real(x : real) : real = if 0.0 <= x then x else -x
function abs_int(x : int) : int = if 0 <= x then x else -x

0 comments on commit f07dfc6

Please sign in to comment.