Skip to content

Commit

Permalink
better propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Jul 26, 2024
1 parent ba08649 commit 90875f0
Show file tree
Hide file tree
Showing 2 changed files with 378 additions and 225 deletions.
6 changes: 6 additions & 0 deletions src/lib/frontend/d_cnf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ let smt_fpa_builtins =
Dl.Typer.T.builtin_term @@
Dolmen_type.Base.term_app2 (module Dl.Typer.T) env s f
in
let term_app1 env s f =
Dl.Typer.T.builtin_term @@
Dolmen_type.Base.term_app1 (module Dl.Typer.T) env s f
in
let other_builtins =
DStd.Id.Map.empty
|> add_rounding_modes
Expand All @@ -425,6 +429,8 @@ let smt_fpa_builtins =
end
| Id { ns = Term ; name = Simple "ae.float16" } ->
term_app env s (smt_round 11 24)
| Id { ns = Term ; name = Simple "bv2int" } ->
term_app1 env s DE.Term.Bitv.to_nat
| Id { ns = Term ; name = Simple "ae.float32" } ->
term_app env s (smt_round 24 149)
| Id { ns = Term ; name = Simple "ae.float64" } ->
Expand Down
Loading

0 comments on commit 90875f0

Please sign in to comment.