Skip to content

Commit 2ad8d47

Browse files
committed
Missing bitwuzla operators to_fp and of_ieee_bv
1 parent 7ddbab5 commit 2ad8d47

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
### Fixed
1818

19+
- Missing bitwuzla operators `to_fp` and `of_ieee_bv`.
20+
1921
## v0.1.3
2022

2123
### Changed

lib/bitwuzla_mappings.default.ml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,7 @@ module Fresh_bitwuzla (B : Bitwuzla_cxx.S) : M = struct
321321

322322
let ge t1 t2 = mk_term2 Kind.Fp_geq t1 t2
323323

324-
(* TODO *)
325-
let to_fp _eb _sb ~rm:_ _t =
326-
(* match rm with *)
327-
(* | Some rm -> mk_term2_indexed2 Kind.Fp_to_fp_from_fp rm t eb sb *)
328-
(* | None -> mk_term1_indexed2 Kind.Fp_to_fp_from_bv t eb sb *)
329-
failwith "Bitwuzla_mappings: to_fp not implemented"
324+
let to_fp eb sb ~rm t = mk_term2_indexed2 Kind.Fp_to_fp_from_fp rm t eb sb
330325

331326
let sbv_to_fp eb sb ~rm bv =
332327
mk_term2_indexed2 Kind.Fp_to_fp_from_sbv rm bv eb sb
@@ -338,8 +333,7 @@ module Fresh_bitwuzla (B : Bitwuzla_cxx.S) : M = struct
338333

339334
let to_sbv m ~rm t = mk_term2_indexed1 Kind.Fp_to_sbv rm t m
340335

341-
(* TODO *)
342-
let of_ieee_bv _ = failwith "Bitwuzla_mappings: of_ieee_bv not implemented"
336+
let of_ieee_bv eb sb bv = mk_term1_indexed2 Kind.Fp_to_fp_from_bv bv eb sb
343337

344338
(* TODO *)
345339
let to_ieee_bv _ = failwith "Bitwuzla_mappings: to_ieee_bv not implemented"

0 commit comments

Comments
 (0)