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: 2026-03-31 10:41:31 Functions: 2 2 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * This file is part of the cvc5 project.
       3                 :            :  *
       4                 :            :  * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS
       5                 :            :  * in the top-level source directory and their institutional affiliations.
       6                 :            :  * All rights reserved.  See the file COPYING in the top-level source
       7                 :            :  * directory for licensing information.
       8                 :            :  * ****************************************************************************
       9                 :            :  *
      10                 :            :  * Definition of languages.
      11                 :            :  */
      12                 :            : 
      13                 :            : #include "cvc5_public.h"
      14                 :            : 
      15                 :            : #ifndef CVC5__LANGUAGE_H
      16                 :            : #define CVC5__LANGUAGE_H
      17                 :            : 
      18                 :            : #include <cvc5/cvc5_export.h>
      19                 :            : 
      20                 :            : #include <ostream>
      21                 :            : #include <string>
      22                 :            : 
      23                 :            : namespace cvc5::internal {
      24                 :            : 
      25                 :            : enum class Language
      26                 :            : {
      27                 :            :   // SPECIAL "NON-LANGUAGE" LANGUAGES HAVE ENUM VALUE < 0
      28                 :            : 
      29                 :            :   /** Auto-detect the language */
      30                 :            :   LANG_AUTO = -1,
      31                 :            : 
      32                 :            :   /** The SMTLIB v2.6 language, with support for the strings standard */
      33                 :            :   LANG_SMTLIB_V2_6 = 0,
      34                 :            :   /** The SyGuS language version 2.0 */
      35                 :            :   LANG_SYGUS_V2,
      36                 :            : 
      37                 :            :   /** The AST (output) language */
      38                 :            :   LANG_AST,
      39                 :            : 
      40                 :            :   /** LANG_MAX is > any valid Language id */
      41                 :            :   LANG_MAX
      42                 :            : };
      43                 :            : 
      44                 :            : std::ostream& operator<<(std::ostream& out, Language lang) CVC5_EXPORT;
      45                 :            : 
      46                 :            : namespace language {
      47                 :            : 
      48                 :            : /** Is the language a variant of the smtlib version 2 language? */
      49                 :      37186 : inline bool isLangSmt2(Language lang)
      50                 :            : {
      51                 :      37186 :   return lang == Language::LANG_SMTLIB_V2_6;
      52                 :            : }
      53                 :            : 
      54                 :            : /** Is the language a variant of the SyGuS input language? */
      55                 :     197188 : inline bool isLangSygus(Language lang)
      56                 :            : {
      57                 :     197188 :   return lang == Language::LANG_SYGUS_V2;
      58                 :            : }
      59                 :            : 
      60                 :            : Language toLanguage(const std::string& language) CVC5_EXPORT;
      61                 :            : 
      62                 :            : }  // namespace language
      63                 :            : }  // namespace cvc5::internal
      64                 :            : 
      65                 :            : #endif /* CVC5__LANGUAGE_H */

Generated by: LCOV version 1.14