forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diffblue#1393 from diffblue/byte_extract_is_binary
byte_extract expressions are binary expressions
- Loading branch information
Showing
1 changed file
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(); } | ||
|