Skip to content

Commit

Permalink
add quick workaround for problem (new fixpoint checks says UNKNOWN mo…
Browse files Browse the repository at this point in the history
…re often) that was introduced in 2b22b30
  • Loading branch information
Heizmann committed Oct 1, 2022
1 parent b55dc6b commit cf36bb6
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,16 @@ private SynthesisResult synthesize(final boolean withStem, UnmodifiableTransForm
if (fixpointCheck.getResult() == HasFixpoint.YES) {
if (withStem) {
if (TRACE_CHECK_BASED_FIXPOINT_CHECK) {
final FixpointCheck2<L> fixpointCheck2 = new FixpointCheck2<L>(mServices, mLogger, mCsToolkit, mPredicateFactory, mCounterexample.getStem(), loopTF);
final FixpointCheck2<L> fixpointCheck2 = new FixpointCheck2<L>(mServices, mLogger, mCsToolkit,
mPredicateFactory, mCounterexample.getStem(), loopTF);
if (fixpointCheck2.getResult() == HasFixpoint.UNKNOWN) {
mNonterminationArgument = fixpointCheck.getTerminationArgument();
} else {
throw new AssertionError(String.format(
"Contradiciting results of nontermination analyses: Old %s, New %s, Stem length %s, Loop length %s",
fixpointCheck.getResult(), fixpointCheck2.getResult(),
mCounterexample.getStem().getLength(), mCounterexample.getLoop().getLength()));
}
mNonterminationArgument = fixpointCheck2.getTerminationArgument();
} else {
mNonterminationArgument = fixpointCheck.getTerminationArgument();
Expand Down

0 comments on commit cf36bb6

Please sign in to comment.