Skip to content

Commit 27295d7

Browse files
committed
Fix SolverTest compilation
1 parent e9c0cc3 commit 27295d7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

unittest/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(test
44
(name mainTest)
5-
(libraries ounit2 qcheck-ounit goblint.std goblint.lib goblint.sites.dune goblint.build-info.dune)
5+
(libraries ounit2 qcheck-ounit goblint.std goblint.lib goblint.constraint goblint.solver goblint.sites.dune goblint.build-info.dune)
66
(preprocess (pps ppx_deriving.std ppx_deriving_hash ppx_deriving_yojson))
77
(flags :standard -linkall))
88

unittest/solver/solverTest.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ open Goblint_lib
22
open OUnit2
33
open GoblintCil
44
open Pretty
5+
open ConstrSys
6+
open Goblint_solver
57

68
(* variables are strings *)
79
module StringVar =
@@ -43,7 +45,7 @@ module ConstrSys = struct
4345
| _ -> None
4446

4547
let iter_vars _ _ _ _ _ = ()
46-
let sys_change _ _ = {Analyses.obsolete = []; delete = []; reluctant = []; restart = []}
48+
let sys_change _ _ = {obsolete = []; delete = []; reluctant = []; restart = []}
4749
end
4850

4951
module LH = BatHashtbl.Make (ConstrSys.LVar)
@@ -55,7 +57,7 @@ struct
5557
let should_warn = false
5658
let should_save_run = false
5759
end
58-
module Solver = Constraints.GlobSolverFromEqSolver (Constraints.EqIncrSolverFromEqSolver (EffectWConEq.Make) (PostSolverArg)) (ConstrSys) (LH) (GH)
60+
module Solver = GlobSolverFromEqSolver (PostSolver.EqIncrSolverFromEqSolver (EffectWConEq.Make) (PostSolverArg)) (ConstrSys) (LH) (GH)
5961

6062
let test1 _ =
6163
let id x = x in

unittest/util/intOpsTest.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
open OUnit2
22
open Goblint_std
3-
open Goblint_lib
43

54
(* If the first operand of a div is negative, Zarith rounds the result away from zero.
65
We thus always transform this into a division with a non-negative first operand. *)

0 commit comments

Comments
 (0)