Skip to content

Commit e646f0c

Browse files
committed
Tweaks
1 parent 598c257 commit e646f0c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ def img
55
def PRIVATE_REGISTRY = "https://10.0.0.21:5201"
66

77
pipeline {
8-
agent none
8+
agent none
99
options {
1010
ansiColor('xterm')
1111
}
1212
stages {
1313
stage ( 'Pull Request' ) {
1414
agent any
15-
when {
15+
when {
1616
changeRequest()
1717
beforeAgent true
1818
}

semantics/cpp/language/translation/decl/initializer.k

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,15 @@ module CPP-TRANSLATION-DECL-INITIALIZER
326326

327327
syntax Bool ::= hasInit(CId, Map) [function]
328328

329-
rule hasInit(X:CId, X |-> M::Map _) => notBool isNoInit(M)
329+
rule hasInit(X:CId, (X |-> M:Map) _) => #hasInit(M)
330330

331-
syntax Bool ::= isNoInit(Map) [function]
331+
rule hasInit(_, _) => false [owise]
332332

333-
rule isNoInit(_ |-> (_, NoInit())) => true
333+
syntax Bool ::= #hasInit(Map) [function]
334334

335-
rule isNoInit(_ |-> _) => false [owise]
335+
rule #hasInit(_ |-> (_, NoInit())) => false
336+
337+
rule #hasInit(_) => true [owise]
336338

337339
syntax Expr ::= classAggInit(base: LVal, fields: List, initList: List, initializers: Map, class: Class, initExp: K, ctype: ConstructorType, duration: Duration)
338340

0 commit comments

Comments
 (0)