Merge pull request #1943 from triska/dead_skeleton

FIXED: do not attach constraint if the propagator is already entailed and killed
This commit is contained in:
Mark Thom
2023-08-02 16:32:27 -06:00
committed by GitHub

View File

@@ -3784,8 +3784,11 @@ var_eq(V, N, #V #= N).
% Match variables to created skeleton. % Match variables to created skeleton.
skeleton(Vs, Vs-Prop) :- skeleton(Vs, Vs-Prop) :-
maplist(prop_init(Prop), Vs), ( propagator_state(Prop, State), State == dead ->
trigger_once(Prop). true
; maplist(prop_init(Prop), Vs),
trigger_once(Prop)
).
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
A drep is a user-accessible and visible domain representation. N, A drep is a user-accessible and visible domain representation. N,