You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit removes references to the solver log that prevented it from being
garbage collected. It also forces evaluation of the current level and variable
stack in 'Message.showMessages'.
go v l (TryP qpn i :Enter:Failure c fr :Leave: ms) = goPReject v l qpn [i] c fr ms
54
-
go v l (TryF qfn b :Enter:Failure c fr :Leave: ms) = (atLevel (add (F qfn) v) l $"rejecting: "++ showQFNBool qfn b ++ showFR c fr) (go v l ms)
55
-
go v l (TryS qsn b :Enter:Failure c fr :Leave: ms) = (atLevel (add (S qsn) v) l $"rejecting: "++ showQSNBool qsn b ++ showFR c fr) (go v l ms)
56
-
go v l (Next (Goal (P qpn) gr) :TryP qpn' i : ms@(Enter:Next _ : _)) = (atLevel (add (P qpn) v) l $"trying: "++ showQPNPOpt qpn' i ++ showGRs gr) (go (add (P qpn) v) l ms)
57
-
go v l (Next (Goal (P qpn) gr) :Failure c fr : ms) =
57
+
go !v !l (Step (TryP qpn i) (StepEnter (Step (Failure c fr) (StepLeave ms)))) =
58
+
goPReject v l qpn [i] c fr ms
59
+
go !v !l (Step (TryF qfn b) (StepEnter (Step (Failure c fr) (StepLeave ms)))) =
60
+
(atLevel (add (F qfn) v) l $"rejecting: "++ showQFNBool qfn b ++ showFR c fr) (go v l ms)
61
+
go !v !l (Step (TryS qsn b) (StepEnter (Step (Failure c fr) (StepLeave ms)))) =
62
+
(atLevel (add (S qsn) v) l $"rejecting: "++ showQSNBool qsn b ++ showFR c fr) (go v l ms)
goPReject v l qpn is c fr (TryP qpn' i :Enter:Failure _ fr' :Leave: ms) | qpn == qpn' && fr == fr' = goPReject v l qpn (i : is) c fr ms
84
-
goPReject v l qpn is c fr ms = (atLevel (P qpn : v) l $"rejecting: "++L.intercalate ", " (map (showQPNPOpt qpn) (reverse is)) ++ showFR c fr) (go v l ms)
91
+
goPReject:: [VarQPN]
92
+
->Int
93
+
->QPN
94
+
-> [POption]
95
+
->ConflictSetQPN
96
+
->FailReason
97
+
->ProgressMessageab
98
+
->ProgressStringab
99
+
goPReject v l qpn is c fr (Step (TryP qpn' i) (StepEnter (Step (Failure _ fr') (StepLeave ms))))
100
+
| qpn == qpn' && fr == fr' = goPReject v l qpn (i : is) c fr ms
101
+
goPReject v l qpn is c fr ms =
102
+
(atLevel (P qpn : v) l $"rejecting: "++L.intercalate ", " (map (showQPNPOpt qpn) (reverse is)) ++ showFR c fr) (go v l ms)
85
103
86
104
-- write a message, but only if it's relevant; we can also enable or disable the display of the current level
0 commit comments