/usr/include/cvc3/kinds.h is in libcvc3-dev 2.4.1-5.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | /*****************************************************************************/
/*!
* \file kinds.h
*
* Author: Clark Barrett
*
* Created: Mon Jan 20 13:38:52 2003
*
* <hr>
*
* License to use, copy, modify, sell and/or distribute this software
* and its documentation for any purpose is hereby granted without
* royalty, subject to the terms and conditions defined in the \ref
* LICENSE file provided with this distribution.
*
* <hr>
*
*/
/*****************************************************************************/
#ifndef _cvc3__include__kinds_h_
#define _cvc3__include__kinds_h_
#ifdef __cplusplus
namespace CVC3 {
#endif /* __cplusplus */
// The commonly used kinds and the kinds needed by the parser. All
// these kinds are registered by the ExprManager and are readily
// available for everyone else.
typedef enum {
NULL_KIND = 0,
// Constant (Leaf) Exprs
TRUE_EXPR = 1,
FALSE_EXPR = 2,
RATIONAL_EXPR = 3,
STRING_EXPR = 4,
// All constants should have kinds less than MAX_CONST
MAX_CONST = 100,
// Generic LISP kinds for representing raw parsed expressions
RAW_LIST, //!< May have any number of children >= 0
//! Identifier is (ID (STRING_EXPR "name"))
ID,
// Types
BOOLEAN,
// TUPLE_TYPE,
ANY_TYPE,
ARROW,
// The "type" of any expression type (as in BOOLEAN : TYPE).
TYPE,
// Declaration of new (uninterpreted) types: T1, T2, ... : TYPE
// (TYPEDECL T1 T2 ...)
TYPEDECL,
// Declaration of a defined type T : TYPE = type === (TYPEDEF T type)
TYPEDEF,
// Equality
EQ,
NEQ,
DISTINCT,
// Propositional connectives
NOT,
AND,
OR,
XOR,
IFF,
IMPLIES,
// BOOL_VAR, //!< Boolean variables are treated as 0-ary predicates
// Propositional relations (for circuit propagation)
AND_R,
IFF_R,
ITE_R,
// (ITE c e1 e2) == IF c THEN e1 ELSE e2 ENDIF, the internal
// representation of the conditional. Parser produces (IF ...).
ITE,
// Quantifiers
FORALL,
EXISTS,
// Uninterpreted function
UFUNC,
// Application of a function
APPLY,
// Top-level Commands
ASSERT,
QUERY,
CHECKSAT,
CONTINUE,
RESTART,
DBG,
TRACE,
UNTRACE,
OPTION,
HELP,
TRANSFORM,
PRINT,
CALL,
ECHO,
INCLUDE,
GET_VALUE,
GET_ASSIGNMENT,
DUMP_PROOF,
DUMP_ASSUMPTIONS,
DUMP_SIG,
DUMP_TCC,
DUMP_TCC_ASSUMPTIONS,
DUMP_TCC_PROOF,
DUMP_CLOSURE,
DUMP_CLOSURE_PROOF,
WHERE,
ASSERTIONS,
ASSUMPTIONS,
COUNTEREXAMPLE,
COUNTERMODEL,
PUSH,
POP,
POPTO,
PUSH_SCOPE,
POP_SCOPE,
POPTO_SCOPE,
RESET,
CONTEXT,
FORGET,
GET_TYPE,
CHECK_TYPE,
GET_CHILD,
SUBSTITUTE,
SEQ,
ARITH_VAR_ORDER,
ANNOTATION,
// Kinds used mostly in the parser
TCC,
// Variable declaration (VARDECL v1 v2 ... v_n type). A variable
// can be an ID or a BOUNDVAR.
VARDECL,
// A list of variable declarations (VARDECLS (VARDECL ...) (VARDECL ...) ...)
VARDECLS,
// Bound variables have a "printable name", the one the user typed
// in, and a uniqueID used to distinguish it from other bound
// variables, which is effectively the alpha-renaming:
// Op(BOUND_VAR (BOUND_ID "user_name" "uniqueID")). Note that
// BOUND_VAR is an operator (Expr without children), just as UFUNC
// and UCONST.
// The uniqueID normally is just a number, so one can print a bound
// variable X as X_17.
// NOTE that in the parsed expressions like LET x: T = e IN foo(x),
// the second instance of 'x' will be an ID, and *not* a BOUNDVAR.
// The parser does not know how to resolve bound variables, and it
// has to be resolved later.
BOUND_VAR,
BOUND_ID,
// Updator "e1 WITH <bunch of stuff> := e2" is represented as
// (UPDATE e1 (UPDATE_SELECT <bunch of stuff>) e2), where <bunch
// of stuff> is the list of accessors:
// (READ idx)
// ID (what's that for?)
// (REC_SELECT ID)
// and (TUPLE_SELECT num).
// UPDATE,
// UPDATE_SELECT,
// Record type [# f1 : t1, f2 : t2 ... #] is represented as
// (RECORD_TYPE (f1 t1) (f2 t2) ... )
// RECORD_TYPE,
// // (# f1=e1, f2=e2, ...#) == (RECORD (f1 e1) ...)
// RECORD,
// RECORD_SELECT,
// RECORD_UPDATE,
// // (e1, e2, ...) == (TUPLE e1 e2 ...)
// TUPLE,
// TUPLE_SELECT,
// TUPLE_UPDATE,
// SUBRANGE,
// Enumerated type (SCALARTYPE v1 v2 ...)
// SCALARTYPE,
// Predicate subtype: the argument is the predicate (lambda-expression)
SUBTYPE,
// Datatype is Expr(DATATYPE, Constructors), where Constructors is a
// vector of Expr(CONSTRUCTOR, id [ , arg ]), where 'id' is an ID,
// and 'arg' a VARDECL node (list of variable declarations with
// types). If 'arg' is present, the constructor has arguments
// corresponding to the declared variables.
// DATATYPE,
// THISTYPE, // Used to indicate recursion in recursive datatypes
// CONSTRUCTOR,
// SELECTOR,
// TESTER,
// Expression e WITH accessor := e2 is transformed by the command
// processor into (DATATYPE_UPDATE e accessor e2), where e is the
// original datatype value C(a1, ..., an) (here C is the
// constructor), and "accessor" is the name of one of the arguments
// a_i of C.
// DATATYPE_UPDATE,
// Statement IF c1 THEN e1 ELSIF c2 THEN e2 ... ELSE e_n ENDIF is
// represented as (IF (IFTHEN c1 e1) (IFTHEN c2 e2) ... (ELSE e_n))
IF,
IFTHEN,
ELSE,
// Lisp version of multi-branch IF:
// (COND (c1 e1) (c2 e2) ... (ELSE en))
COND,
// LET x1: t1 = e1, x2: t2 = e2, ... IN e
// Parser builds:
// (LET (LETDECLS (LETDECL x1 t1 e1) (LETDECL x2 t2 e2) ... ) e)
// where each x_i is a BOUNDVAR.
// After processing, it is rebuilt to have (LETDECL var def); the
// type is set as the attribute to var.
LET,
LETDECLS,
LETDECL,
// Lambda-abstraction LAMBDA (<vars>) : e === (LAMBDA <vars> e)
LAMBDA,
// Symbolic simulation operator
SIMULATE,
// Uninterpreted constants (variables) x1, x2, ... , x_n : type
// (CONST (VARLIST x1 x2 ... x_n) type)
// Uninterpreted functions are declared as constants of functional type.
// After processing, uninterpreted functions and constants
// (a.k.a. variables) are represented as Op(UFUNC, (ID "name")) and
// Op(UCONST, (ID "name")) with the appropriate type attribute.
CONST,
VARLIST,
UCONST,
// User function definition f(args) : type = e === (DEFUN args type e)
// Here 'args' are bound var declarations
DEFUN,
// Arithmetic types and operators
// REAL,
// INT,
// UMINUS,
// PLUS,
// MINUS,
// MULT,
// DIVIDE,
// INTDIV,
// MOD,
// LT,
// LE,
// GT,
// GE,
// IS_INTEGER,
// NEGINF,
// POSINF,
// DARK_SHADOW,
// GRAY_SHADOW,
// //Floor theory operators
// FLOOR,
// Kind for Extension to Non-linear Arithmetic
// POW,
// Kinds for proof terms
PF_APPLY,
PF_HOLE,
// // Mlss
// EMPTY, // {}
// UNION, // +
// INTER, // *
// DIFF,
// SINGLETON,
// IN,
// INCS,
// INCIN,
//Skolem variable
SKOLEM_VAR,
// Expr that holds a theorem
THEOREM_KIND,
//! Must always be the last kind
LAST_KIND
} Kind;
#ifdef __cplusplus
} // end of namespace CVC3
#endif /* __cplusplus */
#endif
|