Skip to content

Commit

Permalink
Disable SimpleSub by default, but enable it in ktest.mak and ktest-fa…
Browse files Browse the repository at this point in the history
…il.mak for testing.
  • Loading branch information
Scott-Guest committed Dec 1, 2023
1 parent b1965f7 commit cef8679
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion k-distribution/include/kframework/ktest-fail.mak
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TESTS?=$(wildcard $(DEFDIR)/*.md) $(wildcard $(DEFDIR)/*.k)
KOMPILE_BACKEND?=llvm
KAST_TESTS?=$(wildcard ./*.kast)

KOMPILE_FLAGS+=--no-exc-wrap
KOMPILE_FLAGS+=--no-exc-wrap --type-inference-mode simplesub
KPROVE_FLAGS+=--no-exc-wrap
KRUN_FLAGS+=--no-exc-wrap

Expand Down
2 changes: 1 addition & 1 deletion k-distribution/include/kframework/ktest.mak
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ifeq ($(UNAME), Darwin)
KOMPILE_FLAGS+=--no-haskell-binary
endif

KOMPILE_FLAGS+=--no-exc-wrap
KOMPILE_FLAGS+=--no-exc-wrap --type-inference-mode simplesub
KPROVE_FLAGS+=--no-exc-wrap
KRUN_FLAGS+=--no-exc-wrap

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,5 +257,5 @@ public enum TypeInferenceMode {
"Choose between the Z3-based and SimpleSub-based type inference algorithms, or run both"
+ " and check that their results are equal. Must be one of [z3|simplesub|checked].",
hidden = true)
public TypeInferenceMode typeInferenceMode = TypeInferenceMode.SIMPLESUB;
public TypeInferenceMode typeInferenceMode = TypeInferenceMode.Z3;
}

0 comments on commit cef8679

Please sign in to comment.