Skip to content

Commit

Permalink
added example
Browse files Browse the repository at this point in the history
  • Loading branch information
Isweet committed May 1, 2017
1 parent a304f5c commit b9e28d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SHELL := /bin/bash

EXE_NAME := symwhile
TEST_NAME := mike_example

Expand All @@ -19,6 +21,6 @@ sanity_check:
which z3

test: native
./$(EXE_NAME).native res/$(TEST_NAME).while
./$(EXE_NAME).native --semantics symbolic <(echo "input(x); input(y); assert not (y = 0); result := x / y")

.PHONY: all clean native byte sanity
10 changes: 0 additions & 10 deletions res/log_iterated_div.while

This file was deleted.

2 changes: 1 addition & 1 deletion src/symwhile.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let main () =
| "symbolic" -> sem := Symbolic
| _ -> raise (Arg.Bad "--semantics (concrete|symbolic)")),
"Choose semantics with which to run `while` stmt. (default = \"concrete\")");
] (function s -> input := s) "usage: sym-while (<input file>|--)";
] (function s -> input := s) "usage: sym-while <input file>";

let chan = open_in !input in
let lexbuf = Lexing.from_channel chan in
Expand Down

0 comments on commit b9e28d2

Please sign in to comment.