libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
z3ToTriton.hpp
Go to the documentation of this file.
1
2/*
3** Copyright (C) - Triton
4**
5** This program is under the terms of the Apache License 2.0.
6*/
7
8#ifndef TRITON_Z3TOTRITONAST_H
9#define TRITON_Z3TOTRITONAST_H
10
11#include <z3++.h>
12
13#include <triton/ast.hpp>
14#include <triton/dllexport.hpp>
16
17
18
20namespace triton {
27 namespace ast {
35
36 class Z3ToTriton {
37 private:
40
41 public:
43 TRITON_EXPORT Z3ToTriton(const triton::ast::SharedAstContext& ctxt);
44
46 TRITON_EXPORT triton::ast::SharedAbstractNode convert(const z3::expr& expr);
47 };
48
50 };
52};
53
54#endif /* TRITON_Z3TOTRITONAST_H */
Converts a Z3's AST to a Triton's AST.
TRITON_EXPORT Z3ToTriton(const triton::ast::SharedAstContext &ctxt)
Constructor.
TRITON_EXPORT triton::ast::SharedAbstractNode convert(const z3::expr &expr)
Converts to Triton's AST.
std::shared_ptr< triton::ast::AbstractNode > SharedAbstractNode
Shared Abstract Node.
Definition ast.hpp:59
std::shared_ptr< triton::ast::AstContext > SharedAstContext
Shared AST context.
Definition ast.hpp:65
The Triton namespace.