Skip to content

Commit fcf83dc

Browse files
author
Daniel Kroening
committed
also notify assignments, not just goals
1 parent 8103a17 commit fcf83dc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/solvers/prop/cover_goals.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ Function: cover_goalst::mark
4141

4242
void cover_goalst::mark()
4343
{
44+
// notify observers
45+
for(const auto & o : observers)
46+
o->satisfying_assignment();
47+
4448
for(auto & g : goals)
4549
if(g.status==goalt::statust::UNKNOWN &&
4650
prop_conv.l_get(g.condition).is_true())

src/solvers/prop/cover_goals.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ class cover_goalst:public messaget
8282
class observert
8383
{
8484
public:
85-
virtual void goal_covered(const goalt &)=0;
85+
virtual void goal_covered(const goalt &) { }
86+
virtual void satisfying_assignment() { }
8687
};
8788

8889
inline void register_observer(observert &o)

0 commit comments

Comments
 (0)