mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 04:26:00 +00:00
65 lines
1.4 KiB
C++
Executable file
65 lines
1.4 KiB
C++
Executable file
/*++
|
|
Copyright (c) 2011 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
iz3translate.h
|
|
|
|
Abstract:
|
|
|
|
Interface for proof translations from Z3 proofs to interpolatable
|
|
proofs.
|
|
|
|
Author:
|
|
|
|
Ken McMillan (kenmcmil)
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
#ifndef IZ3TRANSLATION_H
|
|
#define IZ3TRANSLATION_H
|
|
|
|
#include "iz3proof.h"
|
|
#include "iz3secondary.h"
|
|
|
|
// This is a interface class for translation from Z3 proof terms to
|
|
// an interpolatable proof
|
|
|
|
class iz3translation : public iz3base {
|
|
public:
|
|
virtual iz3proof::node translate(ast, iz3proof &) = 0;
|
|
virtual ast quantify(ast e, const range &rng){return e;}
|
|
virtual ~iz3translation(){}
|
|
|
|
/** This is thrown when the proof cannot be translated. */
|
|
struct unsupported {
|
|
};
|
|
|
|
static iz3translation *create(iz3mgr &mgr,
|
|
iz3secondary *secondary,
|
|
const std::vector<std::vector<ast> > &frames,
|
|
const std::vector<int> &parents,
|
|
const std::vector<ast> &theory);
|
|
|
|
protected:
|
|
iz3translation(iz3mgr &mgr,
|
|
const std::vector<std::vector<ast> > &_cnsts,
|
|
const std::vector<int> &_parents,
|
|
const std::vector<ast> &_theory)
|
|
: iz3base(mgr,_cnsts,_parents,_theory) {}
|
|
};
|
|
|
|
//#define IZ3_TRANSLATE_DIRECT2
|
|
#ifdef _FOCI2
|
|
#define IZ3_TRANSLATE_DIRECT
|
|
#else
|
|
#define IZ3_TRANSLATE_FULL
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|