Skip to content

Commit 0bf29f0

Browse files
committed
Merge branch 'main' into model-experiments
2 parents 350d5bf + 2b4b512 commit 0bf29f0

File tree

368 files changed

+16234
-3671
lines changed

Some content is hidden

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

368 files changed

+16234
-3671
lines changed

.github/workflows/go-tests-other-os.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- .github/actions/**
99
- codeql-workspace.yml
1010
env:
11-
GO_VERSION: '~1.21.0'
11+
GO_VERSION: '~1.22.0'
1212

1313
permissions:
1414
contents: read
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/setup-go@v5
2323
with:
2424
go-version: ${{ env.GO_VERSION }}
25+
cache: false
2526
id: go
2627

2728
- name: Check out code
@@ -58,6 +59,7 @@ jobs:
5859
uses: actions/setup-go@v5
5960
with:
6061
go-version: ${{ env.GO_VERSION }}
62+
cache: false
6163
id: go
6264

6365
- name: Check out code

.github/workflows/go-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- codeql-workspace.yml
1818

1919
env:
20-
GO_VERSION: '~1.21.0'
20+
GO_VERSION: '~1.22.0'
2121

2222
permissions:
2323
contents: read
@@ -32,6 +32,7 @@ jobs:
3232
uses: actions/setup-go@v5
3333
with:
3434
go-version: ${{ env.GO_VERSION }}
35+
cache: false
3536
id: go
3637

3738
- name: Check out code
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class Element extends @element {
2+
string toString() { none() }
3+
}
4+
5+
class Expr extends @expr {
6+
string toString() { none() }
7+
}
8+
9+
class Stmt extends @stmt {
10+
string toString() { none() }
11+
}
12+
13+
predicate isStmtWithInitializer(Stmt stmt) { exists(int kind | stmts(stmt, kind, _) | kind = 29) }
14+
15+
from Expr child, int index, int index_new, Element parent
16+
where
17+
exprparents(child, index, parent) and
18+
if isStmtWithInitializer(parent) then index_new = index - 1 else index_new = index
19+
select child, index_new, parent
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Stmt extends @stmt {
2+
string toString() { none() }
3+
}
4+
5+
from Stmt f, Stmt i
6+
where
7+
for_initialization(f, i) and
8+
f instanceof @stmt_for
9+
select f, i

0 commit comments

Comments
 (0)