Skip to content

Commit

Permalink
Merge pull request diffblue#1393 from diffblue/byte_extract_is_binary
Browse files Browse the repository at this point in the history
byte_extract expressions are binary expressions
  • Loading branch information
Daniel Kroening authored Sep 16, 2017
2 parents 4e1fe93 + 68f2862 commit 1d81035
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/util/byte_operators.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,29 @@ Author: Daniel Kroening, [email protected]
* \date Sun Jul 31 21:54:44 BST 2011
*/

#include "expr.h"
#include "std_expr.h"

/*! \brief TO_BE_DOCUMENTED
*/
class byte_extract_exprt:public exprt
class byte_extract_exprt:public binary_exprt
{
public:
explicit byte_extract_exprt(irep_idt _id):exprt(_id)
explicit byte_extract_exprt(irep_idt _id):binary_exprt(_id)
{
operands().resize(2);
}

explicit byte_extract_exprt(irep_idt _id, const typet &_type):
exprt(_id, _type)
binary_exprt(_id, _type)
{
operands().resize(2);
}

byte_extract_exprt(
irep_idt _id,
const exprt &_op, const exprt &_offset, const typet &_type):
exprt(_id, _type)
binary_exprt(_id, _type)
{
copy_to_operands(_op, _offset);
op()=_op;
offset()=_offset;
}

exprt &op() { return op0(); }
Expand Down

0 comments on commit 1d81035

Please sign in to comment.