Skip to content
Prev Previous commit
Next Next commit
some binary operators do not do binding
  • Loading branch information
ValKmjolnir committed Feb 10, 2025
commit 1fb607b15a8ecc2864259f69a4d1d7f07068688d
7 changes: 6 additions & 1 deletion godel-script/godel-frontend/src/sema/ungrounded_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,12 @@ bool ungrounded_parameter_checker::check_non_binding_binary_operator(binary_oper
return node->get_operator_type() == binary_operator::type::add ||
node->get_operator_type() == binary_operator::type::sub ||
node->get_operator_type() == binary_operator::type::mult ||
node->get_operator_type() == binary_operator::type::div;
node->get_operator_type() == binary_operator::type::div ||
node->get_operator_type() == binary_operator::type::compare_not_equal ||
node->get_operator_type() == binary_operator::type::compare_less ||
node->get_operator_type() == binary_operator::type::compare_less_equal ||
node->get_operator_type() == binary_operator::type::compare_great ||
node->get_operator_type() == binary_operator::type::compare_great_equal;
}

bool ungrounded_parameter_checker::visit_call_expr(call_expr* node) {
Expand Down