aboutsummaryrefslogtreecommitdiff
path: root/gcc/sym-exec/condition.cc
blob: dc42cf9c221f92ea3021fe36a6e357a1da45abf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "condition.h"


bit_condition::bit_condition (value* left, value* right, condition_type type)
{
  this->left = left;
  this->right = right;
  this->type = type;
}


bit_condition::bit_condition (const bit_condition &expr)
{
  bit_expression::copy (&expr);
  type = expr.get_cond_type ();
}


condition_type
bit_condition::get_cond_type () const
{
  return type;
}


value *
bit_condition::copy () const
{
  return new bit_condition (*this);
}


value_type
bit_condition::get_type () const
{
  return value_type::BIT_CONDITION;
}