@@ -35,51 +35,6 @@ std::size_t exprt::size() const
3535 return size;
3636}
3737
38- // / Move the given argument to the end of `exprt`'s operands.
39- // / The argument is destroyed and mutated to a reference to a nil `irept`.
40- // / \param expr: `exprt` to append to the operands
41- void exprt::move_to_operands (exprt &expr)
42- {
43- operandst &op=operands ();
44- op.push_back (static_cast <const exprt &>(get_nil_irep ()));
45- op.back ().swap (expr);
46- }
47-
48- // / Move the given arguments to the end of `exprt`'s operands.
49- // / The arguments are destroyed and mutated to a reference to a nil `irept`.
50- // / \param e1: first `exprt` to append to the operands
51- // / \param e2: second `exprt` to append to the operands
52- void exprt::move_to_operands (exprt &e1 , exprt &e2 )
53- {
54- operandst &op=operands ();
55- #ifndef USE_LIST
56- op.reserve (op.size ()+2 );
57- #endif
58- op.push_back (static_cast <const exprt &>(get_nil_irep ()));
59- op.back ().swap (e1 );
60- op.push_back (static_cast <const exprt &>(get_nil_irep ()));
61- op.back ().swap (e2 );
62- }
63-
64- // / Move the given arguments to the end of `exprt`'s operands.
65- // / The arguments are destroyed and mutated to a reference to a nil `irept`.
66- // / \param e1: first `exprt` to append to the operands
67- // / \param e2: second `exprt` to append to the operands
68- // / \param e3: third `exprt` to append to the operands
69- void exprt::move_to_operands (exprt &e1 , exprt &e2 , exprt &e3 )
70- {
71- operandst &op=operands ();
72- #ifndef USE_LIST
73- op.reserve (op.size ()+3 );
74- #endif
75- op.push_back (static_cast <const exprt &>(get_nil_irep ()));
76- op.back ().swap (e1 );
77- op.push_back (static_cast <const exprt &>(get_nil_irep ()));
78- op.back ().swap (e2 );
79- op.push_back (static_cast <const exprt &>(get_nil_irep ()));
80- op.back ().swap (e3 );
81- }
82-
8338// / Return whether the expression is a constant.
8439// / \return True if is a constant, false otherwise
8540bool exprt::is_constant () const
0 commit comments