blob: 18b16bbe8c2363cd9d15cf37a39635be6f71bff8 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
/********************* */
/*! \file cdcac.cpp
** \verbatim
** Top contributors (to current version):
** Gereon Kremer
** This file is part of the CVC4 project.
** Copyright (c) 2009-2020 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 Implements the CDCAC approach.
**
** Implements the CDCAC approach as described in
** https://arxiv.org/pdf/2003.05633.pdf.
**/
#include "theory/arith/nl/cad/cdcac.h"
#include "theory/arith/nl/cad/projections.h"
#include "theory/arith/nl/cad/variable_ordering.h"
namespace CVC4 {
namespace theory {
namespace arith {
namespace nl {
namespace cad {
CDCAC::CDCAC() {}
CDCAC::CDCAC(const std::vector<poly::Variable>& ordering)
: d_variableOrdering(ordering)
{
}
void CDCAC::reset()
{
d_constraints.reset();
d_assignment.clear();
}
void CDCAC::computeVariableOrdering() {}
Constraints& CDCAC::getConstraints() { return d_constraints; }
const Constraints& CDCAC::getConstraints() const { return d_constraints; }
const poly::Assignment& CDCAC::getModel() const { return d_assignment; }
const std::vector<poly::Variable>& CDCAC::getVariableOrdering() const
{
return d_variableOrdering;
}
std::vector<CACInterval> CDCAC::getUnsatIntervals(
std::size_t cur_variable) const
{
return {};
}
std::vector<poly::Polynomial> CDCAC::requiredCoefficients(
const poly::Polynomial& p) const
{
return {};
}
std::vector<poly::Polynomial> CDCAC::constructCharacterization(
std::vector<CACInterval>& intervals)
{
return {};
}
CACInterval CDCAC::intervalFromCharacterization(
const std::vector<poly::Polynomial>& characterization,
std::size_t cur_variable,
const poly::Value& sample)
{
return {};
}
std::vector<CACInterval> CDCAC::getUnsatCover(std::size_t cur_variable)
{
return {};
}
} // namespace cad
} // namespace nl
} // namespace arith
} // namespace theory
} // namespace CVC4
|