Skip to content

Commit

Permalink
Fix indentation in moved common library files
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 12, 2023
1 parent 3281c74 commit 956efd8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions src/common/domains/lattice.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
module Pretty = GoblintCil.Pretty

(* module type Rel =
sig
type t
type relation = Less | Equal | Greater | Uncomparable
val rel : t -> t -> relation
val in_rel : t -> relation -> t -> bool
end *)
sig
type t
type relation = Less | Equal | Greater | Uncomparable
val rel : t -> t -> relation
val in_rel : t -> relation -> t -> bool
end *)

(* partial order: elements might not be comparable and no bot/top -> join etc. might fail with exception Uncomparable *)
exception Uncomparable
Expand Down Expand Up @@ -324,14 +324,14 @@ struct
match (x,y) with
| (`Lifted x, `Lifted y) ->
(try `Lifted (Base.widen x y)
with Uncomparable -> `Top)
with Uncomparable -> `Top)
| _ -> y

let narrow x y =
match (x,y) with
| (`Lifted x, `Lifted y) ->
(try `Lifted (Base.narrow x y)
with Uncomparable -> `Bot)
with Uncomparable -> `Bot)
| _ -> x
end

Expand Down
14 changes: 7 additions & 7 deletions src/common/util/lazyEval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
Node -> CilType -> Printable -> Goblintutil -> GobConfig -> Tracing -> Node *)

module Make (M : sig
type t
type result
val eval : t -> result
end) : sig
type t
type result
val eval : t -> result
end) : sig
type t
val make : M.t -> t
val force : t -> M.result
Expand All @@ -20,8 +20,8 @@ end = struct
let force l =
match l.value with
| `Closure arg ->
let v = M.eval arg in
l.value <- `Computed v;
v
let v = M.eval arg in
l.value <- `Computed v;
v
| `Computed v -> v
end
4 changes: 2 additions & 2 deletions src/common/util/messageCategory.ml
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ let categoryName = function

| Behavior x -> behaviorName x
| Integer x -> (match x with
| Overflow -> "Overflow";
| DivByZero -> "DivByZero")
| Overflow -> "Overflow";
| DivByZero -> "DivByZero")
| Float -> "Float"


Expand Down

0 comments on commit 956efd8

Please sign in to comment.