| 1 | /****************************************************************************** |
| 2 | * Top contributors (to current version): |
| 3 | * 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 | * Sygus to builtin |
| 14 | */ |
| 15 | |
| 16 | #include "cvc5_private.h"cxx . . $ `<file>/src/include/cvc5_private.h`/ |
| 17 | |
| 18 | #ifndef CVC5__THEORY__QUANTIFIERS__SYGUS__PRINT_SYGUS_TO_BUILTIN_H |
| 19 | #define CVC5__THEORY__QUANTIFIERS__SYGUS__PRINT_SYGUS_TO_BUILTIN_Hcxx . . $ `src/theory/quantifiers/sygus/print_sygus_to_builtin.h:19:9`! |
| 20 | |
| 21 | #include <map> |
| 22 | |
| 23 | #include "expr/node.h"cxx . . $ `<file>/src/expr/node.h`/ |
| 24 | |
| 25 | namespace cvc5cxx . . $ cvc5/::internalcxx . . $ cvc5/internal/ { |
| 26 | namespace theorycxx . . $ cvc5/internal/theory/ { |
| 27 | namespace quantifierscxx . . $ cvc5/internal/theory/quantifiers/ { |
| 28 | |
| 29 | /** |
| 30 | * Similar to sygusToBuiltin in sygus_datatypes_utils, but additionally |
| 31 | * annotates terms with the grammar that orginate from. |
| 32 | * |
| 33 | * Note that this method generates a node that is of kind RAW_SYMBOL. It should |
| 34 | * only be printed, and not inspected. |
| 35 | * |
| 36 | * For example, for this grammar: |
| 37 | * (synth-fun f () Int |
| 38 | * ((a Int) (b Int)) |
| 39 | * ((a Int (1 (+ a b) )) |
| 40 | * (b Int (1 3))) |
| 41 | * |
| 42 | * Given input the sygus datatype term (a_PLUS a_1 b_1), this method returns |
| 43 | * a node that prints as: |
| 44 | * (! (+ (! 1 :gterm a) (! 1 :gterm b)) :gterm a) |
| 45 | */ |
| 46 | Nodecxx . . $ cvc5/internal/Node# getPrintableSygusToBuiltincxx . . $ cvc5/internal/theory/quantifiers/getPrintableSygusToBuiltin(8791157ab94c4e10).(Nodecxx . . $ cvc5/internal/Node# n); |
| 47 | |
| 48 | } // namespace quantifiers |
| 49 | } // namespace theory |
| 50 | } // namespace cvc5::internal |
| 51 | |
| 52 | #endif /* CVC5__THEORY__QUANTIFIERS__SYGUS__TYPE_INFO_H */ |