aboutsummaryrefslogtreecommitdiff
path: root/gcc/sym-exec/condition.h
blob: 5c595197551347dcd16db36d61fd70f847c99edf (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
#ifndef SYM_EXEC_CONDITION_H
#define SYM_EXEC_CONDITION_H

#include "expression.h"

enum condition_type
{
  GREAT_THAN,
  LESS_THAN,
  NOT_ZERO,
  EQUAL,
  NOT_EQUAL,
  GREAT_OR_EQUAL,
  IS_FALSE,
  IS_TRUE
};


class bit_condition : public bit_expression
{
 private:
  condition_type type;

 public:
  bit_condition (value* left, value* right, condition_type type);
  bit_condition (const bit_condition &expr);
  condition_type get_cond_type () const;
  value *copy () const;
  value_type get_type () const;
};




#endif /* SYM_EXEC_CONDITION_H.  */