Skip to content

Commit 2872190

Browse files
committed
Tweaks
1 parent 90e269d commit 2872190

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
@@ -2,14 +2,14 @@
22
def img
33

44
pipeline {
5-
agent none
5+
agent none
66
options {
77
ansiColor('xterm')
88
}
99
stages {
1010
stage ( 'Pull Request' ) {
1111
agent any
12-
when {
12+
when {
1313
changeRequest()
1414
beforeAgent true
1515
}

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)