LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/smt - logic_exception.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 6 100.0 %
Date: 2024-10-06 11:37:27 Functions: 2 2 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Morgan Deters, Aina Niemetz, Mathias Preiner
       4                 :            :  *
       5                 :            :  * This file is part of the cvc5 project.
       6                 :            :  *
       7                 :            :  * Copyright (c) 2009-2024 by the authors listed in the file AUTHORS
       8                 :            :  * in the top-level source directory and their institutional affiliations.
       9                 :            :  * All rights reserved.  See the file COPYING in the top-level source
      10                 :            :  * directory for licensing information.
      11                 :            :  * ****************************************************************************
      12                 :            :  *
      13                 :            :  * An exception that is thrown when a feature is used outside
      14                 :            :  * the logic that cvc5 is currently using (for example, a quantifier
      15                 :            :  * is used while running in a quantifier-free logic).
      16                 :            :  */
      17                 :            : 
      18                 :            : #include "cvc5_public.h"
      19                 :            : 
      20                 :            : #ifndef CVC5__SMT__LOGIC_EXCEPTION_H
      21                 :            : #define CVC5__SMT__LOGIC_EXCEPTION_H
      22                 :            : 
      23                 :            : #include "base/exception.h"
      24                 :            : 
      25                 :            : namespace cvc5::internal {
      26                 :            : 
      27                 :            : class LogicException : public cvc5::internal::Exception
      28                 :            : {
      29                 :            :  public:
      30                 :            :   LogicException() :
      31                 :            :     Exception("Feature used while operating in "
      32                 :            :               "incorrect state") {
      33                 :            :   }
      34                 :            : 
      35                 :         52 :   LogicException(const std::string& msg) :
      36                 :         52 :     Exception(msg) {
      37                 :         52 :   }
      38                 :            : 
      39                 :          7 :   LogicException(const char* msg) :
      40                 :          7 :     Exception(msg) {
      41                 :          7 :   }
      42                 :            : }; /* class LogicException */
      43                 :            : 
      44                 :            : }  // namespace cvc5::internal
      45                 :            : 
      46                 :            : #endif /* CVC5__SMT__LOGIC_EXCEPTION_H */

Generated by: LCOV version 1.14