z3-z3-4.13.0.src.qe.mbp.mbp_arrays_tg.h Maven / Gradle / Ivy
The newest version!
/*++
Copyright (c) 2022 Microsoft Corporation
Module Name:
mbp_arrays_tg.h
Abstract:
Apply rules for model based projection for arrays on a term graph
Author:
Hari Govind V K (hgvk94) 2023-03-07
Revision History:
--*/
#pragma once
#include "ast/ast.h"
#include "qe/mbp/mbp_qel_util.h"
#include "qe/mbp/mbp_term_graph.h"
#include "qe/mbp/mbp_tg_plugins.h"
#include "util/memory_manager.h"
#include "util/obj_hashtable.h"
#include "util/obj_pair_hashtable.h"
namespace mbp {
class mbp_array_tg : public mbp_tg_plugin {
struct impl;
impl *m_impl;
public:
mbp_array_tg(ast_manager &man, mbp::term_graph &tg, model &mdl,
obj_hashtable &vars_set, expr_sparse_mark &seen);
void use_model() override;
void reset();
// iterate through all terms in m_tg and apply all array MBP rules once
// returns true if any rules were applied
bool apply() override;
~mbp_array_tg() override;
void get_new_vars(app_ref_vector *&t) override;
family_id get_family_id() const override;
};
} // namespace mbp