Skip to content

Commit

Permalink
two minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gbury committed Sep 14, 2024
1 parent 19bf4ea commit 7e18fa9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/languages/smtlib2/poly/print.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ module Misc = Dolmen_std.Misc

exception Cannot_print of string



(* TODO: structured errors *)
let _cannot_print format =
Format.kasprintf (fun msg -> raise (Cannot_print msg)) format
Expand Down Expand Up @@ -922,6 +924,7 @@ module Make

let attribute env fmt t =
match S.view t with
| Symbol _ when is_keyword t -> sexpr env fmt t
| App ([k; _]) when is_keyword k -> sexpr env fmt t
| _ -> _cannot_print "not an attribtue"

Expand Down
1 change: 1 addition & 0 deletions src/languages/smtlib2/v2.6/script/print.ml
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ module Make

let attribute env fmt t =
match S.view t with
| Symbol _ when is_keyword t -> sexpr env fmt t
| App ([k; _]) when is_keyword k -> sexpr env fmt t
| _ -> _cannot_print "not an attribtue"

Expand Down
4 changes: 2 additions & 2 deletions src/loop/transform.ml
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ module Smtlib2
attrs = [];
implicit = false;
} in
add_stmt acc exit
add_post_logic_stmt acc exit
in
let acc = add_stmt acc stmt in
let acc = add_post_logic_stmt acc stmt in
flush st acc res
end

Expand Down

0 comments on commit 7e18fa9

Please sign in to comment.