GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/smt/check_models.h Lines: 1 1 100.0 %
Date: 2021-11-07 Branches: 0 0 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Andrew Reynolds, Gereon Kremer
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
 * Utility for checking models.
14
 */
15
16
#include "cvc5_private.h"
17
18
#ifndef CVC5__SMT__CHECK_MODELS_H
19
#define CVC5__SMT__CHECK_MODELS_H
20
21
#include "context/cdlist.h"
22
#include "expr/node.h"
23
#include "smt/env_obj.h"
24
25
namespace cvc5 {
26
27
namespace theory {
28
class TheoryModel;
29
}
30
31
namespace smt {
32
33
/**
34
 * This utility is responsible for checking the current model.
35
 */
36
30536
class CheckModels : protected EnvObj
37
{
38
 public:
39
  CheckModels(Env& e);
40
  /**
41
   * Check model m against the current set of input assertions al.
42
   *
43
   * This throws an exception if we fail to verify that m is a proper model
44
   * given assertion list al based on the model checking policy.
45
   */
46
  void checkModel(theory::TheoryModel* m,
47
                  const context::CDList<Node>& al,
48
                  bool hardFailure);
49
};
50
51
}  // namespace smt
52
}  // namespace cvc5
53
54
#endif