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

z3-z3-4.13.0.src.api.api_stats.h Maven / Gradle / Ivy

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

Module Name:

    api_stats.h

Abstract:
    API for Z3 statistics
    
Author:

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

Revision History:

--*/
#pragma once

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

struct Z3_stats_ref : public api::object {
    statistics m_stats;
    Z3_stats_ref(api::context& c): api::object(c) {}
};

inline Z3_stats_ref * to_stats(Z3_stats s) { return reinterpret_cast(s); }
inline Z3_stats of_stats(Z3_stats_ref * s) { return reinterpret_cast(s); }
inline statistics & to_stats_ref(Z3_stats s) { return to_stats(s)->m_stats; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy