mirror of
https://github.com/c-cube/sidekick.git
synced 2026-05-05 08:54:24 -04:00
fix warnings
This commit is contained in:
parent
83cef9e2b9
commit
3d9b32ad38
3 changed files with 6 additions and 6 deletions
|
|
@ -124,8 +124,8 @@ module Step = struct
|
||||||
| [] -> []
|
| [] -> []
|
||||||
| vs ->
|
| vs ->
|
||||||
let gen =
|
let gen =
|
||||||
let+ x = oneofl vs
|
let+ x = oneof_list vs
|
||||||
and+ kind = oneofl [ `Leq; `Lt; `Geq; `Gt ]
|
and+ kind = oneof_list [ `Leq; `Lt; `Geq; `Gt ]
|
||||||
and+ n = rand_q.QC.gen in
|
and+ n = rand_q.QC.gen in
|
||||||
( vars,
|
( vars,
|
||||||
match kind with
|
match kind with
|
||||||
|
|
@ -145,11 +145,11 @@ module Step = struct
|
||||||
(if List.length vars > 2 then (
|
(if List.length vars > 2 then (
|
||||||
let v = List.length vars in
|
let v = List.length vars in
|
||||||
let gen =
|
let gen =
|
||||||
let* vars' = G.shuffle_l vars in
|
let* vars' = shuffle_list vars in
|
||||||
let* n = 1 -- min 12 (List.length vars') in
|
let* n = 1 -- min 12 (List.length vars') in
|
||||||
let vars' = CCList.take n vars' in
|
let vars' = CCList.take n vars' in
|
||||||
assert (List.length vars' = n);
|
assert (List.length vars' = n);
|
||||||
let* coeffs = list_repeat n rand_q.gen in
|
let* coeffs = list_size (return n) rand_q.gen in
|
||||||
let le = List.combine coeffs vars' in
|
let le = List.combine coeffs vars' in
|
||||||
return (v :: vars, S_define (v, le))
|
return (v :: vars, S_define (v, le))
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ type state = {
|
||||||
p_reader: Proof.Trace_reader.t;
|
p_reader: Proof.Trace_reader.t;
|
||||||
}
|
}
|
||||||
|
|
||||||
let show_sat (self : state) ~tag v : unit =
|
let show_sat (_self : state) ~tag v : unit =
|
||||||
match tag with
|
match tag with
|
||||||
| "AssCSat" ->
|
| "AssCSat" ->
|
||||||
(match
|
(match
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ module Atom = Store.Atom
|
||||||
module Var = Store.Var
|
module Var = Store.Var
|
||||||
module Clause = Store.Clause
|
module Clause = Store.Clause
|
||||||
|
|
||||||
module H = Heap.Make [@specialise] (struct
|
module H = Heap.Make (struct
|
||||||
type store = Store.t
|
type store = Store.t
|
||||||
type t = var
|
type t = var
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue