7 #ifndef RETDEC_LLVMIR2HLL_IR_BIT_SHR_OP_EXPR_H
8 #define RETDEC_LLVMIR2HLL_IR_BIT_SHR_OP_EXPR_H
A base class for all binary operators.
A base class for all binary operators.
Definition: binary_op_expr.h:21
ShPtr< Expression > op1
First operand.
Definition: binary_op_expr.h:44
ShPtr< Expression > op2
Second operand.
Definition: binary_op_expr.h:47
A bit right shift operator.
Definition: bit_shr_op_expr.h:28
virtual ShPtr< Value > clone() override
Returns a clone of the value.
Definition: bit_shr_op_expr.cpp:32
static ShPtr< BitShrOpExpr > create(ShPtr< Expression > op1, ShPtr< Expression > op2, Variant variant=Variant::Arithmetical)
Creates a new bit right shift operator.
Definition: bit_shr_op_expr.cpp:70
bool isArithmetical() const
Returns true if the shift is logical, false otherwise.
Definition: bit_shr_op_expr.cpp:56
virtual void accept(Visitor *v) override
Visitor pattern implementation.
Definition: bit_shr_op_expr.cpp:85
Variant
Variants of the operator.
Definition: bit_shr_op_expr.h:31
@ Arithmetical
Arithmetical shift.
Variant variant
Variant of the operator.
Definition: bit_shr_op_expr.h:59
BitShrOpExpr(ShPtr< Expression > op1, ShPtr< Expression > op2, Variant variant=Variant::Arithmetical)
Constructs a bit right shift operator.
Definition: bit_shr_op_expr.cpp:19
virtual bool isEqualTo(ShPtr< Value > otherValue) const override
Returns true if this value is equal to otherValue, false otherwise.
Definition: bit_shr_op_expr.cpp:23
Variant getVariant() const
Returns the variant of the operator.
Definition: bit_shr_op_expr.cpp:42
bool isLogical() const
Returns true if the shift is logical, false otherwise.
Definition: bit_shr_op_expr.cpp:49
A base class of all visitors.
Definition: visitor.h:95
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
Declarations, aliases, macros, etc. for the use of smart pointers.