Skip to content

Commit

Permalink
fix(model): add a constant to unin types with empty domains
Browse files Browse the repository at this point in the history
close #5
  • Loading branch information
c-cube committed Oct 13, 2018
1 parent a4deb1c commit 4e10681
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,12 @@ module Make(Config : CONFIG)(Dummy : sig end) = struct
let domains =
Ty.Tbl.to_seq doms
|> Sequence.map
(fun (ty,dom) -> Conv.ty_to_ast ty, List.map Typed_cst.id dom)
(fun (ty,dom) ->
let dom = match dom with
| [] -> [ID.make (Printf.sprintf "$%s_0" (Ty.mangle ty))]
| l -> List.map Typed_cst.id l
in
Conv.ty_to_ast ty, dom)
|> Ast.Ty.Map.of_seq
in
Model.make ~env ~consts ~domains
Expand Down

0 comments on commit 4e10681

Please sign in to comment.