summaryrefslogtreecommitdiff
path: root/src/smt/logic_request.h
blob: 4d2957f875d1dccbe49262a7e47dbaad5f52e10b (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 logic_request.h
 ** \verbatim
 ** Top contributors (to current version):
 **   Martin Brain, Tim King, Mathias Preiner
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2019 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.\endverbatim
 **
 ** \brief An object to request logic widening in the running SmtEngine
 **
 ** An object to request logic widening in the running SmtEngine.  This
 ** class exists as a proxy between theory code and the SmtEngine, allowing
 ** a theory to enable another theory in the SmtEngine after initialization
 ** (thus the usual, public setLogic() cannot be used).  This is mainly to
 ** support features like uninterpreted divide-by-zero (to support the
 ** partial function DIVISION), where during theory expansion, the theory
 ** of uninterpreted functions needs to be added to the logic to support
 ** partial functions.
 **/

#include "cvc4_private.h"

#ifndef __CVC4__LOGIC_REQUEST_H
#define __CVC4__LOGIC_REQUEST_H

#include "expr/kind.h"

namespace CVC4 {

class SmtEngine;

class LogicRequest {
  /** The SmtEngine at play. */
  SmtEngine& d_smt;

public:
  LogicRequest(SmtEngine& smt) : d_smt(smt) { }

  /** Widen the logic to include the given theory. */
  void widenLogic(theory::TheoryId id);

  /** Enable Integers. */
  void enableIntegers();

};/* class LogicRequest */

}/* CVC4 namespace */

#endif /* __CVC4__LOGIC_REQUEST_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback