GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — dsharp/validate.py at master · QuMuLab/dsharp Expand file tree/ Copy pathvalidate.pyMore file actions 51 lines (36 loc) · 1.44 KB / Copy pathvalidate.pyFile metadata and controls51 lines (36 loc) · 1.44 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 ##################################### # File to house the validation ################################## from kr.utils import get_file_list, write_file from kr.utils import experimentation as exp import os optArr1 = ['', ' -noPP'] optArr2 = ['', ' -noCA'] optArr3 = ['', ' -noNCB'] optArr4 = ['', ' -noCC'] optArr5 = ['', ' -noIBCP'] options = [] for opt1 in optArr1: for opt2 in optArr2: for opt3 in optArr3: for opt4 in optArr4: for opt5 in optArr5: options.append(opt1 + opt2 + opt3 + opt4 + opt5) def validate(dir_loc): domain = dir_loc.split('/')[-1] problems = get_file_list(dir_loc) errors = ['-{ Errors }-'] for prob in problems: for opt in options: print "Problem: " + prob print "Settings: " + opt print "-{ Solving Problem }-" os.system('./sharpSAT-ddnnf -q' + opt + ' -t 300 -Fbdg graph.out ' + prob) print "-{ Verifying d-DNNF }-" os.system('python src/extra/utils.py confirm-ddnnf -ddnnf graph.out -cnf ' + prob + ' > output') # Get the timing if not exp.match_value('output', '.*Implicants satisfy theory: True.*'): errors.append("Problem: " + prob + "\nSettings: " + opt + "\n") write_file('errors.csv', errors) os.system('rm graph.out output') validate('exp-testing') |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |