Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
chathhorn committed Sep 24, 2019
1 parent 598c257 commit e646f0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ def img
def PRIVATE_REGISTRY = "https://10.0.0.21:5201"

pipeline {
agent none
agent none
options {
ansiColor('xterm')
}
stages {
stage ( 'Pull Request' ) {
agent any
when {
when {
changeRequest()
beforeAgent true
}
Expand Down
10 changes: 6 additions & 4 deletions semantics/cpp/language/translation/decl/initializer.k
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,15 @@ module CPP-TRANSLATION-DECL-INITIALIZER

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

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

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

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

rule isNoInit(_ |-> _) => false [owise]
rule #hasInit(_ |-> (_, NoInit())) => false

rule #hasInit(_) => true [owise]

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

Expand Down

0 comments on commit e646f0c

Please sign in to comment.