summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/relevant_domain.h
blob: 9a080f9f9ac9c99454b4b4d4cf0ce2bddf4a4ed9 (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
/*********************                                                        */
/*! \file relevant_domain.h
 ** \verbatim
 ** Original author: ajreynol
 ** Major contributors: mdeters
 ** Minor contributors (to current version): none
 ** This file is part of the CVC4 prototype.
 ** Copyright (c) 2009-2012  New York University and The University of Iowa
 ** See the file COPYING in the top-level source directory for licensing
 ** information.\endverbatim
 **
 ** \brief relevant domain class
 **/

#include "cvc4_private.h"

#ifndef __CVC4__THEORY__QUANTIFIERS__RELEVANT_DOMAIN_H
#define __CVC4__THEORY__QUANTIFIERS__RELEVANT_DOMAIN_H

#include "theory/quantifiers/first_order_model.h"

namespace CVC4 {
namespace theory {
namespace quantifiers {

class RelevantDomain
{
private:
  QuantifiersEngine* d_qe;
  FirstOrderModel* d_model;

  //the domain of the arguments for each operator
  std::map< Node, std::map< int, RepDomain > > d_active_domain;
  //the range for each operator
  std::map< Node, RepDomain > d_active_range;
  //for computing relevant instantiation domain, return true if changed
  bool computeRelevantInstantiationDomain( Node n, Node parent, int arg, Node f );
  //for computing extended
  bool extendFunctionDomains( Node n, RepDomain& range );
public:
  RelevantDomain( QuantifiersEngine* qe, FirstOrderModel* m );
  virtual ~RelevantDomain(){}
  //compute the relevant domain
  void compute();
  //relevant instantiation domain for each quantifier
  std::map< Node, std::vector< RepDomain > > d_quant_inst_domain;
  std::map< Node, std::map< int, bool > > d_quant_inst_domain_complete;
};/* class RelevantDomain */

}/* CVC4::theory::quantifiers namespace */
}/* CVC4::theory namespace */
}/* CVC4 namespace */

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