From f56c7aa2a7200ece5d074651b9839eb917f910f5 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Wed, 27 Mar 2019 11:33:07 +0000 Subject: Move constraint implementation from header to cpp files --- include/klee/Expr/Constraints.h | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'include') diff --git a/include/klee/Expr/Constraints.h b/include/klee/Expr/Constraints.h index b9bf3464..c6521c82 100644 --- a/include/klee/Expr/Constraints.h +++ b/include/klee/Expr/Constraints.h @@ -33,30 +33,21 @@ public: ConstraintManager &operator=(ConstraintManager &&cs) = default; // create from constraints with no optimization - explicit ConstraintManager(const std::vector> &_constraints) - : constraints(_constraints) {} + explicit ConstraintManager(const std::vector> &_constraints); - // given a constraint which is known to be valid, attempt to - // simplify the existing constraint set - void simplifyForValidConstraint(ref e); + typedef std::vector>::const_iterator constraint_iterator; ref simplifyExpr(ref e) const; void addConstraint(ref e); - bool empty() const noexcept { return constraints.empty(); } - ref back() const { return constraints.back(); } - const_iterator begin() const { return constraints.cbegin(); } - const_iterator end() const { return constraints.cend(); } - std::size_t size() const noexcept { return constraints.size(); } + bool empty() const noexcept; + ref back() const; + constraint_iterator begin() const; + constraint_iterator end() const; + size_t size() const noexcept; - bool operator==(const ConstraintManager &other) const { - return constraints == other.constraints; - } - - bool operator!=(const ConstraintManager &other) const { - return constraints != other.constraints; - } + bool operator==(const ConstraintManager &other) const; private: std::vector> constraints; -- cgit 1.4.1