diff options
author | Pantazis Deligiannis <pdeligia@me.com> | 2013-08-19 11:20:18 +0100 |
---|---|---|
committer | Pantazis Deligiannis <pdeligia@me.com> | 2013-08-19 11:20:18 +0100 |
commit | 133dac43b2d0daa022bfe26ab15bcdfaf75eae0e (patch) | |
tree | 82705cc27b6d5d0c06212d7a006a9a30bcfe9ff0 /Util | |
parent | 819c1f07fe1e0244e14306ad1dee213a9a034f1e (diff) |
new option for reversing the topological order - this could potentially help to speedup houdini refutation of candidates
Diffstat (limited to 'Util')
-rwxr-xr-x | Util/PortfolioSolver.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Util/PortfolioSolver.py b/Util/PortfolioSolver.py index 61f0887d..de004981 100755 --- a/Util/PortfolioSolver.py +++ b/Util/PortfolioSolver.py @@ -64,7 +64,7 @@ class VerificationTask(multiprocessing.Process): isTrusted = True - def __init__(self, taskID, queue, solver, errorLimit, checkForLMI, loopUnwind, timeout=0, timeoutErrorCode=None): + def __init__(self, taskID, queue, solver, errorLimit, checkForLMI, reverseTopSort, loopUnwind, timeout=0, timeoutErrorCode=None): super(VerificationTask, self).__init__() self.taskID = taskID self.queue = queue @@ -84,6 +84,8 @@ class VerificationTask(multiprocessing.Process): if not checkForLMI: self.options += [ "/disableLoopInvMaintainedAssert" ] self.isTrusted = False + if reverseTopSort: + self.options += [ "/reverseTopologicalSorting" ] if (loopUnwind > 0): self.options += ["/loopUnroll:" + str(loopUnwind) ] @@ -323,13 +325,13 @@ def main(argv=None): for taskID in range(CommandLineOptions.workers): if (taskID == 0): - task = VerificationTask(taskID + 1, taskQueue, "Z3", 1, True, 0, **timeoutArguments) + task = VerificationTask(taskID + 1, taskQueue, "Z3", 4, True, False, 0, **timeoutArguments) elif (taskID == 1): - task = VerificationTask(taskID + 1, taskQueue, "Z3", 2, True, 0, **timeoutArguments) + task = VerificationTask(taskID + 1, taskQueue, "Z3", 4, False, False, 0, **timeoutArguments) elif (taskID == 2): - task = VerificationTask(taskID + 1, taskQueue, "Z3", 3, True, 0, **timeoutArguments) + task = VerificationTask(taskID + 1, taskQueue, "Z3", 3, True, False, 0, **timeoutArguments) elif (taskID == 3): - task = VerificationTask(taskID + 1, taskQueue, "Z3", 4, True, 0, **timeoutArguments) + task = VerificationTask(taskID + 1, taskQueue, "Z3", 4, True, False, 0, **timeoutArguments) task.start() toolTasks.append(task) |