+/**
+ * Check for Const or constlike Confirm.
+ */
+static int is_Const_or_Confirm(const ir_node *node) {
+ if (is_Confirm(node)) {
+ if (get_Confirm_cmp(node) == pn_Cmp_Eq)
+ node = get_Confirm_bound(node);
+ }
+ return is_Const(node);
+}
+
+/**
+ * get the tarval of a COnst or constlike Confirm
+ */
+static tarval *get_Const_or_Confirm_tarval(const ir_node *node) {
+ if (is_Confirm(node)) {
+ if (get_Confirm_cmp(node) == pn_Cmp_Eq)
+ node = get_Confirm_bound(node);
+ }
+ return get_Const_tarval(node);
+}
+