mirror of
				https://github.com/Brandon-Rozek/matmod.git
				synced 2025-10-30 03:01:12 +00:00 
			
		
		
		
	Added summary at end
This commit is contained in:
		
							parent
							
								
									5f3825cf72
								
							
						
					
					
						commit
						cd3b8f56df
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -346,8 +346,14 @@ if __name__ == "__main__": | ||||||
|     args = vars(parser.parse_args()) |     args = vars(parser.parse_args()) | ||||||
|     parse_matrices(SourceFile(sys.stdin)) |     parse_matrices(SourceFile(sys.stdin)) | ||||||
|     print(f"Parsed {len(solutions)} matrices") |     print(f"Parsed {len(solutions)} matrices") | ||||||
|  |     num_has_vsp = 0 | ||||||
|     for i, (model, interpretation) in enumerate(solutions): |     for i, (model, interpretation) in enumerate(solutions): | ||||||
|         vsp_result = has_vsp(model, interpretation) |         vsp_result = has_vsp(model, interpretation) | ||||||
|         print(vsp_result) |         print(vsp_result) | ||||||
|  | 
 | ||||||
|         if args['verbose'] or vsp_result.has_vsp: |         if args['verbose'] or vsp_result.has_vsp: | ||||||
|             print(model) |             print(model) | ||||||
|  | 
 | ||||||
|  |         if vsp_result.has_vsp: | ||||||
|  |             num_has_vsp += 1 | ||||||
|  |     print(f"Tested {len(solutions)} models, {num_has_vsp} of which satisfy VSP") | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue