Skip to content

Commit

Permalink
Use trace refinement and siphon trap analysis now only available for CTL
Browse files Browse the repository at this point in the history
  • Loading branch information
mtygesen committed Jan 24, 2024
1 parent 3895112 commit 76e9cf2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/net/tapaal/gui/petrinet/dialog/QueryDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -2909,8 +2909,8 @@ private void showCTLButtons(boolean isVisible) {
existsUntil.setVisible(isVisible);
}

private void updateSiphonTrap(boolean isLTL) {
useSiphonTrap.setEnabled(!isLTL);
private void updateSiphonTrap(boolean isCTL) {
useSiphonTrap.setEnabled(isCTL);
}

private void addPropertyToQuery(TCTLAbstractPathProperty property) {
Expand Down Expand Up @@ -4700,8 +4700,8 @@ protected void setEnabledOptionsAccordingToCurrentReduction() {
useColoredReduction.setEnabled(false);
}

wasLTLType = queryType.getSelectedIndex() == 1;
updateSiphonTrap(wasLTLType);
wasCTLType = queryType.getSelectedIndex() == 0;
updateSiphonTrap(wasCTLType);

updateSearchStrategies();
refreshExportButtonText();
Expand Down Expand Up @@ -4745,7 +4745,7 @@ private void updateRawVerificationOptions() {
private void refreshTraceRefinement() {
ReductionOption reduction = getReductionOption();

if (queryType.getSelectedIndex() != 1 && !lens.isGame() &&
if (queryType.getSelectedIndex() == 0 && !lens.isGame() &&
reduction != null && reduction.equals(ReductionOption.VerifyPN) &&
(newProperty.toString().startsWith("AG") || newProperty.toString().startsWith("EF")) &&
!hasInhibitorArcs && !newProperty.hasNestedPathQuantifiers()) {
Expand Down

0 comments on commit 76e9cf2

Please sign in to comment.