Skip to content

Commit f15b375

Browse files
authored
Merge pull request #27 from fantazio/fix_path
Stop relying on the cmti paths to find the corresponding source files
2 parents c0c7cc9 + e4d6706 commit f15b375

File tree

1,216 files changed

+3667
-1026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,216 files changed

+3667
-1026
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*.o
1818
*.opt
1919
*.out
20+
*.install
2021
_build
2122
_opam
2223

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
.PHONY: clean examples check
1+
.PHONY: clean examples check dca
22

3-
all:
4-
dune build
3+
dca:
4+
dune build dead_code_analyzer.install
55

66
check:
77
make -C check

check/Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.PHONY: clean prepare threshold-3-0.5 threshold-1 internal classic opt
12

23
TARGET=res.out
34
EXT=byt
@@ -16,20 +17,24 @@ all: aggregate.$(EXT)$(EXE)
1617
opt:
1718
make EXT=opt
1819

19-
internal: prepare check.$(EXT)$(EXE)
20-
../_build/install/default/bin/dead_code_analyzer -A --internal ../examples > $(TARGET)
21-
./src/check.$(EXT)$(EXE) ./internal $(TARGET)
22-
2320
classic: prepare check.$(EXT)$(EXE)
24-
../_build/install/default/bin/dead_code_analyzer -A ../examples > $(TARGET)
21+
make -C ../examples run_dca DEADFLAGS="-A" \
22+
| tail -n +2 | sed '$$d' > $(TARGET)
2523
./src/check.$(EXT)$(EXE) ./classic $(TARGET)
2624

25+
internal: prepare check.$(EXT)$(EXE)
26+
make -C ../examples run_dca DEADFLAGS="-A --internal" \
27+
| tail -n +2 | sed '$$d' > $(TARGET)
28+
./src/check.$(EXT)$(EXE) ./internal $(TARGET)
29+
2730
threshold-1: prepare check.$(EXT)$(EXE)
28-
../_build/install/default/bin/dead_code_analyzer -A --internal -E threshold:1 -M threshold:1 -T threshold:1 ../examples > $(TARGET)
31+
make -C ../examples run_dca DEADFLAGS="-A --internal -E threshold:1 -M threshold:1 -T threshold:1" \
32+
| tail -n +2 | sed '$$d' > $(TARGET)
2933
./src/check.$(EXT)$(EXE) ./threshold-1 $(TARGET)
3034

3135
threshold-3-0.5: prepare check.$(EXT)$(EXE)
32-
../_build/install/default/bin/dead_code_analyzer -A --internal -E threshold:3 -Oa both:3,0.5 -On both:3,0.5 -M threshold:3 -T threshold:3 ../examples > $(TARGET)
36+
make -C ../examples run_dca DEADFLAGS="-A --internal -E threshold:3 -Oa both:3,0.5 -On both:3,0.5 -M threshold:3 -T threshold:3" \
37+
| tail -n +2 | sed '$$d' > $(TARGET)
3338
./src/check.$(EXT)$(EXE) ./threshold-3-0.5 $(TARGET)
3439

3540
prepare:

check/classic/examples/advanced/inc_val.mli

Lines changed: 0 additions & 2 deletions
This file was deleted.

check/classic/examples/bar.mli

Lines changed: 0 additions & 1 deletion
This file was deleted.

check/classic/examples/bar_fn.mli

Lines changed: 0 additions & 1 deletion
This file was deleted.

check/classic/examples/baz.mli

Lines changed: 0 additions & 2 deletions
This file was deleted.

check/classic/examples/baz.mlopta

Lines changed: 0 additions & 2 deletions
This file was deleted.

check/classic/examples/cond_sel.mli

Lines changed: 0 additions & 1 deletion
This file was deleted.

check/classic/examples/cond_sel.mlopta

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)