-/* Tests the modes of chechnode and its predecessors.
- Checknode must be in current_ir_graph. */
-void irn_vrfy (struct ir_node *checknode);
+/** Turns verification of nodes on.
+ *
+ * This flag turns verification of nodes on. Per default the
+ * verification is on. Turn the verification off
+ * during development to check partial implementations.
+ */
+void do_node_verification(bool b);
+
+/**
+ * Tests the modes of chechnode and its predecessors.
+ * Checknode must be in current_ir_graph.
+ *
+ * \return
+ * NON-zero on success
+ */
+int irn_vrfy(struct ir_node *checknode);
+
+/**
+ * Tests the modes of checknode and its predecessors.
+ * Checknode must be in given ir_graph.
+ *
+ * \return
+ * NON-zero on success
+ */
+int irn_vrfy_irg(struct ir_node *checknode, ir_graph *irg);
+