diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2018-02-09 22:10:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09 22:10:30 -0800 |
commit | 2ff61502c2df1db8fbdba3b2487fb72aa1e6d509 (patch) | |
tree | 5ccadc3415b0543c39b13f16de788f4c2afbfcdb /src/proof | |
parent | a70490bc79933a55041f35d5896f79004e578f05 (diff) |
Move BitVector specific funs from bv::utils to util/bitvector.h. (#1589)
Diffstat (limited to 'src/proof')
-rw-r--r-- | src/proof/proof_utils.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/proof/proof_utils.h b/src/proof/proof_utils.h index 7c0660a83..c24897c8d 100644 --- a/src/proof/proof_utils.h +++ b/src/proof/proof_utils.h @@ -2,9 +2,9 @@ /*! \file proof_utils.h ** \verbatim ** Top contributors (to current version): - ** Liana Hadarean, Guy Katz, Andres Noetzli + ** Liana Hadarean, Guy Katz, Tim King ** This file is part of the CVC4 project. - ** Copyright (c) 2009-2017 by the authors listed in the file AUTHORS + ** 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 @@ -118,10 +118,6 @@ inline Expr mkTrue() { inline Expr mkFalse() { return NodeManager::currentNM()->toExprManager()->mkConst<bool>(false); } -inline BitVector mkBitVectorOnes(unsigned size) { - Assert(size > 0); - return BitVector(1, Integer(1)).signExtend(size - 1); -} inline Expr mkExpr(Kind k , Expr expr) { return NodeManager::currentNM()->toExprManager()->mkExpr(k, expr); @@ -135,7 +131,7 @@ inline Expr mkExpr(Kind k , std::vector<Expr>& children) { inline Expr mkOnes(unsigned size) { - BitVector val = mkBitVectorOnes(size); + BitVector val = BitVector::mkOnes(size); return NodeManager::currentNM()->toExprManager()->mkConst<BitVector>(val); } |