mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
fix: typecheck issue
This commit is contained in:
parent
4c90405391
commit
28ad97d2b7
1 changed files with 2 additions and 2 deletions
|
|
@ -128,13 +128,13 @@ let t_as_q t =
|
||||||
| _ -> None
|
| _ -> None
|
||||||
*)
|
*)
|
||||||
|
|
||||||
let is_real = Ty.is_real
|
let is_real t = Ty.is_real (T.ty t)
|
||||||
|
|
||||||
(* convert [t] to a real term *)
|
(* convert [t] to a real term *)
|
||||||
let cast_to_real (ctx : Ctx.t) (t : T.t) : T.t =
|
let cast_to_real (ctx : Ctx.t) (t : T.t) : T.t =
|
||||||
let conv t =
|
let conv t =
|
||||||
match T.view t with
|
match T.view t with
|
||||||
| _ when Ty.is_real (T.ty t) -> t
|
| _ when is_real t -> t
|
||||||
(* FIXME
|
(* FIXME
|
||||||
| T.LIA (Const n) -> T.lra ctx.tst (Const (Q.of_bigint n))
|
| T.LIA (Const n) -> T.lra ctx.tst (Const (Q.of_bigint n))
|
||||||
| T.LIA l ->
|
| T.LIA l ->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue