Add used field to variables

This commit is contained in:
Guillaume Bury 2017-01-17 12:26:18 +01:00
parent b5d816fbac
commit c77c997ab8
2 changed files with 4 additions and 0 deletions

View file

@ -44,6 +44,7 @@ module McMake (E : Expr_intf.S)(Dummy : sig end) = struct
vid : int; vid : int;
pa : atom; pa : atom;
na : atom; na : atom;
mutable used : int;
mutable seen : bool; mutable seen : bool;
mutable v_level : int; mutable v_level : int;
mutable v_weight : float; mutable v_weight : float;
@ -92,6 +93,7 @@ module McMake (E : Expr_intf.S)(Dummy : sig end) = struct
{ vid = -101; { vid = -101;
pa = dummy_atom; pa = dummy_atom;
na = dummy_atom; na = dummy_atom;
used = 0;
seen = false; seen = false;
v_level = -1; v_level = -1;
v_weight = -1.; v_weight = -1.;
@ -159,6 +161,7 @@ module McMake (E : Expr_intf.S)(Dummy : sig end) = struct
{ vid = !cpt_mk_var; { vid = !cpt_mk_var;
pa = pa; pa = pa;
na = na; na = na;
used = 0;
seen = false; seen = false;
v_level = -1; v_level = -1;
v_weight = 0.; v_weight = 0.;

View file

@ -48,6 +48,7 @@ module type S = sig
vid : int; (** Unique identifier *) vid : int; (** Unique identifier *)
pa : atom; (** Link for the positive atom *) pa : atom; (** Link for the positive atom *)
na : atom; (** Link for the negative atom *) na : atom; (** Link for the negative atom *)
mutable used : int; (** Number of attached clause that contain the var *)
mutable seen : bool; (** Boolean used during propagation *) mutable seen : bool; (** Boolean used during propagation *)
mutable v_level : int; (** Level of decision/propagation *) mutable v_level : int; (** Level of decision/propagation *)
mutable v_weight : float; (** Variable weight (for the heap) *) mutable v_weight : float; (** Variable weight (for the heap) *)