mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	modified scripts to be able to run them on Linux/OSX
This commit is contained in:
		
							parent
							
								
									7b1aa09ff3
								
							
						
					
					
						commit
						1a8aa48f34
					
				
					 4 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,8 @@
 | 
			
		|||
import re
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
pat1 = re.compile(".*Z3_API.*")
 | 
			
		||||
api = open('..\lib\z3_api.h', 'r')
 | 
			
		||||
api = open('..%slib%sz3_api.h' % (os.sep, os.sep), 'r')
 | 
			
		||||
 | 
			
		||||
z3def = open('z3.def', 'w')
 | 
			
		||||
z3dbgdef = open('z3_dbg.def', 'w')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,8 +22,8 @@ from sets import Set
 | 
			
		|||
log_h   = open('api_log_macros.h', 'w')
 | 
			
		||||
log_c   = open('api_log_macros.cpp', 'w')
 | 
			
		||||
exe_c   = open('api_commands.cpp', 'w')
 | 
			
		||||
core_py = open('..\\python\\z3core.py', 'w')
 | 
			
		||||
dotnet_fileout = '..\\Microsoft.Z3\\Native.cs'
 | 
			
		||||
core_py = open('..%spython%sz3core.py' % (os.sep, os.sep), 'w')
 | 
			
		||||
dotnet_fileout = '..%sMicrosoft.Z3%sNative.cs' % (os.sep, os.sep)
 | 
			
		||||
##
 | 
			
		||||
log_h.write('// Automatically generated file, generator: api.py\n')
 | 
			
		||||
log_h.write('#include\"z3.h\"\n')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,7 @@
 | 
			
		|||
# Author: Leonardo de Moura (leonardo)
 | 
			
		||||
############################################
 | 
			
		||||
import re
 | 
			
		||||
import os 
 | 
			
		||||
 | 
			
		||||
blank_pat      = re.compile("^ *$")
 | 
			
		||||
comment_pat    = re.compile("^ *//.*$")
 | 
			
		||||
| 
						 | 
				
			
			@ -14,7 +15,7 @@ typedef2_pat   = re.compile("typedef enum { *")
 | 
			
		|||
openbrace_pat  = re.compile("{ *")
 | 
			
		||||
closebrace_pat = re.compile("}.*;")
 | 
			
		||||
 | 
			
		||||
api = open('..\\lib\\z3_api.h', 'r')
 | 
			
		||||
api = open('..%slib%sz3_api.h' % (os.sep, os.sep), 'r')
 | 
			
		||||
 | 
			
		||||
z3consts  = open('z3consts.py', 'w')
 | 
			
		||||
z3consts.write('# Automatically generated file, generator: mk_z3consts.py\n\n')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,11 +6,12 @@
 | 
			
		|||
# Author: Leonardo de Moura (leonardo)
 | 
			
		||||
############################################
 | 
			
		||||
import re
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
tactic_pat  = re.compile("^[ \t]*ADD_TACTIC_CMD")
 | 
			
		||||
probe_pat   = re.compile("^[ \t]*ADD_PROBE")
 | 
			
		||||
 | 
			
		||||
cppfile = open('..\\lib\\install_tactics.cpp', 'r')
 | 
			
		||||
cppfile = open('..%slib%sinstall_tactics.cpp' % (os.sep, os.sep), 'r')
 | 
			
		||||
 | 
			
		||||
z3tactics  = open('z3tactics.py', 'w')
 | 
			
		||||
z3tactics.write('# Automatically generated file, generator: mk_z3tactics.py\n')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue