Skip to content

Commit e6f5ffa

Browse files
committed
variable_sensitivity_domaint::to_predicate
Wrapper that calls down into abstract_environmentt::to_predicate
1 parent a04a529 commit e6f5ffa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/analyses/variable-sensitivity/variable_sensitivity_domain.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ void variable_sensitivity_domaint::output(
176176
abstract_state.output(out, ai, ns);
177177
}
178178

179+
exprt variable_sensitivity_domaint::to_predicate() const
180+
{
181+
return abstract_state.to_predicate();
182+
}
183+
179184
void variable_sensitivity_domaint::make_bottom()
180185
{
181186
abstract_state.make_bottom();

src/analyses/variable-sensitivity/variable_sensitivity_domain.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ class variable_sensitivity_domaint : public ai_domain_baset
146146
void output(std::ostream &out, const ai_baset &ai, const namespacet &ns)
147147
const override;
148148

149-
void output(std::ostream &out) const;
149+
/// Gives a Boolean condition that is true for all values represented by the
150+
/// domain. This allows domains to be converted into program invariants.
151+
///
152+
/// \return exprt describing the domain
153+
exprt to_predicate() const override;
150154

151155
/// Computes the join between "this" and "b".
152156
///

0 commit comments

Comments
 (0)