Skip to content
Snippets Groups Projects
Commit c8998582 authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Warn when manual search + timeout

parent 34bdfd3a
No related branches found
No related tags found
No related merge requests found
......@@ -29,10 +29,14 @@ object SynthesisPhase extends LeonPhase[Program, Program] {
def processOptions(ctx: LeonContext): SynthesisSettings = {
val ms = ctx.findOption(optManual)
val timeout = ctx.findOption(SharedOptions.optTimeout)
if (ms.isDefined && timeout.isDefined) {
ctx.reporter.warning("Defining timeout with manual search")
}
SynthesisSettings(
manualSearch = ms,
functions = ctx.findOption(SharedOptions.optFunctions) map { _.toSet },
timeoutMs = ctx.findOption(SharedOptions.optTimeout) map { _ * 1000 },
timeoutMs = timeout map { _ * 1000 },
generateDerivationTrees = ctx.findOptionOrDefault(optDerivTrees),
cegisUseOptTimeout = ctx.findOption(optCEGISOptTimeout),
cegisUseShrink = ctx.findOption(optCEGISShrink),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment