Source

z3 / src / model / model_evaluator.h

Full commit
/*++
Copyright (c) 2011 Microsoft Corporation

Module Name:

    model_evaluator.h

Abstract:

    Evaluate expressions in a given model.

Author:

    Leonardo de Moura (leonardo) 2011-04-30.

Revision History:

--*/
#ifndef _MODEL_EVALUATOR_H_
#define _MODEL_EVALUATOR_H_

#include"ast.h"
#include"rewriter_types.h"
#include"params.h"
class model;

typedef rewriter_exception model_evaluator_exception;

class model_evaluator {
    struct imp;
    imp *  m_imp;
public:
    model_evaluator(model & m, params_ref const & p = params_ref());
    ~model_evaluator();

    ast_manager & m () const;
    void set_model_completion(bool f);

    void updt_params(params_ref const & p);
    static void get_param_descrs(param_descrs & r);

    void operator()(expr * t, expr_ref & r);

    void cancel();
    void cleanup(params_ref const & p = params_ref());
    void reset(params_ref const & p = params_ref());
    
    unsigned get_num_steps() const;
};

#endif