mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 11:37:54 +00:00
38 lines
934 B
C++
38 lines
934 B
C++
/*++
|
|
Copyright (c) 2012 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
pb2bv_model_converter.h
|
|
|
|
Abstract:
|
|
|
|
Model converter for the pb2bv tactic.
|
|
|
|
Author:
|
|
|
|
Christoph (cwinter) 2012-02-15
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
#pragma once
|
|
|
|
#include "ast/converters/model_converter.h"
|
|
#include "ast/simplifiers/bound_manager.h"
|
|
|
|
class pb2bv_model_converter : public model_converter {
|
|
typedef std::pair<func_decl *, func_decl *> func_decl_pair;
|
|
|
|
ast_manager & m;
|
|
svector<func_decl_pair> m_c2bit;
|
|
public:
|
|
pb2bv_model_converter(ast_manager & _m);
|
|
pb2bv_model_converter(ast_manager & _m, obj_map<func_decl, expr*> const & c2bit, bound_manager const & bm);
|
|
~pb2bv_model_converter() override;
|
|
void operator()(model_ref & md) override;
|
|
void display(std::ostream & out) override;
|
|
void get_units(obj_map<expr, bool>& units) override;
|
|
model_converter * translate(ast_translation & translator) override;
|
|
};
|
|
|