Skip to content

Commit 1d81035

Browse files
author
Daniel Kroening
authored
Merge pull request #1393 from diffblue/byte_extract_is_binary
byte_extract expressions are binary expressions
2 parents 4e1fe93 + 68f2862 commit 1d81035

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/util/byte_operators.h

+7-8
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,29 @@ Author: Daniel Kroening, [email protected]
1717
* \date Sun Jul 31 21:54:44 BST 2011
1818
*/
1919

20-
#include "expr.h"
20+
#include "std_expr.h"
2121

2222
/*! \brief TO_BE_DOCUMENTED
2323
*/
24-
class byte_extract_exprt:public exprt
24+
class byte_extract_exprt:public binary_exprt
2525
{
2626
public:
27-
explicit byte_extract_exprt(irep_idt _id):exprt(_id)
27+
explicit byte_extract_exprt(irep_idt _id):binary_exprt(_id)
2828
{
29-
operands().resize(2);
3029
}
3130

3231
explicit byte_extract_exprt(irep_idt _id, const typet &_type):
33-
exprt(_id, _type)
32+
binary_exprt(_id, _type)
3433
{
35-
operands().resize(2);
3634
}
3735

3836
byte_extract_exprt(
3937
irep_idt _id,
4038
const exprt &_op, const exprt &_offset, const typet &_type):
41-
exprt(_id, _type)
39+
binary_exprt(_id, _type)
4240
{
43-
copy_to_operands(_op, _offset);
41+
op()=_op;
42+
offset()=_offset;
4443
}
4544

4645
exprt &op() { return op0(); }

0 commit comments

Comments
 (0)