#include <iostream>
+#include "proof/proof_checker.h"
+
namespace cvc5 {
namespace proof {
return out;
}
+AletheRule getAletheRule(Node n)
+{
+ uint32_t id;
+ if (ProofRuleChecker::getUInt32(n, id))
+ {
+ return static_cast<AletheRule>(id);
+ }
+ return AletheRule::UNDEFINED;
+}
+
} // namespace proof
} // namespace cvc5
#ifndef CVC4__PROOF__ALETHE_PROOF_RULE_H
#define CVC4__PROOF__ALETHE_PROOF_RULE_H
-#include <memory>
+#include <iostream>
+
+#include "expr/node.h"
namespace cvc5 {
*/
std::ostream& operator<<(std::ostream& out, AletheRule id);
+/** Convert a node holding an id to the corresponding AletheRule */
+AletheRule getAletheRule(Node n);
+
} // namespace proof
} // namespace cvc5