Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Fix a chc model parsing bug and change the printing style of refineme…
Browse files Browse the repository at this point in the history
…nt types
  • Loading branch information
moratorium08 committed Sep 21, 2023
1 parent a4b6195 commit 340e556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/typing/chc_solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ let parse_model model =
| _ -> failwith "program error"
in
let rec simplify_def x = match x with
| RAnd(x, y) -> RAnd(simplify x, simplify y)
| ROr(x, y) -> ROr(simplify x, simplify y)
| RAnd(x, y) -> RAnd(simplify_def x, simplify_def y)
| ROr(x, y) -> ROr(simplify_def x, simplify_def y)
| RTemplate((name, args)) ->
let (_, vars, form) = List.find_exn defs ~f:(fun (name', _, _) -> (Rid.eq name name')) in
subst_arg vars args form
Expand Down
2 changes: 1 addition & 1 deletion lib/typing/rtype.ml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ let rec print_rtype = function
Printf.printf " -> ";
print_rtype y;
print_string ")";
| RInt x -> Printf.printf "int("; print_rint x; Printf.printf ")"
| RInt x -> print_rint x; Printf.printf ": int"


let rint2arith = function
Expand Down

0 comments on commit 340e556

Please sign in to comment.