Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitv] slightly better printing of terms and simple terms #727

Merged
merged 3 commits into from
Jul 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib/reasoners/bitv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ module Shostak(X : ALIEN) = struct
let open Format in
match ast.bv with
| Cte b -> fprintf fmt "%d[%d]" (if b then 1 else 0) ast.sz
| Other t -> fprintf fmt "%a" X.print t
| Ext (t,_,i,j) ->
fprintf fmt "%a" X.print t;
| Other t -> fprintf fmt "%a[%d]" X.print t ast.sz
| Ext (t,sz,i,j) ->
fprintf fmt "%a[%d]" X.print t sz;
fprintf fmt "<%d,%d>" i j

let[@warning "-32"] rec print_I_ast fmt ast =
Expand All @@ -347,7 +347,7 @@ module Shostak(X : ALIEN) = struct
match ast.bv with
| I_Cte b -> fprintf fmt "%d[%d]" (if b then 1 else 0) ast.sz
| I_Other t -> fprintf fmt "%a[%d]" X.print t ast.sz
| I_Ext (u,i,j) -> fprintf fmt "%a<%d,%d>" print_I_ast u i j
| I_Ext (u,i,j) -> fprintf fmt "%a[%d]<%d,%d>" print_I_ast u u.sz i j
| I_Comp(u,v) -> fprintf fmt "@[(%a * %a)@]" print_I_ast u print_I_ast v

let print_C_ast fmt = function
Expand Down
Loading