Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ast::AbstractNode* xor_simplification(API&, ast::AbstractNode* node) {
  2.  
  3. if (node->getKind() == ast::ZX_NODE) {
  4. node = node->getChildren()[1];
  5. }
  6.  
  7. if (node->getKind() == ast::BVXOR_NODE) {
  8. if (node->getChildren()[0]->equalTo(node->getChildren()[1]))
  9. return node->getContext().bv(0, node->getBitvectorSize());
  10. }
  11.  
  12. return node;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement