Skip to content

Commit

Permalink
Fix indentation in goblint_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Dec 8, 2023
1 parent 3b82569 commit cb90811
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/domain/boolDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ module Bool =
struct
include Basetype.RawBools
(* type t = bool
let equal = Bool.equal
let compare = Bool.compare
let relift x = x
let arbitrary () = QCheck.bool *)
let equal = Bool.equal
let compare = Bool.compare
let relift x = x
let arbitrary () = QCheck.bool *)

let pretty_diff () (x,y) = GoblintCil.Pretty.dprintf "%s: %a not leq %a" (name ()) pretty x pretty y
end
Expand Down
22 changes: 12 additions & 10 deletions src/domain/hoareDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,15 @@ struct
let equal x y = leq x y && leq y x
let hash xs = fold (fun v a -> a + E.hash v) xs 0
let compare x y =
if equal x y
then 0
if equal x y then
0
else (
let caridnality_comp = compare (cardinal x) (cardinal y) in
if caridnality_comp <> 0 then
caridnality_comp
else
let caridnality_comp = compare (cardinal x) (cardinal y) in
if caridnality_comp <> 0
then caridnality_comp
else Map.compare (List.compare E.compare) x y
Map.compare (List.compare E.compare) x y
)
let show x : string =
let all_elems : string list = List.map E.show (elements x) in
Printable.get_short_list "{" "}" all_elems
Expand Down Expand Up @@ -234,8 +236,8 @@ struct
) s2 nil
with Not_found ->
dprintf "choose failed b/c of empty set s1: %d s2: %d"
(cardinal s1)
(cardinal s2)
(cardinal s1)
(cardinal s2)
end
end

Expand Down Expand Up @@ -339,8 +341,8 @@ struct
) s2 nil
with Not_found ->
dprintf "choose failed b/c of empty set s1: %d s2: %d"
(cardinal s1)
(cardinal s2)
(cardinal s1)
(cardinal s2)
end
end
[@@deprecated]
Expand Down
4 changes: 2 additions & 2 deletions src/domain/mapDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,8 @@ struct
let singleton k v = `Lifted (M.singleton k v)
let empty () = `Lifted (M.empty ())
let is_empty = function
| `Bot -> false
| `Lifted x -> M.is_empty x
| `Bot -> false
| `Lifted x -> M.is_empty x
let exists f = function
| `Bot -> raise (Fn_over_All "exists")
| `Lifted x -> M.exists f x
Expand Down

0 comments on commit cb90811

Please sign in to comment.