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

z3-z3-4.13.0.src.muz.base.bind_variables.h Maven / Gradle / Ivy

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

Module Name:

    bind_variables.h

Abstract:

    Utility to find constants that are declard as variables.

Author:

    Nikolaj Bjorner (nbjorner) 9-24-2014

Notes:
    

--*/

#pragma once

#include "ast/ast.h"

class bind_variables {
    typedef obj_map var2bound;
    typedef obj_map cache_t;
    ast_manager&           m;
    app_ref_vector         m_vars;
    obj_map   m_cache;
    var2bound              m_var2bound;
    expr_ref_vector        m_pinned;
    ptr_vector       m_bound;
    svector        m_names;
    ptr_vector       m_todo;
    ptr_vector       m_args;

    

    expr_ref abstract(expr* fml, cache_t& cache, unsigned scope);
public:
    bind_variables(ast_manager & m);
    ~bind_variables();
    
    expr_ref operator()(expr* fml, bool is_forall);

    void add_var(app* v);
};





© 2015 - 2024 Weber Informatics LLC | Privacy Policy