Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run in haskell backend #164

Merged
merged 4 commits into from Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -196,7 +196,7 @@ haskell-deps:
.build/haskell/definition.kore: $(defn_files)
@echo "== kompile: $@"
${KOMPILE} --debug --main-module IELE-TESTING --backend haskell \
--syntax-module IELE-SYNTAX .build/standalone/iele-testing.k --directory .build/haskell -I .build/haskell
--syntax-module IELE-TESTING .build/standalone/iele-testing.k --directory .build/haskell -I .build/haskell

.build/%/iele-testing-kompiled/constants.$(EXT): $(defn_files)
@echo "== kompile: $@"
Expand Down
12 changes: 12 additions & 0 deletions vmtest-haskell
@@ -0,0 +1,12 @@
#!/bin/sh

KRUN_BINARY=".build/rv-k/k-distribution/target/release/k/bin/krun"
KOMPILED_DEF=".build/haskell/"
HASKELL_BACKEND_CMD=".build/kore/bin/kore-exec"

cSCHEDULE=DEFAULT
cMODE=VMTESTS

PGM=$1

$KRUN_BINARY --directory "$KOMPILED_DEF" -cSCHEDULE="$cSCHEDULE" -cMODE="$cMODE" "$PGM" --haskell-backend-command "$HASKELL_BACKEND_CMD"