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
/*++
Copyright (c) 2022 Microsoft Corporation
Module Name:
distinct_proof_checker.h
Abstract:
Plugin for checking distinct internalization
Author:
Nikolaj Bjorner (nbjorner) 2022-10-07
Note:
First version just trusts that distinct is internalized correctly.
--*/
#pragma once
#include "sat/smt/euf_proof_checker.h"
#include <iostream>
namespace distinct {
class theory_checker : public euf::theory_checker_plugin {
ast_manager& m;
public:
theory_checker(ast_manager& m):
m(m) {
}
expr_ref_vector clause(app* jst) override {
expr_ref_vector result(m);
result.append(jst->get_num_args(), jst->get_args());
return result;
}
bool check(app* jst) override { return true; }
void register_plugins(euf::theory_checker& pc) override {
pc.register_plugin(symbol("alldiff"), this);
}
};
}