@@ -74,18 +74,10 @@ class CHC: public SMTEncoder
74
74
75
75
friend bool operator <(CHCVerificationTarget const & _a, CHCVerificationTarget const & _b)
76
76
{
77
- return _a.errorId < _b.errorId ;
78
- }
79
- };
80
-
81
- struct SafeTargetsCompare
82
- {
83
- bool operator ()(CHCVerificationTarget const & _lhs, CHCVerificationTarget const & _rhs) const
84
- {
85
- if (_lhs.errorNode ->id () == _rhs.errorNode ->id ())
86
- return _lhs.type < _rhs.type ;
77
+ if (_a.errorNode ->id () == _b.errorNode ->id ())
78
+ return _a.type < _b.type ;
87
79
else
88
- return _lhs .errorNode ->id () == _rhs .errorNode ->id ();
80
+ return _a .errorNode ->id () < _b .errorNode ->id ();
89
81
}
90
82
};
91
83
@@ -96,7 +88,7 @@ class CHC: public SMTEncoder
96
88
std::string message;
97
89
};
98
90
99
- std::map<ASTNode const *, std::set<CHCVerificationTarget, SafeTargetsCompare >, smt::EncodingContext::IdCompare> const & safeTargets () const { return m_safeTargets; }
91
+ std::map<ASTNode const *, std::set<CHCVerificationTarget>, smt::EncodingContext::IdCompare> const & safeTargets () const { return m_safeTargets; }
100
92
std::map<ASTNode const *, std::map<VerificationTargetType, ReportTargetInfo>, smt::EncodingContext::IdCompare> const & unsafeTargets () const { return m_unsafeTargets; }
101
93
102
94
// / This is used if the Horn solver is not directly linked into this binary.
@@ -434,7 +426,7 @@ class CHC: public SMTEncoder
434
426
std::map<unsigned , CHCVerificationTarget> m_verificationTargets;
435
427
436
428
// / Targets proved safe.
437
- std::map<ASTNode const *, std::set<CHCVerificationTarget, SafeTargetsCompare >, smt::EncodingContext::IdCompare> m_safeTargets;
429
+ std::map<ASTNode const *, std::set<CHCVerificationTarget>, smt::EncodingContext::IdCompare> m_safeTargets;
438
430
// / Targets proved unsafe.
439
431
std::map<ASTNode const *, std::map<VerificationTargetType, ReportTargetInfo>, smt::EncodingContext::IdCompare> m_unsafeTargets;
440
432
// / Targets not proved.
0 commit comments