blob: 99db64b4ad1e72efae3831263383baeffa3ade08 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/******************************************************************************
* Top contributors (to current version):
* Andrew Reynolds
*
* This file is part of the cvc5 project.
*
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
* in the top-level source directory and their institutional affiliations.
* All rights reserved. See the file COPYING in the top-level source
* directory for licensing information.
* ****************************************************************************
*
* Method for setting the default options of an SMT engine.
*/
#ifndef CVC5__SMT__SET_DEFAULTS_H
#define CVC5__SMT__SET_DEFAULTS_H
#include "options/options.h"
#include "theory/logic_info.h"
namespace cvc5 {
namespace smt {
/**
* Class responsible for setting default options, which includes managing
* implied options and dependencies between the options and the logic.
*/
class SetDefaults
{
public:
/**
* @param isInternalSubsolver Whether we are setting the options for an
* internal subsolver (see SmtEngine::isInternalSubsolver).
*/
SetDefaults(bool isInternalSubsolver);
/**
* The purpose of this method is to set the default options and update the
* logic info for an SMT engine.
*
* @param logic A reference to the logic of SmtEngine, which can be
* updated by this method based on the current options and the logic itself.
* @param opts The options to modify, typically the main options of the
* SmtEngine in scope.
*/
void setDefaults(LogicInfo& logic, Options& opts);
private:
/**
* Widen logic to theories that are required, since some theories imply the
* use of other theories to handle certain operators, e.g. UF to handle
* partial functions.
*/
void widenLogic(LogicInfo& logic, Options& opts);
/**
* Set defaults related to SyGuS, called when SyGuS is enabled.
*/
void setDefaultsSygus(Options& opts);
/** Are we an internal subsolver? */
bool d_isInternalSubsolver;
};
} // namespace smt
} // namespace cvc5
#endif /* CVC5__SMT__SET_DEFAULTS_H */
|