/********************* */ /*! \file bv_eager_solver.h ** \verbatim ** Top contributors (to current version): ** Liana Hadarean, Tim King, Andrew Reynolds ** This file is part of the CVC4 project. ** Copyright (c) 2009-2018 by the authors listed in the file AUTHORS ** in the top-level source directory) and their institutional affiliations. ** All rights reserved. See the file COPYING in the top-level source ** directory for licensing information.\endverbatim ** ** \brief Eager bit-blasting solver. ** ** Eager bit-blasting solver. **/ #include "cvc4_private.h" #pragma once #include #include #include "expr/node.h" #include "theory/bv/theory_bv.h" #include "theory/theory_model.h" namespace CVC4 { namespace theory { namespace bv { class EagerBitblaster; class AigBitblaster; /** * BitblastSolver */ class EagerBitblastSolver { public: EagerBitblastSolver(theory::bv::TheoryBV* bv); ~EagerBitblastSolver(); bool checkSat(); void assertFormula(TNode formula); // purely for debugging purposes bool hasAssertions(const std::vector& formulas); void turnOffAig(); bool isInitialized(); void initialize(); bool collectModelInfo(theory::TheoryModel* m, bool fullModel); void setProofLog(BitVectorProof* bvp); private: typedef std::unordered_set AssertionSet; AssertionSet d_assertionSet; /** Bitblasters */ EagerBitblaster* d_bitblaster; AigBitblaster* d_aigBitblaster; bool d_useAig; TheoryBV* d_bv; BitVectorProof* d_bvp; }; // class EagerBitblastSolver } // namespace bv } // namespace theory } // namespace CVC4