Skip to content

Commit 5ae3d0f

Browse files
authored
Merge pull request #18 from github/igfoo/current
Kotlin: Add a compilations consistency query
2 parents 382bc7c + 1d6eb1d commit 5ae3d0f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import java
2+
3+
predicate goodCompilation(Compilation c) {
4+
forex(int i |
5+
exists(c.getFileCompiled(i)) |
6+
exists(c.getFileCompiled(i - 1)) or i = 0) and
7+
forex(int i |
8+
exists(c.getArgument(i)) |
9+
exists(c.getArgument(i - 1)) or i = 0) and
10+
c.extractionStarted() and
11+
c.normalTermination()
12+
}
13+
14+
from Compilation c
15+
where c.isKotlin()
16+
and not goodCompilation(c)
17+
select c

0 commit comments

Comments
 (0)