All Downloads are FREE. Search and download functionalities are using the official Maven repository.

z3-z3-4.13.0.src.ast.rewriter.bit_blaster.bit_blaster_rewriter.h Maven / Gradle / Ivy

The newest version!
/*++
Copyright (c) 2011 Microsoft Corporation

Module Name:

    bit_blaster_rewriter.h

Abstract:

    Bit-blasting rewriter

Author:

    Leonardo (leonardo) 2012-10-04

Notes:

--*/
#pragma once

#include "ast/ast.h"
#include "util/obj_hashtable.h"
#include "util/params.h"

class bit_blaster_rewriter {
    struct imp;
    imp * m_imp;
public:
    bit_blaster_rewriter(ast_manager & m, params_ref const & p);
    ~bit_blaster_rewriter();
    void updt_params(params_ref const & p);
    ast_manager & m() const;
    unsigned get_num_steps() const;
    void cleanup();
    void start_rewrite();
    void end_rewrite(obj_map& const2bits, ptr_vector & newbits);
    void get_translation(obj_map& const2bits, ptr_vector & newbits);
    void operator()(expr * e, expr_ref & result, proof_ref & result_proof);
    void push();
    void pop(unsigned num_scopes);
    unsigned get_num_scopes() const;
private:
    obj_map const& const2bits() const;     

};






© 2015 - 2024 Weber Informatics LLC | Privacy Policy