summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/bv_inverter_utils.h
blob: 11cfadcca31bea803fe2953107b8af4864e25933 (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
/*********************                                                        */
/*! \file bv_inverter_utils.h
 ** \verbatim
 ** Top contributors (to current version):
 **   Aina Niemetz, Mathias Preiner
 ** 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 inverse rules for bit-vector operators
 **/

#include "cvc4_private.h"

#ifndef CVC4__BV_INVERTER_UTILS_H
#define CVC4__BV_INVERTER_UTILS_H

#include "expr/node.h"

namespace CVC4 {
namespace theory {
namespace quantifiers {
namespace utils {

/* Get invertibility condition for BITVECTOR_ULT and BITVECTOR_UGT. */
Node getICBvUltUgt(bool pol, Kind k, Node x, Node t);

/* Get invertibility condition for BITVECTOR_SLT and BITVECTOR_SGT. */
Node getICBvSltSgt(bool pol, Kind k, Node x, Node t);

/* Get invertibility condition for BITVECTOR_MUL. */
Node getICBvMult(
    bool pol, Kind litk, Kind k, unsigned idx, Node x, Node s, Node t);

/* Get invertibility condition for BITVECTOR_UREM. */
Node getICBvUrem(
    bool pol, Kind litk, Kind k, unsigned idx, Node x, Node s, Node t);

/* Get invertibility condition for BITVECTOR_UDIV. */
Node getICBvUdiv(
    bool pol, Kind litk, Kind k, unsigned idx, Node x, Node s, Node t);

/* Get invertibility condition for BITVECTOR_AND and BITVECTOR_OR. */
Node getICBvAndOr(
    bool pol, Kind litk, Kind k, unsigned idx, Node x, Node s, Node t);

/* Get invertibility condition for BITVECTOR_LSHR. */
Node getICBvLshr(
    bool pol, Kind litk, Kind k, unsigned idx, Node x, Node s, Node t);

/* Get invertibility condition for BITVECTOR_ASHR. */
Node getICBvAshr(
    bool pol, Kind litk, Kind k, unsigned idx, Node x, Node s, Node t);

/* Get invertibility condition for BITVECTOR_SHL. */
Node getICBvShl(
    bool pol, Kind litk, Kind k, unsigned idx, Node x, Node s, Node t);

/* Get invertibility condition for BITVECTOR_CONCAT. */
Node getICBvConcat(
    bool pol, Kind litk, unsigned idx, Node x, Node sv_t, Node t);

/* Get invertibility condition for BITVECTOR_SEXT. */
Node getICBvSext(bool pol, Kind litk, unsigned idx, Node x, Node sv_t, Node t);

}  // namespace utils
}  // namespace quantifiers
}  // namespace theory
}  // namespace CVC4
#endif
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback