LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/options - language.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 4 4 100.0 %
Date: 2025-02-07 15:41:26 Functions: 2 2 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Gereon Kremer, Morgan Deters, Andrew Reynolds
       4                 :            :  *
       5                 :            :  * This file is part of the cvc5 project.
       6                 :            :  *
       7                 :            :  * Copyright (c) 2009-2025 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                 :            :  * Definition of languages.
      14                 :            :  */
      15                 :            : 
      16                 :            : #include "cvc5_public.h"
      17                 :            : 
      18                 :            : #ifndef CVC5__LANGUAGE_H
      19                 :            : #define CVC5__LANGUAGE_H
      20                 :            : 
      21                 :            : #include <cvc5/cvc5_export.h>
      22                 :            : 
      23                 :            : #include <ostream>
      24                 :            : #include <string>
      25                 :            : 
      26                 :            : namespace cvc5::internal {
      27                 :            : 
      28                 :            : enum class Language
      29                 :            : {
      30                 :            :   // SPECIAL "NON-LANGUAGE" LANGUAGES HAVE ENUM VALUE < 0
      31                 :            : 
      32                 :            :   /** Auto-detect the language */
      33                 :            :   LANG_AUTO = -1,
      34                 :            : 
      35                 :            :   /** The SMTLIB v2.6 language, with support for the strings standard */
      36                 :            :   LANG_SMTLIB_V2_6 = 0,
      37                 :            :   /** The SyGuS language version 2.0 */
      38                 :            :   LANG_SYGUS_V2,
      39                 :            : 
      40                 :            :   /** The AST (output) language */
      41                 :            :   LANG_AST,
      42                 :            : 
      43                 :            :   /** LANG_MAX is > any valid Language id */
      44                 :            :   LANG_MAX
      45                 :            : };
      46                 :            : 
      47                 :            : std::ostream& operator<<(std::ostream& out, Language lang) CVC5_EXPORT;
      48                 :            : 
      49                 :            : namespace language {
      50                 :            : 
      51                 :            : /** Is the language a variant of the smtlib version 2 language? */
      52                 :      47968 : inline bool isLangSmt2(Language lang)
      53                 :            : {
      54                 :      47968 :   return lang == Language::LANG_SMTLIB_V2_6;
      55                 :            : }
      56                 :            : 
      57                 :            : /** Is the language a variant of the SyGuS input language? */
      58                 :     219481 : inline bool isLangSygus(Language lang)
      59                 :            : {
      60                 :     219481 :   return lang == Language::LANG_SYGUS_V2;
      61                 :            : }
      62                 :            : 
      63                 :            : Language toLanguage(const std::string& language) CVC5_EXPORT;
      64                 :            : 
      65                 :            : }  // namespace language
      66                 :            : }  // namespace cvc5::internal
      67                 :            : 
      68                 :            : #endif /* CVC5__LANGUAGE_H */

Generated by: LCOV version 1.14