Skip to content

Commit 824f950

Browse files
committed
CHJ: fix warnings and reformat
1 parent a329928 commit 824f950

19 files changed

+1577
-1610
lines changed

CodeHawk/CHJ/jchpoly/jCHTNode.ml

Lines changed: 165 additions & 161 deletions
Large diffs are not rendered by default.

CodeHawk/CHJ/jchpoly/jCHTNode.mli

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
Author: Anca Browne
44
------------------------------------------------------------------------------
55
The MIT License (MIT)
6-
6+
77
Copyright (c) 2005-2020 Kestrel Technology LLC
8+
Copyright (c) 2020-2024 Henny B. Sipma
89
910
Permission is hereby granted, free of charge, to any person obtaining a copy
1011
of this software and associated documentation files (the "Software"), to deal
1112
in the Software without restriction, including without limitation the rights
1213
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1314
copies of the Software, and to permit persons to whom the Software is
1415
furnished to do so, subject to the following conditions:
15-
16+
1617
The above copyright notice and this permission notice shall be included in all
1718
copies or substantial portions of the Software.
18-
19+
1920
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2021
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2122
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -29,8 +30,6 @@
2930
open CHLanguage
3031
open CHPretty
3132

32-
(* jchpre *)
33-
open JCHPreAPI
3433

3534
val dbg : bool ref
3635

@@ -47,9 +46,9 @@ val mk_eq_node :
4746
-> variable_t
4847
-> CHUtils.SymbolCollections.set_t
4948
-> taint_node_int
50-
49+
5150
val mk_field_node: field_info_int -> taint_node_int
52-
51+
5352
val mk_call_node :
5453
int
5554
-> int
@@ -58,7 +57,7 @@ val mk_call_node :
5857
-> variable_t option
5958
-> variable_t list
6059
-> taint_node_int
61-
60+
6261
val mk_unknown_call_node :
6362
int
6463
-> int
@@ -88,7 +87,7 @@ module TaintNodeCollections :
8887
module ObjectMap :
8988
sig
9089
type key = taint_node_int
91-
type 'a t
90+
type 'a t
9291
val empty : 'a t
9392
val is_empty : 'a t -> bool
9493
val mem : key -> 'a t -> bool
@@ -120,7 +119,7 @@ module TaintNodeCollections :
120119
module ObjectSet :
121120
sig
122121
type elt = taint_node_int
123-
type t
122+
type t
124123
val empty : t
125124
val is_empty : t -> bool
126125
val mem : elt -> t -> bool
@@ -214,12 +213,11 @@ module TaintNodeCollections :
214213
end
215214

216215
val print_dictionary : unit -> unit
217-
216+
218217
val taint_node_set_to_pretty: TaintNodeCollections.set_t -> pretty_t
219-
218+
220219
val taint_node_table_to_pretty:
221220
TaintNodeCollections.set_t TaintNodeCollections.table_t -> pretty_t
222-
221+
223222
val save_taint_trail:
224223
TaintNodeCollections.set_t TaintNodeCollections.table_t -> int -> unit
225-

0 commit comments

Comments
 (0)