Skip to content

Commit e77b2b7

Browse files
committed
fix a bug where local signals were not correctly being identified as typed
1 parent 47e8f0c commit e77b2b7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plugins/de.cau.cs.kieler.esterel/src/de/cau/cs/kieler/esterel/processors/transformators/incremental/LocalSignalDeclTransformation.xtend

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ class LocalSignalDeclTransformation extends AbstractSCEstDynamicProcessor<LocalS
5858
var decl = createDeclaration(ValueType.BOOL, s)
5959
voStore.update(s, "signal")
6060
var decl2 = createDeclaration(null, null)
61-
if (signal.type !== null) {
61+
val isValued = signal.type != ValueType.PURE || signal.idType !== null
62+
if (signal.type !== null || signal.idType !== null) {
6263
scope.declarations.add(decl)
63-
if (signal.type == ValueType.PURE) {
64+
if (!isValued) {
6465
signalsMap.put(signal, new NewSignals(s))
6566
}
6667
else {

0 commit comments

Comments
 (0)