File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -78,38 +78,6 @@ void exprt::make_typecast(const typet &_type)
78
78
swap (new_expr);
79
79
}
80
80
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
-
113
81
// / Return whether the expression is a constant.
114
82
// / \return True if is a constant, false otherwise
115
83
bool exprt::is_constant () const
Original file line number Diff line number Diff line change @@ -213,7 +213,6 @@ class exprt:public irept
213
213
}
214
214
215
215
void make_typecast (const typet &_type);
216
- void make_not ();
217
216
218
217
void make_true ();
219
218
void make_false ();
You can’t perform that action at this time.
0 commit comments