16
16
#include " refined_string_type.h"
17
17
#include " std_expr.h"
18
18
19
- inline binary_relation_exprt
20
- greater_or_equal_to (const exprt &lhs, const exprt &rhs)
19
+ inline binary_relation_exprt greater_or_equal_to (exprt lhs, exprt rhs)
21
20
{
22
21
PRECONDITION (rhs.type () == lhs.type ());
23
- return binary_relation_exprt (lhs, ID_ge, rhs);
22
+ return binary_relation_exprt (std::move ( lhs) , ID_ge, std::move ( rhs) );
24
23
}
25
24
26
- inline binary_relation_exprt greater_than (const exprt & lhs, const exprt & rhs)
25
+ inline binary_relation_exprt greater_than (exprt lhs, exprt rhs)
27
26
{
28
27
PRECONDITION (rhs.type () == lhs.type ());
29
- return binary_relation_exprt (rhs, ID_lt, lhs);
28
+ return binary_relation_exprt (std::move ( rhs) , ID_lt, std::move ( lhs) );
30
29
}
31
30
32
31
inline binary_relation_exprt greater_than (const exprt &lhs, mp_integer i)
33
32
{
34
33
return binary_relation_exprt (from_integer (i, lhs.type ()), ID_lt, lhs);
35
34
}
36
35
37
- inline binary_relation_exprt
38
- less_than_or_equal_to (const exprt &lhs, const exprt &rhs)
36
+ inline binary_relation_exprt less_than_or_equal_to (exprt lhs, exprt rhs)
39
37
{
40
38
PRECONDITION (rhs.type () == lhs.type ());
41
- return binary_relation_exprt (lhs, ID_le, rhs);
39
+ return binary_relation_exprt (std::move ( lhs) , ID_le, std::move ( rhs) );
42
40
}
43
41
44
42
inline binary_relation_exprt
@@ -47,10 +45,10 @@ less_than_or_equal_to(const exprt &lhs, mp_integer i)
47
45
return binary_relation_exprt (lhs, ID_le, from_integer (i, lhs.type ()));
48
46
}
49
47
50
- inline equal_exprt equal_to (const exprt & lhs, const exprt & rhs)
48
+ inline equal_exprt equal_to (exprt lhs, exprt rhs)
51
49
{
52
50
PRECONDITION (rhs.type () == lhs.type ());
53
- return equal_exprt (lhs, rhs);
51
+ return equal_exprt (std::move ( lhs), std::move ( rhs) );
54
52
}
55
53
56
54
inline equal_exprt equal_to (const exprt &lhs, mp_integer i)
0 commit comments