mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-07 03:35:38 -05:00
fix(lit): add type checking assertion
This commit is contained in:
parent
fad651a4cb
commit
67c9ffa2ac
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ let[@inline] make_ ~sign t : t = { lit_sign = sign; lit_term = t }
|
|||
|
||||
let atom ?(sign = true) tst (t : term) : t =
|
||||
let sign', t = T_builtins.abs tst t in
|
||||
assert (T_builtins.is_bool (Term.ty t));
|
||||
let sign = sign = sign' in
|
||||
make_ ~sign t
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue