-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add --proof-hint flag to krun (#4405)
We add a new command line flag to the krun script which will tell krun to suppress the usual output and provide the user with a proof hint.
- Loading branch information
Dwight Guth
authored
May 30, 2024
1 parent
7180825
commit 37d0555
Showing
4 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
k-distribution/tests/regression-new/proof-instrumentation/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
DEF=test | ||
EXT=test | ||
TESTDIR=. | ||
KOMPILE_BACKEND=llvm | ||
KOMPILE_FLAGS+=--gen-glr-bison-parser --llvm-proof-hint-instrumentation | ||
LLVM_KRUN_FLAGS=-d ./test-kompiled --proof-hints | ||
|
||
check: out.hint | ||
head -c4 out.hint | diff - <(echo -n 'HINT') | ||
|
||
out.hint: test.kore | ||
rm -f $@ | ||
$(LLVM_KRUN) $(LLVM_KRUN_FLAGS) \ | ||
-c PGM $< Foo korefile -o $@ | ||
|
||
test.kore: test.in kompile | ||
./test-kompiled/parser_PGM $< > $@ | ||
KRUN_FLAGS=--proof-hint | ||
|
||
include ../../../include/kframework/ktest.mak | ||
|
||
clean: | ||
rm -rf out.hint test.kore $(KOMPILED_DIR) .depend-tmp .depend .kompile-* .krun-* .kprove-* kore-exec.tar.gz | ||
|
||
update-results: CHECK=> test.out |
File renamed without changes.
Binary file added
BIN
+1.27 KB
k-distribution/tests/regression-new/proof-instrumentation/input.test.out
Binary file not shown.