Skip to content

Commit d1b8043

Browse files
committed
Fix indentation (PR #1312)
1 parent c5b3a4f commit d1b8043

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/analyses/wrapperFunctionAnalysis.ml

+13-13
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,19 @@ module MallocWrapper : MCPSpec = struct
131131
CilType.Location.show loc
132132

133133
let name_varinfo (t, node, c) =
134-
let uniq_count =
135-
if not (GobConfig.get_bool "dbg.full-output") && UniqueCount.is_top c then
136-
Format.dprintf ""
137-
else
138-
Format.dprintf "(#%s)" (UniqueCount.show c)
139-
in
140-
let tid =
141-
if not (GobConfig.get_bool "dbg.full-output") && ThreadLifted.is_top t then
142-
Format.dprintf ""
143-
else
144-
Format.dprintf "@tid:%s%t" (ThreadLifted.show t) uniq_count
145-
in
146-
Format.asprintf "(alloc@sid:%s%t)" (Node.show_id node) tid
134+
let uniq_count =
135+
if not (GobConfig.get_bool "dbg.full-output") && UniqueCount.is_top c then
136+
Format.dprintf ""
137+
else
138+
Format.dprintf "(#%s)" (UniqueCount.show c)
139+
in
140+
let tid =
141+
if not (GobConfig.get_bool "dbg.full-output") && ThreadLifted.is_top t then
142+
Format.dprintf ""
143+
else
144+
Format.dprintf "@tid:%s%t" (ThreadLifted.show t) uniq_count
145+
in
146+
Format.asprintf "(alloc@sid:%s%t)" (Node.show_id node) tid
147147
end
148148

149149
module NodeVarinfoMap = RichVarinfo.BiVarinfoMap.Make(ThreadNode)

src/cdomain/value/cdomains/intDomain.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3614,8 +3614,8 @@ module IntDomTupleImpl = struct
36143614
match to_int x with
36153615
| Some v when not (GobConfig.get_bool "dbg.full-output") -> Z.to_string v
36163616
| _ -> mapp { fp = fun (type a) (module I:SOverflow with type t = a) x -> I.name () ^ ":" ^ (I.show x) } x
3617-
|> to_list
3618-
|> String.concat "; "
3617+
|> to_list
3618+
|> String.concat "; "
36193619
let to_yojson = [%to_yojson: Yojson.Safe.t list] % to_list % mapp { fp = fun (type a) (module I:SOverflow with type t = a) x -> I.to_yojson x }
36203620
let hash = List.fold_left (lxor) 0 % to_list % mapp { fp = fun (type a) (module I:SOverflow with type t = a) -> I.hash }
36213621

0 commit comments

Comments
 (0)