mirror of
https://github.com/Z3Prover/z3
synced 2025-04-18 06:39:02 +00:00
33 lines
682 B
C
33 lines
682 B
C
/*++
|
|
Copyright (c) 2012 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
api_goal.h
|
|
|
|
Abstract:
|
|
API for creating goals
|
|
|
|
Author:
|
|
|
|
Leonardo de Moura (leonardo) 2012-03-06.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
#pragma once
|
|
|
|
#include "api/api_util.h"
|
|
#include "tactic/goal.h"
|
|
|
|
struct Z3_goal_ref : public api::object {
|
|
goal_ref m_goal;
|
|
Z3_goal_ref(api::context& c) : api::object(c) {}
|
|
~Z3_goal_ref() override {}
|
|
};
|
|
|
|
inline Z3_goal_ref * to_goal(Z3_goal g) { return reinterpret_cast<Z3_goal_ref *>(g); }
|
|
inline Z3_goal of_goal(Z3_goal_ref * g) { return reinterpret_cast<Z3_goal>(g); }
|
|
inline goal_ref to_goal_ref(Z3_goal g) { return g == nullptr ? goal_ref() : to_goal(g)->m_goal; }
|
|
|