Skip to content

Commit 3656fb9

Browse files
committed
Remove deprecated (and now unused) exprt::make_not
Users should use boolean_negate instead.
1 parent 97e9f02 commit 3656fb9

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

src/util/expr.cpp

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -78,38 +78,6 @@ void exprt::make_typecast(const typet &_type)
7878
swap(new_expr);
7979
}
8080

81-
/// Negate the expression.
82-
/// Simplifications:
83-
/// - If the expression is trivially true, make it false, and vice versa.
84-
/// - If the expression is an `ID_not`, remove the not.
85-
/// \deprecated use constructors instead
86-
void exprt::make_not()
87-
{
88-
if(is_true())
89-
{
90-
*this=false_exprt();
91-
return;
92-
}
93-
else if(is_false())
94-
{
95-
*this=true_exprt();
96-
return;
97-
}
98-
99-
exprt new_expr;
100-
101-
if(id()==ID_not && operands().size()==1)
102-
{
103-
new_expr.swap(operands().front());
104-
}
105-
else
106-
{
107-
new_expr = not_exprt(*this);
108-
}
109-
110-
swap(new_expr);
111-
}
112-
11381
/// Return whether the expression is a constant.
11482
/// \return True if is a constant, false otherwise
11583
bool exprt::is_constant() const

src/util/expr.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ class exprt:public irept
213213
}
214214

215215
void make_typecast(const typet &_type);
216-
void make_not();
217216

218217
void make_true();
219218
void make_false();

0 commit comments

Comments
 (0)