GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/prop/bv_sat_solver_notify.h Lines: 2 2 100.0 %
Date: 2021-05-22 Branches: 0 0 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Liana Hadarean, Alex Ozdemir, Mathias Preiner
4
 *
5
 * This file is part of the cvc5 project.
6
 *
7
 * Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
8
 * in the top-level source directory and their institutional affiliations.
9
 * All rights reserved.  See the file COPYING in the top-level source
10
 * directory for licensing information.
11
 * ****************************************************************************
12
 *
13
 * The interface for things that want to recieve notification from the SAT
14
 * solver.
15
 */
16
17
#include "cvc5_private.h"
18
19
#ifndef CVC5__PROP__BVSATSOLVERNOTIFY_H
20
#define CVC5__PROP__BVSATSOLVERNOTIFY_H
21
22
#include "prop/sat_solver_types.h"
23
#include "util/resource_manager.h"
24
25
namespace cvc5 {
26
namespace prop {
27
28
9422
class BVSatSolverNotify {
29
public:
30
31
9422
  virtual ~BVSatSolverNotify() {};
32
33
  /**
34
   * If the notify returns false, the solver will break out of whatever it's currently doing
35
   * with an "unknown" answer.
36
   */
37
  virtual bool notify(SatLiteral lit) = 0;
38
39
  /**
40
   * Notify about a learnt clause.
41
   */
42
  virtual void notify(SatClause& clause) = 0;
43
  virtual void spendResource(Resource r) = 0;
44
  virtual void safePoint(Resource r) = 0;
45
46
};/* class BVSatSolverInterface::Notify */
47
48
}
49
}  // namespace cvc5
50
51
#endif