We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 856f069 commit 1e3a40cCopy full SHA for 1e3a40c
src/commonMain/kotlin/ai/hypergraph/kaliningraph/automata/GRE.kt
@@ -485,10 +485,8 @@ fun repairWithGRE(brokenStr: List<Σᐩ>, cfg: CFG): GRE? {
485
val Bidx = indexArray[j]
486
val Cidx = indexArray[j + 1]
487
for (r in appq) {
488
- val left = dp[p][r][Bidx]
489
- if (left == null) continue
490
- val right = dp[r][q][Cidx]
491
- if (right == null) continue
+ val left = dp[p][r][Bidx] ?: continue
+ val right = dp[r][q][Cidx] ?: continue
492
// Found a parse for A
493
rhsPairs += left * right
494
// if (rhsPairs.size > 10) break@outerLoop
0 commit comments