blob: 2b6a663662be41799b243249e09275a5440eeec9 (
plain)
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
|
/********************* */
/*! \file options_handlers.h
** \verbatim
** Original author: Morgan Deters <mdeters@cs.nyu.edu>
** Major contributors: none
** Minor contributors (to current version): none
** This file is part of the CVC4 project.
** Copyright (c) 2009-2013 New York University and The University of Iowa
** See the file COPYING in the top-level source directory for licensing
** information.\endverbatim
**
** \brief Custom handlers and predicates for TheoryEngine options
**
** Custom handlers and predicates for TheoryEngine options.
**/
#include "cvc4_private.h"
#ifndef __CVC4__THEORY__OPTIONS_HANDLERS_H
#define __CVC4__THEORY__OPTIONS_HANDLERS_H
namespace CVC4 {
namespace theory {
static const std::string theoryOfModeHelp = "\
TheoryOf modes currently supported by the --theoryof-mode option:\n\
\n\
type (default) \n\
+ type variables, constants and equalities by type\n\
\n\
term \n\
+ type variables as uninterpreted, equalities by the parametric theory\n\
";
inline TheoryOfMode stringToTheoryOfMode(std::string option, std::string optarg, SmtEngine* smt) {
if(optarg == "type") {
return THEORY_OF_TYPE_BASED;
} else if(optarg == "term") {
return THEORY_OF_TERM_BASED;
} else if(optarg == "help") {
puts(theoryOfModeHelp.c_str());
exit(1);
} else {
throw OptionException(std::string("unknown option for --theoryof-mode: `") +
optarg + "'. Try --theoryof-mode help.");
}
}
}/* CVC4::theory namespace */
}/* CVC4 namespace */
#endif /* __CVC4__THEORY__OPTIONS_HANDLERS_H */
|