Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Jun 27, 2024
1 parent 2c92cee commit 76c27bf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/cdomains/apron/apronDomain.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,18 @@ struct

let show (x:t) =
Format.asprintf "%a (env: %a)" A.print x (Environment.print: Format.formatter -> Environment.t -> unit) (A.env x)
let pretty () (x:t) = text (show x)

(* HACK: Hotfix for https://github.com/goblint/cil/issues/169, remove once that is resolved and dependencies updated *)
let custom_text (s:string) =
let lines = String.split_on_char '\n' s in
let rec doit = function
| [] -> nil
| [x1] -> text x1
| x1::xs -> (text x1) ++ line ++ doit xs
in
doit lines

let pretty () (x:t) = custom_text (show x)

let equal x y =
Environment.equal (A.env x) (A.env y) && A.is_eq Man.mgr x y
Expand Down

0 comments on commit 76c27bf

Please sign in to comment.