mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
checkpoint
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
6fd63cd05a
commit
80b2df3621
29 changed files with 8 additions and 1329 deletions
66
src/api/z3_replayer.h
Normal file
66
src/api/z3_replayer.h
Normal file
|
@ -0,0 +1,66 @@
|
|||
/*++
|
||||
Copyright (c) 2011 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
z3_replayer.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Interpreter for Z3 logs
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2011-09-22
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
#ifndef _Z3_REPLAYER_H_
|
||||
#define _Z3_REPLAYER_H_
|
||||
|
||||
#include<iostream>
|
||||
#include"z3.h"
|
||||
#include"z3_exception.h"
|
||||
|
||||
class z3_replayer;
|
||||
|
||||
typedef void (*z3_replayer_cmd)(z3_replayer &);
|
||||
|
||||
typedef default_exception z3_replayer_exception;
|
||||
|
||||
class z3_replayer {
|
||||
struct imp;
|
||||
imp * m_imp;
|
||||
public:
|
||||
z3_replayer(std::istream & in);
|
||||
~z3_replayer();
|
||||
void parse();
|
||||
unsigned get_line() const;
|
||||
|
||||
int get_int(unsigned pos) const;
|
||||
unsigned get_uint(unsigned pos) const;
|
||||
__int64 get_int64(unsigned pos) const;
|
||||
__uint64 get_uint64(unsigned pos) const;
|
||||
double get_double(unsigned pos) const;
|
||||
bool get_bool(unsigned pos) const;
|
||||
Z3_string get_str(unsigned pos) const;
|
||||
Z3_symbol get_symbol(unsigned pos) const;
|
||||
void * get_obj(unsigned pos) const;
|
||||
|
||||
unsigned * get_uint_array(unsigned pos) const;
|
||||
Z3_symbol * get_symbol_array(unsigned pos) const;
|
||||
void ** get_obj_array(unsigned pos) const;
|
||||
|
||||
int * get_int_addr(unsigned pos);
|
||||
__int64 * get_int64_addr(unsigned pos);
|
||||
unsigned * get_uint_addr(unsigned pos);
|
||||
__uint64 * get_uint64_addr(unsigned pos);
|
||||
Z3_string * get_str_addr(unsigned pos);
|
||||
void ** get_obj_addr(unsigned pos);
|
||||
|
||||
void store_result(void * obj);
|
||||
void register_cmd(unsigned id, z3_replayer_cmd cmd);
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue