Skip to content

Commit fe0608d

Browse files
committed
Do not open Batteries when not needed
1 parent 8999c55 commit fe0608d

File tree

11 files changed

+4
-14
lines changed

11 files changed

+4
-14
lines changed

bench/hash.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
open Batteries
21
open Printf
32

43
let n_hash = ref 0

src/analyses/mutexAnalysis.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module MustMultiplicity = LockDomain.MustMultiplicity
1010
module LF = LibraryFunctions
1111
open GoblintCil
1212
open Analyses
13-
open Batteries
1413

1514
module VarSet = SetDomain.Make (Basetype.Variables)
1615

src/analyses/symbLocks.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module VarEq = VarEq.Spec
1010

1111
module PS = SetDomain.ToppedSet (LP) (struct let topname = "All" end)
1212

13-
open Batteries
1413
open GoblintCil
1514
open Pretty
1615
open Analyses

src/cdomain/value/util/wideningThresholds.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open GoblintCil
2-
open Batteries
32
module Thresholds = Set.Make(Z)
43

54
(* Collect only constants that are used in comparisons *)
@@ -61,7 +60,7 @@ class extractThresholdsFromConditionsVisitor(upper_thresholds,lower_thresholds,
6160
end
6261

6362
let default_thresholds = Thresholds.of_list (
64-
let thresh_pos = List.map (Int.pow 2) [0;2;4;8;16;32;48] in
63+
let thresh_pos = List.map (BatInt.pow 2) [0;2;4;8;16;32;48] in
6564
let thresh_neg = List.map (fun x -> -x) thresh_pos in
6665
List.map Z.of_int (thresh_neg @ thresh_pos @ [0])
6766
)
@@ -108,7 +107,7 @@ let thresholds = ResettableLazy.map fst widening_thresholds
108107

109108
let thresholds_incl_mul2 = ResettableLazy.map snd widening_thresholds
110109

111-
module EH = BatHashtbl.Make (CilType.Exp)
110+
module EH = Hashtbl.Make (CilType.Exp)
112111

113112
class extractInvariantsVisitor (exps) = object
114113
inherit nopCilVisitor

src/cdomains/apron/gobApron.apron.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
open Batteries
21
include Apron
32

43
module Scalar =

src/cdomains/apron/sharedFunctions.apron.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(** Relational value domain utilities. *)
22
open GoblintCil
3-
open Batteries
43

54
open GobApron
65

src/common/util/intOps.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
(** Unified interface for integer types. *)
22

3-
open Batteries
4-
53
(* IntOps
64
* Wrapper around integer types providing unified interface for
75
* arithmetic and logical operations. *)

src/common/util/messageCategory.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
open Batteries
21
open GobConfig
32

43
type array_oob =

src/framework/control.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ let spec_module: (module Spec) Lazy.t = lazy (
1818
GobConfig.building_spec := true;
1919
let arg_enabled = get_bool "witness.graphml.enabled" || get_bool "exp.arg.enabled" in
2020
let termination_enabled = List.mem "termination" (get_string_list "ana.activated") in (* check if loop termination analysis is enabled*)
21-
let open Batteries in
2221
(* apply functor F on module X if opt is true *)
2322
let lift opt (module F : S2S) (module X : Spec) = (module (val if opt then (module F (X)) else (module X) : Spec) : Spec) in
2423
let module S1 =

src/framework/resultQuery.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct
6666
end
6767

6868

69-
module NH = BatHashtbl.Make (Node)
69+
module NH = Hashtbl.Make (Node)
7070

7171
module type SpecSysSol2 =
7272
sig

0 commit comments

Comments
 (0)