Skip to content

Commit

Permalink
start test
Browse files Browse the repository at this point in the history
  • Loading branch information
QXG2 committed Feb 4, 2020
1 parent 9fb7c82 commit 7030232
Show file tree
Hide file tree
Showing 675 changed files with 75,790 additions and 2,039 deletions.
3 changes: 2 additions & 1 deletion dataflowTest/Const_lattice/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ PROG = const_prop

.PHONY: all clean

# -p $(PROG)_profile.log
all:
./../../souffle $(PROG).dl --fact-dir=facts --output-dir=. --debug-report=$(PROG)_report.html -p $(PROG)_profile.log
./../../src/souffle $(PROG).dl --fact-dir=facts --output-dir=. --debug-report=$(PROG)_report.html
sort -k1 ./varEntry.csv > ./sortedVarEntry.csv
sort -k1 ./varExit.csv > ./sortedVarExit.csv

Expand Down
3 changes: 3 additions & 0 deletions dataflowTest/Const_lattice/const_prop.dl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
.lat varExit(l:number, k: symbol, v: Constant)
.output varExit

// initialize all variables to Bottom
varEntry(0, k, "Bot") :- assignVar(_, k).

// varEntry of l2 is the union of {varExit(l1) | flow(l1,l2)}
varEntry(l2, k, v) :- varExit(l1, k, v), flow(l1, l2).

Expand Down
Loading

0 comments on commit 7030232

Please sign in to comment.