mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	na
This commit is contained in:
		
							parent
							
								
									fbf5e322dc
								
							
						
					
					
						commit
						6670cf0b65
					
				
					 1 changed files with 15 additions and 14 deletions
				
			
		| 
						 | 
					@ -83,6 +83,12 @@ for (let file of files) {
 | 
				
			||||||
    pytypes[groups.name] = groups.cname;
 | 
					    pytypes[groups.name] = groups.cname;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // we don't have to pre-populate the types map with closure types
 | 
				
			||||||
 | 
					  // use the Z3_DECLARE_CLOSURE to identify closure types
 | 
				
			||||||
 | 
					  // for (let match of contents.matchAll(/Z3_DECLARE_CLOSURE\((?<type>[A-Za-z0-9_]+),/g)) {
 | 
				
			||||||
 | 
					  //   types[match.groups.type] = match.groups.type
 | 
				
			||||||
 | 
					  // }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // we filter first to ensure our regex isn't too strict
 | 
					  // we filter first to ensure our regex isn't too strict
 | 
				
			||||||
  let apiLines = contents.split('\n').filter(l => /def_API|extra_API/.test(l));
 | 
					  let apiLines = contents.split('\n').filter(l => /def_API|extra_API/.test(l));
 | 
				
			||||||
  for (let line of apiLines) {
 | 
					  for (let line of apiLines) {
 | 
				
			||||||
| 
						 | 
					@ -132,11 +138,6 @@ for (let file of files) {
 | 
				
			||||||
    types[match.groups.type] = match.groups.type;
 | 
					    types[match.groups.type] = match.groups.type;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // we don't have to pre-populate the types map with closure types
 | 
					 | 
				
			||||||
  // use the Z3_DECLARE_CLOSURE to identify closure types
 | 
					 | 
				
			||||||
  // for (let match of contents.matchAll(/Z3_DECLARE_CLOSURE\((?<type>[A-Za-z0-9_]+),/g)) {
 | 
					 | 
				
			||||||
  //   types[match.groups.type] = match.groups.type
 | 
					 | 
				
			||||||
  // }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // parse enum declarations
 | 
					  // parse enum declarations
 | 
				
			||||||
  for (let idx = 0; idx < contents.length; ) {
 | 
					  for (let idx = 0; idx < contents.length; ) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue