diff -r 7fe1533d2260 -r ea78924a1f60 stage4/generate_c/generate_c_il.cc --- a/stage4/generate_c/generate_c_il.cc Fri Aug 31 15:09:25 2012 +0100 +++ b/stage4/generate_c/generate_c_il.cc Fri Aug 31 19:30:48 2012 +0100 @@ -1878,63 +1878,12 @@ return NULL; } -void *visit(GT_operator_c *symbol) { - if (!search_base_type.type_is_enumerated(this->default_variable_name.current_type) && - search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { - CMP_operator(this->current_operand, "GT_"); - } else { - ERROR; - } - return NULL; -} - -void *visit(GE_operator_c *symbol) { - if (!search_base_type.type_is_enumerated(this->default_variable_name.current_type) && - search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { - CMP_operator(this->current_operand, "GE_"); - } else { - ERROR; - } - return NULL; -} - -void *visit(EQ_operator_c *symbol) { - if (search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { - CMP_operator(this->current_operand, "EQ_"); - } else { - ERROR; - } - return NULL; -} - -void *visit(LT_operator_c *symbol) { - if (!search_base_type.type_is_enumerated(this->default_variable_name.current_type) && - search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { - CMP_operator(this->current_operand, "LT_"); - } else { - ERROR; - } - return NULL; -} - -void *visit(LE_operator_c *symbol) { - if (!search_base_type.type_is_enumerated(this->default_variable_name.current_type) && - search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { - CMP_operator(this->current_operand, "LE_"); - } else { - ERROR; - } - return NULL; -} - -void *visit(NE_operator_c *symbol) { - if (search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { - CMP_operator(this->current_operand, "NE_"); - } else { - ERROR; - } - return NULL; -} +void *visit(GT_operator_c *symbol) {CMP_operator(this->current_operand, "GT_"); return NULL;} +void *visit(GE_operator_c *symbol) {CMP_operator(this->current_operand, "GE_"); return NULL;} +void *visit(EQ_operator_c *symbol) {CMP_operator(this->current_operand, "EQ_"); return NULL;} +void *visit(LT_operator_c *symbol) {CMP_operator(this->current_operand, "LT_"); return NULL;} +void *visit(LE_operator_c *symbol) {CMP_operator(this->current_operand, "LE_"); return NULL;} +void *visit(NE_operator_c *symbol) {CMP_operator(this->current_operand, "NE_"); return NULL;} //SYM_REF0(CAL_operator_c)