mirror of
https://github.com/Z3Prover/z3
synced 2025-06-09 07:33:24 +00:00
Cleaned up #include<iostream> in api* objects.
This commit is contained in:
parent
384468bc99
commit
d8d869822f
12 changed files with 213 additions and 224 deletions
|
@ -1574,6 +1574,7 @@ def write_log_h_preamble(log_h):
|
||||||
log_h.write('#define _Z3_UNUSED\n')
|
log_h.write('#define _Z3_UNUSED\n')
|
||||||
log_h.write('#endif\n')
|
log_h.write('#endif\n')
|
||||||
#
|
#
|
||||||
|
log_h.write('#include<iostream>\n')
|
||||||
log_h.write('extern std::ostream * g_z3_log;\n')
|
log_h.write('extern std::ostream * g_z3_log;\n')
|
||||||
log_h.write('extern bool g_z3_log_enabled;\n')
|
log_h.write('extern bool g_z3_log_enabled;\n')
|
||||||
log_h.write('class z3_log_ctx { bool m_prev; public: z3_log_ctx():m_prev(g_z3_log_enabled) { g_z3_log_enabled = false; } ~z3_log_ctx() { g_z3_log_enabled = m_prev; } bool enabled() const { return m_prev; } };\n')
|
log_h.write('class z3_log_ctx { bool m_prev; public: z3_log_ctx():m_prev(g_z3_log_enabled) { g_z3_log_enabled = false; } ~z3_log_ctx() { g_z3_log_enabled = m_prev; } bool enabled() const { return m_prev; } };\n')
|
||||||
|
|
|
@ -17,7 +17,6 @@ Author:
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include<sstream>
|
#include<sstream>
|
||||||
#include<vector>
|
#include<vector>
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include<fstream>
|
#include<fstream>
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
@ -38,7 +37,6 @@ extern "C" {
|
||||||
Z3_CATCH_RETURN(0);
|
Z3_CATCH_RETURN(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Z3_ast Z3_API Z3_mk_atleast(Z3_context c, unsigned num_args,
|
Z3_ast Z3_API Z3_mk_atleast(Z3_context c, unsigned num_args,
|
||||||
Z3_ast const args[], unsigned k) {
|
Z3_ast const args[], unsigned k) {
|
||||||
Z3_TRY;
|
Z3_TRY;
|
||||||
|
|
|
@ -16,7 +16,6 @@ Author:
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
|
|
@ -16,7 +16,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include"z3.h"
|
#include"z3.h"
|
||||||
#include"api_log_macros.h"
|
#include"api_log_macros.h"
|
||||||
#include"api_context.h"
|
#include"api_context.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue