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

z3-z3-4.13.0.src.ast.converters.equiv_proof_converter.h Maven / Gradle / Ivy

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

Module Name:

    equiv_proof_converter.h

Abstract:

    Proof converter that applies equivalence rule to leaves.

    Given a proof P with occurrences of [asserted fml] 
    replace [asserted fml] by a proof of the form
    [mp [asserted fml'] [~ fml fml']]

Author:

    Nikolaj Bjorner (nbjorner) 2012-11-23

Revision History:  

--*/

#pragma once

#include "ast/converters/replace_proof_converter.h"

class equiv_proof_converter : public proof_converter {
    ast_manager&            m;
    replace_proof_converter m_replace;
public:

    equiv_proof_converter(ast_manager& m): m(m), m_replace(m) {}

    proof_ref operator()(ast_manager & m, unsigned num_source, proof * const * source) override {
        return m_replace(m, num_source, source);
    }

    proof_converter * translate(ast_translation & translator) override {
        return m_replace.translate(translator);
    }

    void insert(expr* fml1, expr* fml2);

    ast_manager& get_manager() { return m; }

    void display(std::ostream & out) override {}
};





© 2015 - 2024 Weber Informatics LLC | Privacy Policy