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

z3-z3-4.12.6.src.api.api_ast_map.h Maven / Gradle / Ivy

There is a newer version: 4.13.0.1
Show newest version
/*++
Copyright (c) 2012 Microsoft Corporation

Module Name:

    api_ast_map.h

Abstract:
    API for creating AST maps
    
Author:

    Leonardo de Moura (leonardo) 2012-03-09.

Revision History:

--*/
#pragma once

#include "api/api_util.h"
#include "util/obj_hashtable.h"

struct Z3_ast_map_ref : public api::object {
    ast_manager &            m;
    obj_map m_map;
    Z3_ast_map_ref(api::context& c, ast_manager & _m): api::object(c), m(_m) {}
    ~Z3_ast_map_ref() override;
};

inline Z3_ast_map_ref * to_ast_map(Z3_ast_map v) { return reinterpret_cast(v); }
inline Z3_ast_map of_ast_map(Z3_ast_map_ref * v) { return reinterpret_cast(v); }
inline obj_map & to_ast_map_ref(Z3_ast_map v) { return to_ast_map(v)->m_map; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy