diff --git a/package-lock.json b/package-lock.json
index 1af14beb0..a72e232d2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
"rimraf": "^4.1.2",
"simple-git": "^3.16.1",
"ts-node": "^10.9.1",
- "typescript": "^4.6.5",
+ "typescript": "^4.9.5",
"url-exist": "^3.0.1",
"vscode-oniguruma": "^1.7.0",
"vscode-textmate": "^9.0.0",
@@ -48,9 +48,8 @@
},
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
- "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
- "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@jridgewell/trace-mapping": "0.3.9"
},
@@ -58,42 +57,38 @@
"node": ">=12"
}
},
- "node_modules/@esbuild/darwin-x64": {
- "version": "0.17.12",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.12.tgz",
- "integrity": "sha512-5D48jM3tW27h1qjaD9UNRuN+4v0zvksqZSPZqeSWggfMlsVdAhH3pwSfQIFJwcs9QJ9BRibPS4ViZgs3d2wsCA==",
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.17.18",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
- "darwin"
+ "linux"
],
"engines": {
"node": ">=12"
}
},
"node_modules/@jridgewell/resolve-uri": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",
- "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",
+ "version": "3.1.1",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/sourcemap-codec": {
- "version": "1.4.14",
- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz",
- "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",
- "dev": true
+ "version": "1.4.15",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.9",
- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
- "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@jridgewell/resolve-uri": "^3.0.3",
"@jridgewell/sourcemap-codec": "^1.4.10"
@@ -101,122 +96,105 @@
},
"node_modules/@kwsites/file-exists": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz",
- "integrity": "sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"debug": "^4.1.1"
}
},
"node_modules/@kwsites/promise-deferred": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/@kwsites/promise-deferred/-/promise-deferred-1.1.1.tgz",
- "integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@tootallnate/once": {
"version": "1.1.2",
- "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
- "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">= 6"
}
},
"node_modules/@tsconfig/node10": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz",
- "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==",
- "dev": true
+ "version": "1.0.9",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@tsconfig/node12": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz",
- "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==",
- "dev": true
+ "version": "1.0.11",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@tsconfig/node14": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz",
- "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==",
- "dev": true
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@tsconfig/node16": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz",
- "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==",
- "dev": true
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@types/chai": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.4.tgz",
- "integrity": "sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw==",
- "dev": true
+ "version": "4.3.5",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@types/chai-spies": {
"version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@types/chai-spies/-/chai-spies-1.0.3.tgz",
- "integrity": "sha512-RBZjhVuK7vrg4rWMt04UF5zHYwfHnpk5mIWu3nQvU3AKGDixXzSjZ6v0zke6pBcaJqMv3IBZ5ibLWPMRDL0sLw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@types/chai": "*"
}
},
"node_modules/@types/glob": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz",
- "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==",
+ "version": "8.1.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "@types/minimatch": "*",
+ "@types/minimatch": "^5.1.2",
"@types/node": "*"
}
},
"node_modules/@types/minimatch": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz",
- "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==",
- "dev": true
+ "version": "5.1.2",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@types/mocha": {
"version": "10.0.1",
- "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz",
- "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@types/node": {
- "version": "18.15.3",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.3.tgz",
- "integrity": "sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==",
- "dev": true
+ "version": "18.16.5",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@types/rimraf": {
"version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@types/glob": "*",
"@types/node": "*"
}
},
"node_modules/@types/vscode": {
- "version": "1.76.0",
- "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.76.0.tgz",
- "integrity": "sha512-CQcY3+Fe5hNewHnOEAVYj4dd1do/QHliXaknAEYSXx2KEHUzFibDZSKptCon+HPgK55xx20pR+PBJjf0MomnBA==",
- "dev": true
+ "version": "1.78.0",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@types/which": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/@types/which/-/which-2.0.1.tgz",
- "integrity": "sha512-Jjakcv8Roqtio6w1gr0D7y6twbhx6gGgFGF5BLwajPpnOIOxFkakFhCq+LmyyeAz7BX6ULrjBOxdKaCDy+4+dQ==",
- "dev": true
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@vscode/test-electron": {
"version": "2.3.0",
- "resolved": "https://registry.npmjs.org/@vscode/test-electron/-/test-electron-2.3.0.tgz",
- "integrity": "sha512-fwzA9RtazH1GT/sckYlbxu6t5e4VaMXwCVtyLv4UAG0hP6NTfnMaaG25XCfWqlVwFhBMcQXHBCy5dmz2eLUnkw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"http-proxy-agent": "^4.0.1",
"https-proxy-agent": "^5.0.0",
@@ -227,50 +205,10 @@
"node": ">=16"
}
},
- "node_modules/@vscode/test-electron/node_modules/agent-base": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
- "dev": true,
- "dependencies": {
- "debug": "4"
- },
- "engines": {
- "node": ">= 6.0.0"
- }
- },
- "node_modules/@vscode/test-electron/node_modules/http-proxy-agent": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz",
- "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==",
- "dev": true,
- "dependencies": {
- "@tootallnate/once": "1",
- "agent-base": "6",
- "debug": "4"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/@vscode/test-electron/node_modules/https-proxy-agent": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
- "dev": true,
- "dependencies": {
- "agent-base": "6",
- "debug": "4"
- },
- "engines": {
- "node": ">= 6"
- }
- },
"node_modules/@vscode/vsce": {
"version": "2.19.0",
- "resolved": "https://registry.npmjs.org/@vscode/vsce/-/vsce-2.19.0.tgz",
- "integrity": "sha512-dAlILxC5ggOutcvJY24jxz913wimGiUrHaPkk16Gm9/PGFbz1YezWtrXsTKUtJws4fIlpX2UIlVlVESWq8lkfQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"azure-devops-node-api": "^11.0.1",
"chalk": "^2.4.2",
@@ -305,18 +243,16 @@
},
"node_modules/@vscode/vsce/node_modules/commander": {
"version": "6.2.1",
- "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
- "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">= 6"
}
},
"node_modules/@vscode/vsce/node_modules/glob": {
"version": "7.2.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@@ -334,31 +270,16 @@
},
"node_modules/@vscode/vsce/node_modules/semver": {
"version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true,
+ "license": "ISC",
"bin": {
"semver": "bin/semver"
}
},
- "node_modules/@vscode/vsce/node_modules/xml2js": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz",
- "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==",
- "dev": true,
- "dependencies": {
- "sax": ">=0.6.0",
- "xmlbuilder": "~11.0.0"
- },
- "engines": {
- "node": ">=4.0.0"
- }
- },
"node_modules/abort-controller": {
"version": "3.0.0",
- "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
- "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"event-target-shim": "^5.0.0"
},
@@ -367,10 +288,9 @@
}
},
"node_modules/acorn": {
- "version": "8.6.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz",
- "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==",
+ "version": "8.8.2",
"dev": true,
+ "license": "MIT",
"bin": {
"acorn": "bin/acorn"
},
@@ -378,30 +298,45 @@
"node": ">=0.4.0"
}
},
+ "node_modules/acorn-walk": {
+ "version": "8.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/agent-base": {
+ "version": "6.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
"node_modules/ansi-colors": {
"version": "4.1.1",
- "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
- "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/ansi-regex": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "version": "5.0.1",
"dev": true,
- "optional": true,
+ "license": "MIT",
"engines": {
- "node": ">=0.10.0"
+ "node": ">=8"
}
},
"node_modules/ansi-styles": {
"version": "3.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"color-convert": "^1.9.0"
},
@@ -410,10 +345,9 @@
}
},
"node_modules/anymatch": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",
- "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",
+ "version": "3.1.3",
"dev": true,
+ "license": "ISC",
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
@@ -422,58 +356,39 @@
"node": ">= 8"
}
},
- "node_modules/aproba": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
- "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
+ "node_modules/arg": {
+ "version": "4.1.3",
"dev": true,
- "optional": true
+ "license": "MIT"
},
- "node_modules/are-we-there-yet": {
- "version": "1.1.7",
- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz",
- "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==",
+ "node_modules/argparse": {
+ "version": "2.0.1",
"dev": true,
- "optional": true,
- "dependencies": {
- "delegates": "^1.0.0",
- "readable-stream": "^2.0.6"
- }
- },
- "node_modules/arg": {
- "version": "4.1.3",
- "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
- "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
- "dev": true
+ "license": "Python-2.0"
},
"node_modules/assertion-error": {
"version": "1.1.0",
- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
- "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/azure-devops-node-api": {
- "version": "11.1.0",
- "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-11.1.0.tgz",
- "integrity": "sha512-6/2YZuf+lJzJLrjXNYEA5RXAkMCb8j/4VcHD0qJQRsgG/KsRMYo0HgDh0by1FGHyZkQWY5LmQyJqCwRVUB3Y7Q==",
+ "version": "11.2.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
"tunnel": "0.0.6",
"typed-rest-client": "^1.8.4"
}
},
"node_modules/balanced-match": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
- "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
+ "version": "1.0.2",
+ "license": "MIT"
},
"node_modules/base64-js": {
"version": "1.5.1",
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
- "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
"dev": true,
"funding": [
{
@@ -489,22 +404,21 @@
"url": "https://feross.org/support"
}
],
+ "license": "MIT",
"optional": true
},
"node_modules/binary-extensions": {
"version": "2.2.0",
- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
- "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/bl": {
"version": "4.1.0",
- "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
- "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
"buffer": "^5.5.0",
@@ -513,10 +427,9 @@
}
},
"node_modules/bl/node_modules/readable-stream": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
- "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "version": "3.6.2",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
"inherits": "^2.0.3",
@@ -529,15 +442,13 @@
},
"node_modules/boolbase": {
"version": "1.0.0",
- "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
- "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=",
- "dev": true
+ "dev": true,
+ "license": "ISC"
},
"node_modules/brace-expansion": {
"version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -545,9 +456,8 @@
},
"node_modules/braces": {
"version": "3.0.2",
- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
- "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"fill-range": "^7.0.1"
},
@@ -557,14 +467,11 @@
},
"node_modules/browser-stdout": {
"version": "1.3.1",
- "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
- "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
- "dev": true
+ "dev": true,
+ "license": "ISC"
},
"node_modules/buffer": {
"version": "5.7.1",
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
- "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
"dev": true,
"funding": [
{
@@ -580,6 +487,7 @@
"url": "https://feross.org/support"
}
],
+ "license": "MIT",
"optional": true,
"dependencies": {
"base64-js": "^1.3.1",
@@ -588,18 +496,16 @@
},
"node_modules/buffer-crc32": {
"version": "0.2.13",
- "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
- "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=",
"dev": true,
+ "license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/call-bind": {
"version": "1.0.2",
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
- "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
@@ -608,11 +514,21 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/camelcase": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/chai": {
"version": "4.3.7",
- "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz",
- "integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"assertion-error": "^1.1.0",
"check-error": "^1.0.2",
@@ -628,9 +544,8 @@
},
"node_modules/chai-spies": {
"version": "1.0.0",
- "resolved": "https://registry.npmjs.org/chai-spies/-/chai-spies-1.0.0.tgz",
- "integrity": "sha512-elF2ZUczBsFoP07qCfMO/zeggs8pqCf3fZGyK5+2X4AndS8jycZYID91ztD9oQ7d/0tnS963dPkd0frQEThDsg==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">= 4.0.0"
},
@@ -640,9 +555,8 @@
},
"node_modules/chalk": {
"version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"ansi-styles": "^3.2.1",
"escape-string-regexp": "^1.0.5",
@@ -654,26 +568,24 @@
},
"node_modules/check-error": {
"version": "1.0.2",
- "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz",
- "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/cheerio": {
- "version": "1.0.0-rc.9",
- "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.9.tgz",
- "integrity": "sha512-QF6XVdrLONO6DXRF5iaolY+odmhj2CLj+xzNod7INPWMi/x9X4SOylH0S/vaPpX+AUU6t04s34SQNh7DbkuCng==",
+ "version": "1.0.0-rc.12",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "cheerio-select": "^1.4.0",
- "dom-serializer": "^1.3.1",
- "domhandler": "^4.2.0",
- "htmlparser2": "^6.1.0",
- "parse5": "^6.0.1",
- "parse5-htmlparser2-tree-adapter": "^6.0.1",
- "tslib": "^2.2.0"
+ "cheerio-select": "^2.1.0",
+ "dom-serializer": "^2.0.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.0.1",
+ "htmlparser2": "^8.0.1",
+ "parse5": "^7.0.0",
+ "parse5-htmlparser2-tree-adapter": "^7.0.0"
},
"engines": {
"node": ">= 6"
@@ -683,16 +595,16 @@
}
},
"node_modules/cheerio-select": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.4.0.tgz",
- "integrity": "sha512-sobR3Yqz27L553Qa7cK6rtJlMDbiKPdNywtR95Sj/YgfpLfy0u6CGJuaBKe5YE/vTc23SCRKxWSdlon/w6I/Ew==",
+ "version": "2.1.0",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
- "css-select": "^4.1.2",
- "css-what": "^5.0.0",
- "domelementtype": "^2.2.0",
- "domhandler": "^4.2.0",
- "domutils": "^2.6.0"
+ "boolbase": "^1.0.0",
+ "css-select": "^5.1.0",
+ "css-what": "^6.1.0",
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.0.1"
},
"funding": {
"url": "https://github.com/sponsors/fb55"
@@ -700,8 +612,6 @@
},
"node_modules/chokidar": {
"version": "3.5.3",
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
- "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
"dev": true,
"funding": [
{
@@ -709,6 +619,7 @@
"url": "https://paulmillr.com/funding/"
}
],
+ "license": "MIT",
"dependencies": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
@@ -727,152 +638,80 @@
},
"node_modules/chownr": {
"version": "1.1.4",
- "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
- "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
"dev": true,
+ "license": "ISC",
"optional": true
},
"node_modules/cliui": {
"version": "7.0.4",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
- "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"wrap-ansi": "^7.0.0"
}
},
- "node_modules/cliui/node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/cliui/node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/cliui/node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dev": true,
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/cliui/node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dev": true,
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/code-point-at": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
- "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
- "dev": true,
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/color-convert": {
"version": "1.9.3",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"color-name": "1.1.3"
}
},
"node_modules/color-name": {
"version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/colorette": {
- "version": "2.0.19",
- "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz",
- "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==",
- "dev": true
+ "version": "2.0.20",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/commander": {
- "version": "10.0.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.0.tgz",
- "integrity": "sha512-zS5PnTI22FIRM6ylNW8G4Ap0IEOyk62fhLSD0+uHRT9McRCLGpkVNvao4bjimpK/GShynyQkFFxHhwMcETmduA==",
+ "version": "10.0.1",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=14"
}
},
"node_modules/concat-map": {
"version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
- "dev": true
- },
- "node_modules/console-control-strings": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
"dev": true,
- "optional": true
+ "license": "MIT"
},
"node_modules/core-util-is": {
"version": "1.0.3",
- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
- "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/create-require": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
- "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/css-select": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.2.tgz",
- "integrity": "sha512-nu5ye2Hg/4ISq4XqdLY2bEatAcLIdt3OYGFc9Tm9n7VSlFBcfRv0gBNksHRgSdUDQGtN3XrZ94ztW+NfzkFSUw==",
+ "version": "5.1.0",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
"boolbase": "^1.0.0",
- "css-what": "^5.0.0",
- "domhandler": "^4.2.0",
- "domutils": "^2.6.0",
- "nth-check": "^2.0.0"
+ "css-what": "^6.1.0",
+ "domhandler": "^5.0.2",
+ "domutils": "^3.0.1",
+ "nth-check": "^2.0.1"
},
"funding": {
"url": "https://github.com/sponsors/fb55"
}
},
"node_modules/css-what": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz",
- "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==",
+ "version": "6.1.0",
"dev": true,
+ "license": "BSD-2-Clause",
"engines": {
"node": ">= 6"
},
@@ -882,18 +721,16 @@
},
"node_modules/data-uri-to-buffer": {
"version": "4.0.1",
- "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
- "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">= 12"
}
},
"node_modules/debug": {
"version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"ms": "2.1.2"
},
@@ -906,17 +743,10 @@
}
}
},
- "node_modules/debug/node_modules/ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
- "dev": true
- },
"node_modules/decamelize": {
"version": "4.0.0",
- "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz",
- "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=10"
},
@@ -925,23 +755,24 @@
}
},
"node_modules/decompress-response": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz",
- "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==",
+ "version": "6.0.0",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
- "mimic-response": "^2.0.0"
+ "mimic-response": "^3.1.0"
},
"engines": {
- "node": ">=8"
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/deep-eql": {
"version": "4.1.3",
- "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz",
- "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"type-detect": "^4.0.0"
},
@@ -951,76 +782,60 @@
},
"node_modules/deep-extend": {
"version": "0.6.0",
- "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
- "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
"dev": true,
+ "license": "MIT",
"optional": true,
"engines": {
"node": ">=4.0.0"
}
},
- "node_modules/delegates": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
- "dev": true,
- "optional": true
- },
"node_modules/detect-libc": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
- "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",
+ "version": "2.0.1",
"dev": true,
+ "license": "Apache-2.0",
"optional": true,
- "bin": {
- "detect-libc": "bin/detect-libc.js"
- },
"engines": {
- "node": ">=0.10"
+ "node": ">=8"
}
},
"node_modules/diff": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
- "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
+ "version": "5.0.0",
"dev": true,
+ "license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
}
},
"node_modules/dom-serializer": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.1.tgz",
- "integrity": "sha512-Pv2ZluG5ife96udGgEDovOOOA5UELkltfJpnIExPrAk1LTvecolUGn6lIaoLh86d83GiB86CjzciMd9BuRB71Q==",
+ "version": "2.0.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "domelementtype": "^2.0.1",
- "domhandler": "^4.0.0",
- "entities": "^2.0.0"
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.2",
+ "entities": "^4.2.0"
},
"funding": {
"url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
}
},
"node_modules/domelementtype": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz",
- "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==",
+ "version": "2.3.0",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/fb55"
}
- ]
+ ],
+ "license": "BSD-2-Clause"
},
"node_modules/domhandler": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.0.tgz",
- "integrity": "sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA==",
+ "version": "5.0.3",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
- "domelementtype": "^2.2.0"
+ "domelementtype": "^2.3.0"
},
"engines": {
"node": ">= 4"
@@ -1030,14 +845,13 @@
}
},
"node_modules/domutils": {
- "version": "2.6.0",
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.6.0.tgz",
- "integrity": "sha512-y0BezHuy4MDYxh6OvolXYsH+1EMGmFbwv5FKW7ovwMG6zTPWqNPq3WF9ayZssFq+UlKdffGLbOEaghNdaOm1WA==",
+ "version": "3.1.0",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
- "dom-serializer": "^1.0.1",
- "domelementtype": "^2.2.0",
- "domhandler": "^4.2.0"
+ "dom-serializer": "^2.0.0",
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3"
},
"funding": {
"url": "https://github.com/fb55/domutils?sponsor=1"
@@ -1045,35 +859,34 @@
},
"node_modules/emoji-regex": {
"version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/end-of-stream": {
"version": "1.4.4",
- "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
- "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
"once": "^1.4.0"
}
},
"node_modules/entities": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",
- "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",
+ "version": "4.5.0",
"dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
"funding": {
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
"node_modules/esbuild": {
- "version": "0.17.12",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.12.tgz",
- "integrity": "sha512-bX/zHl7Gn2CpQwcMtRogTTBf9l1nl+H6R8nUbjk+RuKqAE3+8FDulLA+pHvX7aA7Xe07Iwa+CWvy9I8Y2qqPKQ==",
+ "version": "0.17.18",
"dev": true,
"hasInstallScript": true,
+ "license": "MIT",
"bin": {
"esbuild": "bin/esbuild"
},
@@ -1081,62 +894,58 @@
"node": ">=12"
},
"optionalDependencies": {
- "@esbuild/android-arm": "0.17.12",
- "@esbuild/android-arm64": "0.17.12",
- "@esbuild/android-x64": "0.17.12",
- "@esbuild/darwin-arm64": "0.17.12",
- "@esbuild/darwin-x64": "0.17.12",
- "@esbuild/freebsd-arm64": "0.17.12",
- "@esbuild/freebsd-x64": "0.17.12",
- "@esbuild/linux-arm": "0.17.12",
- "@esbuild/linux-arm64": "0.17.12",
- "@esbuild/linux-ia32": "0.17.12",
- "@esbuild/linux-loong64": "0.17.12",
- "@esbuild/linux-mips64el": "0.17.12",
- "@esbuild/linux-ppc64": "0.17.12",
- "@esbuild/linux-riscv64": "0.17.12",
- "@esbuild/linux-s390x": "0.17.12",
- "@esbuild/linux-x64": "0.17.12",
- "@esbuild/netbsd-x64": "0.17.12",
- "@esbuild/openbsd-x64": "0.17.12",
- "@esbuild/sunos-x64": "0.17.12",
- "@esbuild/win32-arm64": "0.17.12",
- "@esbuild/win32-ia32": "0.17.12",
- "@esbuild/win32-x64": "0.17.12"
+ "@esbuild/android-arm": "0.17.18",
+ "@esbuild/android-arm64": "0.17.18",
+ "@esbuild/android-x64": "0.17.18",
+ "@esbuild/darwin-arm64": "0.17.18",
+ "@esbuild/darwin-x64": "0.17.18",
+ "@esbuild/freebsd-arm64": "0.17.18",
+ "@esbuild/freebsd-x64": "0.17.18",
+ "@esbuild/linux-arm": "0.17.18",
+ "@esbuild/linux-arm64": "0.17.18",
+ "@esbuild/linux-ia32": "0.17.18",
+ "@esbuild/linux-loong64": "0.17.18",
+ "@esbuild/linux-mips64el": "0.17.18",
+ "@esbuild/linux-ppc64": "0.17.18",
+ "@esbuild/linux-riscv64": "0.17.18",
+ "@esbuild/linux-s390x": "0.17.18",
+ "@esbuild/linux-x64": "0.17.18",
+ "@esbuild/netbsd-x64": "0.17.18",
+ "@esbuild/openbsd-x64": "0.17.18",
+ "@esbuild/sunos-x64": "0.17.18",
+ "@esbuild/win32-arm64": "0.17.18",
+ "@esbuild/win32-ia32": "0.17.18",
+ "@esbuild/win32-x64": "0.17.18"
}
},
"node_modules/escalade": {
"version": "3.1.1",
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
- "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/escape-string-regexp": {
"version": "1.0.5",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=0.8.0"
}
},
"node_modules/event-target-shim": {
"version": "5.0.1",
- "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
- "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/expand-template": {
"version": "2.0.3",
- "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
- "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
"dev": true,
+ "license": "(MIT OR WTFPL)",
"optional": true,
"engines": {
"node": ">=6"
@@ -1144,17 +953,14 @@
},
"node_modules/fd-slicer": {
"version": "1.1.0",
- "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
- "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
"dev": true,
+ "license": "MIT",
"dependencies": {
"pend": "~1.2.0"
}
},
"node_modules/fetch-blob": {
"version": "3.2.0",
- "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
- "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
"dev": true,
"funding": [
{
@@ -1166,6 +972,7 @@
"url": "https://paypal.me/jimmywarting"
}
],
+ "license": "MIT",
"dependencies": {
"node-domexception": "^1.0.0",
"web-streams-polyfill": "^3.0.3"
@@ -1176,9 +983,8 @@
},
"node_modules/fill-range": {
"version": "7.0.1",
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
- "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"to-regex-range": "^5.0.1"
},
@@ -1186,20 +992,33 @@
"node": ">=8"
}
},
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/flat": {
"version": "5.0.2",
- "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz",
- "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==",
"dev": true,
+ "license": "BSD-3-Clause",
"bin": {
"flat": "cli.js"
}
},
"node_modules/formdata-polyfill": {
"version": "4.0.10",
- "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
- "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"fetch-blob": "^3.1.2"
},
@@ -1209,81 +1028,44 @@
},
"node_modules/fs-constants": {
"version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
- "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
"dev": true,
+ "license": "MIT",
"optional": true
},
"node_modules/fs.realpath": {
"version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
- "dev": true
- },
- "node_modules/fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
- "hasInstallScript": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
+ "license": "ISC"
},
"node_modules/function-bind": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
- "dev": true
- },
- "node_modules/gauge": {
- "version": "2.7.4",
- "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
- "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
"dev": true,
- "optional": true,
- "dependencies": {
- "aproba": "^1.0.3",
- "console-control-strings": "^1.0.0",
- "has-unicode": "^2.0.0",
- "object-assign": "^4.1.0",
- "signal-exit": "^3.0.0",
- "string-width": "^1.0.1",
- "strip-ansi": "^3.0.1",
- "wide-align": "^1.1.0"
- }
+ "license": "MIT"
},
"node_modules/get-caller-file": {
"version": "2.0.5",
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
"dev": true,
+ "license": "ISC",
"engines": {
"node": "6.* || 8.* || >= 10.*"
}
},
"node_modules/get-func-name": {
"version": "2.0.0",
- "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
- "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
"dev": true,
+ "license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/get-intrinsic": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
- "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",
+ "version": "1.2.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
- "has-symbols": "^1.0.1"
+ "has-symbols": "^1.0.3"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
@@ -1291,16 +1073,14 @@
},
"node_modules/github-from-package": {
"version": "0.0.0",
- "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
- "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=",
"dev": true,
+ "license": "MIT",
"optional": true
},
"node_modules/glob": {
"version": "8.1.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
- "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@@ -1317,9 +1097,8 @@
},
"node_modules/glob-parent": {
"version": "5.1.2",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"is-glob": "^4.0.1"
},
@@ -1329,18 +1108,16 @@
},
"node_modules/glob/node_modules/brace-expansion": {
"version": "2.0.1",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0"
}
},
"node_modules/glob/node_modules/minimatch": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz",
- "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==",
+ "version": "5.1.6",
"dev": true,
+ "license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
@@ -1350,9 +1127,8 @@
},
"node_modules/has": {
"version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
- "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"function-bind": "^1.1.1"
},
@@ -1362,18 +1138,16 @@
},
"node_modules/has-flag": {
"version": "3.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=4"
}
},
"node_modules/has-symbols": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz",
- "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==",
+ "version": "1.0.3",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">= 0.4"
},
@@ -1381,27 +1155,18 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/has-unicode": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
- "dev": true,
- "optional": true
- },
"node_modules/he": {
"version": "1.2.0",
- "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
- "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
"dev": true,
+ "license": "MIT",
"bin": {
"he": "bin/he"
}
},
"node_modules/hosted-git-info": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz",
- "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==",
+ "version": "4.1.0",
"dev": true,
+ "license": "ISC",
"dependencies": {
"lru-cache": "^6.0.0"
},
@@ -1410,9 +1175,7 @@
}
},
"node_modules/htmlparser2": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz",
- "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==",
+ "version": "8.0.2",
"dev": true,
"funding": [
"https://github.com/fb55/htmlparser2?sponsor=1",
@@ -1421,45 +1184,68 @@
"url": "https://github.com/sponsors/fb55"
}
],
+ "license": "MIT",
"dependencies": {
- "domelementtype": "^2.0.1",
- "domhandler": "^4.0.0",
- "domutils": "^2.5.2",
- "entities": "^2.0.0"
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.0.1",
+ "entities": "^4.4.0"
}
},
- "node_modules/ieee754": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
+ "node_modules/http-proxy-agent": {
+ "version": "4.0.1",
"dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "optional": true
+ "license": "MIT",
+ "dependencies": {
+ "@tootallnate/once": "1",
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/https-proxy-agent": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/ieee754": {
+ "version": "1.2.1",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "BSD-3-Clause",
+ "optional": true
},
"node_modules/immediate": {
"version": "3.0.6",
- "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
- "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/inflight": {
"version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"dev": true,
+ "license": "ISC",
"dependencies": {
"once": "^1.3.0",
"wrappy": "1"
@@ -1467,22 +1253,19 @@
},
"node_modules/inherits": {
"version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
- "dev": true
+ "dev": true,
+ "license": "ISC"
},
"node_modules/ini": {
"version": "1.3.8",
- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
- "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
"dev": true,
+ "license": "ISC",
"optional": true
},
"node_modules/is-binary-path": {
"version": "2.1.0",
- "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
- "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"binary-extensions": "^2.0.0"
},
@@ -1492,31 +1275,24 @@
},
"node_modules/is-extglob": {
"version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-fullwidth-code-point": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
- "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
+ "version": "3.0.0",
"dev": true,
- "optional": true,
- "dependencies": {
- "number-is-nan": "^1.0.0"
- },
+ "license": "MIT",
"engines": {
- "node": ">=0.10.0"
+ "node": ">=8"
}
},
"node_modules/is-glob": {
"version": "4.0.3",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
},
@@ -1526,27 +1302,24 @@
},
"node_modules/is-number": {
"version": "7.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=0.12.0"
}
},
"node_modules/is-plain-obj": {
"version": "2.1.0",
- "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
- "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/is-unicode-supported": {
"version": "0.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=10"
},
@@ -1556,9 +1329,8 @@
},
"node_modules/is-url-superb": {
"version": "6.1.0",
- "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-6.1.0.tgz",
- "integrity": "sha512-LXdhGlYqUPdvEyIhWPEEwYYK3yrUiPcBjmFGlZNv1u5GtIL5qQRf7ddDyPNAvsMFqdzS923FROpTQU97tLe3JQ==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=12"
},
@@ -1568,27 +1340,34 @@
},
"node_modules/isarray": {
"version": "1.0.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/isexe": {
"version": "2.0.0",
- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
- "dev": true
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
},
"node_modules/jsonc-parser": {
"version": "3.2.0",
- "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz",
- "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/jszip": {
"version": "3.10.1",
- "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz",
- "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==",
"dev": true,
+ "license": "(MIT OR GPL-3.0-or-later)",
"dependencies": {
"lie": "~3.3.0",
"pako": "~1.0.2",
@@ -1597,22 +1376,20 @@
}
},
"node_modules/keytar": {
- "version": "7.7.0",
- "resolved": "https://registry.npmjs.org/keytar/-/keytar-7.7.0.tgz",
- "integrity": "sha512-YEY9HWqThQc5q5xbXbRwsZTh2PJ36OSYRjSv3NN2xf5s5dpLTjEZnC2YikR29OaVybf9nQ0dJ/80i40RS97t/A==",
+ "version": "7.9.0",
"dev": true,
"hasInstallScript": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
- "node-addon-api": "^3.0.0",
- "prebuild-install": "^6.0.0"
+ "node-addon-api": "^4.3.0",
+ "prebuild-install": "^7.0.1"
}
},
"node_modules/ky": {
"version": "0.27.0",
- "resolved": "https://registry.npmjs.org/ky/-/ky-0.27.0.tgz",
- "integrity": "sha512-pgaBuB6wI9DdMSOZBVh2WkcbkAdEG5AUEWuNhtThu6FLIpDbzqzC/fSMmqr/j1wwQyW3SP3KGau7EbzWNkQ/yg==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=12"
},
@@ -1622,9 +1399,8 @@
},
"node_modules/ky-universal": {
"version": "0.10.1",
- "resolved": "https://registry.npmjs.org/ky-universal/-/ky-universal-0.10.1.tgz",
- "integrity": "sha512-r8909k+ELKZAxhVA5c440x22hqw5XcMRwLRbgpPQk4JHy3/ddJnvzcnSo5Ww3HdKdNeS3Y8dBgcIYyVahMa46g==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"abort-controller": "^3.0.0",
"node-fetch": "^3.2.2"
@@ -1647,36 +1423,46 @@
},
"node_modules/leven": {
"version": "3.1.0",
- "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
- "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/lie": {
"version": "3.3.0",
- "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",
- "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"immediate": "~3.0.5"
}
},
"node_modules/linkify-it": {
"version": "3.0.3",
- "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz",
- "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"uc.micro": "^1.0.1"
}
},
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/log-symbols": {
"version": "4.1.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"chalk": "^4.1.0",
"is-unicode-supported": "^0.1.0"
@@ -1690,9 +1476,8 @@
},
"node_modules/log-symbols/node_modules/ansi-styles": {
"version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
@@ -1705,9 +1490,8 @@
},
"node_modules/log-symbols/node_modules/chalk": {
"version": "4.1.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
@@ -1721,9 +1505,8 @@
},
"node_modules/log-symbols/node_modules/color-convert": {
"version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
},
@@ -1733,24 +1516,21 @@
},
"node_modules/log-symbols/node_modules/color-name": {
"version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/log-symbols/node_modules/has-flag": {
"version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/log-symbols/node_modules/supports-color": {
"version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
@@ -1760,17 +1540,15 @@
},
"node_modules/loupe": {
"version": "2.3.6",
- "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz",
- "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"get-func-name": "^2.0.0"
}
},
"node_modules/lru-cache": {
"version": "6.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "license": "ISC",
"dependencies": {
"yallist": "^4.0.0"
},
@@ -1780,15 +1558,13 @@
},
"node_modules/make-error": {
"version": "1.3.6",
- "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
- "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
- "dev": true
+ "dev": true,
+ "license": "ISC"
},
"node_modules/markdown-it": {
"version": "12.3.2",
- "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz",
- "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"argparse": "^2.0.1",
"entities": "~2.1.0",
@@ -1800,41 +1576,31 @@
"markdown-it": "bin/markdown-it.js"
}
},
- "node_modules/markdown-it/node_modules/argparse": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
- "dev": true
- },
"node_modules/markdown-it/node_modules/entities": {
"version": "2.1.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz",
- "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==",
"dev": true,
+ "license": "BSD-2-Clause",
"funding": {
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
"node_modules/maven": {
"version": "5.0.0",
- "resolved": "https://registry.npmjs.org/maven/-/maven-5.0.0.tgz",
- "integrity": "sha512-GFor/ZwWLCYXTY5GnuH2l78O21FBLzTHA37kZNHH8MuahcLTQGHXTgC2x7dp+IQyEHGt4RrI/vCcy6lL8PqNoA==",
"dev": true,
+ "license": "Apache-2.0",
"engines": {
"node": ">=12.0.0"
}
},
"node_modules/mdurl": {
"version": "1.0.1",
- "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz",
- "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/mime": {
"version": "1.6.0",
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
- "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
"dev": true,
+ "license": "MIT",
"bin": {
"mime": "cli.js"
},
@@ -1843,13 +1609,12 @@
}
},
"node_modules/mimic-response": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz",
- "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",
+ "version": "3.1.0",
"dev": true,
+ "license": "MIT",
"optional": true,
"engines": {
- "node": ">=8"
+ "node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
@@ -1857,9 +1622,8 @@
},
"node_modules/minimatch": {
"version": "3.1.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"brace-expansion": "^1.1.7"
},
@@ -1868,33 +1632,32 @@
}
},
"node_modules/minimist": {
- "version": "1.2.6",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
- "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
+ "version": "1.2.8",
"dev": true,
- "optional": true
+ "license": "MIT",
+ "optional": true,
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
},
"node_modules/minipass": {
- "version": "4.2.5",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.5.tgz",
- "integrity": "sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==",
+ "version": "4.2.8",
"dev": true,
+ "license": "ISC",
"engines": {
"node": ">=8"
}
},
"node_modules/mkdirp-classic": {
"version": "0.5.3",
- "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
- "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
"dev": true,
+ "license": "MIT",
"optional": true
},
"node_modules/mocha": {
"version": "10.2.0",
- "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz",
- "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"ansi-colors": "4.1.1",
"browser-stdout": "1.3.1",
@@ -1930,60 +1693,10 @@
"url": "https://opencollective.com/mochajs"
}
},
- "node_modules/mocha/node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/mocha/node_modules/argparse": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
- "dev": true
- },
- "node_modules/mocha/node_modules/brace-expansion": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
- "dev": true,
- "dependencies": {
- "balanced-match": "^1.0.0"
- }
- },
- "node_modules/mocha/node_modules/diff": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz",
- "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==",
- "dev": true,
- "engines": {
- "node": ">=0.3.1"
- }
- },
"node_modules/mocha/node_modules/escape-string-regexp": {
"version": "4.0.0",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
"dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/mocha/node_modules/find-up": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
- "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
- "dev": true,
- "dependencies": {
- "locate-path": "^6.0.0",
- "path-exists": "^4.0.0"
- },
+ "license": "MIT",
"engines": {
"node": ">=10"
},
@@ -1993,9 +1706,8 @@
},
"node_modules/mocha/node_modules/glob": {
"version": "7.2.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
- "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@@ -2011,21 +1723,10 @@
"url": "https://github.com/sponsors/isaacs"
}
},
- "node_modules/mocha/node_modules/glob/node_modules/brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "dev": true,
- "dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
"node_modules/mocha/node_modules/glob/node_modules/minimatch": {
"version": "3.1.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"brace-expansion": "^1.1.7"
},
@@ -2035,54 +1736,16 @@
},
"node_modules/mocha/node_modules/has-flag": {
"version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=8"
}
},
- "node_modules/mocha/node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/mocha/node_modules/js-yaml": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
- "dev": true,
- "dependencies": {
- "argparse": "^2.0.1"
- },
- "bin": {
- "js-yaml": "bin/js-yaml.js"
- }
- },
- "node_modules/mocha/node_modules/locate-path": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
- "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
- "dev": true,
- "dependencies": {
- "p-locate": "^5.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/mocha/node_modules/minimatch": {
"version": "5.0.1",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz",
- "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
@@ -2090,79 +1753,23 @@
"node": ">=10"
}
},
- "node_modules/mocha/node_modules/p-limit": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
- "dev": true,
- "dependencies": {
- "yocto-queue": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/mocha/node_modules/p-locate": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
- "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
- "dev": true,
- "dependencies": {
- "p-limit": "^3.0.2"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/mocha/node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "node_modules/mocha/node_modules/minimatch/node_modules/brace-expansion": {
+ "version": "2.0.1",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
+ "balanced-match": "^1.0.0"
}
},
- "node_modules/mocha/node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "node_modules/mocha/node_modules/ms": {
+ "version": "2.1.3",
"dev": true,
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/mocha/node_modules/strip-json-comments": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
- "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
- "dev": true,
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
+ "license": "MIT"
},
"node_modules/mocha/node_modules/supports-color": {
"version": "8.1.1",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
- "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
@@ -2173,50 +1780,20 @@
"url": "https://github.com/chalk/supports-color?sponsor=1"
}
},
- "node_modules/mocha/node_modules/yargs": {
- "version": "16.2.0",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
- "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
- "dev": true,
- "dependencies": {
- "cliui": "^7.0.2",
- "escalade": "^3.1.1",
- "get-caller-file": "^2.0.5",
- "require-directory": "^2.1.1",
- "string-width": "^4.2.0",
- "y18n": "^5.0.5",
- "yargs-parser": "^20.2.2"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/mocha/node_modules/yargs-parser": {
- "version": "20.2.4",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
- "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
- "dev": true,
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/ms": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
- "dev": true
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/mute-stream": {
"version": "0.0.8",
- "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",
- "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==",
- "dev": true
+ "dev": true,
+ "license": "ISC"
},
"node_modules/nanoid": {
"version": "3.3.3",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",
- "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",
"dev": true,
+ "license": "MIT",
"bin": {
"nanoid": "bin/nanoid.cjs"
},
@@ -2226,17 +1803,15 @@
},
"node_modules/napi-build-utils": {
"version": "1.0.2",
- "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
- "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==",
"dev": true,
+ "license": "MIT",
"optional": true
},
"node_modules/node": {
- "version": "18.15.0",
- "resolved": "https://registry.npmjs.org/node/-/node-18.15.0.tgz",
- "integrity": "sha512-y6G6jOU7iZ4QjFLCc1srvPBtk+K8Lak0JbNS6ocGSAI30+wvIWaolbhj3f+jqOv58gSIAlDMyTJckQO9lD5wwQ==",
+ "version": "18.16.0",
"dev": true,
"hasInstallScript": true,
+ "license": "ISC",
"dependencies": {
"node-bin-setup": "^1.0.0"
},
@@ -2248,42 +1823,25 @@
}
},
"node_modules/node-abi": {
- "version": "2.30.1",
- "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.30.1.tgz",
- "integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==",
+ "version": "3.40.0",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
- "semver": "^5.4.1"
- }
- },
- "node_modules/node-abi/node_modules/semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "dev": true,
- "optional": true,
- "bin": {
- "semver": "bin/semver"
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": ">=10"
}
},
"node_modules/node-addon-api": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz",
- "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==",
+ "version": "4.3.0",
"dev": true,
+ "license": "MIT",
"optional": true
},
- "node_modules/node-bin-setup": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/node-bin-setup/-/node-bin-setup-1.0.6.tgz",
- "integrity": "sha512-uPIxXNis1CRbv1DwqAxkgBk5NFV3s7cMN/Gf556jSw6jBvV7ca4F9lRL/8cALcZecRibeqU+5dFYqFFmzv5a0Q==",
- "dev": true
- },
"node_modules/node-domexception": {
"version": "1.0.0",
- "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
- "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
"dev": true,
"funding": [
{
@@ -2295,15 +1853,15 @@
"url": "https://paypal.me/jimmywarting"
}
],
+ "license": "MIT",
"engines": {
"node": ">=10.5.0"
}
},
"node_modules/node-fetch": {
"version": "3.3.1",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.1.tgz",
- "integrity": "sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"data-uri-to-buffer": "^4.0.0",
"fetch-blob": "^3.1.4",
@@ -2317,33 +1875,23 @@
"url": "https://opencollective.com/node-fetch"
}
},
+ "node_modules/node/node_modules/node-bin-setup": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/normalize-path": {
"version": "3.0.0",
- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
- "node_modules/npmlog": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
- "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
- "dev": true,
- "optional": true,
- "dependencies": {
- "are-we-there-yet": "~1.1.2",
- "console-control-strings": "~1.1.0",
- "gauge": "~2.7.3",
- "set-blocking": "~2.0.0"
- }
- },
"node_modules/nth-check": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz",
- "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==",
+ "version": "2.1.1",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
"boolbase": "^1.0.0"
},
@@ -2351,88 +1899,98 @@
"url": "https://github.com/fb55/nth-check?sponsor=1"
}
},
- "node_modules/number-is-nan": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
- "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
+ "node_modules/object-inspect": {
+ "version": "1.12.3",
"dev": true,
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "node_modules/once": {
+ "version": "1.4.0",
"dev": true,
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
}
},
- "node_modules/object-inspect": {
- "version": "1.11.1",
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.1.tgz",
- "integrity": "sha512-If7BjFlpkzzBeV1cqgT3OSWT3azyoxDGajR+iGnFBfVV2EWyDyWaZZW2ERDjUaY2QM8i5jI3Sj7mhsM4DDAqWA==",
+ "node_modules/p-limit": {
+ "version": "3.1.0",
"dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
"funding": {
- "url": "https://github.com/sponsors/ljharb"
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+ "node_modules/p-locate": {
+ "version": "5.0.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "wrappy": "1"
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/pako": {
"version": "1.0.11",
- "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
- "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",
- "dev": true
+ "dev": true,
+ "license": "(MIT AND Zlib)"
},
"node_modules/parse-semver": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/parse-semver/-/parse-semver-1.1.1.tgz",
- "integrity": "sha1-mkr9bfBj3Egm+T+6SpnPIj9mbLg=",
"dev": true,
+ "license": "MIT",
"dependencies": {
"semver": "^5.1.0"
}
},
"node_modules/parse-semver/node_modules/semver": {
"version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true,
+ "license": "ISC",
"bin": {
"semver": "bin/semver"
}
},
"node_modules/parse5": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",
- "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==",
- "dev": true
+ "version": "7.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "entities": "^4.4.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
},
"node_modules/parse5-htmlparser2-tree-adapter": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz",
- "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==",
+ "version": "7.0.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "parse5": "^6.0.1"
+ "domhandler": "^5.0.2",
+ "parse5": "^7.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
}
},
"node_modules/path": {
"version": "0.12.7",
- "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz",
- "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"process": "^0.11.1",
"util": "^0.10.3"
@@ -2440,67 +1998,68 @@
},
"node_modules/path-exists": {
"version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/path-is-absolute": {
"version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/path-scurry": {
- "version": "1.6.1",
- "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.6.1.tgz",
- "integrity": "sha512-OW+5s+7cw6253Q4E+8qQ/u1fVvcJQCJo/VFD8pje+dbJCF1n5ZRMV2AEHbGp+5Q7jxQIYJxkHopnj6nzdGeZLA==",
+ "version": "1.7.0",
"dev": true,
+ "license": "BlueOak-1.0.0",
"dependencies": {
- "lru-cache": "^7.14.1",
- "minipass": "^4.0.2"
+ "lru-cache": "^9.0.0",
+ "minipass": "^5.0.0"
},
"engines": {
- "node": ">=14"
+ "node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/path-scurry/node_modules/lru-cache": {
- "version": "7.18.3",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
- "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
+ "version": "9.1.1",
"dev": true,
+ "license": "ISC",
"engines": {
- "node": ">=12"
+ "node": "14 || >=16.14"
+ }
+ },
+ "node_modules/path-scurry/node_modules/minipass": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=8"
}
},
"node_modules/pathval": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",
- "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/pend": {
"version": "1.2.0",
- "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
- "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/picomatch": {
"version": "2.3.1",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=8.6"
},
@@ -2509,23 +2068,21 @@
}
},
"node_modules/prebuild-install": {
- "version": "6.1.4",
- "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-6.1.4.tgz",
- "integrity": "sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ==",
+ "version": "7.1.1",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
- "detect-libc": "^1.0.3",
+ "detect-libc": "^2.0.0",
"expand-template": "^2.0.3",
"github-from-package": "0.0.0",
"minimist": "^1.2.3",
"mkdirp-classic": "^0.5.3",
"napi-build-utils": "^1.0.1",
- "node-abi": "^2.21.0",
- "npmlog": "^4.0.1",
+ "node-abi": "^3.3.0",
"pump": "^3.0.0",
"rc": "^1.2.7",
- "simple-get": "^3.0.3",
+ "simple-get": "^4.0.0",
"tar-fs": "^2.0.0",
"tunnel-agent": "^0.6.0"
},
@@ -2533,29 +2090,26 @@
"prebuild-install": "bin.js"
},
"engines": {
- "node": ">=6"
+ "node": ">=10"
}
},
"node_modules/process": {
"version": "0.11.10",
- "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
- "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">= 0.6.0"
}
},
"node_modules/process-nextick-args": {
"version": "2.0.1",
- "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
- "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/pump": {
"version": "3.0.0",
- "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
- "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
"end-of-stream": "^1.1.0",
@@ -2563,10 +2117,9 @@
}
},
"node_modules/qs": {
- "version": "6.11.0",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
- "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
+ "version": "6.11.1",
"dev": true,
+ "license": "BSD-3-Clause",
"dependencies": {
"side-channel": "^1.0.4"
},
@@ -2579,18 +2132,16 @@
},
"node_modules/randombytes": {
"version": "2.1.0",
- "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
- "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"safe-buffer": "^5.1.0"
}
},
"node_modules/rc": {
"version": "1.2.8",
- "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
- "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
"dev": true,
+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
"optional": true,
"dependencies": {
"deep-extend": "^0.6.0",
@@ -2602,11 +2153,19 @@
"rc": "cli.js"
}
},
+ "node_modules/rc/node_modules/strip-json-comments": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/read": {
"version": "1.0.7",
- "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz",
- "integrity": "sha1-s9oZvQUkMal2cdRKQmNK33ELQMQ=",
"dev": true,
+ "license": "ISC",
"dependencies": {
"mute-stream": "~0.0.4"
},
@@ -2615,10 +2174,9 @@
}
},
"node_modules/readable-stream": {
- "version": "2.3.7",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
- "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
+ "version": "2.3.8",
"dev": true,
+ "license": "MIT",
"dependencies": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@@ -2631,9 +2189,8 @@
},
"node_modules/readdirp": {
"version": "3.6.0",
- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
- "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"picomatch": "^2.2.1"
},
@@ -2643,18 +2200,16 @@
},
"node_modules/require-directory": {
"version": "2.1.1",
- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/rimraf": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.0.tgz",
- "integrity": "sha512-X36S+qpCUR0HjXlkDe4NAOhS//aHH0Z+h8Ckf2auGJk3PTnx5rLmrHkwNdbVQuCSUhOyFrlRvFEllZOYE+yZGQ==",
+ "version": "4.4.1",
"dev": true,
+ "license": "ISC",
"dependencies": {
"glob": "^9.2.0"
},
@@ -2670,21 +2225,19 @@
},
"node_modules/rimraf/node_modules/brace-expansion": {
"version": "2.0.1",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0"
}
},
"node_modules/rimraf/node_modules/glob": {
- "version": "9.3.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.0.tgz",
- "integrity": "sha512-EAZejC7JvnQINayvB/7BJbpZpNOJ8Lrw2OZNEvQxe0vaLn1SuwMcfV7/MNaX8L/T0wmptBFI4YMtDvSBxYDc7w==",
+ "version": "9.3.5",
"dev": true,
+ "license": "ISC",
"dependencies": {
"fs.realpath": "^1.0.0",
- "minimatch": "^7.4.1",
+ "minimatch": "^8.0.2",
"minipass": "^4.2.4",
"path-scurry": "^1.6.1"
},
@@ -2696,15 +2249,14 @@
}
},
"node_modules/rimraf/node_modules/minimatch": {
- "version": "7.4.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.2.tgz",
- "integrity": "sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA==",
+ "version": "8.0.4",
"dev": true,
+ "license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
- "node": ">=10"
+ "node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
@@ -2712,20 +2264,17 @@
},
"node_modules/safe-buffer": {
"version": "5.1.2",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/sax": {
"version": "1.2.4",
- "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
- "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
- "dev": true
+ "dev": true,
+ "license": "ISC"
},
"node_modules/semver": {
- "version": "7.3.8",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz",
- "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==",
+ "version": "7.5.0",
+ "license": "ISC",
"dependencies": {
"lru-cache": "^6.0.0"
},
@@ -2738,31 +2287,21 @@
},
"node_modules/serialize-javascript": {
"version": "6.0.0",
- "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz",
- "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",
"dev": true,
+ "license": "BSD-3-Clause",
"dependencies": {
"randombytes": "^2.1.0"
}
},
- "node_modules/set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
- "dev": true,
- "optional": true
- },
"node_modules/setimmediate": {
"version": "1.0.5",
- "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
- "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/side-channel": {
"version": "1.0.4",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
- "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
@@ -2772,17 +2311,8 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/signal-exit": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
- "dev": true,
- "optional": true
- },
"node_modules/simple-concat": {
"version": "1.0.1",
- "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
- "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
"dev": true,
"funding": [
{
@@ -2798,25 +2328,38 @@
"url": "https://feross.org/support"
}
],
+ "license": "MIT",
"optional": true
},
"node_modules/simple-get": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz",
- "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==",
+ "version": "4.0.1",
"dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
"optional": true,
"dependencies": {
- "decompress-response": "^4.2.0",
+ "decompress-response": "^6.0.0",
"once": "^1.3.1",
"simple-concat": "^1.0.0"
}
},
"node_modules/simple-git": {
- "version": "3.17.0",
- "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.17.0.tgz",
- "integrity": "sha512-JozI/s8jr3nvLd9yn2jzPVHnhVzt7t7QWfcIoDcqRIGN+f1IINGv52xoZti2kkYfoRhhRvzMSNPfogHMp97rlw==",
+ "version": "3.18.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@kwsites/file-exists": "^1.1.1",
"@kwsites/promise-deferred": "^1.1.1",
@@ -2829,56 +2372,51 @@
},
"node_modules/string_decoder": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"safe-buffer": "~5.1.0"
}
},
"node_modules/string-width": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
- "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
+ "version": "4.2.3",
"dev": true,
- "optional": true,
+ "license": "MIT",
"dependencies": {
- "code-point-at": "^1.0.0",
- "is-fullwidth-code-point": "^1.0.0",
- "strip-ansi": "^3.0.0"
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
},
"engines": {
- "node": ">=0.10.0"
+ "node": ">=8"
}
},
"node_modules/strip-ansi": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
- "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "version": "6.0.1",
"dev": true,
- "optional": true,
+ "license": "MIT",
"dependencies": {
- "ansi-regex": "^2.0.0"
+ "ansi-regex": "^5.0.1"
},
"engines": {
- "node": ">=0.10.0"
+ "node": ">=8"
}
},
"node_modules/strip-json-comments": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
- "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
+ "version": "3.1.1",
"dev": true,
- "optional": true,
+ "license": "MIT",
"engines": {
- "node": ">=0.10.0"
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/supports-color": {
"version": "5.5.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
- "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"has-flag": "^3.0.0"
},
@@ -2888,9 +2426,8 @@
},
"node_modules/tar-fs": {
"version": "2.1.1",
- "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
- "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
"chownr": "^1.1.1",
@@ -2901,9 +2438,8 @@
},
"node_modules/tar-stream": {
"version": "2.2.0",
- "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
- "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
"bl": "^4.0.3",
@@ -2917,10 +2453,9 @@
}
},
"node_modules/tar-stream/node_modules/readable-stream": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
- "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "version": "3.6.2",
"dev": true,
+ "license": "MIT",
"optional": true,
"dependencies": {
"inherits": "^2.0.3",
@@ -2933,9 +2468,8 @@
},
"node_modules/tmp": {
"version": "0.2.1",
- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz",
- "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"rimraf": "^3.0.0"
},
@@ -2945,9 +2479,8 @@
},
"node_modules/tmp/node_modules/glob": {
"version": "7.2.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@@ -2965,9 +2498,8 @@
},
"node_modules/tmp/node_modules/rimraf": {
"version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"glob": "^7.1.3"
},
@@ -2980,9 +2512,8 @@
},
"node_modules/to-regex-range": {
"version": "5.0.1",
- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"is-number": "^7.0.0"
},
@@ -2992,9 +2523,8 @@
},
"node_modules/ts-node": {
"version": "10.9.1",
- "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz",
- "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@cspotcode/source-map-support": "^0.8.0",
"@tsconfig/node10": "^1.0.7",
@@ -3033,35 +2563,26 @@
}
}
},
- "node_modules/ts-node/node_modules/acorn-walk": {
- "version": "8.2.0",
- "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz",
- "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==",
+ "node_modules/ts-node/node_modules/diff": {
+ "version": "4.0.2",
"dev": true,
+ "license": "BSD-3-Clause",
"engines": {
- "node": ">=0.4.0"
+ "node": ">=0.3.1"
}
},
- "node_modules/tslib": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz",
- "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==",
- "dev": true
- },
"node_modules/tunnel": {
"version": "0.0.6",
- "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
- "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
}
},
"node_modules/tunnel-agent": {
"version": "0.6.0",
- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"dev": true,
+ "license": "Apache-2.0",
"optional": true,
"dependencies": {
"safe-buffer": "^5.0.1"
@@ -3072,18 +2593,16 @@
},
"node_modules/type-detect": {
"version": "4.0.8",
- "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
- "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=4"
}
},
"node_modules/typed-rest-client": {
- "version": "1.8.6",
- "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.6.tgz",
- "integrity": "sha512-xcQpTEAJw2DP7GqVNECh4dD+riS+C1qndXLfBCJ3xk0kqprtGN491P5KlmrDbKdtuW8NEcP/5ChxiJI3S9WYTA==",
+ "version": "1.8.9",
"dev": true,
+ "license": "MIT",
"dependencies": {
"qs": "^6.9.1",
"tunnel": "0.0.6",
@@ -3092,9 +2611,8 @@
},
"node_modules/typescript": {
"version": "4.9.5",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
- "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
"dev": true,
+ "license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -3105,21 +2623,18 @@
},
"node_modules/uc.micro": {
"version": "1.0.6",
- "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
- "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/underscore": {
- "version": "1.13.1",
- "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.1.tgz",
- "integrity": "sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g==",
- "dev": true
+ "version": "1.13.6",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/url-exist": {
"version": "3.0.1",
- "resolved": "https://registry.npmjs.org/url-exist/-/url-exist-3.0.1.tgz",
- "integrity": "sha512-37KEE2gj60C4hTh2mGkFeqODO2KVG9TOJWpE3sOLEeLGt/p50VxemPiJ30v4m1dcw/wDEGUpYcmBV2e8jM5/FA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"is-url-superb": "^6.1.0",
"ky": "^0.27.0",
@@ -3131,49 +2646,42 @@
},
"node_modules/url-join": {
"version": "4.0.1",
- "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz",
- "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/util": {
"version": "0.10.4",
- "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz",
- "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"inherits": "2.0.3"
}
},
"node_modules/util-deprecate": {
"version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/util/node_modules/inherits": {
"version": "2.0.3",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
- "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==",
- "dev": true
+ "dev": true,
+ "license": "ISC"
},
"node_modules/v8-compile-cache-lib": {
"version": "3.0.1",
- "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
- "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/vscode-jsonrpc": {
"version": "8.1.0",
- "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.1.0.tgz",
- "integrity": "sha512-6TDy/abTQk+zDGYazgbIPc+4JoXdwC8NHU9Pbn4UJP1fehUyZmM4RHp5IthX7A6L5KS30PRui+j+tbbMMMafdw==",
+ "license": "MIT",
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/vscode-languageclient": {
"version": "8.1.0",
- "resolved": "https://registry.npmjs.org/vscode-languageclient/-/vscode-languageclient-8.1.0.tgz",
- "integrity": "sha512-GL4QdbYUF/XxQlAsvYWZRV3V34kOkpRlvV60/72ghHfsYFnS/v2MANZ9P6sHmxFcZKOse8O+L9G7Czg0NUWing==",
+ "license": "MIT",
"dependencies": {
"minimatch": "^5.1.0",
"semver": "^7.3.7",
@@ -3185,16 +2693,14 @@
},
"node_modules/vscode-languageclient/node_modules/brace-expansion": {
"version": "2.0.1",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
+ "license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0"
}
},
"node_modules/vscode-languageclient/node_modules/minimatch": {
"version": "5.1.6",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
- "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
+ "license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
@@ -3204,8 +2710,7 @@
},
"node_modules/vscode-languageserver-protocol": {
"version": "3.17.3",
- "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.3.tgz",
- "integrity": "sha512-924/h0AqsMtA5yK22GgMtCYiMdCOtWTSGgUOkgEDX+wk2b0x4sAfLiO4NxBxqbiVtz7K7/1/RgVrVI0NClZwqA==",
+ "license": "MIT",
"dependencies": {
"vscode-jsonrpc": "8.1.0",
"vscode-languageserver-types": "3.17.3"
@@ -3213,35 +2718,30 @@
},
"node_modules/vscode-languageserver-types": {
"version": "3.17.3",
- "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.3.tgz",
- "integrity": "sha512-SYU4z1dL0PyIMd4Vj8YOqFvHu7Hz/enbWtpfnVbJHU4Nd1YNYx8u0ennumc6h48GQNeOLxmwySmnADouT/AuZA=="
+ "license": "MIT"
},
"node_modules/vscode-oniguruma": {
"version": "1.7.0",
- "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz",
- "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/vscode-textmate": {
"version": "9.0.0",
- "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-9.0.0.tgz",
- "integrity": "sha512-Cl65diFGxz7gpwbav10HqiY/eVYTO1sjQpmRmV991Bj7wAoOAjGQ97PpQcXorDE2Uc4hnGWLY17xme+5t6MlSg==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/web-streams-polyfill": {
"version": "3.2.1",
- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz",
- "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">= 8"
}
},
"node_modules/which": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz",
- "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==",
+ "version": "3.0.1",
"dev": true,
+ "license": "ISC",
"dependencies": {
"isexe": "^2.0.0"
},
@@ -3252,27 +2752,15 @@
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
- "node_modules/wide-align": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
- "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
- "dev": true,
- "optional": true,
- "dependencies": {
- "string-width": "^1.0.2 || 2 || 3 || 4"
- }
- },
"node_modules/workerpool": {
"version": "6.2.1",
- "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz",
- "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==",
- "dev": true
+ "dev": true,
+ "license": "Apache-2.0"
},
"node_modules/wrap-ansi": {
"version": "7.0.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
@@ -3285,20 +2773,10 @@
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
}
},
- "node_modules/wrap-ansi/node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/wrap-ansi/node_modules/ansi-styles": {
"version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
@@ -3311,9 +2789,8 @@
},
"node_modules/wrap-ansi/node_modules/color-convert": {
"version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
},
@@ -3323,106 +2800,89 @@
},
"node_modules/wrap-ansi/node_modules/color-name": {
"version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
"dev": true,
- "engines": {
- "node": ">=8"
- }
+ "license": "MIT"
},
- "node_modules/wrap-ansi/node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "node_modules/wrappy": {
+ "version": "1.0.2",
"dev": true,
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
+ "license": "ISC"
},
- "node_modules/wrap-ansi/node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "node_modules/xml2js": {
+ "version": "0.5.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "ansi-regex": "^5.0.1"
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~11.0.0"
},
"engines": {
- "node": ">=8"
+ "node": ">=4.0.0"
}
},
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
- "dev": true
- },
"node_modules/xmlbuilder": {
"version": "11.0.1",
- "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
- "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=4.0"
}
},
"node_modules/y18n": {
"version": "5.0.8",
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
"dev": true,
+ "license": "ISC",
"engines": {
"node": ">=10"
}
},
"node_modules/yallist": {
"version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
+ "license": "ISC"
},
- "node_modules/yargs-unparser": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz",
- "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==",
+ "node_modules/yargs": {
+ "version": "16.2.0",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "camelcase": "^6.0.0",
- "decamelize": "^4.0.0",
- "flat": "^5.0.2",
- "is-plain-obj": "^2.1.0"
+ "cliui": "^7.0.2",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.0",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^20.2.2"
},
"engines": {
"node": ">=10"
}
},
- "node_modules/yargs-unparser/node_modules/camelcase": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
- "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
+ "node_modules/yargs-parser": {
+ "version": "20.2.4",
"dev": true,
+ "license": "ISC",
"engines": {
"node": ">=10"
+ }
+ },
+ "node_modules/yargs-unparser": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camelcase": "^6.0.0",
+ "decamelize": "^4.0.0",
+ "flat": "^5.0.2",
+ "is-plain-obj": "^2.1.0"
},
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
+ "engines": {
+ "node": ">=10"
}
},
"node_modules/yauzl": {
"version": "2.10.0",
- "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
- "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
"dev": true,
+ "license": "MIT",
"dependencies": {
"buffer-crc32": "~0.2.3",
"fd-slicer": "~1.1.0"
@@ -3430,27 +2890,24 @@
},
"node_modules/yazl": {
"version": "2.5.1",
- "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz",
- "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"buffer-crc32": "~0.2.3"
}
},
"node_modules/yn": {
"version": "3.1.1",
- "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
- "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/yocto-queue": {
"version": "0.1.0",
- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
- "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=10"
},
diff --git a/package.json b/package.json
index e25566a8c..f8b92329e 100644
--- a/package.json
+++ b/package.json
@@ -50,7 +50,7 @@
{
"language": "lflang",
"scopeName": "source.lf",
- "path": "./syntax/lflang.tmLanguage.json",
+ "path": "./syntaxes/lflang.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.c": "c",
"meta.embedded.block.cpp": "cpp",
@@ -151,7 +151,7 @@
"rimraf": "^4.1.2",
"simple-git": "^3.16.1",
"ts-node": "^10.9.1",
- "typescript": "^4.6.5",
+ "typescript": "^4.9.5",
"url-exist": "^3.0.1",
"vscode-oniguruma": "^1.7.0",
"vscode-textmate": "^9.0.0",
diff --git a/src/test/check_highlighting.test.ts b/src/test/check_highlighting.test.ts
index 6c4f65c29..20b5e1e2b 100644
--- a/src/test/check_highlighting.test.ts
+++ b/src/test/check_highlighting.test.ts
@@ -24,7 +24,7 @@ const registry = new vsctm.Registry({
onigLib: vscodeOnigurumaLib,
loadGrammar: async (_: string) => {
const grammarFile = path.join(
- root, "syntax", "lflang.tmLanguage.json"
+ root, "syntaxes", "lflang.tmLanguage.json"
)
const data: any = fs.readFileSync(grammarFile)
return vsctm.parseRawGrammar(data.toString(), grammarFile)
diff --git a/syntax/lflang.tmLanguage.json b/syntaxes/lflang.tmLanguage.json
similarity index 89%
rename from syntax/lflang.tmLanguage.json
rename to syntaxes/lflang.tmLanguage.json
index bdd364014..d1cfef91e 100644
--- a/syntax/lflang.tmLanguage.json
+++ b/syntaxes/lflang.tmLanguage.json
@@ -43,6 +43,9 @@
},
{
"include": "#context-insensitive"
+ },
+ {
+ "include": "#type"
}
]
},
@@ -75,9 +78,6 @@
{
"include": "#timer"
},
- {
- "include": "#type"
- },
{
"include": "#number"
},
@@ -118,10 +118,22 @@
},
"c-target": {
"begin": "(?=\\btarget\\s+C\\b)",
+ "patterns": [{
+ "include": "#c-or-cpp-target"
+ }]
+ },
+ "cpp-target": {
+ "begin": "(?=\\btarget\\s+C?Cpp\\b)",
+ "patterns": [{
+ "include": "#c-or-cpp-target"
+ }]
+ },
+ "c-or-cpp-target": {
"patterns": [
{
- "begin": "(?<=(input|output|action|state).*:)",
- "end": "[\\(;\\n]",
+ "begin": "(?<=(input|state))\\s+\\w+\\s*:",
+ "end": "[\\(;\\n]|(?=\\{=)",
+ "name": "meta.embedded.block.cpp",
"patterns": [
{
"include": "source.cpp"
@@ -132,24 +144,9 @@
]
},
{
- "include": "#post-targetspec"
- },
- {
- "begin": "\\{=(?!=\\})",
- "end": "([<>]?[<>+\\-*/%&\\^|]?=\\})",
- "name": "meta.embedded.block.c",
- "patterns": [{
- "include": "source.cpp"
- }]
- }
- ]
- },
- "cpp-target": {
- "begin": "(?=\\btarget\\s+C?Cpp\\b)",
- "patterns": [
- {
- "begin": "(?<=(input|output|action|state).*:)",
- "end": "[\\(;\\n]",
+ "begin": "(?<=(output|action))\\s+\\w+\\s*:",
+ "end": "[\\(;\\n]|(?=\\{=)",
+ "name": "meta.embedded.block.cpp",
"patterns": [
{
"include": "source.cpp"
@@ -163,8 +160,8 @@
"include": "#post-targetspec"
},
{
- "begin": "\\{=(?!=\\})",
- "end": "([<>]?[<>+\\-*/%&\\^|]?=\\})",
+ "begin": "\\{=",
+ "end": "(([<>]?[<>+\\-*/%&\\^|]?=\\}))",
"name": "meta.embedded.block.cpp",
"patterns": [{
"include": "source.cpp"
@@ -217,10 +214,6 @@
"rs-target": {
"begin": "(?=\\btarget\\s+Rust\\b)",
"patterns": [
- {
- "name": "entity.name.type.lflang",
- "match": "(?<=(input|output|action|state).*:(\\s*))(\\b(\\w+)\\b)"
- },
{
"include": "#post-targetspec"
},
@@ -237,7 +230,7 @@
"target-specification": {
"name": "meta.targetspec.lflang",
"begin": "(?=\\btarget\\b)",
- "end": ";|(?<=}.*)$|(?<=target[^\\{]*)$",
+ "end": "(?<=;)\\s*$|(?<=})\\s*$|(?<=Python)\\s*$|(?<=(CCpp|Rust))\\s*$|(?<=C)\\s*$|(?<=Cpp)\\s*$|(?<=TypeScript)\\s*$",
"patterns": [
{
"include": "#context-insensitive"
@@ -252,17 +245,20 @@
},
{
"name": "variable.parameter.lflang",
- "match": "(?<=(^|,|\\{)(\\s)*)\\b([\\w\\-]+)\\b(?=(\\s)*:)"
+ "match": "(^|(?<=(,|\\{)))\\s*\\b([\\w\\-]+)\\b(?=\\s*:)"
}
]
},
"import-statement": {
"begin": "(?=^\\s*import\\b)",
- "end": ";|(?<=}.*)$|(?<=import[^\\{]*)$",
+ "end": ";|(?<=\")\\s*$",
"patterns": [
{
"include": "#context-insensitive"
},
+ {
+ "include": "#type"
+ },
{
"name": "keyword.control.import.lflang",
"match": "\\b(import)\\b|\\b(as)\\b|\\b(from)\\b"
@@ -301,7 +297,7 @@
},
{
"name": "entity.name.type.lflang",
- "match": "(?<=\\breactor\\b\\s*)(?!at)(?!extends)(\\w+)\\b"
+ "match": "(?<=\\breactor\\b\\s)\\s*(?!at)(?!extends)(\\w+)\\b"
}
]
},
@@ -325,7 +321,7 @@
},
{
"name": "entity.name.function.member.lflang",
- "match": "(?<=\\bmethod\\b\\s+)\\w+\\b"
+ "match": "(?<=\\bmethod\\b)\\s+(\\w+)\\b"
}
]
},
@@ -381,11 +377,11 @@
"patterns": [
{
"name": "entity.name.type.lflang",
- "match": "(?<=(input|output|action|state).*:(\\s*))(\\b([A-Z]\\w*)\\b)"
+ "match": "(?<=:)\\s*(\\b([A-Z]\\w*)\\b)"
},
{
"name": "storage.type.lflang",
- "match": "(?<=(input|output|action|state).*:(\\s*))(\\b(\\w+)\\b)"
+ "match": "(?<=:)\\s*(\\b(\\w+)\\b)"
}
]
},
@@ -422,7 +418,7 @@
{
"name": "string.quoted.double.lflang",
"begin": "\"",
- "end": "(?<=(\\\\.|[^\"\\\\])*)(\"|$)",
+ "end": "(\"|$)",
"patterns": [{
"include": "#string-helper"
}]
@@ -430,7 +426,7 @@
{
"name": "string.quoted.single.lflang",
"begin": "'",
- "end": "(?<=(\\\\.|[^'\\\\])*)('|$)",
+ "end": "('|$)",
"patterns": [{
"include": "#string-helper"
}]
@@ -477,7 +473,7 @@
},
{
"name": "entity.name.type.lflang",
- "match": "(?<=\\s*=\\s*new\\s*(\\[[^\\]]*\\])?\\s+)\\w+\\b"
+ "match": "(?<=new\\s)\\s*(\\[[^\\]]*\\])?\\s*(\\w+)\\b"
}
]
},
@@ -493,7 +489,7 @@
},
{
"name": "variable.other.lflang",
- "match": "(?<=\\w+((\\.)|(::)))(\\b\\w+\\b)"
+ "match": "(?<=((\\w\\.)|(::)))(\\b\\w+\\b)"
}
]
},
diff --git a/test/known-good/C/src/ActionDelay.txt b/test/known-good/C/src/ActionDelay.txt
index 2535f0f42..f8cdc7926 100644
--- a/test/known-good/C/src/ActionDelay.txt
+++ b/test/known-good/C/src/ActionDelay.txt
@@ -2,9 +2,9 @@
target C
reactor GeneratedDelay {
- input y_in: int
- output y_out: int
- state y_state: int(0)
+ input y_in: int
+ output y_out: int
+ state y_state: int(0)
logical action act(100 msec)
reaction(y_in) -> act {=
@@ -16,13 +16,13 @@
}
reactor Source {
- output out: int
+ output out: int
reaction(startup) -> out {= lf_set(out, 1); =}
}
reactor Sink {
- input in: int
+ input in: int
reaction(in) {=
interval_t elapsed_logical = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/ActionIsPresent.txt b/test/known-good/C/src/ActionIsPresent.txt
index 6f07cdf4a..fade84e8a 100644
--- a/test/known-good/C/src/ActionIsPresent.txt
+++ b/test/known-good/C/src/ActionIsPresent.txt
@@ -1,9 +1,9 @@
target C
-main reactor ActionIsPresent(offset: time(1 nsec), period: time(500 msec)) {
+main reactor ActionIsPresent(offset: time(1 nsec), period: time(500 msec)) {
logical action a
- state success: bool(false)
+ state success: bool(false)
reaction(startup, a) -> a {=
if (!a->is_present) {
diff --git a/test/known-good/C/src/ActionWithNoReaction.txt b/test/known-good/C/src/ActionWithNoReaction.txt
index 17382a542..9cd913bbd 100644
--- a/test/known-good/C/src/ActionWithNoReaction.txt
+++ b/test/known-good/C/src/ActionWithNoReaction.txt
@@ -2,14 +2,14 @@
target C {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor foo {
- input x: int
- output y: int
- logical action a: int*
+ input x: int
+ output y: int
+ logical action a: int*
reaction(x) -> y, a {=
lf_set(y, 2*x->value);
@@ -18,7 +18,7 @@
}
reactor print {
- input x: int
+ input x: int
reaction(x) {=
printf("Result is %d\n", x->value);
diff --git a/test/known-good/C/src/After.txt b/test/known-good/C/src/After.txt
index be2e1fc68..07dfc8630 100644
--- a/test/known-good/C/src/After.txt
+++ b/test/known-good/C/src/After.txt
@@ -1,21 +1,21 @@
target C {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
reactor foo {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= lf_set(y, 2*x->value); =}
}
reactor print {
- state expected_time: time(10 msec)
- state received: int(0)
- input x: int
+ state expected_time: time(10 msec)
+ state received: int(0)
+ input x: int
reaction(x) {=
self->received++;
diff --git a/test/known-good/C/src/AfterCycles.txt b/test/known-good/C/src/AfterCycles.txt
index 6c0d77b54..df61337e4 100644
--- a/test/known-good/C/src/AfterCycles.txt
+++ b/test/known-good/C/src/AfterCycles.txt
@@ -3,20 +3,20 @@
target C
reactor Source {
- output out: unsigned
+ output out: unsigned
reaction(startup) -> out {= lf_set(out, 1); =}
}
reactor Work {
- input in: unsigned
- output out: unsigned
+ input in: unsigned
+ output out: unsigned
reaction(in) -> out {= lf_set(out, in->value); =}
}
main reactor AfterCycles {
- state count: int(0)
+ state count: int(0)
s = new Source()
w0 = new Work()
w1 = new Work()
diff --git a/test/known-good/C/src/AfterOverlapped.txt b/test/known-good/C/src/AfterOverlapped.txt
index aa1a8e183..42eeb585f 100644
--- a/test/known-good/C/src/AfterOverlapped.txt
+++ b/test/known-good/C/src/AfterOverlapped.txt
@@ -1,15 +1,15 @@
target C {
- fast: true,
- timeout: 5 sec
+ fast: true,
+ timeout: 5 sec
}
import Count from "lib/Count.lf"
reactor Test {
- input c: int
- state i: int(0)
- state received: int(0)
+ input c: int
+ state i: int(0)
+ state received: int(0)
reaction(c) {=
self->received++;
diff --git a/test/known-good/C/src/AfterZero.txt b/test/known-good/C/src/AfterZero.txt
index bfdfbaf58..cc5ffe7f5 100644
--- a/test/known-good/C/src/AfterZero.txt
+++ b/test/known-good/C/src/AfterZero.txt
@@ -1,21 +1,21 @@
target C {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
reactor foo {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= SET(y, 2*x->value); =}
}
reactor print {
- state expected_time: time(0)
- state received: int(0)
- input x: int
+ state expected_time: time(0)
+ state received: int(0)
+ input x: int
reaction(x) {=
self->received++;
diff --git a/test/known-good/C/src/Alignment.txt b/test/known-good/C/src/Alignment.txt
index 30757d297..37dd73d57 100644
--- a/test/known-good/C/src/Alignment.txt
+++ b/test/known-good/C/src/Alignment.txt
@@ -1,23 +1,23 @@
target C {
- logging: LOG,
- timeout: 1 sec
+ logging: LOG,
+ timeout: 1 sec
}
reactor Source {
- output out: int
- state count: int(1)
+ output out: int
+ state count: int(1)
timer t(0, 100 msec)
reaction(t) -> out {= lf_set(out, self->count++); =}
}
reactor Sieve {
- input in: int
- output out: bool
- state primes: int*({= NULL =})
- state last_prime: int(0)
+ input in: int
+ output out: bool
+ state primes: int*({= NULL =})
+ state last_prime: int(0)
reaction(startup) {=
@@ -72,9 +72,9 @@
}
reactor Destination {
- input ok: bool
- input in: int
- state last_invoked: tag_t({= NEVER_TAG_INITIALIZER =})
+ input ok: bool
+ input in: int
+ state last_invoked: tag_t({= NEVER_TAG_INITIALIZER =})
reaction(ok, in) {=
if (ok->is_present && in->is_present) {
diff --git a/test/known-good/C/src/ArrayAsParameter.txt b/test/known-good/C/src/ArrayAsParameter.txt
index 53815a7cd..63ee33c1e 100644
--- a/test/known-good/C/src/ArrayAsParameter.txt
+++ b/test/known-good/C/src/ArrayAsParameter.txt
@@ -3,9 +3,9 @@
target C
-reactor Source(sequence: int[](0, 1, 2), n_sequence: int(3)) {
- output out: int
- state count: int(0)
+reactor Source(sequence: int[](0, 1, 2), n_sequence: int(3)) {
+ output out: int
+ state count: int(0)
logical action next
reaction(startup, next) -> out, next {=
@@ -18,9 +18,9 @@
}
reactor Print {
- input in: int
- state count: int(1)
- state received: int(0)
+ input in: int
+ state count: int(1)
+ state received: int(0)
reaction(in) {=
self->received++;
diff --git a/test/known-good/C/src/ArrayAsType.txt b/test/known-good/C/src/ArrayAsType.txt
index 16b02cff7..8e0b7386d 100644
--- a/test/known-good/C/src/ArrayAsType.txt
+++ b/test/known-good/C/src/ArrayAsType.txt
@@ -3,7 +3,7 @@
target C
reactor Source {
- output out: int[3]
+ output out: int[3]
reaction(startup) -> out {=
out->value[0] = 0;
@@ -13,8 +13,8 @@
=}
}
-reactor Print(scale: int(1)) {
- input in: int[3]
+reactor Print(scale: int(1)) {
+ input in: int[3]
reaction(in) {=
int count = 0;
diff --git a/test/known-good/C/src/ArrayFree.txt b/test/known-good/C/src/ArrayFree.txt
index 6d9f87edc..fcbb955cc 100644
--- a/test/known-good/C/src/ArrayFree.txt
+++ b/test/known-good/C/src/ArrayFree.txt
@@ -3,15 +3,15 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
import Source, Print from "ArrayPrint.lf"
import Scale from "ArrayScale.lf"
-reactor Free(scale: int(2), size: int(3)) {
- mutable input in: int[]
+reactor Free(scale: int(2), size: int(3)) {
+ mutable input in: int[]
reaction(in) {=
for(int i = 0; i < self->size; i++) {
diff --git a/test/known-good/C/src/ArrayFreeMultiple.txt b/test/known-good/C/src/ArrayFreeMultiple.txt
index 886321039..6497c0f13 100644
--- a/test/known-good/C/src/ArrayFreeMultiple.txt
+++ b/test/known-good/C/src/ArrayFreeMultiple.txt
@@ -3,16 +3,16 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
import Scale from "ArrayScale.lf"
import Print from "ArrayPrint.lf"
reactor Source {
- output out: int[]
- state c: int(0)
+ output out: int[]
+ state c: int(0)
timer t(0, 1 sec)
reaction(t) -> out {=
@@ -26,8 +26,8 @@
=}
}
-reactor Free(scale: int(2)) {
- mutable input in: int[]
+reactor Free(scale: int(2)) {
+ mutable input in: int[]
reaction(in) {=
for(int i = 0; i < in->length; i++) {
diff --git a/test/known-good/C/src/ArrayParallel.txt b/test/known-good/C/src/ArrayParallel.txt
index f5ad826cf..bdb6dcc9f 100644
--- a/test/known-good/C/src/ArrayParallel.txt
+++ b/test/known-good/C/src/ArrayParallel.txt
@@ -2,8 +2,8 @@
target C {
- timeout: 3 sec,
- fast: true
+ timeout: 3 sec,
+ fast: true
}
import Scale from "ArrayScale.lf"
diff --git a/test/known-good/C/src/ArrayPrint.txt b/test/known-good/C/src/ArrayPrint.txt
index eb23f617b..363aace29 100644
--- a/test/known-good/C/src/ArrayPrint.txt
+++ b/test/known-good/C/src/ArrayPrint.txt
@@ -2,13 +2,13 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
-reactor Source(size: int(3)) {
- output out: int[]
- state count: int(0)
+reactor Source(size: int(3)) {
+ output out: int[]
+ state count: int(0)
timer t(0, 1 sec)
reaction(t) -> out {=
@@ -26,9 +26,9 @@
}
-reactor Print(scale: int(1), size: int(3)) {
- input in: int[]
- state count: int(0)
+reactor Print(scale: int(1), size: int(3)) {
+ input in: int[]
+ state count: int(0)
reaction(in) {=
bool failed = false;
diff --git a/test/known-good/C/src/ArrayScale.txt b/test/known-good/C/src/ArrayScale.txt
index f6a531147..ed0751997 100644
--- a/test/known-good/C/src/ArrayScale.txt
+++ b/test/known-good/C/src/ArrayScale.txt
@@ -3,15 +3,15 @@
target C {
- timeout: 3 sec,
- fast: true
+ timeout: 3 sec,
+ fast: true
}
import Print, Source from "ArrayPrint.lf"
-reactor Scale(scale: int(2)) {
- mutable input in: int[]
- output out: int[]
+reactor Scale(scale: int(2)) {
+ mutable input in: int[]
+ output out: int[]
reaction(in) -> out {=
for(int i = 0; i < in->length; i++) {
diff --git a/test/known-good/C/src/CharLiteralInitializer.txt b/test/known-good/C/src/CharLiteralInitializer.txt
index b8241bff9..fd7875f3f 100644
--- a/test/known-good/C/src/CharLiteralInitializer.txt
+++ b/test/known-good/C/src/CharLiteralInitializer.txt
@@ -2,7 +2,7 @@
target C
main reactor CharLiteralInitializer {
- state c: char('x')
+ state c: char('x')
reaction(startup) {=
if (self->c != 'x') {
diff --git a/test/known-good/C/src/Composition.txt b/test/known-good/C/src/Composition.txt
index 3cf6ba43c..be3ee9f72 100644
--- a/test/known-good/C/src/Composition.txt
+++ b/test/known-good/C/src/Composition.txt
@@ -1,14 +1,14 @@
target C {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
-reactor Source(period: time(2 sec)) {
- output y: int
+reactor Source(period: time(2 sec)) {
+ output y: int
timer t(1 sec, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -18,8 +18,8 @@
}
reactor Test {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
(self->count)++;
diff --git a/test/known-good/C/src/CompositionAfter.txt b/test/known-good/C/src/CompositionAfter.txt
index ed66bb9a2..7c828a050 100644
--- a/test/known-good/C/src/CompositionAfter.txt
+++ b/test/known-good/C/src/CompositionAfter.txt
@@ -1,14 +1,14 @@
target C {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
-reactor Source(period: time(2 sec)) {
- output y: int
+reactor Source(period: time(2 sec)) {
+ output y: int
timer t(1 sec, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -17,8 +17,8 @@
}
reactor Test {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
(self->count)++;
@@ -30,7 +30,7 @@
=}
}
-main reactor CompositionAfter(delay: time(5 sec)) {
+main reactor CompositionAfter(delay: time(5 sec)) {
s = new Source()
d = new Test()
s.y -> d.x after delay
diff --git a/test/known-good/C/src/CompositionGain.txt b/test/known-good/C/src/CompositionGain.txt
index 91e93b8e4..889447b2c 100644
--- a/test/known-good/C/src/CompositionGain.txt
+++ b/test/known-good/C/src/CompositionGain.txt
@@ -2,8 +2,8 @@
target C
reactor Gain {
- input gainin: int
- output y: int
+ input gainin: int
+ output y: int
reaction(gainin) -> y {=
printf("Gain received %d\n", gainin->value);
@@ -12,8 +12,8 @@
}
reactor Wrapper {
- input x: int
- output y: int
+ input x: int
+ output y: int
gain = new Gain()
x -> gain.gainin
gain.y -> y
diff --git a/test/known-good/C/src/CompositionInheritance.txt b/test/known-good/C/src/CompositionInheritance.txt
index 97b4b2120..08262e554 100644
--- a/test/known-good/C/src/CompositionInheritance.txt
+++ b/test/known-good/C/src/CompositionInheritance.txt
@@ -1,15 +1,15 @@
target C {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
-reactor Source(period: time(2 sec)) {
- input foo: int
- output y: int
+reactor Source(period: time(2 sec)) {
+ input foo: int
+ output y: int
timer t(1 sec, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
printf("Hello World. At time %lld, my count is: %d.\n", lf_time_logical_elapsed(), self->count);
@@ -18,7 +18,7 @@
}
reactor SourceExtended extends Source {
- output y2: int
+ output y2: int
timer t2(1 sec, 3 sec)
reaction(t2) -> y2 {=
@@ -29,8 +29,8 @@
}
reactor Test {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
(self->count)++;
diff --git a/test/known-good/C/src/CountSelf.txt b/test/known-good/C/src/CountSelf.txt
index 4bd10050f..6e28b2be5 100644
--- a/test/known-good/C/src/CountSelf.txt
+++ b/test/known-good/C/src/CountSelf.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
import TestCount from "lib/TestCount.lf"
-reactor CountSelf2(delay: time(100 msec)) {
- output out: int
- logical action a: int
+reactor CountSelf2(delay: time(100 msec)) {
+ output out: int
+ logical action a: int
reaction(startup) -> a, out {=
lf_set(out, 0);
diff --git a/test/known-good/C/src/CountTest.txt b/test/known-good/C/src/CountTest.txt
index 473ca59da..1ff64c2ce 100644
--- a/test/known-good/C/src/CountTest.txt
+++ b/test/known-good/C/src/CountTest.txt
@@ -1,7 +1,7 @@
target C {
- timeout: 3 sec,
- tracing: true,
- fast: true
+ timeout: 3 sec,
+ tracing: true,
+ fast: true
}
import Count from "lib/Count.lf"
diff --git a/test/known-good/C/src/DanglingOutput.txt b/test/known-good/C/src/DanglingOutput.txt
index 3f2d353bc..1a5c20548 100644
--- a/test/known-good/C/src/DanglingOutput.txt
+++ b/test/known-good/C/src/DanglingOutput.txt
@@ -3,15 +3,15 @@
target C
reactor Source {
- output out: int
+ output out: int
timer t
reaction(t) -> out {= lf_set(out, 1); =}
}
reactor Gain {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
printf("Received %d.\n", in->value);
diff --git a/test/known-good/C/src/Deadline.txt b/test/known-good/C/src/Deadline.txt
index 3630cc062..425217a56 100644
--- a/test/known-good/C/src/Deadline.txt
+++ b/test/known-good/C/src/Deadline.txt
@@ -2,13 +2,13 @@
target C {
- timeout: 6 sec
+ timeout: 6 sec
}
-reactor Source(period: time(3 sec)) {
- output y: int
+reactor Source(period: time(3 sec)) {
+ output y: int
timer t(0, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
if (2 * (self->count / 2) != self->count) {
@@ -22,9 +22,9 @@
=}
}
-reactor Destination(timeout: time(1 sec)) {
- input x: int
- state count: int(0)
+reactor Destination(timeout: time(1 sec)) {
+ input x: int
+ state count: int(0)
reaction(x) {=
printf("Destination receives: %d\n", x->value);
diff --git a/test/known-good/C/src/DeadlineAnytime.txt b/test/known-good/C/src/DeadlineAnytime.txt
index 5a21eed94..e51a8a56b 100644
--- a/test/known-good/C/src/DeadlineAnytime.txt
+++ b/test/known-good/C/src/DeadlineAnytime.txt
@@ -2,7 +2,7 @@
target C
reactor A {
- state i: int
+ state i: int
logical action a
reaction(startup) -> a {=
diff --git a/test/known-good/C/src/DeadlineHandledAbove.txt b/test/known-good/C/src/DeadlineHandledAbove.txt
index 24e0d7717..3c9beddb7 100644
--- a/test/known-good/C/src/DeadlineHandledAbove.txt
+++ b/test/known-good/C/src/DeadlineHandledAbove.txt
@@ -2,9 +2,9 @@
target C
-reactor Deadline(threshold: time(100 msec)) {
- input x: int
- output deadline_violation: bool
+reactor Deadline(threshold: time(100 msec)) {
+ input x: int
+ output deadline_violation: bool
reaction(x) -> deadline_violation {=
printf("ERROR: Deadline violation was not detected!\n");
@@ -16,7 +16,7 @@
}
main reactor DeadlineHandledAbove {
- state violation_detected: bool(false)
+ state violation_detected: bool(false)
d = new Deadline(threshold = 10 msec)
reaction(startup) -> d.x {=
diff --git a/test/known-good/C/src/DeadlineInherited.txt b/test/known-good/C/src/DeadlineInherited.txt
index eb7487b7b..589ad0b7d 100644
--- a/test/known-good/C/src/DeadlineInherited.txt
+++ b/test/known-good/C/src/DeadlineInherited.txt
@@ -1,7 +1,7 @@
target C {
- timeout: 1 sec,
- threading: false
+ timeout: 1 sec,
+ threading: false
}
preamble {= int global_cnt = 0; =}
diff --git a/test/known-good/C/src/DeadlinePriority.txt b/test/known-good/C/src/DeadlinePriority.txt
index 8b3051188..b14ddaeaf 100644
--- a/test/known-good/C/src/DeadlinePriority.txt
+++ b/test/known-good/C/src/DeadlinePriority.txt
@@ -1,7 +1,7 @@
target C {
- timeout: 1 sec,
- threading: false
+ timeout: 1 sec,
+ threading: false
}
preamble {= int global_cnt = 0; =}
diff --git a/test/known-good/C/src/DeadlineWithAfterDelay.txt b/test/known-good/C/src/DeadlineWithAfterDelay.txt
index 7ca4a28f0..b057d594f 100644
--- a/test/known-good/C/src/DeadlineWithAfterDelay.txt
+++ b/test/known-good/C/src/DeadlineWithAfterDelay.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 1 sec,
- threading: false
+ timeout: 1 sec,
+ threading: false
}
preamble {= int global_cnt = 0; =}
reactor Source {
- output out: int
+ output out: int
timer t(0 msec, 100 msec)
reaction(t) -> out {=
@@ -17,7 +17,7 @@
}
reactor SinkWithDeadline {
- input in: int
+ input in: int
reaction(in) {=
global_cnt--;
diff --git a/test/known-good/C/src/DeadlineWithBanks.txt b/test/known-good/C/src/DeadlineWithBanks.txt
index d2199753b..d6a357ea1 100644
--- a/test/known-good/C/src/DeadlineWithBanks.txt
+++ b/test/known-good/C/src/DeadlineWithBanks.txt
@@ -4,16 +4,16 @@
target C {
- threading: false,
- timeout: 300 msec,
- build-type: Debug
+ threading: false,
+ timeout: 300 msec,
+ build-type: Debug
}
preamble {= volatile int global_cnt = 0; =}
-reactor Bank(bank_index: int(0)) {
+reactor Bank(bank_index: int(0)) {
timer t(0, 100 msec)
- output out: int
+ output out: int
reaction(t) -> out {=
int exp_cnt;
@@ -46,14 +46,14 @@
=}
}
-reactor Sink(dead: time(0)) {
- input in: int
+reactor Sink(dead: time(0)) {
+ input in: int
reaction(in) {= =} deadline(dead) {= =}
}
main reactor {
- rp = new[4] Bank()
+ rp = new[4] Bank()
s1 = new Sink(dead = 14 msec)
s2 = new Sink(dead = 12 msec)
s3 = new Sink(dead = 11 msec)
diff --git a/test/known-good/C/src/DeadlineZero.txt b/test/known-good/C/src/DeadlineZero.txt
index 5c261cf0f..f74c6d47c 100644
--- a/test/known-good/C/src/DeadlineZero.txt
+++ b/test/known-good/C/src/DeadlineZero.txt
@@ -1,11 +1,11 @@
target C {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Detector {
- input trigger: int
- state cnt: int(0)
+ input trigger: int
+ state cnt: int(0)
reaction(trigger) {=
printf("ERROR: failed to detect zero-duration deadline at iteration %d.\n", self->cnt);
@@ -14,7 +14,7 @@
}
reactor Generator {
- output pulse: int
+ output pulse: int
timer t(0, 100 msec)
reaction(t) -> pulse {= lf_set(pulse, 0); =}
diff --git a/test/known-good/C/src/DelayArray.txt b/test/known-good/C/src/DelayArray.txt
index 13b125a22..c5688d2aa 100644
--- a/test/known-good/C/src/DelayArray.txt
+++ b/test/known-good/C/src/DelayArray.txt
@@ -1,13 +1,13 @@
target C {
- build-type: RelWithDebInfo
+ build-type: RelWithDebInfo
}
-reactor DelayPointer(delay: time(100 msec)) {
- input in: int[]
- output out: int[]
- logical action a: int[]
+reactor DelayPointer(delay: time(100 msec)) {
+ input in: int[]
+ output out: int[]
+ logical action a: int[]
reaction(in) -> a {= lf_schedule_token(a, self->delay, in->token); =}
@@ -15,7 +15,7 @@
}
reactor Source {
- output out: int[]
+ output out: int[]
reaction(startup) -> out {=
@@ -30,8 +30,8 @@
=}
}
-reactor Print(scale: int(1)) {
- input in: int[]
+reactor Print(scale: int(1)) {
+ input in: int[]
reaction(in) {=
int count = 0;
diff --git a/test/known-good/C/src/DelayArrayWithAfter.txt b/test/known-good/C/src/DelayArrayWithAfter.txt
index fd532ba27..365d2e4fc 100644
--- a/test/known-good/C/src/DelayArrayWithAfter.txt
+++ b/test/known-good/C/src/DelayArrayWithAfter.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Source {
- output out: int[]
- state iteration: int(1)
+ output out: int[]
+ state iteration: int(1)
timer t(0, 1 sec)
reaction(t) -> out {=
@@ -23,10 +23,10 @@
=}
}
-reactor Print(scale: int(1)) {
- input in: int[]
- state iteration: int(1)
- state inputs_received: int(0)
+reactor Print(scale: int(1)) {
+ input in: int[]
+ state iteration: int(1)
+ state inputs_received: int(0)
reaction(in) {=
self->inputs_received++;
diff --git a/test/known-good/C/src/DelayInt.txt b/test/known-good/C/src/DelayInt.txt
index fbe81d169..326c942f2 100644
--- a/test/known-good/C/src/DelayInt.txt
+++ b/test/known-good/C/src/DelayInt.txt
@@ -1,10 +1,10 @@
target C
-reactor Delay(delay: time(100 msec)) {
- input in: int
- output out: int
- logical action a: int
+reactor Delay(delay: time(100 msec)) {
+ input in: int
+ output out: int
+ logical action a: int
reaction(a) -> out {=
if (a->has_value && a->is_present) lf_set(out, a->value);
@@ -17,9 +17,9 @@
}
reactor Test {
- input in: int
- state start_time: time(0)
- state received_value: bool(false)
+ input in: int
+ state start_time: time(0)
+ state received_value: bool(false)
reaction(startup) {=
diff --git a/test/known-good/C/src/DelayPointer.txt b/test/known-good/C/src/DelayPointer.txt
index 50013f59d..7f7c2f1c6 100644
--- a/test/known-good/C/src/DelayPointer.txt
+++ b/test/known-good/C/src/DelayPointer.txt
@@ -1,10 +1,10 @@
target C
-reactor DelayPointer2(delay: time(100 msec)) {
- input in: int*
- output out: int*
- logical action a: int*
+reactor DelayPointer2(delay: time(100 msec)) {
+ input in: int*
+ output out: int*
+ logical action a: int*
reaction(a) -> out {=
@@ -20,7 +20,7 @@
}
reactor Source {
- output out: int*
+ output out: int*
reaction(startup) -> out {=
SET_NEW(out);
@@ -29,9 +29,9 @@
}
reactor Test {
- input in: int*
- state start_time: time(0)
- state received_value: bool(false)
+ input in: int*
+ state start_time: time(0)
+ state received_value: bool(false)
reaction(startup) {=
diff --git a/test/known-good/C/src/DelayString.txt b/test/known-good/C/src/DelayString.txt
index d9f0f6be5..adbe8bdb6 100644
--- a/test/known-good/C/src/DelayString.txt
+++ b/test/known-good/C/src/DelayString.txt
@@ -2,10 +2,10 @@
target C
-reactor DelayString2(delay: time(100 msec)) {
- input in: string
- output out: string
- logical action a: string
+reactor DelayString2(delay: time(100 msec)) {
+ input in: string
+ output out: string
+ logical action a: string
reaction(a) -> out {= lf_set(out, a->value); =}
@@ -16,8 +16,8 @@
}
reactor Test {
- input in: string
- state start_time: time(0)
+ input in: string
+ state start_time: time(0)
reaction(in) {=
printf("Received: %s.\n", in->value);
diff --git a/test/known-good/C/src/DelayStruct.txt b/test/known-good/C/src/DelayStruct.txt
index ac220d738..aa3d33bbc 100644
--- a/test/known-good/C/src/DelayStruct.txt
+++ b/test/known-good/C/src/DelayStruct.txt
@@ -1,16 +1,16 @@
target C {
- files: ["include/hello.h"]
+ files: ["include/hello.h"]
}
preamble {=
=}
-reactor DelayPointer(delay: time(100 msec)) {
- input in: hello_t*
- output out: hello_t*
- logical action a: hello_t*
+reactor DelayPointer(delay: time(100 msec)) {
+ input in: hello_t*
+ output out: hello_t*
+ logical action a: hello_t*
reaction(a) -> out {=
@@ -26,7 +26,7 @@
}
reactor Source {
- output out: hello_t*
+ output out: hello_t*
reaction(startup) -> out {=
@@ -38,8 +38,8 @@
=}
}
-reactor Print(expected: int(42)) {
- input in: hello_t*
+reactor Print(expected: int(42)) {
+ input in: hello_t*
reaction(in) {=
printf("Received: name = %s, value = %d\n", in->value->name, in->value->value);
diff --git a/test/known-good/C/src/DelayStructWithAfter.txt b/test/known-good/C/src/DelayStructWithAfter.txt
index a9afeafc0..de24824fd 100644
--- a/test/known-good/C/src/DelayStructWithAfter.txt
+++ b/test/known-good/C/src/DelayStructWithAfter.txt
@@ -1,6 +1,6 @@
target C {
- files: include/hello.h
+ files: include/hello.h
}
preamble {=
@@ -8,7 +8,7 @@
=}
reactor Source {
- output out: hello_t*
+ output out: hello_t*
reaction(startup) -> out {=
@@ -20,8 +20,8 @@
=}
}
-reactor Print(expected: int(42)) {
- input in: hello_t*
+reactor Print(expected: int(42)) {
+ input in: hello_t*
reaction(in) {=
printf("Received: name = %s, value = %d\n", in->value->name, in->value->value);
diff --git a/test/known-good/C/src/DelayStructWithAfterOverlapped.txt b/test/known-good/C/src/DelayStructWithAfterOverlapped.txt
index 5cc0b40b6..aa8a330ab 100644
--- a/test/known-good/C/src/DelayStructWithAfterOverlapped.txt
+++ b/test/known-good/C/src/DelayStructWithAfterOverlapped.txt
@@ -1,8 +1,8 @@
target C {
- timeout: 5 sec,
- fast: true,
- files: ["include/hello.h"]
+ timeout: 5 sec,
+ fast: true,
+ files: ["include/hello.h"]
}
preamble {=
@@ -10,9 +10,9 @@
=}
reactor Source {
- output out: hello_t*
+ output out: hello_t*
timer t(0, 1 sec)
- state s: int(0)
+ state s: int(0)
reaction(t) -> out {=
self->s++;
@@ -26,8 +26,8 @@
}
reactor Print {
- input in: hello_t*
- state s: int(0)
+ input in: hello_t*
+ state s: int(0)
reaction(in) {=
self->s++;
diff --git a/test/known-good/C/src/DelayedAction.txt b/test/known-good/C/src/DelayedAction.txt
index c1b666611..583fed83c 100644
--- a/test/known-good/C/src/DelayedAction.txt
+++ b/test/known-good/C/src/DelayedAction.txt
@@ -1,12 +1,12 @@
target C {
- fast: true,
- timeout: 5 sec
+ fast: true,
+ timeout: 5 sec
}
main reactor DelayedAction {
timer t(0, 1 sec)
logical action a
- state count: int(0)
+ state count: int(0)
reaction(t) -> a {= lf_schedule(a, MSEC(100)); =}
diff --git a/test/known-good/C/src/DelayedReaction.txt b/test/known-good/C/src/DelayedReaction.txt
index 674333716..987c3aa97 100644
--- a/test/known-good/C/src/DelayedReaction.txt
+++ b/test/known-good/C/src/DelayedReaction.txt
@@ -2,14 +2,14 @@
target C
reactor Source {
- output out: int
+ output out: int
timer t
reaction(t) -> out {= lf_set(out, 1); =}
}
reactor Sink {
- input in: int
+ input in: int
reaction(in) {=
interval_t elapsed = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/Determinism.txt b/test/known-good/C/src/Determinism.txt
index f92801ced..4219c148b 100644
--- a/test/known-good/C/src/Determinism.txt
+++ b/test/known-good/C/src/Determinism.txt
@@ -1,15 +1,15 @@
target C
reactor Source {
- output y: int
+ output y: int
timer t
reaction(t) -> y {= lf_set(y, 1); =}
}
reactor Destination {
- input x: int
- input y: int
+ input x: int
+ input y: int
reaction(x, y) {=
int sum = 0;
@@ -28,8 +28,8 @@
}
reactor Pass {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= lf_set(y, x->value); =}
}
diff --git a/test/known-good/C/src/DoubleInvocation.txt b/test/known-good/C/src/DoubleInvocation.txt
index dc4d07d60..56c9a261c 100644
--- a/test/known-good/C/src/DoubleInvocation.txt
+++ b/test/known-good/C/src/DoubleInvocation.txt
@@ -6,14 +6,14 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Ball {
- output position: int
- output velocity: int
- state p: int(200)
+ output position: int
+ output velocity: int
+ state p: int(200)
timer trigger(0, 1 sec)
reaction(trigger) -> position, velocity {=
@@ -24,9 +24,9 @@
}
reactor Print {
- input velocity: int
- input position: int
- state previous: int(-1)
+ input velocity: int
+ input position: int
+ state previous: int(-1)
reaction(startup) {=
printf("####### Print startup\n");
diff --git a/test/known-good/C/src/DoublePort.txt b/test/known-good/C/src/DoublePort.txt
index 0181b6013..f68f1797e 100644
--- a/test/known-good/C/src/DoublePort.txt
+++ b/test/known-good/C/src/DoublePort.txt
@@ -6,16 +6,16 @@
target C {
- timeout: 900 msec,
- fast: true
+ timeout: 900 msec,
+ fast: true
}
import Count from "lib/Count.lf"
reactor CountMicrostep {
- state count: int(1)
- output out: int
- logical action act: int
+ state count: int(1)
+ output out: int
+ logical action act: int
timer t(0, 1 sec)
reaction(t) -> act {= lf_schedule_int(act, 0, self->count++); =}
@@ -24,8 +24,8 @@
}
reactor Print {
- input in: int
- input in2: int
+ input in: int
+ input in2: int
reaction(in, in2) {=
interval_t elapsed_time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/DoubleReaction.txt b/test/known-good/C/src/DoubleReaction.txt
index 1c7743b60..007e4be0f 100644
--- a/test/known-good/C/src/DoubleReaction.txt
+++ b/test/known-good/C/src/DoubleReaction.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -17,9 +17,9 @@
}
reactor Destination {
- input x: int
- input w: int
- state s: int(2)
+ input x: int
+ input w: int
+ state s: int(2)
reaction(x, w) {=
int sum = 0;
diff --git a/test/known-good/C/src/DoubleTrigger.txt b/test/known-good/C/src/DoubleTrigger.txt
index 38afe27ab..74c89b160 100644
--- a/test/known-good/C/src/DoubleTrigger.txt
+++ b/test/known-good/C/src/DoubleTrigger.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
main reactor DoubleTrigger {
timer t1
timer t2
- state s: int(0)
+ state s: int(0)
reaction(t1, t2) {=
self->s++;
diff --git a/test/known-good/C/src/FloatLiteral.txt b/test/known-good/C/src/FloatLiteral.txt
index 76c965854..b847d906d 100644
--- a/test/known-good/C/src/FloatLiteral.txt
+++ b/test/known-good/C/src/FloatLiteral.txt
@@ -6,10 +6,10 @@
=}
- state N: double(6.0221409e+23)
- state charge: double(-1.6021766E-19)
- state minus_epsilon: double(-.01e0)
- state expected: double(.964853323188E5)
+ state N: double(6.0221409e+23)
+ state charge: double(-1.6021766E-19)
+ state minus_epsilon: double(-.01e0)
+ state expected: double(.964853323188E5)
reaction(startup) {=
double F = - self->N * self->charge;
diff --git a/test/known-good/C/src/Gain.txt b/test/known-good/C/src/Gain.txt
index e7be35643..2fcd73693 100644
--- a/test/known-good/C/src/Gain.txt
+++ b/test/known-good/C/src/Gain.txt
@@ -1,16 +1,16 @@
target C
-reactor Scale(scale: int(2)) {
- input x: int
- output y: int
+reactor Scale(scale: int(2)) {
+ input x: int
+ output y: int
reaction(x) -> y {= lf_set(y, x->value * self->scale); =}
}
reactor Test {
- input x: int
- state received_value: bool(false)
+ input x: int
+ state received_value: bool(false)
reaction(x) {=
printf("Received %d.\n", x->value);
diff --git a/test/known-good/C/src/GetMicroStep.txt b/test/known-good/C/src/GetMicroStep.txt
index d979b68e0..3d801359f 100644
--- a/test/known-good/C/src/GetMicroStep.txt
+++ b/test/known-good/C/src/GetMicroStep.txt
@@ -2,7 +2,7 @@
target C
main reactor GetMicroStep {
- state s: int(1)
+ state s: int(1)
logical action l
diff --git a/test/known-good/C/src/GetTime.txt b/test/known-good/C/src/GetTime.txt
index c2f8eaa94..1dddbe4b3 100644
--- a/test/known-good/C/src/GetTime.txt
+++ b/test/known-good/C/src/GetTime.txt
@@ -1,8 +1,8 @@
target C {
- timeout: 2 sec,
- fast: false
+ timeout: 2 sec,
+ fast: false
}
main reactor GetTime {
diff --git a/test/known-good/C/src/Hello.txt b/test/known-good/C/src/Hello.txt
index 18d3cc48c..d4a1b3b38 100644
--- a/test/known-good/C/src/Hello.txt
+++ b/test/known-good/C/src/Hello.txt
@@ -4,13 +4,13 @@
target C {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor Reschedule(period: time(2 sec), message: string("Hello C")) {
- state count: int(0)
- state previous_time: time(0)
+reactor Reschedule(period: time(2 sec), message: string("Hello C")) {
+ state count: int(0)
+ state previous_time: time(0)
timer t(1 sec, period)
logical action a
@@ -43,8 +43,8 @@
}
reactor Inside(
- period: time(1 sec),
- message: string("Composite default message.")
+ period: time(1 sec),
+ message: string("Composite default message.")
) {
third_instance = new Reschedule(period = period, message = message)
}
diff --git a/test/known-good/C/src/HelloWorld.txt b/test/known-good/C/src/HelloWorld.txt
index c90535061..38fa34632 100644
--- a/test/known-good/C/src/HelloWorld.txt
+++ b/test/known-good/C/src/HelloWorld.txt
@@ -1,13 +1,13 @@
target C {
- tracing: {
- trace-file-name: "HelloWorldTrace"
+ tracing: {
+ trace-file-name: "HelloWorldTrace"
},
- logging: error,
- build-type: Debug
-}
+ logging: error,
+ build-type: Debug
+}
reactor HelloWorld2 {
- state success: bool(false)
+ state success: bool(false)
reaction(startup) {=
printf("Hello World.\n");
diff --git a/test/known-good/C/src/Hierarchy.txt b/test/known-good/C/src/Hierarchy.txt
index 07626fe8b..5cff37b41 100644
--- a/test/known-good/C/src/Hierarchy.txt
+++ b/test/known-good/C/src/Hierarchy.txt
@@ -2,15 +2,15 @@
target C
reactor Source {
- output out: int
+ output out: int
timer t
reaction(t) -> out {= lf_set(out, 1); =}
}
reactor Gain {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
printf("Gain received %d.\n", in->value);
@@ -19,7 +19,7 @@
}
reactor Print {
- input in: int
+ input in: int
reaction(in) {=
printf("Received: %d.\n", in->value);
@@ -31,9 +31,9 @@
}
reactor GainContainer {
- input in: int
- output out: int
- output out2: int
+ input in: int
+ output out: int
+ output out2: int
gain = new Gain()
in -> gain.in
gain.out -> out
diff --git a/test/known-good/C/src/Hierarchy2.txt b/test/known-good/C/src/Hierarchy2.txt
index c49a099fb..84207ae84 100644
--- a/test/known-good/C/src/Hierarchy2.txt
+++ b/test/known-good/C/src/Hierarchy2.txt
@@ -1,20 +1,20 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Source {
- output out: int
+ output out: int
timer t(0, 1 sec)
reaction(t) -> out {= lf_set(out, 1); =}
}
reactor Count {
- output out: int
+ output out: int
timer t(0, 1 sec)
- state i: int(0)
+ state i: int(0)
reaction(t) -> out {=
(self->i)++;
@@ -23,9 +23,9 @@
}
reactor Add {
- input in1: int
- input in2: int
- output out: int
+ input in1: int
+ input in2: int
+ output out: int
reaction(in1, in2) -> out {=
int result = 0;
@@ -36,8 +36,8 @@
}
reactor Print {
- input in: int
- state expected: int(2)
+ input in: int
+ state expected: int(2)
reaction(in) {=
printf("Received: %d.\n", in->value);
@@ -50,8 +50,8 @@
}
reactor AddCount {
- input in: int
- output out: int
+ input in: int
+ output out: int
count = new Count()
add = new Add()
in -> add.in1
diff --git a/test/known-good/C/src/IdentifierLength.txt b/test/known-good/C/src/IdentifierLength.txt
index a3c6bea27..b4402f454 100644
--- a/test/known-good/C/src/IdentifierLength.txt
+++ b/test/known-good/C/src/IdentifierLength.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor A_Really_Long_Name_For_A_Source(period: time(2 sec)) {
- output y: int
+reactor A_Really_Long_Name_For_A_Source(period: time(2 sec)) {
+ output y: int
timer t(1 sec, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -17,8 +17,8 @@
}
reactor Another_Really_Long_Name_For_A_Test_Class {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
(self->count)++;
diff --git a/test/known-good/C/src/ImportComposition.txt b/test/known-good/C/src/ImportComposition.txt
index 987419a55..b54440a4f 100644
--- a/test/known-good/C/src/ImportComposition.txt
+++ b/test/known-good/C/src/ImportComposition.txt
@@ -6,7 +6,7 @@
main reactor ImportComposition {
a = new ImportedComposition()
- state received: bool(false)
+ state received: bool(false)
reaction(startup) -> a.x {= lf_set(a.x, 42); =}
diff --git a/test/known-good/C/src/InheritanceAction.txt b/test/known-good/C/src/InheritanceAction.txt
index d677e9d72..6c4c362c5 100644
--- a/test/known-good/C/src/InheritanceAction.txt
+++ b/test/known-good/C/src/InheritanceAction.txt
@@ -1,12 +1,12 @@
target C {
- fast: true
+ fast: true
}
reactor Source {
- logical action foo: int
- output y: int
+ logical action foo: int
+ output y: int
reaction(foo) -> y {= lf_set(y, foo->value); =}
}
@@ -16,8 +16,8 @@
}
reactor Test {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
(self->count)++;
diff --git a/test/known-good/C/src/ManualDelayedReaction.txt b/test/known-good/C/src/ManualDelayedReaction.txt
index c961aed1d..70bdcd6d1 100644
--- a/test/known-good/C/src/ManualDelayedReaction.txt
+++ b/test/known-good/C/src/ManualDelayedReaction.txt
@@ -2,14 +2,14 @@
- keepalive: false
+ keepalive: false
}
reactor GeneratedDelay {
- input y_in: int
- output y_out: int
- state y_state: int(0)
+ input y_in: int
+ output y_out: int
+ state y_state: int(0)
physical action act(0 msec)
@@ -22,7 +22,7 @@
}
reactor Source {
- output out: int
+ output out: int
timer t
@@ -30,7 +30,7 @@
}
reactor Sink {
- input in: int
+ input in: int
reaction(in) {=
interval_t elapsed_logical = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/Methods.txt b/test/known-good/C/src/Methods.txt
index 4e89c15d6..4178035af 100644
--- a/test/known-good/C/src/Methods.txt
+++ b/test/known-good/C/src/Methods.txt
@@ -1,11 +1,11 @@
target C
main reactor {
- state foo: int(2)
+ state foo: int(2)
- method getFoo(): int {= return self->foo; =}
+ method getFoo(): int {= return self->foo; =}
- method add(x: int) {= self->foo += x; =}
+ method add(x: int) {= self->foo += x; =}
reaction(startup) {=
lf_print("Foo is initialized to %d", getFoo());
diff --git a/test/known-good/C/src/MethodsRecursive.txt b/test/known-good/C/src/MethodsRecursive.txt
index a720f50f7..86df0f207 100644
--- a/test/known-good/C/src/MethodsRecursive.txt
+++ b/test/known-good/C/src/MethodsRecursive.txt
@@ -2,14 +2,14 @@
target C
main reactor {
- state foo: int(2)
+ state foo: int(2)
- method fib(n: int): int {=
+ method fib(n: int): int {=
if (n <= 1) return 1;
return add(fib(n-1), fib(n-2));
=}
- method add(x: int, y: int): int {= return x + y; =}
+ method add(x: int, y: int): int {= return x + y; =}
reaction(startup) {=
for (int n = 1; n < 10; n++) {
diff --git a/test/known-good/C/src/MethodsSameName.txt b/test/known-good/C/src/MethodsSameName.txt
index 0b1644f23..5b1c4cb9c 100644
--- a/test/known-good/C/src/MethodsSameName.txt
+++ b/test/known-good/C/src/MethodsSameName.txt
@@ -2,9 +2,9 @@
target C
reactor Foo {
- state foo: int(2)
+ state foo: int(2)
- method add(x: int) {= self->foo += x; =}
+ method add(x: int) {= self->foo += x; =}
reaction(startup) {=
add(40);
@@ -16,11 +16,11 @@
}
main reactor {
- state foo: int(2)
+ state foo: int(2)
a = new Foo()
- method add(x: int) {= self->foo += x; =}
+ method add(x: int) {= self->foo += x; =}
reaction(startup) {=
add(40);
diff --git a/test/known-good/C/src/Microsteps.txt b/test/known-good/C/src/Microsteps.txt
index 91faebe25..1f9581650 100644
--- a/test/known-good/C/src/Microsteps.txt
+++ b/test/known-good/C/src/Microsteps.txt
@@ -1,8 +1,8 @@
target C
reactor Destination {
- input x: int
- input y: int
+ input x: int
+ input y: int
reaction(x, y) {=
interval_t elapsed = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/MovingAverage.txt b/test/known-good/C/src/MovingAverage.txt
index 1b9af5977..63632e8da 100644
--- a/test/known-good/C/src/MovingAverage.txt
+++ b/test/known-good/C/src/MovingAverage.txt
@@ -2,15 +2,15 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
import TestDouble from "lib/Test.lf"
reactor MASource {
- output out: double
- state count: int(0)
+ output out: double
+ state count: int(0)
timer clock(0, 200 msec)
reaction(clock) -> out {=
@@ -20,10 +20,10 @@
}
reactor MovingAverageImpl {
- state delay_line: double[](0.0, 0.0, 0.0)
- state index: int(0)
- input in: double
- output out: double
+ state delay_line: double[](0.0, 0.0, 0.0)
+ state index: int(0)
+ input in: double
+ output out: double
reaction(in) -> out {=
diff --git a/test/known-good/C/src/MultipleContained.txt b/test/known-good/C/src/MultipleContained.txt
index 5ea97e963..d0d0e8212 100644
--- a/test/known-good/C/src/MultipleContained.txt
+++ b/test/known-good/C/src/MultipleContained.txt
@@ -3,10 +3,10 @@
target C
reactor Contained {
- output trigger: int
- input in1: int
- input in2: int
- state count: int(0)
+ output trigger: int
+ input in1: int
+ input in2: int
+ state count: int(0)
reaction(startup) -> trigger {= lf_set(trigger, 42); =}
diff --git a/test/known-good/C/src/MultipleOutputs.txt b/test/known-good/C/src/MultipleOutputs.txt
index 1b41de85b..aff3695a5 100644
--- a/test/known-good/C/src/MultipleOutputs.txt
+++ b/test/known-good/C/src/MultipleOutputs.txt
@@ -3,13 +3,13 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor C {
- output x: int
- output z: int
+ output x: int
+ output z: int
timer t(0, 100 msec)
reaction(t) -> x, z {=
@@ -20,7 +20,7 @@
main reactor {
c = new C()
- state triggered: bool(true)
+ state triggered: bool(true)
reaction(c.z) {=
lf_print("c.z = %d", c.z->value);
diff --git a/test/known-good/C/src/NativeListsAndTimes.txt b/test/known-good/C/src/NativeListsAndTimes.txt
index ffea09986..80d4b05df 100644
--- a/test/known-good/C/src/NativeListsAndTimes.txt
+++ b/test/known-good/C/src/NativeListsAndTimes.txt
@@ -2,17 +2,17 @@
main reactor(
- x: int(0),
- y: time(0),
+ x: int(0),
+ y: time(0),
z(1 msec),
- p: int[](1, 2, 3, 4),
- q: interval_t[](1 msec, 2 msec, 3 msec),
- g: time[](1 msec, 2 msec)
+ p: int[](1, 2, 3, 4),
+ q: interval_t[](1 msec, 2 msec, 3 msec),
+ g: time[](1 msec, 2 msec)
) {
- state s: time(y)
- state t: time(z)
- state v: bool // Uninitialized boolean state variable
- state w: time // Uninitialized time state variable
+ state s: time(y)
+ state t: time(z)
+ state v: bool // Uninitialized boolean state variable
+ state w: time // Uninitialized time state variable
timer tick(0)
timer tock(1 sec)
timer toe(z)
diff --git a/test/known-good/C/src/NestedTriggeredReactions.txt b/test/known-good/C/src/NestedTriggeredReactions.txt
index 520f31fa4..93d8a0bed 100644
--- a/test/known-good/C/src/NestedTriggeredReactions.txt
+++ b/test/known-good/C/src/NestedTriggeredReactions.txt
@@ -1,9 +1,9 @@
target C
reactor Container {
- input in: bool
+ input in: bool
- state triggered: bool(false)
+ state triggered: bool(false)
contained = new Contained()
@@ -19,9 +19,9 @@
}
reactor Contained {
- input in: bool
+ input in: bool
- state triggered: bool(false)
+ state triggered: bool(false)
reaction(in) {= self->triggered = true; =}
diff --git a/test/known-good/C/src/ParameterHierarchy.txt b/test/known-good/C/src/ParameterHierarchy.txt
index 9114e346f..8b081dcae 100644
--- a/test/known-good/C/src/ParameterHierarchy.txt
+++ b/test/known-good/C/src/ParameterHierarchy.txt
@@ -1,7 +1,7 @@
target C
-reactor Deep(p: int(0)) {
+reactor Deep(p: int(0)) {
reaction(startup) {=
if (self->p != 42) {
lf_print_error_and_exit("Parameter value is %d. Should have been 42.");
@@ -11,11 +11,11 @@
=}
}
-reactor Intermediate(p: int(10)) {
+reactor Intermediate(p: int(10)) {
a = new Deep(p = p)
}
-reactor Another(p: int(20)) {
+reactor Another(p: int(20)) {
a = new Intermediate(p = p)
}
diff --git a/test/known-good/C/src/ParameterizedState.txt b/test/known-good/C/src/ParameterizedState.txt
index d137781ee..a010505e9 100644
--- a/test/known-good/C/src/ParameterizedState.txt
+++ b/test/known-good/C/src/ParameterizedState.txt
@@ -1,6 +1,6 @@
target C
-reactor Foo(bar: int(42)) {
+reactor Foo(bar: int(42)) {
state baz(bar)
reaction(startup) {= printf("Baz: %d\n", self->baz); =}
diff --git a/test/known-good/C/src/PeriodicDesugared.txt b/test/known-good/C/src/PeriodicDesugared.txt
index 9f02ab0fc..57bf45f68 100644
--- a/test/known-good/C/src/PeriodicDesugared.txt
+++ b/test/known-good/C/src/PeriodicDesugared.txt
@@ -1,9 +1,9 @@
target C {
- fast: true,
- timeout: 1 sec
+ fast: true,
+ timeout: 1 sec
}
-main reactor(offset: time(0), period: time(500 msec)) {
+main reactor(offset: time(0), period: time(500 msec)) {
logical action init(offset)
logical action recur(period)
diff --git a/test/known-good/C/src/PhysicalConnection.txt b/test/known-good/C/src/PhysicalConnection.txt
index ef7bc0b90..2c8a563bc 100644
--- a/test/known-good/C/src/PhysicalConnection.txt
+++ b/test/known-good/C/src/PhysicalConnection.txt
@@ -2,13 +2,13 @@
target C
reactor Source {
- output out: int
+ output out: int
reaction(startup) -> out {= lf_set(out, 42); =}
}
reactor Destination {
- input in: int
+ input in: int
reaction(in) {=
interval_t time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/PingPong.txt b/test/known-good/C/src/PingPong.txt
index 1a1ae4887..355019495 100644
--- a/test/known-good/C/src/PingPong.txt
+++ b/test/known-good/C/src/PingPong.txt
@@ -22,13 +22,13 @@
target C {
- fast: true
+ fast: true
}
-reactor Ping(count: int(10)) {
- input receive: int
- output send: int
- state pingsLeft: int(count)
+reactor Ping(count: int(10)) {
+ input receive: int
+ output send: int
+ state pingsLeft: int(count)
logical action serve
reaction(startup, serve) -> send {= lf_set(send, self->pingsLeft--); =}
@@ -42,10 +42,10 @@
=}
}
-reactor Pong(expected: int(10)) {
- input receive: int
- output send: int
- state count: int(0)
+reactor Pong(expected: int(10)) {
+ input receive: int
+ output send: int
+ state count: int(0)
reaction(receive) -> send {=
self->count++;
diff --git a/test/known-good/C/src/Preamble.txt b/test/known-good/C/src/Preamble.txt
index 025a55191..f5ea8c76e 100644
--- a/test/known-good/C/src/Preamble.txt
+++ b/test/known-good/C/src/Preamble.txt
@@ -1,6 +1,6 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
main reactor Preamble {
diff --git a/test/known-good/C/src/ReadOutputOfContainedReactor.txt b/test/known-good/C/src/ReadOutputOfContainedReactor.txt
index 671e053e7..d52a63a80 100644
--- a/test/known-good/C/src/ReadOutputOfContainedReactor.txt
+++ b/test/known-good/C/src/ReadOutputOfContainedReactor.txt
@@ -3,14 +3,14 @@
target C
reactor Contained {
- output out: int
+ output out: int
reaction(startup) -> out {= lf_set(out, 42); =}
}
main reactor ReadOutputOfContainedReactor {
c = new Contained()
- state count: int(0)
+ state count: int(0)
reaction(startup) c.out {=
printf("Startup reaction reading output of contained reactor: %d.\n", c.out->value);
diff --git a/test/known-good/C/src/RepeatedInheritance.txt b/test/known-good/C/src/RepeatedInheritance.txt
index d5838aa00..58f537b24 100644
--- a/test/known-good/C/src/RepeatedInheritance.txt
+++ b/test/known-good/C/src/RepeatedInheritance.txt
@@ -4,28 +4,28 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
import Count from "lib/Count.lf"
import TestCount from "lib/TestCount.lf"
reactor D {
- input d: int
+ input d: int
}
reactor C extends D {
- input c: int
+ input c: int
}
reactor B extends D {
- input b: int
+ input b: int
}
reactor A extends B, C {
- input a: int
- output out: int
+ input a: int
+ output out: int
reaction(a, b, c, d) -> out {=
lf_set(out, a->value + b->value + c->value + d->value);
diff --git a/test/known-good/C/src/Schedule.txt b/test/known-good/C/src/Schedule.txt
index 584844403..107486fd4 100644
--- a/test/known-good/C/src/Schedule.txt
+++ b/test/known-good/C/src/Schedule.txt
@@ -2,7 +2,7 @@
target C
reactor Schedule2 {
- input x: int
+ input x: int
logical action a
reaction(x) -> a {= lf_schedule(a, MSEC(200)); =}
diff --git a/test/known-good/C/src/ScheduleLogicalAction.txt b/test/known-good/C/src/ScheduleLogicalAction.txt
index 7f974c1ea..c6ef7491c 100644
--- a/test/known-good/C/src/ScheduleLogicalAction.txt
+++ b/test/known-good/C/src/ScheduleLogicalAction.txt
@@ -1,14 +1,14 @@
target C {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor foo {
- input x: int
- output y: int
- logical action a: int*
+ input x: int
+ output y: int
+ logical action a: int*
reaction(x) -> y, a {=
lf_set(y, 2*x->value);
@@ -20,8 +20,8 @@
}
reactor print {
- state expected_time: time(0)
- input x: int
+ state expected_time: time(0)
+ input x: int
reaction(x) {=
interval_t elapsed_time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/ScheduleValue.txt b/test/known-good/C/src/ScheduleValue.txt
index ec1b16d96..cb84db1c4 100644
--- a/test/known-good/C/src/ScheduleValue.txt
+++ b/test/known-good/C/src/ScheduleValue.txt
@@ -1,10 +1,10 @@
target C {
- timeout: 3 sec
+ timeout: 3 sec
}
main reactor ScheduleValue {
- logical action a: char*
+ logical action a: char*
reaction(startup) -> a {=
char* value = (char*)malloc(6);
diff --git a/test/known-good/C/src/SelfLoop.txt b/test/known-good/C/src/SelfLoop.txt
index 8cbb96ebb..f50157f03 100644
--- a/test/known-good/C/src/SelfLoop.txt
+++ b/test/known-good/C/src/SelfLoop.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Self {
- input x: int
- output y: int
- logical action a: int
- state expected: int(43)
+ input x: int
+ output y: int
+ logical action a: int
+ state expected: int(43)
reaction(a) -> y {=
printf("a = %d\n", a->value);
diff --git a/test/known-good/C/src/SendingInside.txt b/test/known-good/C/src/SendingInside.txt
index 44985bd65..b7938b598 100644
--- a/test/known-good/C/src/SendingInside.txt
+++ b/test/known-good/C/src/SendingInside.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor Printer {
- input x: int
- state count: int(1)
+ input x: int
+ state count: int(1)
reaction(x) {=
printf("Inside reactor received: %d\n", x->value);
@@ -20,7 +20,7 @@
}
main reactor SendingInside {
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
p = new Printer()
diff --git a/test/known-good/C/src/SendingInside2.txt b/test/known-good/C/src/SendingInside2.txt
index 410bfbb80..b018902c0 100644
--- a/test/known-good/C/src/SendingInside2.txt
+++ b/test/known-good/C/src/SendingInside2.txt
@@ -1,7 +1,7 @@
target C
reactor Printer {
- input x: int
+ input x: int
reaction(x) {=
printf("Inside reactor received: %d\n", x->value);
diff --git a/test/known-good/C/src/SendsPointerTest.txt b/test/known-good/C/src/SendsPointerTest.txt
index 6412c2550..e23e4848f 100644
--- a/test/known-good/C/src/SendsPointerTest.txt
+++ b/test/known-good/C/src/SendsPointerTest.txt
@@ -5,7 +5,7 @@
preamble {= typedef int* int_pointer; =}
reactor SendsPointer {
- output out: int_pointer
+ output out: int_pointer
reaction(startup) -> out {=
static int my_constant = 42;
@@ -13,8 +13,8 @@
=}
}
-reactor Print(expected: int(42)) {
- input in: int_pointer
+reactor Print(expected: int(42)) {
+ input in: int_pointer
reaction(in) {=
printf("Received: %d\n", *in->value);
diff --git a/test/known-good/C/src/SetArray.txt b/test/known-good/C/src/SetArray.txt
index d55c95acd..ec76d5fd2 100644
--- a/test/known-good/C/src/SetArray.txt
+++ b/test/known-good/C/src/SetArray.txt
@@ -3,7 +3,7 @@
target C
reactor Source {
- output out: int[]
+ output out: int[]
reaction(startup) -> out {=
@@ -17,8 +17,8 @@
=}
}
-reactor Print(scale: int(1)) {
- input in: int[]
+reactor Print(scale: int(1)) {
+ input in: int[]
reaction(in) {=
int count = 0;
diff --git a/test/known-good/C/src/SetToken.txt b/test/known-good/C/src/SetToken.txt
index 94d87e63d..38ef224cd 100644
--- a/test/known-good/C/src/SetToken.txt
+++ b/test/known-good/C/src/SetToken.txt
@@ -2,16 +2,16 @@
target C
reactor Source {
- output out: int*
- logical action a: int
+ output out: int*
+ logical action a: int
reaction(startup) -> a {= lf_schedule_int(a, MSEC(200), 42); =}
reaction(a) -> out {= lf_set_token(out, a->token); =}
}
-reactor Print(expected: int(42)) {
- input in: int*
+reactor Print(expected: int(42)) {
+ input in: int*
reaction(in) {=
printf("Received %d\n", *(in->value));
diff --git a/test/known-good/C/src/SimpleDeadline.txt b/test/known-good/C/src/SimpleDeadline.txt
index 1e15cea90..b3193606b 100644
--- a/test/known-good/C/src/SimpleDeadline.txt
+++ b/test/known-good/C/src/SimpleDeadline.txt
@@ -3,9 +3,9 @@
target C
-reactor Deadline(threshold: time(100 msec)) {
- input x: int
- output deadlineViolation: bool
+reactor Deadline(threshold: time(100 msec)) {
+ input x: int
+ output deadlineViolation: bool
reaction(x) -> deadlineViolation {=
printf("ERROR: Deadline violation was not detected!\n");
@@ -17,7 +17,7 @@
}
reactor Print {
- input in: bool
+ input in: bool
reaction(in) {=
if (in) {
diff --git a/test/known-good/C/src/SlowingClock.txt b/test/known-good/C/src/SlowingClock.txt
index 0382f7dd6..7d3f86c32 100644
--- a/test/known-good/C/src/SlowingClock.txt
+++ b/test/known-good/C/src/SlowingClock.txt
@@ -5,14 +5,14 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
main reactor SlowingClock {
logical action a(100 msec)
- state interval: time(100 msec)
- state expected_time: time(100 msec)
+ state interval: time(100 msec)
+ state expected_time: time(100 msec)
reaction(startup) -> a {= lf_schedule(a, 0); =}
diff --git a/test/known-good/C/src/SlowingClockPhysical.txt b/test/known-good/C/src/SlowingClockPhysical.txt
index 15be67a22..53d66a803 100644
--- a/test/known-good/C/src/SlowingClockPhysical.txt
+++ b/test/known-good/C/src/SlowingClockPhysical.txt
@@ -6,13 +6,13 @@
target C {
- timeout: 1500 msec
+ timeout: 1500 msec
}
main reactor SlowingClockPhysical {
physical action a(100 msec)
- state interval: time(100 msec)
- state expected_time: time(100 msec)
+ state interval: time(100 msec)
+ state expected_time: time(100 msec)
reaction(startup) -> a {=
self->expected_time = MSEC(100);
diff --git a/test/known-good/C/src/StartupOutFromInside.txt b/test/known-good/C/src/StartupOutFromInside.txt
index 9cf29741a..683b9dbfb 100644
--- a/test/known-good/C/src/StartupOutFromInside.txt
+++ b/test/known-good/C/src/StartupOutFromInside.txt
@@ -1,7 +1,7 @@
target C
reactor Bar {
- output out: int
+ output out: int
reaction(startup) -> out {= lf_set(out, 42); =}
}
diff --git a/test/known-good/C/src/Starvation.txt b/test/known-good/C/src/Starvation.txt
index e65c8be27..fff28405c 100644
--- a/test/known-good/C/src/Starvation.txt
+++ b/test/known-good/C/src/Starvation.txt
@@ -6,10 +6,10 @@
target C
-reactor SuperDenseSender(number_of_iterations: int(10)) {
+reactor SuperDenseSender(number_of_iterations: int(10)) {
logical action loop
- output out: int
- state iterator: int(0)
+ output out: int
+ state iterator: int(0)
reaction(startup, loop) -> out {=
if (self->iterator < self->number_of_iterations) {
@@ -34,8 +34,8 @@
=}
}
-reactor SuperDenseReceiver(number_of_iterations: int(10)) {
- input in: int
+reactor SuperDenseReceiver(number_of_iterations: int(10)) {
+ input in: int
reaction(in) {=
tag_t current_tag = lf_tag();
diff --git a/test/known-good/C/src/Stop.txt b/test/known-good/C/src/Stop.txt
index a40129865..82a8965db 100644
--- a/test/known-good/C/src/Stop.txt
+++ b/test/known-good/C/src/Stop.txt
@@ -4,14 +4,14 @@
target C {
- timeout: 11 msec
+ timeout: 11 msec
}
import Sender from "lib/LoopedActionSender.lf"
reactor Consumer {
- input in: int
- state reaction_invoked_correctly: bool(false)
+ input in: int
+ state reaction_invoked_correctly: bool(false)
reaction(in) {=
tag_t current_tag = lf_tag();
diff --git a/test/known-good/C/src/StopZero.txt b/test/known-good/C/src/StopZero.txt
index 4f451bb84..13f09f568 100644
--- a/test/known-good/C/src/StopZero.txt
+++ b/test/known-good/C/src/StopZero.txt
@@ -7,8 +7,8 @@
target C
reactor Sender {
- output out: int
- state reaction_invoked_correctly: bool(false)
+ output out: int
+ state reaction_invoked_correctly: bool(false)
timer t(0, 1 usec)
logical action act
@@ -64,7 +64,7 @@
}
reactor Receiver {
- input in: int
+ input in: int
reaction(in) {=
printf("Received %d at (%lld, %u).\n",
diff --git a/test/known-good/C/src/Stride.txt b/test/known-good/C/src/Stride.txt
index 55bc473bb..2b70ee0d1 100644
--- a/test/known-good/C/src/Stride.txt
+++ b/test/known-good/C/src/Stride.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Count(stride: int(1)) {
- state count: int(1)
- output y: int
+reactor Count(stride: int(1)) {
+ state count: int(1)
+ output y: int
timer t(0, 100 msec)
reaction(t) -> y {=
@@ -17,8 +17,8 @@
}
reactor Display {
- input x: int
- state expected: int(1)
+ input x: int
+ state expected: int(1)
reaction(x) {=
printf("Received: %d.\n", x->value);
diff --git a/test/known-good/C/src/StructAsState.txt b/test/known-good/C/src/StructAsState.txt
index d9f412e8d..2b07595e9 100644
--- a/test/known-good/C/src/StructAsState.txt
+++ b/test/known-good/C/src/StructAsState.txt
@@ -10,7 +10,7 @@
} hello_t;
=}
- state s: hello_t("Earth", 42)
+ state s: hello_t("Earth", 42)
reaction(startup) {=
printf("State s.name=\"%s\", value=%d.\n", self->s.name, self->s.value);
diff --git a/test/known-good/C/src/StructAsType.txt b/test/known-good/C/src/StructAsType.txt
index 2b3c216c3..c1779436e 100644
--- a/test/known-good/C/src/StructAsType.txt
+++ b/test/known-good/C/src/StructAsType.txt
@@ -1,6 +1,6 @@
target C {
- files: include/hello.h
+ files: include/hello.h
}
preamble {=
@@ -8,7 +8,7 @@
=}
reactor Source {
- output out: hello_t
+ output out: hello_t
reaction(startup) -> out {=
@@ -23,8 +23,8 @@
=}
}
-reactor Print(expected: int(42)) {
- input in: hello_t
+reactor Print(expected: int(42)) {
+ input in: hello_t
reaction(in) {=
printf("Received: name = %s, value = %d\n", in->value.name, in->value.value);
diff --git a/test/known-good/C/src/StructAsTypeDirect.txt b/test/known-good/C/src/StructAsTypeDirect.txt
index e73b1c151..865612974 100644
--- a/test/known-good/C/src/StructAsTypeDirect.txt
+++ b/test/known-good/C/src/StructAsTypeDirect.txt
@@ -1,6 +1,6 @@
target C {
- files: include/hello.h
+ files: include/hello.h
}
preamble {=
@@ -8,7 +8,7 @@
=}
reactor Source {
- output out: hello_t
+ output out: hello_t
reaction(startup) -> out {=
out->value.name = "Earth";
@@ -17,8 +17,8 @@
=}
}
-reactor Print(expected: int(42)) {
- input in: hello_t
+reactor Print(expected: int(42)) {
+ input in: hello_t
reaction(in) {=
printf("Received: name = %s, value = %d\n", in->value.name, in->value.value);
diff --git a/test/known-good/C/src/StructParallel.txt b/test/known-good/C/src/StructParallel.txt
index a330d876c..4b42057c8 100644
--- a/test/known-good/C/src/StructParallel.txt
+++ b/test/known-good/C/src/StructParallel.txt
@@ -2,7 +2,7 @@
target C {
- files: ["include/hello.h"]
+ files: ["include/hello.h"]
}
import Source from "StructScale.lf"
@@ -11,9 +11,9 @@
=}
-reactor Check(expected: int(42)) {
- input in: hello_t*
- state invoked: bool(false)
+reactor Check(expected: int(42)) {
+ input in: hello_t*
+ state invoked: bool(false)
reaction(in) {=
printf("Received: name = %s, value = %d\n", in->value->name, in->value->value);
@@ -32,12 +32,12 @@
=}
}
-reactor Print(scale: int(2)) {
+reactor Print(scale: int(2)) {
- mutable input in: hello_t*
+ mutable input in: hello_t*
- output out: hello_t*
+ output out: hello_t*
reaction(in) -> out {=
in->value->value *= self->scale;
diff --git a/test/known-good/C/src/StructPrint.txt b/test/known-good/C/src/StructPrint.txt
index eb8b68d8a..ddde6a2f0 100644
--- a/test/known-good/C/src/StructPrint.txt
+++ b/test/known-good/C/src/StructPrint.txt
@@ -1,7 +1,7 @@
target C {
- files: ["include/hello.h"]
+ files: ["include/hello.h"]
}
preamble {=
@@ -9,7 +9,7 @@
=}
reactor Print {
- output out: hello_t*
+ output out: hello_t*
reaction(startup) -> out {=
@@ -20,8 +20,8 @@
=}
}
-reactor Check(expected: int(42)) {
- input in: hello_t*
+reactor Check(expected: int(42)) {
+ input in: hello_t*
reaction(in) {=
printf("Received: name = %s, value = %d\n", in->value->name, in->value->value);
diff --git a/test/known-good/C/src/StructScale.txt b/test/known-good/C/src/StructScale.txt
index 29bd57130..e877fb386 100644
--- a/test/known-good/C/src/StructScale.txt
+++ b/test/known-good/C/src/StructScale.txt
@@ -3,7 +3,7 @@
target C {
- files: ["include/hello.h"]
+ files: ["include/hello.h"]
}
preamble {=
@@ -11,7 +11,7 @@
=}
reactor Source {
- output out: hello_t*
+ output out: hello_t*
reaction(startup) -> out {=
@@ -22,9 +22,9 @@
=}
}
-reactor TestInput(expected: int(42)) {
- input in: hello_t*
- state invoked: bool(false)
+reactor TestInput(expected: int(42)) {
+ input in: hello_t*
+ state invoked: bool(false)
reaction(in) {=
printf("Received: name = %s, value = %d\n", in->value->name, in->value->value);
@@ -43,12 +43,12 @@
=}
}
-reactor Print(scale: int(2)) {
+reactor Print(scale: int(2)) {
- mutable input in: hello_t*
+ mutable input in: hello_t*
- output out: hello_t*
+ output out: hello_t*
reaction(in) -> out {=
in->value->value *= self->scale;
diff --git a/test/known-good/C/src/SubclassesAndStartup.txt b/test/known-good/C/src/SubclassesAndStartup.txt
index 72320f6e2..916a8650a 100644
--- a/test/known-good/C/src/SubclassesAndStartup.txt
+++ b/test/known-good/C/src/SubclassesAndStartup.txt
@@ -1,7 +1,7 @@
target C
reactor Super {
- state count: int(0)
+ state count: int(0)
reaction(startup) {=
printf("%s(Super) started\n", self->name);
@@ -16,7 +16,7 @@
=}
}
-reactor SubA(name: string("SubA")) extends Super {
+reactor SubA(name: string("SubA")) extends Super {
reaction(startup) {=
printf("%s started\n", self->name);
if (self->count == 0) {
@@ -26,7 +26,7 @@
=}
}
-reactor SubB(name: string("SubB")) extends Super {
+reactor SubB(name: string("SubB")) extends Super {
reaction(startup) {=
printf("%s started\n", self->name);
if (self->count == 0) {
diff --git a/test/known-good/C/src/TestForPreviousOutput.txt b/test/known-good/C/src/TestForPreviousOutput.txt
index cfdb71408..5b723bad0 100644
--- a/test/known-good/C/src/TestForPreviousOutput.txt
+++ b/test/known-good/C/src/TestForPreviousOutput.txt
@@ -3,7 +3,7 @@
target C
reactor Source {
- output out: int
+ output out: int
reaction(startup) -> out {=
@@ -24,7 +24,7 @@
}
reactor Sink {
- input in: int
+ input in: int
reaction(in) {=
printf("Received %d.\n", in->value);
diff --git a/test/known-good/C/src/TimeLimit.txt b/test/known-good/C/src/TimeLimit.txt
index 10fbf5ea5..7db897e57 100644
--- a/test/known-good/C/src/TimeLimit.txt
+++ b/test/known-good/C/src/TimeLimit.txt
@@ -2,13 +2,13 @@
target C {
- fast: true
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -18,8 +18,8 @@
}
reactor Destination {
- input x: int
- state s: int(1)
+ input x: int
+ state s: int(1)
reaction(x) {=
@@ -39,7 +39,7 @@
=}
}
-main reactor TimeLimit(period: time(1 sec)) {
+main reactor TimeLimit(period: time(1 sec)) {
timer stop(10 sec)
c = new Clock(period = period)
d = new Destination()
diff --git a/test/known-good/C/src/TimeState.txt b/test/known-good/C/src/TimeState.txt
index 9dca68d56..965cd9231 100644
--- a/test/known-good/C/src/TimeState.txt
+++ b/test/known-good/C/src/TimeState.txt
@@ -1,7 +1,7 @@
target C
-reactor Foo(bar: int(42)) {
- state baz: time(500 msec)
+reactor Foo(bar: int(42)) {
+ state baz: time(500 msec)
reaction(startup) {= printf("Baz: %lld\n", self->baz); =}
}
diff --git a/test/known-good/C/src/Timeout.txt b/test/known-good/C/src/Timeout.txt
index 2bed33090..851281e11 100644
--- a/test/known-good/C/src/Timeout.txt
+++ b/test/known-good/C/src/Timeout.txt
@@ -4,14 +4,14 @@
target C {
- timeout: 11 msec
+ timeout: 11 msec
}
import Sender from "lib/LoopedActionSender.lf"
reactor Consumer {
- input in: int
- state success: bool(false)
+ input in: int
+ state success: bool(false)
reaction(in) {=
tag_t current_tag = lf_tag();
diff --git a/test/known-good/C/src/TimeoutZero.txt b/test/known-good/C/src/TimeoutZero.txt
index f2bf99aad..5452db356 100644
--- a/test/known-good/C/src/TimeoutZero.txt
+++ b/test/known-good/C/src/TimeoutZero.txt
@@ -5,14 +5,14 @@
target C {
- timeout: 0 sec
+ timeout: 0 sec
}
import Sender from "lib/LoopedActionSender.lf"
reactor Consumer {
- input in: int
- state success: bool(false)
+ input in: int
+ state success: bool(false)
reaction(in) {=
tag_t current_tag = lf_tag();
diff --git a/test/known-good/C/src/ToReactionNested.txt b/test/known-good/C/src/ToReactionNested.txt
index 95387a898..18fc7840f 100644
--- a/test/known-good/C/src/ToReactionNested.txt
+++ b/test/known-good/C/src/ToReactionNested.txt
@@ -1,19 +1,19 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
import Count from "lib/Count.lf"
reactor CountContainer {
- output out: int
+ output out: int
c1 = new Count()
c1.out -> out
}
main reactor {
- state count: int(1)
- state received: bool(false)
+ state count: int(1)
+ state received: bool(false)
s = new CountContainer()
diff --git a/test/known-good/C/src/TriggerDownstreamOnlyIfPresent2.txt b/test/known-good/C/src/TriggerDownstreamOnlyIfPresent2.txt
index 96e23b108..97116cba2 100644
--- a/test/known-good/C/src/TriggerDownstreamOnlyIfPresent2.txt
+++ b/test/known-good/C/src/TriggerDownstreamOnlyIfPresent2.txt
@@ -3,13 +3,13 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Source {
- output[2] out: int
- state count: int(0)
+ output[2] out: int
+ state count: int(0)
timer t(0, 200 msec)
reaction(t) -> out {=
@@ -22,7 +22,7 @@
}
reactor Destination {
- input in: int
+ input in: int
reaction(in) {=
if (!in->is_present) {
@@ -34,7 +34,7 @@
main reactor TriggerDownstreamOnlyIfPresent2 {
s = new Source()
- d = new[2] Destination()
+ d = new[2] Destination()
s.out -> d.in
}
diff --git a/test/known-good/C/src/UnconnectedInput.txt b/test/known-good/C/src/UnconnectedInput.txt
index 5ddb6acfa..fdd1b9366 100644
--- a/test/known-good/C/src/UnconnectedInput.txt
+++ b/test/known-good/C/src/UnconnectedInput.txt
@@ -1,21 +1,21 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Source {
- output out: int
+ output out: int
timer t(0, 1 sec)
- state s: int(1)
+ state s: int(1)
reaction(t) -> out {= lf_set(out, self->s++); =}
}
reactor Add {
- input in1: int
- input in2: int
- output out: int
+ input in1: int
+ input in2: int
+ output out: int
reaction(in1, in2) -> out {=
int result = 0;
@@ -26,8 +26,8 @@
}
reactor Print {
- input in: int
- state expected: int(1)
+ input in: int
+ state expected: int(1)
reaction(in) {=
printf("Received: %d.\n", in->value);
diff --git a/test/known-good/C/src/Wcet.txt b/test/known-good/C/src/Wcet.txt
index 8b2f9c1fa..267427bf9 100644
--- a/test/known-good/C/src/Wcet.txt
+++ b/test/known-good/C/src/Wcet.txt
@@ -2,8 +2,8 @@
target C
reactor Source {
- output out1: int
- output out2: int
+ output out1: int
+ output out2: int
timer t
reaction(t) -> out1, out2 {=
@@ -13,9 +13,9 @@
}
reactor Work {
- input in1: int
- input in2: int
- output out: int
+ input in1: int
+ input in2: int
+ output out: int
reaction(in1, in2) -> out {=
int ret;
@@ -29,7 +29,7 @@
}
reactor Print {
- input in: int
+ input in: int
reaction(in) {= printf("Received: %d\n", in->value); =}
}
diff --git a/test/known-good/C/src/arduino/AnalogReadSerial.txt b/test/known-good/C/src/arduino/AnalogReadSerial.txt
index 01deac6c8..e82968603 100644
--- a/test/known-good/C/src/arduino/AnalogReadSerial.txt
+++ b/test/known-good/C/src/arduino/AnalogReadSerial.txt
@@ -5,9 +5,9 @@
target C {
- platform: {
- name: "arduino",
- board: "arduino:avr:mega"
+ platform: {
+ name: "arduino",
+ board: "arduino:avr:mega"
}
}
diff --git a/test/known-good/C/src/arduino/Blink.txt b/test/known-good/C/src/arduino/Blink.txt
index a549857e5..fb45e0ddb 100644
--- a/test/known-good/C/src/arduino/Blink.txt
+++ b/test/known-good/C/src/arduino/Blink.txt
@@ -4,9 +4,9 @@
target C {
- platform: {
- name: "arduino",
- board: "arduino:avr:mega"
+ platform: {
+ name: "arduino",
+ board: "arduino:avr:mega"
}
}
diff --git a/test/known-good/C/src/arduino/BlinkAttemptThreading.txt b/test/known-good/C/src/arduino/BlinkAttemptThreading.txt
index 8d0aa4040..7226f1cb0 100644
--- a/test/known-good/C/src/arduino/BlinkAttemptThreading.txt
+++ b/test/known-good/C/src/arduino/BlinkAttemptThreading.txt
@@ -5,12 +5,12 @@
target C {
- platform: {
- name: "arduino",
- board: "arduino:avr:mega"
+ platform: {
+ name: "arduino",
+ board: "arduino:avr:mega"
},
- threading: true
-}
+ threading: true
+}
main reactor BlinkAttemptThreading {
timer t1(0, 1 sec)
diff --git a/test/known-good/C/src/arduino/BlinkMBED.txt b/test/known-good/C/src/arduino/BlinkMBED.txt
index a4918ccce..c763345d3 100644
--- a/test/known-good/C/src/arduino/BlinkMBED.txt
+++ b/test/known-good/C/src/arduino/BlinkMBED.txt
@@ -4,9 +4,9 @@
target C {
- platform: {
- name: "arduino",
- board: "arduino:mbed:nano33ble"
+ platform: {
+ name: "arduino",
+ board: "arduino:mbed:nano33ble"
}
}
diff --git a/test/known-good/C/src/arduino/DigitalReadSerial.txt b/test/known-good/C/src/arduino/DigitalReadSerial.txt
index bc7ad5939..19ccc70e6 100644
--- a/test/known-good/C/src/arduino/DigitalReadSerial.txt
+++ b/test/known-good/C/src/arduino/DigitalReadSerial.txt
@@ -3,15 +3,15 @@
target C {
- platform: {
- name: "arduino",
- board: "arduino:avr:mega"
+ platform: {
+ name: "arduino",
+ board: "arduino:avr:mega"
}
}
main reactor DigitalReadSerial {
timer t1(0, 1 msec)
- state pushButton: int(2)
+ state pushButton: int(2)
reaction(startup) {= pinMode(self->pushButton, INPUT); =}
diff --git a/test/known-good/C/src/arduino/Fade.txt b/test/known-good/C/src/arduino/Fade.txt
index 08a51d502..18e092980 100644
--- a/test/known-good/C/src/arduino/Fade.txt
+++ b/test/known-good/C/src/arduino/Fade.txt
@@ -6,17 +6,17 @@
target C {
- platform: {
- name: "arduino",
- board: "arduino:avr:mega"
+ platform: {
+ name: "arduino",
+ board: "arduino:avr:mega"
}
}
main reactor Fade {
timer t1(0, 30 msec)
- state led: int(9)
- state brightness: int(9)
- state fadeAmount: int(5)
+ state led: int(9)
+ state brightness: int(9)
+ state fadeAmount: int(5)
reaction(startup) {= pinMode(self->led, OUTPUT); =}
diff --git a/test/known-good/C/src/arduino/ReadAnalogVoltage.txt b/test/known-good/C/src/arduino/ReadAnalogVoltage.txt
index 89252251d..f35d7319d 100644
--- a/test/known-good/C/src/arduino/ReadAnalogVoltage.txt
+++ b/test/known-good/C/src/arduino/ReadAnalogVoltage.txt
@@ -6,9 +6,9 @@
target C {
- platform: {
- name: "arduino",
- board: "arduino:avr:mega"
+ platform: {
+ name: "arduino",
+ board: "arduino:avr:mega"
}
}
diff --git a/test/known-good/C/src/concurrent/AsyncCallback.txt b/test/known-good/C/src/concurrent/AsyncCallback.txt
index edd0fac8b..aa8dda5de 100644
--- a/test/known-good/C/src/concurrent/AsyncCallback.txt
+++ b/test/known-good/C/src/concurrent/AsyncCallback.txt
@@ -8,8 +8,8 @@
target C {
- tracing: true,
- timeout: 2 sec
+ tracing: true,
+ timeout: 2 sec
}
main reactor AsyncCallback {
@@ -33,12 +33,12 @@
lf_thread_t threadId;
=}
timer t(0, 200 msec)
- state thread_id: lf_thread_t(0)
- state expected_time: time(100 msec)
- state toggle: bool(false)
+ state thread_id: lf_thread_t(0)
+ state expected_time: time(100 msec)
+ state toggle: bool(false)
- physical action a(100 msec): int
- state i: int(0)
+ physical action a(100 msec): int
+ state i: int(0)
reaction(t) -> a {=
diff --git a/test/known-good/C/src/concurrent/AsyncCallbackDrop.txt b/test/known-good/C/src/concurrent/AsyncCallbackDrop.txt
index 1e33b906b..93f9669fa 100644
--- a/test/known-good/C/src/concurrent/AsyncCallbackDrop.txt
+++ b/test/known-good/C/src/concurrent/AsyncCallbackDrop.txt
@@ -3,8 +3,8 @@
target C {
- keepalive: true,
- timeout: 2 sec
+ keepalive: true,
+ timeout: 2 sec
}
main reactor {
@@ -28,12 +28,12 @@
lf_thread_t threadId;
=}
timer t(0, 200 msec)
- state thread_id: lf_thread_t(0)
- state expected_time: time(100 msec)
- state toggle: bool(false)
+ state thread_id: lf_thread_t(0)
+ state expected_time: time(100 msec)
+ state toggle: bool(false)
- physical action a(100 msec, 100 msec, "drop"): int
- state i: int(0)
+ physical action a(100 msec, 100 msec, "drop"): int
+ state i: int(0)
reaction(t) -> a {=
diff --git a/test/known-good/C/src/concurrent/AsyncCallbackReplace.txt b/test/known-good/C/src/concurrent/AsyncCallbackReplace.txt
index 52f1fda6a..b877c06bc 100644
--- a/test/known-good/C/src/concurrent/AsyncCallbackReplace.txt
+++ b/test/known-good/C/src/concurrent/AsyncCallbackReplace.txt
@@ -3,8 +3,8 @@
target C {
- keepalive: true,
- timeout: 2 sec
+ keepalive: true,
+ timeout: 2 sec
}
main reactor {
@@ -28,12 +28,12 @@
lf_thread_t threadId;
=}
timer t(0, 200 msec)
- state thread_id: lf_thread_t(0)
- state expected_time: time(100 msec)
- state toggle: bool(false)
+ state thread_id: lf_thread_t(0)
+ state expected_time: time(100 msec)
+ state toggle: bool(false)
- physical action a(100 msec, 100 msec, "replace"): int
- state i: int(0)
+ physical action a(100 msec, 100 msec, "replace"): int
+ state i: int(0)
reaction(t) -> a {=
diff --git a/test/known-good/C/src/concurrent/CompositionThreaded.txt b/test/known-good/C/src/concurrent/CompositionThreaded.txt
index 0192bb3ca..5062ec0ca 100644
--- a/test/known-good/C/src/concurrent/CompositionThreaded.txt
+++ b/test/known-good/C/src/concurrent/CompositionThreaded.txt
@@ -1,14 +1,14 @@
target C {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
-reactor Source(period: time(2 sec)) {
- output y: int
+reactor Source(period: time(2 sec)) {
+ output y: int
timer t(1 sec, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -17,8 +17,8 @@
}
reactor Test {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
(self->count)++;
diff --git a/test/known-good/C/src/concurrent/DeadlineHandledAboveThreaded.txt b/test/known-good/C/src/concurrent/DeadlineHandledAboveThreaded.txt
index cdec4e8d7..d9832cde4 100644
--- a/test/known-good/C/src/concurrent/DeadlineHandledAboveThreaded.txt
+++ b/test/known-good/C/src/concurrent/DeadlineHandledAboveThreaded.txt
@@ -2,9 +2,9 @@
target C
-reactor Deadline(threshold: time(100 msec)) {
- input x: int
- output deadline_violation: bool
+reactor Deadline(threshold: time(100 msec)) {
+ input x: int
+ output deadline_violation: bool
reaction(x) -> deadline_violation {=
printf("ERROR: Deadline violation was not detected!\n");
@@ -16,7 +16,7 @@
}
main reactor {
- state violation_detected: bool(false)
+ state violation_detected: bool(false)
d = new Deadline(threshold = 10 msec)
reaction(startup) -> d.x {=
diff --git a/test/known-good/C/src/concurrent/DeadlineThreaded.txt b/test/known-good/C/src/concurrent/DeadlineThreaded.txt
index 2c20cad99..c2ab289df 100644
--- a/test/known-good/C/src/concurrent/DeadlineThreaded.txt
+++ b/test/known-good/C/src/concurrent/DeadlineThreaded.txt
@@ -2,13 +2,13 @@
target C {
- timeout: 6 sec
+ timeout: 6 sec
}
-reactor Source(period: time(3000 msec)) {
- output y: int
+reactor Source(period: time(3000 msec)) {
+ output y: int
timer t(0, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
if (2 * (self->count / 2) != self->count) {
@@ -22,9 +22,9 @@
=}
}
-reactor Destination(timeout: time(1 sec)) {
- input x: int
- state count: int(0)
+reactor Destination(timeout: time(1 sec)) {
+ input x: int
+ state count: int(0)
reaction(x) {=
printf("Destination receives: %d\n", x->value);
diff --git a/test/known-good/C/src/concurrent/DelayIntThreaded.txt b/test/known-good/C/src/concurrent/DelayIntThreaded.txt
index 11003d493..32e9fd65a 100644
--- a/test/known-good/C/src/concurrent/DelayIntThreaded.txt
+++ b/test/known-good/C/src/concurrent/DelayIntThreaded.txt
@@ -1,10 +1,10 @@
target C
-reactor Delay(delay: time(100 msec)) {
- input in: int
- output out: int
- logical action a: int
+reactor Delay(delay: time(100 msec)) {
+ input in: int
+ output out: int
+ logical action a: int
reaction(a) -> out {= lf_set(out, a->value); =}
@@ -15,9 +15,9 @@
}
reactor Test {
- input in: int
- state start_time: time(0)
- state received_value: bool(false)
+ input in: int
+ state start_time: time(0)
+ state received_value: bool(false)
reaction(startup) {=
diff --git a/test/known-good/C/src/concurrent/DeterminismThreaded.txt b/test/known-good/C/src/concurrent/DeterminismThreaded.txt
index e7750e5fa..8dad00557 100644
--- a/test/known-good/C/src/concurrent/DeterminismThreaded.txt
+++ b/test/known-good/C/src/concurrent/DeterminismThreaded.txt
@@ -1,15 +1,15 @@
target C
reactor Source {
- output y: int
+ output y: int
timer t
reaction(t) -> y {= lf_set(y, 1); =}
}
reactor Destination {
- input x: int
- input y: int
+ input x: int
+ input y: int
reaction(x, y) {=
int sum = 0;
@@ -28,8 +28,8 @@
}
reactor Pass {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= lf_set(y, x->value); =}
}
diff --git a/test/known-good/C/src/concurrent/DoubleReactionThreaded.txt b/test/known-good/C/src/concurrent/DoubleReactionThreaded.txt
index cf7eae4eb..5378c88fc 100644
--- a/test/known-good/C/src/concurrent/DoubleReactionThreaded.txt
+++ b/test/known-good/C/src/concurrent/DoubleReactionThreaded.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -17,9 +17,9 @@
}
reactor Destination {
- input x: int
- input w: int
- state s: int(2)
+ input x: int
+ input w: int
+ state s: int(2)
reaction(x, w) {=
int sum = 0;
diff --git a/test/known-good/C/src/concurrent/GainThreaded.txt b/test/known-good/C/src/concurrent/GainThreaded.txt
index 149b95fb1..6aa427585 100644
--- a/test/known-good/C/src/concurrent/GainThreaded.txt
+++ b/test/known-good/C/src/concurrent/GainThreaded.txt
@@ -1,16 +1,16 @@
target C
-reactor Scale(scale: int(2)) {
- input x: int
- output y: int
+reactor Scale(scale: int(2)) {
+ input x: int
+ output y: int
reaction(x) -> y {= lf_set(y, x->value * self->scale); =}
}
reactor Test {
- input x: int
- state received_value: bool(false)
+ input x: int
+ state received_value: bool(false)
reaction(x) {=
printf("Received %d.\n", x->value);
diff --git a/test/known-good/C/src/concurrent/HelloThreaded.txt b/test/known-good/C/src/concurrent/HelloThreaded.txt
index 1976955ad..6ae98c0d3 100644
--- a/test/known-good/C/src/concurrent/HelloThreaded.txt
+++ b/test/known-good/C/src/concurrent/HelloThreaded.txt
@@ -4,13 +4,13 @@
target C {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor Reschedule(period: time(2 sec), message: string("Hello C")) {
- state count: int(0)
- state previous_time: time(0)
+reactor Reschedule(period: time(2 sec), message: string("Hello C")) {
+ state count: int(0)
+ state previous_time: time(0)
timer t(1 sec, period)
logical action a
@@ -43,8 +43,8 @@
}
reactor Inside(
- period: time(1 sec),
- message: string("Composite default message.")
+ period: time(1 sec),
+ message: string("Composite default message.")
) {
third_instance = new Reschedule(period = period, message = message)
}
diff --git a/test/known-good/C/src/concurrent/PingPongThreaded.txt b/test/known-good/C/src/concurrent/PingPongThreaded.txt
index 69a2c816c..9d50231b5 100644
--- a/test/known-good/C/src/concurrent/PingPongThreaded.txt
+++ b/test/known-good/C/src/concurrent/PingPongThreaded.txt
@@ -22,13 +22,13 @@
target C {
- fast: true
+ fast: true
}
-reactor Ping(count: int(10)) {
- input receive: int
- output send: int
- state pingsLeft: int(count)
+reactor Ping(count: int(10)) {
+ input receive: int
+ output send: int
+ state pingsLeft: int(count)
logical action serve
reaction(startup, serve) -> send {= lf_set(send, self->pingsLeft--); =}
@@ -42,10 +42,10 @@
=}
}
-reactor Pong(expected: int(10)) {
- input receive: int
- output send: int
- state count: int(0)
+reactor Pong(expected: int(10)) {
+ input receive: int
+ output send: int
+ state count: int(0)
reaction(receive) -> send {=
self->count++;
diff --git a/test/known-good/C/src/concurrent/ScheduleAt.txt b/test/known-good/C/src/concurrent/ScheduleAt.txt
index adf237f74..4e57f60e7 100644
--- a/test/known-good/C/src/concurrent/ScheduleAt.txt
+++ b/test/known-good/C/src/concurrent/ScheduleAt.txt
@@ -5,14 +5,14 @@
target C {
- timeout: 1 sec,
- keepalive: true
+ timeout: 1 sec,
+ keepalive: true
}
reactor Scheduler {
logical action act
- state microstep_delay_list: uint32_t[](
+ state microstep_delay_list: uint32_t[](
0,
1,
1,
@@ -30,7 +30,7 @@
4,
5
)
- state times: int[](
+ state times: int[](
0,
0,
0,
@@ -49,8 +49,8 @@
900 msec
)
- state action_hit_list_microstep: int[](1, 2, 0, 1, 0, 2, 3, 4, 5)
- state action_hit_list_times: int[](
+ state action_hit_list_microstep: int[](1, 2, 0, 1, 0, 2, 3, 4, 5)
+ state action_hit_list_times: int[](
0,
0,
400 msec,
@@ -62,7 +62,7 @@
900 msec
)
- state action_hit_list_index: int(0)
+ state action_hit_list_index: int(0)
reaction(startup) -> act {=
for (int i=0; i < 16; i++) {
diff --git a/test/known-good/C/src/concurrent/ScheduleTwice.txt b/test/known-good/C/src/concurrent/ScheduleTwice.txt
index 61f9a7193..8d1617650 100644
--- a/test/known-good/C/src/concurrent/ScheduleTwice.txt
+++ b/test/known-good/C/src/concurrent/ScheduleTwice.txt
@@ -1,8 +1,8 @@
target C
main reactor ScheduleTwice {
- logical action a: int
- state rc_count: int(0)
+ logical action a: int
+ state rc_count: int(0)
preamble {=
=}
diff --git a/test/known-good/C/src/concurrent/ScheduleTwiceThreaded.txt b/test/known-good/C/src/concurrent/ScheduleTwiceThreaded.txt
index e8a7687bb..69381da88 100644
--- a/test/known-good/C/src/concurrent/ScheduleTwiceThreaded.txt
+++ b/test/known-good/C/src/concurrent/ScheduleTwiceThreaded.txt
@@ -1,8 +1,8 @@
target C
main reactor {
- logical action a: int
- state rc_count: int(0)
+ logical action a: int
+ state rc_count: int(0)
reaction(startup) -> a {=
lf_schedule_int(a, MSEC(100), 42);
diff --git a/test/known-good/C/src/concurrent/SendingInsideThreaded.txt b/test/known-good/C/src/concurrent/SendingInsideThreaded.txt
index 5d635439d..71c857117 100644
--- a/test/known-good/C/src/concurrent/SendingInsideThreaded.txt
+++ b/test/known-good/C/src/concurrent/SendingInsideThreaded.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor Printer {
- input x: int
- state count: int(1)
+ input x: int
+ state count: int(1)
reaction(x) {=
printf("Inside reactor received: %d\n", x->value);
@@ -20,7 +20,7 @@
}
main reactor SendingInsideThreaded {
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
p = new Printer()
diff --git a/test/known-good/C/src/concurrent/StarvationThreaded.txt b/test/known-good/C/src/concurrent/StarvationThreaded.txt
index 1f638e658..519ad9f7c 100644
--- a/test/known-good/C/src/concurrent/StarvationThreaded.txt
+++ b/test/known-good/C/src/concurrent/StarvationThreaded.txt
@@ -7,10 +7,10 @@
target C
-reactor SuperDenseSender(number_of_iterations: int(10)) {
+reactor SuperDenseSender(number_of_iterations: int(10)) {
logical action loop
- output out: int
- state iterator: int(0)
+ output out: int
+ state iterator: int(0)
reaction(startup, loop) -> out {=
if (self->iterator < self->number_of_iterations) {
@@ -35,8 +35,8 @@
=}
}
-reactor SuperDenseReceiver(number_of_iterations: int(10)) {
- input in: int
+reactor SuperDenseReceiver(number_of_iterations: int(10)) {
+ input in: int
reaction(in) {=
tag_t current_tag = lf_tag();
@@ -62,8 +62,8 @@
}
main reactor StarvationThreaded {
- sender = new[8] SuperDenseSender()
- receiver = new[8] SuperDenseReceiver()
+ sender = new[8] SuperDenseSender()
+ receiver = new[8] SuperDenseReceiver()
sender.out -> receiver.in
}
diff --git a/test/known-good/C/src/concurrent/StopThreaded.txt b/test/known-good/C/src/concurrent/StopThreaded.txt
index 77cdb951f..96f1fcf1b 100644
--- a/test/known-good/C/src/concurrent/StopThreaded.txt
+++ b/test/known-good/C/src/concurrent/StopThreaded.txt
@@ -5,15 +5,15 @@
target C {
- timeout: 11 msec,
- build-type: RelWithDebInfo
+ timeout: 11 msec,
+ build-type: RelWithDebInfo
}
import Sender from "../lib/LoopedActionSender.lf"
reactor Consumer {
- input in: int
- state reaction_invoked_correctly: bool(false)
+ input in: int
+ state reaction_invoked_correctly: bool(false)
reaction(in) {=
tag_t current_tag = lf_tag();
@@ -58,8 +58,8 @@
}
main reactor {
- consumer = new[4] Consumer()
- producer = new[4] Sender(break_interval = 1 msec)
+ consumer = new[4] Consumer()
+ producer = new[4] Sender(break_interval = 1 msec)
producer.out -> consumer.in
}
diff --git a/test/known-good/C/src/concurrent/StopZeroThreaded.txt b/test/known-good/C/src/concurrent/StopZeroThreaded.txt
index d3fa9dcdc..bd5f808f0 100644
--- a/test/known-good/C/src/concurrent/StopZeroThreaded.txt
+++ b/test/known-good/C/src/concurrent/StopZeroThreaded.txt
@@ -7,8 +7,8 @@
target C
reactor Sender {
- output out: int
- state reaction_invoked_correctly: bool(false)
+ output out: int
+ state reaction_invoked_correctly: bool(false)
timer t(0, 1 usec)
logical action act
@@ -64,7 +64,7 @@
}
reactor Receiver {
- input in: int
+ input in: int
reaction(in) {=
printf("Received %d at (%lld, %u).\n",
@@ -99,8 +99,8 @@
}
main reactor StopZeroThreaded {
- sender = new[4] Sender()
- receiver = new[4] Receiver()
+ sender = new[4] Sender()
+ receiver = new[4] Receiver()
sender.out -> receiver.in
}
diff --git a/test/known-good/C/src/concurrent/Threaded.txt b/test/known-good/C/src/concurrent/Threaded.txt
index 13addcdcb..8bcac926f 100644
--- a/test/known-good/C/src/concurrent/Threaded.txt
+++ b/test/known-good/C/src/concurrent/Threaded.txt
@@ -8,15 +8,15 @@
target C {
- timeout: 2 sec,
+ timeout: 2 sec,
- flags: ""
+ flags: ""
}
reactor Source {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
lf_set(out, self->s);
@@ -25,8 +25,8 @@
}
reactor TakeTime {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
@@ -40,9 +40,9 @@
=}
}
-reactor Destination(width: int(4)) {
- state s: int(400000000)
- input[width] in: int
+reactor Destination(width: int(4)) {
+ state s: int(400000000)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -58,9 +58,9 @@
=}
}
-main reactor(width: int(4)) {
+main reactor(width: int(4)) {
a = new Source()
- t = new[width] TakeTime()
+ t = new[width] TakeTime()
(a.out)+ -> t.in
b = new Destination(width = width)
t.out -> b.in
diff --git a/test/known-good/C/src/concurrent/ThreadedMultiport.txt b/test/known-good/C/src/concurrent/ThreadedMultiport.txt
index 300680071..d52423ff3 100644
--- a/test/known-good/C/src/concurrent/ThreadedMultiport.txt
+++ b/test/known-good/C/src/concurrent/ThreadedMultiport.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 2 sec,
+ timeout: 2 sec,
- flags: ""
+ flags: ""
}
-reactor Source(width: int(4)) {
+reactor Source(width: int(4)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -18,9 +18,9 @@
=}
}
-reactor Computation(iterations: int(100000000)) {
- input in: int
- output out: int
+reactor Computation(iterations: int(100000000)) {
+ input in: int
+ output out: int
reaction(in) -> out {=
@@ -34,9 +34,9 @@
=}
}
-reactor Destination(width: int(4), iterations: int(100000000)) {
- state s: int(0)
- input[width] in: int
+reactor Destination(width: int(4), iterations: int(100000000)) {
+ state s: int(0)
+ input[width] in: int
reaction(in) {=
int expected = self->iterations * self->width + self->s;
@@ -61,9 +61,9 @@
=}
}
-main reactor ThreadedMultiport(width: int(4), iterations: int(100000000)) {
+main reactor ThreadedMultiport(width: int(4), iterations: int(100000000)) {
a = new Source(width = width)
- t = new[width] Computation(iterations = iterations)
+ t = new[width] Computation(iterations = iterations)
b = new Destination(width = width, iterations = iterations)
a.out -> t.in
t.out -> b.in
diff --git a/test/known-good/C/src/concurrent/ThreadedThreaded.txt b/test/known-good/C/src/concurrent/ThreadedThreaded.txt
index ee0f0c0d5..cb5152c92 100644
--- a/test/known-good/C/src/concurrent/ThreadedThreaded.txt
+++ b/test/known-good/C/src/concurrent/ThreadedThreaded.txt
@@ -6,16 +6,16 @@
target C {
- timeout: 2 sec,
- tracing: true,
+ timeout: 2 sec,
+ tracing: true,
- flags: ""
+ flags: ""
}
reactor Source {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
lf_set(out, self->s);
@@ -24,8 +24,8 @@
}
reactor TakeTime {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
@@ -39,9 +39,9 @@
=}
}
-reactor Destination(width: int(4)) {
- state s: int(400000000)
- input[width] in: int
+reactor Destination(width: int(4)) {
+ state s: int(400000000)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -57,9 +57,9 @@
=}
}
-main reactor ThreadedThreaded(width: int(4)) {
+main reactor ThreadedThreaded(width: int(4)) {
a = new Source()
- t = new[width] TakeTime()
+ t = new[width] TakeTime()
(a.out)+ -> t.in
b = new Destination(width = width)
t.out -> b.in
diff --git a/test/known-good/C/src/concurrent/TimeLimitThreaded.txt b/test/known-good/C/src/concurrent/TimeLimitThreaded.txt
index 508d5d228..636703a9b 100644
--- a/test/known-good/C/src/concurrent/TimeLimitThreaded.txt
+++ b/test/known-good/C/src/concurrent/TimeLimitThreaded.txt
@@ -1,13 +1,13 @@
target C {
- fast: true
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -17,8 +17,8 @@
}
reactor Destination {
- input x: int
- state s: int(1)
+ input x: int
+ state s: int(1)
reaction(x) {=
@@ -38,7 +38,7 @@
=}
}
-main reactor(period: time(1 sec)) {
+main reactor(period: time(1 sec)) {
timer stop(10 sec)
c = new Clock(period = period)
d = new Destination()
diff --git a/test/known-good/C/src/concurrent/TimeoutThreaded.txt b/test/known-good/C/src/concurrent/TimeoutThreaded.txt
index 62c0ec162..45d4999c7 100644
--- a/test/known-good/C/src/concurrent/TimeoutThreaded.txt
+++ b/test/known-good/C/src/concurrent/TimeoutThreaded.txt
@@ -5,14 +5,14 @@
target C {
- timeout: 11 msec
+ timeout: 11 msec
}
import Sender from "../lib/LoopedActionSender.lf"
reactor Consumer {
- input in: int
- state success: bool(false)
+ input in: int
+ state success: bool(false)
reaction(in) {=
tag_t current_tag = lf_tag();
@@ -42,8 +42,8 @@
}
main reactor {
- consumer = new[4] Consumer()
- producer = new[4] Sender(break_interval = 1 msec)
+ consumer = new[4] Consumer()
+ producer = new[4] Sender(break_interval = 1 msec)
producer.out -> consumer.in
}
diff --git a/test/known-good/C/src/concurrent/TimeoutZeroThreaded.txt b/test/known-good/C/src/concurrent/TimeoutZeroThreaded.txt
index 45484d1ba..3dd3bd43b 100644
--- a/test/known-good/C/src/concurrent/TimeoutZeroThreaded.txt
+++ b/test/known-good/C/src/concurrent/TimeoutZeroThreaded.txt
@@ -5,14 +5,14 @@
target C {
- timeout: 0 sec
+ timeout: 0 sec
}
import Sender from "../lib/LoopedActionSender.lf"
reactor Consumer {
- input in: int
- state success: bool(false)
+ input in: int
+ state success: bool(false)
reaction(in) {=
tag_t current_tag = lf_tag();
@@ -42,8 +42,8 @@
}
main reactor {
- consumer = new[4] Consumer()
- producer = new[4] Sender(break_interval = 1 msec)
+ consumer = new[4] Consumer()
+ producer = new[4] Sender(break_interval = 1 msec)
producer.out -> consumer.in
}
diff --git a/test/known-good/C/src/concurrent/Tracing.txt b/test/known-good/C/src/concurrent/Tracing.txt
index cf026b49e..da2e7b048 100644
--- a/test/known-good/C/src/concurrent/Tracing.txt
+++ b/test/known-good/C/src/concurrent/Tracing.txt
@@ -1,16 +1,16 @@
target C {
- timeout: 2 sec,
- tracing: true,
+ timeout: 2 sec,
+ tracing: true,
- flags: "",
- logging: DEBUG
+ flags: "",
+ logging: DEBUG
}
reactor Source {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
lf_set(out, self->s);
@@ -18,10 +18,10 @@
=}
}
-reactor TakeTime(bank_index: int(0)) {
- input in: int
- output out: int
- state event: char*("No ID")
+reactor TakeTime(bank_index: int(0)) {
+ input in: int
+ output out: int
+ state event: char*("No ID")
reaction(startup) {=
@@ -57,10 +57,10 @@
=}
}
-reactor Destination(width: int(4)) {
- state s: int(400000000)
- state count: int(0)
- input[width] in: int
+reactor Destination(width: int(4)) {
+ state s: int(400000000)
+ state count: int(0)
+ input[width] in: int
reaction(startup) {=
@@ -86,9 +86,9 @@
=}
}
-main reactor(width: int(4)) {
+main reactor(width: int(4)) {
a = new Source()
- t = new[width] TakeTime()
+ t = new[width] TakeTime()
(a.out)+ -> t.in
b = new Destination(width = width)
t.out -> b.in
diff --git a/test/known-good/C/src/concurrent/Workers.txt b/test/known-good/C/src/concurrent/Workers.txt
index e8a7f3526..5b3d3937d 100644
--- a/test/known-good/C/src/concurrent/Workers.txt
+++ b/test/known-good/C/src/concurrent/Workers.txt
@@ -1,5 +1,5 @@
target C {
- workers: 16
+ workers: 16
}
main reactor {
diff --git a/test/known-good/C/src/docker/FilesPropertyContainerized.txt b/test/known-good/C/src/docker/FilesPropertyContainerized.txt
index 10c99119e..96327f8de 100644
--- a/test/known-good/C/src/docker/FilesPropertyContainerized.txt
+++ b/test/known-good/C/src/docker/FilesPropertyContainerized.txt
@@ -1,6 +1,6 @@
target C {
- files: "../include/hello.h",
- docker: true
+ files: "../include/hello.h",
+ docker: true
}
preamble {=
diff --git a/test/known-good/C/src/docker/HelloWorldContainerized.txt b/test/known-good/C/src/docker/HelloWorldContainerized.txt
index 96ac1bfe1..e6664e5f8 100644
--- a/test/known-good/C/src/docker/HelloWorldContainerized.txt
+++ b/test/known-good/C/src/docker/HelloWorldContainerized.txt
@@ -1,11 +1,11 @@
target C {
- tracing: {
- trace-file-name: "HelloWorldTrace"
+ tracing: {
+ trace-file-name: "HelloWorldTrace"
},
- logging: error,
- docker: true,
- build-type: Debug
-}
+ logging: error,
+ docker: true,
+ build-type: Debug
+}
import HelloWorld2 from "../HelloWorld.lf"
diff --git a/test/known-good/C/src/docker/PingPongContainerized.txt b/test/known-good/C/src/docker/PingPongContainerized.txt
index 411700071..75864c96c 100644
--- a/test/known-good/C/src/docker/PingPongContainerized.txt
+++ b/test/known-good/C/src/docker/PingPongContainerized.txt
@@ -21,8 +21,8 @@
target C {
- fast: true,
- docker: true
+ fast: true,
+ docker: true
}
import Ping from "../PingPong.lf"
diff --git a/test/known-good/C/src/docker/federated/DistributedCountContainerized.txt b/test/known-good/C/src/docker/federated/DistributedCountContainerized.txt
index 64980e626..c29566e2e 100644
--- a/test/known-good/C/src/docker/federated/DistributedCountContainerized.txt
+++ b/test/known-good/C/src/docker/federated/DistributedCountContainerized.txt
@@ -6,16 +6,16 @@
target C {
- timeout: 5 sec,
- logging: DEBUG,
- coordination: centralized,
- docker: true
+ timeout: 5 sec,
+ logging: DEBUG,
+ coordination: centralized,
+ docker: true
}
import Count from "../../lib/Count.lf"
import Print from "../../federated/DistributedCount.lf"
-federated reactor DistributedCountContainerized(offset: time(200 msec)) at rti {
+federated reactor DistributedCountContainerized(offset: time(200 msec)) at rti {
c = new Count()
p = new Print()
c.out -> p.in after offset
diff --git a/test/known-good/C/src/docker/federated/DistributedDoublePortContainerized.txt b/test/known-good/C/src/docker/federated/DistributedDoublePortContainerized.txt
index ee1c31623..de31a6e2b 100644
--- a/test/known-good/C/src/docker/federated/DistributedDoublePortContainerized.txt
+++ b/test/known-good/C/src/docker/federated/DistributedDoublePortContainerized.txt
@@ -6,10 +6,10 @@
target C {
- timeout: 900 msec,
- logging: DEBUG,
- coordination: centralized,
- docker: true
+ timeout: 900 msec,
+ logging: DEBUG,
+ coordination: centralized,
+ docker: true
}
import Count from "../../lib/Count.lf"
diff --git a/test/known-good/C/src/docker/federated/DistributedMultiportContainerized.txt b/test/known-good/C/src/docker/federated/DistributedMultiportContainerized.txt
index 605e3d936..97a42a168 100644
--- a/test/known-good/C/src/docker/federated/DistributedMultiportContainerized.txt
+++ b/test/known-good/C/src/docker/federated/DistributedMultiportContainerized.txt
@@ -1,8 +1,8 @@
target C {
- timeout: 1 sec,
- coordination: centralized,
- docker: true
+ timeout: 1 sec,
+ coordination: centralized,
+ docker: true
}
import Source, Destination from "../../federated/DistributedMultiport.lf"
diff --git a/test/known-good/C/src/docker/federated/DistributedStopDecentralizedContainerized.txt b/test/known-good/C/src/docker/federated/DistributedStopDecentralizedContainerized.txt
index 7c1570512..dd6abdf23 100644
--- a/test/known-good/C/src/docker/federated/DistributedStopDecentralizedContainerized.txt
+++ b/test/known-good/C/src/docker/federated/DistributedStopDecentralizedContainerized.txt
@@ -5,8 +5,8 @@
target C {
- coordination: decentralized,
- docker: true
+ coordination: decentralized,
+ docker: true
}
import Sender, Receiver from "../../federated/DistributedStop.lf"
diff --git a/test/known-good/C/src/federated/BroadcastFeedback.txt b/test/known-good/C/src/federated/BroadcastFeedback.txt
index ea74808d7..a58906bd3 100644
--- a/test/known-good/C/src/federated/BroadcastFeedback.txt
+++ b/test/known-good/C/src/federated/BroadcastFeedback.txt
@@ -2,14 +2,14 @@
target C {
- timeout: 1 sec,
- build-type: RelWithDebInfo
+ timeout: 1 sec,
+ build-type: RelWithDebInfo
}
reactor SenderAndReceiver {
- output out: int
- input[2] in: int
- state received: bool(false)
+ output out: int
+ input[2] in: int
+ state received: bool(false)
reaction(startup) -> out {= lf_set(out, 42); =}
@@ -28,7 +28,7 @@
}
federated reactor {
- s = new[2] SenderAndReceiver()
+ s = new[2] SenderAndReceiver()
(s.out)+ -> s.in
}
diff --git a/test/known-good/C/src/federated/BroadcastFeedbackWithHierarchy.txt b/test/known-good/C/src/federated/BroadcastFeedbackWithHierarchy.txt
index 37f26e681..56d318a18 100644
--- a/test/known-good/C/src/federated/BroadcastFeedbackWithHierarchy.txt
+++ b/test/known-good/C/src/federated/BroadcastFeedbackWithHierarchy.txt
@@ -2,13 +2,13 @@
target C {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor SenderAndReceiver {
- output out: int
- input[2] in: int
- state received: bool(false)
+ output out: int
+ input[2] in: int
+ state received: bool(false)
r = new Receiver()
in -> r.in
@@ -17,8 +17,8 @@
}
reactor Receiver {
- input[2] in: int
- state received: bool(false)
+ input[2] in: int
+ state received: bool(false)
reaction(in) {=
if (in[0]->is_present && in[1]->is_present && in[0]->value == 42 && in[1]->value == 42) {
@@ -35,7 +35,7 @@
}
federated reactor {
- s = new[2] SenderAndReceiver()
+ s = new[2] SenderAndReceiver()
(s.out)+ -> s.in
}
diff --git a/test/known-good/C/src/federated/ChainWithDelay.txt b/test/known-good/C/src/federated/ChainWithDelay.txt
index f4a208440..c1d4c964f 100644
--- a/test/known-good/C/src/federated/ChainWithDelay.txt
+++ b/test/known-good/C/src/federated/ChainWithDelay.txt
@@ -4,7 +4,7 @@
target C {
- timeout: 3 msec
+ timeout: 3 msec
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/C/src/federated/CycleDetection.txt b/test/known-good/C/src/federated/CycleDetection.txt
index b4be8b9b7..45ce47b9a 100644
--- a/test/known-good/C/src/federated/CycleDetection.txt
+++ b/test/known-good/C/src/federated/CycleDetection.txt
@@ -6,13 +6,13 @@
target C
reactor CAReplica {
- input local_update: int
- input remote_update: int
- input query: int
+ input local_update: int
+ input remote_update: int
+ input query: int
- state balance: int(0)
+ state balance: int(0)
- output response: int
+ output response: int
reaction(local_update, remote_update) {=
if (local_update->is_present) {
@@ -27,8 +27,8 @@
}
reactor UserInput {
- input balance: int
- output deposit: int
+ input balance: int
+ output deposit: int
reaction(startup) -> deposit {= lf_set(deposit, 100); =}
diff --git a/test/known-good/C/src/federated/DecentralizedP2PComm.txt b/test/known-good/C/src/federated/DecentralizedP2PComm.txt
index 97c37b0b1..3222fe69e 100644
--- a/test/known-good/C/src/federated/DecentralizedP2PComm.txt
+++ b/test/known-good/C/src/federated/DecentralizedP2PComm.txt
@@ -1,20 +1,20 @@
target C {
- timeout: 1 sec,
- tracing: true,
- clock-sync: off,
- coordination: decentralized
+ timeout: 1 sec,
+ tracing: true,
+ clock-sync: off,
+ coordination: decentralized
}
reactor Platform(
- start: int(0),
- expected_start: int(0),
- stp_offset_param: time(0)
+ start: int(0),
+ expected_start: int(0),
+ stp_offset_param: time(0)
) {
- input in: int
- output out: int
+ input in: int
+ output out: int
timer t(0, 100 msec)
- state count: int(start)
- state expected: int(expected_start)
+ state count: int(start)
+ state expected: int(expected_start)
reaction(t) -> out {= lf_set(out, self->count++); =}
diff --git a/test/known-good/C/src/federated/DecentralizedP2PUnbalancedTimeout.txt b/test/known-good/C/src/federated/DecentralizedP2PUnbalancedTimeout.txt
index 6e2911ac1..75baf29bd 100644
--- a/test/known-good/C/src/federated/DecentralizedP2PUnbalancedTimeout.txt
+++ b/test/known-good/C/src/federated/DecentralizedP2PUnbalancedTimeout.txt
@@ -7,14 +7,14 @@
target C {
- timeout: 1 msec,
- coordination: decentralized
+ timeout: 1 msec,
+ coordination: decentralized
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -28,8 +28,8 @@
}
reactor Destination {
- input x: int
- state s: int(1)
+ input x: int
+ state s: int(1)
reaction(x) {=
lf_print("Received %d", x->value);
@@ -48,7 +48,7 @@
=}
}
-federated reactor(period: time(10 usec)) {
+federated reactor(period: time(10 usec)) {
c = new Clock(period = period)
d = new Destination()
c.y -> d.x
diff --git a/test/known-good/C/src/federated/DecentralizedP2PUnbalancedTimeoutPhysical.txt b/test/known-good/C/src/federated/DecentralizedP2PUnbalancedTimeoutPhysical.txt
index 5f55d2212..95969290e 100644
--- a/test/known-good/C/src/federated/DecentralizedP2PUnbalancedTimeoutPhysical.txt
+++ b/test/known-good/C/src/federated/DecentralizedP2PUnbalancedTimeoutPhysical.txt
@@ -8,14 +8,14 @@
target C {
- timeout: 1 msec,
- coordination: decentralized
+ timeout: 1 msec,
+ coordination: decentralized
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
(self->count)++;
@@ -29,8 +29,8 @@
}
reactor Destination {
- input x: int
- state s: int(1)
+ input x: int
+ state s: int(1)
reaction(x) {=
@@ -46,7 +46,7 @@
=}
}
-federated reactor(period: time(10 usec)) {
+federated reactor(period: time(10 usec)) {
c = new Clock(period = period)
d = new Destination()
c.y ~> d.x
diff --git a/test/known-good/C/src/federated/DistributedBank.txt b/test/known-good/C/src/federated/DistributedBank.txt
index a542a2027..fda456a8a 100644
--- a/test/known-good/C/src/federated/DistributedBank.txt
+++ b/test/known-good/C/src/federated/DistributedBank.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 1 sec,
- coordination: centralized
+ timeout: 1 sec,
+ coordination: centralized
}
reactor Node {
timer t(0, 100 msec)
- state count: int(0)
+ state count: int(0)
reaction(t) {= lf_print("Hello world %d.", self->count++); =}
@@ -18,6 +18,6 @@
}
federated reactor DistributedBank {
- n = new[2] Node()
+ n = new[2] Node()
}
diff --git a/test/known-good/C/src/federated/DistributedBankToMultiport.txt b/test/known-good/C/src/federated/DistributedBankToMultiport.txt
index 6a71d11c1..e173fe84a 100644
--- a/test/known-good/C/src/federated/DistributedBankToMultiport.txt
+++ b/test/known-good/C/src/federated/DistributedBankToMultiport.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 3 sec
+ timeout: 3 sec
}
import Count from "../lib/Count.lf"
reactor Destination {
- input[2] in: int
- state count: int(1)
+ input[2] in: int
+ state count: int(1)
reaction(in) {=
for (int i = 0; i < in_width; i++) {
@@ -27,7 +27,7 @@
}
federated reactor {
- s = new[2] Count()
+ s = new[2] Count()
d = new Destination()
s.out -> d.in
}
diff --git a/test/known-good/C/src/federated/DistributedCount.txt b/test/known-good/C/src/federated/DistributedCount.txt
index 08536a889..494d55165 100644
--- a/test/known-good/C/src/federated/DistributedCount.txt
+++ b/test/known-good/C/src/federated/DistributedCount.txt
@@ -6,15 +6,15 @@
target C {
- timeout: 5 sec,
- coordination: centralized
+ timeout: 5 sec,
+ coordination: centralized
}
import Count from "../lib/Count.lf"
reactor Print {
- input in: int
- state c: int(1)
+ input in: int
+ state c: int(1)
reaction(in) {=
interval_t elapsed_time = lf_time_logical_elapsed();
@@ -35,7 +35,7 @@
=}
}
-federated reactor DistributedCount(offset: time(200 msec)) {
+federated reactor DistributedCount(offset: time(200 msec)) {
c = new Count()
p = new Print()
c.out -> p.in after offset
diff --git a/test/known-good/C/src/federated/DistributedCountDecentralized.txt b/test/known-good/C/src/federated/DistributedCountDecentralized.txt
index ac77d768c..cc2fdc081 100644
--- a/test/known-good/C/src/federated/DistributedCountDecentralized.txt
+++ b/test/known-good/C/src/federated/DistributedCountDecentralized.txt
@@ -6,15 +6,15 @@
target C {
- timeout: 5 sec,
- coordination: decentralized
+ timeout: 5 sec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
reactor Print {
- input in: int
- state c: int(1)
+ input in: int
+ state c: int(1)
reaction(in) {=
interval_t elapsed_time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/federated/DistributedCountDecentralizedLate.txt b/test/known-good/C/src/federated/DistributedCountDecentralizedLate.txt
index d538dec97..e329e71b0 100644
--- a/test/known-good/C/src/federated/DistributedCountDecentralizedLate.txt
+++ b/test/known-good/C/src/federated/DistributedCountDecentralizedLate.txt
@@ -7,20 +7,20 @@
target C {
- timeout: 4900 msec,
- coordination: decentralized
+ timeout: 4900 msec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
reactor Print {
- input in: int // STP ()
- state success: int(0)
- state success_stp_violation: int(0)
+ input in: int // STP ()
+ state success: int(0)
+ state success_stp_violation: int(0)
timer t(0, 10 msec)
- state c: int(0)
+ state c: int(0)
reaction(in) {=
tag_t current_tag = lf_tag();
diff --git a/test/known-good/C/src/federated/DistributedCountDecentralizedLateHierarchy.txt b/test/known-good/C/src/federated/DistributedCountDecentralizedLateHierarchy.txt
index 396914da1..8a8555c1e 100644
--- a/test/known-good/C/src/federated/DistributedCountDecentralizedLateHierarchy.txt
+++ b/test/known-good/C/src/federated/DistributedCountDecentralizedLateHierarchy.txt
@@ -9,20 +9,20 @@
target C {
- timeout: 4900 msec,
- coordination: decentralized
+ timeout: 4900 msec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
reactor ImportantActuator {
- input in: int
- state success: int(0)
- state success_stp_violation: int(0)
+ input in: int
+ state success: int(0)
+ state success_stp_violation: int(0)
timer t(0, 10 msec)
- state c: int(0)
+ state c: int(0)
reaction(in) {=
tag_t current_tag = lf_tag();
@@ -61,7 +61,7 @@
}
reactor Print {
- input in: int
+ input in: int
reaction(in) {=
tag_t current_tag = lf_tag();
@@ -75,11 +75,11 @@
}
reactor Receiver {
- input in: int
+ input in: int
timer t(0, 10 msec)
- state c: int(0)
+ state c: int(0)
p = new Print()
a = new ImportantActuator()
in -> p.in
diff --git a/test/known-good/C/src/federated/DistributedCountPhysical.txt b/test/known-good/C/src/federated/DistributedCountPhysical.txt
index d84451ad7..d8c3a51ab 100644
--- a/test/known-good/C/src/federated/DistributedCountPhysical.txt
+++ b/test/known-good/C/src/federated/DistributedCountPhysical.txt
@@ -8,13 +8,13 @@
target C {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Count {
timer t(200 msec, 1 sec)
- state s: int(0)
- output out: int
+ state s: int(0)
+ output out: int
reaction(t) -> out {=
lf_set(out, self->s);
@@ -23,8 +23,8 @@
}
reactor Print {
- input in: int
- state c: int(0)
+ input in: int
+ state c: int(0)
reaction(in) {=
interval_t elapsed_time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/federated/DistributedCountPhysicalAfterDelay.txt b/test/known-good/C/src/federated/DistributedCountPhysicalAfterDelay.txt
index 9370d1f62..feb316f1a 100644
--- a/test/known-good/C/src/federated/DistributedCountPhysicalAfterDelay.txt
+++ b/test/known-good/C/src/federated/DistributedCountPhysicalAfterDelay.txt
@@ -11,8 +11,8 @@
import Count from "../lib/Count.lf"
reactor Print {
- input in: int
- state c: int(1)
+ input in: int
+ state c: int(1)
reaction(in) {=
interval_t elapsed_time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/federated/DistributedCountPhysicalDecentralized.txt b/test/known-good/C/src/federated/DistributedCountPhysicalDecentralized.txt
index 9e8ac872d..bf17e0732 100644
--- a/test/known-good/C/src/federated/DistributedCountPhysicalDecentralized.txt
+++ b/test/known-good/C/src/federated/DistributedCountPhysicalDecentralized.txt
@@ -8,14 +8,14 @@
target C {
- timeout: 1 sec,
- coordination: decentralized
+ timeout: 1 sec,
+ coordination: decentralized
}
reactor Count {
timer t(200 msec, 1 sec)
- state s: int(0)
- output out: int
+ state s: int(0)
+ output out: int
reaction(t) -> out {=
lf_set(out, self->s);
@@ -24,8 +24,8 @@
}
reactor Print {
- input in: int
- state c: int(0)
+ input in: int
+ state c: int(0)
reaction(in) {=
interval_t elapsed_time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/federated/DistributedDoublePort.txt b/test/known-good/C/src/federated/DistributedDoublePort.txt
index 425edd89a..b2fd70f94 100644
--- a/test/known-good/C/src/federated/DistributedDoublePort.txt
+++ b/test/known-good/C/src/federated/DistributedDoublePort.txt
@@ -6,17 +6,17 @@
target C {
- timeout: 900 msec,
- logging: DEBUG,
- coordination: centralized
+ timeout: 900 msec,
+ logging: DEBUG,
+ coordination: centralized
}
import Count from "../lib/Count.lf"
reactor CountMicrostep {
- state count: int(1)
- output out: int
- logical action act: int
+ state count: int(1)
+ output out: int
+ logical action act: int
timer t(0, 1 sec)
reaction(t) -> act {= lf_schedule_int(act, 0, self->count++); =}
@@ -25,8 +25,8 @@
}
reactor Print {
- input in: int
- input in2: int
+ input in: int
+ input in2: int
reaction(in, in2) {=
interval_t elapsed_time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/federated/DistributedLogicalActionUpstreamLong.txt b/test/known-good/C/src/federated/DistributedLogicalActionUpstreamLong.txt
index 3e930d785..1a806c446 100644
--- a/test/known-good/C/src/federated/DistributedLogicalActionUpstreamLong.txt
+++ b/test/known-good/C/src/federated/DistributedLogicalActionUpstreamLong.txt
@@ -3,17 +3,17 @@
target C {
- timeout: 1 msec
+ timeout: 1 msec
}
import PassThrough from "../lib/PassThrough.lf"
import TestCount from "../lib/TestCount.lf"
reactor WithLogicalAction {
- output out: int
- state thread_id: lf_thread_t(0)
- state counter: int(1)
- logical action act(0): int
+ output out: int
+ state thread_id: lf_thread_t(0)
+ state counter: int(1)
+ logical action act(0): int
reaction(startup, act) -> act, out {=
lf_set(out, self->counter);
diff --git a/test/known-good/C/src/federated/DistributedLoopedAction.txt b/test/known-good/C/src/federated/DistributedLoopedAction.txt
index 868a8b610..eb4bf7c94 100644
--- a/test/known-good/C/src/federated/DistributedLoopedAction.txt
+++ b/test/known-good/C/src/federated/DistributedLoopedAction.txt
@@ -5,16 +5,16 @@
target C {
- timeout: 1 sec
+ timeout: 1 sec
}
import Sender from "../lib/LoopedActionSender.lf"
-reactor Receiver(take_a_break_after: int(10), break_interval: time(400 msec)) {
- input in: int
- state received_messages: int(0)
- state total_received_messages: int(0)
- state breaks: int(0)
+reactor Receiver(take_a_break_after: int(10), break_interval: time(400 msec)) {
+ input in: int
+ state received_messages: int(0)
+ state total_received_messages: int(0)
+ state breaks: int(0)
timer t(0, 1 msec)
diff --git a/test/known-good/C/src/federated/DistributedLoopedActionDecentralized.txt b/test/known-good/C/src/federated/DistributedLoopedActionDecentralized.txt
index ca2103312..060bd4b81 100644
--- a/test/known-good/C/src/federated/DistributedLoopedActionDecentralized.txt
+++ b/test/known-good/C/src/federated/DistributedLoopedActionDecentralized.txt
@@ -14,17 +14,17 @@
target C {
- timeout: 1 sec,
- coordination: decentralized
+ timeout: 1 sec,
+ coordination: decentralized
}
import Sender from "../lib/LoopedActionSender.lf"
-reactor Receiver(take_a_break_after: int(10), break_interval: time(400 msec)) {
- input in: int
- state received_messages: int(0)
- state total_received_messages: int(0)
- state breaks: int(0)
+reactor Receiver(take_a_break_after: int(10), break_interval: time(400 msec)) {
+ input in: int
+ state received_messages: int(0)
+ state total_received_messages: int(0)
+ state breaks: int(0)
reaction(in) {=
tag_t current_tag = lf_tag();
@@ -77,12 +77,12 @@
}
reactor STPReceiver(
- take_a_break_after: int(10),
- break_interval: time(400 msec),
- stp_offset: time(0)
+ take_a_break_after: int(10),
+ break_interval: time(400 msec),
+ stp_offset: time(0)
) {
- input in: int
- state last_time_updated_stp: time(0)
+ input in: int
+ state last_time_updated_stp: time(0)
receiver = new Receiver(take_a_break_after = 10, break_interval = 400 msec)
timer t(0, 1 msec)
diff --git a/test/known-good/C/src/federated/DistributedLoopedPhysicalAction.txt b/test/known-good/C/src/federated/DistributedLoopedPhysicalAction.txt
index 765f34775..a45cea39f 100644
--- a/test/known-good/C/src/federated/DistributedLoopedPhysicalAction.txt
+++ b/test/known-good/C/src/federated/DistributedLoopedPhysicalAction.txt
@@ -10,16 +10,16 @@
target C {
- timeout: 1 sec,
- coordination-options: {
- advance-message-interval: 10 msec
+ timeout: 1 sec,
+ coordination-options: {
+ advance-message-interval: 10 msec
}
}
-reactor Sender(take_a_break_after: int(10), break_interval: time(550 msec)) {
- output out: int
+reactor Sender(take_a_break_after: int(10), break_interval: time(550 msec)) {
+ output out: int
physical action act
- state sent_messages: int(0)
+ state sent_messages: int(0)
reaction(startup, act) -> act, out {=
@@ -35,11 +35,11 @@
=}
}
-reactor Receiver(take_a_break_after: int(10), break_interval: time(550 msec)) {
- input in: int
- state received_messages: int(0)
- state total_received_messages: int(0)
- state breaks: int(0)
+reactor Receiver(take_a_break_after: int(10), break_interval: time(550 msec)) {
+ input in: int
+ state received_messages: int(0)
+ state total_received_messages: int(0)
+ state breaks: int(0)
timer t(0, 1 msec)
diff --git a/test/known-good/C/src/federated/DistributedLoopedPhysicalActionDecentralized.txt b/test/known-good/C/src/federated/DistributedLoopedPhysicalActionDecentralized.txt
index aad18e6fd..83662bda6 100644
--- a/test/known-good/C/src/federated/DistributedLoopedPhysicalActionDecentralized.txt
+++ b/test/known-good/C/src/federated/DistributedLoopedPhysicalActionDecentralized.txt
@@ -5,8 +5,8 @@
target C {
- timeout: 1 sec,
- coordination: decentralized
+ timeout: 1 sec,
+ coordination: decentralized
}
import Sender, Receiver from "DistributedLoopedPhysicalAction.lf"
diff --git a/test/known-good/C/src/federated/DistributedMultiport.txt b/test/known-good/C/src/federated/DistributedMultiport.txt
index 450021370..06c746550 100644
--- a/test/known-good/C/src/federated/DistributedMultiport.txt
+++ b/test/known-good/C/src/federated/DistributedMultiport.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 1 sec,
- coordination: centralized
+ timeout: 1 sec,
+ coordination: centralized
}
reactor Source {
- output[4] out: int
+ output[4] out: int
timer t(0, 100 msec)
- state count: int(0)
+ state count: int(0)
reaction(t) -> out {=
for (int i = 0; i < out_width; i++) {
@@ -17,8 +17,8 @@
}
reactor Destination {
- input[4] in: int
- state count: int(0)
+ input[4] in: int
+ state count: int(0)
reaction(in) {=
for (int i = 0; i < in_width; i++) {
diff --git a/test/known-good/C/src/federated/DistributedMultiportToBank.txt b/test/known-good/C/src/federated/DistributedMultiportToBank.txt
index 3af49907b..238133d94 100644
--- a/test/known-good/C/src/federated/DistributedMultiportToBank.txt
+++ b/test/known-good/C/src/federated/DistributedMultiportToBank.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Source {
- output[2] out: int
+ output[2] out: int
timer t(0, 100 msec)
- state count: int(0)
+ state count: int(0)
reaction(t) -> out {=
for (int i = 0; i < out_width; i++) {
@@ -17,8 +17,8 @@
}
reactor Destination {
- input in: int
- state count: int(0)
+ input in: int
+ state count: int(0)
reaction(in) {=
lf_print("Received %d.", in->value);
@@ -36,7 +36,7 @@
federated reactor DistributedMultiportToBank {
s = new Source()
- d = new[2] Destination()
+ d = new[2] Destination()
s.out -> d.in
}
diff --git a/test/known-good/C/src/federated/DistributedMultiportToken.txt b/test/known-good/C/src/federated/DistributedMultiportToken.txt
index 605a11c0a..bac767b2f 100644
--- a/test/known-good/C/src/federated/DistributedMultiportToken.txt
+++ b/test/known-good/C/src/federated/DistributedMultiportToken.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 1 sec,
- coordination: centralized
+ timeout: 1 sec,
+ coordination: centralized
}
reactor Source {
- output[4] out: char*
+ output[4] out: char*
timer t(0, 200 msec)
- state count: int(0)
+ state count: int(0)
reaction(t) -> out {=
for (int i = 0; i < out_width; i++) {
@@ -28,7 +28,7 @@
}
reactor Destination {
- input[4] in: char*
+ input[4] in: char*
reaction(in) {=
for (int i = 0; i < in_width; i++) {
diff --git a/test/known-good/C/src/federated/DistributedNetworkOrder.txt b/test/known-good/C/src/federated/DistributedNetworkOrder.txt
index 1962e5f91..daac31a0d 100644
--- a/test/known-good/C/src/federated/DistributedNetworkOrder.txt
+++ b/test/known-good/C/src/federated/DistributedNetworkOrder.txt
@@ -9,12 +9,12 @@
target C {
- timeout: 1 sec,
- build-type: RelWithDebInfo
+ timeout: 1 sec,
+ build-type: RelWithDebInfo
}
reactor Sender {
- output out: int
+ output out: int
timer t(0, 1 msec)
reaction(t) -> out {=
@@ -31,8 +31,8 @@
}
reactor Receiver {
- input in: int
- state success: int(0)
+ input in: int
+ state success: int(0)
reaction(in) {=
tag_t current_tag = lf_tag();
diff --git a/test/known-good/C/src/federated/DistributedPhysicalActionUpstream.txt b/test/known-good/C/src/federated/DistributedPhysicalActionUpstream.txt
index ace6b3b62..d07534fbc 100644
--- a/test/known-good/C/src/federated/DistributedPhysicalActionUpstream.txt
+++ b/test/known-good/C/src/federated/DistributedPhysicalActionUpstream.txt
@@ -3,9 +3,9 @@
target C {
- timeout: 10 secs,
- coordination-options: {
- advance-message-interval: 30 msec
+ timeout: 10 secs,
+ coordination-options: {
+ advance-message-interval: 30 msec
}
}
@@ -29,9 +29,9 @@
=}
reactor WithPhysicalAction {
- output out: int
- state thread_id: lf_thread_t(0)
- physical action act(0): int
+ output out: int
+ state thread_id: lf_thread_t(0)
+ physical action act(0): int
reaction(startup) -> act {=
diff --git a/test/known-good/C/src/federated/DistributedPhysicalActionUpstreamLong.txt b/test/known-good/C/src/federated/DistributedPhysicalActionUpstreamLong.txt
index 82bd823e3..2352a9ae5 100644
--- a/test/known-good/C/src/federated/DistributedPhysicalActionUpstreamLong.txt
+++ b/test/known-good/C/src/federated/DistributedPhysicalActionUpstreamLong.txt
@@ -3,9 +3,9 @@
target C {
- timeout: 1 sec,
- coordination-options: {
- advance-message-interval: 500 usec
+ timeout: 1 sec,
+ coordination-options: {
+ advance-message-interval: 500 usec
}
}
@@ -29,9 +29,9 @@
=}
reactor WithPhysicalAction {
- output out: int
- state thread_id: lf_thread_t(0)
- physical action act(0): int
+ output out: int
+ state thread_id: lf_thread_t(0)
+ physical action act(0): int
reaction(startup) -> act {=
diff --git a/test/known-good/C/src/federated/DistributedStop.txt b/test/known-good/C/src/federated/DistributedStop.txt
index 61125f57c..594211457 100644
--- a/test/known-good/C/src/federated/DistributedStop.txt
+++ b/test/known-good/C/src/federated/DistributedStop.txt
@@ -7,10 +7,10 @@
target C
reactor Sender {
- output out: int
+ output out: int
timer t(0, 1 usec)
logical action act
- state reaction_invoked_correctly: bool(false)
+ state reaction_invoked_correctly: bool(false)
reaction(t, act) -> out, act {=
lf_print("Sending 42 at (%lld, %u).",
@@ -63,10 +63,10 @@
}
reactor Receiver(
- stp_offset: time(10 msec)
+ stp_offset: time(10 msec)
) {
- input in: int
- state reaction_invoked_correctly: bool(false)
+ input in: int
+ state reaction_invoked_correctly: bool(false)
reaction(in) {=
lf_print("Received %d at (%lld, %u).",
diff --git a/test/known-good/C/src/federated/DistributedStopDecentralized.txt b/test/known-good/C/src/federated/DistributedStopDecentralized.txt
index 8d28291cf..a2f16c3cf 100644
--- a/test/known-good/C/src/federated/DistributedStopDecentralized.txt
+++ b/test/known-good/C/src/federated/DistributedStopDecentralized.txt
@@ -5,7 +5,7 @@
target C {
- coordination: decentralized
+ coordination: decentralized
}
import Sender, Receiver from "DistributedStop.lf"
diff --git a/test/known-good/C/src/federated/DistributedStopZero.txt b/test/known-good/C/src/federated/DistributedStopZero.txt
index 8193974ad..4ca5c58ba 100644
--- a/test/known-good/C/src/federated/DistributedStopZero.txt
+++ b/test/known-good/C/src/federated/DistributedStopZero.txt
@@ -7,7 +7,7 @@
target C
reactor Sender {
- output out: int
+ output out: int
timer t(0, 1 usec)
reaction(t) -> out {=
@@ -42,7 +42,7 @@
}
reactor Receiver {
- input in: int
+ input in: int
reaction(in) {=
printf("Received %d at (%lld, %u).\n",
diff --git a/test/known-good/C/src/federated/DistributedToken.txt b/test/known-good/C/src/federated/DistributedToken.txt
index bcb618309..b4ccab542 100644
--- a/test/known-good/C/src/federated/DistributedToken.txt
+++ b/test/known-good/C/src/federated/DistributedToken.txt
@@ -16,8 +16,8 @@
target C {
- timeout: 5 secs,
- coordination: decentralized
+ timeout: 5 secs,
+ coordination: decentralized
}
@@ -26,11 +26,11 @@
-reactor MessageGenerator(root: string("")) {
+reactor MessageGenerator(root: string("")) {
- output message: char*
- state count: int(1)
+ output message: char*
+ state count: int(1)
timer t(1 sec, 1 sec)
@@ -56,8 +56,8 @@
reactor PrintMessage {
- input message: char*
- state count: int(0)
+ input message: char*
+ state count: int(0)
reaction(message) {=
printf("PrintMessage: At (elapsed) logical time %lld, receiver receives: %s\n",
diff --git a/test/known-good/C/src/federated/FeedbackDelay.txt b/test/known-good/C/src/federated/FeedbackDelay.txt
index 84f2961a0..cb0518193 100644
--- a/test/known-good/C/src/federated/FeedbackDelay.txt
+++ b/test/known-good/C/src/federated/FeedbackDelay.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 1 sec,
- logging: DEBUG
+ timeout: 1 sec,
+ logging: DEBUG
}
reactor PhysicalPlant {
- input control: double
- output sensor: double
+ input control: double
+ output sensor: double
timer t(0, 33 msec)
- state last_sensor_time: time(0)
- state previous_sensor_time: time(0)
+ state last_sensor_time: time(0)
+ state previous_sensor_time: time(0)
reaction(t) -> sensor {=
lf_set(sensor, 42);
@@ -24,14 +24,14 @@
}
reactor Controller {
- input sensor: double
- output control: double
+ input sensor: double
+ output control: double
- state latest_control: double(0.0)
- state first: bool(true)
+ state latest_control: double(0.0)
+ state first: bool(true)
- output request_for_planning: double
- input planning: double
+ output request_for_planning: double
+ input planning: double
reaction(planning) {= self->latest_control = planning->value; =}
@@ -45,8 +45,8 @@
}
reactor Planner {
- input request: double
- output response: double
+ input request: double
+ output response: double
reaction(request) -> response {=
lf_sleep(MSEC(10));
diff --git a/test/known-good/C/src/federated/FeedbackDelaySimple.txt b/test/known-good/C/src/federated/FeedbackDelaySimple.txt
index 2c1bf0ce7..84e553f61 100644
--- a/test/known-good/C/src/federated/FeedbackDelaySimple.txt
+++ b/test/known-good/C/src/federated/FeedbackDelaySimple.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Loop {
- input in: int
- output out: int
+ input in: int
+ output out: int
timer t(0, 100 msec)
- state count: int(1)
+ state count: int(1)
reaction(in) {=
lf_print("Received %d.", in->value);
diff --git a/test/known-good/C/src/federated/HelloDistributed.txt b/test/known-good/C/src/federated/HelloDistributed.txt
index 111a8e823..119a513f5 100644
--- a/test/known-good/C/src/federated/HelloDistributed.txt
+++ b/test/known-good/C/src/federated/HelloDistributed.txt
@@ -8,7 +8,7 @@
target C
reactor Source {
- output out: string
+ output out: string
reaction(startup) -> out {=
lf_print("Sending 'Hello World!' message from source federate.");
@@ -18,8 +18,8 @@
}
reactor Destination {
- input in: string
- state received: bool(false)
+ input in: string
+ state received: bool(false)
reaction(startup) {= lf_print("Destination started."); =}
diff --git a/test/known-good/C/src/federated/LoopDistributedCentralized.txt b/test/known-good/C/src/federated/LoopDistributedCentralized.txt
index 75d95b1b8..c88e967d4 100644
--- a/test/known-good/C/src/federated/LoopDistributedCentralized.txt
+++ b/test/known-good/C/src/federated/LoopDistributedCentralized.txt
@@ -5,20 +5,20 @@
target C {
- flags: "-Wall",
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ flags: "-Wall",
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 4 sec,
- logging: DEBUG
-}
+ timeout: 4 sec,
+ logging: DEBUG
+}
-reactor Looper(incr: int(1), delay: time(0 msec)) {
- input in: int
- output out: int
+reactor Looper(incr: int(1), delay: time(0 msec)) {
+ input in: int
+ output out: int
physical action a(delay)
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
@@ -42,7 +42,7 @@
=}
}
-federated reactor LoopDistributedCentralized(delay: time(0)) {
+federated reactor LoopDistributedCentralized(delay: time(0)) {
left = new Looper()
right = new Looper(incr = -1)
left.out -> right.in
diff --git a/test/known-good/C/src/federated/LoopDistributedCentralized2.txt b/test/known-good/C/src/federated/LoopDistributedCentralized2.txt
index 06654f279..02b185f11 100644
--- a/test/known-good/C/src/federated/LoopDistributedCentralized2.txt
+++ b/test/known-good/C/src/federated/LoopDistributedCentralized2.txt
@@ -5,19 +5,19 @@
target C {
- flags: "-Wall",
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ flags: "-Wall",
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 4 sec
-}
+ timeout: 4 sec
+}
-reactor Looper(incr: int(1), delay: time(0 msec)) {
- input in: int
- output out: int
+reactor Looper(incr: int(1), delay: time(0 msec)) {
+ input in: int
+ output out: int
physical action a(delay)
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
@@ -41,11 +41,11 @@
=}
}
-reactor Looper2(incr: int(1), delay: time(0 msec)) {
- input in: int
- output out: int
+reactor Looper2(incr: int(1), delay: time(0 msec)) {
+ input in: int
+ output out: int
physical action a(delay)
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
@@ -69,7 +69,7 @@
=}
}
-federated reactor(delay: time(0)) {
+federated reactor(delay: time(0)) {
left = new Looper()
right = new Looper2(incr = -1)
left.out -> right.in
diff --git a/test/known-good/C/src/federated/LoopDistributedCentralizedPhysicalAction.txt b/test/known-good/C/src/federated/LoopDistributedCentralizedPhysicalAction.txt
index 02dcf01e2..c5ad736ed 100644
--- a/test/known-good/C/src/federated/LoopDistributedCentralizedPhysicalAction.txt
+++ b/test/known-good/C/src/federated/LoopDistributedCentralizedPhysicalAction.txt
@@ -5,13 +5,13 @@
target C {
- flags: "-Wall",
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ flags: "-Wall",
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 5 sec
-}
+ timeout: 5 sec
+}
preamble {=
@@ -27,11 +27,11 @@
}
=}
-reactor Looper(incr: int(1), delay: time(0 msec)) {
- input in: int
- output out: int
+reactor Looper(incr: int(1), delay: time(0 msec)) {
+ input in: int
+ output out: int
physical action a(delay)
- state count: int(0)
+ state count: int(0)
reaction(startup) -> a {=
@@ -62,7 +62,7 @@
=}
}
-federated reactor(delay: time(0)) {
+federated reactor(delay: time(0)) {
left = new Looper()
right = new Looper(incr = -1)
left.out -> right.in
diff --git a/test/known-good/C/src/federated/LoopDistributedCentralizedPrecedence.txt b/test/known-good/C/src/federated/LoopDistributedCentralizedPrecedence.txt
index 3a1d9c3b1..4f464e890 100644
--- a/test/known-good/C/src/federated/LoopDistributedCentralizedPrecedence.txt
+++ b/test/known-good/C/src/federated/LoopDistributedCentralizedPrecedence.txt
@@ -6,19 +6,19 @@
target C {
- flags: "-Wall",
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ flags: "-Wall",
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 5 sec
-}
+ timeout: 5 sec
+}
-reactor Looper(incr: int(1), delay: time(0 msec)) {
- input in: int
- output out: int
- state count: int(0)
- state received_count: int(0)
+reactor Looper(incr: int(1), delay: time(0 msec)) {
+ input in: int
+ output out: int
+ state count: int(0)
+ state received_count: int(0)
timer t(0, 1 sec)
reaction(t) -> out {=
@@ -48,7 +48,7 @@
=}
}
-federated reactor(delay: time(0)) {
+federated reactor(delay: time(0)) {
left = new Looper()
right = new Looper(incr = -1)
left.out -> right.in
diff --git a/test/known-good/C/src/federated/LoopDistributedCentralizedPrecedenceHierarchy.txt b/test/known-good/C/src/federated/LoopDistributedCentralizedPrecedenceHierarchy.txt
index 5059d6693..80efe6016 100644
--- a/test/known-good/C/src/federated/LoopDistributedCentralizedPrecedenceHierarchy.txt
+++ b/test/known-good/C/src/federated/LoopDistributedCentralizedPrecedenceHierarchy.txt
@@ -7,19 +7,19 @@
target C {
- flags: "-Wall",
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ flags: "-Wall",
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 5 sec
-}
+ timeout: 5 sec
+}
-reactor Contained(incr: int(1)) {
+reactor Contained(incr: int(1)) {
timer t(0, 1 sec)
- input in: int
- state count: int(0)
- state received_count: int(0)
+ input in: int
+ state count: int(0)
+ state received_count: int(0)
reaction(t) {= self->count += self->incr; =}
@@ -32,10 +32,10 @@
=}
}
-reactor Looper(incr: int(1), delay: time(0 msec)) {
- input in: int
- output out: int
- state count: int(0)
+reactor Looper(incr: int(1), delay: time(0 msec)) {
+ input in: int
+ output out: int
+ state count: int(0)
timer t(0, 1 sec)
c = new Contained(incr = incr)
@@ -62,7 +62,7 @@
=}
}
-federated reactor(delay: time(0)) {
+federated reactor(delay: time(0)) {
left = new Looper()
right = new Looper(incr = -1)
left.out -> right.in
diff --git a/test/known-good/C/src/federated/LoopDistributedDecentralized.txt b/test/known-good/C/src/federated/LoopDistributedDecentralized.txt
index 8171bedf0..94a15f2d4 100644
--- a/test/known-good/C/src/federated/LoopDistributedDecentralized.txt
+++ b/test/known-good/C/src/federated/LoopDistributedDecentralized.txt
@@ -5,8 +5,8 @@
target C {
- coordination: decentralized,
- timeout: 5 sec
+ coordination: decentralized,
+ timeout: 5 sec
}
preamble {=
@@ -23,11 +23,11 @@
}
=}
-reactor Looper(incr: int(1), delay: time(0 msec), stp_offset: time(0)) {
- input in: int
- output out: int
+reactor Looper(incr: int(1), delay: time(0 msec), stp_offset: time(0)) {
+ input in: int
+ output out: int
physical action a(stp_offset)
- state count: int(0)
+ state count: int(0)
reaction(startup) -> a {=
@@ -69,7 +69,7 @@
=}
}
-federated reactor LoopDistributedDecentralized(delay: time(0)) {
+federated reactor LoopDistributedDecentralized(delay: time(0)) {
left = new Looper(stp_offset = 900 usec)
right = new Looper(incr = -1, stp_offset = 2400 usec)
left.out -> right.in
diff --git a/test/known-good/C/src/federated/LoopDistributedDouble.txt b/test/known-good/C/src/federated/LoopDistributedDouble.txt
index ff5307d13..29d238974 100644
--- a/test/known-good/C/src/federated/LoopDistributedDouble.txt
+++ b/test/known-good/C/src/federated/LoopDistributedDouble.txt
@@ -5,13 +5,13 @@
target C {
- flags: "-Wall",
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ flags: "-Wall",
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 5 sec
-}
+ timeout: 5 sec
+}
preamble {=
@@ -27,13 +27,13 @@
}
=}
-reactor Looper(incr: int(1), delay: time(0 msec)) {
- input in: int
- input in2: int
- output out: int
- output out2: int
+reactor Looper(incr: int(1), delay: time(0 msec)) {
+ input in: int
+ input in2: int
+ output out: int
+ output out2: int
physical action a(delay)
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
reaction(startup) -> a {=
@@ -82,7 +82,7 @@
=}
}
-federated reactor(delay: time(0)) {
+federated reactor(delay: time(0)) {
left = new Looper()
right = new Looper(incr = -1)
left.out -> right.in
diff --git a/test/known-good/C/src/federated/ParallelDestinations.txt b/test/known-good/C/src/federated/ParallelDestinations.txt
index 933f43ce6..b44ad92b0 100644
--- a/test/known-good/C/src/federated/ParallelDestinations.txt
+++ b/test/known-good/C/src/federated/ParallelDestinations.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec
+ timeout: 2 sec
}
import Count from "../lib/Count.lf"
import TestCount from "../lib/TestCount.lf"
reactor Source {
- output[2] out: int
+ output[2] out: int
c1 = new Count()
c2 = new Count()
diff --git a/test/known-good/C/src/federated/ParallelSources.txt b/test/known-good/C/src/federated/ParallelSources.txt
index d733c2191..9684fd6ad 100644
--- a/test/known-good/C/src/federated/ParallelSources.txt
+++ b/test/known-good/C/src/federated/ParallelSources.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec
+ timeout: 2 sec
}
import Count from "../lib/Count.lf"
import TestCount from "../lib/TestCount.lf"
reactor Destination {
- input[2] in: int
+ input[2] in: int
t1 = new TestCount(num_inputs = 3)
t2 = new TestCount(num_inputs = 3)
diff --git a/test/known-good/C/src/federated/ParallelSourcesMultiport.txt b/test/known-good/C/src/federated/ParallelSourcesMultiport.txt
index 77eb6b287..bf881bb7c 100644
--- a/test/known-good/C/src/federated/ParallelSourcesMultiport.txt
+++ b/test/known-good/C/src/federated/ParallelSourcesMultiport.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec
+ timeout: 2 sec
}
import Count from "../lib/Count.lf"
import TestCount from "../lib/TestCount.lf"
reactor Source {
- output[2] out: int
+ output[2] out: int
c1 = new Count()
c2 = new Count()
@@ -15,7 +15,7 @@
}
reactor Destination1 {
- input[3] in: int
+ input[3] in: int
t1 = new TestCount(num_inputs = 3)
t2 = new TestCount(num_inputs = 3)
diff --git a/test/known-good/C/src/federated/PhysicalSTP.txt b/test/known-good/C/src/federated/PhysicalSTP.txt
index eeb8e7bff..e0777392a 100644
--- a/test/known-good/C/src/federated/PhysicalSTP.txt
+++ b/test/known-good/C/src/federated/PhysicalSTP.txt
@@ -3,15 +3,15 @@
target C {
- timeout: 1900 msec,
- coordination: decentralized
+ timeout: 1900 msec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
-reactor Print(STP_offset_param: time(0)) {
- input in: int
- state c: int(1)
+reactor Print(STP_offset_param: time(0)) {
+ input in: int
+ state c: int(1)
reaction(in) {=
interval_t elapsed_time = lf_time_logical_elapsed();
diff --git a/test/known-good/C/src/federated/PingPongDistributed.txt b/test/known-good/C/src/federated/PingPongDistributed.txt
index 3007f51f7..36febe234 100644
--- a/test/known-good/C/src/federated/PingPongDistributed.txt
+++ b/test/known-good/C/src/federated/PingPongDistributed.txt
@@ -23,7 +23,7 @@
import Ping, Pong from "PingPongDistributedPhysical.lf"
-federated reactor(count: int(10)) {
+federated reactor(count: int(10)) {
ping = new Ping(count = count)
pong = new Pong(expected = count)
ping.send -> pong.receive
diff --git a/test/known-good/C/src/federated/PingPongDistributedPhysical.txt b/test/known-good/C/src/federated/PingPongDistributedPhysical.txt
index 0fb41ed63..f038abb0b 100644
--- a/test/known-good/C/src/federated/PingPongDistributedPhysical.txt
+++ b/test/known-good/C/src/federated/PingPongDistributedPhysical.txt
@@ -26,10 +26,10 @@
target C
-reactor Ping(count: int(10)) {
- input receive: int
- output send: int
- state pingsLeft: int(count)
+reactor Ping(count: int(10)) {
+ input receive: int
+ output send: int
+ state pingsLeft: int(count)
logical action serve
reaction(startup, serve) -> send {=
@@ -46,10 +46,10 @@
=}
}
-reactor Pong(expected: int(10)) {
- input receive: int
- output send: int
- state count: int(0)
+reactor Pong(expected: int(10)) {
+ input receive: int
+ output send: int
+ state count: int(0)
reaction(receive) -> send {=
self->count++;
@@ -71,7 +71,7 @@
=}
}
-federated reactor(count: int(10)) {
+federated reactor(count: int(10)) {
ping = new Ping(count = count)
pong = new Pong(expected = count)
ping.send ~> pong.receive
diff --git a/test/known-good/C/src/federated/SimpleFederated.txt b/test/known-good/C/src/federated/SimpleFederated.txt
index ae8c687e4..d1f172414 100644
--- a/test/known-good/C/src/federated/SimpleFederated.txt
+++ b/test/known-good/C/src/federated/SimpleFederated.txt
@@ -1,11 +1,11 @@
target C {
- timeout: 2 secs,
- build-type: RelWithDebInfo
+ timeout: 2 secs,
+ build-type: RelWithDebInfo
}
reactor Fed {
- input in: int
- output out: int
+ input in: int
+ output out: int
}
federated reactor {
diff --git a/test/known-good/C/src/federated/StopAtShutdown.txt b/test/known-good/C/src/federated/StopAtShutdown.txt
index 7a1394289..06b5714d3 100644
--- a/test/known-good/C/src/federated/StopAtShutdown.txt
+++ b/test/known-good/C/src/federated/StopAtShutdown.txt
@@ -6,11 +6,11 @@
target C {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor A {
- input in: int
+ input in: int
reaction(startup) {= lf_print("Hello World!"); =}
@@ -20,7 +20,7 @@
}
reactor B {
- output out: int
+ output out: int
timer t(1 sec)
reaction(t) -> out {= lf_set(out, 1); =}
diff --git a/test/known-good/C/src/federated/TopLevelArtifacts.txt b/test/known-good/C/src/federated/TopLevelArtifacts.txt
index ab2c83a98..231f8ce36 100644
--- a/test/known-good/C/src/federated/TopLevelArtifacts.txt
+++ b/test/known-good/C/src/federated/TopLevelArtifacts.txt
@@ -8,14 +8,14 @@
target C {
- timeout: 1 msec
+ timeout: 1 msec
}
import Count from "../lib/Count.lf"
import TestCount from "../lib/TestCount.lf"
federated reactor {
- state successes: int(0)
+ state successes: int(0)
timer t(0, 1 sec)
logical action act(0)
diff --git a/test/known-good/C/src/federated/failing/ClockSync.txt b/test/known-good/C/src/federated/failing/ClockSync.txt
index b7681f176..9b40358f9 100644
--- a/test/known-good/C/src/federated/failing/ClockSync.txt
+++ b/test/known-good/C/src/federated/failing/ClockSync.txt
@@ -6,31 +6,31 @@
target C {
- coordination: decentralized,
- timeout: 10 sec,
- clock-sync: on,
- clock-sync-options: {
+ coordination: decentralized,
+ timeout: 10 sec,
+ clock-sync: on,
+ clock-sync-options: {
- local-federates-on: true,
+ local-federates-on: true,
- collect-stats: true,
- test-offset: 200 msec,
+ collect-stats: true,
+ test-offset: 200 msec,
- period: 5 msec,
+ period: 5 msec,
- trials: 10,
+ trials: 10,
- attenuation: 10
+ attenuation: 10
}
}
-reactor Ticker(period: time(1600 msec)) {
- output out: int
+reactor Ticker(period: time(1600 msec)) {
+ output out: int
timer tick(0, period)
@@ -39,7 +39,7 @@
reactor Printer {
- input in: int
+ input in: int
reaction(startup) {=
interval_t offset = _lf_time_physical_clock_offset + _lf_time_test_physical_clock_offset;
diff --git a/test/known-good/C/src/federated/failing/DistributedDoublePortLooped.txt b/test/known-good/C/src/federated/failing/DistributedDoublePortLooped.txt
index 0d5175ab4..a6022bab6 100644
--- a/test/known-good/C/src/federated/failing/DistributedDoublePortLooped.txt
+++ b/test/known-good/C/src/federated/failing/DistributedDoublePortLooped.txt
@@ -6,25 +6,25 @@
target C {
- timeout: 900 msec,
- logging: LOG,
- coordination: centralized
+ timeout: 900 msec,
+ logging: LOG,
+ coordination: centralized
}
reactor Foo {
timer t(0, 700 usec)
- output out: int
+ output out: int
reaction(t) -> out {= lf_set(out, 0); =}
}
reactor Count {
- state count: int(1)
- input in1: int
- input in2: int
- input in3: int
- output out1: int
- output out2: int
+ state count: int(1)
+ input in1: int
+ input in2: int
+ input in3: int
+ output out1: int
+ output out2: int
timer t(0, 1 msec)
reaction(in1) -> out1 {= =}
@@ -37,9 +37,9 @@
}
reactor CountMicrostep {
- state count: int(1)
- output out: int
- logical action act: int
+ state count: int(1)
+ output out: int
+ logical action act: int
timer t(0, 1 msec)
reaction(t) -> act {= lf_schedule_int(act, 0, self->count++); =}
@@ -48,10 +48,10 @@
}
reactor Print {
- input in1: int
- input in2: int
- input in3: int
- output out: int
+ input in1: int
+ input in2: int
+ input in3: int
+ output out: int
timer t(0, 2 msec)
reaction(in1, in2, in3, t) -> out {=
diff --git a/test/known-good/C/src/federated/failing/DistributedDoublePortLooped2.txt b/test/known-good/C/src/federated/failing/DistributedDoublePortLooped2.txt
index 1d36c687b..7fcf52115 100644
--- a/test/known-good/C/src/federated/failing/DistributedDoublePortLooped2.txt
+++ b/test/known-good/C/src/federated/failing/DistributedDoublePortLooped2.txt
@@ -6,15 +6,15 @@
target C {
- timeout: 5 msec,
- logging: LOG,
- coordination: centralized
+ timeout: 5 msec,
+ logging: LOG,
+ coordination: centralized
}
reactor Count {
- state count: int(1)
- input in: int
- output out: int
+ state count: int(1)
+ input in: int
+ output out: int
timer t(0, 1 msec)
reaction(t) -> out {=
@@ -26,9 +26,9 @@
}
reactor CountMicrostep {
- state count: int(1)
- output out: int
- logical action act: int
+ state count: int(1)
+ output out: int
+ logical action act: int
timer t(0, 1 msec)
reaction(t) -> act {= lf_schedule_int(act, 0, self->count++); =}
@@ -37,9 +37,9 @@
}
reactor Print {
- input in: int
- input in2: int
- output out: int
+ input in: int
+ input in2: int
+ output out: int
timer t(0, 2 msec)
reaction(in, in2) -> out {=
diff --git a/test/known-good/C/src/federated/failing/DistributedNetworkOrderDecentralized.txt b/test/known-good/C/src/federated/failing/DistributedNetworkOrderDecentralized.txt
index aa1b5233e..5f90fdcf5 100644
--- a/test/known-good/C/src/federated/failing/DistributedNetworkOrderDecentralized.txt
+++ b/test/known-good/C/src/federated/failing/DistributedNetworkOrderDecentralized.txt
@@ -8,12 +8,12 @@
target C {
- timeout: 1 sec,
- coordination: decentralized
+ timeout: 1 sec,
+ coordination: decentralized
}
reactor Sender {
- output out: int
+ output out: int
timer t(0, 1 msec)
reaction(t) {=
@@ -30,8 +30,8 @@
}
reactor Receiver {
- input in: int
- state success: int(0)
+ input in: int
+ state success: int(0)
reaction(in) {=
tag_t current_tag = lf_tag();
diff --git a/test/known-good/C/src/federated/failing/LoopDistributedDecentralizedPrecedence.txt b/test/known-good/C/src/federated/failing/LoopDistributedDecentralizedPrecedence.txt
index c2bba9783..63908e4f4 100644
--- a/test/known-good/C/src/federated/failing/LoopDistributedDecentralizedPrecedence.txt
+++ b/test/known-good/C/src/federated/failing/LoopDistributedDecentralizedPrecedence.txt
@@ -6,16 +6,16 @@
target C {
- flags: "-Wall",
- coordination: decentralized,
- timeout: 4900 msec
+ flags: "-Wall",
+ coordination: decentralized,
+ timeout: 4900 msec
}
-reactor Looper(incr: int(1), delay: time(0 msec), stp_offset: time(0)) {
- input in: int
- output out: int
- state count: int(0)
- state received_count: int(0)
+reactor Looper(incr: int(1), delay: time(0 msec), stp_offset: time(0)) {
+ input in: int
+ output out: int
+ state count: int(0)
+ state received_count: int(0)
timer t(0, 1 sec)
reaction(t) -> out {=
@@ -57,7 +57,7 @@
=}
}
-federated reactor(delay: time(0)) {
+federated reactor(delay: time(0)) {
left = new Looper(stp_offset = 5 msec)
right = new Looper(incr = -1, stp_offset = 5 msec)
left.out -> right.in
diff --git a/test/known-good/C/src/federated/failing/LoopDistributedDecentralizedPrecedenceHierarchy.txt b/test/known-good/C/src/federated/failing/LoopDistributedDecentralizedPrecedenceHierarchy.txt
index 6f2ce9f33..853be28b6 100644
--- a/test/known-good/C/src/federated/failing/LoopDistributedDecentralizedPrecedenceHierarchy.txt
+++ b/test/known-good/C/src/federated/failing/LoopDistributedDecentralizedPrecedenceHierarchy.txt
@@ -6,17 +6,17 @@
target C {
- flags: "-Wall",
- coordination: decentralized,
- timeout: 4900 msec
+ flags: "-Wall",
+ coordination: decentralized,
+ timeout: 4900 msec
}
import Contained from "../LoopDistributedCentralizedPrecedenceHierarchy.lf";
-reactor Looper(incr:int(1), delay:time(0 msec), stp_offset:time(0)) {
- input in:int;
- output out:int;
- state count:int(0);
+reactor Looper(incr:int(1), delay:time(0 msec), stp_offset:time(0)) {
+ input in:int;
+ output out:int;
+ state count:int(0);
timer t(0, 1 sec);
c = new Contained(incr = incr);
diff --git a/test/known-good/C/src/federated/failing/SimpleFederatedAuthenticated.txt b/test/known-good/C/src/federated/failing/SimpleFederatedAuthenticated.txt
index 7ee9de1cd..e3aa22780 100644
--- a/test/known-good/C/src/federated/failing/SimpleFederatedAuthenticated.txt
+++ b/test/known-good/C/src/federated/failing/SimpleFederatedAuthenticated.txt
@@ -3,15 +3,15 @@
target C {
- timeout: 2 secs,
- build-type: RelWithDebInfo,
- auth: true,
- logging: DEBUG
+ timeout: 2 secs,
+ build-type: RelWithDebInfo,
+ auth: true,
+ logging: DEBUG
}
reactor Fed {
- input in: int
- output out: int
+ input in: int
+ output out: int
}
federated reactor {
diff --git a/test/known-good/C/src/lib/Count.txt b/test/known-good/C/src/lib/Count.txt
index 9e7631a91..3bdcca8d1 100644
--- a/test/known-good/C/src/lib/Count.txt
+++ b/test/known-good/C/src/lib/Count.txt
@@ -1,8 +1,8 @@
target C
-reactor Count(offset: time(0), period: time(1 sec)) {
- state count: int(1)
- output out: int
+reactor Count(offset: time(0), period: time(1 sec)) {
+ state count: int(1)
+ output out: int
timer t(offset, period)
reaction(t) -> out {= lf_set(out, self->count++); =}
diff --git a/test/known-good/C/src/lib/Imported.txt b/test/known-good/C/src/lib/Imported.txt
index 75017d4fe..c5d18272a 100644
--- a/test/known-good/C/src/lib/Imported.txt
+++ b/test/known-good/C/src/lib/Imported.txt
@@ -5,7 +5,7 @@
import ImportedAgain from "./ImportedAgain.lf"
reactor Imported {
- input x: int
+ input x: int
a = new ImportedAgain()
reaction(x) -> a.x {= lf_set(a.x, x->value); =}
diff --git a/test/known-good/C/src/lib/ImportedAgain.txt b/test/known-good/C/src/lib/ImportedAgain.txt
index 7f987ff17..e4732d606 100644
--- a/test/known-good/C/src/lib/ImportedAgain.txt
+++ b/test/known-good/C/src/lib/ImportedAgain.txt
@@ -3,7 +3,7 @@
target C
reactor ImportedAgain {
- input x: int
+ input x: int
reaction(x) {=
printf("Received: %d.\n", x->value);
diff --git a/test/known-good/C/src/lib/ImportedComposition.txt b/test/known-good/C/src/lib/ImportedComposition.txt
index 2b5166dd5..8eaeb0793 100644
--- a/test/known-good/C/src/lib/ImportedComposition.txt
+++ b/test/known-good/C/src/lib/ImportedComposition.txt
@@ -3,15 +3,15 @@
target C
reactor Gain {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= lf_set(y, x->value * 2); =}
}
reactor ImportedComposition {
- input x: int
- output y: int
+ input x: int
+ output y: int
g1 = new Gain()
g2 = new Gain()
x -> g1.x after 10 msec
diff --git a/test/known-good/C/src/lib/InternalDelay.txt b/test/known-good/C/src/lib/InternalDelay.txt
index 1e083d030..a64940810 100644
--- a/test/known-good/C/src/lib/InternalDelay.txt
+++ b/test/known-good/C/src/lib/InternalDelay.txt
@@ -1,9 +1,9 @@
target C
-reactor InternalDelay(delay: int(10 msec)) {
- input in: int
- output out: int
- logical action d: int
+reactor InternalDelay(delay: int(10 msec)) {
+ input in: int
+ output out: int
+ logical action d: int
reaction(in) -> d {= lf_schedule_int(d, self->delay, in->value); =}
diff --git a/test/known-good/C/src/lib/LoopedActionSender.txt b/test/known-good/C/src/lib/LoopedActionSender.txt
index 779923f04..97d77973d 100644
--- a/test/known-good/C/src/lib/LoopedActionSender.txt
+++ b/test/known-good/C/src/lib/LoopedActionSender.txt
@@ -11,10 +11,10 @@
-reactor Sender(take_a_break_after: int(10), break_interval: time(400 msec)) {
- output out: int
+reactor Sender(take_a_break_after: int(10), break_interval: time(400 msec)) {
+ output out: int
logical action act
- state sent_messages: int(0)
+ state sent_messages: int(0)
reaction(startup, act) -> act, out {=
diff --git a/test/known-good/C/src/lib/PassThrough.txt b/test/known-good/C/src/lib/PassThrough.txt
index af152010a..d9e333656 100644
--- a/test/known-good/C/src/lib/PassThrough.txt
+++ b/test/known-good/C/src/lib/PassThrough.txt
@@ -2,8 +2,8 @@
target C
reactor PassThrough {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {= lf_set(out, in->value); =}
}
diff --git a/test/known-good/C/src/lib/Test.txt b/test/known-good/C/src/lib/Test.txt
index 52125a84a..5127be65d 100644
--- a/test/known-good/C/src/lib/Test.txt
+++ b/test/known-good/C/src/lib/Test.txt
@@ -1,8 +1,8 @@
target C
-reactor TestDouble(expected: double[](1.0, 1.0, 1.0, 1.0)) {
- input in: double
- state count: int(0)
+reactor TestDouble(expected: double[](1.0, 1.0, 1.0, 1.0)) {
+ input in: double
+ state count: int(0)
reaction(in) {=
printf("Received: %f\n", in->value);
diff --git a/test/known-good/C/src/lib/TestCount.txt b/test/known-good/C/src/lib/TestCount.txt
index cca987b10..d051f40dd 100644
--- a/test/known-good/C/src/lib/TestCount.txt
+++ b/test/known-good/C/src/lib/TestCount.txt
@@ -9,10 +9,10 @@
target C
-reactor TestCount(start: int(1), stride: int(1), num_inputs: int(1)) {
- state count: int(start)
- state inputs_received: int(0)
- input in: int
+reactor TestCount(start: int(1), stride: int(1), num_inputs: int(1)) {
+ state count: int(start)
+ state inputs_received: int(0)
+ input in: int
reaction(in) {=
lf_print("Received %d.", in->value);
diff --git a/test/known-good/C/src/lib/TestCountMultiport.txt b/test/known-good/C/src/lib/TestCountMultiport.txt
index d8eeabd94..3724f8fed 100644
--- a/test/known-good/C/src/lib/TestCountMultiport.txt
+++ b/test/known-good/C/src/lib/TestCountMultiport.txt
@@ -12,14 +12,14 @@
target C
reactor TestCountMultiport(
- start: int(1),
- stride: int(1),
- num_inputs: int(1),
- width: int(2)
+ start: int(1),
+ stride: int(1),
+ num_inputs: int(1),
+ width: int(2)
) {
- state count: int(start)
- state inputs_received: int(0)
- input[width] in: int
+ state count: int(start)
+ state inputs_received: int(0)
+ input[width] in: int
reaction(in) {=
for (int i = 0; i < in_width; i++) {
diff --git a/test/known-good/C/src/modal_models/BanksCount3ModesComplex.txt b/test/known-good/C/src/modal_models/BanksCount3ModesComplex.txt
index 60352d53b..4f22d1060 100644
--- a/test/known-good/C/src/modal_models/BanksCount3ModesComplex.txt
+++ b/test/known-good/C/src/modal_models/BanksCount3ModesComplex.txt
@@ -3,26 +3,26 @@
target C {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
import TraceTesting from "util/TraceTesting.lf"
import CounterCycle from "Count3Modes.lf"
reactor MetaCounter {
- input next: bool
- output[2] always: int
- output[2] mode1: int
- output[2] mode2: int
- output[2] never: int
+ input next: bool
+ output[2] always: int
+ output[2] mode1: int
+ output[2] mode2: int
+ output[2] never: int
- outer_counters = new[2] CounterCycle()
+ outer_counters = new[2] CounterCycle()
(next)+ -> outer_counters.next
outer_counters.count -> always
initial mode One {
- mode1_counters = new[2] CounterCycle()
+ mode1_counters = new[2] CounterCycle()
(next)+ -> mode1_counters.next
mode1_counters.count -> mode1
@@ -32,7 +32,7 @@
}
mode Two {
- mode2_counters = new[2] CounterCycle()
+ mode2_counters = new[2] CounterCycle()
(next)+ -> mode2_counters.next
mode2_counters.count -> mode2
@@ -42,7 +42,7 @@
}
mode Three {
- mode3_counters = new[2] CounterCycle()
+ mode3_counters = new[2] CounterCycle()
(next)+ -> mode3_counters.next
mode3_counters.count -> never
@@ -51,7 +51,7 @@
main reactor {
timer stepper(0, 250 msec)
- counters = new[2] MetaCounter()
+ counters = new[2] MetaCounter()
test = new TraceTesting(
events_size = 16,
trace_size = 429,
diff --git a/test/known-good/C/src/modal_models/BanksCount3ModesSimple.txt b/test/known-good/C/src/modal_models/BanksCount3ModesSimple.txt
index bda97388d..45948cf33 100644
--- a/test/known-good/C/src/modal_models/BanksCount3ModesSimple.txt
+++ b/test/known-good/C/src/modal_models/BanksCount3ModesSimple.txt
@@ -1,7 +1,7 @@
target C {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
import TraceTesting from "util/TraceTesting.lf"
@@ -9,7 +9,7 @@
main reactor {
timer stepper(0, 250 msec)
- counters = new[3] CounterCycle()
+ counters = new[3] CounterCycle()
test = new TraceTesting(
events_size = 3,
trace_size = 63,
diff --git a/test/known-good/C/src/modal_models/BanksModalStateReset.txt b/test/known-good/C/src/modal_models/BanksModalStateReset.txt
index 894c750fd..5bdceb18b 100644
--- a/test/known-good/C/src/modal_models/BanksModalStateReset.txt
+++ b/test/known-good/C/src/modal_models/BanksModalStateReset.txt
@@ -3,8 +3,8 @@
target C {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
@@ -14,8 +14,8 @@
main reactor {
timer stepper(1 sec, 1 sec)
- reset1 = new[2] ResetReaction()
- reset2 = new[2] AutoReset()
+ reset1 = new[2] ResetReaction()
+ reset2 = new[2] AutoReset()
test = new TraceTesting(events_size = 16, trace_size = 627, trace = (
0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,
250000000,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0, 0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,
diff --git a/test/known-good/C/src/modal_models/ConvertCaseTest.txt b/test/known-good/C/src/modal_models/ConvertCaseTest.txt
index 9568b6996..f84e04c6b 100644
--- a/test/known-good/C/src/modal_models/ConvertCaseTest.txt
+++ b/test/known-good/C/src/modal_models/ConvertCaseTest.txt
@@ -1,15 +1,15 @@
target C {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor ResetProcessor {
- input discard: bool
- input character: char
- output converted: int
+ input discard: bool
+ input character: char
+ output converted: int
initial mode Converting {
converter = new Converter()
@@ -26,9 +26,9 @@
}
reactor HistoryProcessor {
- input discard: bool
- input character: char
- output converted: int
+ input discard: bool
+ input character: char
+ output converted: int
initial mode Converting {
converter = new Converter()
@@ -47,8 +47,8 @@
}
reactor Converter {
- input raw: char
- output converted: int
+ input raw: char
+ output converted: int
preamble {=
@@ -83,9 +83,9 @@
}
}
-reactor InputFeeder(message: string("")) {
- output character: char
- state idx: int(0)
+reactor InputFeeder(message: string("")) {
+ output character: char
+ state idx: int(0)
timer t(0, 250 msec)
diff --git a/test/known-good/C/src/modal_models/Count3Modes.txt b/test/known-good/C/src/modal_models/Count3Modes.txt
index 45f45d7ce..b05ced214 100644
--- a/test/known-good/C/src/modal_models/Count3Modes.txt
+++ b/test/known-good/C/src/modal_models/Count3Modes.txt
@@ -1,12 +1,12 @@
target C {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
reactor CounterCycle {
- input next: bool
- output count: int
+ input next: bool
+ output count: int
initial mode One {
reaction(next) -> count, reset(Two) {=
@@ -34,7 +34,7 @@
timer stepper(0, 250 msec)
counter = new CounterCycle()
- state expected_value: int(1)
+ state expected_value: int(1)
reaction(stepper) -> counter.next {= lf_set(counter.next, true); =}
diff --git a/test/known-good/C/src/modal_models/MixedReactions.txt b/test/known-good/C/src/modal_models/MixedReactions.txt
index 8018e325c..49fdc6701 100644
--- a/test/known-good/C/src/modal_models/MixedReactions.txt
+++ b/test/known-good/C/src/modal_models/MixedReactions.txt
@@ -3,13 +3,13 @@
target C {
- fast: true,
- timeout: 110 msec
+ fast: true,
+ timeout: 110 msec
}
main reactor {
- state x: int(0)
- state first: bool(true)
+ state x: int(0)
+ state first: bool(true)
timer t(0, 100 msec)
diff --git a/test/known-good/C/src/modal_models/ModalActions.txt b/test/known-good/C/src/modal_models/ModalActions.txt
index d2bd47179..4adf13ac9 100644
--- a/test/known-good/C/src/modal_models/ModalActions.txt
+++ b/test/known-good/C/src/modal_models/ModalActions.txt
@@ -3,20 +3,20 @@
target C {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input next: bool
+ input next: bool
- output mode_switch: int
- output action1_sched: int
- output action1_exec: int
- output action2_sched: int
- output action2_exec: int
+ output mode_switch: int
+ output action1_sched: int
+ output action1_exec: int
+ output action2_sched: int
+ output action2_exec: int
initial mode One {
timer T1(0, 750 msec)
diff --git a/test/known-good/C/src/modal_models/ModalAfter.txt b/test/known-good/C/src/modal_models/ModalAfter.txt
index f4f98c82f..b6b30aec0 100644
--- a/test/known-good/C/src/modal_models/ModalAfter.txt
+++ b/test/known-good/C/src/modal_models/ModalAfter.txt
@@ -3,20 +3,20 @@
target C {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input next: bool
+ input next: bool
- output mode_switch: int
- output produced1: int
- output consumed1: int
- output produced2: int
- output consumed2: int
+ output mode_switch: int
+ output produced1: int
+ output consumed1: int
+ output produced2: int
+ output consumed2: int
initial mode One {
producer1 = new Producer(mode_id = 1)
@@ -45,8 +45,8 @@
}
}
-reactor Producer(mode_id: int(0)) {
- output product: int
+reactor Producer(mode_id: int(0)) {
+ output product: int
timer t(0, 750 msec)
@@ -56,9 +56,9 @@
=}
}
-reactor Consumer(mode_id: int(0)) {
- input product: int
- output report: int
+reactor Consumer(mode_id: int(0)) {
+ input product: int
+ output report: int
reaction(product) -> report {=
printf("Consumed in %d\n", self->mode_id);
diff --git a/test/known-good/C/src/modal_models/ModalCycleBreaker.txt b/test/known-good/C/src/modal_models/ModalCycleBreaker.txt
index df031ba48..a3c4e0f1e 100644
--- a/test/known-good/C/src/modal_models/ModalCycleBreaker.txt
+++ b/test/known-good/C/src/modal_models/ModalCycleBreaker.txt
@@ -5,16 +5,16 @@
target C {
- fast: false,
- timeout: 1 sec
+ fast: false,
+ timeout: 1 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input in1: int
- input in2: int
- output out: int
+ input in1: int
+ input in2: int
+ output out: int
@@ -42,11 +42,11 @@
}
}
-reactor Counter(period: time(1 sec)) {
- output value: int
+reactor Counter(period: time(1 sec)) {
+ output value: int
timer t(0, period)
- state curval: int(0)
+ state curval: int(0)
reaction(t) -> value {= lf_set(value, self->curval++); =}
}
diff --git a/test/known-good/C/src/modal_models/ModalNestedReactions.txt b/test/known-good/C/src/modal_models/ModalNestedReactions.txt
index 709a08b03..8a8e39448 100644
--- a/test/known-good/C/src/modal_models/ModalNestedReactions.txt
+++ b/test/known-good/C/src/modal_models/ModalNestedReactions.txt
@@ -3,16 +3,16 @@
target C {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
reactor CounterCycle {
- input next: bool
+ input next: bool
- output count: int
- output only_in_two: bool
- output never: int
+ output count: int
+ output only_in_two: bool
+ output never: int
initial mode One {
reaction(next) -> count, reset(Two) {=
@@ -37,8 +37,8 @@
}
reactor Forward {
- input in: bool
- output out: bool
+ input in: bool
+ output out: bool
reaction(in) -> out {= lf_set(out, in->value); =}
}
diff --git a/test/known-good/C/src/modal_models/ModalStartupShutdown.txt b/test/known-good/C/src/modal_models/ModalStartupShutdown.txt
index caf5a2502..6cf83129f 100644
--- a/test/known-good/C/src/modal_models/ModalStartupShutdown.txt
+++ b/test/known-good/C/src/modal_models/ModalStartupShutdown.txt
@@ -1,25 +1,25 @@
target C {
- fast: false,
- timeout: 3000 msec
+ fast: false,
+ timeout: 3000 msec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input next: bool
-
- output mode_switch: int
- output startup1: int
- output startup2: int
- output shutdown2: int
- output shutdown3: int
- output startup4: int
- output reset4: int
- output shutdown4: int
- output startup5: int
- output reset5: int
- output shutdown5: int
+ input next: bool
+
+ output mode_switch: int
+ output startup1: int
+ output startup2: int
+ output shutdown2: int
+ output shutdown3: int
+ output startup4: int
+ output reset4: int
+ output shutdown4: int
+ output startup5: int
+ output reset5: int
+ output shutdown5: int
initial mode One {
reaction(startup) -> startup1 {=
diff --git a/test/known-good/C/src/modal_models/ModalStateReset.txt b/test/known-good/C/src/modal_models/ModalStateReset.txt
index d29f542e3..5eb37f5ee 100644
--- a/test/known-good/C/src/modal_models/ModalStateReset.txt
+++ b/test/known-good/C/src/modal_models/ModalStateReset.txt
@@ -1,20 +1,20 @@
target C {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input next: bool
+ input next: bool
- output mode_switch: int
- output count0: int
- output count1: int
- output count2: int
+ output mode_switch: int
+ output count0: int
+ output count1: int
+ output count2: int
- state counter0: int(0)
+ state counter0: int(0)
reaction(next) -> count0 {=
printf("Counter0: %d\n", self->counter0);
@@ -22,7 +22,7 @@
=}
initial mode One {
- state counter1: int(0)
+ state counter1: int(0)
timer T1(0 msec, 250 msec)
reaction(reset) {= self->counter1 = 0; =}
@@ -39,7 +39,7 @@
}
mode Two {
- state counter2: int(-2)
+ state counter2: int(-2)
timer T2(0 msec, 250 msec)
reaction(reset) {= self->counter2 = -2; =}
diff --git a/test/known-good/C/src/modal_models/ModalStateResetAuto.txt b/test/known-good/C/src/modal_models/ModalStateResetAuto.txt
index a566e00cf..ab590e1fe 100644
--- a/test/known-good/C/src/modal_models/ModalStateResetAuto.txt
+++ b/test/known-good/C/src/modal_models/ModalStateResetAuto.txt
@@ -1,20 +1,20 @@
target C {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input next: bool
+ input next: bool
- output mode_switch: int
- output count0: int
- output count1: int
- output count2: int
+ output mode_switch: int
+ output count0: int
+ output count1: int
+ output count2: int
- state counter0: int(0)
+ state counter0: int(0)
reaction(next) -> count0 {=
printf("Counter0: %d\n", self->counter0);
@@ -22,7 +22,7 @@
=}
initial mode One {
- state counter1: int(0)
+ state counter1: int(0)
timer T1(0 msec, 250 msec)
reaction(T1) -> count1 {=
printf("Counter1: %d\n", self->counter1);
@@ -37,7 +37,7 @@
}
mode Two {
- reset state counter2: int(-2)
+ reset state counter2: int(-2)
timer T2(0 msec, 250 msec)
reaction(T2) -> count2 {=
printf("Counter2: %d\n", self->counter2);
diff --git a/test/known-good/C/src/modal_models/ModalTimers.txt b/test/known-good/C/src/modal_models/ModalTimers.txt
index 629cb22ce..85becaa38 100644
--- a/test/known-good/C/src/modal_models/ModalTimers.txt
+++ b/test/known-good/C/src/modal_models/ModalTimers.txt
@@ -1,17 +1,17 @@
target C {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input next: bool
+ input next: bool
- output mode_switch: int
- output timer1: int
- output timer2: int
+ output mode_switch: int
+ output timer1: int
+ output timer2: int
initial mode One {
timer T1(0, 750 msec)
diff --git a/test/known-good/C/src/modal_models/MultipleOutputFeeder_2Connections.txt b/test/known-good/C/src/modal_models/MultipleOutputFeeder_2Connections.txt
index f4eadb7b4..3608913b6 100644
--- a/test/known-good/C/src/modal_models/MultipleOutputFeeder_2Connections.txt
+++ b/test/known-good/C/src/modal_models/MultipleOutputFeeder_2Connections.txt
@@ -5,15 +5,15 @@
target C {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input next: bool
- output count: int
+ input next: bool
+ output count: int
initial mode One {
counter1 = new Counter(period = 250 msec)
@@ -28,11 +28,11 @@
}
}
-reactor Counter(period: time(1 sec)) {
- output value: int
+reactor Counter(period: time(1 sec)) {
+ output value: int
timer t(0, period)
- reset state curval: int(0)
+ reset state curval: int(0)
reaction(t) -> value {= lf_set(value, self->curval++); =}
}
diff --git a/test/known-good/C/src/modal_models/MultipleOutputFeeder_ReactionConnections.txt b/test/known-good/C/src/modal_models/MultipleOutputFeeder_ReactionConnections.txt
index 662d46391..1bd2be3e5 100644
--- a/test/known-good/C/src/modal_models/MultipleOutputFeeder_ReactionConnections.txt
+++ b/test/known-good/C/src/modal_models/MultipleOutputFeeder_ReactionConnections.txt
@@ -5,15 +5,15 @@
target C {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
import TraceTesting from "util/TraceTesting.lf"
reactor Modal {
- input next: bool
- output count: int
+ input next: bool
+ output count: int
initial mode One {
counter1 = new Counter(period = 250 msec)
@@ -31,11 +31,11 @@
}
}
-reactor Counter(period: time(1 sec)) {
- output value: int
+reactor Counter(period: time(1 sec)) {
+ output value: int
timer t(0, period)
- reset state curval: int(0)
+ reset state curval: int(0)
reaction(t) -> value {= lf_set(value, self->curval++); =}
}
diff --git a/test/known-good/C/src/modal_models/util/TraceTesting.txt b/test/known-good/C/src/modal_models/util/TraceTesting.txt
index e45eb0883..cb1b3ae55 100644
--- a/test/known-good/C/src/modal_models/util/TraceTesting.txt
+++ b/test/known-good/C/src/modal_models/util/TraceTesting.txt
@@ -6,17 +6,17 @@
=}
reactor TraceTesting(
- events_size: int(0),
- trace_size: int(0),
- trace: int[](0),
- training: bool(false)
+ events_size: int(0),
+ trace_size: int(0),
+ trace: int[](0),
+ training: bool(false)
) {
- input[events_size] events: int
+ input[events_size] events: int
- state last_reaction_time: int(0)
- state trace_idx: int(0)
- state recorded_events: int*(0)
- state recorded_events_next: int(0)
+ state last_reaction_time: int(0)
+ state trace_idx: int(0)
+ state recorded_events: int*(0)
+ state recorded_events_next: int(0)
reaction(startup) {= self->last_reaction_time = lf_time_logical(); =}
diff --git a/test/known-good/C/src/multiport/BankGangedConnections.txt b/test/known-good/C/src/multiport/BankGangedConnections.txt
index 459f36e1f..50328db1c 100644
--- a/test/known-good/C/src/multiport/BankGangedConnections.txt
+++ b/test/known-good/C/src/multiport/BankGangedConnections.txt
@@ -1,26 +1,26 @@
target C {
- timeout: 0 sec
+ timeout: 0 sec
}
import Count from "../lib/Count.lf"
import TestCount from "../lib/TestCount.lf"
reactor Through {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {= lf_set(out, in->value); =}
}
reactor Bank {
- input in: int
- output out: int
+ input in: int
+ output out: int
t = new Through()
in, t.out -> t.in, out
}
main reactor {
- b = new[2] Bank()
+ b = new[2] Bank()
s = new Count()
t = new TestCount()
s.out, b.out -> b.in, t.in
diff --git a/test/known-good/C/src/multiport/BankIndexInitializer.txt b/test/known-good/C/src/multiport/BankIndexInitializer.txt
index 2455b6055..758446079 100644
--- a/test/known-good/C/src/multiport/BankIndexInitializer.txt
+++ b/test/known-good/C/src/multiport/BankIndexInitializer.txt
@@ -3,15 +3,15 @@
preamble {= int table[] = {4, 3, 2, 1}; =}
-reactor Source(bank_index: int(0), value: int(0)) {
- output out: int
+reactor Source(bank_index: int(0), value: int(0)) {
+ output out: int
reaction(startup) -> out {= lf_set(out, self->value); =}
}
-reactor Sink(width: int(4)) {
- input[width] in: int
- state received: bool(false)
+reactor Sink(width: int(4)) {
+ input[width] in: int
+ state received: bool(false)
reaction(in) {=
for (int idx = 0; idx < in_width; idx++) {
@@ -32,8 +32,8 @@
=}
}
-main reactor(width: int(4)) {
- source = new[width] Source(value = {= table[bank_index] =})
+main reactor(width: int(4)) {
+ source = new[width] Source(value = {= table[bank_index] =})
sink = new Sink(width = width)
source.out -> sink.in
}
diff --git a/test/known-good/C/src/multiport/BankMulticast.txt b/test/known-good/C/src/multiport/BankMulticast.txt
index bf83a708c..15898b21c 100644
--- a/test/known-good/C/src/multiport/BankMulticast.txt
+++ b/test/known-good/C/src/multiport/BankMulticast.txt
@@ -3,16 +3,16 @@
target C {
- timeout: 3 sec,
- fast: true
+ timeout: 3 sec,
+ fast: true
}
import Count from "../lib/Count.lf"
import TestCount from "../lib/TestCount.lf"
reactor Foo {
- input in: int
- output out: int
+ input in: int
+ output out: int
c = new Count()
c.out -> out
@@ -22,9 +22,9 @@
}
reactor Bar {
- output[4] out: int
+ output[4] out: int
- foo = new[4] Foo()
+ foo = new[4] Foo()
foo.out -> foo.in
foo.out -> out
@@ -33,7 +33,7 @@
main reactor {
bar = new Bar()
- d = new[4] TestCount(num_inputs = 4)
+ d = new[4] TestCount(num_inputs = 4)
bar.out -> d.in
}
diff --git a/test/known-good/C/src/multiport/BankMultiportToReaction.txt b/test/known-good/C/src/multiport/BankMultiportToReaction.txt
index 548c0bd73..348b04cd6 100644
--- a/test/known-good/C/src/multiport/BankMultiportToReaction.txt
+++ b/test/known-good/C/src/multiport/BankMultiportToReaction.txt
@@ -1,22 +1,22 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
import Count from "../lib/Count.lf"
reactor DoubleCount {
- output[2] out: int
+ output[2] out: int
c1 = new Count()
c2 = new Count()
c1.out, c2.out -> out
}
main reactor {
- state count: int(1)
- state received: bool(false)
+ state count: int(1)
+ state received: bool(false)
- s = new[2] DoubleCount()
+ s = new[2] DoubleCount()
reaction(s.out) {=
for (int i = 0; i < s_width; i++) {
diff --git a/test/known-good/C/src/multiport/BankReactionsInContainer.txt b/test/known-good/C/src/multiport/BankReactionsInContainer.txt
index 34d66b26f..2ac802894 100644
--- a/test/known-good/C/src/multiport/BankReactionsInContainer.txt
+++ b/test/known-good/C/src/multiport/BankReactionsInContainer.txt
@@ -2,13 +2,13 @@
target C {
- timeout: 1 sec
+ timeout: 1 sec
}
-reactor R(bank_index: int(0)) {
- output[2] out: int
- input[2] in: int
- state received: bool(false)
+reactor R(bank_index: int(0)) {
+ output[2] out: int
+ input[2] in: int
+ state received: bool(false)
reaction(startup) -> out {=
for (int i = 0; i < out_width; i++) {
@@ -41,8 +41,8 @@
}
main reactor {
- s = new[2] R()
- state received: bool(false)
+ s = new[2] R()
+ state received: bool(false)
reaction(startup) -> s.in {=
int count = 0;
diff --git a/test/known-good/C/src/multiport/BankSelfBroadcast.txt b/test/known-good/C/src/multiport/BankSelfBroadcast.txt
index 0ca423aaa..7c6ef62ce 100644
--- a/test/known-good/C/src/multiport/BankSelfBroadcast.txt
+++ b/test/known-good/C/src/multiport/BankSelfBroadcast.txt
@@ -7,10 +7,10 @@
target C
-reactor A(bank_index: int(0)) {
- input[4] in: int
- output out: int
- state received: bool(false)
+reactor A(bank_index: int(0)) {
+ input[4] in: int
+ output out: int
+ state received: bool(false)
reaction(startup) -> out {= lf_set(out, self->bank_index); =}
@@ -43,7 +43,7 @@
}
main reactor {
- a = new[4] A()
+ a = new[4] A()
(a.out)+ -> a.in
}
diff --git a/test/known-good/C/src/multiport/BankToBank.txt b/test/known-good/C/src/multiport/BankToBank.txt
index 778353187..3e60cd2f2 100644
--- a/test/known-good/C/src/multiport/BankToBank.txt
+++ b/test/known-good/C/src/multiport/BankToBank.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(bank_index: int(0)) {
+reactor Source(bank_index: int(0)) {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
lf_set(out, self->s);
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(bank_index: int(0)) {
- state s: int(0)
- input in: int
+reactor Destination(bank_index: int(0)) {
+ state s: int(0)
+ input in: int
reaction(in) {=
printf("Destination %d received: %d.\n", self->bank_index, in->value);
@@ -37,9 +37,9 @@
=}
}
-main reactor BankToBank(width: int(4)) {
- a = new[width] Source()
- b = new[width] Destination()
+main reactor BankToBank(width: int(4)) {
+ a = new[width] Source()
+ b = new[width] Destination()
a.out -> b.in
}
diff --git a/test/known-good/C/src/multiport/BankToBankMultiport.txt b/test/known-good/C/src/multiport/BankToBankMultiport.txt
index 1104d1025..ccdf1fd7a 100644
--- a/test/known-good/C/src/multiport/BankToBankMultiport.txt
+++ b/test/known-good/C/src/multiport/BankToBankMultiport.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(1)) {
+reactor Source(width: int(1)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -16,9 +16,9 @@
=}
}
-reactor Destination(width: int(1)) {
- state s: int(6)
- input[width] in: int
+reactor Destination(width: int(1)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -42,9 +42,9 @@
=}
}
-main reactor BankToBankMultiport(bank_width: int(4)) {
- a = new[bank_width] Source(width = 4)
- b = new[bank_width] Destination(width = 4)
+main reactor BankToBankMultiport(bank_width: int(4)) {
+ a = new[bank_width] Source(width = 4)
+ b = new[bank_width] Destination(width = 4)
a.out -> b.in
}
diff --git a/test/known-good/C/src/multiport/BankToBankMultiportAfter.txt b/test/known-good/C/src/multiport/BankToBankMultiportAfter.txt
index b87b122b9..d66e5c847 100644
--- a/test/known-good/C/src/multiport/BankToBankMultiportAfter.txt
+++ b/test/known-good/C/src/multiport/BankToBankMultiportAfter.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(1)) {
+reactor Source(width: int(1)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -16,9 +16,9 @@
=}
}
-reactor Destination(width: int(1)) {
- state s: int(6)
- input[width] in: int
+reactor Destination(width: int(1)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -42,9 +42,9 @@
=}
}
-main reactor(bank_width: int(4)) {
- a = new[bank_width] Source(width = 4)
- b = new[bank_width] Destination(width = 4)
+main reactor(bank_width: int(4)) {
+ a = new[bank_width] Source(width = 4)
+ b = new[bank_width] Destination(width = 4)
a.out -> b.in after 200 msec
}
diff --git a/test/known-good/C/src/multiport/BankToMultiport.txt b/test/known-good/C/src/multiport/BankToMultiport.txt
index 358918876..64f562f30 100644
--- a/test/known-good/C/src/multiport/BankToMultiport.txt
+++ b/test/known-good/C/src/multiport/BankToMultiport.txt
@@ -1,15 +1,15 @@
target C
-reactor Source(bank_index: int(0)) {
- output out: int
+reactor Source(bank_index: int(0)) {
+ output out: int
reaction(startup) -> out {= lf_set(out, self->bank_index); =}
}
-reactor Sink(width: int(4)) {
- input[width] in: int
- state received: bool(false)
+reactor Sink(width: int(4)) {
+ input[width] in: int
+ state received: bool(false)
reaction(in) {=
for (int i = 0; i < in_width; i++) {
@@ -32,8 +32,8 @@
=}
}
-main reactor BankToMultiport(width: int(5)) {
- source = new[width] Source()
+main reactor BankToMultiport(width: int(5)) {
+ source = new[width] Source()
sink = new Sink(width = width)
source.out -> sink.in
}
diff --git a/test/known-good/C/src/multiport/BankToReaction.txt b/test/known-good/C/src/multiport/BankToReaction.txt
index 1cdb3caa2..759e82813 100644
--- a/test/known-good/C/src/multiport/BankToReaction.txt
+++ b/test/known-good/C/src/multiport/BankToReaction.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
import Count from "../lib/Count.lf"
main reactor {
- state count: int(1)
+ state count: int(1)
- s = new[2] Count()
+ s = new[2] Count()
reaction(s.out) {=
for (int i = 0; i < s_width; i++) {
diff --git a/test/known-good/C/src/multiport/Broadcast.txt b/test/known-good/C/src/multiport/Broadcast.txt
index 2d4a45f4e..6dd266543 100644
--- a/test/known-good/C/src/multiport/Broadcast.txt
+++ b/test/known-good/C/src/multiport/Broadcast.txt
@@ -1,17 +1,17 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
- output out: int
+ output out: int
reaction(startup) -> out {= lf_set(out, 42); =}
}
-reactor Destination(bank_index: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(bank_index: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
printf("Destination %d received %d.\n", self->bank_index, in->value);
@@ -33,7 +33,7 @@
main reactor {
a = new Source()
- b = new[4] Destination()
+ b = new[4] Destination()
(a.out)+ -> b.in
}
diff --git a/test/known-good/C/src/multiport/BroadcastAfter.txt b/test/known-good/C/src/multiport/BroadcastAfter.txt
index 29b2e1f94..52f2fef37 100644
--- a/test/known-good/C/src/multiport/BroadcastAfter.txt
+++ b/test/known-good/C/src/multiport/BroadcastAfter.txt
@@ -1,17 +1,17 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
- output out: int
+ output out: int
reaction(startup) -> out {= lf_set(out, 42); =}
}
-reactor Destination(bank_index: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(bank_index: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
printf("Destination %d received %d.\n", self->bank_index, in->value);
@@ -37,7 +37,7 @@
main reactor {
a = new Source()
- b = new[4] Destination()
+ b = new[4] Destination()
(a.out)+ -> b.in after 1 sec
}
diff --git a/test/known-good/C/src/multiport/BroadcastMultipleAfter.txt b/test/known-good/C/src/multiport/BroadcastMultipleAfter.txt
index 9d0a62caf..42089f987 100644
--- a/test/known-good/C/src/multiport/BroadcastMultipleAfter.txt
+++ b/test/known-good/C/src/multiport/BroadcastMultipleAfter.txt
@@ -1,17 +1,17 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(value: int(42)) {
- output out: int
+reactor Source(value: int(42)) {
+ output out: int
reaction(startup) -> out {= lf_set(out, self->value); =}
}
-reactor Destination(bank_index: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(bank_index: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
printf("Destination %d received %d.\n", self->bank_index, in->value);
@@ -40,7 +40,7 @@
a1 = new Source(value = 1)
a2 = new Source(value = 2)
a3 = new Source(value = 3)
- b = new[9] Destination()
+ b = new[9] Destination()
(a1.out, a2.out, a3.out)+ -> b.in after 1 sec
}
diff --git a/test/known-good/C/src/multiport/DualBanks.txt b/test/known-good/C/src/multiport/DualBanks.txt
index 5ae8b6cfa..db28e97c7 100644
--- a/test/known-good/C/src/multiport/DualBanks.txt
+++ b/test/known-good/C/src/multiport/DualBanks.txt
@@ -1,8 +1,8 @@
target C
-reactor Base(bank_index: int(0)) {
- input I: int
- state received: bool(false)
+reactor Base(bank_index: int(0)) {
+ input I: int
+ state received: bool(false)
reaction(shutdown) {=
if(!self->received) {
@@ -28,8 +28,8 @@
}
main reactor {
- hellos = new[3] Hello()
- worlds = new[3] World()
+ hellos = new[3] Hello()
+ worlds = new[3] World()
reaction(startup) -> hellos.I, worlds.I {=
for(int i = 0; i < hellos_width; i++) {
diff --git a/test/known-good/C/src/multiport/DualBanksMultiport.txt b/test/known-good/C/src/multiport/DualBanksMultiport.txt
index 6227f3793..a53ed1b45 100644
--- a/test/known-good/C/src/multiport/DualBanksMultiport.txt
+++ b/test/known-good/C/src/multiport/DualBanksMultiport.txt
@@ -1,8 +1,8 @@
target C
-reactor Base(bank_index: int(0)) {
- input[2] I: int
- state received: bool(false)
+reactor Base(bank_index: int(0)) {
+ input[2] I: int
+ state received: bool(false)
reaction(shutdown) {=
if(!self->received) {
@@ -32,8 +32,8 @@
}
main reactor {
- hellos = new[3] Hello()
- worlds = new[3] World()
+ hellos = new[3] Hello()
+ worlds = new[3] World()
reaction(startup) -> hellos.I, worlds.I {=
for(int i = 0; i < hellos_width; i++) {
diff --git a/test/known-good/C/src/multiport/FullyConnected.txt b/test/known-good/C/src/multiport/FullyConnected.txt
index 435d23864..54416058f 100644
--- a/test/known-good/C/src/multiport/FullyConnected.txt
+++ b/test/known-good/C/src/multiport/FullyConnected.txt
@@ -1,10 +1,10 @@
target C
-reactor Node(num_nodes: size_t(4), bank_index: int(0)) {
- input[num_nodes] in: int
- output out: int
+reactor Node(num_nodes: size_t(4), bank_index: int(0)) {
+ input[num_nodes] in: int
+ output out: int
- state received: bool(false)
+ state received: bool(false)
reaction(startup) -> out {=
lf_print("Hello from node %d!", self->bank_index);
@@ -35,8 +35,8 @@
=}
}
-main reactor(num_nodes: size_t(4)) {
- nodes = new[num_nodes] Node(num_nodes = num_nodes)
+main reactor(num_nodes: size_t(4)) {
+ nodes = new[num_nodes] Node(num_nodes = num_nodes)
(nodes.out)+ -> nodes.in
}
diff --git a/test/known-good/C/src/multiport/FullyConnectedAddressable.txt b/test/known-good/C/src/multiport/FullyConnectedAddressable.txt
index 1c526da2b..18c1a54e7 100644
--- a/test/known-good/C/src/multiport/FullyConnectedAddressable.txt
+++ b/test/known-good/C/src/multiport/FullyConnectedAddressable.txt
@@ -1,12 +1,12 @@
target C
-reactor Node(num_nodes: size_t(4), bank_index: int(0)) {
- input[num_nodes] in: int
- output[num_nodes] out: int
+reactor Node(num_nodes: size_t(4), bank_index: int(0)) {
+ input[num_nodes] in: int
+ output[num_nodes] out: int
- state received: int(0)
- state triggered: bool(false)
+ state received: int(0)
+ state triggered: bool(false)
reaction(startup) -> out {=
int outChannel = (self->bank_index + 1) % self->num_nodes;
@@ -29,7 +29,7 @@
}
}
printf("\n");
- int expected = self->bank_index == 0 ? self->num_nodes - 1 : self->bank_index - 1;
+ int expected = self->bank_index == 0 ? self->num_nodes - 1 : self->bank_index - 1;
if (count != 1) {
lf_print_error_and_exit("Received %d messages, but expecting only one!");
}
@@ -45,11 +45,11 @@
=}
}
-main reactor(num_nodes: size_t(4)) {
- nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
+main reactor(num_nodes: size_t(4)) {
+ nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
nodes1.out -> interleaved (nodes1.in)
- nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
+ nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
interleaved (nodes2.out) -> nodes2.in
}
diff --git a/test/known-good/C/src/multiport/FullyConnectedAddressableAfter.txt b/test/known-good/C/src/multiport/FullyConnectedAddressableAfter.txt
index 395ee8b1b..925d31319 100644
--- a/test/known-good/C/src/multiport/FullyConnectedAddressableAfter.txt
+++ b/test/known-good/C/src/multiport/FullyConnectedAddressableAfter.txt
@@ -3,11 +3,11 @@
import Node from "FullyConnectedAddressable.lf"
-main reactor(num_nodes: size_t(4)) {
- nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
+main reactor(num_nodes: size_t(4)) {
+ nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
nodes1.out -> interleaved (nodes1.in) after 200 msec
- nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
+ nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
interleaved (nodes2.out) -> nodes2.in after 400 msec
}
diff --git a/test/known-good/C/src/multiport/MultiportFromBank.txt b/test/known-good/C/src/multiport/MultiportFromBank.txt
index 50bc7de77..c4d110ce7 100644
--- a/test/known-good/C/src/multiport/MultiportFromBank.txt
+++ b/test/known-good/C/src/multiport/MultiportFromBank.txt
@@ -1,21 +1,21 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(check_override: int(0), bank_index: int(0)) {
- output out: int
+reactor Source(check_override: int(0), bank_index: int(0)) {
+ output out: int
reaction(startup) -> out {=
lf_set(out, self->bank_index * self->check_override);
=}
}
-reactor Destination(port_width: int(3)) {
- input[port_width] in: int
- state received: bool(false)
+reactor Destination(port_width: int(3)) {
+ input[port_width] in: int
+ state received: bool(false)
reaction(in) {=
for (int i = 0; i < in_width; i++) {
@@ -37,8 +37,8 @@
=}
}
-main reactor MultiportFromBank(width: int(4)) {
- a = new[width] Source(check_override = 1)
+main reactor MultiportFromBank(width: int(4)) {
+ a = new[width] Source(check_override = 1)
b = new Destination(port_width = width)
a.out -> b.in
}
diff --git a/test/known-good/C/src/multiport/MultiportFromBankHierarchy.txt b/test/known-good/C/src/multiport/MultiportFromBankHierarchy.txt
index 8d7e338a6..40b3c2437 100644
--- a/test/known-good/C/src/multiport/MultiportFromBankHierarchy.txt
+++ b/test/known-good/C/src/multiport/MultiportFromBankHierarchy.txt
@@ -1,19 +1,19 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Source, Destination from "MultiportFromBank.lf"
-reactor Container(port_width: int(3)) {
- output[port_width] out: int
- s = new[port_width] Source(check_override = 1)
+reactor Container(port_width: int(3)) {
+ output[port_width] out: int
+ s = new[port_width] Source(check_override = 1)
s.out -> out
}
-main reactor(width: int(4)) {
+main reactor(width: int(4)) {
a = new Container(port_width = width)
b = new Destination(port_width = width)
a.out -> b.in
diff --git a/test/known-good/C/src/multiport/MultiportFromBankHierarchyAfter.txt b/test/known-good/C/src/multiport/MultiportFromBankHierarchyAfter.txt
index 90df5da23..c8ba81020 100644
--- a/test/known-good/C/src/multiport/MultiportFromBankHierarchyAfter.txt
+++ b/test/known-good/C/src/multiport/MultiportFromBankHierarchyAfter.txt
@@ -1,8 +1,8 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Destination from "MultiportFromBank.lf"
diff --git a/test/known-good/C/src/multiport/MultiportFromHierarchy.txt b/test/known-good/C/src/multiport/MultiportFromHierarchy.txt
index ab27e370d..af4ec2605 100644
--- a/test/known-good/C/src/multiport/MultiportFromHierarchy.txt
+++ b/test/known-good/C/src/multiport/MultiportFromHierarchy.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(3)) {
+reactor Source(width: int(3)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -17,9 +17,9 @@
=}
}
-reactor Destination(width: int(3)) {
- state s: int(6)
- input[width] in: int
+reactor Destination(width: int(3)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -43,19 +43,19 @@
=}
}
-reactor Container(width: int(3)) {
- output[width] out: int
+reactor Container(width: int(3)) {
+ output[width] out: int
src = new InsideContainer(width = width)
src.out -> out
}
-reactor InsideContainer(width: int(3)) {
- output[width] out: int
+reactor InsideContainer(width: int(3)) {
+ output[width] out: int
src = new Source(width = width)
src.out -> out
}
-main reactor MultiportFromHierarchy(width: int(4)) {
+main reactor MultiportFromHierarchy(width: int(4)) {
a = new Container(width = width)
b = new Destination(width = width)
a.out -> b.in
diff --git a/test/known-good/C/src/multiport/MultiportFromReaction.txt b/test/known-good/C/src/multiport/MultiportFromReaction.txt
index f2819c486..42a268a29 100644
--- a/test/known-good/C/src/multiport/MultiportFromReaction.txt
+++ b/test/known-good/C/src/multiport/MultiportFromReaction.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Destination(width: int(1)) {
- state s: int(6)
- input[width] in: int
+reactor Destination(width: int(1)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -30,9 +30,9 @@
=}
}
-main reactor MultiportFromReaction(width: int(4)) {
+main reactor MultiportFromReaction(width: int(4)) {
timer t(0, 200 msec)
- state s: int(0)
+ state s: int(0)
b = new Destination(width = width)
reaction(t) -> b.in {=
diff --git a/test/known-good/C/src/multiport/MultiportIn.txt b/test/known-good/C/src/multiport/MultiportIn.txt
index f3d933882..8c8a590e1 100644
--- a/test/known-good/C/src/multiport/MultiportIn.txt
+++ b/test/known-good/C/src/multiport/MultiportIn.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
lf_set(out, self->s);
@@ -17,15 +17,15 @@
}
reactor Computation {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {= lf_set(out, in->value); =}
}
reactor Destination {
- state s: int(0)
- input[4] in: int
+ state s: int(0)
+ input[4] in: int
reaction(in) {=
int sum = 0;
diff --git a/test/known-good/C/src/multiport/MultiportInParameterized.txt b/test/known-good/C/src/multiport/MultiportInParameterized.txt
index f8bfdd346..c7106ee6e 100644
--- a/test/known-good/C/src/multiport/MultiportInParameterized.txt
+++ b/test/known-good/C/src/multiport/MultiportInParameterized.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
lf_set(out, self->s);
@@ -17,15 +17,15 @@
}
reactor Computation {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {= lf_set(out, in->value); =}
}
-reactor Destination(width: int(1)) {
- state s: int(0)
- input[width] in: int
+reactor Destination(width: int(1)) {
+ state s: int(0)
+ input[width] in: int
reaction(in) {=
int sum = 0;
diff --git a/test/known-good/C/src/multiport/MultiportMutableInput.txt b/test/known-good/C/src/multiport/MultiportMutableInput.txt
index 29dc61b4f..27fa9a34d 100644
--- a/test/known-good/C/src/multiport/MultiportMutableInput.txt
+++ b/test/known-good/C/src/multiport/MultiportMutableInput.txt
@@ -4,7 +4,7 @@
target C
reactor Source {
- output[2] out: int
+ output[2] out: int
reaction(startup) -> out {=
lf_set(out[0], 21);
@@ -12,8 +12,8 @@
=}
}
-reactor Print(scale: int(1)) {
- input[2] in: int
+reactor Print(scale: int(1)) {
+ input[2] in: int
reaction(in) {=
int expected = 42;
@@ -27,9 +27,9 @@
=}
}
-reactor Scale(scale: int(2)) {
- mutable input[2] in: int
- output[2] out: int
+reactor Scale(scale: int(2)) {
+ mutable input[2] in: int
+ output[2] out: int
reaction(in) -> out {=
for(int j = 0; j < 2; j++) {
diff --git a/test/known-good/C/src/multiport/MultiportMutableInputArray.txt b/test/known-good/C/src/multiport/MultiportMutableInputArray.txt
index 01587e644..d26aaef4a 100644
--- a/test/known-good/C/src/multiport/MultiportMutableInputArray.txt
+++ b/test/known-good/C/src/multiport/MultiportMutableInputArray.txt
@@ -5,7 +5,7 @@
target C
reactor Source {
- output[2] out: int[]
+ output[2] out: int[]
reaction(startup) -> out {=
@@ -26,8 +26,8 @@
=}
}
-reactor Print(scale: int(1)) {
- input[2] in: int[]
+reactor Print(scale: int(1)) {
+ input[2] in: int[]
reaction(in) {=
int count = 0;
@@ -52,9 +52,9 @@
=}
}
-reactor Scale(scale: int(2)) {
- mutable input[2] in: int[]
- output[2] out: int[]
+reactor Scale(scale: int(2)) {
+ mutable input[2] in: int[]
+ output[2] out: int[]
reaction(in) -> out {=
for(int j = 0; j < in_width; j++) {
diff --git a/test/known-good/C/src/multiport/MultiportOut.txt b/test/known-good/C/src/multiport/MultiportOut.txt
index b74dd2381..4d451c0da 100644
--- a/test/known-good/C/src/multiport/MultiportOut.txt
+++ b/test/known-good/C/src/multiport/MultiportOut.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output[4] out: int
- state s: int(0)
+ output[4] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < 4; i++) {
@@ -18,8 +18,8 @@
}
reactor Computation {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
@@ -31,8 +31,8 @@
}
reactor Destination {
- state s: int(0)
- input[4] in: int
+ state s: int(0)
+ input[4] in: int
reaction(in) {=
int sum = 0;
diff --git a/test/known-good/C/src/multiport/MultiportToBank.txt b/test/known-good/C/src/multiport/MultiportToBank.txt
index 977b44e60..92e664f64 100644
--- a/test/known-good/C/src/multiport/MultiportToBank.txt
+++ b/test/known-good/C/src/multiport/MultiportToBank.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(2)) {
- output[width] out: int // Connected to a bank of Destination reactors
- input dummy: int // Not connected to anything
+reactor Source(width: int(2)) {
+ output[width] out: int
+ input dummy: int // Not connected to anything
reaction(startup) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -24,9 +24,9 @@
=}
}
-reactor Destination(bank_index: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(bank_index: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
printf("Destination %d received %d.\n", self->bank_index, in->value);
@@ -46,9 +46,9 @@
=}
}
-main reactor MultiportToBank(width: int(3)) {
+main reactor MultiportToBank(width: int(3)) {
a = new Source(width = width)
- b = new[width] Destination()
+ b = new[width] Destination()
a.out -> b.in
}
diff --git a/test/known-good/C/src/multiport/MultiportToBankAfter.txt b/test/known-good/C/src/multiport/MultiportToBankAfter.txt
index 7d0863478..54264bc97 100644
--- a/test/known-good/C/src/multiport/MultiportToBankAfter.txt
+++ b/test/known-good/C/src/multiport/MultiportToBankAfter.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(2)) {
- output[width] out: int
+reactor Source(width: int(2)) {
+ output[width] out: int
reaction(startup) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(bank_index: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(bank_index: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
printf("Destination %d received %d.\n", self->bank_index, in->value);
@@ -41,9 +41,9 @@
=}
}
-main reactor(width: int(3)) {
+main reactor(width: int(3)) {
a = new Source(width = width)
- b = new[width] Destination()
+ b = new[width] Destination()
a.out -> b.in after 1 sec
}
diff --git a/test/known-good/C/src/multiport/MultiportToBankDouble.txt b/test/known-good/C/src/multiport/MultiportToBankDouble.txt
index 8fe0e1fd3..687f1806a 100644
--- a/test/known-good/C/src/multiport/MultiportToBankDouble.txt
+++ b/test/known-good/C/src/multiport/MultiportToBankDouble.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
- output[3] out: int // Connected to a bank of Destination reactors
+ output[3] out: int
reaction(startup) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -24,9 +24,9 @@
=}
}
-reactor Destination(bank_index: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(bank_index: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
printf("Destination %d received %d.\n", self->bank_index, in->value);
@@ -48,7 +48,7 @@
main reactor {
a = new Source()
- b = new[3] Destination()
+ b = new[3] Destination()
a.out -> b.in
}
diff --git a/test/known-good/C/src/multiport/MultiportToBankHierarchy.txt b/test/known-good/C/src/multiport/MultiportToBankHierarchy.txt
index 8ec968cd3..75375622b 100644
--- a/test/known-good/C/src/multiport/MultiportToBankHierarchy.txt
+++ b/test/known-good/C/src/multiport/MultiportToBankHierarchy.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(2)) {
- output[width] out: int
+reactor Source(width: int(2)) {
+ output[width] out: int
reaction(startup) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(bank_index: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(bank_index: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
printf("Destination %d received %d.\n", self->bank_index, in->value);
@@ -37,13 +37,13 @@
=}
}
-reactor Container(width: int(2)) {
- input[width] in: int
- c = new[width] Destination()
+reactor Container(width: int(2)) {
+ input[width] in: int
+ c = new[width] Destination()
in -> c.in
}
-main reactor MultiportToBankHierarchy(width: int(3)) {
+main reactor MultiportToBankHierarchy(width: int(3)) {
a = new Source(width = width)
b = new Container(width = width)
a.out -> b.in
diff --git a/test/known-good/C/src/multiport/MultiportToHierarchy.txt b/test/known-good/C/src/multiport/MultiportToHierarchy.txt
index 979b30f53..b9ff07536 100644
--- a/test/known-good/C/src/multiport/MultiportToHierarchy.txt
+++ b/test/known-good/C/src/multiport/MultiportToHierarchy.txt
@@ -2,14 +2,14 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(2)) {
+reactor Source(width: int(2)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < 4; i++) {
@@ -18,9 +18,9 @@
=}
}
-reactor Destination(width: int(4)) {
- state s: int(6)
- input[width] in: int
+reactor Destination(width: int(4)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -44,13 +44,13 @@
=}
}
-reactor Container(width: int(4)) {
- input[width] in: int
+reactor Container(width: int(4)) {
+ input[width] in: int
dst = new Destination()
in -> dst.in
}
-main reactor MultiportToHierarchy(width: int(4)) {
+main reactor MultiportToHierarchy(width: int(4)) {
a = new Source(width = width)
b = new Container(width = width)
a.out -> b.in
diff --git a/test/known-good/C/src/multiport/MultiportToMultiport.txt b/test/known-good/C/src/multiport/MultiportToMultiport.txt
index c3c9162ca..b5ed2090c 100644
--- a/test/known-good/C/src/multiport/MultiportToMultiport.txt
+++ b/test/known-good/C/src/multiport/MultiportToMultiport.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(1)) {
+reactor Source(width: int(1)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -19,9 +19,9 @@
=}
}
-reactor Destination(width: int(1)) {
- state s: int(6)
- input[width] in: int
+reactor Destination(width: int(1)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -45,7 +45,7 @@
=}
}
-main reactor MultiportToMultiport(width: int(4)) {
+main reactor MultiportToMultiport(width: int(4)) {
a = new Source(width = width)
b = new Destination(width = width)
a.out -> b.in
diff --git a/test/known-good/C/src/multiport/MultiportToMultiport2.txt b/test/known-good/C/src/multiport/MultiportToMultiport2.txt
index 3965fd9e4..c41cdc09a 100644
--- a/test/known-good/C/src/multiport/MultiportToMultiport2.txt
+++ b/test/known-good/C/src/multiport/MultiportToMultiport2.txt
@@ -1,8 +1,8 @@
target C
-reactor Source(width: int(2)) {
- output[width] out: int
+reactor Source(width: int(2)) {
+ output[width] out: int
reaction(startup) -> out {=
for (int i = 0; i < out_width; i++) {
@@ -11,8 +11,8 @@
=}
}
-reactor Destination(width: int(2)) {
- input[width] in: int
+reactor Destination(width: int(2)) {
+ input[width] in: int
reaction(in) {=
for (int i = 0; i < in_width; i++) {
@@ -30,9 +30,9 @@
}
main reactor MultiportToMultiport2(
- width1: int(3),
- width2: int(2),
- width3: int(5)
+ width1: int(3),
+ width2: int(2),
+ width3: int(5)
) {
a1 = new Source(width = width1)
a2 = new Source(width = width2)
diff --git a/test/known-good/C/src/multiport/MultiportToMultiport2After.txt b/test/known-good/C/src/multiport/MultiportToMultiport2After.txt
index fd8c5f66a..69cb2cc32 100644
--- a/test/known-good/C/src/multiport/MultiportToMultiport2After.txt
+++ b/test/known-good/C/src/multiport/MultiportToMultiport2After.txt
@@ -1,8 +1,8 @@
target C
-reactor Source(width: int(2)) {
- output[width] out: int
+reactor Source(width: int(2)) {
+ output[width] out: int
reaction(startup) -> out {=
for (int i = 0; i < out_width; i++) {
@@ -11,8 +11,8 @@
=}
}
-reactor Destination(width: int(2)) {
- input[width] in: int
+reactor Destination(width: int(2)) {
+ input[width] in: int
reaction(in) {=
for (int i = 0; i < in_width; i++) {
diff --git a/test/known-good/C/src/multiport/MultiportToMultiportArray.txt b/test/known-good/C/src/multiport/MultiportToMultiportArray.txt
index b46346bbd..003b5e86f 100644
--- a/test/known-good/C/src/multiport/MultiportToMultiportArray.txt
+++ b/test/known-good/C/src/multiport/MultiportToMultiportArray.txt
@@ -1,14 +1,14 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output[2] out: int[]
- state s: int(0)
+ output[2] out: int[]
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < 2; i++) {
@@ -24,8 +24,8 @@
}
reactor Destination {
- state s: int(15)
- input[2] in: int[]
+ state s: int(15)
+ input[2] in: int[]
reaction(in) {=
int sum = 0;
diff --git a/test/known-good/C/src/multiport/MultiportToMultiportParameter.txt b/test/known-good/C/src/multiport/MultiportToMultiportParameter.txt
index f73002814..fdfe9444e 100644
--- a/test/known-good/C/src/multiport/MultiportToMultiportParameter.txt
+++ b/test/known-good/C/src/multiport/MultiportToMultiportParameter.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(1)) {
+reactor Source(width: int(1)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -19,9 +19,9 @@
=}
}
-reactor Destination(width: int(1)) {
- state s: int(6)
- input[width] in: int // Width is one larger than that of the source.
+reactor Destination(width: int(1)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
@@ -45,7 +45,7 @@
=}
}
-main reactor(width: int(4)) {
+main reactor(width: int(4)) {
a = new Source(width = width)
b = new Destination(width = width)
a.out -> b.in
diff --git a/test/known-good/C/src/multiport/MultiportToPort.txt b/test/known-good/C/src/multiport/MultiportToPort.txt
index ac0672a28..e71cbfbe4 100644
--- a/test/known-good/C/src/multiport/MultiportToPort.txt
+++ b/test/known-good/C/src/multiport/MultiportToPort.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
- output[2] out: int
+ output[2] out: int
reaction(startup) -> out {=
for(int i = 0; i < out_width; i++) {
@@ -16,9 +16,9 @@
=}
}
-reactor Destination(expected: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(expected: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
printf("Received: %d.\n", in->value);
diff --git a/test/known-good/C/src/multiport/MultiportToReaction.txt b/test/known-good/C/src/multiport/MultiportToReaction.txt
index 0ec525497..46773a278 100644
--- a/test/known-good/C/src/multiport/MultiportToReaction.txt
+++ b/test/known-good/C/src/multiport/MultiportToReaction.txt
@@ -1,13 +1,13 @@
target C {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: int(1)) {
+reactor Source(width: int(1)) {
timer t(0, 200 msec)
- state s: int(0)
- output[width] out: int
+ state s: int(0)
+ output[width] out: int
reaction(t) -> out {=
printf("Sending.\n");
@@ -18,7 +18,7 @@
}
main reactor MultiportToReaction {
- state s: int(6)
+ state s: int(6)
b = new Source(width = 4)
reaction(b.out) {=
diff --git a/test/known-good/C/src/multiport/NestedBanks.txt b/test/known-good/C/src/multiport/NestedBanks.txt
index 4934e8d9e..8e21f3b74 100644
--- a/test/known-good/C/src/multiport/NestedBanks.txt
+++ b/test/known-good/C/src/multiport/NestedBanks.txt
@@ -5,22 +5,22 @@
target C
main reactor {
- a = new[2] A()
- c = new[3] C()
+ a = new[2] A()
+ c = new[3] C()
d = new D()
e = new E()
(a.x)+ -> c.z, d.u, e.t
}
-reactor A(bank_index: int(0)) {
- output[4] x: int
- b = new[2] B(a_bank_index = bank_index)
+reactor A(bank_index: int(0)) {
+ output[4] x: int
+ b = new[2] B(a_bank_index = bank_index)
b.y -> x
}
-reactor B(a_bank_index: int(0), bank_index: int(0)) {
- output[2] y: int
+reactor B(a_bank_index: int(0), bank_index: int(0)) {
+ output[2] y: int
reaction(startup) -> y {=
int base = self->a_bank_index * 4 + self->bank_index * 2;
@@ -29,15 +29,15 @@
=}
}
-reactor C(bank_index: int(0)) {
- input[2] z: int
+reactor C(bank_index: int(0)) {
+ input[2] z: int
f = new F(c_bank_index = bank_index)
g = new G(c_bank_index = bank_index)
z -> f.w, g.s
}
reactor D {
- input[2] u: int
+ input[2] u: int
reaction(u) {=
for (int i = 0; i < u_width; i++) {
@@ -50,7 +50,7 @@
}
reactor E {
- input[8] t: int
+ input[8] t: int
reaction(t) {=
for (int i = 0; i < t_width; i++) {
@@ -59,8 +59,8 @@
=}
}
-reactor F(c_bank_index: int(0)) {
- input w: int
+reactor F(c_bank_index: int(0)) {
+ input w: int
reaction(w) {=
lf_print("c[%d].f.w received %d.", self->c_bank_index, w->value);
@@ -70,8 +70,8 @@
=}
}
-reactor G(c_bank_index: int(0)) {
- input s: int
+reactor G(c_bank_index: int(0)) {
+ input s: int
reaction(s) {=
lf_print("c[%d].g.s received %d.", self->c_bank_index, s->value);
diff --git a/test/known-good/C/src/multiport/NestedInterleavedBanks.txt b/test/known-good/C/src/multiport/NestedInterleavedBanks.txt
index 71f9d4301..dd8e59d15 100644
--- a/test/known-good/C/src/multiport/NestedInterleavedBanks.txt
+++ b/test/known-good/C/src/multiport/NestedInterleavedBanks.txt
@@ -4,8 +4,8 @@
target C
-reactor A(bank_index: int(0), outer_bank_index: int(0)) {
- output[2] p: int
+reactor A(bank_index: int(0), outer_bank_index: int(0)) {
+ output[2] p: int
reaction(startup) -> p {=
for (int i = 0; i < p_width; i++) {
@@ -15,14 +15,14 @@
=}
}
-reactor B(bank_index: int(0)) {
- output[4] q: int
- a = new[2] A(outer_bank_index = bank_index)
+reactor B(bank_index: int(0)) {
+ output[4] q: int
+ a = new[2] A(outer_bank_index = bank_index)
interleaved (a.p) -> q
}
reactor C {
- input[8] i: int
+ input[8] i: int
reaction(i) {=
int expected[] = {1, 3, 2, 4, 5, 7, 6, 8};
@@ -36,7 +36,7 @@
}
main reactor {
- b = new[2] B()
+ b = new[2] B()
c = new C()
b.q -> c.i
}
diff --git a/test/known-good/C/src/multiport/PipelineAfter.txt b/test/known-good/C/src/multiport/PipelineAfter.txt
index d3b28e84d..dda0e6cfc 100644
--- a/test/known-good/C/src/multiport/PipelineAfter.txt
+++ b/test/known-good/C/src/multiport/PipelineAfter.txt
@@ -1,20 +1,20 @@
target C
reactor Source {
- output out: unsigned
+ output out: unsigned
reaction(startup) -> out {= lf_set(out, 40); =}
}
reactor Compute {
- input in: unsigned
- output out: unsigned
+ input in: unsigned
+ output out: unsigned
reaction(in) -> out {= lf_set(out, in->value + 2); =}
}
reactor Sink {
- input in: unsigned
+ input in: unsigned
reaction(in) {=
printf("Received %d\n", in->value);
diff --git a/test/known-good/C/src/multiport/ReactionToContainedBank.txt b/test/known-good/C/src/multiport/ReactionToContainedBank.txt
index 33c82b83f..167ab516f 100644
--- a/test/known-good/C/src/multiport/ReactionToContainedBank.txt
+++ b/test/known-good/C/src/multiport/ReactionToContainedBank.txt
@@ -1,16 +1,16 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
import TestCount from "../lib/TestCount.lf"
-main reactor ReactionToContainedBank(width: int(2)) {
+main reactor ReactionToContainedBank(width: int(2)) {
timer t(0, 100 msec)
- state count: int(1)
+ state count: int(1)
- test = new[width] TestCount(num_inputs = 11)
+ test = new[width] TestCount(num_inputs = 11)
reaction(t) -> test.in {=
for (int i = 0; i < self->width; i++) {
diff --git a/test/known-good/C/src/multiport/ReactionToContainedBank2.txt b/test/known-good/C/src/multiport/ReactionToContainedBank2.txt
index 5354a3559..512e6f501 100644
--- a/test/known-good/C/src/multiport/ReactionToContainedBank2.txt
+++ b/test/known-good/C/src/multiport/ReactionToContainedBank2.txt
@@ -1,16 +1,16 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
import TestCount from "../lib/TestCount.lf"
-reactor ReactionToContainedBank(width: int(2)) {
+reactor ReactionToContainedBank(width: int(2)) {
timer t(0, 100 msec)
- state count: int(1)
+ state count: int(1)
- test = new[width] TestCount(num_inputs = 11)
+ test = new[width] TestCount(num_inputs = 11)
reaction(t) -> test.in {=
for (int i = 0; i < self->width; i++) {
@@ -20,7 +20,7 @@
=}
}
-main reactor(width: int(2)) {
+main reactor(width: int(2)) {
a = new ReactionToContainedBank(width = width)
b = new ReactionToContainedBank(width = 4)
}
diff --git a/test/known-good/C/src/multiport/ReactionToContainedBankMultiport.txt b/test/known-good/C/src/multiport/ReactionToContainedBankMultiport.txt
index b6051562e..23a9e92d2 100644
--- a/test/known-good/C/src/multiport/ReactionToContainedBankMultiport.txt
+++ b/test/known-good/C/src/multiport/ReactionToContainedBankMultiport.txt
@@ -1,17 +1,17 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
import TestCountMultiport from "../lib/TestCountMultiport.lf"
-main reactor(width: int(2)) {
+main reactor(width: int(2)) {
timer t(0, 100 msec)
- state count: int(1)
+ state count: int(1)
- test = new[width] TestCountMultiport(num_inputs = 11, width = width)
+ test = new[width] TestCountMultiport(num_inputs = 11, width = width)
reaction(t) -> test.in {=
for (int i = 0; i < self->width; i++) {
diff --git a/test/known-good/C/src/multiport/ReactionsToNested.txt b/test/known-good/C/src/multiport/ReactionsToNested.txt
index a8d5204dc..fd8873d40 100644
--- a/test/known-good/C/src/multiport/ReactionsToNested.txt
+++ b/test/known-good/C/src/multiport/ReactionsToNested.txt
@@ -1,12 +1,12 @@
target C {
- timeout: 1 sec
+ timeout: 1 sec
}
-reactor T(expected: int(0)) {
- input z: int
- state received: bool(false)
+reactor T(expected: int(0)) {
+ input z: int
+ state received: bool(false)
reaction(z) {=
lf_print("T received %d", z->value);
@@ -24,7 +24,7 @@
}
reactor D {
- input[2] y: int
+ input[2] y: int
t1 = new T(expected = 42)
t2 = new T(expected = 43)
y -> t1.z, t2.z
diff --git a/test/known-good/C/src/multiport/Sparse.txt b/test/known-good/C/src/multiport/Sparse.txt
index e514cfd90..7d5082592 100644
--- a/test/known-good/C/src/multiport/Sparse.txt
+++ b/test/known-good/C/src/multiport/Sparse.txt
@@ -1,11 +1,11 @@
target C {
- timeout: 20 ms
+ timeout: 20 ms
}
-reactor SparseSource(width: int(20)) {
- output[width] out: int
- state count: int(0)
+reactor SparseSource(width: int(20)) {
+ output[width] out: int
+ state count: int(0)
timer t(0, 1 msec)
reaction(t) -> out {=
@@ -19,8 +19,8 @@
=}
}
-reactor SparseSink(width: int(20)) {
- input[width] in: int
+reactor SparseSink(width: int(20)) {
+ input[width] in: int
reaction(in) {=
struct lf_multiport_iterator_t i = lf_multiport_iterator(in);
@@ -43,7 +43,7 @@
=}
}
-main reactor(width: int(20)) {
+main reactor(width: int(20)) {
s = new SparseSource(width = width)
d = new SparseSink(width = width)
s.out -> d.in
diff --git a/test/known-good/C/src/multiport/SparseFallback.txt b/test/known-good/C/src/multiport/SparseFallback.txt
index ae44e0fc4..426e52634 100644
--- a/test/known-good/C/src/multiport/SparseFallback.txt
+++ b/test/known-good/C/src/multiport/SparseFallback.txt
@@ -3,12 +3,12 @@
target C {
- timeout: 20 ms
+ timeout: 20 ms
}
-reactor SparseSource(width: int(20)) {
- output[width] out: int
- state count: int(0)
+reactor SparseSource(width: int(20)) {
+ output[width] out: int
+ state count: int(0)
timer t(0, 1 msec)
reaction(t) -> out {=
@@ -22,8 +22,8 @@
=}
}
-reactor SparseSink(width: int(20)) {
- input[width] in: int
+reactor SparseSink(width: int(20)) {
+ input[width] in: int
reaction(in) {=
struct lf_multiport_iterator_t i = lf_multiport_iterator(in);
@@ -46,7 +46,7 @@
=}
}
-main reactor(width: int(10)) {
+main reactor(width: int(10)) {
s = new SparseSource(width = width)
d = new SparseSink(width = width)
s.out -> d.in
diff --git a/test/known-good/C/src/multiport/TriggerDownstreamOnlyIfPresent.txt b/test/known-good/C/src/multiport/TriggerDownstreamOnlyIfPresent.txt
index 8ff8d9aba..599826f0a 100644
--- a/test/known-good/C/src/multiport/TriggerDownstreamOnlyIfPresent.txt
+++ b/test/known-good/C/src/multiport/TriggerDownstreamOnlyIfPresent.txt
@@ -3,14 +3,14 @@
target C {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Source {
- output a: int
- output b: int
- state count: int(0)
+ output a: int
+ output b: int
+ state count: int(0)
timer t(0, 200 msec)
reaction(t) -> a, b {=
@@ -23,8 +23,8 @@
}
reactor Destination {
- input a: int
- input b: int
+ input a: int
+ input b: int
reaction(a) {=
if (!a->is_present) {
@@ -42,8 +42,8 @@
}
main reactor TriggerDownstreamOnlyIfPresent {
- s = new[2] Source()
- d = new[2] Destination()
+ s = new[2] Source()
+ d = new[2] Destination()
s.a -> d.a
s.b -> d.b
}
diff --git a/test/known-good/C/src/serialization/PersonProtocolBuffers.txt b/test/known-good/C/src/serialization/PersonProtocolBuffers.txt
index 7b3805bbd..45ddf2810 100644
--- a/test/known-good/C/src/serialization/PersonProtocolBuffers.txt
+++ b/test/known-good/C/src/serialization/PersonProtocolBuffers.txt
@@ -20,7 +20,7 @@
target C {
- protobufs: Person.proto
+ protobufs: Person.proto
}
main reactor {
diff --git a/test/known-good/C/src/serialization/ProtoNoPacking.txt b/test/known-good/C/src/serialization/ProtoNoPacking.txt
index 9773ac8c4..06705e708 100644
--- a/test/known-good/C/src/serialization/ProtoNoPacking.txt
+++ b/test/known-good/C/src/serialization/ProtoNoPacking.txt
@@ -19,11 +19,11 @@
target C {
- protobufs: [ProtoHelloWorld.proto]
+ protobufs: [ProtoHelloWorld.proto]
}
reactor SourceProto {
- output out: ProtoHelloWorld
+ output out: ProtoHelloWorld
reaction(startup) -> out {=
out->value.name = "Hello World";
@@ -33,7 +33,7 @@
}
reactor SinkProto {
- input in: ProtoHelloWorld
+ input in: ProtoHelloWorld
reaction(in) {=
printf("Received: name=\"%s\", number=%d.\n", in->value.name, in->value.number);
diff --git a/test/known-good/C/src/serialization/ROSBuiltInSerialization.txt b/test/known-good/C/src/serialization/ROSBuiltInSerialization.txt
index c6fb56e6d..b08c4e3bf 100644
--- a/test/known-good/C/src/serialization/ROSBuiltInSerialization.txt
+++ b/test/known-good/C/src/serialization/ROSBuiltInSerialization.txt
@@ -20,8 +20,8 @@
target CCpp {
- cmake-include: "include/CMakeListsExtension.txt",
- timeout: 2 sec
+ cmake-include: "include/CMakeListsExtension.txt",
+ timeout: 2 sec
}
preamble {=
@@ -29,10 +29,10 @@
=}
reactor Sender {
- output out: std_msgs::msg::Int32
+ output out: std_msgs::msg::Int32
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
@@ -44,8 +44,8 @@
}
reactor Receiver {
- input in: std_msgs::msg::Int32
- state count: int(0)
+ input in: std_msgs::msg::Int32
+ state count: int(0)
reaction(in) {=
diff --git a/test/known-good/C/src/serialization/ROSBuiltInSerializationSharedPtr.txt b/test/known-good/C/src/serialization/ROSBuiltInSerializationSharedPtr.txt
index a9ba5ef42..f2f520794 100644
--- a/test/known-good/C/src/serialization/ROSBuiltInSerializationSharedPtr.txt
+++ b/test/known-good/C/src/serialization/ROSBuiltInSerializationSharedPtr.txt
@@ -20,8 +20,8 @@
target CCpp {
- cmake-include: "include/CMakeListsExtension.txt",
- timeout: 2 sec
+ cmake-include: "include/CMakeListsExtension.txt",
+ timeout: 2 sec
}
preamble {=
@@ -29,9 +29,9 @@
=}
reactor Sender {
- output out: std::shared_ptrmsg::Int32>
+ output out: std::shared_ptrmsg::Int32>
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
@@ -43,8 +43,8 @@
}
reactor Receiver {
- input in: std::shared_ptrmsg::Int32>
- state count: int(0)
+ input in: std::shared_ptrmsg::Int32>
+ state count: int(0)
reaction(in) {=
diff --git a/test/known-good/C/src/target/CMakeInclude.txt b/test/known-good/C/src/target/CMakeInclude.txt
index 05b1f67fa..ba14700ee 100644
--- a/test/known-good/C/src/target/CMakeInclude.txt
+++ b/test/known-good/C/src/target/CMakeInclude.txt
@@ -3,11 +3,11 @@
target C {
- cmake-include: [
+ cmake-include: [
"../include/mlib-cmake-extension.cmake",
"../include/foo-cmake-compile-definition.txt"
],
- timeout: 0 sec
+ timeout: 0 sec
}
reactor Foo {
diff --git a/test/known-good/C/src/target/DistributedCMakeInclude.txt b/test/known-good/C/src/target/DistributedCMakeInclude.txt
index 78a437654..ced3deeaa 100644
--- a/test/known-good/C/src/target/DistributedCMakeInclude.txt
+++ b/test/known-good/C/src/target/DistributedCMakeInclude.txt
@@ -4,8 +4,8 @@
target C {
- timeout: 0 sec,
- cmake-include: "include/bar-cmake-compile-definition.cmake"
+ timeout: 0 sec,
+ cmake-include: "include/bar-cmake-compile-definition.cmake"
}
import Baz from "lib/ImportedCMakeInclude.lf"
diff --git a/test/known-good/C/src/target/DistributedCMakeIncludeSeparateCompile.txt b/test/known-good/C/src/target/DistributedCMakeIncludeSeparateCompile.txt
index b8db83090..fcd01e87d 100644
--- a/test/known-good/C/src/target/DistributedCMakeIncludeSeparateCompile.txt
+++ b/test/known-good/C/src/target/DistributedCMakeIncludeSeparateCompile.txt
@@ -4,7 +4,7 @@
target C {
- timeout: 0 sec
+ timeout: 0 sec
}
import Foo from "CMakeInclude.lf"
diff --git a/test/known-good/C/src/target/Files.txt b/test/known-good/C/src/target/Files.txt
index 7e054fbfa..b6c5b5e26 100644
--- a/test/known-good/C/src/target/Files.txt
+++ b/test/known-good/C/src/target/Files.txt
@@ -1,6 +1,6 @@
target C {
- files: ["../include", "include/dummy.h"]
+ files: ["../include", "include/dummy.h"]
}
preamble {=
diff --git a/test/known-good/C/src/target/HelloWorldCCPP.txt b/test/known-good/C/src/target/HelloWorldCCPP.txt
index 208924270..ef6110c50 100644
--- a/test/known-good/C/src/target/HelloWorldCCPP.txt
+++ b/test/known-good/C/src/target/HelloWorldCCPP.txt
@@ -3,15 +3,15 @@
target CCpp {
- tracing: true,
- logging: DEBUG
+ tracing: true,
+ logging: DEBUG
}
reactor HelloWorld {
preamble {=
=}
- state success: bool(false)
+ state success: bool(false)
reaction(startup) {=
std::cout << "Hello World." << std::endl;
diff --git a/test/known-good/C/src/target/HelloWorldFederatedCCPP.txt b/test/known-good/C/src/target/HelloWorldFederatedCCPP.txt
index 2620a994d..3583dcea4 100644
--- a/test/known-good/C/src/target/HelloWorldFederatedCCPP.txt
+++ b/test/known-good/C/src/target/HelloWorldFederatedCCPP.txt
@@ -3,9 +3,9 @@
target CCpp {
- tracing: true,
- coordination: centralized,
- timeout: 1 sec
+ tracing: true,
+ coordination: centralized,
+ timeout: 1 sec
}
import HelloWorld from "HelloWorldCCPP.lf"
diff --git a/test/known-good/C/src/target/HelloWorldThreadedCPP.txt b/test/known-good/C/src/target/HelloWorldThreadedCPP.txt
index e5839e29c..2fe1f8b13 100644
--- a/test/known-good/C/src/target/HelloWorldThreadedCPP.txt
+++ b/test/known-good/C/src/target/HelloWorldThreadedCPP.txt
@@ -3,8 +3,8 @@
target CCpp {
- tracing: true,
- logging: DEBUG
+ tracing: true,
+ logging: DEBUG
}
import HelloWorld from "HelloWorldCCPP.lf"
diff --git a/test/known-good/C/src/target/Platform.txt b/test/known-good/C/src/target/Platform.txt
index 31790fd00..4a651a44a 100644
--- a/test/known-good/C/src/target/Platform.txt
+++ b/test/known-good/C/src/target/Platform.txt
@@ -1,6 +1,6 @@
target C {
- platform: "Mac"
+ platform: "Mac"
}
main reactor {
diff --git a/test/known-good/C/src/target/lib/ImportedCMakeInclude.txt b/test/known-good/C/src/target/lib/ImportedCMakeInclude.txt
index 24b6706ab..3313f1891 100644
--- a/test/known-good/C/src/target/lib/ImportedCMakeInclude.txt
+++ b/test/known-good/C/src/target/lib/ImportedCMakeInclude.txt
@@ -1,5 +1,5 @@
target C {
- cmake-include: "../include/baz-cmake-compile-definition.cmake"
+ cmake-include: "../include/baz-cmake-compile-definition.cmake"
}
reactor Baz {
diff --git a/test/known-good/C/src/token/TokenContainedPrint.txt b/test/known-good/C/src/token/TokenContainedPrint.txt
index bf787d571..0f3c1b1a1 100644
--- a/test/known-good/C/src/token/TokenContainedPrint.txt
+++ b/test/known-good/C/src/token/TokenContainedPrint.txt
@@ -3,13 +3,13 @@
target C {
- timeout: 2 ms
+ timeout: 2 ms
}
import TokenPrint from "lib/Token.lf"
main reactor {
- state count: int(0)
+ state count: int(0)
timer t(0, 1 ms)
p = new TokenPrint()
diff --git a/test/known-good/C/src/token/TokenContainedPrintBank.txt b/test/known-good/C/src/token/TokenContainedPrintBank.txt
index a6092a25b..1d65b5154 100644
--- a/test/known-good/C/src/token/TokenContainedPrintBank.txt
+++ b/test/known-good/C/src/token/TokenContainedPrintBank.txt
@@ -4,15 +4,15 @@
target C {
- timeout: 2 ms
+ timeout: 2 ms
}
import TokenPrint from "lib/Token.lf"
main reactor {
- state count: int(0)
+ state count: int(0)
timer t(0, 1 ms)
- p = new[2] TokenPrint()
+ p = new[2] TokenPrint()
reaction(startup) -> p.in {=
for (int j = 0; j < p_width; j++) {
diff --git a/test/known-good/C/src/token/TokenContainedSource.txt b/test/known-good/C/src/token/TokenContainedSource.txt
index 48f0bf827..ae23478ed 100644
--- a/test/known-good/C/src/token/TokenContainedSource.txt
+++ b/test/known-good/C/src/token/TokenContainedSource.txt
@@ -4,14 +4,14 @@
target C {
- timeout: 2 ms
+ timeout: 2 ms
}
import TokenSource from "lib/Token.lf"
-main reactor(scale: int(1)) {
- state count: int(0)
- state input_received: bool(false)
+main reactor(scale: int(1)) {
+ state count: int(0)
+ state input_received: bool(false)
s = new TokenSource()
diff --git a/test/known-good/C/src/token/TokenContainedSourceBank.txt b/test/known-good/C/src/token/TokenContainedSourceBank.txt
index 85054fb6b..32100f7b7 100644
--- a/test/known-good/C/src/token/TokenContainedSourceBank.txt
+++ b/test/known-good/C/src/token/TokenContainedSourceBank.txt
@@ -5,16 +5,16 @@
target C {
- timeout: 2 ms
+ timeout: 2 ms
}
import TokenSource from "lib/Token.lf"
-main reactor(scale: int(1)) {
- state count: int(0)
- state input_received: bool(false)
+main reactor(scale: int(1)) {
+ state count: int(0)
+ state input_received: bool(false)
- s = new[2] TokenSource()
+ s = new[2] TokenSource()
reaction(s.out) {=
self->input_received = true;
diff --git a/test/known-good/C/src/token/TokenDelayTest.txt b/test/known-good/C/src/token/TokenDelayTest.txt
index 83e39d822..b3c1c35b6 100644
--- a/test/known-good/C/src/token/TokenDelayTest.txt
+++ b/test/known-good/C/src/token/TokenDelayTest.txt
@@ -3,7 +3,7 @@
target C {
- timeout: 2 ms
+ timeout: 2 ms
}
import TokenSource, TokenPrint, TokenDelay from "lib/Token.lf"
diff --git a/test/known-good/C/src/token/TokenMutable.txt b/test/known-good/C/src/token/TokenMutable.txt
index 6dcd854ae..35457941c 100644
--- a/test/known-good/C/src/token/TokenMutable.txt
+++ b/test/known-good/C/src/token/TokenMutable.txt
@@ -5,7 +5,7 @@
target C {
- timeout: 2 ms
+ timeout: 2 ms
}
import TokenSource, TokenPrint, TokenScale from "lib/Token.lf"
diff --git a/test/known-good/C/src/token/TokenSourcePrint.txt b/test/known-good/C/src/token/TokenSourcePrint.txt
index c637cebb5..05dba15a6 100644
--- a/test/known-good/C/src/token/TokenSourcePrint.txt
+++ b/test/known-good/C/src/token/TokenSourcePrint.txt
@@ -4,7 +4,7 @@
target C {
- timeout: 2 ms
+ timeout: 2 ms
}
import TokenSource, TokenPrint from "lib/Token.lf"
diff --git a/test/known-good/C/src/token/TokenSourceScalePrint.txt b/test/known-good/C/src/token/TokenSourceScalePrint.txt
index deb02f883..dbeaeabf3 100644
--- a/test/known-good/C/src/token/TokenSourceScalePrint.txt
+++ b/test/known-good/C/src/token/TokenSourceScalePrint.txt
@@ -5,7 +5,7 @@
target C {
- timeout: 2 ms
+ timeout: 2 ms
}
import TokenSource, TokenPrint, TokenScale from "lib/Token.lf"
diff --git a/test/known-good/C/src/token/lib/Token.txt b/test/known-good/C/src/token/lib/Token.txt
index 965f5f650..32b60d184 100644
--- a/test/known-good/C/src/token/lib/Token.txt
+++ b/test/known-good/C/src/token/lib/Token.txt
@@ -4,7 +4,7 @@
target C {
- files: ["../include/array.h"]
+ files: ["../include/array.h"]
}
preamble {=
@@ -19,8 +19,8 @@
reactor TokenSource {
- output out: int_array_t*
- state count: int(0)
+ output out: int_array_t*
+ state count: int(0)
timer t(0, 1 ms)
reaction(startup) -> out {=
@@ -42,10 +42,10 @@
-reactor TokenPrint(scale: int(1)) {
- input in: int_array_t*
- state count: int(0)
- state input_received: bool(false)
+reactor TokenPrint(scale: int(1)) {
+ input in: int_array_t*
+ state count: int(0)
+ state input_received: bool(false)
reaction(in) {=
self->input_received = true;
@@ -79,9 +79,9 @@
-reactor TokenScale(scale: int(2)) {
- mutable input in: int_array_t*
- output out: int_array_t*
+reactor TokenScale(scale: int(2)) {
+ mutable input in: int_array_t*
+ output out: int_array_t*
reaction(in) -> out {=
for (int i = 0; i < in->value->length; i++) {
@@ -93,9 +93,9 @@
reactor TokenDelay {
- input in: int_array_t*
- output out: int_array_t*
- logical action a: int_array_t*
+ input in: int_array_t*
+ output out: int_array_t*
+ logical action a: int_array_t*
reaction(a) -> out {= lf_set_token(out, a->token); =}
diff --git a/test/known-good/C/src/zephyr/Blinky2.txt b/test/known-good/C/src/zephyr/Blinky2.txt
index b7cdbb51f..883e1851e 100644
--- a/test/known-good/C/src/zephyr/Blinky2.txt
+++ b/test/known-good/C/src/zephyr/Blinky2.txt
@@ -1,10 +1,10 @@
target C {
- platform: {
- name: Zephyr,
- board: nrf52dk_nrf52832
+ platform: {
+ name: Zephyr,
+ board: nrf52dk_nrf52832
},
- threading: false
-}
+ threading: false
+}
import NrfLeds from "lib/Led.lf"
diff --git a/test/known-good/C/src/zephyr/HelloZephyr.txt b/test/known-good/C/src/zephyr/HelloZephyr.txt
index e905b2d5f..2351cd7d6 100644
--- a/test/known-good/C/src/zephyr/HelloZephyr.txt
+++ b/test/known-good/C/src/zephyr/HelloZephyr.txt
@@ -1,8 +1,8 @@
target C {
- threading: false,
- platform: {
- name: Zephyr,
- board: qemu_cortex_m3
+ threading: false,
+ platform: {
+ name: Zephyr,
+ board: qemu_cortex_m3
}
}
diff --git a/test/known-good/C/src/zephyr/Timer.txt b/test/known-good/C/src/zephyr/Timer.txt
index f5741b235..989ed20d8 100644
--- a/test/known-good/C/src/zephyr/Timer.txt
+++ b/test/known-good/C/src/zephyr/Timer.txt
@@ -1,10 +1,10 @@
target C {
- platform: {
- name: Zephyr,
- board: qemu_cortex_m3
+ platform: {
+ name: Zephyr,
+ board: qemu_cortex_m3
},
- threading: false
-}
+ threading: false
+}
main reactor {
timer t(0, 1 sec)
diff --git a/test/known-good/Cpp/src/ActionDelay.txt b/test/known-good/Cpp/src/ActionDelay.txt
index a29f28571..8263d9eb3 100644
--- a/test/known-good/Cpp/src/ActionDelay.txt
+++ b/test/known-good/Cpp/src/ActionDelay.txt
@@ -2,10 +2,10 @@
target Cpp
reactor GeneratedDelay {
- input y_in: int
- output y_out: int
- state y_state: int{0}
- logical action act(100 msec): void
+ input y_in: int
+ output y_out: int
+ state y_state: int{0}
+ logical action act(100 msec): void
reaction(y_in) -> act {=
y_state = *y_in.get();
@@ -16,13 +16,13 @@
}
reactor Source {
- output out: int
+ output out: int
reaction(startup) -> out {= out.set(1); =}
}
reactor Sink {
- input in: int
+ input in: int
reaction(in) {=
auto elapsed_logical = get_elapsed_logical_time();
diff --git a/test/known-good/Cpp/src/ActionIsPresent.txt b/test/known-good/Cpp/src/ActionIsPresent.txt
index 4c4f08b83..c1861737e 100644
--- a/test/known-good/Cpp/src/ActionIsPresent.txt
+++ b/test/known-good/Cpp/src/ActionIsPresent.txt
@@ -1,10 +1,10 @@
target Cpp
-main reactor ActionIsPresent(offset: time(1 nsec), period: time(500 msec)) {
+main reactor ActionIsPresent(offset: time(1 nsec), period: time(500 msec)) {
logical action a
- state success: bool(false)
- state zero: time(0 nsec)
+ state success: bool(false)
+ state zero: time(0 nsec)
reaction(startup, a) -> a {=
if (!a.is_present()) {
diff --git a/test/known-good/Cpp/src/ActionValues.txt b/test/known-good/Cpp/src/ActionValues.txt
index 189a2663c..ce460edb9 100644
--- a/test/known-good/Cpp/src/ActionValues.txt
+++ b/test/known-good/Cpp/src/ActionValues.txt
@@ -2,9 +2,9 @@
target Cpp
main reactor ActionValues {
- state r1done: bool(false)
- state r2done: bool(false)
- logical action act(100 msec): int
+ state r1done: bool(false)
+ state r2done: bool(false)
+ logical action act(100 msec): int
reaction(startup) -> act {=
act.schedule(100);
diff --git a/test/known-good/Cpp/src/ActionWithNoReaction.txt b/test/known-good/Cpp/src/ActionWithNoReaction.txt
index b93bc579d..b9fd15a75 100644
--- a/test/known-good/Cpp/src/ActionWithNoReaction.txt
+++ b/test/known-good/Cpp/src/ActionWithNoReaction.txt
@@ -2,13 +2,13 @@
target Cpp {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor foo {
- input x: int
- output y: int
+ input x: int
+ output y: int
logical action a
reaction(x) -> y, a {=
@@ -18,7 +18,7 @@
}
reactor print {
- input x: int
+ input x: int
reaction(x) {=
std::cout << "Result is " << *x.get() << '\n';
diff --git a/test/known-good/Cpp/src/After.txt b/test/known-good/Cpp/src/After.txt
index d2e712349..f981ac15f 100644
--- a/test/known-good/Cpp/src/After.txt
+++ b/test/known-good/Cpp/src/After.txt
@@ -1,21 +1,21 @@
target Cpp {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
reactor foo {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= y.set(2*(*x.get())); =}
}
reactor print {
- state expected_time: time(10 msec)
- state i: int(0)
- input x: int
+ state expected_time: time(10 msec)
+ state i: int(0)
+ input x: int
reaction(x) {=
i++;
diff --git a/test/known-good/Cpp/src/AfterOverlapped.txt b/test/known-good/Cpp/src/AfterOverlapped.txt
index ed59425a3..9e551b3c0 100644
--- a/test/known-good/Cpp/src/AfterOverlapped.txt
+++ b/test/known-good/Cpp/src/AfterOverlapped.txt
@@ -1,14 +1,14 @@
target Cpp {
- fast: true,
- timeout: 5 sec
+ fast: true,
+ timeout: 5 sec
}
import Count from "lib/Count.lf"
reactor Test {
- input c: int
- state i: int(0)
+ input c: int
+ state i: int(0)
reaction(c) {=
std::cout << "Received " << *c.get() << '\n';
diff --git a/test/known-good/Cpp/src/AfterZero.txt b/test/known-good/Cpp/src/AfterZero.txt
index 2461bb92a..603f7d154 100644
--- a/test/known-good/Cpp/src/AfterZero.txt
+++ b/test/known-good/Cpp/src/AfterZero.txt
@@ -1,21 +1,21 @@
target Cpp {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
reactor foo {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= y.set(2*(*x.get())); =}
}
reactor print {
- state expected_time: time(0)
- state i: int(0)
- input x: int
+ state expected_time: time(0)
+ state i: int(0)
+ input x: int
reaction(x) {=
i++;
diff --git a/test/known-good/Cpp/src/Alignment.txt b/test/known-good/Cpp/src/Alignment.txt
index 522178fbd..b1f6226e4 100644
--- a/test/known-good/Cpp/src/Alignment.txt
+++ b/test/known-good/Cpp/src/Alignment.txt
@@ -1,14 +1,14 @@
target Cpp {
- logging: LOG,
- timeout: 1 sec,
- build-type: Debug
+ logging: LOG,
+ timeout: 1 sec,
+ build-type: Debug
}
reactor Source {
- output out: int
- state count: int(1)
+ output out: int
+ state count: int(1)
timer t(0, 100 msec)
reaction(t) -> out {=
@@ -21,9 +21,9 @@
private preamble {=
=}
- input in: int
- output out: bool
- state primes: std::vector
+ input in: int
+ output out: bool
+ state primes: std::vector
reaction(startup) {=
@@ -49,7 +49,7 @@
while (*in.get() > primes.back()) {
candidate += 2;
bool prime = true;
- for (auto i : primes) {
+ for (auto i : primes) {
if(candidate % i == 0) {
prime = false;
@@ -77,9 +77,9 @@
}
reactor Destination {
- input ok: bool
- input in: int
- state last_invoked: {= reactor::TimePoint =}
+ input ok: bool
+ input in: int
+ state last_invoked: {= reactor::TimePoint =}
reaction(ok, in) {=
if (ok.is_present() && in.is_present()) {
diff --git a/test/known-good/Cpp/src/ArrayAsParameter.txt b/test/known-good/Cpp/src/ArrayAsParameter.txt
index e4de1aab9..0b9bb8450 100644
--- a/test/known-good/Cpp/src/ArrayAsParameter.txt
+++ b/test/known-good/Cpp/src/ArrayAsParameter.txt
@@ -2,10 +2,10 @@
target Cpp
-reactor Source(sequence: int[]{0, 1, 2}) {
- output out: size_t
- state count: size_t{0}
- logical action next: void
+reactor Source(sequence: int[]{0, 1, 2}) {
+ output out: size_t
+ state count: size_t{0}
+ logical action next: void
reaction(startup, next) -> out, next {=
out.set(sequence[count]);
@@ -17,8 +17,8 @@
}
reactor Print {
- input in: size_t
- state count: size_t{1}
+ input in: size_t
+ state count: size_t{1}
reaction(in) {=
std::cout << "Received: " << *in.get() << '\n';
diff --git a/test/known-good/Cpp/src/ArrayAsType.txt b/test/known-good/Cpp/src/ArrayAsType.txt
index dc476914e..b02924782 100644
--- a/test/known-good/Cpp/src/ArrayAsType.txt
+++ b/test/known-good/Cpp/src/ArrayAsType.txt
@@ -3,7 +3,7 @@
target Cpp
reactor Source {
- output out: int[3]
+ output out: int[3]
reaction(startup) -> out {=
@@ -14,7 +14,7 @@
}
reactor Print {
- input in: int[3]
+ input in: int[3]
reaction(in) {=
int expected = 3;
diff --git a/test/known-good/Cpp/src/ArrayPrint.txt b/test/known-good/Cpp/src/ArrayPrint.txt
index d6e7fa772..02bbaa0b5 100644
--- a/test/known-good/Cpp/src/ArrayPrint.txt
+++ b/test/known-good/Cpp/src/ArrayPrint.txt
@@ -4,7 +4,7 @@
target Cpp
reactor Source {
- output out: int[3]
+ output out: int[3]
reaction(startup) -> out {=
@@ -18,8 +18,8 @@
=}
}
-reactor Print(scale: int(1)) {
- input in: int[3]
+reactor Print(scale: int(1)) {
+ input in: int[3]
reaction(in) {=
int expected = 0;
diff --git a/test/known-good/Cpp/src/ArrayScale.txt b/test/known-good/Cpp/src/ArrayScale.txt
index 387846e78..e6d1566e2 100644
--- a/test/known-good/Cpp/src/ArrayScale.txt
+++ b/test/known-good/Cpp/src/ArrayScale.txt
@@ -5,10 +5,10 @@
import Source, Print from "ArrayPrint.lf"
-reactor Scale(scale: int(2)) {
- input in: int[3]
+reactor Scale(scale: int(2)) {
+ input in: int[3]
- output out: int[3]
+ output out: int[3]
reaction(in) -> out {=
diff --git a/test/known-good/Cpp/src/CharLiteralInitializer.txt b/test/known-good/Cpp/src/CharLiteralInitializer.txt
index 368a050bb..f1ee48329 100644
--- a/test/known-good/Cpp/src/CharLiteralInitializer.txt
+++ b/test/known-good/Cpp/src/CharLiteralInitializer.txt
@@ -2,7 +2,7 @@
target Cpp
main reactor CharLiteralInitializer {
- state c: char('x')
+ state c: char('x')
reaction(startup) {=
if (c != 'x') {
diff --git a/test/known-good/Cpp/src/Composition.txt b/test/known-good/Cpp/src/Composition.txt
index 59f613104..da21e423f 100644
--- a/test/known-good/Cpp/src/Composition.txt
+++ b/test/known-good/Cpp/src/Composition.txt
@@ -1,14 +1,14 @@
target Cpp {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
-reactor Source(period: time(2 sec)) {
- output y: int
+reactor Source(period: time(2 sec)) {
+ output y: int
timer t(1 sec, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
count++;
@@ -17,8 +17,8 @@
}
reactor Test {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
count++;
diff --git a/test/known-good/Cpp/src/CompositionAfter.txt b/test/known-good/Cpp/src/CompositionAfter.txt
index 855cd7de2..91294936d 100644
--- a/test/known-good/Cpp/src/CompositionAfter.txt
+++ b/test/known-good/Cpp/src/CompositionAfter.txt
@@ -1,14 +1,14 @@
target Cpp {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
-reactor Source(period: time(2 sec)) {
- output y: int
+reactor Source(period: time(2 sec)) {
+ output y: int
timer t(1 sec, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
count++;
@@ -17,8 +17,8 @@
}
reactor Test {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
count++;
@@ -38,7 +38,7 @@
=}
}
-main reactor(delay: time(5 sec)) {
+main reactor(delay: time(5 sec)) {
s = new Source()
d = new Test()
s.y -> d.x after delay
diff --git a/test/known-good/Cpp/src/CompositionGain.txt b/test/known-good/Cpp/src/CompositionGain.txt
index 010e9b032..bfcc6af78 100644
--- a/test/known-good/Cpp/src/CompositionGain.txt
+++ b/test/known-good/Cpp/src/CompositionGain.txt
@@ -2,8 +2,8 @@
target Cpp
reactor Gain {
- input gainin: int
- output y: int
+ input gainin: int
+ output y: int
reaction(gainin) -> y {=
reactor::log::Info() << "Gain received " << *gainin.get();
@@ -12,8 +12,8 @@
}
reactor Wrapper {
- input x: int
- output y: int
+ input x: int
+ output y: int
gain = new Gain()
x -> gain.gainin
gain.y -> y
diff --git a/test/known-good/Cpp/src/CountTest.txt b/test/known-good/Cpp/src/CountTest.txt
index caf02aebb..a6fd5303c 100644
--- a/test/known-good/Cpp/src/CountTest.txt
+++ b/test/known-good/Cpp/src/CountTest.txt
@@ -1,13 +1,13 @@
target Cpp {
- timeout: 3 sec,
- fast: true
+ timeout: 3 sec,
+ fast: true
}
import Count from "lib/Count.lf"
reactor Test {
- input c: int
- state i: int(0)
+ input c: int
+ state i: int(0)
reaction(c) {=
i++;
diff --git a/test/known-good/Cpp/src/DanglingOutput.txt b/test/known-good/Cpp/src/DanglingOutput.txt
index 0cf9b552d..cde5d62d1 100644
--- a/test/known-good/Cpp/src/DanglingOutput.txt
+++ b/test/known-good/Cpp/src/DanglingOutput.txt
@@ -3,15 +3,15 @@
target Cpp
reactor Source {
- output out: int
+ output out: int
timer t
reaction(t) -> out {= out.set(1); =}
}
reactor Gain {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
std::cout << "Received " << *in.get() << std::endl;
diff --git a/test/known-good/Cpp/src/Deadline.txt b/test/known-good/Cpp/src/Deadline.txt
index 739aee0b6..c282a0bc7 100644
--- a/test/known-good/Cpp/src/Deadline.txt
+++ b/test/known-good/Cpp/src/Deadline.txt
@@ -2,16 +2,16 @@
target Cpp {
- timeout: 4 sec
+ timeout: 4 sec
}
-reactor Source(period: time(2 sec)) {
+reactor Source(period: time(2 sec)) {
private preamble {=
=}
- output y: int
+ output y: int
timer t(0, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
if (count % 2 == 1) {
@@ -25,9 +25,9 @@
=}
}
-reactor Destination(timeout: time(1 sec)) {
- input x: int
- state count: int(0)
+reactor Destination(timeout: time(1 sec)) {
+ input x: int
+ state count: int(0)
reaction(x) {=
std::cout << "Destination receives: " << *x.get() << std::endl;
diff --git a/test/known-good/Cpp/src/DeadlineHandledAbove.txt b/test/known-good/Cpp/src/DeadlineHandledAbove.txt
index d8f298bed..6675653f6 100644
--- a/test/known-good/Cpp/src/DeadlineHandledAbove.txt
+++ b/test/known-good/Cpp/src/DeadlineHandledAbove.txt
@@ -2,9 +2,9 @@
target Cpp
-reactor Deadline(threshold: time(100 msec)) {
- input x: int
- output deadline_violation: bool
+reactor Deadline(threshold: time(100 msec)) {
+ input x: int
+ output deadline_violation: bool
reaction(x) -> deadline_violation {=
std::cerr << "ERROR: Deadline violation was not detected!" << std::endl;
@@ -16,7 +16,7 @@
}
main reactor DeadlineHandledAbove {
- state violation_detected: bool({= false =})
+ state violation_detected: bool({= false =})
d = new Deadline(threshold = 10 msec)
reaction(startup) -> d.x {=
diff --git a/test/known-good/Cpp/src/DelayInt.txt b/test/known-good/Cpp/src/DelayInt.txt
index dc6171ae0..2e957252c 100644
--- a/test/known-good/Cpp/src/DelayInt.txt
+++ b/test/known-good/Cpp/src/DelayInt.txt
@@ -1,10 +1,10 @@
target Cpp
-reactor Delay(delay: time(100 msec)) {
- input in: int
- output out: int
- logical action d: int
+reactor Delay(delay: time(100 msec)) {
+ input in: int
+ output out: int
+ logical action d: int
reaction(in) -> d {= d.schedule(in.get(), delay); =}
@@ -16,8 +16,8 @@
}
reactor Test {
- input in: int
- state start_time: {= reactor::TimePoint =}
+ input in: int
+ state start_time: {= reactor::TimePoint =}
timer start
reaction(start) {=
diff --git a/test/known-good/Cpp/src/DelayedAction.txt b/test/known-good/Cpp/src/DelayedAction.txt
index 3a626380a..a2db96f5f 100644
--- a/test/known-good/Cpp/src/DelayedAction.txt
+++ b/test/known-good/Cpp/src/DelayedAction.txt
@@ -1,12 +1,12 @@
target Cpp {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
main reactor DelayedAction {
timer t(0, 1 sec)
- logical action a: void
- state count: int(0)
+ logical action a: void
+ state count: int(0)
reaction(t) -> a {= a.schedule(100ms); =}
diff --git a/test/known-good/Cpp/src/DelayedReaction.txt b/test/known-good/Cpp/src/DelayedReaction.txt
index f2c6c4f02..e52ce70b2 100644
--- a/test/known-good/Cpp/src/DelayedReaction.txt
+++ b/test/known-good/Cpp/src/DelayedReaction.txt
@@ -2,13 +2,13 @@
target Cpp
reactor Source {
- output out: void
+ output out: void
reaction(startup) -> out {= out.set(); =}
}
reactor Sink {
- input in: void
+ input in: void
reaction(in) {=
auto elapsed = get_elapsed_logical_time();
diff --git a/test/known-good/Cpp/src/Determinism.txt b/test/known-good/Cpp/src/Determinism.txt
index ab444c6e3..d40c79fc3 100644
--- a/test/known-good/Cpp/src/Determinism.txt
+++ b/test/known-good/Cpp/src/Determinism.txt
@@ -1,15 +1,15 @@
target Cpp
reactor Source {
- output y: int
+ output y: int
timer t
reaction(t) -> y {= y.set(1); =}
}
reactor Destination {
- input x: int
- input y: int
+ input x: int
+ input y: int
reaction(x, y) {=
int sum = 0;
@@ -28,8 +28,8 @@
}
reactor Pass {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= y.set(x.get()); =}
}
diff --git a/test/known-good/Cpp/src/DoubleInvocation.txt b/test/known-good/Cpp/src/DoubleInvocation.txt
index 990cc69ae..8301dff67 100644
--- a/test/known-good/Cpp/src/DoubleInvocation.txt
+++ b/test/known-good/Cpp/src/DoubleInvocation.txt
@@ -7,14 +7,14 @@
target Cpp {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Ball {
- output position: int
- output velocity: int
- state p: int(200)
+ output position: int
+ output velocity: int
+ state p: int(200)
timer trigger(0, 1 sec)
reaction(trigger) -> position, velocity {=
@@ -25,9 +25,9 @@
}
reactor Print {
- input velocity: int
- input position: int
- state previous: int(-1)
+ input velocity: int
+ input position: int
+ state previous: int(-1)
reaction(startup) {=
reactor::log::Info() << "####### Print startup";
diff --git a/test/known-good/Cpp/src/DoublePort.txt b/test/known-good/Cpp/src/DoublePort.txt
index 1ef4fee18..f6f90a90e 100644
--- a/test/known-good/Cpp/src/DoublePort.txt
+++ b/test/known-good/Cpp/src/DoublePort.txt
@@ -6,16 +6,16 @@
target Cpp {
- timeout: 900 msec,
- fast: true
+ timeout: 900 msec,
+ fast: true
}
import Count from "lib/Count.lf"
reactor CountMicrostep {
- state count: int(1)
- output out: int
- logical action act: int
+ state count: int(1)
+ output out: int
+ logical action act: int
timer t(0, 1 sec)
reaction(t) -> act {=
@@ -27,8 +27,8 @@
}
reactor Print {
- input in: int
- input in2: int
+ input in: int
+ input in2: int
reaction(in, in2) {=
if(in.is_present()){
diff --git a/test/known-good/Cpp/src/DoubleReaction.txt b/test/known-good/Cpp/src/DoubleReaction.txt
index 9ad2ddc40..5d815b1c3 100644
--- a/test/known-good/Cpp/src/DoubleReaction.txt
+++ b/test/known-good/Cpp/src/DoubleReaction.txt
@@ -1,14 +1,14 @@
target Cpp {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
count++;
@@ -17,9 +17,9 @@
}
reactor Destination {
- input x: int
- input w: int
- state s: int(2)
+ input x: int
+ input w: int
+ state s: int(2)
reaction(x, w) {=
int sum = 0;
@@ -29,7 +29,7 @@
if (w.is_present()) {
sum += *w.get();
}
- std::cout << "Sum of inputs is: " << sum << std::endl;
+ std::cout << "Sum of inputs is: " << sum << std::endl;
if (sum != s) {
std::cerr << "FAILURE: Expected sum to be " << s
<< "but it was " << sum << std::endl;
diff --git a/test/known-good/Cpp/src/DoubleTrigger.txt b/test/known-good/Cpp/src/DoubleTrigger.txt
index c6689dba0..b10cce55d 100644
--- a/test/known-good/Cpp/src/DoubleTrigger.txt
+++ b/test/known-good/Cpp/src/DoubleTrigger.txt
@@ -5,12 +5,12 @@
main reactor DoubleTrigger {
timer t1
timer t2
- state s: int(0)
+ state s: int(0)
reaction(t1, t2) {=
s++;
if (s > 1) {
- std::cout << "FAILURE: Reaction got triggered twice." << std::endl;
+ std::cout << "FAILURE: Reaction got triggered twice." << std::endl;
exit(1);
}
=}
@@ -19,7 +19,7 @@
if (s == 1) {
std::cout << "SUCCESS" << std::endl;
} else {
- std::cerr << "FAILURE: Reaction was never triggered." << std::endl;
+ std::cerr << "FAILURE: Reaction was never triggered." << std::endl;
exit(1);
}
=}
diff --git a/test/known-good/Cpp/src/FloatLiteral.txt b/test/known-good/Cpp/src/FloatLiteral.txt
index 813ef0b17..d6708b640 100644
--- a/test/known-good/Cpp/src/FloatLiteral.txt
+++ b/test/known-good/Cpp/src/FloatLiteral.txt
@@ -2,10 +2,10 @@
main reactor {
- state N: double(6.0221409e+23)
- state charge: double(-1.6021766E-19)
- state minus_epsilon: double(-.01e0)
- state expected: double(.964853323188E5)
+ state N: double(6.0221409e+23)
+ state charge: double(-1.6021766E-19)
+ state minus_epsilon: double(-.01e0)
+ state expected: double(.964853323188E5)
reaction(startup) {=
auto F = - N * charge;
diff --git a/test/known-good/Cpp/src/Gain.txt b/test/known-good/Cpp/src/Gain.txt
index 015db8508..a620b416c 100644
--- a/test/known-good/Cpp/src/Gain.txt
+++ b/test/known-good/Cpp/src/Gain.txt
@@ -1,15 +1,15 @@
target Cpp
-reactor Scale(scale: int(2)) {
- input x: int
- output y: int
+reactor Scale(scale: int(2)) {
+ input x: int
+ output y: int
reaction(x) -> y {= y.set(*x.get() * scale); =}
}
reactor Test {
- input x: int
+ input x: int
reaction(x) {=
auto value = *x.get();
diff --git a/test/known-good/Cpp/src/GetMicroStep.txt b/test/known-good/Cpp/src/GetMicroStep.txt
index 4eb3584d1..ed22677a8 100644
--- a/test/known-good/Cpp/src/GetMicroStep.txt
+++ b/test/known-good/Cpp/src/GetMicroStep.txt
@@ -2,11 +2,11 @@
target Cpp
main reactor GetMicroStep {
- state s: {= reactor::mstep_t =}(1)
+ state s: {= reactor::mstep_t =}(1)
logical action l
- reaction(startup) -> l {= l.schedule(reactor::Duration::zero()); =}
+ reaction(startup) -> l {= l.schedule(reactor::Duration::zero()); =}
reaction(l) -> l {=
auto microstep = get_microstep();
diff --git a/test/known-good/Cpp/src/GetTime.txt b/test/known-good/Cpp/src/GetTime.txt
index 30b09c538..438d57a55 100644
--- a/test/known-good/Cpp/src/GetTime.txt
+++ b/test/known-good/Cpp/src/GetTime.txt
@@ -1,8 +1,8 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
main reactor GetTime {
diff --git a/test/known-good/Cpp/src/Hello.txt b/test/known-good/Cpp/src/Hello.txt
index 7325a81c2..b5379ff3c 100644
--- a/test/known-good/Cpp/src/Hello.txt
+++ b/test/known-good/Cpp/src/Hello.txt
@@ -4,15 +4,15 @@
target Cpp {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor HelloCpp(period: time(2 sec), message: {= std::string =}("Hello C++")) {
- state count: int(0)
- state previous_time: {= reactor::TimePoint =}
+reactor HelloCpp(period: time(2 sec), message: {= std::string =}("Hello C++")) {
+ state count: int(0)
+ state previous_time: {= reactor::TimePoint =}
timer t(1 sec, period)
- logical action a: void
+ logical action a: void
reaction(t) -> a {=
std::cout << message << std::endl;
@@ -37,8 +37,8 @@
}
reactor Inside(
- period: time(1 sec),
- message: std::string("Composite default message.")
+ period: time(1 sec),
+ message: std::string("Composite default message.")
) {
third_instance = new HelloCpp(period = period, message = message)
}
diff --git a/test/known-good/Cpp/src/HelloWorld.txt b/test/known-good/Cpp/src/HelloWorld.txt
index 620a5922d..bd3f7812d 100644
--- a/test/known-good/Cpp/src/HelloWorld.txt
+++ b/test/known-good/Cpp/src/HelloWorld.txt
@@ -3,7 +3,7 @@
reactor HelloWorld2 {
timer t
- reaction(t) {= std::cout << "Hello World." << std::endl; =}
+ reaction(t) {= std::cout << "Hello World." << std::endl; =}
}
main reactor {
diff --git a/test/known-good/Cpp/src/Hierarchy.txt b/test/known-good/Cpp/src/Hierarchy.txt
index 8d6231a55..0db87d1f8 100644
--- a/test/known-good/Cpp/src/Hierarchy.txt
+++ b/test/known-good/Cpp/src/Hierarchy.txt
@@ -2,21 +2,21 @@
target Cpp
reactor Source {
- output out: int
+ output out: int
timer t
reaction(t) -> out {= out.set(1); =}
}
reactor Gain {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {= out.set((*in.get()) * 2); =}
}
reactor Print {
- input in: int
+ input in: int
reaction(in) {=
auto value = *in.get();
@@ -29,9 +29,9 @@
}
reactor GainContainer {
- input in: int
- output out: int
- output out2: int
+ input in: int
+ output out: int
+ output out2: int
gain = new Gain()
in -> gain.in
gain.out -> out
diff --git a/test/known-good/Cpp/src/Hierarchy2.txt b/test/known-good/Cpp/src/Hierarchy2.txt
index da5c23fe8..9603dac73 100644
--- a/test/known-good/Cpp/src/Hierarchy2.txt
+++ b/test/known-good/Cpp/src/Hierarchy2.txt
@@ -1,20 +1,20 @@
target Cpp {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Source {
- output out: int
+ output out: int
timer t(0, 1 sec)
reaction(t) -> out {= out.set(1); =}
}
reactor Count {
- output out: int
+ output out: int
timer t(0, 1 sec)
- state i: int(0)
+ state i: int(0)
reaction(t) -> out {=
i++;
@@ -23,9 +23,9 @@
}
reactor Add {
- input in1: int
- input in2: int
- output out: int
+ input in1: int
+ input in2: int
+ output out: int
reaction(in1, in2) -> out {=
int result = 0;
@@ -36,8 +36,8 @@
}
reactor Print {
- input in: int
- state expected: int(2)
+ input in: int
+ state expected: int(2)
reaction(in) {=
auto value = *in.get();
@@ -51,8 +51,8 @@
}
reactor AddCount {
- input in: int
- output out: int
+ input in: int
+ output out: int
count = new Count()
add = new Add()
in -> add.in1
diff --git a/test/known-good/Cpp/src/ImportComposition.txt b/test/known-good/Cpp/src/ImportComposition.txt
index dde29ea97..6bff7fb76 100644
--- a/test/known-good/Cpp/src/ImportComposition.txt
+++ b/test/known-good/Cpp/src/ImportComposition.txt
@@ -16,7 +16,7 @@
=}
imp_comp = new ImportedComposition()
- state received: bool(false)
+ state received: bool(false)
reaction(startup) -> imp_comp.x {= imp_comp.x.set(42); =}
diff --git a/test/known-good/Cpp/src/ManualDelayedReaction.txt b/test/known-good/Cpp/src/ManualDelayedReaction.txt
index 5f9982875..87264a945 100644
--- a/test/known-good/Cpp/src/ManualDelayedReaction.txt
+++ b/test/known-good/Cpp/src/ManualDelayedReaction.txt
@@ -2,11 +2,11 @@
reactor GeneratedDelay {
- input y_in: int
- output y_out: int
- state y_state: int(0)
+ input y_in: int
+ output y_out: int
+ state y_state: int(0)
- logical action act(100 msec): int
+ logical action act(100 msec): int
reaction(y_in) -> act {= act.schedule(y_in.get()); =}
@@ -14,7 +14,7 @@
}
reactor Source {
- output out: int
+ output out: int
timer t
@@ -22,7 +22,7 @@
}
reactor Sink {
- input in: int
+ input in: int
reaction(in) {=
auto elapsed_logical = get_elapsed_logical_time();
diff --git a/test/known-good/Cpp/src/Methods.txt b/test/known-good/Cpp/src/Methods.txt
index 1b83d3e58..71e2e2a44 100644
--- a/test/known-good/Cpp/src/Methods.txt
+++ b/test/known-good/Cpp/src/Methods.txt
@@ -1,11 +1,11 @@
target Cpp
main reactor {
- state foo: int(2)
+ state foo: int(2)
- const method getFoo(): int {= return foo; =}
+ const method getFoo(): int {= return foo; =}
- method add(x: int) {= foo += x; =}
+ method add(x: int) {= foo += x; =}
reaction(startup) {=
std::cout << "Foo is initialized to " << getFoo() << '\n';
diff --git a/test/known-good/Cpp/src/Microsteps.txt b/test/known-good/Cpp/src/Microsteps.txt
index c0c37cd99..0cedf2915 100644
--- a/test/known-good/Cpp/src/Microsteps.txt
+++ b/test/known-good/Cpp/src/Microsteps.txt
@@ -1,8 +1,8 @@
target Cpp
reactor Destination {
- input x: int
- input y: int
+ input x: int
+ input y: int
reaction(x, y) {=
auto elapsed = get_elapsed_logical_time();
@@ -31,7 +31,7 @@
main reactor Microsteps {
timer start
- logical action repeat: void
+ logical action repeat: void
d = new Destination()
reaction(start) -> d.x, repeat {=
diff --git a/test/known-good/Cpp/src/Minimal.txt b/test/known-good/Cpp/src/Minimal.txt
index eb7360f59..d5586a3b0 100644
--- a/test/known-good/Cpp/src/Minimal.txt
+++ b/test/known-good/Cpp/src/Minimal.txt
@@ -2,6 +2,6 @@
target Cpp
main reactor Minimal {
- reaction(startup) {= std::cout << "Hello World!\n"; =}
+ reaction(startup) {= std::cout << "Hello World!\n"; =}
}
diff --git a/test/known-good/Cpp/src/MovingAverage.txt b/test/known-good/Cpp/src/MovingAverage.txt
index 32a54f629..b6759bdbd 100644
--- a/test/known-good/Cpp/src/MovingAverage.txt
+++ b/test/known-good/Cpp/src/MovingAverage.txt
@@ -2,13 +2,13 @@
target Cpp {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Source {
- output out: double
- state count: int{0}
+ output out: double
+ state count: int{0}
timer clock(0, 200 msec)
reaction(clock) -> out {=
@@ -18,10 +18,10 @@
}
reactor MovingAverageImpl {
- state delay_line: double[3]{0.0, 0.0, 0.0}
- state index: int{0}
- input in: double
- output out: double
+ state delay_line: double[3]{0.0, 0.0, 0.0}
+ state index: int{0}
+ input in: double
+ output out: double
reaction(in) -> out {=
@@ -43,8 +43,8 @@
}
reactor Print {
- input in: double
- state count: int{0}
+ input in: double
+ state count: int{0}
reaction(in) {=
std::cout << "Received: " << *in.get() << '\n';
diff --git a/test/known-good/Cpp/src/MultipleContained.txt b/test/known-good/Cpp/src/MultipleContained.txt
index 82927abe6..f6bc604b0 100644
--- a/test/known-good/Cpp/src/MultipleContained.txt
+++ b/test/known-good/Cpp/src/MultipleContained.txt
@@ -3,9 +3,9 @@
target Cpp
reactor Contained {
- output trigger: int
- input in1: int
- input in2: int
+ output trigger: int
+ input in1: int
+ input in2: int
reaction(startup) -> trigger {= trigger.set(42); =}
diff --git a/test/known-good/Cpp/src/NativeListsAndTimes.txt b/test/known-good/Cpp/src/NativeListsAndTimes.txt
index 62d5c0911..79cc1fffc 100644
--- a/test/known-good/Cpp/src/NativeListsAndTimes.txt
+++ b/test/known-good/Cpp/src/NativeListsAndTimes.txt
@@ -2,25 +2,25 @@
reactor Foo(
- x: int(0),
- y: time(0),
+ x: int(0),
+ y: time(0),
z(1 msec),
- p: int[]{1, 2, 3, 4},
+ p: int[]{1, 2, 3, 4},
q: {=
std::vector<reactor::Duration>
=}{1 msec, 2 msec, 3 msec},
- g: time[]{1 msec, 2 msec}
+ g: time[]{1 msec, 2 msec}
) {
- state s: time(y)
- state t: time(z)
- state v: bool // Uninitialized boolean state variable
- state w: time // Uninitialized time state variable
+ state s: time(y)
+ state t: time(z)
+ state v: bool // Uninitialized boolean state variable
+ state w: time // Uninitialized time state variable
timer tick(0)
timer tock(1 sec)
timer toe(z)
state baz(p)
state period(z)
- state times: std::vector< // a list of lists
+ state times: std::vector< // a list of lists
std::vector<{= reactor::Duration =}>
>{q, g}
diff --git a/test/known-good/Cpp/src/NestedTriggeredReactions.txt b/test/known-good/Cpp/src/NestedTriggeredReactions.txt
index 9a30e8265..74e5e75f2 100644
--- a/test/known-good/Cpp/src/NestedTriggeredReactions.txt
+++ b/test/known-good/Cpp/src/NestedTriggeredReactions.txt
@@ -1,9 +1,9 @@
target Cpp
reactor Container {
- input in: void
+ input in: void
- state triggered: bool{false}
+ state triggered: bool{false}
contained = new Contained()
@@ -20,9 +20,9 @@
}
reactor Contained {
- input in: void
+ input in: void
- state triggered: bool{false}
+ state triggered: bool{false}
reaction(in) {= triggered = true; =}
diff --git a/test/known-good/Cpp/src/ParameterHierarchy.txt b/test/known-good/Cpp/src/ParameterHierarchy.txt
index f40715300..35a9298c4 100644
--- a/test/known-good/Cpp/src/ParameterHierarchy.txt
+++ b/test/known-good/Cpp/src/ParameterHierarchy.txt
@@ -7,7 +7,7 @@
target Cpp
-reactor Deep(p: int(0)) {
+reactor Deep(p: int(0)) {
reaction(startup) {=
if(p != 42) {
reactor::log::Error() << "Parameter value is: " << p << ". Should have been 42.";
@@ -18,11 +18,11 @@
=}
}
-reactor Intermediate(p: int(10)) {
+reactor Intermediate(p: int(10)) {
a = new Deep(p = p)
}
-reactor Another(p: int(20)) {
+reactor Another(p: int(20)) {
a = new Intermediate(p = {= p =})
}
diff --git a/test/known-good/Cpp/src/ParameterizedState.txt b/test/known-good/Cpp/src/ParameterizedState.txt
index 3ddf90c8a..fe4082498 100644
--- a/test/known-good/Cpp/src/ParameterizedState.txt
+++ b/test/known-good/Cpp/src/ParameterizedState.txt
@@ -1,6 +1,6 @@
target Cpp
-reactor Foo(bar: int(4)) {
+reactor Foo(bar: int(4)) {
state baz(bar)
reaction(startup) {=
diff --git a/test/known-good/Cpp/src/ParametersOutOfOrder.txt b/test/known-good/Cpp/src/ParametersOutOfOrder.txt
index 016b12be1..41df7674e 100644
--- a/test/known-good/Cpp/src/ParametersOutOfOrder.txt
+++ b/test/known-good/Cpp/src/ParametersOutOfOrder.txt
@@ -2,7 +2,7 @@
target Cpp
-reactor Foo(a: int(0), b: std::string(""), c: float(0.0)) {
+reactor Foo(a: int(0), b: std::string(""), c: float(0.0)) {
reaction(startup) {=
if (a != 42 || b != "bar" || c < 3.1) {
reactor::log::Error() << "received an unexpected parameter!";
diff --git a/test/known-good/Cpp/src/PeriodicDesugared.txt b/test/known-good/Cpp/src/PeriodicDesugared.txt
index 630a10392..757730d53 100644
--- a/test/known-good/Cpp/src/PeriodicDesugared.txt
+++ b/test/known-good/Cpp/src/PeriodicDesugared.txt
@@ -1,11 +1,11 @@
target Cpp {
- fast: true,
- timeout: 5 secs
+ fast: true,
+ timeout: 5 secs
}
-main reactor(offset: time(50 msec), period: time(500 msec)) {
- logical action init(offset): void
- logical action recur(period): void
+main reactor(offset: time(50 msec), period: time(500 msec)) {
+ logical action init(offset): void
+ logical action recur(period): void
state expected(offset)
reaction(startup) -> init {=
diff --git a/test/known-good/Cpp/src/PhysicalConnection.txt b/test/known-good/Cpp/src/PhysicalConnection.txt
index e39c6e5b7..ecbf469e8 100644
--- a/test/known-good/Cpp/src/PhysicalConnection.txt
+++ b/test/known-good/Cpp/src/PhysicalConnection.txt
@@ -2,15 +2,15 @@
target Cpp
reactor Source {
- output out: int
+ output out: int
reaction(startup) -> out {= out.set(42); =}
}
reactor Destination {
- input in: int
+ input in: int
- state received: bool(false)
+ state received: bool(false)
reaction(in) {=
auto time = get_elapsed_logical_time();
diff --git a/test/known-good/Cpp/src/Pipeline.txt b/test/known-good/Cpp/src/Pipeline.txt
index 2ee20cb66..d91eaa112 100644
--- a/test/known-good/Cpp/src/Pipeline.txt
+++ b/test/known-good/Cpp/src/Pipeline.txt
@@ -1,12 +1,12 @@
target Cpp {
- timeout: 2 sec
+ timeout: 2 sec
}
import Computation from "concurrent/Threaded.lf"
reactor Print {
- input in: int
- state count: int(0)
+ input in: int
+ state count: int(0)
reaction(in) {=
std::cout << "Received: " << *in.get() << '\n';
@@ -27,7 +27,7 @@
main reactor Pipeline {
timer t(0, 200 msec)
- state count: int(0)
+ state count: int(0)
c1 = new Computation()
c2 = new Computation()
diff --git a/test/known-good/Cpp/src/PreambleTest.txt b/test/known-good/Cpp/src/PreambleTest.txt
index 8249a073f..2fe9d0c8b 100644
--- a/test/known-good/Cpp/src/PreambleTest.txt
+++ b/test/known-good/Cpp/src/PreambleTest.txt
@@ -20,7 +20,7 @@
return i + 42;
}
=}
- logical action a: MyStruct
+ logical action a: MyStruct
reaction(startup) -> a {= a.schedule({add_42(42), "baz"}); =}
diff --git a/test/known-good/Cpp/src/ReadOutputOfContainedReactor.txt b/test/known-good/Cpp/src/ReadOutputOfContainedReactor.txt
index 52b3dacfe..b69787bee 100644
--- a/test/known-good/Cpp/src/ReadOutputOfContainedReactor.txt
+++ b/test/known-good/Cpp/src/ReadOutputOfContainedReactor.txt
@@ -3,14 +3,14 @@
target Cpp
reactor Contained {
- output out: int
+ output out: int
reaction(startup) -> out {= out.set(42); =}
}
main reactor ReadOutputOfContainedReactor {
c = new Contained()
- state count: int(0)
+ state count: int(0)
reaction(startup) c.out {=
std::cout << "Startup reaction reading output of contained "
diff --git a/test/known-good/Cpp/src/Schedule.txt b/test/known-good/Cpp/src/Schedule.txt
index 177eb2046..270c3bd33 100644
--- a/test/known-good/Cpp/src/Schedule.txt
+++ b/test/known-good/Cpp/src/Schedule.txt
@@ -2,8 +2,8 @@
target Cpp
reactor ScheduleTest {
- input x: int
- logical action a: void
+ input x: int
+ logical action a: void
reaction(x) -> a {= a.schedule(200ms); =}
diff --git a/test/known-good/Cpp/src/ScheduleLogicalAction.txt b/test/known-good/Cpp/src/ScheduleLogicalAction.txt
index 13e26cd19..3d8fa229a 100644
--- a/test/known-good/Cpp/src/ScheduleLogicalAction.txt
+++ b/test/known-good/Cpp/src/ScheduleLogicalAction.txt
@@ -7,14 +7,14 @@
target Cpp {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor foo {
- input x: int
- output y: int
- logical action a: void
+ input x: int
+ output y: int
+ logical action a: void
reaction(x) -> y, a {=
y.set( 2*(*x.get()));
@@ -26,8 +26,8 @@
}
reactor print {
- state expected_time: time(0)
- input x: int
+ state expected_time: time(0)
+ input x: int
reaction(x) {=
auto elapsed_time = get_elapsed_logical_time();
diff --git a/test/known-good/Cpp/src/SelfLoop.txt b/test/known-good/Cpp/src/SelfLoop.txt
index 9497e7b76..cb4d3d128 100644
--- a/test/known-good/Cpp/src/SelfLoop.txt
+++ b/test/known-good/Cpp/src/SelfLoop.txt
@@ -4,15 +4,15 @@
target Cpp {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Self {
- input x: int
- output y: int
- logical action a: int
- state expected: int(43)
+ input x: int
+ output y: int
+ logical action a: int
+ state expected: int(43)
reaction(a) -> y {=
reactor::log::Info() << "a = " << *a.get();
diff --git a/test/known-good/Cpp/src/SendingInside.txt b/test/known-good/Cpp/src/SendingInside.txt
index cddf30246..634b18744 100644
--- a/test/known-good/Cpp/src/SendingInside.txt
+++ b/test/known-good/Cpp/src/SendingInside.txt
@@ -1,13 +1,13 @@
target Cpp {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor Printer {
- input x: int
- state count: int(1)
+ input x: int
+ state count: int(1)
reaction(x) {=
std::cout << "Inside reactor received: " << *x.get() << std::endl;
@@ -20,7 +20,7 @@
}
main reactor SendingInside {
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
p = new Printer()
diff --git a/test/known-good/Cpp/src/SendingInside2.txt b/test/known-good/Cpp/src/SendingInside2.txt
index a0aad1310..4755825f1 100644
--- a/test/known-good/Cpp/src/SendingInside2.txt
+++ b/test/known-good/Cpp/src/SendingInside2.txt
@@ -1,7 +1,7 @@
target Cpp
reactor Printer {
- input x: int
+ input x: int
reaction(x) {=
std::cout << "Inside reactor received: " << *x.get() << std::endl;
diff --git a/test/known-good/Cpp/src/SimpleDeadline.txt b/test/known-good/Cpp/src/SimpleDeadline.txt
index f4aa85cdd..d2a470e71 100644
--- a/test/known-good/Cpp/src/SimpleDeadline.txt
+++ b/test/known-good/Cpp/src/SimpleDeadline.txt
@@ -3,12 +3,12 @@
target Cpp
-reactor Deadline(threshold: time(100 msec)) {
+reactor Deadline(threshold: time(100 msec)) {
private preamble {=
=}
- input x: int
- output deadlineViolation: bool
+ input x: int
+ output deadlineViolation: bool
reaction(x) -> deadlineViolation {=
std::cerr << "ERROR: Deadline violation was not detected!" << std::endl;
@@ -20,7 +20,7 @@
}
reactor Print {
- input in: bool
+ input in: bool
reaction(in) {=
if (*in.get()) {
diff --git a/test/known-good/Cpp/src/SlowingClock.txt b/test/known-good/Cpp/src/SlowingClock.txt
index 181b3ecb4..f82bc945d 100644
--- a/test/known-good/Cpp/src/SlowingClock.txt
+++ b/test/known-good/Cpp/src/SlowingClock.txt
@@ -9,14 +9,14 @@
target Cpp {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
main reactor SlowingClock {
logical action a(100 msec)
- state interval: time(100 msec)
- state expected_time: time(100 msec)
+ state interval: time(100 msec)
+ state expected_time: time(100 msec)
reaction(startup) -> a {= a.schedule(0ns); =}
diff --git a/test/known-good/Cpp/src/SlowingClockPhysical.txt b/test/known-good/Cpp/src/SlowingClockPhysical.txt
index 1faa21531..293c3ede5 100644
--- a/test/known-good/Cpp/src/SlowingClockPhysical.txt
+++ b/test/known-good/Cpp/src/SlowingClockPhysical.txt
@@ -10,13 +10,13 @@
target Cpp {
- timeout: 1500 msec
+ timeout: 1500 msec
}
main reactor SlowingClockPhysical {
physical action a
- state interval: time(100 msec)
- state expected_time: time(100 msec)
+ state interval: time(100 msec)
+ state expected_time: time(100 msec)
reaction(startup) -> a {=
expected_time=100ms;
diff --git a/test/known-good/Cpp/src/StartupOutFromInside.txt b/test/known-good/Cpp/src/StartupOutFromInside.txt
index f2412c439..a16d53828 100644
--- a/test/known-good/Cpp/src/StartupOutFromInside.txt
+++ b/test/known-good/Cpp/src/StartupOutFromInside.txt
@@ -6,7 +6,7 @@
target Cpp
reactor Bar {
- output out: int
+ output out: int
reaction(startup) -> out {= out.set(42); =}
}
diff --git a/test/known-good/Cpp/src/Stride.txt b/test/known-good/Cpp/src/Stride.txt
index 67763577b..46e92eece 100644
--- a/test/known-good/Cpp/src/Stride.txt
+++ b/test/known-good/Cpp/src/Stride.txt
@@ -1,13 +1,13 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Count(stride: int(1)) {
- state count: int(0)
- output y: int
+reactor Count(stride: int(1)) {
+ state count: int(0)
+ output y: int
timer t(0, 100 msec)
reaction(t) -> y {=
@@ -17,9 +17,9 @@
}
reactor Display {
- input x: int
+ input x: int
- reaction(x) {= std::cout << "Received " << *x.get() << std::endl; =}
+ reaction(x) {= std::cout << "Received " << *x.get() << std::endl; =}
}
main reactor Stride {
diff --git a/test/known-good/Cpp/src/StructAsState.txt b/test/known-good/Cpp/src/StructAsState.txt
index 539341c64..a55694456 100644
--- a/test/known-good/Cpp/src/StructAsState.txt
+++ b/test/known-good/Cpp/src/StructAsState.txt
@@ -6,7 +6,7 @@
=}
main reactor StructAsState {
- state s: Hello{"Earth", 42}
+ state s: Hello{"Earth", 42}
reaction(startup) {=
std::cout << "State s.name=" << s.name << ", s.value=" << s.value << '\n';
diff --git a/test/known-good/Cpp/src/StructAsType.txt b/test/known-good/Cpp/src/StructAsType.txt
index dba4556ff..f89f7e402 100644
--- a/test/known-good/Cpp/src/StructAsType.txt
+++ b/test/known-good/Cpp/src/StructAsType.txt
@@ -8,7 +8,7 @@
=}
reactor StaticSource {
- output out: Hello
+ output out: Hello
reaction(startup) -> out {=
Hello hello{"Earth", 42};
diff --git a/test/known-good/Cpp/src/StructAsTypeDirect.txt b/test/known-good/Cpp/src/StructAsTypeDirect.txt
index db8736748..7b8901df2 100644
--- a/test/known-good/Cpp/src/StructAsTypeDirect.txt
+++ b/test/known-good/Cpp/src/StructAsTypeDirect.txt
@@ -8,7 +8,7 @@
=}
reactor DirectSource {
- output out: Hello
+ output out: Hello
reaction(startup) -> out {=
diff --git a/test/known-good/Cpp/src/StructPrint.txt b/test/known-good/Cpp/src/StructPrint.txt
index cffe7ef69..66e9876f3 100644
--- a/test/known-good/Cpp/src/StructPrint.txt
+++ b/test/known-good/Cpp/src/StructPrint.txt
@@ -6,7 +6,7 @@
=}
reactor Source {
- output out: Hello
+ output out: Hello
reaction(startup) -> out {=
@@ -19,10 +19,10 @@
}
reactor Print(
- expected_value: int(42),
+ expected_value: int(42),
expected_name: {= std::string =}("Earth")
) {
- input in: Hello
+ input in: Hello
reaction(in) {=
diff --git a/test/known-good/Cpp/src/StructScale.txt b/test/known-good/Cpp/src/StructScale.txt
index 9be3e7c02..4d243c9de 100644
--- a/test/known-good/Cpp/src/StructScale.txt
+++ b/test/known-good/Cpp/src/StructScale.txt
@@ -9,10 +9,10 @@
=}
-reactor Scale(scale: int(2)) {
- input in: Hello
+reactor Scale(scale: int(2)) {
+ input in: Hello
- output out: Hello
+ output out: Hello
reaction(in) -> out {=
auto hello = in.get().get_mutable_copy();
diff --git a/test/known-good/Cpp/src/TestForPreviousOutput.txt b/test/known-good/Cpp/src/TestForPreviousOutput.txt
index f12eb2504..efc84f1d5 100644
--- a/test/known-good/Cpp/src/TestForPreviousOutput.txt
+++ b/test/known-good/Cpp/src/TestForPreviousOutput.txt
@@ -3,7 +3,7 @@
target Cpp
reactor Source {
- output out: int
+ output out: int
reaction(startup) -> out {=
@@ -25,7 +25,7 @@
}
reactor Sink {
- input in: int
+ input in: int
reaction(in) {=
std::cout << "Received: " << *in.get() << '\n';
diff --git a/test/known-good/Cpp/src/TimeLimit.txt b/test/known-good/Cpp/src/TimeLimit.txt
index 6fcff5178..559351e44 100644
--- a/test/known-good/Cpp/src/TimeLimit.txt
+++ b/test/known-good/Cpp/src/TimeLimit.txt
@@ -2,13 +2,13 @@
target Cpp {
- fast: true
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
count++;
@@ -18,8 +18,8 @@
}
reactor Destination {
- input x: int
- state s: int(1)
+ input x: int
+ state s: int(1)
reaction(x) {=
@@ -39,7 +39,7 @@
=}
}
-main reactor TimeLimit(period: time(1 sec)) {
+main reactor TimeLimit(period: time(1 sec)) {
timer stop(10 sec)
c = new Clock(period = period)
d = new Destination()
diff --git a/test/known-good/Cpp/src/TimeState.txt b/test/known-good/Cpp/src/TimeState.txt
index a2782be51..ef8ee1fda 100644
--- a/test/known-good/Cpp/src/TimeState.txt
+++ b/test/known-good/Cpp/src/TimeState.txt
@@ -1,9 +1,9 @@
target Cpp
-reactor Foo(bar: time(42 msec)) {
+reactor Foo(bar: time(42 msec)) {
state baz(bar)
- reaction(startup) {= std::cout << "Baz: " << baz << std::endl; =}
+ reaction(startup) {= std::cout << "Baz: " << baz << std::endl; =}
}
main reactor {
diff --git a/test/known-good/Cpp/src/Timeout_Test.txt b/test/known-good/Cpp/src/Timeout_Test.txt
index 24d3dd14e..41eaff558 100644
--- a/test/known-good/Cpp/src/Timeout_Test.txt
+++ b/test/known-good/Cpp/src/Timeout_Test.txt
@@ -6,14 +6,14 @@
target Cpp {
- timeout: 11 msec
+ timeout: 11 msec
}
import Sender from "lib/LoopedActionSender.lf"
reactor Consumer {
- input in: int
- state success: bool(false)
+ input in: int
+ state success: bool(false)
reaction(in) {=
auto current{get_elapsed_logical_time()};
diff --git a/test/known-good/Cpp/src/TimerIsPresent.txt b/test/known-good/Cpp/src/TimerIsPresent.txt
index 11ff7a633..10da9ca3b 100644
--- a/test/known-good/Cpp/src/TimerIsPresent.txt
+++ b/test/known-good/Cpp/src/TimerIsPresent.txt
@@ -1,5 +1,5 @@
target Cpp {
- timeout: 1 sec
+ timeout: 1 sec
}
main reactor {
diff --git a/test/known-good/Cpp/src/ToReactionNested.txt b/test/known-good/Cpp/src/ToReactionNested.txt
index 129c9f2a4..72c922993 100644
--- a/test/known-good/Cpp/src/ToReactionNested.txt
+++ b/test/known-good/Cpp/src/ToReactionNested.txt
@@ -1,19 +1,19 @@
target Cpp {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
import Count from "lib/Count.lf"
reactor CountContainer {
- output out: int
+ output out: int
c1 = new Count()
c1.c -> out
}
main reactor {
- state count: int(1)
- state received: bool(false)
+ state count: int(1)
+ state received: bool(false)
s = new CountContainer()
diff --git a/test/known-good/Cpp/src/TriggerDownstreamOnlyIfPresent2.txt b/test/known-good/Cpp/src/TriggerDownstreamOnlyIfPresent2.txt
index db76fb54e..d34a10fe8 100644
--- a/test/known-good/Cpp/src/TriggerDownstreamOnlyIfPresent2.txt
+++ b/test/known-good/Cpp/src/TriggerDownstreamOnlyIfPresent2.txt
@@ -7,13 +7,13 @@
target Cpp {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Source {
- output[2] out: int
- state count: int(0)
+ output[2] out: int
+ state count: int(0)
timer t(0, 200 msec)
reaction(t) -> out {=
@@ -26,7 +26,7 @@
}
reactor Destination {
- input in: int
+ input in: int
reaction(in) {=
if(!in.is_present()){
@@ -38,7 +38,7 @@
main reactor TriggerDownstreamOnlyIfPresent2 {
s = new Source()
- d = new[2] Destination()
+ d = new[2] Destination()
s.out -> d.in
}
diff --git a/test/known-good/Cpp/src/concurrent/AsyncCallback.txt b/test/known-good/Cpp/src/concurrent/AsyncCallback.txt
index e4116c7a8..07784be58 100644
--- a/test/known-good/Cpp/src/concurrent/AsyncCallback.txt
+++ b/test/known-good/Cpp/src/concurrent/AsyncCallback.txt
@@ -1,7 +1,7 @@
target Cpp {
- timeout: 2 sec,
- cmake-include: "AsyncCallback.cmake"
+ timeout: 2 sec,
+ cmake-include: "AsyncCallback.cmake"
}
main reactor AsyncCallback {
@@ -10,12 +10,12 @@
=}
timer t(0, 200 msec)
- state thread: {= std::thread =}
- state expected_time: time(100 msec)
- state toggle: bool(false)
+ state thread: {= std::thread =}
+ state expected_time: time(100 msec)
+ state toggle: bool(false)
- physical action a: int
- state i: int(0)
+ physical action a: int
+ state i: int(0)
reaction(t) -> a {=
diff --git a/test/known-good/Cpp/src/concurrent/AsyncCallback2.txt b/test/known-good/Cpp/src/concurrent/AsyncCallback2.txt
index 087cb601b..4c4b400e1 100644
--- a/test/known-good/Cpp/src/concurrent/AsyncCallback2.txt
+++ b/test/known-good/Cpp/src/concurrent/AsyncCallback2.txt
@@ -1,7 +1,7 @@
target Cpp {
- timeout: 2 sec,
- cmake-include: "AsyncCallback.cmake"
+ timeout: 2 sec,
+ cmake-include: "AsyncCallback.cmake"
}
main reactor AsyncCallback2 {
@@ -10,10 +10,10 @@
=}
timer t(0, 200 msec)
- state expected_time: time(0)
+ state expected_time: time(0)
- logical action a: int
- state i: int(0)
+ logical action a: int
+ state i: int(0)
reaction(t) -> a {=
diff --git a/test/known-good/Cpp/src/concurrent/CompositionThreaded.txt b/test/known-good/Cpp/src/concurrent/CompositionThreaded.txt
index 33bd02a29..6c847b93a 100644
--- a/test/known-good/Cpp/src/concurrent/CompositionThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/CompositionThreaded.txt
@@ -1,14 +1,14 @@
target Cpp {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
-reactor Source(period: time(2 sec)) {
- output y: int
+reactor Source(period: time(2 sec)) {
+ output y: int
timer t(1 sec, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
count++;
@@ -17,8 +17,8 @@
}
reactor Test {
- input x: int
- state count: int(0)
+ input x: int
+ state count: int(0)
reaction(x) {=
count++;
diff --git a/test/known-good/Cpp/src/concurrent/DeadlineHandledAboveThreaded.txt b/test/known-good/Cpp/src/concurrent/DeadlineHandledAboveThreaded.txt
index 080389262..937613b4a 100644
--- a/test/known-good/Cpp/src/concurrent/DeadlineHandledAboveThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/DeadlineHandledAboveThreaded.txt
@@ -2,9 +2,9 @@
target Cpp
-reactor Deadline(threshold: time(100 msec)) {
- input x: int
- output deadline_violation: bool
+reactor Deadline(threshold: time(100 msec)) {
+ input x: int
+ output deadline_violation: bool
reaction(x) -> deadline_violation {=
std::cerr << "ERROR: Deadline violation was not detected!" << std::endl;
@@ -16,7 +16,7 @@
}
main reactor {
- state violation_detected: bool({= false =})
+ state violation_detected: bool({= false =})
d = new Deadline(threshold = 10 msec)
reaction(startup) -> d.x {=
diff --git a/test/known-good/Cpp/src/concurrent/DeadlineThreaded.txt b/test/known-good/Cpp/src/concurrent/DeadlineThreaded.txt
index 11757331c..bcff9fc47 100644
--- a/test/known-good/Cpp/src/concurrent/DeadlineThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/DeadlineThreaded.txt
@@ -2,16 +2,16 @@
target Cpp {
- timeout: 4 sec
+ timeout: 4 sec
}
-reactor Source(period: time(2 sec)) {
+reactor Source(period: time(2 sec)) {
private preamble {=
=}
- output y: int
+ output y: int
timer t(0, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
if (count % 2 == 1) {
@@ -25,9 +25,9 @@
=}
}
-reactor Destination(timeout: time(1 sec)) {
- input x: int
- state count: int(0)
+reactor Destination(timeout: time(1 sec)) {
+ input x: int
+ state count: int(0)
reaction(x) {=
std::cout << "Destination receives: " << *x.get() << std::endl;
diff --git a/test/known-good/Cpp/src/concurrent/DelayIntThreaded.txt b/test/known-good/Cpp/src/concurrent/DelayIntThreaded.txt
index b3cf7e8da..371e80e3f 100644
--- a/test/known-good/Cpp/src/concurrent/DelayIntThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/DelayIntThreaded.txt
@@ -1,10 +1,10 @@
target Cpp
-reactor Delay(delay: time(100 msec)) {
- input in: int
- output out: int
- logical action d: int
+reactor Delay(delay: time(100 msec)) {
+ input in: int
+ output out: int
+ logical action d: int
reaction(in) -> d {= d.schedule(in.get(), delay); =}
@@ -16,8 +16,8 @@
}
reactor Test {
- input in: int
- state start_time: {= reactor::TimePoint =}
+ input in: int
+ state start_time: {= reactor::TimePoint =}
timer start
reaction(start) {=
diff --git a/test/known-good/Cpp/src/concurrent/DeterminismThreaded.txt b/test/known-good/Cpp/src/concurrent/DeterminismThreaded.txt
index d4b7db87c..05a7416d7 100644
--- a/test/known-good/Cpp/src/concurrent/DeterminismThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/DeterminismThreaded.txt
@@ -1,15 +1,15 @@
target Cpp
reactor Source {
- output y: int
+ output y: int
timer t
reaction(t) -> y {= y.set(1); =}
}
reactor Destination {
- input x: int
- input y: int
+ input x: int
+ input y: int
reaction(x, y) {=
int sum = 0;
@@ -28,8 +28,8 @@
}
reactor Pass {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= y.set(x.get()); =}
}
diff --git a/test/known-good/Cpp/src/concurrent/DoubleReactionThreaded.txt b/test/known-good/Cpp/src/concurrent/DoubleReactionThreaded.txt
index 88cdd3d3d..7a6155215 100644
--- a/test/known-good/Cpp/src/concurrent/DoubleReactionThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/DoubleReactionThreaded.txt
@@ -1,14 +1,14 @@
target Cpp {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
count++;
@@ -17,9 +17,9 @@
}
reactor Destination {
- input x: int
- input w: int
- state s: int(2)
+ input x: int
+ input w: int
+ state s: int(2)
reaction(x, w) {=
int sum = 0;
@@ -29,7 +29,7 @@
if (w.is_present()) {
sum += *w.get();
}
- std::cout << "Sum of inputs is: " << sum << std::endl;
+ std::cout << "Sum of inputs is: " << sum << std::endl;
if (sum != s) {
std::cerr << "FAILURE: Expected sum to be " << s
<< "but it was " << sum << std::endl;
diff --git a/test/known-good/Cpp/src/concurrent/GainThreaded.txt b/test/known-good/Cpp/src/concurrent/GainThreaded.txt
index c3a7b41a5..78439dafa 100644
--- a/test/known-good/Cpp/src/concurrent/GainThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/GainThreaded.txt
@@ -1,15 +1,15 @@
target Cpp
-reactor Scale(scale: int(2)) {
- input x: int
- output y: int
+reactor Scale(scale: int(2)) {
+ input x: int
+ output y: int
reaction(x) -> y {= y.set(*x.get() * scale); =}
}
reactor Test {
- input x: int
+ input x: int
reaction(x) {=
auto value = *x.get();
diff --git a/test/known-good/Cpp/src/concurrent/HelloThreaded.txt b/test/known-good/Cpp/src/concurrent/HelloThreaded.txt
index 0ef4353fc..8ca001820 100644
--- a/test/known-good/Cpp/src/concurrent/HelloThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/HelloThreaded.txt
@@ -4,15 +4,15 @@
target Cpp {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor HelloCpp(period: time(2 sec), message: {= std::string =}("Hello C++")) {
- state count: int(0)
- state previous_time: {= reactor::TimePoint =}
+reactor HelloCpp(period: time(2 sec), message: {= std::string =}("Hello C++")) {
+ state count: int(0)
+ state previous_time: {= reactor::TimePoint =}
timer t(1 sec, period)
- logical action a: void
+ logical action a: void
reaction(t) -> a {=
std::cout << message << std::endl;
@@ -37,7 +37,7 @@
}
reactor Inside(
- period: time(1 sec),
+ period: time(1 sec),
message: {= std::string =}("Composite default message.")
) {
third_instance = new HelloCpp(period = period, message = message)
diff --git a/test/known-good/Cpp/src/concurrent/MinimalThreaded.txt b/test/known-good/Cpp/src/concurrent/MinimalThreaded.txt
index 651452f0d..1a4556f3a 100644
--- a/test/known-good/Cpp/src/concurrent/MinimalThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/MinimalThreaded.txt
@@ -2,6 +2,6 @@
target Cpp
main reactor {
- reaction(startup) {= std::cout << "Hello World!\n"; =}
+ reaction(startup) {= std::cout << "Hello World!\n"; =}
}
diff --git a/test/known-good/Cpp/src/concurrent/SendingInsideThreaded.txt b/test/known-good/Cpp/src/concurrent/SendingInsideThreaded.txt
index f569707ed..f764ace4c 100644
--- a/test/known-good/Cpp/src/concurrent/SendingInsideThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/SendingInsideThreaded.txt
@@ -1,13 +1,13 @@
target Cpp {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor Printer {
- input x: int
- state count: int(1)
+ input x: int
+ state count: int(1)
reaction(x) {=
std::cout << "Inside reactor received: " << *x.get() << std::endl;
@@ -20,7 +20,7 @@
}
main reactor {
- state count: int(0)
+ state count: int(0)
timer t(0, 1 sec)
p = new Printer()
diff --git a/test/known-good/Cpp/src/concurrent/Threaded.txt b/test/known-good/Cpp/src/concurrent/Threaded.txt
index 131cf3579..136ff7596 100644
--- a/test/known-good/Cpp/src/concurrent/Threaded.txt
+++ b/test/known-good/Cpp/src/concurrent/Threaded.txt
@@ -7,13 +7,13 @@
target Cpp {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
out.set(s);
@@ -25,8 +25,8 @@
private preamble {=
=}
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
std::this_thread::sleep_for(200ms);
@@ -35,11 +35,11 @@
}
reactor Destination {
- state s: int(0)
- input in1: int
- input in2: int
- input in3: int
- input in4: int
+ state s: int(0)
+ input in1: int
+ input in2: int
+ input in3: int
+ input in4: int
reaction(in1, in2, in3, in4) {=
int sum = *in1.get() + *in2.get() + *in3.get() + *in4.get();
diff --git a/test/known-good/Cpp/src/concurrent/ThreadedThreaded.txt b/test/known-good/Cpp/src/concurrent/ThreadedThreaded.txt
index ad2172e32..d81e79596 100644
--- a/test/known-good/Cpp/src/concurrent/ThreadedThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/ThreadedThreaded.txt
@@ -7,13 +7,13 @@
target Cpp {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
out.set(s);
@@ -25,8 +25,8 @@
private preamble {=
=}
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
std::this_thread::sleep_for(200ms);
@@ -35,8 +35,8 @@
}
reactor Destination {
- state s: int(0)
- input[4] in: int
+ state s: int(0)
+ input[4] in: int
reaction(in) {=
int sum = 0;
@@ -54,7 +54,7 @@
main reactor {
a = new Source()
- t = new[4] Computation()
+ t = new[4] Computation()
b = new Destination()
(a.out)+ -> t.in
t.out -> b.in
diff --git a/test/known-good/Cpp/src/concurrent/TimeLimitThreaded.txt b/test/known-good/Cpp/src/concurrent/TimeLimitThreaded.txt
index 66add4a83..93ee1a501 100644
--- a/test/known-good/Cpp/src/concurrent/TimeLimitThreaded.txt
+++ b/test/known-good/Cpp/src/concurrent/TimeLimitThreaded.txt
@@ -3,13 +3,13 @@
target Cpp {
- fast: true
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: int
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: int
timer t(offset, period)
- state count: int(0)
+ state count: int(0)
reaction(t) -> y {=
count++;
@@ -19,8 +19,8 @@
}
reactor Destination {
- input x: int
- state s: int(1)
+ input x: int
+ state s: int(1)
reaction(x) {=
@@ -40,7 +40,7 @@
=}
}
-main reactor(period: time(1 sec)) {
+main reactor(period: time(1 sec)) {
timer stop(10 sec)
c = new Clock(period = period)
d = new Destination()
diff --git a/test/known-good/Cpp/src/concurrent/Workers.txt b/test/known-good/Cpp/src/concurrent/Workers.txt
index 6951a1b8a..e3151c26b 100644
--- a/test/known-good/Cpp/src/concurrent/Workers.txt
+++ b/test/known-good/Cpp/src/concurrent/Workers.txt
@@ -1,5 +1,5 @@
target Cpp {
- workers: 16
+ workers: 16
}
main reactor {
diff --git a/test/known-good/Cpp/src/enclave/EnclaveBank.txt b/test/known-good/Cpp/src/enclave/EnclaveBank.txt
index 77c264fb4..9126932ec 100644
--- a/test/known-good/Cpp/src/enclave/EnclaveBank.txt
+++ b/test/known-good/Cpp/src/enclave/EnclaveBank.txt
@@ -1,15 +1,15 @@
target Cpp {
- timeout: 3 sec
+ timeout: 3 sec
}
reactor Node(
- bank_index: size_t(0),
- id: std::string({= "node" + std::to_string(bank_index) =}),
- period: time(500 msec),
- duration: time(10 msec)
+ bank_index: size_t(0),
+ id: std::string({= "node" + std::to_string(bank_index) =}),
+ period: time(500 msec),
+ duration: time(10 msec)
) {
- logical action a: void
+ logical action a: void
reaction(startup, a) -> a {=
reactor::log::Info() << id << " reaction executes.";
@@ -25,6 +25,6 @@
main reactor {
slow = new Node(id = "slow", period = 1 sec, duration = 500 msec)
@enclave
- nodes = new[2] Node()
+ nodes = new[2] Node()
}
diff --git a/test/known-good/Cpp/src/enclave/EnclaveBankEach.txt b/test/known-good/Cpp/src/enclave/EnclaveBankEach.txt
index e9a443952..92bce66fc 100644
--- a/test/known-good/Cpp/src/enclave/EnclaveBankEach.txt
+++ b/test/known-good/Cpp/src/enclave/EnclaveBankEach.txt
@@ -1,16 +1,16 @@
target Cpp {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Node(
- bank_index: size_t(0),
- id: std::string({= "node" + std::to_string(bank_index) =}),
+ bank_index: size_t(0),
+ id: std::string({= "node" + std::to_string(bank_index) =}),
period: {= reactor::Duration =}({= 100ms * (bank_index+1) =}),
duration: {= reactor::Duration =}({= 50ms + 100ms * bank_index =})
) {
- logical action a: void
+ logical action a: void
reaction(startup, a) -> a {=
reactor::log::Info() << id << " reaction executes.";
@@ -26,6 +26,6 @@
main reactor {
slow = new Node(id = "slow", period = {= 1s =}, duration = {= 700ms =})
@enclave(each = true)
- nodes = new[2] Node()
+ nodes = new[2] Node()
}
diff --git a/test/known-good/Cpp/src/enclave/EnclaveHelloWorld.txt b/test/known-good/Cpp/src/enclave/EnclaveHelloWorld.txt
index 648232abe..ac4be17bb 100644
--- a/test/known-good/Cpp/src/enclave/EnclaveHelloWorld.txt
+++ b/test/known-good/Cpp/src/enclave/EnclaveHelloWorld.txt
@@ -1,10 +1,10 @@
target Cpp
-reactor Hello(msg: std::string("World")) {
- reaction(startup) {= reactor::log::Info() << "Hello " << msg << '!'; =}
+reactor Hello(msg: std::string("World")) {
+ reaction(startup) {= reactor::log::Info() << "Hello " << msg << '!'; =}
}
-main reactor(msg1: std::string("World"), msg2: std::string("Enclave")) {
+main reactor(msg1: std::string("World"), msg2: std::string("Enclave")) {
hello1 = new Hello(msg = msg1)
@enclave
diff --git a/test/known-good/Cpp/src/enclave/EnclaveHierarchy.txt b/test/known-good/Cpp/src/enclave/EnclaveHierarchy.txt
index f4e4386c4..674b6ec82 100644
--- a/test/known-good/Cpp/src/enclave/EnclaveHierarchy.txt
+++ b/test/known-good/Cpp/src/enclave/EnclaveHierarchy.txt
@@ -1,12 +1,12 @@
target Cpp {
- timeout: 3 sec
+ timeout: 3 sec
}
reactor Node(
- id: std::string("node"),
- period: time(100 msec),
- duration: time(50 msec)
+ id: std::string("node"),
+ period: time(100 msec),
+ duration: time(50 msec)
) {
timer t(0, period)
diff --git a/test/known-good/Cpp/src/enclave/EnclaveShutdown.txt b/test/known-good/Cpp/src/enclave/EnclaveShutdown.txt
index e6fe7ac98..2baab5918 100644
--- a/test/known-good/Cpp/src/enclave/EnclaveShutdown.txt
+++ b/test/known-good/Cpp/src/enclave/EnclaveShutdown.txt
@@ -1,14 +1,14 @@
target Cpp
reactor Node(
- message: std::string("Hello"),
- period: time(1 sec),
- stop: time(3 sec)
+ message: std::string("Hello"),
+ period: time(1 sec),
+ stop: time(3 sec)
) {
timer t(0, period)
timer s(stop)
- reaction(t) {= reactor::log::Info() << message; =}
+ reaction(t) {= reactor::log::Info() << message; =}
reaction(s) {= request_stop(); =}
diff --git a/test/known-good/Cpp/src/enclave/EnclaveTimeout.txt b/test/known-good/Cpp/src/enclave/EnclaveTimeout.txt
index 043da19a8..60dc54776 100644
--- a/test/known-good/Cpp/src/enclave/EnclaveTimeout.txt
+++ b/test/known-good/Cpp/src/enclave/EnclaveTimeout.txt
@@ -1,11 +1,11 @@
target Cpp {
- timeout: 1 sec
+ timeout: 1 sec
}
-reactor Node(message: std::string("Hello"), period: time(1 sec)) {
+reactor Node(message: std::string("Hello"), period: time(1 sec)) {
timer t(0, period)
- reaction(t) {= reactor::log::Info() << message; =}
+ reaction(t) {= reactor::log::Info() << message; =}
reaction(shutdown) {=
reactor::log::Info() << "Goodbye!";
diff --git a/test/known-good/Cpp/src/enclave/FastAndSlow.txt b/test/known-good/Cpp/src/enclave/FastAndSlow.txt
index 166aa8997..6d4677f66 100644
--- a/test/known-good/Cpp/src/enclave/FastAndSlow.txt
+++ b/test/known-good/Cpp/src/enclave/FastAndSlow.txt
@@ -1,7 +1,7 @@
target Cpp {
- timeout: 3 sec
+ timeout: 3 sec
}
reactor Slow {
diff --git a/test/known-good/Cpp/src/lib/Count.txt b/test/known-good/Cpp/src/lib/Count.txt
index 1a0936d39..6de8e956d 100644
--- a/test/known-good/Cpp/src/lib/Count.txt
+++ b/test/known-good/Cpp/src/lib/Count.txt
@@ -1,9 +1,9 @@
target Cpp
reactor Count {
- output c: int
+ output c: int
timer t(0, 1 sec)
- state i: int(0)
+ state i: int(0)
reaction(t) -> c {=
i++;
diff --git a/test/known-good/Cpp/src/lib/Imported.txt b/test/known-good/Cpp/src/lib/Imported.txt
index 2f6386604..8b8466994 100644
--- a/test/known-good/Cpp/src/lib/Imported.txt
+++ b/test/known-good/Cpp/src/lib/Imported.txt
@@ -5,7 +5,7 @@
import ImportedAgain from "ImportedAgain.lf"
reactor Imported {
- input x: int
+ input x: int
a = new ImportedAgain()
reaction(x) -> a.x {= a.x.set(x.get()); =}
diff --git a/test/known-good/Cpp/src/lib/ImportedAgain.txt b/test/known-good/Cpp/src/lib/ImportedAgain.txt
index afc7828e1..1ca1a4463 100644
--- a/test/known-good/Cpp/src/lib/ImportedAgain.txt
+++ b/test/known-good/Cpp/src/lib/ImportedAgain.txt
@@ -3,12 +3,12 @@
target Cpp
reactor ImportedAgain {
- input x: int
+ input x: int
reaction(x) {=
auto value = *x.get();
if (value != 42) {
- std::cerr << "ERROR: Expected input to be 42. Got: " << value << std::endl;
+ std::cerr << "ERROR: Expected input to be 42. Got: " << value << std::endl;
exit(1);
} else {
std::cout << "Received " << value << std::endl;
diff --git a/test/known-good/Cpp/src/lib/ImportedComposition.txt b/test/known-good/Cpp/src/lib/ImportedComposition.txt
index a84444750..e5f373982 100644
--- a/test/known-good/Cpp/src/lib/ImportedComposition.txt
+++ b/test/known-good/Cpp/src/lib/ImportedComposition.txt
@@ -9,15 +9,15 @@
target Cpp
reactor Gain {
- input x: int
- output y: int
+ input x: int
+ output y: int
reaction(x) -> y {= y.set(*x.get() * 2); =}
}
reactor ImportedComposition {
- input x: int
- output y: int
+ input x: int
+ output y: int
g1 = new Gain()
g2 = new Gain()
x -> g1.x after 10 msec
diff --git a/test/known-good/Cpp/src/lib/LoopedActionSender.txt b/test/known-good/Cpp/src/lib/LoopedActionSender.txt
index 903bf7480..de171f23b 100644
--- a/test/known-good/Cpp/src/lib/LoopedActionSender.txt
+++ b/test/known-good/Cpp/src/lib/LoopedActionSender.txt
@@ -13,10 +13,10 @@
-reactor Sender(take_a_break_after: int(10), break_interval: time(400 msec)) {
- output out: int
+reactor Sender(take_a_break_after: int(10), break_interval: time(400 msec)) {
+ output out: int
logical action act
- state sent_messages: int(0)
+ state sent_messages: int(0)
reaction(startup, act) -> act, out {=
out.set(sent_messages);
diff --git a/test/known-good/Cpp/src/multiport/BankSelfBroadcast.txt b/test/known-good/Cpp/src/multiport/BankSelfBroadcast.txt
index ffb971dfb..d99611abc 100644
--- a/test/known-good/Cpp/src/multiport/BankSelfBroadcast.txt
+++ b/test/known-good/Cpp/src/multiport/BankSelfBroadcast.txt
@@ -8,10 +8,10 @@
target Cpp
-reactor A(bank_index: size_t(0)) {
- input[4] in: size_t
- output out: size_t
- state received: bool(false)
+reactor A(bank_index: size_t(0)) {
+ input[4] in: size_t
+ output out: size_t
+ state received: bool(false)
reaction(startup) -> out {= out.set(bank_index); =}
@@ -43,7 +43,7 @@
}
main reactor {
- a = new[4] A()
+ a = new[4] A()
(a.out)+ -> a.in
}
diff --git a/test/known-good/Cpp/src/multiport/BankToBank.txt b/test/known-good/Cpp/src/multiport/BankToBank.txt
index 694c46bfe..7b88461fd 100644
--- a/test/known-good/Cpp/src/multiport/BankToBank.txt
+++ b/test/known-good/Cpp/src/multiport/BankToBank.txt
@@ -1,13 +1,13 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(bank_index: size_t(0)) {
+reactor Source(bank_index: size_t(0)) {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {=
out.set(s);
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(bank_index: size_t(0)) {
- state s: int(0)
- input in: int
+reactor Destination(bank_index: size_t(0)) {
+ state s: int(0)
+ input in: int
reaction(in) {=
std::cout << "Destination " << bank_index << " received: " << *in.get() << "\n";
@@ -37,10 +37,10 @@
=}
}
-main reactor BankToBank(width: int(4)) {
+main reactor BankToBank(width: int(4)) {
- a = new[4] Source()
- b = new[4] Destination()
+ a = new[4] Source()
+ b = new[4] Destination()
a.out -> b.in
}
diff --git a/test/known-good/Cpp/src/multiport/BankToBankMultiport.txt b/test/known-good/Cpp/src/multiport/BankToBankMultiport.txt
index 6435665a2..b8614dc3c 100644
--- a/test/known-good/Cpp/src/multiport/BankToBankMultiport.txt
+++ b/test/known-good/Cpp/src/multiport/BankToBankMultiport.txt
@@ -1,13 +1,13 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: size_t(1)) {
+reactor Source(width: size_t(1)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(size_t i = 0; i < out.size(); i++) {
@@ -16,14 +16,14 @@
=}
}
-reactor Destination(width: size_t(1)) {
- state s: int(6)
- input[width] in: int
+reactor Destination(width: size_t(1)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
- for (auto i : in.present_indices_unsorted()) {
+ for (auto i : in.present_indices_unsorted()) {
sum += *in[i].get();
}
@@ -44,9 +44,9 @@
=}
}
-main reactor(bank_width: size_t(4)) {
- a = new[bank_width] Source(width = 4)
- b = new[bank_width] Destination(width = 4)
+main reactor(bank_width: size_t(4)) {
+ a = new[bank_width] Source(width = 4)
+ b = new[bank_width] Destination(width = 4)
a.out -> b.in
}
diff --git a/test/known-good/Cpp/src/multiport/BankToBankMultiportAfter.txt b/test/known-good/Cpp/src/multiport/BankToBankMultiportAfter.txt
index a978455af..148b93f94 100644
--- a/test/known-good/Cpp/src/multiport/BankToBankMultiportAfter.txt
+++ b/test/known-good/Cpp/src/multiport/BankToBankMultiportAfter.txt
@@ -1,13 +1,13 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: size_t(1)) {
+reactor Source(width: size_t(1)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(size_t i = 0; i < out.size(); i++) {
@@ -16,10 +16,10 @@
=}
}
-reactor Destination(width: size_t(1)) {
- state s: int(6)
- state iterations: unsigned(0)
- input[width] in: int
+reactor Destination(width: size_t(1)) {
+ state s: int(6)
+ state iterations: unsigned(0)
+ input[width] in: int
reaction(in) {=
iterations++;
@@ -31,7 +31,7 @@
}
int sum = 0;
- for (auto i : in.present_indices_unsorted()) {
+ for (auto i : in.present_indices_unsorted()) {
sum += *in[i].get();
}
@@ -52,9 +52,9 @@
=}
}
-main reactor(bank_width: size_t(4)) {
- a = new[bank_width] Source(width = 4)
- b = new[bank_width] Destination(width = 4)
+main reactor(bank_width: size_t(4)) {
+ a = new[bank_width] Source(width = 4)
+ b = new[bank_width] Destination(width = 4)
a.out -> b.in after 200 msec
}
diff --git a/test/known-good/Cpp/src/multiport/BankToMultiport.txt b/test/known-good/Cpp/src/multiport/BankToMultiport.txt
index d14015162..622e5d961 100644
--- a/test/known-good/Cpp/src/multiport/BankToMultiport.txt
+++ b/test/known-good/Cpp/src/multiport/BankToMultiport.txt
@@ -1,15 +1,15 @@
target Cpp
-reactor Source(bank_index: size_t(0)) {
- output out: unsigned
+reactor Source(bank_index: size_t(0)) {
+ output out: unsigned
reaction(startup) -> out {= out.set(bank_index); =}
}
reactor Sink {
- input[4] in: unsigned
- state received: bool(false)
+ input[4] in: unsigned
+ state received: bool(false)
reaction(in) {=
for (unsigned i = 0; i < in.size(); i++) {
@@ -31,7 +31,7 @@
}
main reactor BankToMultiport {
- source = new[4] Source()
+ source = new[4] Source()
sink = new Sink()
source.out -> sink.in
}
diff --git a/test/known-good/Cpp/src/multiport/Broadcast.txt b/test/known-good/Cpp/src/multiport/Broadcast.txt
index 0c0958b2c..9431341e6 100644
--- a/test/known-good/Cpp/src/multiport/Broadcast.txt
+++ b/test/known-good/Cpp/src/multiport/Broadcast.txt
@@ -1,13 +1,13 @@
target Cpp
reactor Source {
- output out: unsigned
+ output out: unsigned
reaction(startup) -> out {= out.set(42); =}
}
-reactor Sink(bank_index: size_t(0)) {
- input in: unsigned
+reactor Sink(bank_index: size_t(0)) {
+ input in: unsigned
reaction(in) {=
std::cout << "Received " << *in.get() << '\n';
@@ -20,7 +20,7 @@
main reactor {
source = new Source()
- sink = new[4] Sink()
+ sink = new[4] Sink()
(source.out)+ -> sink.in
}
diff --git a/test/known-good/Cpp/src/multiport/BroadcastAfter.txt b/test/known-good/Cpp/src/multiport/BroadcastAfter.txt
index af53b1ffe..4fdbbb05b 100644
--- a/test/known-good/Cpp/src/multiport/BroadcastAfter.txt
+++ b/test/known-good/Cpp/src/multiport/BroadcastAfter.txt
@@ -1,16 +1,16 @@
target Cpp {
- fast: true
+ fast: true
}
reactor Source {
- output out: unsigned
+ output out: unsigned
reaction(startup) -> out {= out.set(42); =}
}
-reactor Sink(bank_index: size_t(0)) {
- input in: unsigned
- state received: bool{false}
+reactor Sink(bank_index: size_t(0)) {
+ input in: unsigned
+ state received: bool{false}
reaction(in) {=
std::cout << bank_index << " received " << *in.get() << '\n';
@@ -36,7 +36,7 @@
main reactor {
source = new Source()
- sink = new[4] Sink()
+ sink = new[4] Sink()
(source.out)+ -> sink.in after 1 sec
}
diff --git a/test/known-good/Cpp/src/multiport/BroadcastMultipleAfter.txt b/test/known-good/Cpp/src/multiport/BroadcastMultipleAfter.txt
index f78315e5e..ee2169ca9 100644
--- a/test/known-good/Cpp/src/multiport/BroadcastMultipleAfter.txt
+++ b/test/known-good/Cpp/src/multiport/BroadcastMultipleAfter.txt
@@ -1,16 +1,16 @@
target Cpp {
- fast: true
+ fast: true
}
-reactor Source(value: unsigned(42)) {
- output out: unsigned
+reactor Source(value: unsigned(42)) {
+ output out: unsigned
reaction(startup) -> out {= out.set(value); =}
}
-reactor Sink(bank_index: size_t(0)) {
- input in: unsigned
- state received: bool{false}
+reactor Sink(bank_index: size_t(0)) {
+ input in: unsigned
+ state received: bool{false}
reaction(in) {=
std::cout << bank_index << " received " << *in.get() << '\n';
@@ -39,7 +39,7 @@
source1 = new Source(value = 1)
source2 = new Source(value = 2)
source3 = new Source(value = 3)
- sink = new[9] Sink()
+ sink = new[9] Sink()
(source1.out, source2.out, source3.out)+ -> sink.in after 1 sec
}
diff --git a/test/known-good/Cpp/src/multiport/FullyConnected.txt b/test/known-good/Cpp/src/multiport/FullyConnected.txt
index af6a4ce1b..d15590f7a 100644
--- a/test/known-good/Cpp/src/multiport/FullyConnected.txt
+++ b/test/known-good/Cpp/src/multiport/FullyConnected.txt
@@ -1,10 +1,10 @@
target Cpp
-reactor Node(bank_index: size_t(0), num_nodes: size_t(4)) {
- input[num_nodes] in: size_t
- output out: size_t
+reactor Node(bank_index: size_t(0), num_nodes: size_t(4)) {
+ input[num_nodes] in: size_t
+ output out: size_t
- state received: bool{false}
+ state received: bool{false}
reaction(startup) -> out {=
std::cout << "Hello from node " << bank_index << "!\n";
@@ -16,7 +16,7 @@
std::cout << "Node " << bank_index << " received messages from ";
received = true;
size_t count{0};
- for (auto i: in.present_indices_unsorted()) {
+ for (auto i: in.present_indices_unsorted()) {
count++;
std::cout << *in[i].get() << ", ";
}
@@ -36,8 +36,8 @@
=}
}
-main reactor(num_nodes: size_t(4)) {
- nodes = new[num_nodes] Node(num_nodes = num_nodes)
+main reactor(num_nodes: size_t(4)) {
+ nodes = new[num_nodes] Node(num_nodes = num_nodes)
(nodes.out)+ -> nodes.in
}
diff --git a/test/known-good/Cpp/src/multiport/FullyConnectedAddressable.txt b/test/known-good/Cpp/src/multiport/FullyConnectedAddressable.txt
index 6eff22013..96dd97cda 100644
--- a/test/known-good/Cpp/src/multiport/FullyConnectedAddressable.txt
+++ b/test/known-good/Cpp/src/multiport/FullyConnectedAddressable.txt
@@ -1,11 +1,11 @@
target Cpp
-reactor Node(bank_index: size_t(0), num_nodes: size_t(4)) {
- input[num_nodes] in: size_t
- output[num_nodes] out: size_t
+reactor Node(bank_index: size_t(0), num_nodes: size_t(4)) {
+ input[num_nodes] in: size_t
+ output[num_nodes] out: size_t
- state received: bool{false}
+ state received: bool{false}
reaction(startup) -> out {=
std::cout << "Hello from node " << bank_index << "!\n";
@@ -18,7 +18,7 @@
received = true;
size_t count{0};
size_t result{0};
- for (auto i : in.present_indices_unsorted()) {
+ for (auto i : in.present_indices_unsorted()) {
count++;
result = *in[i].get();
std::cout << result << ", ";
@@ -26,7 +26,7 @@
std::cout << '\n';
- size_t expected = bank_index == 0 ? num_nodes - 1 : bank_index - 1;
+ size_t expected = bank_index == 0 ? num_nodes - 1 : bank_index - 1;
if (count != 1 || result != expected) {
std::cerr << "ERROR: received an unexpected message!\n";
exit(1);
@@ -41,11 +41,11 @@
=}
}
-main reactor(num_nodes: size_t(4)) {
- nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
+main reactor(num_nodes: size_t(4)) {
+ nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
nodes1.out -> interleaved (nodes1.in)
- nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
+ nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
interleaved (nodes2.out) -> nodes2.in
}
diff --git a/test/known-good/Cpp/src/multiport/FullyConnectedAddressableAfter.txt b/test/known-good/Cpp/src/multiport/FullyConnectedAddressableAfter.txt
index 9cf15ca85..a9223949d 100644
--- a/test/known-good/Cpp/src/multiport/FullyConnectedAddressableAfter.txt
+++ b/test/known-good/Cpp/src/multiport/FullyConnectedAddressableAfter.txt
@@ -3,11 +3,11 @@
import Node from "FullyConnectedAddressable.lf"
-main reactor(num_nodes: size_t(4)) {
- nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
+main reactor(num_nodes: size_t(4)) {
+ nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
nodes1.out -> interleaved (nodes1.in) after 200 msec
- nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
+ nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
interleaved (nodes2.out) -> nodes2.in after 400 msec
}
diff --git a/test/known-good/Cpp/src/multiport/IndexIntoMultiportInput.txt b/test/known-good/Cpp/src/multiport/IndexIntoMultiportInput.txt
index 45a38c24a..d3c6aabe0 100644
--- a/test/known-good/Cpp/src/multiport/IndexIntoMultiportInput.txt
+++ b/test/known-good/Cpp/src/multiport/IndexIntoMultiportInput.txt
@@ -9,7 +9,7 @@
target Cpp
reactor ReactorWithMultiport {
- input[3] in: int
+ input[3] in: int
reaction(startup, in) {=
bool error{false};
@@ -31,11 +31,11 @@
}
reactor MultiportSplitter {
- output[3] out: int
+ output[3] out: int
- input in0: int
- input in1: int
- input in2: int
+ input in0: int
+ input in1: int
+ input in2: int
in0, in1, in2 -> out
}
diff --git a/test/known-good/Cpp/src/multiport/IndexIntoMultiportOutput.txt b/test/known-good/Cpp/src/multiport/IndexIntoMultiportOutput.txt
index c803e8858..c56238812 100644
--- a/test/known-good/Cpp/src/multiport/IndexIntoMultiportOutput.txt
+++ b/test/known-good/Cpp/src/multiport/IndexIntoMultiportOutput.txt
@@ -8,8 +8,8 @@
target Cpp
-reactor ReactorWithMultiport(width: size_t(3)) {
- output[width] out: int
+reactor ReactorWithMultiport(width: size_t(3)) {
+ output[width] out: int
reaction(startup) -> out {=
for (size_t i{0}; i < width; i++) {
@@ -18,12 +18,12 @@
=}
}
-reactor MultiportSplitter(width: size_t(3)) {
- input[width] in: int
+reactor MultiportSplitter(width: size_t(3)) {
+ input[width] in: int
- output out0: int
- output out1: int
- output out2: int
+ output out0: int
+ output out1: int
+ output out2: int
in -> out0, out1, out2
}
@@ -34,9 +34,9 @@
source.out -> splitter.in
- state received0: bool{false}
- state received1: bool{false}
- state received2: bool{false}
+ state received0: bool{false}
+ state received1: bool{false}
+ state received2: bool{false}
reaction(splitter.out0) {=
received0 = true;
diff --git a/test/known-good/Cpp/src/multiport/Multiport.txt b/test/known-good/Cpp/src/multiport/Multiport.txt
index 1f10309fd..8bc2d2032 100644
--- a/test/known-good/Cpp/src/multiport/Multiport.txt
+++ b/test/known-good/Cpp/src/multiport/Multiport.txt
@@ -9,11 +9,11 @@
target Cpp
reactor Test {
- input[3000] sink: void
- output[3000] source: void
+ input[3000] sink: void
+ output[3000] source: void
reaction(sink) -> source {=
- for (auto i: sink.present_indices_unsorted()) {
+ for (auto i: sink.present_indices_unsorted()) {
source[i].set();
}
=}
@@ -21,7 +21,7 @@
main reactor Multiport {
test = new Test()
- state received: bool(false)
+ state received: bool(false)
reaction(startup) -> test.sink {=
for (auto i = 0; i < 30; i++) {
diff --git a/test/known-good/Cpp/src/multiport/MultiportFromBank.txt b/test/known-good/Cpp/src/multiport/MultiportFromBank.txt
index fb15e328a..d37d90d61 100644
--- a/test/known-good/Cpp/src/multiport/MultiportFromBank.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportFromBank.txt
@@ -1,19 +1,19 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(bank_index: size_t(0)) {
- output out: unsigned
+reactor Source(bank_index: size_t(0)) {
+ output out: unsigned
reaction(startup) -> out {= out.set(bank_index); =}
}
-reactor Destination(port_width: size_t(2)) {
- input[port_width] in: unsigned
- state received: bool(false)
+reactor Destination(port_width: size_t(2)) {
+ input[port_width] in: unsigned
+ state received: bool(false)
reaction(in) {=
for (size_t i = 0; i < in.size(); i++) {
@@ -35,8 +35,8 @@
=}
}
-main reactor(width: size_t(4)) {
- a = new[width] Source()
+main reactor(width: size_t(4)) {
+ a = new[width] Source()
b = new Destination(port_width = width)
a.out -> b.in
}
diff --git a/test/known-good/Cpp/src/multiport/MultiportFromBankHierarchy.txt b/test/known-good/Cpp/src/multiport/MultiportFromBankHierarchy.txt
index 575a7962f..5e90b6d6c 100644
--- a/test/known-good/Cpp/src/multiport/MultiportFromBankHierarchy.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportFromBankHierarchy.txt
@@ -1,25 +1,25 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(bank_index: size_t(0)) {
- output out: unsigned
+reactor Source(bank_index: size_t(0)) {
+ output out: unsigned
reaction(startup) -> out {= out.set(bank_index); =}
}
reactor Container {
- output[3] out: unsigned
- s = new[3] Source()
+ output[3] out: unsigned
+ s = new[3] Source()
s.out -> out
}
reactor Destination {
- input[3] in: unsigned
- state received: bool(false)
+ input[3] in: unsigned
+ state received: bool(false)
reaction(in) {=
for (size_t i = 0; i < in.size(); i++) {
diff --git a/test/known-good/Cpp/src/multiport/MultiportFromBankHierarchyAfter.txt b/test/known-good/Cpp/src/multiport/MultiportFromBankHierarchyAfter.txt
index 4cda03f94..0af98ade9 100644
--- a/test/known-good/Cpp/src/multiport/MultiportFromBankHierarchyAfter.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportFromBankHierarchyAfter.txt
@@ -1,25 +1,25 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(bank_index: size_t(0)) {
- output out: int
+reactor Source(bank_index: size_t(0)) {
+ output out: int
reaction(startup) -> out {= out.set(bank_index); =}
}
reactor Container {
- output[3] out: int
- s = new[3] Source()
+ output[3] out: int
+ s = new[3] Source()
s.out -> out
}
reactor Destination {
- input[3] in: int
- state received: bool(false)
+ input[3] in: int
+ state received: bool(false)
reaction(in) {=
for (int i = 0; i < in.size(); i++) {
diff --git a/test/known-good/Cpp/src/multiport/MultiportFromHierarchy.txt b/test/known-good/Cpp/src/multiport/MultiportFromHierarchy.txt
index f6d1aa2a4..682ba9825 100644
--- a/test/known-good/Cpp/src/multiport/MultiportFromHierarchy.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportFromHierarchy.txt
@@ -1,14 +1,14 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output[4] out: int
- state s: int(0)
+ output[4] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < 4; i++) {
@@ -18,12 +18,12 @@
}
reactor Destination {
- state s: int(6)
- input[4] in: int
+ state s: int(6)
+ input[4] in: int
reaction(in) {=
int sum = 0;
- for (auto i : in.present_indices_unsorted()) {
+ for (auto i : in.present_indices_unsorted()) {
sum += *in[i].get();
}
@@ -45,13 +45,13 @@
}
reactor Container {
- output[4] out: int
+ output[4] out: int
src = new InsideContainer()
src.out -> out
}
reactor InsideContainer {
- output[4] out: int
+ output[4] out: int
src = new Source()
src.out -> out
}
diff --git a/test/known-good/Cpp/src/multiport/MultiportIn.txt b/test/known-good/Cpp/src/multiport/MultiportIn.txt
index 648333fe4..0a3d63c66 100644
--- a/test/known-good/Cpp/src/multiport/MultiportIn.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportIn.txt
@@ -1,28 +1,28 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output out: int
- state s: int(0)
+ output out: int
+ state s: int(0)
reaction(t) -> out {= out.set(s++); =}
}
reactor Computation {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {= out.set(*in.get()); =}
}
reactor Destination {
- state s: int(0)
- input[4] in: int
+ state s: int(0)
+ input[4] in: int
reaction(in) {=
int sum = 0;
diff --git a/test/known-good/Cpp/src/multiport/MultiportMultipleSet.txt b/test/known-good/Cpp/src/multiport/MultiportMultipleSet.txt
index e44248e81..78d3adf6f 100644
--- a/test/known-good/Cpp/src/multiport/MultiportMultipleSet.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportMultipleSet.txt
@@ -1,16 +1,16 @@
target Cpp {
- timeout: 1 s
+ timeout: 1 s
}
reactor Producer {
timer t(0, 100 ms)
- output[10] out: int
+ output[10] out: int
- state odd: bool(true)
+ state odd: bool(true)
reaction(t) -> out {=
- for (int i{odd ? 1 : 0}; i < 10; i += 2) {
+ for (int i{odd ? 1 : 0}; i < 10; i += 2) {
for (int j{0}; j < 10; j++) {
out[i].set(j);
}
@@ -21,14 +21,14 @@
}
reactor Consumer {
- state odd: bool(true)
- input[10] in: int
+ state odd: bool(true)
+ input[10] in: int
reaction(in) {=
int count = 0;
int last = -1;
- for (int i : in.present_indices_unsorted()) {
+ for (int i : in.present_indices_unsorted()) {
count++;
if (odd && i%2 == 0) {
reactor::log::Error() << "Expected values only on odd ports, but received one on port " << i;
diff --git a/test/known-good/Cpp/src/multiport/MultiportOut.txt b/test/known-good/Cpp/src/multiport/MultiportOut.txt
index 256ebee86..ebf2364bf 100644
--- a/test/known-good/Cpp/src/multiport/MultiportOut.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportOut.txt
@@ -1,13 +1,13 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output[4] out: int
- state s: int(0)
+ output[4] out: int
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < 4; i++) {
@@ -18,8 +18,8 @@
}
reactor Computation {
- input in: int
- output out: int
+ input in: int
+ output out: int
reaction(in) -> out {=
@@ -31,12 +31,12 @@
}
reactor Destination {
- state s: int(0)
- input[4] in: int
+ state s: int(0)
+ input[4] in: int
reaction(in) {=
int sum = 0;
- for (auto i : in.present_indices_unsorted()) {
+ for (auto i : in.present_indices_unsorted()) {
sum += *in[i].get();
}
std::cout << "Sum of received: " << sum << ".\n";
diff --git a/test/known-good/Cpp/src/multiport/MultiportToBank.txt b/test/known-good/Cpp/src/multiport/MultiportToBank.txt
index f3e1b62fd..e0fc7e591 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToBank.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToBank.txt
@@ -1,7 +1,7 @@
target Cpp
reactor Source {
- output[4] out: unsigned
+ output[4] out: unsigned
reaction(startup) -> out {=
for (unsigned i = 0 ; i < out.size(); i++) {
@@ -10,8 +10,8 @@
=}
}
-reactor Sink(bank_index: size_t(0)) {
- input in: unsigned
+reactor Sink(bank_index: size_t(0)) {
+ input in: unsigned
reaction(in) {=
std::cout << "Received " << *in.get() << '\n';
@@ -24,7 +24,7 @@
main reactor MultiportToBank {
source = new Source()
- sink = new[4] Sink()
+ sink = new[4] Sink()
source.out -> sink.in
}
diff --git a/test/known-good/Cpp/src/multiport/MultiportToBankAfter.txt b/test/known-good/Cpp/src/multiport/MultiportToBankAfter.txt
index 01cf6f37e..5643d9a37 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToBankAfter.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToBankAfter.txt
@@ -1,7 +1,7 @@
target Cpp
reactor Source {
- output[4] out: unsigned
+ output[4] out: unsigned
reaction(startup) -> out {=
for (unsigned i = 0 ; i < out.size(); i++) {
@@ -10,8 +10,8 @@
=}
}
-reactor Sink(bank_index: size_t(0)) {
- input in: unsigned
+reactor Sink(bank_index: size_t(0)) {
+ input in: unsigned
reaction(in) {=
std::cout << "Received " << *in.get() << '\n';
@@ -28,7 +28,7 @@
main reactor MultiportToBankAfter {
source = new Source()
- sink = new[4] Sink()
+ sink = new[4] Sink()
source.out -> sink.in after 1 sec
}
diff --git a/test/known-good/Cpp/src/multiport/MultiportToBankHierarchy.txt b/test/known-good/Cpp/src/multiport/MultiportToBankHierarchy.txt
index b4229dd1b..50a1c2657 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToBankHierarchy.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToBankHierarchy.txt
@@ -1,12 +1,12 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
- output[3] out: unsigned
+ output[3] out: unsigned
reaction(startup) -> out {=
for(size_t i = 0; i < out.size(); i++) {
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(bank_index: size_t(0)) {
- input in: unsigned
- state received: bool(false)
+reactor Destination(bank_index: size_t(0)) {
+ input in: unsigned
+ state received: bool(false)
reaction(in) {=
std::cout << "Destination " << bank_index << " received " << *in.get() << ".\n";
@@ -38,8 +38,8 @@
}
reactor Container {
- input[3] in: unsigned
- c = new[3] Destination()
+ input[3] in: unsigned
+ c = new[3] Destination()
in -> c.in
}
diff --git a/test/known-good/Cpp/src/multiport/MultiportToHierarchy.txt b/test/known-good/Cpp/src/multiport/MultiportToHierarchy.txt
index 624b37bae..07f36a68f 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToHierarchy.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToHierarchy.txt
@@ -2,14 +2,14 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Source(width: size_t(4)) {
+reactor Source(width: size_t(4)) {
timer t(0, 200 msec)
- output[width] out: int
- state s: int(0)
+ output[width] out: int
+ state s: int(0)
reaction(t) -> out {=
for(size_t i = 0; i < 4; i++) {
@@ -18,13 +18,13 @@
=}
}
-reactor Destination(width: size_t(4)) {
- state s: int(6)
- input[width] in: int
+reactor Destination(width: size_t(4)) {
+ state s: int(6)
+ input[width] in: int
reaction(in) {=
int sum = 0;
- for (auto i : in.present_indices_unsorted()) {
+ for (auto i : in.present_indices_unsorted()) {
sum += *in[i].get();
}
@@ -45,13 +45,13 @@
=}
}
-reactor Container(width: size_t(4)) {
- input[width] in: int
+reactor Container(width: size_t(4)) {
+ input[width] in: int
dst = new Destination()
in -> dst.in
}
-main reactor MultiportToHierarchy(width: size_t(4)) {
+main reactor MultiportToHierarchy(width: size_t(4)) {
a = new Source(width = width)
b = new Container(width = width)
a.out -> b.in
diff --git a/test/known-good/Cpp/src/multiport/MultiportToMultiport.txt b/test/known-good/Cpp/src/multiport/MultiportToMultiport.txt
index 608eb276b..e5243f6ee 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToMultiport.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToMultiport.txt
@@ -1,7 +1,7 @@
target Cpp
reactor Source {
- output[4] out: unsigned
+ output[4] out: unsigned
reaction(startup) -> out {=
for (unsigned i = 0; i < out.size(); i++) {
@@ -11,8 +11,8 @@
}
reactor Sink {
- input[4] in: unsigned
- state received: bool(false)
+ input[4] in: unsigned
+ state received: bool(false)
reaction(in) {=
for (unsigned i = 0; i < in.size(); i++) {
diff --git a/test/known-good/Cpp/src/multiport/MultiportToMultiport2.txt b/test/known-good/Cpp/src/multiport/MultiportToMultiport2.txt
index b9e420a58..e8bc492e7 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToMultiport2.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToMultiport2.txt
@@ -1,8 +1,8 @@
target Cpp
-reactor Source(width: size_t(2)) {
- output[width] out: size_t
+reactor Source(width: size_t(2)) {
+ output[width] out: size_t
reaction(startup) -> out {=
for (size_t i = 0; i < out.size(); i++) {
@@ -11,11 +11,11 @@
=}
}
-reactor Destination(width: size_t(2)) {
- input[width] in: size_t
+reactor Destination(width: size_t(2)) {
+ input[width] in: size_t
reaction(in) {=
- for (auto i: in.present_indices_unsorted()) {
+ for (auto i: in.present_indices_unsorted()) {
size_t value = *in[i].get();
std::cout << "Received on channel " << i << ": " << value << '\n';
diff --git a/test/known-good/Cpp/src/multiport/MultiportToMultiport2After.txt b/test/known-good/Cpp/src/multiport/MultiportToMultiport2After.txt
index ed150bddc..cd44d9afa 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToMultiport2After.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToMultiport2After.txt
@@ -1,8 +1,8 @@
target Cpp
-reactor Source(width: size_t(2)) {
- output[width] out: size_t
+reactor Source(width: size_t(2)) {
+ output[width] out: size_t
reaction(startup) -> out {=
for (size_t i = 0; i < out.size(); i++) {
@@ -11,8 +11,8 @@
=}
}
-reactor Destination(width: size_t(2)) {
- input[width] in: size_t
+reactor Destination(width: size_t(2)) {
+ input[width] in: size_t
reaction(in) {=
for (size_t i = 0; i < in.size(); i++) {
diff --git a/test/known-good/Cpp/src/multiport/MultiportToMultiportArray.txt b/test/known-good/Cpp/src/multiport/MultiportToMultiportArray.txt
index 36768affe..b9bce4f01 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToMultiportArray.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToMultiportArray.txt
@@ -1,14 +1,14 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output[2] out: int[3]
- state s: int(0)
+ output[2] out: int[3]
+ state s: int(0)
reaction(t) -> out {=
for(int i = 0; i < 2; i++) {
@@ -25,12 +25,12 @@
}
reactor Destination {
- state s: int(15)
- input[2] in: int[3]
+ state s: int(15)
+ input[2] in: int[3]
reaction(in) {=
int sum = 0;
- for (auto i : in.present_indices_unsorted()) {
+ for (auto i : in.present_indices_unsorted()) {
const auto& a = *in[i].get();
for (int j = 0; j < a.size(); j++) {
sum += a[j];
diff --git a/test/known-good/Cpp/src/multiport/MultiportToMultiportPhysical.txt b/test/known-good/Cpp/src/multiport/MultiportToMultiportPhysical.txt
index 61eaf2d98..83635c435 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToMultiportPhysical.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToMultiportPhysical.txt
@@ -1,7 +1,7 @@
target Cpp
reactor Source {
- output[4] out: unsigned
+ output[4] out: unsigned
reaction(startup) -> out {=
for (unsigned i = 0; i < out.size(); i++) {
@@ -11,8 +11,8 @@
}
reactor Sink {
- input[4] in: unsigned
- state received: int(-1)
+ input[4] in: unsigned
+ state received: int(-1)
reaction(in) {=
auto present_ports = in.present_indices_unsorted();
diff --git a/test/known-good/Cpp/src/multiport/MultiportToPort.txt b/test/known-good/Cpp/src/multiport/MultiportToPort.txt
index 1720e2bfb..bc3c58618 100644
--- a/test/known-good/Cpp/src/multiport/MultiportToPort.txt
+++ b/test/known-good/Cpp/src/multiport/MultiportToPort.txt
@@ -1,12 +1,12 @@
target Cpp {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
- output[2] out: int
+ output[2] out: int
reaction(startup) -> out {=
for(int i = 0; i < out.size(); i++) {
@@ -16,9 +16,9 @@
=}
}
-reactor Destination(expected: int(0)) {
- input in: int
- state received: bool(false)
+reactor Destination(expected: int(0)) {
+ input in: int
+ state received: bool(false)
reaction(in) {=
std::cout << "Received: " << *in.get() << ".\n";
diff --git a/test/known-good/Cpp/src/multiport/PipelineAfter.txt b/test/known-good/Cpp/src/multiport/PipelineAfter.txt
index 56046e3fe..a4f9a3a22 100644
--- a/test/known-good/Cpp/src/multiport/PipelineAfter.txt
+++ b/test/known-good/Cpp/src/multiport/PipelineAfter.txt
@@ -1,20 +1,20 @@
target Cpp
reactor Source {
- output out: unsigned
+ output out: unsigned
reaction(startup) -> out {= out.set(40); =}
}
reactor Compute {
- input in: unsigned
- output out: unsigned
+ input in: unsigned
+ output out: unsigned
reaction(in) -> out {= out.set(*in.get() + 2); =}
}
reactor Sink {
- input in: unsigned
+ input in: unsigned
reaction(in) {=
std::cout << "Received " << *in.get() << '\n';
diff --git a/test/known-good/Cpp/src/multiport/ReadMultiportOutputOfContainedBank.txt b/test/known-good/Cpp/src/multiport/ReadMultiportOutputOfContainedBank.txt
index 8bfa00ac1..0644d814f 100644
--- a/test/known-good/Cpp/src/multiport/ReadMultiportOutputOfContainedBank.txt
+++ b/test/known-good/Cpp/src/multiport/ReadMultiportOutputOfContainedBank.txt
@@ -2,8 +2,8 @@
target Cpp
-reactor Contained(bank_index: size_t(0)) {
- output[3] out: unsigned
+reactor Contained(bank_index: size_t(0)) {
+ output[3] out: unsigned
reaction(startup) -> out {=
for (size_t i = 0; i < 3; i++) {
@@ -13,8 +13,8 @@
}
main reactor {
- c = new[3] Contained()
- state count: int(0)
+ c = new[3] Contained()
+ state count: int(0)
reaction(startup) c.out {=
for (size_t i = 0; i < c.size(); i++) {
@@ -35,7 +35,7 @@
for (size_t i = 0; i < c.size(); i++) {
for (size_t j = 0; j < c[i].out.size(); j++) {
unsigned result = *c[i].out[j].get();
- std::cout << "Reading output of contained reactor: " << result << std::endl;
+ std::cout << "Reading output of contained reactor: " << result << std::endl;
if (result != i * j) {
std::cout << "FAILURE: expected " << i * j << std::endl;
exit(2);
diff --git a/test/known-good/Cpp/src/multiport/ReadOutputOfContainedBank.txt b/test/known-good/Cpp/src/multiport/ReadOutputOfContainedBank.txt
index 841dc0120..ecd4e0c31 100644
--- a/test/known-good/Cpp/src/multiport/ReadOutputOfContainedBank.txt
+++ b/test/known-good/Cpp/src/multiport/ReadOutputOfContainedBank.txt
@@ -2,15 +2,15 @@
target Cpp
-reactor Contained(bank_index: size_t(0)) {
- output out: unsigned
+reactor Contained(bank_index: size_t(0)) {
+ output out: unsigned
reaction(startup) -> out {= out.set(42 * bank_index); =}
}
main reactor {
- c = new[4] Contained()
- state count: int(0)
+ c = new[4] Contained()
+ state count: int(0)
reaction(startup) c.out {=
for (size_t i = 0; i < c.size(); i++) {
diff --git a/test/known-good/Cpp/src/multiport/SparseMultiport.txt b/test/known-good/Cpp/src/multiport/SparseMultiport.txt
index 507f42368..a5d9e455f 100644
--- a/test/known-good/Cpp/src/multiport/SparseMultiport.txt
+++ b/test/known-good/Cpp/src/multiport/SparseMultiport.txt
@@ -1,16 +1,16 @@
target Cpp {
- timeout: 1 s
+ timeout: 1 s
}
reactor Producer {
timer t(0, 100 ms)
- output[10] out: int
+ output[10] out: int
- state odd: bool(true)
+ state odd: bool(true)
reaction(t) -> out {=
- for (int i{odd ? 1 : 0}; i < 10; i += 2) {
+ for (int i{odd ? 1 : 0}; i < 10; i += 2) {
out[i].set(i);
}
@@ -19,8 +19,8 @@
}
reactor Consumer {
- state odd: bool(true)
- input[10] in: int
+ state odd: bool(true)
+ input[10] in: int
reaction(in) {=
reactor::log::Info() << "Received:";
@@ -42,7 +42,7 @@
reaction(in) {=
int count = 0;
int last = -1;
- for (int i : in.present_indices_sorted()) {
+ for (int i : in.present_indices_sorted()) {
count++;
if (odd && i%2 == 0) {
reactor::log::Error() << "Expected values only on odd ports, but received one on port " << i;
@@ -57,7 +57,7 @@
exit(1);
}
}
- for (int i : in.present_indices_unsorted()) {
+ for (int i : in.present_indices_unsorted()) {
count++;
if (odd && i%2 == 0) {
reactor::log::Error() << "Expected values only on odd ports, but received one on port " << i;
diff --git a/test/known-good/Cpp/src/multiport/WidthGivenByCode.txt b/test/known-good/Cpp/src/multiport/WidthGivenByCode.txt
index 3012aa549..5a279ee23 100644
--- a/test/known-good/Cpp/src/multiport/WidthGivenByCode.txt
+++ b/test/known-good/Cpp/src/multiport/WidthGivenByCode.txt
@@ -1,8 +1,8 @@
target Cpp
-reactor Foo(a: size_t{8}, b: size_t{2}) {
- input[{= a*b =}] in: size_t
- output[{= a/b =}] out: size_t
+reactor Foo(a: size_t{8}, b: size_t{2}) {
+ input[{= a*b =}] in: size_t
+ output[{= a/b =}] out: size_t
reaction(startup) in -> out {=
if (in.size() != a*b) {
@@ -20,14 +20,14 @@
foo1 = new Foo()
foo2 = new Foo(a = 10, b = 3)
foo3 = new Foo(a = 9, b = 9)
- foo_bank = new[{= 42 =}] Foo()
+ foo_bank = new[{= 42 =}] Foo()
reaction(startup) foo_bank.out {=
if (foo_bank.size() != 42) {
std::cerr << "ERROR: expected foo_bank to have a width of " << 42 << '\n';
exit(3);
}
- for (auto& foo : foo_bank) {
+ for (auto& foo : foo_bank) {
if (foo.out.size() != 4) {
std::cerr << "ERROR: expected foo_bank.out to have a width of " << 4 << '\n';
exit(4);
diff --git a/test/known-good/Cpp/src/multiport/WriteInputOfContainedBank.txt b/test/known-good/Cpp/src/multiport/WriteInputOfContainedBank.txt
index 659dc33b0..4bdd01748 100644
--- a/test/known-good/Cpp/src/multiport/WriteInputOfContainedBank.txt
+++ b/test/known-good/Cpp/src/multiport/WriteInputOfContainedBank.txt
@@ -1,9 +1,9 @@
target Cpp
-reactor Contained(bank_index: size_t(0)) {
- input in: unsigned
- state count: int(0)
+reactor Contained(bank_index: size_t(0)) {
+ input in: unsigned
+ state count: int(0)
reaction(in) {=
unsigned result = *in.get();
@@ -24,7 +24,7 @@
}
main reactor {
- c = new[4] Contained()
+ c = new[4] Contained()
reaction(startup) -> c.in {=
for (size_t i = 0; i < c.size(); i++) {
diff --git a/test/known-good/Cpp/src/multiport/WriteMultiportInputOfContainedBank.txt b/test/known-good/Cpp/src/multiport/WriteMultiportInputOfContainedBank.txt
index 7144c3918..ef51149f8 100644
--- a/test/known-good/Cpp/src/multiport/WriteMultiportInputOfContainedBank.txt
+++ b/test/known-good/Cpp/src/multiport/WriteMultiportInputOfContainedBank.txt
@@ -1,9 +1,9 @@
target Cpp
-reactor Contained(bank_index: size_t(0)) {
- input[4] in: unsigned
- state count: int(0)
+reactor Contained(bank_index: size_t(0)) {
+ input[4] in: unsigned
+ state count: int(0)
reaction(in) {=
for (size_t i = 0; i < 3; i++) {
@@ -26,7 +26,7 @@
}
main reactor {
- c = new[4] Contained()
+ c = new[4] Contained()
reaction(startup) -> c.in {=
for (size_t i = 0; i < c.size(); i++) {
diff --git a/test/known-good/Cpp/src/properties/Fast.txt b/test/known-good/Cpp/src/properties/Fast.txt
index d52588600..be050e094 100644
--- a/test/known-good/Cpp/src/properties/Fast.txt
+++ b/test/known-good/Cpp/src/properties/Fast.txt
@@ -1,11 +1,11 @@
target Cpp {
- fast: true
+ fast: true
}
main reactor {
logical action a
- state triggered: bool{false}
+ state triggered: bool{false}
reaction(startup) -> a {= a.schedule(2s); =}
diff --git a/test/known-good/Cpp/src/properties/Timeout.txt b/test/known-good/Cpp/src/properties/Timeout.txt
index c458da871..90ec10f76 100644
--- a/test/known-good/Cpp/src/properties/Timeout.txt
+++ b/test/known-good/Cpp/src/properties/Timeout.txt
@@ -1,11 +1,11 @@
target Cpp {
- timeout: 1 sec
+ timeout: 1 sec
}
main reactor {
timer t(1 sec, 1 sec)
- state triggered: bool{false}
+ state triggered: bool{false}
reaction(t) {=
triggered = true;
diff --git a/test/known-good/Cpp/src/properties/TimeoutZero.txt b/test/known-good/Cpp/src/properties/TimeoutZero.txt
index c4f8a3d6b..26be20a73 100644
--- a/test/known-good/Cpp/src/properties/TimeoutZero.txt
+++ b/test/known-good/Cpp/src/properties/TimeoutZero.txt
@@ -1,11 +1,11 @@
target Cpp {
- timeout: 0 sec
+ timeout: 0 sec
}
main reactor {
timer t(0, 1 sec)
- state triggered: bool{false}
+ state triggered: bool{false}
reaction(t) {=
triggered = true;
diff --git a/test/known-good/Cpp/src/target/AfterVoid.txt b/test/known-good/Cpp/src/target/AfterVoid.txt
index a7ca4a871..5ae76d77f 100644
--- a/test/known-good/Cpp/src/target/AfterVoid.txt
+++ b/test/known-good/Cpp/src/target/AfterVoid.txt
@@ -1,20 +1,20 @@
target Cpp {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
reactor foo {
timer t(0, 1 sec)
- output y: void
+ output y: void
reaction(t) -> y {= y.set(); =}
}
reactor print {
- state expected_time: time(10 msec)
- state i: int(0)
- input x: void
+ state expected_time: time(10 msec)
+ state i: int(0)
+ input x: void
reaction(x) {=
i++;
diff --git a/test/known-good/Cpp/src/target/BraceAndParenInitialization.txt b/test/known-good/Cpp/src/target/BraceAndParenInitialization.txt
index 74488ccbe..dcd18b8e8 100644
--- a/test/known-good/Cpp/src/target/BraceAndParenInitialization.txt
+++ b/test/known-good/Cpp/src/target/BraceAndParenInitialization.txt
@@ -1,15 +1,15 @@
target Cpp
reactor Foo(
- param_list_1: std::vector(4, 2),
- param_list_2: std::vector{4, 2},
- param_list_3: std::vector(4, 2),
- param_list_4: std::vector{4, 2}
+ param_list_1: std::vector(4, 2),
+ param_list_2: std::vector{4, 2},
+ param_list_3: std::vector(4, 2),
+ param_list_4: std::vector{4, 2}
) {
- state state_list_1: std::vector(6, 42)
+ state state_list_1: std::vector(6, 42)
- state state_list_2: std::vector{6, 42}
+ state state_list_2: std::vector{6, 42}
reaction(startup) {=
std::cerr << "Hello!\n";
diff --git a/test/known-good/Cpp/src/target/CMakeInclude.txt b/test/known-good/Cpp/src/target/CMakeInclude.txt
index 198285488..76f52b682 100644
--- a/test/known-good/Cpp/src/target/CMakeInclude.txt
+++ b/test/known-good/Cpp/src/target/CMakeInclude.txt
@@ -3,11 +3,11 @@
target Cpp {
- cmake-include: [
+ cmake-include: [
"../include/mlib-cmake-extension.cmake",
"../include/bar-cmake-compile-definition.txt"
],
- timeout: 0 sec
+ timeout: 0 sec
}
main reactor {
diff --git a/test/known-good/Cpp/src/target/CliParserGenericArguments.txt b/test/known-good/Cpp/src/target/CliParserGenericArguments.txt
index 1c44cfe92..9edc55d13 100644
--- a/test/known-good/Cpp/src/target/CliParserGenericArguments.txt
+++ b/test/known-good/Cpp/src/target/CliParserGenericArguments.txt
@@ -17,7 +17,7 @@
class CustomClass {
public:
std::string name;
- CustomClass(std::string new_name="John") : name{new_name}
+ CustomClass(std::string new_name="John") : name{new_name}
{}
std::string get_name() const {return this->name;}
void set_name(std::string updated_name){this->name = updated_name;}
@@ -43,21 +43,21 @@
=}
main reactor CliParserGenericArguments(
- int_value: int(10),
- signed_value: signed(-10),
- unsigned_value: unsigned(11),
- long_value: long(-100),
+ int_value: int(10),
+ signed_value: signed(-10),
+ unsigned_value: unsigned(11),
+ long_value: long(-100),
unsigned_long_value: {= unsigned_long =}(42),
long_long_value: {= long_long =}(-42),
ull_value: {= uns_long_long =}(42),
- bool_value: bool(false),
- char_value: char('T'),
- double_value: double(4.2),
+ bool_value: bool(false),
+ char_value: char('T'),
+ double_value: double(4.2),
long_double_value: {= long_double =}(4.2),
- float_value: float(10.5),
- string_value: string("This is a testvalue"),
+ float_value: float(10.5),
+ string_value: string("This is a testvalue"),
custom_class_value: {= CustomClass =}("Peter")
) {
- reaction(startup) {= std::cout << "Hello World!\n"; =}
+ reaction(startup) {= std::cout << "Hello World!\n"; =}
}
diff --git a/test/known-good/Cpp/src/target/CombinedTypeNames.txt b/test/known-good/Cpp/src/target/CombinedTypeNames.txt
index b51c75cd3..e794fb19f 100644
--- a/test/known-good/Cpp/src/target/CombinedTypeNames.txt
+++ b/test/known-good/Cpp/src/target/CombinedTypeNames.txt
@@ -6,8 +6,8 @@
bar: {= unsigned int =}(0),
baz: {= const unsigned int* =}({= nullptr =})
) {
- state s_bar: {= unsigned int =}(bar)
- state s_baz: {= const unsigned int* =}(baz)
+ state s_bar: {= unsigned int =}(bar)
+ state s_baz: {= const unsigned int* =}(baz)
reaction(startup) {=
if (bar != 42 || s_bar != 42 || *baz != 42 || *s_baz != 42) {
diff --git a/test/known-good/Cpp/src/target/GenericAfter.txt b/test/known-good/Cpp/src/target/GenericAfter.txt
index cd38469fa..75cde67e4 100644
--- a/test/known-good/Cpp/src/target/GenericAfter.txt
+++ b/test/known-good/Cpp/src/target/GenericAfter.txt
@@ -2,10 +2,10 @@
import Test from "../DelayInt.lf"
-reactor Delay(delay: time(0)) {
- output out: T
- input in: T
- logical action a(delay): T
+reactor Delay(delay: time(0)) {
+ output out: T
+ input in: T
+ logical action a(delay): T
reaction(a) -> out {= out.set(a.get()); =}
diff --git a/test/known-good/Cpp/src/target/GenericDelay.txt b/test/known-good/Cpp/src/target/GenericDelay.txt
index 2b176375a..14fe3579b 100644
--- a/test/known-good/Cpp/src/target/GenericDelay.txt
+++ b/test/known-good/Cpp/src/target/GenericDelay.txt
@@ -2,10 +2,10 @@
import Test from "../DelayInt.lf"
-reactor Delay(delay: time(0)) {
- output out: T
- input in: T
- logical action a(delay): T
+reactor Delay(delay: time(0)) {
+ output out: T
+ input in: T
+ logical action a(delay): T
reaction(a) -> out {= out.set(a.get()); =}
diff --git a/test/known-good/Cpp/src/target/GenericParameterAndState.txt b/test/known-good/Cpp/src/target/GenericParameterAndState.txt
index 0e070a499..92db1cbd5 100644
--- a/test/known-good/Cpp/src/target/GenericParameterAndState.txt
+++ b/test/known-good/Cpp/src/target/GenericParameterAndState.txt
@@ -1,7 +1,7 @@
target Cpp
-reactor Foo(bar: T(0), expected: T(14542135)) {
- state baz: T(bar)
+reactor Foo(bar: T(0), expected: T(14542135)) {
+ state baz: T(bar)
reaction(startup) {=
if (bar != expected) {
diff --git a/test/known-good/Cpp/src/target/MultipleContainedGeneric.txt b/test/known-good/Cpp/src/target/MultipleContainedGeneric.txt
index 25e172705..a20d14635 100644
--- a/test/known-good/Cpp/src/target/MultipleContainedGeneric.txt
+++ b/test/known-good/Cpp/src/target/MultipleContainedGeneric.txt
@@ -3,9 +3,9 @@
target Cpp
reactor Contained {
- output trigger: T
- input in1: T
- input in2: T
+ output trigger: T
+ input in1: T
+ input in2: T
reaction(startup) -> trigger {= trigger.set(42); =}
diff --git a/test/known-good/Cpp/src/target/PointerParameters.txt b/test/known-good/Cpp/src/target/PointerParameters.txt
index 0e3ac4ba2..5734a4ec8 100644
--- a/test/known-good/Cpp/src/target/PointerParameters.txt
+++ b/test/known-good/Cpp/src/target/PointerParameters.txt
@@ -2,7 +2,7 @@
target Cpp
-reactor Foo(ptr: int*{{= nullptr =}}) {
+reactor Foo(ptr: int*{{= nullptr =}}) {
reaction(startup) {=
if (ptr == nullptr || *ptr != 42) {
reactor::log::Error() << "received an unexpected value!";
diff --git a/test/known-good/Cpp/src/target/PreambleFile.txt b/test/known-good/Cpp/src/target/PreambleFile.txt
index 91f779b01..04ff463bf 100644
--- a/test/known-good/Cpp/src/target/PreambleFile.txt
+++ b/test/known-good/Cpp/src/target/PreambleFile.txt
@@ -21,7 +21,7 @@
=}
reactor Source {
- output x: MyStruct
+ output x: MyStruct
reaction(startup) -> x {=
int a = add_42(0);
@@ -38,7 +38,7 @@
std::cout << "Received " << x.foo << " and '" << x.bar << "'\n";
}
=}
- input x: MyStruct
+ input x: MyStruct
reaction(x) {=
MyStruct value = *x.get();
diff --git a/test/known-good/Python/src/ActionWithNoReaction.txt b/test/known-good/Python/src/ActionWithNoReaction.txt
index cf6451f10..dce8a20d0 100644
--- a/test/known-good/Python/src/ActionWithNoReaction.txt
+++ b/test/known-good/Python/src/ActionWithNoReaction.txt
@@ -2,8 +2,8 @@
target Python {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor foo {
diff --git a/test/known-good/Python/src/After.txt b/test/known-good/Python/src/After.txt
index 38ab01aa8..795afd237 100644
--- a/test/known-good/Python/src/After.txt
+++ b/test/known-good/Python/src/After.txt
@@ -1,8 +1,8 @@
target Python {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
reactor foo {
diff --git a/test/known-good/Python/src/AfterOverlapped.txt b/test/known-good/Python/src/AfterOverlapped.txt
index 144059ab7..45310c49f 100644
--- a/test/known-good/Python/src/AfterOverlapped.txt
+++ b/test/known-good/Python/src/AfterOverlapped.txt
@@ -1,7 +1,7 @@
target Python {
- fast: true,
- timeout: 5 sec
+ fast: true,
+ timeout: 5 sec
}
import Count from "lib/Count.lf"
diff --git a/test/known-good/Python/src/CompareTags.txt b/test/known-good/Python/src/CompareTags.txt
index e1638acd6..98903e66d 100644
--- a/test/known-good/Python/src/CompareTags.txt
+++ b/test/known-good/Python/src/CompareTags.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 10 msec,
- fast: false
+ timeout: 10 msec,
+ fast: false
}
main reactor CompareTags {
diff --git a/test/known-good/Python/src/Composition.txt b/test/known-good/Python/src/Composition.txt
index 4fb4ba387..4e7b0ab63 100644
--- a/test/known-good/Python/src/Composition.txt
+++ b/test/known-good/Python/src/Composition.txt
@@ -1,8 +1,8 @@
target Python {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
reactor Source(period(2 sec)) {
diff --git a/test/known-good/Python/src/CompositionAfter.txt b/test/known-good/Python/src/CompositionAfter.txt
index 6a765384f..8c2b6d58f 100644
--- a/test/known-good/Python/src/CompositionAfter.txt
+++ b/test/known-good/Python/src/CompositionAfter.txt
@@ -1,8 +1,8 @@
target Python {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
reactor Source(period(2 sec)) {
diff --git a/test/known-good/Python/src/CompositionInheritance.txt b/test/known-good/Python/src/CompositionInheritance.txt
index f4f443650..81b9c161f 100644
--- a/test/known-good/Python/src/CompositionInheritance.txt
+++ b/test/known-good/Python/src/CompositionInheritance.txt
@@ -1,8 +1,8 @@
target Python {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
reactor Source(period(2 sec)) {
diff --git a/test/known-good/Python/src/CountSelf.txt b/test/known-good/Python/src/CountSelf.txt
index da923a41e..712072674 100644
--- a/test/known-good/Python/src/CountSelf.txt
+++ b/test/known-good/Python/src/CountSelf.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor CountSelf2(delay(100 msec)) {
diff --git a/test/known-good/Python/src/CountTest.txt b/test/known-good/Python/src/CountTest.txt
index 61b5c4b0d..e9111e062 100644
--- a/test/known-good/Python/src/CountTest.txt
+++ b/test/known-good/Python/src/CountTest.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 3 sec,
- fast: true
+ timeout: 3 sec,
+ fast: true
}
import Count from "lib/Count.lf"
diff --git a/test/known-good/Python/src/Deadline.txt b/test/known-good/Python/src/Deadline.txt
index 37e41ca1e..03d142b10 100644
--- a/test/known-good/Python/src/Deadline.txt
+++ b/test/known-good/Python/src/Deadline.txt
@@ -2,7 +2,7 @@
target Python {
- timeout: 6 sec
+ timeout: 6 sec
}
preamble {= import time =}
diff --git a/test/known-good/Python/src/DelayArrayWithAfter.txt b/test/known-good/Python/src/DelayArrayWithAfter.txt
index 1a70bd0cd..dbc2b69f5 100644
--- a/test/known-good/Python/src/DelayArrayWithAfter.txt
+++ b/test/known-good/Python/src/DelayArrayWithAfter.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/DelayStruct.txt b/test/known-good/Python/src/DelayStruct.txt
index 72bc84ab2..011995953 100644
--- a/test/known-good/Python/src/DelayStruct.txt
+++ b/test/known-good/Python/src/DelayStruct.txt
@@ -1,6 +1,6 @@
target Python {
- files: ["include/hello.py"]
+ files: ["include/hello.py"]
}
preamble {= import hello =}
diff --git a/test/known-good/Python/src/DelayStructWithAfter.txt b/test/known-good/Python/src/DelayStructWithAfter.txt
index 012285a10..935fb6888 100644
--- a/test/known-good/Python/src/DelayStructWithAfter.txt
+++ b/test/known-good/Python/src/DelayStructWithAfter.txt
@@ -1,6 +1,6 @@
target Python {
- files: include/hello.py
+ files: include/hello.py
}
preamble {= import hello =}
diff --git a/test/known-good/Python/src/DelayStructWithAfterOverlapped.txt b/test/known-good/Python/src/DelayStructWithAfterOverlapped.txt
index dec821e57..4d00db176 100644
--- a/test/known-good/Python/src/DelayStructWithAfterOverlapped.txt
+++ b/test/known-good/Python/src/DelayStructWithAfterOverlapped.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 5 sec,
- fast: true,
- files: ["include/hello.py"]
+ timeout: 5 sec,
+ fast: true,
+ files: ["include/hello.py"]
}
preamble {= import hello =}
diff --git a/test/known-good/Python/src/DelayedAction.txt b/test/known-good/Python/src/DelayedAction.txt
index 5426ee70b..f995945c4 100644
--- a/test/known-good/Python/src/DelayedAction.txt
+++ b/test/known-good/Python/src/DelayedAction.txt
@@ -1,6 +1,6 @@
target Python {
- fast: true,
- timeout: 5 sec
+ fast: true,
+ timeout: 5 sec
}
main reactor DelayedAction {
diff --git a/test/known-good/Python/src/DoubleInvocation.txt b/test/known-good/Python/src/DoubleInvocation.txt
index be06a2739..93122d247 100644
--- a/test/known-good/Python/src/DoubleInvocation.txt
+++ b/test/known-good/Python/src/DoubleInvocation.txt
@@ -6,8 +6,8 @@
target Python {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Ball {
diff --git a/test/known-good/Python/src/DoubleReaction.txt b/test/known-good/Python/src/DoubleReaction.txt
index 255a17990..5290d4161 100644
--- a/test/known-good/Python/src/DoubleReaction.txt
+++ b/test/known-good/Python/src/DoubleReaction.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor Clock(offset(0), period(1 sec)) {
diff --git a/test/known-good/Python/src/GetMicroStep.txt b/test/known-good/Python/src/GetMicroStep.txt
index 2c1e03cb0..bc4c3501f 100644
--- a/test/known-good/Python/src/GetMicroStep.txt
+++ b/test/known-good/Python/src/GetMicroStep.txt
@@ -1,6 +1,6 @@
target Python {
- fast: false
+ fast: false
}
main reactor GetMicroStep {
diff --git a/test/known-good/Python/src/GetTime.txt b/test/known-good/Python/src/GetTime.txt
index d4ed8d7e8..29a88361d 100644
--- a/test/known-good/Python/src/GetTime.txt
+++ b/test/known-good/Python/src/GetTime.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: false
+ timeout: 2 sec,
+ fast: false
}
main reactor GetTime {
diff --git a/test/known-good/Python/src/Hello.txt b/test/known-good/Python/src/Hello.txt
index 17d75abff..241602b78 100644
--- a/test/known-good/Python/src/Hello.txt
+++ b/test/known-good/Python/src/Hello.txt
@@ -4,8 +4,8 @@
target Python {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor Reschedule(period(2 sec), message("Hello Python")) {
diff --git a/test/known-good/Python/src/HelloWorld.txt b/test/known-good/Python/src/HelloWorld.txt
index e93d74332..c3b661eb8 100644
--- a/test/known-good/Python/src/HelloWorld.txt
+++ b/test/known-good/Python/src/HelloWorld.txt
@@ -1,5 +1,5 @@
target Python {
- tracing: true
+ tracing: true
}
reactor HelloWorld2 {
diff --git a/test/known-good/Python/src/Hierarchy2.txt b/test/known-good/Python/src/Hierarchy2.txt
index 9fe89499f..754f80b06 100644
--- a/test/known-good/Python/src/Hierarchy2.txt
+++ b/test/known-good/Python/src/Hierarchy2.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/IdentifierLength.txt b/test/known-good/Python/src/IdentifierLength.txt
index 443cee5a8..d5e6b4672 100644
--- a/test/known-good/Python/src/IdentifierLength.txt
+++ b/test/known-good/Python/src/IdentifierLength.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor A_Really_Long_Name_For_A_Source_But_Not_Quite_255_Characters_Which_Is_The_Maximum_For_The_Python_Target(
diff --git a/test/known-good/Python/src/ManualDelayedReaction.txt b/test/known-good/Python/src/ManualDelayedReaction.txt
index 097d2d381..e0d405644 100644
--- a/test/known-good/Python/src/ManualDelayedReaction.txt
+++ b/test/known-good/Python/src/ManualDelayedReaction.txt
@@ -2,7 +2,7 @@
- keepalive: false
+ keepalive: false
}
diff --git a/test/known-good/Python/src/Methods.txt b/test/known-good/Python/src/Methods.txt
index 77b36af1b..516e383ab 100644
--- a/test/known-good/Python/src/Methods.txt
+++ b/test/known-good/Python/src/Methods.txt
@@ -4,9 +4,9 @@
main reactor {
state foo(2)
- method getFoo() {= return self.foo =}
+ method getFoo() {= return self.foo =}
- method add(x) {= self.foo += x =}
+ method add(x) {= self.foo += x =}
reaction(startup) {=
print(f"Foo is initialized to {self.getFoo()}")
diff --git a/test/known-good/Python/src/MethodsRecursive.txt b/test/known-good/Python/src/MethodsRecursive.txt
index f2bbbcc4c..c4c7a56fb 100644
--- a/test/known-good/Python/src/MethodsRecursive.txt
+++ b/test/known-good/Python/src/MethodsRecursive.txt
@@ -4,13 +4,13 @@
main reactor {
state foo(2)
- method fib(n) {= # Return the n-th Fibonacci number.
+ method fib(n) {= # Return the n-th Fibonacci number.
if n <= 1:
return 1
return self.add(self.fib(n-1), self.fib(n-2))
=}
- method add(x, y) {= return x + y =}
+ method add(x, y) {= return x + y =}
reaction(startup) {=
for n in range(1, 10):
diff --git a/test/known-good/Python/src/MethodsSameName.txt b/test/known-good/Python/src/MethodsSameName.txt
index 86ab7a452..4f4fd2121 100644
--- a/test/known-good/Python/src/MethodsSameName.txt
+++ b/test/known-good/Python/src/MethodsSameName.txt
@@ -4,7 +4,7 @@
reactor Foo {
state foo(2)
- method add(x) {= self.foo += x =}
+ method add(x) {= self.foo += x =}
reaction(startup) {=
self.add(40)
@@ -20,7 +20,7 @@
a = new Foo()
- method add(x) {= self.foo += x =}
+ method add(x) {= self.foo += x =}
reaction(startup) {=
self.add(40)
diff --git a/test/known-good/Python/src/MovingAverage.txt b/test/known-good/Python/src/MovingAverage.txt
index 296248f49..99ae8754e 100644
--- a/test/known-good/Python/src/MovingAverage.txt
+++ b/test/known-good/Python/src/MovingAverage.txt
@@ -2,8 +2,8 @@
target Python {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
import TestDouble from "lib/Test.lf"
diff --git a/test/known-good/Python/src/PeriodicDesugared.txt b/test/known-good/Python/src/PeriodicDesugared.txt
index 0da6c25c0..1d6c56aa4 100644
--- a/test/known-good/Python/src/PeriodicDesugared.txt
+++ b/test/known-good/Python/src/PeriodicDesugared.txt
@@ -1,6 +1,6 @@
target Python {
- fast: true,
- timeout: 1 sec
+ fast: true,
+ timeout: 1 sec
}
main reactor(offset(0), period(500 msec)) {
diff --git a/test/known-good/Python/src/PingPong.txt b/test/known-good/Python/src/PingPong.txt
index 6049ad9e0..f8ada9f89 100644
--- a/test/known-good/Python/src/PingPong.txt
+++ b/test/known-good/Python/src/PingPong.txt
@@ -21,7 +21,7 @@
target Python {
- fast: true
+ fast: true
}
reactor Ping(count(10)) {
diff --git a/test/known-good/Python/src/Pipeline.txt b/test/known-good/Python/src/Pipeline.txt
index 294c20c72..7df1a7b30 100644
--- a/test/known-good/Python/src/Pipeline.txt
+++ b/test/known-good/Python/src/Pipeline.txt
@@ -1,5 +1,5 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor TakeTime {
diff --git a/test/known-good/Python/src/Preamble.txt b/test/known-good/Python/src/Preamble.txt
index 04a9ea19d..d616c0555 100644
--- a/test/known-good/Python/src/Preamble.txt
+++ b/test/known-good/Python/src/Preamble.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
main reactor Preamble {
diff --git a/test/known-good/Python/src/ScheduleLogicalAction.txt b/test/known-good/Python/src/ScheduleLogicalAction.txt
index 34bb61371..352149e40 100644
--- a/test/known-good/Python/src/ScheduleLogicalAction.txt
+++ b/test/known-good/Python/src/ScheduleLogicalAction.txt
@@ -1,8 +1,8 @@
target Python {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor foo {
diff --git a/test/known-good/Python/src/ScheduleValue.txt b/test/known-good/Python/src/ScheduleValue.txt
index d741b6368..02b2eaecc 100644
--- a/test/known-good/Python/src/ScheduleValue.txt
+++ b/test/known-good/Python/src/ScheduleValue.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 3 sec
+ timeout: 3 sec
}
main reactor ScheduleValue {
diff --git a/test/known-good/Python/src/SelfLoop.txt b/test/known-good/Python/src/SelfLoop.txt
index 24387db66..7b6ce59e0 100644
--- a/test/known-good/Python/src/SelfLoop.txt
+++ b/test/known-good/Python/src/SelfLoop.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Self {
diff --git a/test/known-good/Python/src/SendingInside.txt b/test/known-good/Python/src/SendingInside.txt
index ca73acc7d..08adbbcf5 100644
--- a/test/known-good/Python/src/SendingInside.txt
+++ b/test/known-good/Python/src/SendingInside.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor Printer {
diff --git a/test/known-good/Python/src/SlowingClock.txt b/test/known-good/Python/src/SlowingClock.txt
index feae11d86..b4767a04c 100644
--- a/test/known-good/Python/src/SlowingClock.txt
+++ b/test/known-good/Python/src/SlowingClock.txt
@@ -4,8 +4,8 @@
target Python {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
main reactor SlowingClock {
diff --git a/test/known-good/Python/src/SlowingClockPhysical.txt b/test/known-good/Python/src/SlowingClockPhysical.txt
index 9fa9844fd..598a46a89 100644
--- a/test/known-good/Python/src/SlowingClockPhysical.txt
+++ b/test/known-good/Python/src/SlowingClockPhysical.txt
@@ -9,7 +9,7 @@
target Python {
- timeout: 1500 msec
+ timeout: 1500 msec
}
main reactor SlowingClockPhysical {
diff --git a/test/known-good/Python/src/Stride.txt b/test/known-good/Python/src/Stride.txt
index 98c2d3b07..764e04be4 100644
--- a/test/known-good/Python/src/Stride.txt
+++ b/test/known-good/Python/src/Stride.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Count(stride(1)) {
diff --git a/test/known-good/Python/src/StructAsType.txt b/test/known-good/Python/src/StructAsType.txt
index 596d9396f..aabfdc219 100644
--- a/test/known-good/Python/src/StructAsType.txt
+++ b/test/known-good/Python/src/StructAsType.txt
@@ -1,5 +1,5 @@
target Python {
- files: include/hello.py
+ files: include/hello.py
}
preamble {= import hello =}
diff --git a/test/known-good/Python/src/StructAsTypeDirect.txt b/test/known-good/Python/src/StructAsTypeDirect.txt
index 7ab750431..620036148 100644
--- a/test/known-good/Python/src/StructAsTypeDirect.txt
+++ b/test/known-good/Python/src/StructAsTypeDirect.txt
@@ -1,5 +1,5 @@
target Python {
- files: include/hello.py
+ files: include/hello.py
}
preamble {= import hello =}
diff --git a/test/known-good/Python/src/StructParallel.txt b/test/known-good/Python/src/StructParallel.txt
index e491e5bc8..328ca25fc 100644
--- a/test/known-good/Python/src/StructParallel.txt
+++ b/test/known-good/Python/src/StructParallel.txt
@@ -1,7 +1,7 @@
target Python {
- files: ["include/hello.py"]
+ files: ["include/hello.py"]
}
import Source from "StructScale.lf"
diff --git a/test/known-good/Python/src/StructPrint.txt b/test/known-good/Python/src/StructPrint.txt
index 40f55f192..8355e2b82 100644
--- a/test/known-good/Python/src/StructPrint.txt
+++ b/test/known-good/Python/src/StructPrint.txt
@@ -1,7 +1,7 @@
target Python {
- files: ["include/hello.py"]
+ files: ["include/hello.py"]
}
preamble {= import hello =}
diff --git a/test/known-good/Python/src/StructScale.txt b/test/known-good/Python/src/StructScale.txt
index abad5606c..1c8f61eb1 100644
--- a/test/known-good/Python/src/StructScale.txt
+++ b/test/known-good/Python/src/StructScale.txt
@@ -1,7 +1,7 @@
target Python {
- files: ["include/hello.py"]
+ files: ["include/hello.py"]
}
preamble {= import hello =}
diff --git a/test/known-good/Python/src/TimeLimit.txt b/test/known-good/Python/src/TimeLimit.txt
index fb2e8fcaf..87d6495e4 100644
--- a/test/known-good/Python/src/TimeLimit.txt
+++ b/test/known-good/Python/src/TimeLimit.txt
@@ -2,7 +2,7 @@
target Python {
- fast: true
+ fast: true
}
reactor Clock(offset(0), period(1 sec)) {
diff --git a/test/known-good/Python/src/Timers.txt b/test/known-good/Python/src/Timers.txt
index b7eceb2b9..9b3a46ba1 100644
--- a/test/known-good/Python/src/Timers.txt
+++ b/test/known-good/Python/src/Timers.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
main reactor {
diff --git a/test/known-good/Python/src/TriggerDownstreamOnlyIfPresent.txt b/test/known-good/Python/src/TriggerDownstreamOnlyIfPresent.txt
index 040624a25..9e04df74a 100644
--- a/test/known-good/Python/src/TriggerDownstreamOnlyIfPresent.txt
+++ b/test/known-good/Python/src/TriggerDownstreamOnlyIfPresent.txt
@@ -3,8 +3,8 @@
target Python {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Source {
@@ -39,8 +39,8 @@
}
main reactor TriggerDownstreamOnlyIfPresent {
- s = new[2] Source()
- d = new[2] Destination()
+ s = new[2] Source()
+ d = new[2] Destination()
s.a -> d.a
s.b -> d.b
}
diff --git a/test/known-good/Python/src/TriggerDownstreamOnlyIfPresent2.txt b/test/known-good/Python/src/TriggerDownstreamOnlyIfPresent2.txt
index 67fae52db..ad0c6bc06 100644
--- a/test/known-good/Python/src/TriggerDownstreamOnlyIfPresent2.txt
+++ b/test/known-good/Python/src/TriggerDownstreamOnlyIfPresent2.txt
@@ -3,8 +3,8 @@
target Python {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Source {
@@ -35,7 +35,7 @@
main reactor TriggerDownstreamOnlyIfPresent2 {
s = new Source()
- d = new[2] Destination()
+ d = new[2] Destination()
s.out -> d._in
}
diff --git a/test/known-good/Python/src/UnconnectedInput.txt b/test/known-good/Python/src/UnconnectedInput.txt
index a44f6abdb..73f7be179 100644
--- a/test/known-good/Python/src/UnconnectedInput.txt
+++ b/test/known-good/Python/src/UnconnectedInput.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/concurrent/AsyncCallback.txt b/test/known-good/Python/src/concurrent/AsyncCallback.txt
index 8678948da..f7856e207 100644
--- a/test/known-good/Python/src/concurrent/AsyncCallback.txt
+++ b/test/known-good/Python/src/concurrent/AsyncCallback.txt
@@ -4,7 +4,7 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
main reactor AsyncCallback {
diff --git a/test/known-good/Python/src/concurrent/AsyncCallbackNoTimer.txt b/test/known-good/Python/src/concurrent/AsyncCallbackNoTimer.txt
index 9887e5d8a..0fbf4c639 100644
--- a/test/known-good/Python/src/concurrent/AsyncCallbackNoTimer.txt
+++ b/test/known-good/Python/src/concurrent/AsyncCallbackNoTimer.txt
@@ -8,7 +8,7 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
main reactor {
diff --git a/test/known-good/Python/src/docker/FilesPropertyContainerized.txt b/test/known-good/Python/src/docker/FilesPropertyContainerized.txt
index 096bc4448..c09736ccc 100644
--- a/test/known-good/Python/src/docker/FilesPropertyContainerized.txt
+++ b/test/known-good/Python/src/docker/FilesPropertyContainerized.txt
@@ -1,6 +1,6 @@
target Python {
- files: "../include/hello.py",
- docker: true
+ files: "../include/hello.py",
+ docker: true
}
preamble {=
diff --git a/test/known-good/Python/src/docker/HelloWorldContainerized.txt b/test/known-good/Python/src/docker/HelloWorldContainerized.txt
index 03d916804..21f60223e 100644
--- a/test/known-good/Python/src/docker/HelloWorldContainerized.txt
+++ b/test/known-good/Python/src/docker/HelloWorldContainerized.txt
@@ -1,5 +1,5 @@
target Python {
- docker: true
+ docker: true
}
import HelloWorld2 from "../HelloWorld.lf"
diff --git a/test/known-good/Python/src/docker/PingPongContainerized.txt b/test/known-good/Python/src/docker/PingPongContainerized.txt
index aa3f76290..7677bff5c 100644
--- a/test/known-good/Python/src/docker/PingPongContainerized.txt
+++ b/test/known-good/Python/src/docker/PingPongContainerized.txt
@@ -21,8 +21,8 @@
target Python {
- fast: true,
- docker: true
+ fast: true,
+ docker: true
}
import Ping from "../PingPong.lf"
diff --git a/test/known-good/Python/src/docker/federated/DistributedCountContainerized.txt b/test/known-good/Python/src/docker/federated/DistributedCountContainerized.txt
index 372f0b308..b0c0f43cf 100644
--- a/test/known-good/Python/src/docker/federated/DistributedCountContainerized.txt
+++ b/test/known-good/Python/src/docker/federated/DistributedCountContainerized.txt
@@ -6,10 +6,10 @@
target Python {
- timeout: 5 sec,
- logging: DEBUG,
- coordination: centralized,
- docker: true
+ timeout: 5 sec,
+ logging: DEBUG,
+ coordination: centralized,
+ docker: true
}
import Count from "../../lib/Count.lf"
diff --git a/test/known-good/Python/src/docker/federated/DistributedDoublePortContainerized.txt b/test/known-good/Python/src/docker/federated/DistributedDoublePortContainerized.txt
index 4e9922672..377461827 100644
--- a/test/known-good/Python/src/docker/federated/DistributedDoublePortContainerized.txt
+++ b/test/known-good/Python/src/docker/federated/DistributedDoublePortContainerized.txt
@@ -6,10 +6,10 @@
target Python {
- timeout: 900 msec,
- logging: DEBUG,
- coordination: centralized,
- docker: true
+ timeout: 900 msec,
+ logging: DEBUG,
+ coordination: centralized,
+ docker: true
}
import Count from "../../lib/Count.lf"
diff --git a/test/known-good/Python/src/docker/federated/DistributedMultiportContainerized.txt b/test/known-good/Python/src/docker/federated/DistributedMultiportContainerized.txt
index 6128968bd..95dffcfd3 100644
--- a/test/known-good/Python/src/docker/federated/DistributedMultiportContainerized.txt
+++ b/test/known-good/Python/src/docker/federated/DistributedMultiportContainerized.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 1 sec,
- coordination: centralized,
- docker: true
+ timeout: 1 sec,
+ coordination: centralized,
+ docker: true
}
import Source, Destination from "../../federated/DistributedMultiport.lf"
diff --git a/test/known-good/Python/src/docker/federated/DistributedSendClassContainerized.txt b/test/known-good/Python/src/docker/federated/DistributedSendClassContainerized.txt
index 4023f9a78..92f78bbaf 100644
--- a/test/known-good/Python/src/docker/federated/DistributedSendClassContainerized.txt
+++ b/test/known-good/Python/src/docker/federated/DistributedSendClassContainerized.txt
@@ -1,6 +1,6 @@
target Python {
- coordination: centralized,
- docker: true
+ coordination: centralized,
+ docker: true
}
import A, B from "../../federated/DistributedSendClass.lf"
diff --git a/test/known-good/Python/src/docker/federated/DistributedStopDecentralizedContainerized.txt b/test/known-good/Python/src/docker/federated/DistributedStopDecentralizedContainerized.txt
index 2736d662f..fdf85124d 100644
--- a/test/known-good/Python/src/docker/federated/DistributedStopDecentralizedContainerized.txt
+++ b/test/known-good/Python/src/docker/federated/DistributedStopDecentralizedContainerized.txt
@@ -5,8 +5,8 @@
target Python {
- coordination: decentralized,
- docker: true
+ coordination: decentralized,
+ docker: true
}
import Sender, Receiver from "../../federated/DistributedStop.lf"
diff --git a/test/known-good/Python/src/federated/BroadcastFeedback.txt b/test/known-good/Python/src/federated/BroadcastFeedback.txt
index 43c727b9c..98d03bf22 100644
--- a/test/known-good/Python/src/federated/BroadcastFeedback.txt
+++ b/test/known-good/Python/src/federated/BroadcastFeedback.txt
@@ -2,7 +2,7 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor SenderAndReceiver {
@@ -26,7 +26,7 @@
}
federated reactor {
- s = new[2] SenderAndReceiver()
+ s = new[2] SenderAndReceiver()
(s.out)+ -> s.inp
}
diff --git a/test/known-good/Python/src/federated/BroadcastFeedbackWithHierarchy.txt b/test/known-good/Python/src/federated/BroadcastFeedbackWithHierarchy.txt
index e190391ff..80ee4d639 100644
--- a/test/known-good/Python/src/federated/BroadcastFeedbackWithHierarchy.txt
+++ b/test/known-good/Python/src/federated/BroadcastFeedbackWithHierarchy.txt
@@ -2,7 +2,7 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor SenderAndReceiver {
@@ -35,7 +35,7 @@
}
federated reactor {
- s = new[2] SenderAndReceiver()
+ s = new[2] SenderAndReceiver()
(s.out)+ -> s.in_
}
diff --git a/test/known-good/Python/src/federated/ChainWithDelay.txt b/test/known-good/Python/src/federated/ChainWithDelay.txt
index f6c8c55c7..eee5d7a73 100644
--- a/test/known-good/Python/src/federated/ChainWithDelay.txt
+++ b/test/known-good/Python/src/federated/ChainWithDelay.txt
@@ -4,7 +4,7 @@
target Python {
- timeout: 3 msec
+ timeout: 3 msec
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/DecentralizedP2PComm.txt b/test/known-good/Python/src/federated/DecentralizedP2PComm.txt
index 81e8ac2f7..6ff51ebc9 100644
--- a/test/known-good/Python/src/federated/DecentralizedP2PComm.txt
+++ b/test/known-good/Python/src/federated/DecentralizedP2PComm.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 1 sec,
- tracing: true,
- clock-sync: off,
- coordination: decentralized
+ timeout: 1 sec,
+ tracing: true,
+ clock-sync: off,
+ coordination: decentralized
}
reactor Platform(start(0), expected_start(0), stp_offset_param(0)) {
diff --git a/test/known-good/Python/src/federated/DecentralizedP2PUnbalancedTimeout.txt b/test/known-good/Python/src/federated/DecentralizedP2PUnbalancedTimeout.txt
index fc8088be5..e04a5c099 100644
--- a/test/known-good/Python/src/federated/DecentralizedP2PUnbalancedTimeout.txt
+++ b/test/known-good/Python/src/federated/DecentralizedP2PUnbalancedTimeout.txt
@@ -7,8 +7,8 @@
target Python {
- timeout: 1 msec,
- coordination: decentralized
+ timeout: 1 msec,
+ coordination: decentralized
}
diff --git a/test/known-good/Python/src/federated/DecentralizedP2PUnbalancedTimeoutPhysical.txt b/test/known-good/Python/src/federated/DecentralizedP2PUnbalancedTimeoutPhysical.txt
index 85cc5c7c3..eec72b44e 100644
--- a/test/known-good/Python/src/federated/DecentralizedP2PUnbalancedTimeoutPhysical.txt
+++ b/test/known-good/Python/src/federated/DecentralizedP2PUnbalancedTimeoutPhysical.txt
@@ -8,8 +8,8 @@
target Python {
- timeout: 1 msec,
- coordination: decentralized
+ timeout: 1 msec,
+ coordination: decentralized
}
reactor Clock(offset(0), period(1 sec)) {
diff --git a/test/known-good/Python/src/federated/DistributedBank.txt b/test/known-good/Python/src/federated/DistributedBank.txt
index 0b63b0b8c..e86513eaf 100644
--- a/test/known-good/Python/src/federated/DistributedBank.txt
+++ b/test/known-good/Python/src/federated/DistributedBank.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 1 sec,
- coordination: centralized
+ timeout: 1 sec,
+ coordination: centralized
}
reactor Node {
@@ -22,6 +22,6 @@
}
federated reactor DistributedBank {
- n = new[2] Node()
+ n = new[2] Node()
}
diff --git a/test/known-good/Python/src/federated/DistributedBankToMultiport.txt b/test/known-good/Python/src/federated/DistributedBankToMultiport.txt
index 9c75ee5a3..c1481571a 100644
--- a/test/known-good/Python/src/federated/DistributedBankToMultiport.txt
+++ b/test/known-good/Python/src/federated/DistributedBankToMultiport.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 3 sec
+ timeout: 3 sec
}
import Count from "../lib/Count.lf"
@@ -27,7 +27,7 @@
}
federated reactor {
- s = new[2] Count()
+ s = new[2] Count()
d = new Destination()
s.out -> d.in_
}
diff --git a/test/known-good/Python/src/federated/DistributedCount.txt b/test/known-good/Python/src/federated/DistributedCount.txt
index 124398eac..f33b252d7 100644
--- a/test/known-good/Python/src/federated/DistributedCount.txt
+++ b/test/known-good/Python/src/federated/DistributedCount.txt
@@ -6,8 +6,8 @@
target Python {
- timeout: 5 sec,
- coordination: centralized
+ timeout: 5 sec,
+ coordination: centralized
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/DistributedCountDecentralized.txt b/test/known-good/Python/src/federated/DistributedCountDecentralized.txt
index db7541187..361636254 100644
--- a/test/known-good/Python/src/federated/DistributedCountDecentralized.txt
+++ b/test/known-good/Python/src/federated/DistributedCountDecentralized.txt
@@ -7,8 +7,8 @@
target Python {
- timeout: 5 sec,
- coordination: decentralized
+ timeout: 5 sec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/DistributedCountDecentralizedLate.txt b/test/known-good/Python/src/federated/DistributedCountDecentralizedLate.txt
index 7d972839f..7ce7790c5 100644
--- a/test/known-good/Python/src/federated/DistributedCountDecentralizedLate.txt
+++ b/test/known-good/Python/src/federated/DistributedCountDecentralizedLate.txt
@@ -7,8 +7,8 @@
target Python {
- timeout: 4900 msec,
- coordination: decentralized
+ timeout: 4900 msec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/DistributedCountDecentralizedLateDownstream.txt b/test/known-good/Python/src/federated/DistributedCountDecentralizedLateDownstream.txt
index e3c55126f..abdc559c1 100644
--- a/test/known-good/Python/src/federated/DistributedCountDecentralizedLateDownstream.txt
+++ b/test/known-good/Python/src/federated/DistributedCountDecentralizedLateDownstream.txt
@@ -19,8 +19,8 @@
target Python {
- timeout: 1900 msec,
- coordination: decentralized
+ timeout: 1900 msec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/DistributedCountDecentralizedLateHierarchy.txt b/test/known-good/Python/src/federated/DistributedCountDecentralizedLateHierarchy.txt
index e9926485b..fe92b465b 100644
--- a/test/known-good/Python/src/federated/DistributedCountDecentralizedLateHierarchy.txt
+++ b/test/known-good/Python/src/federated/DistributedCountDecentralizedLateHierarchy.txt
@@ -9,8 +9,8 @@
target Python {
- timeout: 4900 msec,
- coordination: decentralized
+ timeout: 4900 msec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/DistributedCountPhysical.txt b/test/known-good/Python/src/federated/DistributedCountPhysical.txt
index 5cefd3e9c..bfb35d558 100644
--- a/test/known-good/Python/src/federated/DistributedCountPhysical.txt
+++ b/test/known-good/Python/src/federated/DistributedCountPhysical.txt
@@ -8,7 +8,7 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Count {
diff --git a/test/known-good/Python/src/federated/DistributedCountPhysicalAfterDelay.txt b/test/known-good/Python/src/federated/DistributedCountPhysicalAfterDelay.txt
index d429ea5be..d6af7d086 100644
--- a/test/known-good/Python/src/federated/DistributedCountPhysicalAfterDelay.txt
+++ b/test/known-good/Python/src/federated/DistributedCountPhysicalAfterDelay.txt
@@ -8,7 +8,7 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Count {
diff --git a/test/known-good/Python/src/federated/DistributedCountPhysicalDecentralized.txt b/test/known-good/Python/src/federated/DistributedCountPhysicalDecentralized.txt
index f42c737ec..a4d0626de 100644
--- a/test/known-good/Python/src/federated/DistributedCountPhysicalDecentralized.txt
+++ b/test/known-good/Python/src/federated/DistributedCountPhysicalDecentralized.txt
@@ -8,8 +8,8 @@
target Python {
- timeout: 1 sec,
- coordination: decentralized
+ timeout: 1 sec,
+ coordination: decentralized
}
reactor Count {
diff --git a/test/known-good/Python/src/federated/DistributedDoublePort.txt b/test/known-good/Python/src/federated/DistributedDoublePort.txt
index 5c5aea03a..64805e8ad 100644
--- a/test/known-good/Python/src/federated/DistributedDoublePort.txt
+++ b/test/known-good/Python/src/federated/DistributedDoublePort.txt
@@ -6,9 +6,9 @@
target Python {
- timeout: 900 msec,
- logging: DEBUG,
- coordination: centralized
+ timeout: 900 msec,
+ logging: DEBUG,
+ coordination: centralized
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/DistributedLoopedAction.txt b/test/known-good/Python/src/federated/DistributedLoopedAction.txt
index b534ead9b..000c92df8 100644
--- a/test/known-good/Python/src/federated/DistributedLoopedAction.txt
+++ b/test/known-good/Python/src/federated/DistributedLoopedAction.txt
@@ -5,7 +5,7 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
import Sender from "../lib/LoopedActionSender.lf"
diff --git a/test/known-good/Python/src/federated/DistributedLoopedPhysicalAction.txt b/test/known-good/Python/src/federated/DistributedLoopedPhysicalAction.txt
index f6a4e1afb..7ce5b048f 100644
--- a/test/known-good/Python/src/federated/DistributedLoopedPhysicalAction.txt
+++ b/test/known-good/Python/src/federated/DistributedLoopedPhysicalAction.txt
@@ -10,8 +10,8 @@
target Python {
- timeout: 1 sec,
- keepalive: true
+ timeout: 1 sec,
+ keepalive: true
}
reactor Sender(take_a_break_after(10), break_interval(550 msec)) {
diff --git a/test/known-good/Python/src/federated/DistributedLoopedPhysicalActionDecentralized.txt b/test/known-good/Python/src/federated/DistributedLoopedPhysicalActionDecentralized.txt
index 0715789b9..946322555 100644
--- a/test/known-good/Python/src/federated/DistributedLoopedPhysicalActionDecentralized.txt
+++ b/test/known-good/Python/src/federated/DistributedLoopedPhysicalActionDecentralized.txt
@@ -5,8 +5,8 @@
target Python {
- timeout: 1 sec,
- coordination: decentralized
+ timeout: 1 sec,
+ coordination: decentralized
}
import Sender, Receiver from "DistributedLoopedPhysicalAction.lf"
diff --git a/test/known-good/Python/src/federated/DistributedMultiport.txt b/test/known-good/Python/src/federated/DistributedMultiport.txt
index b29417fe0..27475505b 100644
--- a/test/known-good/Python/src/federated/DistributedMultiport.txt
+++ b/test/known-good/Python/src/federated/DistributedMultiport.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 1 sec,
- coordination: centralized
+ timeout: 1 sec,
+ coordination: centralized
}
reactor Source {
diff --git a/test/known-good/Python/src/federated/DistributedMultiportToBank.txt b/test/known-good/Python/src/federated/DistributedMultiportToBank.txt
index d29ce934f..fa15d88b5 100644
--- a/test/known-good/Python/src/federated/DistributedMultiportToBank.txt
+++ b/test/known-good/Python/src/federated/DistributedMultiportToBank.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Source {
@@ -37,7 +37,7 @@
federated reactor DistributedMultiportToBank {
s = new Source()
- d = new[2] Destination()
+ d = new[2] Destination()
s.out -> d.in_
}
diff --git a/test/known-good/Python/src/federated/DistributedMultiportToken.txt b/test/known-good/Python/src/federated/DistributedMultiportToken.txt
index 366509691..d06e59317 100644
--- a/test/known-good/Python/src/federated/DistributedMultiportToken.txt
+++ b/test/known-good/Python/src/federated/DistributedMultiportToken.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 1 sec,
- coordination: centralized
+ timeout: 1 sec,
+ coordination: centralized
}
reactor Source {
diff --git a/test/known-good/Python/src/federated/DistributedNoReact.txt b/test/known-good/Python/src/federated/DistributedNoReact.txt
index 37d47bea5..305e14dab 100644
--- a/test/known-good/Python/src/federated/DistributedNoReact.txt
+++ b/test/known-good/Python/src/federated/DistributedNoReact.txt
@@ -1,5 +1,5 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
preamble {=
diff --git a/test/known-good/Python/src/federated/DistributedStopDecentralized.txt b/test/known-good/Python/src/federated/DistributedStopDecentralized.txt
index d307d9343..766fce767 100644
--- a/test/known-good/Python/src/federated/DistributedStopDecentralized.txt
+++ b/test/known-good/Python/src/federated/DistributedStopDecentralized.txt
@@ -7,7 +7,7 @@
target Python {
- coordination: decentralized
+ coordination: decentralized
}
import Sender, Receiver from "DistributedStop.lf"
diff --git a/test/known-good/Python/src/federated/DistributedStructAsType.txt b/test/known-good/Python/src/federated/DistributedStructAsType.txt
index 404466791..12ff094e4 100644
--- a/test/known-good/Python/src/federated/DistributedStructAsType.txt
+++ b/test/known-good/Python/src/federated/DistributedStructAsType.txt
@@ -1,6 +1,6 @@
target Python {
- files: ../include/hello.py,
- timeout: 2 secs
+ files: ../include/hello.py,
+ timeout: 2 secs
}
import Source, Print from "../StructAsType.lf"
diff --git a/test/known-good/Python/src/federated/DistributedStructAsTypeDirect.txt b/test/known-good/Python/src/federated/DistributedStructAsTypeDirect.txt
index 1c1bece7a..8086766d0 100644
--- a/test/known-good/Python/src/federated/DistributedStructAsTypeDirect.txt
+++ b/test/known-good/Python/src/federated/DistributedStructAsTypeDirect.txt
@@ -1,6 +1,6 @@
target Python {
- files: ../include/hello.py,
- timeout: 2 secs
+ files: ../include/hello.py,
+ timeout: 2 secs
}
import Source, Print from "../StructAsTypeDirect.lf"
diff --git a/test/known-good/Python/src/federated/DistributedStructParallel.txt b/test/known-good/Python/src/federated/DistributedStructParallel.txt
index 9c2b8ee4f..659f9b1d7 100644
--- a/test/known-good/Python/src/federated/DistributedStructParallel.txt
+++ b/test/known-good/Python/src/federated/DistributedStructParallel.txt
@@ -1,8 +1,8 @@
target Python {
- files: ["../include/hello.py"],
- timeout: 2 secs
+ files: ["../include/hello.py"],
+ timeout: 2 secs
}
import Source from "../StructScale.lf"
diff --git a/test/known-good/Python/src/federated/DistributedStructPrint.txt b/test/known-good/Python/src/federated/DistributedStructPrint.txt
index a7999468e..7f0d5c5a6 100644
--- a/test/known-good/Python/src/federated/DistributedStructPrint.txt
+++ b/test/known-good/Python/src/federated/DistributedStructPrint.txt
@@ -1,8 +1,8 @@
target Python {
- files: ["../include/hello.py"],
- timeout: 2 sec
+ files: ["../include/hello.py"],
+ timeout: 2 sec
}
import Print, Check from "../StructPrint.lf"
diff --git a/test/known-good/Python/src/federated/DistributedStructScale.txt b/test/known-good/Python/src/federated/DistributedStructScale.txt
index 202c57e69..293e2ca0d 100644
--- a/test/known-good/Python/src/federated/DistributedStructScale.txt
+++ b/test/known-good/Python/src/federated/DistributedStructScale.txt
@@ -1,8 +1,8 @@
target Python {
- files: ["../include/hello.py"],
- timeout: 2 sec
+ files: ["../include/hello.py"],
+ timeout: 2 sec
}
import Source, TestInput, Print from "../StructScale.lf"
diff --git a/test/known-good/Python/src/federated/LoopDistributedCentralizedPrecedenceHierarchy.txt b/test/known-good/Python/src/federated/LoopDistributedCentralizedPrecedenceHierarchy.txt
index f6b6f2cb0..ddd50498f 100644
--- a/test/known-good/Python/src/federated/LoopDistributedCentralizedPrecedenceHierarchy.txt
+++ b/test/known-good/Python/src/federated/LoopDistributedCentralizedPrecedenceHierarchy.txt
@@ -7,12 +7,12 @@
target Python {
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 5 sec
-}
+ timeout: 5 sec
+}
reactor Contained(incr(1)) {
timer t(0, 1 sec)
diff --git a/test/known-good/Python/src/federated/ParallelDestinations.txt b/test/known-good/Python/src/federated/ParallelDestinations.txt
index 28c3bce3d..a690bb5b8 100644
--- a/test/known-good/Python/src/federated/ParallelDestinations.txt
+++ b/test/known-good/Python/src/federated/ParallelDestinations.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/ParallelSources.txt b/test/known-good/Python/src/federated/ParallelSources.txt
index ca5df6663..6d4fc283d 100644
--- a/test/known-good/Python/src/federated/ParallelSources.txt
+++ b/test/known-good/Python/src/federated/ParallelSources.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/ParallelSourcesMultiport.txt b/test/known-good/Python/src/federated/ParallelSourcesMultiport.txt
index bc202d4be..e08457b1f 100644
--- a/test/known-good/Python/src/federated/ParallelSourcesMultiport.txt
+++ b/test/known-good/Python/src/federated/ParallelSourcesMultiport.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/PhysicalSTP.txt b/test/known-good/Python/src/federated/PhysicalSTP.txt
index 65afe7fac..5a62169ec 100644
--- a/test/known-good/Python/src/federated/PhysicalSTP.txt
+++ b/test/known-good/Python/src/federated/PhysicalSTP.txt
@@ -3,8 +3,8 @@
target Python {
- timeout: 1900 msec,
- coordination: decentralized
+ timeout: 1900 msec,
+ coordination: decentralized
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/Python/src/federated/StopAtShutdown.txt b/test/known-good/Python/src/federated/StopAtShutdown.txt
index 0e0c96a03..a8c793a68 100644
--- a/test/known-good/Python/src/federated/StopAtShutdown.txt
+++ b/test/known-good/Python/src/federated/StopAtShutdown.txt
@@ -6,7 +6,7 @@
target Python {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor A {
diff --git a/test/known-good/Python/src/federated/failing/ClockSync.txt b/test/known-good/Python/src/federated/failing/ClockSync.txt
index 070704d52..802d95c5b 100644
--- a/test/known-good/Python/src/federated/failing/ClockSync.txt
+++ b/test/known-good/Python/src/federated/failing/ClockSync.txt
@@ -8,25 +8,25 @@
target Python {
- coordination: decentralized,
- timeout: 10 sec,
- clock-sync: on,
- clock-sync-options: {
+ coordination: decentralized,
+ timeout: 10 sec,
+ clock-sync: on,
+ clock-sync-options: {
- local-federates-on: true,
+ local-federates-on: true,
- collect-stats: true,
+ collect-stats: true,
- test-offset: 200 msec,
+ test-offset: 200 msec,
- period: 5 msec,
+ period: 5 msec,
- trials: 10,
+ trials: 10,
- attenuation: 10
+ attenuation: 10
}
}
diff --git a/test/known-good/Python/src/federated/failing/DistributedLoopedActionDecentralized.txt b/test/known-good/Python/src/federated/failing/DistributedLoopedActionDecentralized.txt
index ad46dfcc2..772574bb4 100644
--- a/test/known-good/Python/src/federated/failing/DistributedLoopedActionDecentralized.txt
+++ b/test/known-good/Python/src/federated/failing/DistributedLoopedActionDecentralized.txt
@@ -15,8 +15,8 @@
target Python {
- timeout: 1 sec,
- coordination: decentralized
+ timeout: 1 sec,
+ coordination: decentralized
}
import Sender from "../lib/LoopedActionSender.lf"
diff --git a/test/known-good/Python/src/federated/failing/DistributedNetworkOrder.txt b/test/known-good/Python/src/federated/failing/DistributedNetworkOrder.txt
index 7514624ed..b14be5d48 100644
--- a/test/known-good/Python/src/federated/failing/DistributedNetworkOrder.txt
+++ b/test/known-good/Python/src/federated/failing/DistributedNetworkOrder.txt
@@ -10,7 +10,7 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Sender {
diff --git a/test/known-good/Python/src/federated/failing/LoopDistributedCentralized.txt b/test/known-good/Python/src/federated/failing/LoopDistributedCentralized.txt
index dd6884e2a..b1609ec92 100644
--- a/test/known-good/Python/src/federated/failing/LoopDistributedCentralized.txt
+++ b/test/known-good/Python/src/federated/failing/LoopDistributedCentralized.txt
@@ -7,12 +7,12 @@
target Python {
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 5 sec
-}
+ timeout: 5 sec
+}
preamble {=
#include // Defines sleep()
diff --git a/test/known-good/Python/src/federated/failing/LoopDistributedCentralizedPrecedence.txt b/test/known-good/Python/src/federated/failing/LoopDistributedCentralizedPrecedence.txt
index 2708a63d9..083a92c6f 100644
--- a/test/known-good/Python/src/federated/failing/LoopDistributedCentralizedPrecedence.txt
+++ b/test/known-good/Python/src/federated/failing/LoopDistributedCentralizedPrecedence.txt
@@ -8,13 +8,13 @@
target Python {
- flags: "-Wall",
- coordination: centralized,
- coordination-options: {
- advance-message-interval: 100 msec
+ flags: "-Wall",
+ coordination: centralized,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- timeout: 5 sec
-}
+ timeout: 5 sec
+}
reactor Looper(incr(1), delay(0 msec)) {
input in_
diff --git a/test/known-good/Python/src/federated/failing/LoopDistributedDecentralized.txt b/test/known-good/Python/src/federated/failing/LoopDistributedDecentralized.txt
index f08744706..ab2552be3 100644
--- a/test/known-good/Python/src/federated/failing/LoopDistributedDecentralized.txt
+++ b/test/known-good/Python/src/federated/failing/LoopDistributedDecentralized.txt
@@ -7,8 +7,8 @@
target Python {
- coordination: decentralized,
- timeout: 5 sec
+ coordination: decentralized,
+ timeout: 5 sec
}
preamble {=
diff --git a/test/known-good/Python/src/federated/failing/LoopDistributedDouble.txt b/test/known-good/Python/src/federated/failing/LoopDistributedDouble.txt
index 5ea1c63d3..18a756249 100644
--- a/test/known-good/Python/src/federated/failing/LoopDistributedDouble.txt
+++ b/test/known-good/Python/src/federated/failing/LoopDistributedDouble.txt
@@ -6,8 +6,8 @@
target Python {
- coordination: centralized,
- timeout: 5 sec
+ coordination: centralized,
+ timeout: 5 sec
}
preamble {=
diff --git a/test/known-good/Python/src/federated/failing/TopLevelArtifacts.txt b/test/known-good/Python/src/federated/failing/TopLevelArtifacts.txt
index 94eb687f4..289b4adf0 100644
--- a/test/known-good/Python/src/federated/failing/TopLevelArtifacts.txt
+++ b/test/known-good/Python/src/federated/failing/TopLevelArtifacts.txt
@@ -10,8 +10,8 @@
target Python {
- timeout: 1 msec
-};
+ timeout: 1 msec
+};
import Count from "../lib/Count.lf";
import TestCount from "../lib/TestCount.lf";
diff --git a/test/known-good/Python/src/modal_models/BanksCount3ModesComplex.txt b/test/known-good/Python/src/modal_models/BanksCount3ModesComplex.txt
index 4d3936922..8b9ed1405 100644
--- a/test/known-good/Python/src/modal_models/BanksCount3ModesComplex.txt
+++ b/test/known-good/Python/src/modal_models/BanksCount3ModesComplex.txt
@@ -3,8 +3,8 @@
target Python {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
import TraceTesting from "util/TraceTesting.lf"
@@ -17,12 +17,12 @@
output[2] mode2
output[2] never
- outer_counters = new[2] CounterCycle()
+ outer_counters = new[2] CounterCycle()
(next)+ -> outer_counters.next
outer_counters.count -> always
initial mode One {
- mode1_counters = new[2] CounterCycle()
+ mode1_counters = new[2] CounterCycle()
(next)+ -> mode1_counters.next
mode1_counters.count -> mode1
@@ -32,7 +32,7 @@
}
mode Two {
- mode2_counters = new[2] CounterCycle()
+ mode2_counters = new[2] CounterCycle()
(next)+ -> mode2_counters.next
mode2_counters.count -> mode2
@@ -42,7 +42,7 @@
}
mode Three {
- mode3_counters = new[2] CounterCycle()
+ mode3_counters = new[2] CounterCycle()
(next)+ -> mode3_counters.next
mode3_counters.count -> never
@@ -51,7 +51,7 @@
main reactor {
timer stepper(0, 250 msec)
- counters = new[2] MetaCounter()
+ counters = new[2] MetaCounter()
test = new TraceTesting(events_size = 16, trace = (
0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
250000000,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
diff --git a/test/known-good/Python/src/modal_models/BanksCount3ModesSimple.txt b/test/known-good/Python/src/modal_models/BanksCount3ModesSimple.txt
index 919ccd370..3bf55cff8 100644
--- a/test/known-good/Python/src/modal_models/BanksCount3ModesSimple.txt
+++ b/test/known-good/Python/src/modal_models/BanksCount3ModesSimple.txt
@@ -1,7 +1,7 @@
target Python {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
import TraceTesting from "util/TraceTesting.lf"
@@ -9,7 +9,7 @@
main reactor {
timer stepper(0, 250 msec)
- counters = new[3] CounterCycle()
+ counters = new[3] CounterCycle()
test = new TraceTesting(events_size = 3, trace = (
0,1,1,1,1,1,1,
250000000,1,2,1,2,1,2,
diff --git a/test/known-good/Python/src/modal_models/BanksModalStateReset.txt b/test/known-good/Python/src/modal_models/BanksModalStateReset.txt
index 2d44fb9f4..f2b941a63 100644
--- a/test/known-good/Python/src/modal_models/BanksModalStateReset.txt
+++ b/test/known-good/Python/src/modal_models/BanksModalStateReset.txt
@@ -3,8 +3,8 @@
target Python {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
@@ -14,8 +14,8 @@
main reactor {
timer stepper(1 sec, 1 sec)
- reset1 = new[2] ResetReaction()
- reset2 = new[2] AutoReset()
+ reset1 = new[2] ResetReaction()
+ reset2 = new[2] AutoReset()
test = new TraceTesting(events_size = 16, trace = (
0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,
250000000,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0, 0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,
diff --git a/test/known-good/Python/src/modal_models/ConvertCaseTest.txt b/test/known-good/Python/src/modal_models/ConvertCaseTest.txt
index 52221f71b..29ce86751 100644
--- a/test/known-good/Python/src/modal_models/ConvertCaseTest.txt
+++ b/test/known-good/Python/src/modal_models/ConvertCaseTest.txt
@@ -1,7 +1,7 @@
target Python {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/Count3Modes.txt b/test/known-good/Python/src/modal_models/Count3Modes.txt
index 69aa06fbd..2cb10bf53 100644
--- a/test/known-good/Python/src/modal_models/Count3Modes.txt
+++ b/test/known-good/Python/src/modal_models/Count3Modes.txt
@@ -1,7 +1,7 @@
target Python {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
reactor CounterCycle {
diff --git a/test/known-good/Python/src/modal_models/ModalActions.txt b/test/known-good/Python/src/modal_models/ModalActions.txt
index dce9e2e8a..ddd6a3453 100644
--- a/test/known-good/Python/src/modal_models/ModalActions.txt
+++ b/test/known-good/Python/src/modal_models/ModalActions.txt
@@ -3,8 +3,8 @@
target Python {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/ModalAfter.txt b/test/known-good/Python/src/modal_models/ModalAfter.txt
index 18dbea992..ed2c49509 100644
--- a/test/known-good/Python/src/modal_models/ModalAfter.txt
+++ b/test/known-good/Python/src/modal_models/ModalAfter.txt
@@ -3,8 +3,8 @@
target Python {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/ModalCycleBreaker.txt b/test/known-good/Python/src/modal_models/ModalCycleBreaker.txt
index 0bf77cdc5..28cabfed0 100644
--- a/test/known-good/Python/src/modal_models/ModalCycleBreaker.txt
+++ b/test/known-good/Python/src/modal_models/ModalCycleBreaker.txt
@@ -5,8 +5,8 @@
target Python {
- fast: false,
- timeout: 1 sec
+ fast: false,
+ timeout: 1 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/ModalNestedReactions.txt b/test/known-good/Python/src/modal_models/ModalNestedReactions.txt
index 0b15a22d7..75a0f63d9 100644
--- a/test/known-good/Python/src/modal_models/ModalNestedReactions.txt
+++ b/test/known-good/Python/src/modal_models/ModalNestedReactions.txt
@@ -3,8 +3,8 @@
target Python {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
reactor CounterCycle {
diff --git a/test/known-good/Python/src/modal_models/ModalStartupShutdown.txt b/test/known-good/Python/src/modal_models/ModalStartupShutdown.txt
index 897a42b3e..7de90024a 100644
--- a/test/known-good/Python/src/modal_models/ModalStartupShutdown.txt
+++ b/test/known-good/Python/src/modal_models/ModalStartupShutdown.txt
@@ -1,7 +1,7 @@
target Python {
- fast: false,
- timeout: 3000 msec
+ fast: false,
+ timeout: 3000 msec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/ModalStateReset.txt b/test/known-good/Python/src/modal_models/ModalStateReset.txt
index 997264d3b..2c85fef07 100644
--- a/test/known-good/Python/src/modal_models/ModalStateReset.txt
+++ b/test/known-good/Python/src/modal_models/ModalStateReset.txt
@@ -1,7 +1,7 @@
target Python {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/ModalStateResetAuto.txt b/test/known-good/Python/src/modal_models/ModalStateResetAuto.txt
index dbd5fae09..b28606040 100644
--- a/test/known-good/Python/src/modal_models/ModalStateResetAuto.txt
+++ b/test/known-good/Python/src/modal_models/ModalStateResetAuto.txt
@@ -1,7 +1,7 @@
target Python {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/ModalTimers.txt b/test/known-good/Python/src/modal_models/ModalTimers.txt
index 5075dc0c5..71cb94dd9 100644
--- a/test/known-good/Python/src/modal_models/ModalTimers.txt
+++ b/test/known-good/Python/src/modal_models/ModalTimers.txt
@@ -1,7 +1,7 @@
target Python {
- fast: false,
- timeout: 4 sec
+ fast: false,
+ timeout: 4 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/MultipleOutputFeeder_2Connections.txt b/test/known-good/Python/src/modal_models/MultipleOutputFeeder_2Connections.txt
index 2b1cb305c..6d5542001 100644
--- a/test/known-good/Python/src/modal_models/MultipleOutputFeeder_2Connections.txt
+++ b/test/known-good/Python/src/modal_models/MultipleOutputFeeder_2Connections.txt
@@ -5,8 +5,8 @@
target Python {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/modal_models/MultipleOutputFeeder_ReactionConnections.txt b/test/known-good/Python/src/modal_models/MultipleOutputFeeder_ReactionConnections.txt
index 7415a81a9..43d5e0c56 100644
--- a/test/known-good/Python/src/modal_models/MultipleOutputFeeder_ReactionConnections.txt
+++ b/test/known-good/Python/src/modal_models/MultipleOutputFeeder_ReactionConnections.txt
@@ -5,8 +5,8 @@
target Python {
- fast: false,
- timeout: 2 sec
+ fast: false,
+ timeout: 2 sec
}
import TraceTesting from "util/TraceTesting.lf"
diff --git a/test/known-good/Python/src/multiport/BankIndexInitializer.txt b/test/known-good/Python/src/multiport/BankIndexInitializer.txt
index a113beadc..11bfdb861 100644
--- a/test/known-good/Python/src/multiport/BankIndexInitializer.txt
+++ b/test/known-good/Python/src/multiport/BankIndexInitializer.txt
@@ -31,7 +31,7 @@
}
main reactor(width(4)) {
- source = new[width] Source(value = {= table[bank_index] =})
+ source = new[width] Source(value = {= table[bank_index] =})
sink = new Sink(width = width)
source.out -> sink._in
}
diff --git a/test/known-good/Python/src/multiport/BankReactionsInContainer.txt b/test/known-good/Python/src/multiport/BankReactionsInContainer.txt
index ebba7f931..1ed696e49 100644
--- a/test/known-good/Python/src/multiport/BankReactionsInContainer.txt
+++ b/test/known-good/Python/src/multiport/BankReactionsInContainer.txt
@@ -2,7 +2,7 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor R(bank_index(0)) {
@@ -36,7 +36,7 @@
}
main reactor {
- s = new[2] R()
+ s = new[2] R()
state received(false)
reaction(startup) -> s.inp {=
diff --git a/test/known-good/Python/src/multiport/BankToBank.txt b/test/known-good/Python/src/multiport/BankToBank.txt
index 70da94eaf..6eb5a52b7 100644
--- a/test/known-good/Python/src/multiport/BankToBank.txt
+++ b/test/known-good/Python/src/multiport/BankToBank.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source(bank_index(0)) {
@@ -36,8 +36,8 @@
}
main reactor BankToBank(width(4)) {
- a = new[width] Source()
- b = new[width] Destination()
+ a = new[width] Source()
+ b = new[width] Destination()
a.out -> b._in
}
diff --git a/test/known-good/Python/src/multiport/BankToBankMultiport.txt b/test/known-good/Python/src/multiport/BankToBankMultiport.txt
index e33b9f005..c7a943bee 100644
--- a/test/known-good/Python/src/multiport/BankToBankMultiport.txt
+++ b/test/known-good/Python/src/multiport/BankToBankMultiport.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source(width(1)) {
@@ -44,8 +44,8 @@
}
main reactor BankToBankMultiport(bank_width(4)) {
- a = new[bank_width] Source(width = 4)
- b = new[bank_width] Destination(width = 4)
+ a = new[bank_width] Source(width = 4)
+ b = new[bank_width] Destination(width = 4)
a.out -> b._in
}
diff --git a/test/known-good/Python/src/multiport/BankToBankMultiportAfter.txt b/test/known-good/Python/src/multiport/BankToBankMultiportAfter.txt
index efcab2552..330290ac3 100644
--- a/test/known-good/Python/src/multiport/BankToBankMultiportAfter.txt
+++ b/test/known-good/Python/src/multiport/BankToBankMultiportAfter.txt
@@ -1,14 +1,14 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Source, Destination from "BankToBankMultiport.lf"
main reactor BankToBankMultiportAfter(bank_width(4)) {
- a = new[bank_width] Source(width = 4)
- b = new[bank_width] Destination(width = 4)
+ a = new[bank_width] Source(width = 4)
+ b = new[bank_width] Destination(width = 4)
a.out -> b._in after 200 msec
}
diff --git a/test/known-good/Python/src/multiport/BankToMultiport.txt b/test/known-good/Python/src/multiport/BankToMultiport.txt
index 96766d708..c7780567b 100644
--- a/test/known-good/Python/src/multiport/BankToMultiport.txt
+++ b/test/known-good/Python/src/multiport/BankToMultiport.txt
@@ -29,7 +29,7 @@
}
main reactor BankToMultiport(width(5)) {
- source = new[width] Source()
+ source = new[width] Source()
sink = new Sink(width = width)
source.out -> sink._in
}
diff --git a/test/known-good/Python/src/multiport/Broadcast.txt b/test/known-good/Python/src/multiport/Broadcast.txt
index 3407a8d90..739eff717 100644
--- a/test/known-good/Python/src/multiport/Broadcast.txt
+++ b/test/known-good/Python/src/multiport/Broadcast.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source(value(42)) {
@@ -35,7 +35,7 @@
main reactor {
a = new Source()
- b = new[4] Destination()
+ b = new[4] Destination()
(a.out)+ -> b._in
}
diff --git a/test/known-good/Python/src/multiport/BroadcastAfter.txt b/test/known-good/Python/src/multiport/BroadcastAfter.txt
index ff4e3e9e1..87ae4018b 100644
--- a/test/known-good/Python/src/multiport/BroadcastAfter.txt
+++ b/test/known-good/Python/src/multiport/BroadcastAfter.txt
@@ -1,13 +1,13 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Source, Destination from "Broadcast.lf"
main reactor {
a = new Source()
- b = new[4] Destination(delay = 1 sec)
+ b = new[4] Destination(delay = 1 sec)
(a.out)+ -> b._in after 1 sec
}
diff --git a/test/known-good/Python/src/multiport/BroadcastMultipleAfter.txt b/test/known-good/Python/src/multiport/BroadcastMultipleAfter.txt
index 61baacfab..6dc9e0d4c 100644
--- a/test/known-good/Python/src/multiport/BroadcastMultipleAfter.txt
+++ b/test/known-good/Python/src/multiport/BroadcastMultipleAfter.txt
@@ -1,6 +1,6 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Source from "Broadcast.lf"
@@ -34,7 +34,7 @@
a1 = new Source(value = 1)
a2 = new Source(value = 2)
a3 = new Source(value = 3)
- b = new[9] Destination(delay = 1 sec)
+ b = new[9] Destination(delay = 1 sec)
(a1.out, a2.out, a3.out)+ -> b._in after 1 sec
}
diff --git a/test/known-good/Python/src/multiport/MultiportFromBank.txt b/test/known-good/Python/src/multiport/MultiportFromBank.txt
index a01ed4348..55520c323 100644
--- a/test/known-good/Python/src/multiport/MultiportFromBank.txt
+++ b/test/known-good/Python/src/multiport/MultiportFromBank.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source(check_override(0), bank_index(0)) {
@@ -37,7 +37,7 @@
}
main reactor MultiportFromBank {
- a = new[3] Source(check_override = 1)
+ a = new[3] Source(check_override = 1)
b = new Destination()
a.out -> b._in
}
diff --git a/test/known-good/Python/src/multiport/MultiportFromBankHierarchy.txt b/test/known-good/Python/src/multiport/MultiportFromBankHierarchy.txt
index 7dc962ef5..98963ae6c 100644
--- a/test/known-good/Python/src/multiport/MultiportFromBankHierarchy.txt
+++ b/test/known-good/Python/src/multiport/MultiportFromBankHierarchy.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Destination from "MultiportFromBank.lf"
@@ -15,7 +15,7 @@
reactor Container {
output[3] out
- s = new[3] Source()
+ s = new[3] Source()
s.out -> out
}
diff --git a/test/known-good/Python/src/multiport/MultiportFromBankHierarchyAfter.txt b/test/known-good/Python/src/multiport/MultiportFromBankHierarchyAfter.txt
index 1ccc4b977..bc052ac32 100644
--- a/test/known-good/Python/src/multiport/MultiportFromBankHierarchyAfter.txt
+++ b/test/known-good/Python/src/multiport/MultiportFromBankHierarchyAfter.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Container from "MultiportFromBankHierarchy.lf"
diff --git a/test/known-good/Python/src/multiport/MultiportFromHierarchy.txt b/test/known-good/Python/src/multiport/MultiportFromHierarchy.txt
index 1035f1956..ddfd928c8 100644
--- a/test/known-good/Python/src/multiport/MultiportFromHierarchy.txt
+++ b/test/known-good/Python/src/multiport/MultiportFromHierarchy.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/multiport/MultiportFromReaction.txt b/test/known-good/Python/src/multiport/MultiportFromReaction.txt
index 3ba94d277..5a7b01522 100644
--- a/test/known-good/Python/src/multiport/MultiportFromReaction.txt
+++ b/test/known-good/Python/src/multiport/MultiportFromReaction.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Destination(width(1)) {
diff --git a/test/known-good/Python/src/multiport/MultiportIn.txt b/test/known-good/Python/src/multiport/MultiportIn.txt
index 60e4dd191..43cf1c3ed 100644
--- a/test/known-good/Python/src/multiport/MultiportIn.txt
+++ b/test/known-good/Python/src/multiport/MultiportIn.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/multiport/MultiportInParameterized.txt b/test/known-good/Python/src/multiport/MultiportInParameterized.txt
index 7a81e4fea..4be4992e6 100644
--- a/test/known-good/Python/src/multiport/MultiportInParameterized.txt
+++ b/test/known-good/Python/src/multiport/MultiportInParameterized.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/multiport/MultiportOut.txt b/test/known-good/Python/src/multiport/MultiportOut.txt
index 8d27032ee..9d6b5fd89 100644
--- a/test/known-good/Python/src/multiport/MultiportOut.txt
+++ b/test/known-good/Python/src/multiport/MultiportOut.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/multiport/MultiportToBank.txt b/test/known-good/Python/src/multiport/MultiportToBank.txt
index e0920d0d1..553997b55 100644
--- a/test/known-good/Python/src/multiport/MultiportToBank.txt
+++ b/test/known-good/Python/src/multiport/MultiportToBank.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
@@ -35,7 +35,7 @@
main reactor MultiportToBank {
a = new Source()
- b = new[3] Destination()
+ b = new[3] Destination()
a.out -> b._in
}
diff --git a/test/known-good/Python/src/multiport/MultiportToBankAfter.txt b/test/known-good/Python/src/multiport/MultiportToBankAfter.txt
index d1c34f920..db4e6eca8 100644
--- a/test/known-good/Python/src/multiport/MultiportToBankAfter.txt
+++ b/test/known-good/Python/src/multiport/MultiportToBankAfter.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Source from "MultiportToBank.lf"
@@ -32,7 +32,7 @@
main reactor MultiportToBankAfter {
a = new Source()
- b = new[3] Destination()
+ b = new[3] Destination()
a.out -> b._in after 1 sec
}
diff --git a/test/known-good/Python/src/multiport/MultiportToBankHierarchy.txt b/test/known-good/Python/src/multiport/MultiportToBankHierarchy.txt
index a30e1d312..2adc0ed3c 100644
--- a/test/known-good/Python/src/multiport/MultiportToBankHierarchy.txt
+++ b/test/known-good/Python/src/multiport/MultiportToBankHierarchy.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Source from "MultiportToBank.lf"
@@ -29,7 +29,7 @@
reactor Container {
input[3] _in
- c = new[3] Destination()
+ c = new[3] Destination()
_in -> c._in
}
diff --git a/test/known-good/Python/src/multiport/MultiportToHierarchy.txt b/test/known-good/Python/src/multiport/MultiportToHierarchy.txt
index 7cce85249..ba80d53fa 100644
--- a/test/known-good/Python/src/multiport/MultiportToHierarchy.txt
+++ b/test/known-good/Python/src/multiport/MultiportToHierarchy.txt
@@ -2,8 +2,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/multiport/MultiportToMultiport.txt b/test/known-good/Python/src/multiport/MultiportToMultiport.txt
index ec5d3cb85..f1d68b880 100644
--- a/test/known-good/Python/src/multiport/MultiportToMultiport.txt
+++ b/test/known-good/Python/src/multiport/MultiportToMultiport.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Destination from "MultiportToHierarchy.lf"
diff --git a/test/known-good/Python/src/multiport/MultiportToMultiportArray.txt b/test/known-good/Python/src/multiport/MultiportToMultiportArray.txt
index 0f37a6e11..769518436 100644
--- a/test/known-good/Python/src/multiport/MultiportToMultiportArray.txt
+++ b/test/known-good/Python/src/multiport/MultiportToMultiportArray.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/multiport/MultiportToMultiportParameter.txt b/test/known-good/Python/src/multiport/MultiportToMultiportParameter.txt
index 9fb8d0062..ed2e2acdb 100644
--- a/test/known-good/Python/src/multiport/MultiportToMultiportParameter.txt
+++ b/test/known-good/Python/src/multiport/MultiportToMultiportParameter.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
import Source from "MultiportToMultiport.lf"
diff --git a/test/known-good/Python/src/multiport/MultiportToPort.txt b/test/known-good/Python/src/multiport/MultiportToPort.txt
index c0febc18c..2268fee10 100644
--- a/test/known-good/Python/src/multiport/MultiportToPort.txt
+++ b/test/known-good/Python/src/multiport/MultiportToPort.txt
@@ -1,8 +1,8 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
diff --git a/test/known-good/Python/src/multiport/MultiportToReaction.txt b/test/known-good/Python/src/multiport/MultiportToReaction.txt
index 2aa5fc872..1192a1409 100644
--- a/test/known-good/Python/src/multiport/MultiportToReaction.txt
+++ b/test/known-good/Python/src/multiport/MultiportToReaction.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source(width(1)) {
diff --git a/test/known-good/Python/src/multiport/NestedBanks.txt b/test/known-good/Python/src/multiport/NestedBanks.txt
index 636f52729..f8b208524 100644
--- a/test/known-good/Python/src/multiport/NestedBanks.txt
+++ b/test/known-good/Python/src/multiport/NestedBanks.txt
@@ -5,8 +5,8 @@
target Python
main reactor {
- a = new[2] A()
- c = new[3] C()
+ a = new[2] A()
+ c = new[3] C()
d = new D()
e = new E()
@@ -15,7 +15,7 @@
reactor A(bank_index(0)) {
output[4] x
- b = new[2] B(a_bank_index = bank_index)
+ b = new[2] B(a_bank_index = bank_index)
b.y -> x
}
diff --git a/test/known-good/Python/src/multiport/NestedInterleavedBanks.txt b/test/known-good/Python/src/multiport/NestedInterleavedBanks.txt
index 4e3c59323..500cf72e4 100644
--- a/test/known-good/Python/src/multiport/NestedInterleavedBanks.txt
+++ b/test/known-good/Python/src/multiport/NestedInterleavedBanks.txt
@@ -16,7 +16,7 @@
reactor B(bank_index(0)) {
output[4] q
- a = new[2] A(outer_bank_index = bank_index)
+ a = new[2] A(outer_bank_index = bank_index)
interleaved (a.p) -> q
}
@@ -34,7 +34,7 @@
}
main reactor {
- b = new[2] B()
+ b = new[2] B()
c = new C()
b.q -> c.i
}
diff --git a/test/known-good/Python/src/multiport/ReactionsToNested.txt b/test/known-good/Python/src/multiport/ReactionsToNested.txt
index a51bae3c8..6fcb9970c 100644
--- a/test/known-good/Python/src/multiport/ReactionsToNested.txt
+++ b/test/known-good/Python/src/multiport/ReactionsToNested.txt
@@ -1,7 +1,7 @@
target Python {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor T(expected(0)) {
diff --git a/test/known-good/Python/src/serialization/PersonProtocolBuffers.txt b/test/known-good/Python/src/serialization/PersonProtocolBuffers.txt
index 06736fafd..e8c9d12cc 100644
--- a/test/known-good/Python/src/serialization/PersonProtocolBuffers.txt
+++ b/test/known-good/Python/src/serialization/PersonProtocolBuffers.txt
@@ -20,7 +20,7 @@
target Python {
- protobufs: Person.proto
+ protobufs: Person.proto
}
main reactor {
diff --git a/test/known-good/Python/src/serialization/ProtoNoPacking.txt b/test/known-good/Python/src/serialization/ProtoNoPacking.txt
index 125bfecdb..820ab703d 100644
--- a/test/known-good/Python/src/serialization/ProtoNoPacking.txt
+++ b/test/known-good/Python/src/serialization/ProtoNoPacking.txt
@@ -19,7 +19,7 @@
target Python {
- protobufs: ProtoHelloWorld.proto
+ protobufs: ProtoHelloWorld.proto
}
reactor SourceProto {
diff --git a/test/known-good/Python/src/target/AfterNoTypes.txt b/test/known-good/Python/src/target/AfterNoTypes.txt
index 13080efc4..29957a2b1 100644
--- a/test/known-good/Python/src/target/AfterNoTypes.txt
+++ b/test/known-good/Python/src/target/AfterNoTypes.txt
@@ -1,8 +1,8 @@
target Python {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
reactor Foo {
diff --git a/test/known-good/Rust/src/ActionDelay.txt b/test/known-good/Rust/src/ActionDelay.txt
index 101efdc4c..0009c7b30 100644
--- a/test/known-good/Rust/src/ActionDelay.txt
+++ b/test/known-good/Rust/src/ActionDelay.txt
@@ -4,7 +4,7 @@
main reactor ActionDelay {
logical action act0
logical action act1(100 msec)
- state count: u32(0)
+ state count: u32(0)
reaction(startup) -> act0, act1 {=
ctx.schedule(act0, after!(100 ms));
diff --git a/test/known-good/Rust/src/ActionImplicitDelay.txt b/test/known-good/Rust/src/ActionImplicitDelay.txt
index da2dabf20..1ee3ad0a6 100644
--- a/test/known-good/Rust/src/ActionImplicitDelay.txt
+++ b/test/known-good/Rust/src/ActionImplicitDelay.txt
@@ -3,7 +3,7 @@
main reactor ActionImplicitDelay {
logical action act(40 msec)
- state count: u64(1)
+ state count: u64(1)
reaction(startup) -> act {= ctx.schedule(act, Asap); =}
diff --git a/test/known-good/Rust/src/ActionIsPresent.txt b/test/known-good/Rust/src/ActionIsPresent.txt
index 20d4fbc4c..b05e6a4bd 100644
--- a/test/known-good/Rust/src/ActionIsPresent.txt
+++ b/test/known-good/Rust/src/ActionIsPresent.txt
@@ -3,8 +3,8 @@
main reactor ActionIsPresent {
logical action a
- state success: bool(false)
- state tried: bool(false)
+ state success: bool(false)
+ state tried: bool(false)
reaction(startup, a) -> a {=
if !ctx.is_present(a) {
diff --git a/test/known-good/Rust/src/ActionScheduleMicrostep.txt b/test/known-good/Rust/src/ActionScheduleMicrostep.txt
index aa57b8633..a6d3ba7c1 100644
--- a/test/known-good/Rust/src/ActionScheduleMicrostep.txt
+++ b/test/known-good/Rust/src/ActionScheduleMicrostep.txt
@@ -3,7 +3,7 @@
main reactor ActionScheduleMicrostep {
logical action act
- state count: u32(1)
+ state count: u32(1)
reaction(startup) -> act {=
assert_tag_is!(ctx, T0);
diff --git a/test/known-good/Rust/src/ActionValues.txt b/test/known-good/Rust/src/ActionValues.txt
index ad97614a0..b051ae3dd 100644
--- a/test/known-good/Rust/src/ActionValues.txt
+++ b/test/known-good/Rust/src/ActionValues.txt
@@ -2,9 +2,9 @@
target Rust
main reactor ActionValues {
- state r1done: bool(false)
- state r2done: bool(false)
- logical action act(100 msec): i32
+ state r1done: bool(false)
+ state r2done: bool(false)
+ logical action act(100 msec): i32
reaction(startup) -> act {=
ctx.schedule_with_v(act, Some(100), Asap);
diff --git a/test/known-good/Rust/src/ActionValuesCleanup.txt b/test/known-good/Rust/src/ActionValuesCleanup.txt
index 7bae84953..16305b817 100644
--- a/test/known-good/Rust/src/ActionValuesCleanup.txt
+++ b/test/known-good/Rust/src/ActionValuesCleanup.txt
@@ -6,7 +6,7 @@
use std::sync::atomic::AtomicBool;
use std::sync::atomic::Ordering;
- static mut DROPPED: AtomicBool = AtomicBool::new(false);
+ static mut DROPPED: AtomicBool = AtomicBool::new(false);
struct FooDrop { }
@@ -19,8 +19,8 @@
}
=}
- logical action act: FooDrop
- state count: u32(0)
+ logical action act: FooDrop
+ state count: u32(0)
reaction(startup) -> act {=
ctx.schedule_with_v(act, Some(FooDrop { }), Asap)
diff --git a/test/known-good/Rust/src/CompositionWithPorts.txt b/test/known-good/Rust/src/CompositionWithPorts.txt
index a4f729d6e..9bcdd4bfb 100644
--- a/test/known-good/Rust/src/CompositionWithPorts.txt
+++ b/test/known-good/Rust/src/CompositionWithPorts.txt
@@ -1,13 +1,13 @@
target Rust
reactor Source {
- output out: i32
+ output out: i32
reaction(startup) -> out {= ctx.set(out, 76600) =}
}
reactor Sink {
- input inport: i32
+ input inport: i32
reaction(inport) {=
if let Some(value) = ctx.get(inport) {
diff --git a/test/known-good/Rust/src/CtorParamDefault.txt b/test/known-good/Rust/src/CtorParamDefault.txt
index a03a566fb..ec106fbe6 100644
--- a/test/known-good/Rust/src/CtorParamDefault.txt
+++ b/test/known-good/Rust/src/CtorParamDefault.txt
@@ -1,7 +1,7 @@
target Rust
-reactor Print(value: i32(42)) {
- state v: i32(value)
+reactor Print(value: i32(42)) {
+ state v: i32(value)
reaction(startup) {=
assert_eq!(42, self.v);
diff --git a/test/known-good/Rust/src/CtorParamMixed.txt b/test/known-good/Rust/src/CtorParamMixed.txt
index 7e99c11be..a4e0eaa80 100644
--- a/test/known-good/Rust/src/CtorParamMixed.txt
+++ b/test/known-good/Rust/src/CtorParamMixed.txt
@@ -1,9 +1,9 @@
target Rust
reactor Print(
- value: i32(42),
- name: String({= "xxx".into() =}),
- other: bool(false)
+ value: i32(42),
+ name: String({= "xxx".into() =}),
+ other: bool(false)
) {
state value(value)
state name(name)
diff --git a/test/known-good/Rust/src/CtorParamSimple.txt b/test/known-good/Rust/src/CtorParamSimple.txt
index 174d55ece..594b46a8b 100644
--- a/test/known-good/Rust/src/CtorParamSimple.txt
+++ b/test/known-good/Rust/src/CtorParamSimple.txt
@@ -1,7 +1,7 @@
target Rust
-reactor Print(value: i32(42)) {
- state v: i32(value)
+reactor Print(value: i32(42)) {
+ state v: i32(value)
reaction(startup) {=
assert_eq!(self.v, 23);
diff --git a/test/known-good/Rust/src/DependencyOnChildPort.txt b/test/known-good/Rust/src/DependencyOnChildPort.txt
index f46ede6d9..07c3462fc 100644
--- a/test/known-good/Rust/src/DependencyOnChildPort.txt
+++ b/test/known-good/Rust/src/DependencyOnChildPort.txt
@@ -2,14 +2,14 @@
target Rust
reactor Box {
- input inp: u32
- output out: u32
+ input inp: u32
+ output out: u32
inp -> out
}
main reactor {
- state done: bool(false)
+ state done: bool(false)
box0 = new Box()
box1 = new Box()
diff --git a/test/known-good/Rust/src/DependencyThroughChildPort.txt b/test/known-good/Rust/src/DependencyThroughChildPort.txt
index 6c23afef9..ad2ad831a 100644
--- a/test/known-good/Rust/src/DependencyThroughChildPort.txt
+++ b/test/known-good/Rust/src/DependencyThroughChildPort.txt
@@ -1,10 +1,10 @@
target Rust
reactor Destination {
- input x: u32
- input y: u32
+ input x: u32
+ input y: u32
- state exec_count: u32
+ state exec_count: u32
reaction(x, y) {=
let tag = ctx.get_tag();
diff --git a/test/known-good/Rust/src/DependencyUseAccessible.txt b/test/known-good/Rust/src/DependencyUseAccessible.txt
index 0ca013cd2..f01056566 100644
--- a/test/known-good/Rust/src/DependencyUseAccessible.txt
+++ b/test/known-good/Rust/src/DependencyUseAccessible.txt
@@ -2,9 +2,9 @@
target Rust
reactor Source {
- output clock: u32
- output o1: u32
- output o2: u32
+ output clock: u32
+ output o1: u32
+ output o2: u32
timer t1(35 msec)
timer t2(70 msec)
@@ -17,9 +17,9 @@
}
reactor Sink {
- input clock: u32
- input in1: u32
- input in2: u32
+ input clock: u32
+ input in1: u32
+ input in2: u32
reaction(clock) in1, in2 {=
match ctx.get(clock) {
diff --git a/test/known-good/Rust/src/DependencyUseNonTrigger.txt b/test/known-good/Rust/src/DependencyUseNonTrigger.txt
index 3f3838122..349e7c1a4 100644
--- a/test/known-good/Rust/src/DependencyUseNonTrigger.txt
+++ b/test/known-good/Rust/src/DependencyUseNonTrigger.txt
@@ -2,14 +2,14 @@
target Rust
reactor Source {
- output clock: u32
+ output clock: u32
reaction(startup) -> clock {= ctx.set(clock, 0); =}
}
reactor Sink {
- input clock: u32
- input bogus: u32
+ input clock: u32
+ input bogus: u32
reaction(bogus) clock {= panic!("Should not be executed") =}
diff --git a/test/known-good/Rust/src/DependencyUseOnLogicalAction.txt b/test/known-good/Rust/src/DependencyUseOnLogicalAction.txt
index 0311a09bc..49b7bc996 100644
--- a/test/known-good/Rust/src/DependencyUseOnLogicalAction.txt
+++ b/test/known-good/Rust/src/DependencyUseOnLogicalAction.txt
@@ -1,16 +1,16 @@
target Rust {
- timeout: 10 msec
+ timeout: 10 msec
}
main reactor {
- logical action clock: u32
+ logical action clock: u32
logical action a
timer t(0, 2 msec)
- state tick: u32(0)
+ state tick: u32(0)
reaction(startup) -> clock, a {=
ctx.schedule(a, after!(3 ms));
diff --git a/test/known-good/Rust/src/FloatLiteral.txt b/test/known-good/Rust/src/FloatLiteral.txt
index 94d7e2d8e..c60a6057f 100644
--- a/test/known-good/Rust/src/FloatLiteral.txt
+++ b/test/known-good/Rust/src/FloatLiteral.txt
@@ -2,10 +2,10 @@
main reactor {
- state N: f64(6.0221409e+23)
- state charge: f64(-1.6021766E-19)
- state minus_epsilon: f64(-.01e0)
- state expected: f64(.964853323188E5)
+ state N: f64(6.0221409e+23)
+ state charge: f64(-1.6021766E-19)
+ state minus_epsilon: f64(-.01e0)
+ state expected: f64(.964853323188E5)
reaction(startup) {=
let F = - self.N * self.charge;
diff --git a/test/known-good/Rust/src/MainReactorParam.txt b/test/known-good/Rust/src/MainReactorParam.txt
index ee1e80f6e..20df3007c 100644
--- a/test/known-good/Rust/src/MainReactorParam.txt
+++ b/test/known-good/Rust/src/MainReactorParam.txt
@@ -1,6 +1,6 @@
target Rust
-main reactor(one: u64(1152921504606846976), two: u64({= 1 << 60 =})) {
+main reactor(one: u64(1152921504606846976), two: u64({= 1 << 60 =})) {
state one(one)
state two(two)
diff --git a/test/known-good/Rust/src/MovingAverage.txt b/test/known-good/Rust/src/MovingAverage.txt
index c93ef9fa5..3e01e3067 100644
--- a/test/known-good/Rust/src/MovingAverage.txt
+++ b/test/known-good/Rust/src/MovingAverage.txt
@@ -2,12 +2,12 @@
target Rust {
- timeout: 50 msec
+ timeout: 50 msec
}
reactor Source {
- output out: f64
- state count: u32(0)
+ output out: f64
+ state count: u32(0)
timer clock(0, 10 msec)
reaction(clock) -> out {=
@@ -18,10 +18,10 @@
reactor MovingAverageImpl {
- state delay_line: f64[4](0.0, 0.0, 0.0, 0.0)
- state index: usize(0)
- input in_: f64
- output out: f64
+ state delay_line: f64[4](0.0, 0.0, 0.0, 0.0)
+ state index: usize(0)
+ input in_: f64
+ output out: f64
reaction(in_) -> out {=
let in_ = ctx.get(in_).unwrap();
@@ -32,14 +32,14 @@
self.index = (self.index + 1) % 4;
- let sum: f64 = self.delay_line.iter().sum();
+ let sum: f64 = self.delay_line.iter().sum();
ctx.set(out, sum / 4.0);
=}
}
reactor Print {
- input in_: f64
- state count: usize(0)
+ input in_: f64
+ state count: usize(0)
preamble {=
const EXPECTED: [ f64 ; 6 ] = [0.0, 0.25, 0.75, 1.5, 2.5, 3.5];
diff --git a/test/known-good/Rust/src/NativeListsAndTimes.txt b/test/known-good/Rust/src/NativeListsAndTimes.txt
index 594e1adc2..fffef6f83 100644
--- a/test/known-good/Rust/src/NativeListsAndTimes.txt
+++ b/test/known-good/Rust/src/NativeListsAndTimes.txt
@@ -2,20 +2,20 @@
reactor Foo(
- x: i32(0),
- y: time(0),
+ x: i32(0),
+ y: time(0),
z(1 msec),
- p: i32[](1, 2, 3, 4),
- p2: i32[]({= vec![1] =}),
+ p: i32[](1, 2, 3, 4),
+ p2: i32[]({= vec![1] =}),
- q: Vec(1 msec, 2 msec, 3 msec),
- g: time[](1 msec, 2 msec)
+ q: Vec(1 msec, 2 msec, 3 msec),
+ g: time[](1 msec, 2 msec)
) {
- state s: time(y)
- state t: time(z)
- state v: bool
- state w: time
+ state s: time(y)
+ state t: time(z)
+ state v: bool
+ state w: time
timer tick(0)
timer tock(1 sec)
timer toe(z)
@@ -30,7 +30,7 @@
state period(z)
- state times: Vec= Duration =}>>(q, g)
+ state times: Vec= Duration =}>>(q, g)
diff --git a/test/known-good/Rust/src/PhysicalActionCanBeScheduledSynchronously.txt b/test/known-good/Rust/src/PhysicalActionCanBeScheduledSynchronously.txt
index a60dd3419..c613904ed 100644
--- a/test/known-good/Rust/src/PhysicalActionCanBeScheduledSynchronously.txt
+++ b/test/known-good/Rust/src/PhysicalActionCanBeScheduledSynchronously.txt
@@ -3,9 +3,9 @@
target Rust
main reactor {
- physical action act: u32
+ physical action act: u32
- state count: u32
+ state count: u32
reaction(startup) -> act {=
ctx.schedule(act, Asap);
diff --git a/test/known-good/Rust/src/PhysicalActionKeepaliveIsSmart.txt b/test/known-good/Rust/src/PhysicalActionKeepaliveIsSmart.txt
index cbbded062..2cd8577cf 100644
--- a/test/known-good/Rust/src/PhysicalActionKeepaliveIsSmart.txt
+++ b/test/known-good/Rust/src/PhysicalActionKeepaliveIsSmart.txt
@@ -1,11 +1,11 @@
target Rust {
- keepalive: true
+ keepalive: true
}
main reactor {
- physical action act: u32
+ physical action act: u32
reaction(startup) -> act {=
std::thread::spawn(|| {
diff --git a/test/known-good/Rust/src/PhysicalActionWakesSleepingScheduler.txt b/test/known-good/Rust/src/PhysicalActionWakesSleepingScheduler.txt
index dfd1b2f40..6813b3232 100644
--- a/test/known-good/Rust/src/PhysicalActionWakesSleepingScheduler.txt
+++ b/test/known-good/Rust/src/PhysicalActionWakesSleepingScheduler.txt
@@ -10,7 +10,7 @@
main reactor {
timer t(250 msec)
- physical action act: u32
+ physical action act: u32
reaction(startup) -> act {=
let act = act.clone();
diff --git a/test/known-good/Rust/src/PhysicalActionWithKeepalive.txt b/test/known-good/Rust/src/PhysicalActionWithKeepalive.txt
index 4f0d5cba0..fce480b99 100644
--- a/test/known-good/Rust/src/PhysicalActionWithKeepalive.txt
+++ b/test/known-good/Rust/src/PhysicalActionWithKeepalive.txt
@@ -1,9 +1,9 @@
target Rust {
- keepalive: true
+ keepalive: true
}
main reactor {
- physical action act: u32
+ physical action act: u32
reaction(startup) -> act {=
let act = act.clone();
diff --git a/test/known-good/Rust/src/PortConnectionInSelfInChild.txt b/test/known-good/Rust/src/PortConnectionInSelfInChild.txt
index 9fecd8800..644fb6843 100644
--- a/test/known-good/Rust/src/PortConnectionInSelfInChild.txt
+++ b/test/known-good/Rust/src/PortConnectionInSelfInChild.txt
@@ -2,8 +2,8 @@
target Rust
reactor Child {
- input inp: i32
- state done: bool(false)
+ input inp: i32
+ state done: bool(false)
reaction(inp) {=
assert_eq!(ctx.get(inp), Some(76600));
@@ -17,7 +17,7 @@
}
reactor Parent {
- input inp: i32
+ input inp: i32
child = new Child()
inp -> child.inp
}
diff --git a/test/known-good/Rust/src/PortConnectionInSelfOutSelf.txt b/test/known-good/Rust/src/PortConnectionInSelfOutSelf.txt
index ffd4f92e6..7666e8d9d 100644
--- a/test/known-good/Rust/src/PortConnectionInSelfOutSelf.txt
+++ b/test/known-good/Rust/src/PortConnectionInSelfOutSelf.txt
@@ -2,7 +2,7 @@
target Rust
reactor Source {
- output out: i32
+ output out: i32
reaction(startup) -> out {=
ctx.set(out, 76600);
@@ -11,14 +11,14 @@
}
reactor TestCase {
- input inp: i32
- output out: i32
+ input inp: i32
+ output out: i32
inp -> out
}
reactor Sink {
- input inp: i32
- state done: bool(false)
+ input inp: i32
+ state done: bool(false)
reaction(inp) {=
assert_eq!(ctx.get(inp), Some(76600));
diff --git a/test/known-good/Rust/src/PortConnectionOutChildOutSelf.txt b/test/known-good/Rust/src/PortConnectionOutChildOutSelf.txt
index ea3c85bd0..4a4e0a19c 100644
--- a/test/known-good/Rust/src/PortConnectionOutChildOutSelf.txt
+++ b/test/known-good/Rust/src/PortConnectionOutChildOutSelf.txt
@@ -2,7 +2,7 @@
target Rust
reactor Child {
- output out: i32
+ output out: i32
reaction(startup) -> out {=
ctx.set(out, 76600);
@@ -11,15 +11,15 @@
}
reactor Parent {
- output out: i32
+ output out: i32
child = new Child()
child.out -> out
}
reactor Sink {
- input inp: i32
- state done: bool(false)
+ input inp: i32
+ state done: bool(false)
reaction(inp) {=
assert_eq!(ctx.get(inp), Some(76600));
@@ -33,7 +33,7 @@
main reactor {
parent = new Parent()
- state done: bool(false)
+ state done: bool(false)
reaction(parent.out) {=
assert_eq!(ctx.get(parent__out), Some(76600));
diff --git a/test/known-good/Rust/src/PortRefCleanup.txt b/test/known-good/Rust/src/PortRefCleanup.txt
index e40503582..c51b2ef00 100644
--- a/test/known-good/Rust/src/PortRefCleanup.txt
+++ b/test/known-good/Rust/src/PortRefCleanup.txt
@@ -2,8 +2,8 @@
target Rust
reactor Box {
- input inp: u32
- output out: u32
+ input inp: u32
+ output out: u32
inp -> out
}
@@ -14,8 +14,8 @@
timer t1(0)
timer t2(15 msec)
- state reaction_num: u32(0)
- state done: bool(false)
+ state reaction_num: u32(0)
+ state done: bool(false)
reaction(t1) -> boxr.inp {=
ctx.set(boxr__inp, 150);
diff --git a/test/known-good/Rust/src/PortValueCleanup.txt b/test/known-good/Rust/src/PortValueCleanup.txt
index 99b62c84a..6e4148363 100644
--- a/test/known-good/Rust/src/PortValueCleanup.txt
+++ b/test/known-good/Rust/src/PortValueCleanup.txt
@@ -2,7 +2,7 @@
target Rust
reactor Source {
- output out: u32
+ output out: u32
reaction(startup) -> out {= ctx.set(out, 150); =}
}
@@ -10,9 +10,9 @@
reactor Sink {
timer t2(15 msec)
- input in: u32
- state reaction_num: u32(0)
- state done: bool(false)
+ input in: u32
+ state reaction_num: u32(0)
+ state done: bool(false)
reaction(in, t2) {=
if self.reaction_num == 0 {
diff --git a/test/known-good/Rust/src/Preamble.txt b/test/known-good/Rust/src/Preamble.txt
index 9cabace8b..976064cf9 100644
--- a/test/known-good/Rust/src/Preamble.txt
+++ b/test/known-good/Rust/src/Preamble.txt
@@ -2,7 +2,7 @@
main reactor Preamble {
preamble {=
- fn add_42(i: i32) -> i32 {
+ fn add_42(i: i32) -> i32 {
return i + 42;
}
=}
diff --git a/test/known-good/Rust/src/ReservedKeywords.txt b/test/known-good/Rust/src/ReservedKeywords.txt
index fc5504a43..1b1446415 100644
--- a/test/known-good/Rust/src/ReservedKeywords.txt
+++ b/test/known-good/Rust/src/ReservedKeywords.txt
@@ -3,19 +3,19 @@
target Rust
reactor box {
- input in: u32
- output struct: u32
+ input in: u32
+ output struct: u32
in -> struct
- state foo: bool(true)
+ state foo: bool(true)
reaction(in) {=
ctx.get(r
=}
}
-main reactor ReservedKeywords(struct: u32(0)) {
+main reactor ReservedKeywords(struct: u32(0)) {
box = new box()
timer t1(0)
diff --git a/test/known-good/Rust/src/SingleFileGeneration.txt b/test/known-good/Rust/src/SingleFileGeneration.txt
index ec4b249bd..75e32c0f1 100644
--- a/test/known-good/Rust/src/SingleFileGeneration.txt
+++ b/test/known-good/Rust/src/SingleFileGeneration.txt
@@ -1,16 +1,16 @@
target Rust {
- single-file-project: true
+ single-file-project: true
}
reactor Source {
- output out: i32
+ output out: i32
reaction(startup) -> out {= ctx.set(out, 76600) =}
}
reactor Sink {
- input inport: i32
+ input inport: i32
reaction(inport) {=
if let Some(value) = ctx.get(inport) {
diff --git a/test/known-good/Rust/src/StateDefaultValue.txt b/test/known-good/Rust/src/StateDefaultValue.txt
index 22a158ad9..d91084649 100644
--- a/test/known-good/Rust/src/StateDefaultValue.txt
+++ b/test/known-good/Rust/src/StateDefaultValue.txt
@@ -2,9 +2,9 @@
main reactor {
- state foo_default: u32
- state vec_default: Vec
- state option: Option>
+ state foo_default: u32
+ state vec_default: Vec
+ state option: Option>
reaction(startup) {=
assert_eq!(self.foo_default, 0);
diff --git a/test/known-good/Rust/src/StateInitializerVisibility.txt b/test/known-good/Rust/src/StateInitializerVisibility.txt
index e202fae70..c13382a14 100644
--- a/test/known-good/Rust/src/StateInitializerVisibility.txt
+++ b/test/known-good/Rust/src/StateInitializerVisibility.txt
@@ -3,8 +3,8 @@
target Rust
main reactor {
- state foo: u32(123)
- state x: u32({= *&foo =})
+ state foo: u32(123)
+ state x: u32({= *&foo =})
reaction(startup) {=
assert_eq!(self.x, self.foo);
diff --git a/test/known-good/Rust/src/Stop.txt b/test/known-good/Rust/src/Stop.txt
index 4dedddbf4..bd027d997 100644
--- a/test/known-good/Rust/src/Stop.txt
+++ b/test/known-good/Rust/src/Stop.txt
@@ -4,7 +4,7 @@
target Rust {
- timeout: 11 msec
+ timeout: 11 msec
}
@@ -13,10 +13,10 @@
-reactor Sender(take_a_break_after: u32(10), break_interval: time(400 msec)) {
- output out: u32
+reactor Sender(take_a_break_after: u32(10), break_interval: time(400 msec)) {
+ output out: u32
logical action act
- state sent_messages: u32(0)
+ state sent_messages: u32(0)
state take_a_break_after(take_a_break_after)
state break_interval(break_interval)
@@ -39,8 +39,8 @@
}
reactor Consumer {
- input in_: u32
- state reaction_invoked_correctly: bool(false)
+ input in_: u32
+ state reaction_invoked_correctly: bool(false)
reaction(in_) {=
let current_tag = ctx.get_tag();
diff --git a/test/known-good/Rust/src/StopCleanup.txt b/test/known-good/Rust/src/StopCleanup.txt
index 554babe4f..d1c8e685e 100644
--- a/test/known-good/Rust/src/StopCleanup.txt
+++ b/test/known-good/Rust/src/StopCleanup.txt
@@ -2,7 +2,7 @@
target Rust
reactor Sender {
- output out: u32
+ output out: u32
reaction(startup) -> out {=
assert_tag_is!(ctx, (T0, 0));
@@ -12,7 +12,7 @@
}
reactor Consumer {
- input in_: u32
+ input in_: u32
reaction(shutdown) in_ {=
assert!(ctx.get(in_).is_none(), "Port should have been cleaned up before shutdown");
diff --git a/test/known-good/Rust/src/StopDuringStartup.txt b/test/known-good/Rust/src/StopDuringStartup.txt
index 8a601c9b5..817633690 100644
--- a/test/known-good/Rust/src/StopDuringStartup.txt
+++ b/test/known-good/Rust/src/StopDuringStartup.txt
@@ -1,6 +1,6 @@
target Rust {
- timeout: 30 msec
+ timeout: 30 msec
}
main reactor {
diff --git a/test/known-good/Rust/src/StopIdempotence.txt b/test/known-good/Rust/src/StopIdempotence.txt
index 3f76cd149..8a62be2b4 100644
--- a/test/known-good/Rust/src/StopIdempotence.txt
+++ b/test/known-good/Rust/src/StopIdempotence.txt
@@ -1,10 +1,10 @@
target Rust {
- timeout: 30 msec
+ timeout: 30 msec
}
main reactor StopIdempotence {
- state count: u32(0)
+ state count: u32(0)
reaction(startup) {=
ctx.request_stop(Asap);
diff --git a/test/known-good/Rust/src/StopTimeout.txt b/test/known-good/Rust/src/StopTimeout.txt
index 8a52ee86e..4cd504207 100644
--- a/test/known-good/Rust/src/StopTimeout.txt
+++ b/test/known-good/Rust/src/StopTimeout.txt
@@ -3,7 +3,7 @@
target Rust {
- timeout: 30 msec
+ timeout: 30 msec
}
main reactor StopTimeout {
diff --git a/test/known-good/Rust/src/StopTimeoutExact.txt b/test/known-good/Rust/src/StopTimeoutExact.txt
index 6f0042440..f9ef48023 100644
--- a/test/known-good/Rust/src/StopTimeoutExact.txt
+++ b/test/known-good/Rust/src/StopTimeoutExact.txt
@@ -3,13 +3,13 @@
target Rust {
- timeout: 50 msec
+ timeout: 50 msec
}
main reactor StopTimeoutExact {
timer t(0, 10 msec)
- state reacted_on_shutdown: bool(false)
+ state reacted_on_shutdown: bool(false)
reaction(t) {=
if ctx.get_tag() == tag!(T0 + 50 ms) {
diff --git a/test/known-good/Rust/src/StopTopology.txt b/test/known-good/Rust/src/StopTopology.txt
index 56e204324..3380b69df 100644
--- a/test/known-good/Rust/src/StopTopology.txt
+++ b/test/known-good/Rust/src/StopTopology.txt
@@ -1,11 +1,11 @@
target Rust {
- timeout: 30 msec
+ timeout: 30 msec
}
main reactor StopTopology {
timer end(30 msec)
- state count: u32
+ state count: u32
reaction(end) {=
assert_eq!(self.count, 0);
diff --git a/test/known-good/Rust/src/StructAsState.txt b/test/known-good/Rust/src/StructAsState.txt
index 4220fe09d..275de4cb4 100644
--- a/test/known-good/Rust/src/StructAsState.txt
+++ b/test/known-good/Rust/src/StructAsState.txt
@@ -5,8 +5,8 @@
main reactor StructAsState {
preamble {=
struct Hello {
- name: String,
- value: i32,
+ name: String,
+ value: i32,
}
=}
@@ -15,7 +15,7 @@
- state s: Hello({= Hello { name: "Earth".into(), value: 42 } =})
+ state s: Hello({= Hello { name: "Earth".into(), value: 42 } =})
reaction(startup) {=
println!("State s.name=\"{}\", s.value={}.", self.s.name, self.s.value);
diff --git a/test/known-good/Rust/src/StructAsType.txt b/test/known-good/Rust/src/StructAsType.txt
index 0961719fe..565992940 100644
--- a/test/known-good/Rust/src/StructAsType.txt
+++ b/test/known-good/Rust/src/StructAsType.txt
@@ -2,25 +2,25 @@
target Rust
reactor Source {
- output out: Hello
+ output out: Hello
preamble {=
pub struct Hello {
- pub name: String,
- pub value: i32,
+ pub name: String,
+ pub value: i32,
}
=}
reaction(startup) -> out {=
- ctx.set(out, Hello { name: "Earth".into(), value: 42 })
+ ctx.set(out, Hello { name: "Earth".into(), value: 42 })
=}
}
-reactor Print(expected: i32(42)) {
- input inp: {= super::source::Hello =}
- state expected: i32(expected)
+reactor Print(expected: i32(42)) {
+ input inp: {= super::source::Hello =}
+ state expected: i32(expected)
reaction(inp) {=
ctx.use_ref_opt(inp, |hello| {
diff --git a/test/known-good/Rust/src/TimeState.txt b/test/known-good/Rust/src/TimeState.txt
index 5e54b08c4..11971081b 100644
--- a/test/known-good/Rust/src/TimeState.txt
+++ b/test/known-good/Rust/src/TimeState.txt
@@ -1,7 +1,7 @@
target Rust
reactor Foo {
- state baz: time(500 msec)
+ state baz: time(500 msec)
reaction(startup) {= assert_eq!(500, self.baz.as_millis()); =}
}
diff --git a/test/known-good/Rust/src/TimerDefaults.txt b/test/known-good/Rust/src/TimerDefaults.txt
index a25e1bb04..f16f5b23c 100644
--- a/test/known-good/Rust/src/TimerDefaults.txt
+++ b/test/known-good/Rust/src/TimerDefaults.txt
@@ -1,7 +1,7 @@
target Rust
main reactor TimerDefaults {
- state i: i32(0)
+ state i: i32(0)
timer t
reaction(t) {=
diff --git a/test/known-good/Rust/src/TimerIsPresent.txt b/test/known-good/Rust/src/TimerIsPresent.txt
index 0f66315ce..7575c1411 100644
--- a/test/known-good/Rust/src/TimerIsPresent.txt
+++ b/test/known-good/Rust/src/TimerIsPresent.txt
@@ -1,6 +1,6 @@
target Rust {
- timeout: 7 msec
+ timeout: 7 msec
}
main reactor {
@@ -8,8 +8,8 @@
timer b(1 msec, 5 msec)
timer c(1 msec)
- state success: bool(false)
- state tick: u32(0)
+ state success: bool(false)
+ state tick: u32(0)
reaction(startup, a, b, c) {=
match self.tick {
diff --git a/test/known-good/Rust/src/TimerPeriodic.txt b/test/known-good/Rust/src/TimerPeriodic.txt
index 28e82158d..2f779120b 100644
--- a/test/known-good/Rust/src/TimerPeriodic.txt
+++ b/test/known-good/Rust/src/TimerPeriodic.txt
@@ -1,9 +1,9 @@
target Rust {
- timeout: 15 msec
+ timeout: 15 msec
}
main reactor TimerPeriodic {
- state i: i32(0)
+ state i: i32(0)
timer t2(0, 3 msec)
reaction(t2) {=
diff --git a/test/known-good/Rust/src/Timers.txt b/test/known-good/Rust/src/Timers.txt
index a9496e37c..089df2a17 100644
--- a/test/known-good/Rust/src/Timers.txt
+++ b/test/known-good/Rust/src/Timers.txt
@@ -1,12 +1,12 @@
target Rust {
- timeout: 2 sec
+ timeout: 2 sec
}
main reactor Timers {
timer t(0, 1 sec)
timer t2(0, 2 sec)
- state counter: i32(0)
+ state counter: i32(0)
reaction(t2) {= self.counter += 2; =}
diff --git a/test/known-good/Rust/src/TypeVarLengthList.txt b/test/known-good/Rust/src/TypeVarLengthList.txt
index b6fcda019..0820e6319 100644
--- a/test/known-good/Rust/src/TypeVarLengthList.txt
+++ b/test/known-good/Rust/src/TypeVarLengthList.txt
@@ -3,7 +3,7 @@
main reactor TypeVarLengthList {
- state l0: i32[]({= Vec::new() =})
+ state l0: i32[]({= Vec::new() =})
@@ -11,6 +11,6 @@
- state l1: i32[](1, 2)
+ state l1: i32[](1, 2)
}
diff --git a/test/known-good/Rust/src/concurrent/AsyncCallback.txt b/test/known-good/Rust/src/concurrent/AsyncCallback.txt
index d46f588ac..71ba21990 100644
--- a/test/known-good/Rust/src/concurrent/AsyncCallback.txt
+++ b/test/known-good/Rust/src/concurrent/AsyncCallback.txt
@@ -1,20 +1,20 @@
target Rust {
- timeout: 1000 ms,
- cargo-features: ["cli"]
+ timeout: 1000 ms,
+ cargo-features: ["cli"]
}
-main reactor AsyncCallback(period: time(10 msec)) {
+main reactor AsyncCallback(period: time(10 msec)) {
preamble {= use std::thread; =}
timer t(0, period)
- state thread: Option<thread::JoinHandle>
- state expected_time: time(period)
- state period: time(period)
- state toggle: bool(false)
+ state thread: Option<thread::JoinHandle>
+ state expected_time: time(period)
+ state period: time(period)
+ state toggle: bool(false)
physical action act
- state i: u32(0)
+ state i: u32(0)
reaction(t) -> act {=
let act = act.clone();
diff --git a/test/known-good/Rust/src/concurrent/Workers.txt b/test/known-good/Rust/src/concurrent/Workers.txt
index 76e2ca7ee..280006e3b 100644
--- a/test/known-good/Rust/src/concurrent/Workers.txt
+++ b/test/known-good/Rust/src/concurrent/Workers.txt
@@ -1,5 +1,5 @@
target Rust {
- workers: 16
+ workers: 16
}
main reactor {
diff --git a/test/known-good/Rust/src/generics/CtorParamGeneric.txt b/test/known-good/Rust/src/generics/CtorParamGeneric.txt
index cbe0d3d9c..496621a89 100644
--- a/test/known-good/Rust/src/generics/CtorParamGeneric.txt
+++ b/test/known-good/Rust/src/generics/CtorParamGeneric.txt
@@ -1,11 +1,11 @@
target Rust
-reactor Generic<{= T: Default + Eq + Sync + std::fmt::Debug =}>(
- value: T({= Default::default() =})
+reactor Generic<{= T: Default + Eq + Sync + std::fmt::Debug =}>(
+ value: T({= Default::default() =})
) {
- input in: T
- state v: T(value)
+ input in: T
+ state v: T(value)
reaction(in) {=
ctx.use_ref_opt(r
diff --git a/test/known-good/Rust/src/generics/CtorParamGenericInst.txt b/test/known-good/Rust/src/generics/CtorParamGenericInst.txt
index 9660f7404..d36dfd838 100644
--- a/test/known-good/Rust/src/generics/CtorParamGenericInst.txt
+++ b/test/known-good/Rust/src/generics/CtorParamGenericInst.txt
@@ -3,12 +3,12 @@
target Rust
reactor Generic2<
- {= T: Default + Eq + Sync + std::fmt::Debug + Send + 'static =}
+ {= T: Default + Eq + Sync + std::fmt::Debug + Send + 'static =}
>(
- value: T({= Default::default() =})
+ value: T({= Default::default() =})
) {
- input in: T
- state v: T(value)
+ input in: T
+ state v: T(value)
reaction(in) {=
ctx.use_ref_opt(r
@@ -19,11 +19,11 @@
}
reactor Generic<
- {= T: Default + Eq + Sync + std::fmt::Debug + Copy + Send + 'static =}
+ {= T: Default + Eq + Sync + std::fmt::Debug + Copy + Send + 'static =}
>(
- value: T({= Default::default() =})
+ value: T({= Default::default() =})
) {
- input in: T
+ input in: T
inner = new Generic2(value = value)
diff --git a/test/known-good/Rust/src/generics/GenericComplexType.txt b/test/known-good/Rust/src/generics/GenericComplexType.txt
index 8e6756b55..cb830df3c 100644
--- a/test/known-good/Rust/src/generics/GenericComplexType.txt
+++ b/test/known-good/Rust/src/generics/GenericComplexType.txt
@@ -2,8 +2,8 @@
target Rust
reactor R {
- input in: Vec<time>
- output out: Vec<time>
+ input in: Vec<time>
+ output out: Vec<time>
in -> out
diff --git a/test/known-good/Rust/src/generics/GenericReactor.txt b/test/known-good/Rust/src/generics/GenericReactor.txt
index 8e150cd3e..f9d1e8009 100644
--- a/test/known-good/Rust/src/generics/GenericReactor.txt
+++ b/test/known-good/Rust/src/generics/GenericReactor.txt
@@ -1,15 +1,15 @@
target Rust
-reactor Box<{= T: Sync =}> {
- input inp: T
- output out: T
+reactor Box<{= T: Sync =}> {
+ input inp: T
+ output out: T
inp -> out
}
main reactor {
- state done: bool(false)
+ state done: bool(false)
box0 = new Box()
box1 = new Box()
diff --git a/test/known-good/Rust/src/lib/Imported.txt b/test/known-good/Rust/src/lib/Imported.txt
index 75a9247ef..ce675821e 100644
--- a/test/known-good/Rust/src/lib/Imported.txt
+++ b/test/known-good/Rust/src/lib/Imported.txt
@@ -5,7 +5,7 @@
import ImportedAgain from "ImportedAgain.lf"
reactor Imported {
- input x: u32
+ input x: u32
a = new ImportedAgain()
reaction(x) -> a.x {= ctx.set(a__x, ctx.get(x).unwrap()); =}
diff --git a/test/known-good/Rust/src/lib/ImportedAgain.txt b/test/known-good/Rust/src/lib/ImportedAgain.txt
index ec3c5e601..e48273027 100644
--- a/test/known-good/Rust/src/lib/ImportedAgain.txt
+++ b/test/known-good/Rust/src/lib/ImportedAgain.txt
@@ -3,7 +3,7 @@
target Rust
reactor ImportedAgain {
- input x: u32
+ input x: u32
reaction(x) {=
assert_eq!(Some(42), ctx.get(x));
diff --git a/test/known-good/Rust/src/lib/SomethingWithAPreamble.txt b/test/known-good/Rust/src/lib/SomethingWithAPreamble.txt
index cfbfcb24d..ef0f09cf4 100644
--- a/test/known-good/Rust/src/lib/SomethingWithAPreamble.txt
+++ b/test/known-good/Rust/src/lib/SomethingWithAPreamble.txt
@@ -3,7 +3,7 @@
target Rust
reactor SomethingWithAPreamble {
- input a: u32
+ input a: u32
preamble {=
pub fn some_fun() -> u32 {
4
diff --git a/test/known-good/Rust/src/multiport/ConnectionToSelfBank.txt b/test/known-good/Rust/src/multiport/ConnectionToSelfBank.txt
index 22e4fe676..7a607d181 100644
--- a/test/known-good/Rust/src/multiport/ConnectionToSelfBank.txt
+++ b/test/known-good/Rust/src/multiport/ConnectionToSelfBank.txt
@@ -1,8 +1,8 @@
target Rust
-reactor Node(bank_index: usize(0), num_nodes: usize(4)) {
- input[num_nodes] in: usize
- output out: usize
+reactor Node(bank_index: usize(0), num_nodes: usize(4)) {
+ input[num_nodes] in: usize
+ output out: usize
state bank_index(bank_index)
state num_nodes(num_nodes)
@@ -15,8 +15,8 @@
=}
}
-main reactor(num_nodes: usize(4)) {
- nodes = new[num_nodes] Node(num_nodes = num_nodes)
+main reactor(num_nodes: usize(4)) {
+ nodes = new[num_nodes] Node(num_nodes = num_nodes)
(nodes.out)+ -> nodes.in
}
diff --git a/test/known-good/Rust/src/multiport/ConnectionToSelfMultiport.txt b/test/known-good/Rust/src/multiport/ConnectionToSelfMultiport.txt
index 1c907cb2b..86b4faf86 100644
--- a/test/known-good/Rust/src/multiport/ConnectionToSelfMultiport.txt
+++ b/test/known-good/Rust/src/multiport/ConnectionToSelfMultiport.txt
@@ -1,9 +1,9 @@
target Rust
-reactor Node(num_nodes: usize(4)) {
- input[num_nodes] in: usize
- output[num_nodes] out: usize
+reactor Node(num_nodes: usize(4)) {
+ input[num_nodes] in: usize
+ output[num_nodes] out: usize
state num_nodes(num_nodes)
reaction(startup) -> out {=
@@ -19,7 +19,7 @@
=}
}
-main reactor(num_nodes: usize(4)) {
+main reactor(num_nodes: usize(4)) {
nodes = new Node(num_nodes = num_nodes)
nodes.out -> nodes.in
}
diff --git a/test/known-good/Rust/src/multiport/CycledLhs_SelfLoop.txt b/test/known-good/Rust/src/multiport/CycledLhs_SelfLoop.txt
index 75c4b1b01..3c385f3de 100644
--- a/test/known-good/Rust/src/multiport/CycledLhs_SelfLoop.txt
+++ b/test/known-good/Rust/src/multiport/CycledLhs_SelfLoop.txt
@@ -1,14 +1,14 @@
target Rust {
- timeout: 16 usec
+ timeout: 16 usec
}
reactor Test {
- output out: u32
- input[2] in: u32
- logical action act: u32
- state last: u32(1)
+ output out: u32
+ input[2] in: u32
+ logical action act: u32
+ state last: u32(1)
reaction(startup) -> act {=
ctx.schedule_with_v(act, Some(1), after!(1 us));
@@ -17,7 +17,7 @@
reaction(act) -> out {= ctx.set_opt(out, ctx.get(act)); =}
reaction(in) -> act {=
- let sum: u32 = r
+ let sum: u32 = r
println!("Sum of received: {}", sum);
assert_eq!(self.last * 2, sum);
self.last = sum;
diff --git a/test/known-good/Rust/src/multiport/CycledLhs_Single.txt b/test/known-good/Rust/src/multiport/CycledLhs_Single.txt
index 7a174fbe2..5553798bb 100644
--- a/test/known-good/Rust/src/multiport/CycledLhs_Single.txt
+++ b/test/known-good/Rust/src/multiport/CycledLhs_Single.txt
@@ -1,14 +1,14 @@
target Rust {
- timeout: 16 usec
+ timeout: 16 usec
}
reactor Test {
- output[2] out: u32
- input[4] in: u32
+ output[2] out: u32
+ input[4] in: u32
logical action act: {= (u32, u32) =}
- state last: u32(1)
+ state last: u32(1)
reaction(startup) -> act {=
ctx.schedule_with_v(act, Some((0, 1)), after!(1 us));
@@ -25,7 +25,7 @@
let fib_n_1 = ctx.get(&r
let fib_n_2 = ctx.get(&r
- let fib_n: u32 = fib_n_2 + fib_n_1;
+ let fib_n: u32 = fib_n_2 + fib_n_1;
assert_eq!(ctx.get(&r
assert_eq!(ctx.get(&r
println!("{} + {} = {}", fib_n_2, fib_n_1, fib_n);
diff --git a/test/known-good/Rust/src/multiport/FullyConnected.txt b/test/known-good/Rust/src/multiport/FullyConnected.txt
index 93689a27c..6536682e6 100644
--- a/test/known-good/Rust/src/multiport/FullyConnected.txt
+++ b/test/known-good/Rust/src/multiport/FullyConnected.txt
@@ -1,15 +1,15 @@
target Rust
-reactor Left(bank_index: usize(0)) {
- output out: usize
+reactor Left(bank_index: usize(0)) {
+ output out: usize
state bank_index(bank_index)
reaction(startup) -> out {= ctx.set(out, self.bank_index); =}
}
-reactor Right(bank_index: usize(0), num_nodes: usize(4)) {
- input[num_nodes] in: usize
+reactor Right(bank_index: usize(0), num_nodes: usize(4)) {
+ input[num_nodes] in: usize
state num_nodes(num_nodes)
reaction(in) {=
@@ -19,9 +19,9 @@
=}
}
-main reactor(num_nodes: usize(4)) {
- left = new[num_nodes] Left()
- right = new[num_nodes] Right(num_nodes = num_nodes)
+main reactor(num_nodes: usize(4)) {
+ left = new[num_nodes] Left()
+ right = new[num_nodes] Right(num_nodes = num_nodes)
(left.out)+ -> right.in
}
diff --git a/test/known-good/Rust/src/multiport/FullyConnectedAddressable.txt b/test/known-good/Rust/src/multiport/FullyConnectedAddressable.txt
index db6bd5612..57c3974e9 100644
--- a/test/known-good/Rust/src/multiport/FullyConnectedAddressable.txt
+++ b/test/known-good/Rust/src/multiport/FullyConnectedAddressable.txt
@@ -1,14 +1,14 @@
target Rust
-reactor Node(bank_index: usize(0), num_nodes: usize(4)) {
+reactor Node(bank_index: usize(0), num_nodes: usize(4)) {
state bank_index(bank_index)
state num_nodes(num_nodes)
- input[num_nodes] inpt: usize
- output[num_nodes] out: usize
+ input[num_nodes] inpt: usize
+ output[num_nodes] out: usize
- state received: bool(false)
+ state received: bool(false)
reaction(startup) -> out {=
println!("Hello from node {}!", self.bank_index);
@@ -43,11 +43,11 @@
=}
}
-main reactor(num_nodes: usize(4)) {
- nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
+main reactor(num_nodes: usize(4)) {
+ nodes1 = new[num_nodes] Node(num_nodes = num_nodes)
nodes1.out -> interleaved (nodes1.inpt)
- nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
+ nodes2 = new[num_nodes] Node(num_nodes = num_nodes)
interleaved (nodes2.out) -> nodes2.inpt
}
diff --git a/test/known-good/Rust/src/multiport/MultiportFromBank.txt b/test/known-good/Rust/src/multiport/MultiportFromBank.txt
index 754a17180..2e21b9e1e 100644
--- a/test/known-good/Rust/src/multiport/MultiportFromBank.txt
+++ b/test/known-good/Rust/src/multiport/MultiportFromBank.txt
@@ -1,17 +1,17 @@
target Rust {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(bank_index: usize(0)) {
- output out: usize
+reactor Source(bank_index: usize(0)) {
+ output out: usize
state bank_index(bank_index)
reaction(startup) -> out {= ctx.set(out, self.bank_index); =}
}
-reactor Destination(port_width: usize(2)) {
- input[port_width] in: usize
+reactor Destination(port_width: usize(2)) {
+ input[port_width] in: usize
reaction(in) {=
for (i, port) in r
@@ -22,7 +22,7 @@
}
main reactor {
- a = new[4] Source()
+ a = new[4] Source()
b = new Destination(port_width = 4)
a.out -> b.in
}
diff --git a/test/known-good/Rust/src/multiport/MultiportFromHierarchy.txt b/test/known-good/Rust/src/multiport/MultiportFromHierarchy.txt
index 9ae774d7e..b5de6bf3f 100644
--- a/test/known-good/Rust/src/multiport/MultiportFromHierarchy.txt
+++ b/test/known-good/Rust/src/multiport/MultiportFromHierarchy.txt
@@ -1,13 +1,13 @@
target Rust {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
- output[4] out: u32
- state s: u32(0)
+ output[4] out: u32
+ state s: u32(0)
reaction(t) -> out {=
for chan in out {
@@ -18,11 +18,11 @@
}
reactor Destination {
- state s: u32(6)
- input[4] in: u32
+ state s: u32(6)
+ input[4] in: u32
reaction(in) {=
- let sum: u32 = r
+ let sum: u32 = r
println!("Sum of received: {}", sum);
assert_eq!(sum, self.s);
self.s += 16;
@@ -35,13 +35,13 @@
}
reactor Container {
- output[4] out: u32
+ output[4] out: u32
src = new InsideContainer()
src.out -> out
}
reactor InsideContainer {
- output[4] out: u32
+ output[4] out: u32
src = new Source()
src.out -> out
}
diff --git a/test/known-good/Rust/src/multiport/MultiportIn.txt b/test/known-good/Rust/src/multiport/MultiportIn.txt
index 17e499711..6f6437beb 100644
--- a/test/known-good/Rust/src/multiport/MultiportIn.txt
+++ b/test/known-good/Rust/src/multiport/MultiportIn.txt
@@ -1,14 +1,14 @@
target Rust {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
reactor Source {
timer t(0, 200 msec)
- output out: u32
- state s: u32(0)
+ output out: u32
+ state s: u32(0)
reaction(t) -> out {=
ctx.set(out, self.s);
@@ -17,8 +17,8 @@
}
reactor Computation {
- input in: u32
- output out: u32
+ input in: u32
+ output out: u32
reaction(in) -> out {=
ctx.set(out, ctx.get(r
@@ -26,11 +26,11 @@
}
reactor Destination {
- state s: u32(0)
- input[4] in: u32
+ state s: u32(0)
+ input[4] in: u32
reaction(in) {=
- let sum: u32 = r
+ let sum: u32 = r
println!("Sum of received: {}", sum);
assert_eq!(sum, self.s);
self.s += 4;
diff --git a/test/known-good/Rust/src/multiport/MultiportOut.txt b/test/known-good/Rust/src/multiport/MultiportOut.txt
index c5f94ccfe..2588a2b3c 100644
--- a/test/known-good/Rust/src/multiport/MultiportOut.txt
+++ b/test/known-good/Rust/src/multiport/MultiportOut.txt
@@ -1,12 +1,12 @@
target Rust {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
- output[4] out: u32
- state s: u32(0)
+ output[4] out: u32
+ state s: u32(0)
reaction(t) -> out {=
for i in 0..out.len() {
@@ -17,8 +17,8 @@
}
reactor Computation {
- input in: u32
- output out: u32
+ input in: u32
+ output out: u32
reaction(in) -> out {=
@@ -30,8 +30,8 @@
}
reactor Destination {
- state s: u32(0)
- input[4] in: u32
+ state s: u32(0)
+ input[4] in: u32
reaction(in) {=
let mut sum = 0;
diff --git a/test/known-good/Rust/src/multiport/MultiportToBank.txt b/test/known-good/Rust/src/multiport/MultiportToBank.txt
index b09943391..221bff330 100644
--- a/test/known-good/Rust/src/multiport/MultiportToBank.txt
+++ b/test/known-good/Rust/src/multiport/MultiportToBank.txt
@@ -2,7 +2,7 @@
target Rust
reactor Source {
- output[4] out: usize
+ output[4] out: usize
reaction(startup) -> out {=
for (i, out) in out.into_iter().enumerate() {
@@ -11,11 +11,11 @@
=}
}
-reactor Sink(bank_index: usize(0)) {
- input in: usize
+reactor Sink(bank_index: usize(0)) {
+ input in: usize
state bank_index(bank_index)
- state asserts_done: u32(0)
+ state asserts_done: u32(0)
reaction(in) {=
assert_eq!(ctx.get(r
@@ -30,7 +30,7 @@
main reactor MultiportToBank {
source = new Source()
- sink = new[4] Sink()
+ sink = new[4] Sink()
source.out -> sink.in
}
diff --git a/test/known-good/Rust/src/multiport/MultiportToBankHierarchy.txt b/test/known-good/Rust/src/multiport/MultiportToBankHierarchy.txt
index e6add2092..627ad4fee 100644
--- a/test/known-good/Rust/src/multiport/MultiportToBankHierarchy.txt
+++ b/test/known-good/Rust/src/multiport/MultiportToBankHierarchy.txt
@@ -1,10 +1,10 @@
target Rust {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
- output[3] out: usize
+ output[3] out: usize
reaction(startup) -> out {=
for (i, out) in out.into_iter().enumerate() {
@@ -13,11 +13,11 @@
=}
}
-reactor Destination(bank_index: usize(0)) {
- input in: usize
+reactor Destination(bank_index: usize(0)) {
+ input in: usize
state bank_index(bank_index)
- state asserts_done: u32(0)
+ state asserts_done: u32(0)
reaction(in) {=
assert_eq!(ctx.get(r
@@ -31,8 +31,8 @@
}
reactor Container {
- input[3] in: usize
- c = new[3] Destination()
+ input[3] in: usize
+ c = new[3] Destination()
in -> c.in
}
diff --git a/test/known-good/Rust/src/multiport/MultiportToMultiport.txt b/test/known-good/Rust/src/multiport/MultiportToMultiport.txt
index 7e3da0f71..7c788729b 100644
--- a/test/known-good/Rust/src/multiport/MultiportToMultiport.txt
+++ b/test/known-good/Rust/src/multiport/MultiportToMultiport.txt
@@ -2,7 +2,7 @@
target Rust
reactor Source {
- output[4] out: usize
+ output[4] out: usize
reaction(startup) -> out {=
for (i, out) in out.into_iter().enumerate() {
@@ -12,7 +12,7 @@
}
reactor Sink {
- input[4] in: usize
+ input[4] in: usize
reaction(in) {=
for (i, port) in r
diff --git a/test/known-good/Rust/src/multiport/MultiportToMultiport2.txt b/test/known-good/Rust/src/multiport/MultiportToMultiport2.txt
index 1106ec065..74a9b0da3 100644
--- a/test/known-good/Rust/src/multiport/MultiportToMultiport2.txt
+++ b/test/known-good/Rust/src/multiport/MultiportToMultiport2.txt
@@ -2,8 +2,8 @@
target Rust
-reactor Source(width: usize(2)) {
- output[width] out: usize
+reactor Source(width: usize(2)) {
+ output[width] out: usize
reaction(startup) -> out {=
for (i, out) in out.iter_mut().enumerate() {
@@ -12,8 +12,8 @@
=}
}
-reactor Destination(width: usize(2)) {
- input[width] in: usize
+reactor Destination(width: usize(2)) {
+ input[width] in: usize
reaction(in) {=
for (i, v) in r
diff --git a/test/known-good/Rust/src/multiport/ReadOutputOfContainedBank.txt b/test/known-good/Rust/src/multiport/ReadOutputOfContainedBank.txt
index b4d5d63d8..905ffae85 100644
--- a/test/known-good/Rust/src/multiport/ReadOutputOfContainedBank.txt
+++ b/test/known-good/Rust/src/multiport/ReadOutputOfContainedBank.txt
@@ -2,17 +2,17 @@
target Rust
-reactor Contained(bank_index: usize(0)) {
+reactor Contained(bank_index: usize(0)) {
state bank_index(bank_index)
- output out: usize
+ output out: usize
reaction(startup) -> out {= ctx.set(out, 42 * self.bank_index); =}
}
main reactor {
- c = new[4] Contained()
- state count: usize(0)
+ c = new[4] Contained()
+ state count: usize(0)
reaction(startup) c.out {=
for (i, chan) in c__out.iter().enumerate() {
diff --git a/test/known-good/Rust/src/multiport/WidthWithParameter.txt b/test/known-good/Rust/src/multiport/WidthWithParameter.txt
index f1e8df5b5..cafe7bf52 100644
--- a/test/known-good/Rust/src/multiport/WidthWithParameter.txt
+++ b/test/known-good/Rust/src/multiport/WidthWithParameter.txt
@@ -1,7 +1,7 @@
target Rust
-reactor Some(value: usize(30)) {
- output[value] finished: unit
+reactor Some(value: usize(30)) {
+ output[value] finished: unit
reaction(startup) -> finished {=
for p in finished {
diff --git a/test/known-good/Rust/src/multiport/WriteInputOfContainedBank.txt b/test/known-good/Rust/src/multiport/WriteInputOfContainedBank.txt
index e4e6e064e..920f81219 100644
--- a/test/known-good/Rust/src/multiport/WriteInputOfContainedBank.txt
+++ b/test/known-good/Rust/src/multiport/WriteInputOfContainedBank.txt
@@ -1,11 +1,11 @@
target Rust
-reactor Contained(bank_index: usize(0)) {
+reactor Contained(bank_index: usize(0)) {
state bank_index(bank_index)
- input inpt: usize
- state count: usize(0)
+ input inpt: usize
+ state count: usize(0)
reaction(inpt) {=
let result = ctx.get(inpt).unwrap();
@@ -20,7 +20,7 @@
}
main reactor {
- c = new[4] Contained()
+ c = new[4] Contained()
reaction(startup) -> c.inpt {=
for i in 0..c__inpt.len() {
diff --git a/test/known-good/Rust/src/target/BuildProfileRelease.txt b/test/known-good/Rust/src/target/BuildProfileRelease.txt
index a0f667b76..3d9e839ad 100644
--- a/test/known-good/Rust/src/target/BuildProfileRelease.txt
+++ b/test/known-good/Rust/src/target/BuildProfileRelease.txt
@@ -1,7 +1,7 @@
target Rust {
- build-type: "Release"
+ build-type: "Release"
}
main reactor {
diff --git a/test/known-good/Rust/src/target/CargoDependency.txt b/test/known-good/Rust/src/target/CargoDependency.txt
index fecc3c00a..dad68f0a6 100644
--- a/test/known-good/Rust/src/target/CargoDependency.txt
+++ b/test/known-good/Rust/src/target/CargoDependency.txt
@@ -1,10 +1,10 @@
target Rust {
- cargo-dependencies: {
- rand: "0.8",
- regex: {
- version: "1"
+ cargo-dependencies: {
+ rand: "0.8",
+ regex: {
+ version: "1"
}
}
}
diff --git a/test/known-good/Rust/src/target/CargoDependencyOnRuntime.txt b/test/known-good/Rust/src/target/CargoDependencyOnRuntime.txt
index e5d42cdf8..ce99707f9 100644
--- a/test/known-good/Rust/src/target/CargoDependencyOnRuntime.txt
+++ b/test/known-good/Rust/src/target/CargoDependencyOnRuntime.txt
@@ -1,9 +1,9 @@
target Rust {
- cargo-dependencies: {
- reactor_rt: {
- features: ["parallel-runtime"]
+ cargo-dependencies: {
+ reactor_rt: {
+ features: ["parallel-runtime"]
}
}
}
diff --git a/test/known-good/Rust/src/target/CliFeature.txt b/test/known-good/Rust/src/target/CliFeature.txt
index 67d8a728d..6af8458f4 100644
--- a/test/known-good/Rust/src/target/CliFeature.txt
+++ b/test/known-good/Rust/src/target/CliFeature.txt
@@ -1,10 +1,10 @@
target Rust {
- build-type: Release,
- cargo-features: ["cli"]
+ build-type: Release,
+ cargo-features: ["cli"]
}
-main reactor CliFeature(size: u32(4), t: time(4 sec)) {
+main reactor CliFeature(size: u32(4), t: time(4 sec)) {
reaction(startup) {= println!("success"); =}
}
diff --git a/test/known-good/Rust/src/target/MainParameterCanBeExpression.txt b/test/known-good/Rust/src/target/MainParameterCanBeExpression.txt
index d215b885b..142795a54 100644
--- a/test/known-good/Rust/src/target/MainParameterCanBeExpression.txt
+++ b/test/known-good/Rust/src/target/MainParameterCanBeExpression.txt
@@ -1,9 +1,9 @@
target Rust {
- build-type: Release,
- cargo-features: ["cli"]
+ build-type: Release,
+ cargo-features: ["cli"]
}
-main reactor(size: u32({= 1u32 << 23 =})) {
+main reactor(size: u32({= 1u32 << 23 =})) {
state s(size)
reaction(startup) {=
diff --git a/test/known-good/Rust/src/target/ModuleDependency.txt b/test/known-good/Rust/src/target/ModuleDependency.txt
index 14f273cff..2c67917c9 100644
--- a/test/known-good/Rust/src/target/ModuleDependency.txt
+++ b/test/known-good/Rust/src/target/ModuleDependency.txt
@@ -1,6 +1,6 @@
target Rust {
- rust-include: "some_module.rs"
+ rust-include: "some_module.rs"
}
main reactor {
diff --git a/test/known-good/Rust/src/target/ModuleDependencyWithDirModule.txt b/test/known-good/Rust/src/target/ModuleDependencyWithDirModule.txt
index f2716fa72..47322a945 100644
--- a/test/known-good/Rust/src/target/ModuleDependencyWithDirModule.txt
+++ b/test/known-good/Rust/src/target/ModuleDependencyWithDirModule.txt
@@ -1,6 +1,6 @@
target Rust {
- rust-include: "testmod"
+ rust-include: "testmod"
}
main reactor {
diff --git a/test/known-good/TypeScript/src/ActionDelay.txt b/test/known-good/TypeScript/src/ActionDelay.txt
index 1d27ed3ed..32dda22e5 100644
--- a/test/known-good/TypeScript/src/ActionDelay.txt
+++ b/test/known-good/TypeScript/src/ActionDelay.txt
@@ -2,9 +2,9 @@
target TypeScript
reactor GeneratedDelay {
- input y_in: number
- output y_out: number
- state y_state: number(0)
+ input y_in: number
+ output y_out: number
+ state y_state: number(0)
logical action act(100 msec)
reaction(y_in) -> act {=
@@ -16,13 +16,13 @@
}
reactor Source {
- output out: number
+ output out: number
reaction(startup) -> out {= out = 1; =}
}
reactor Sink {
- input x: number
+ input x: number
reaction(x) {=
const elapsed_logical = util.getElapsedLogicalTime();
diff --git a/test/known-good/TypeScript/src/ActionWithNoReaction.txt b/test/known-good/TypeScript/src/ActionWithNoReaction.txt
index f93a81acc..ec2a64277 100644
--- a/test/known-good/TypeScript/src/ActionWithNoReaction.txt
+++ b/test/known-good/TypeScript/src/ActionWithNoReaction.txt
@@ -2,13 +2,13 @@
target TypeScript {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor foo {
- input x: number
- output y: number
+ input x: number
+ output y: number
logical action a
reaction(x) -> y, a {=
@@ -18,7 +18,7 @@
}
reactor print {
- input x: number
+ input x: number
reaction(x) {=
console.log("Result is " + (x as number));
diff --git a/test/known-good/TypeScript/src/After.txt b/test/known-good/TypeScript/src/After.txt
index 153507b80..465861bcb 100644
--- a/test/known-good/TypeScript/src/After.txt
+++ b/test/known-good/TypeScript/src/After.txt
@@ -1,20 +1,20 @@
target TypeScript {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor Foo {
- input x: number
- output y: number
+ input x: number
+ output y: number
reaction(x) -> y {= y = 2 * (x as number); =}
}
reactor Print {
- state expected_time: time(10 msec)
- input x: number
+ state expected_time: time(10 msec)
+ input x: number
reaction(x) {=
let elapsed_time = util.getElapsedLogicalTime();
diff --git a/test/known-good/TypeScript/src/ArrayAsParameter.txt b/test/known-good/TypeScript/src/ArrayAsParameter.txt
index 26588b952..97cecbd08 100644
--- a/test/known-good/TypeScript/src/ArrayAsParameter.txt
+++ b/test/known-good/TypeScript/src/ArrayAsParameter.txt
@@ -2,8 +2,8 @@
target TypeScript
reactor Source(sequence: {= Array =}({= [0, 1, 2] =})) {
- output out: number
- state count: number(0)
+ output out: number
+ state count: number(0)
logical action next
reaction(startup, next) -> out, next {=
@@ -16,8 +16,8 @@
}
reactor Print {
- input x: number
- state count: number(1)
+ input x: number
+ state count: number(1)
reaction(x) {=
console.log("Received: " + x + ".");
diff --git a/test/known-good/TypeScript/src/ArrayAsType.txt b/test/known-good/TypeScript/src/ArrayAsType.txt
index f80816f19..e6f1c1fc4 100644
--- a/test/known-good/TypeScript/src/ArrayAsType.txt
+++ b/test/known-good/TypeScript/src/ArrayAsType.txt
@@ -15,7 +15,7 @@
=}
}
-reactor Print(scale: number(1)) {
+reactor Print(scale: number(1)) {
input x: {= Array =}
reaction(x) {=
diff --git a/test/known-good/TypeScript/src/ArrayPrint.txt b/test/known-good/TypeScript/src/ArrayPrint.txt
index 88944cb42..43a4e8af7 100644
--- a/test/known-good/TypeScript/src/ArrayPrint.txt
+++ b/test/known-good/TypeScript/src/ArrayPrint.txt
@@ -15,7 +15,7 @@
=}
}
-reactor Print(scale: number(1)) {
+reactor Print(scale: number(1)) {
input x: {= Array =}
reaction(x) {=
diff --git a/test/known-good/TypeScript/src/ArrayScale.txt b/test/known-good/TypeScript/src/ArrayScale.txt
index e217d78fb..2c82c765e 100644
--- a/test/known-good/TypeScript/src/ArrayScale.txt
+++ b/test/known-good/TypeScript/src/ArrayScale.txt
@@ -6,7 +6,7 @@
import Source, Print from "ArrayPrint.lf"
-reactor Scale(scale: number(2)) {
+reactor Scale(scale: number(2)) {
mutable input x: {= Array =}
output out: {= Array =}
diff --git a/test/known-good/TypeScript/src/Composition.txt b/test/known-good/TypeScript/src/Composition.txt
index ee51a8e62..fe1d03164 100644
--- a/test/known-good/TypeScript/src/Composition.txt
+++ b/test/known-good/TypeScript/src/Composition.txt
@@ -1,13 +1,13 @@
target TypeScript {
- timeout: 5 sec
+ timeout: 5 sec
}
-reactor Source(period: time(2 sec)) {
- output y: number
+reactor Source(period: time(2 sec)) {
+ output y: number
timer t(1 sec, period)
- state count: number(0)
+ state count: number(0)
reaction(t) -> y {=
count++;
@@ -16,8 +16,8 @@
}
reactor Test {
- input x: number
- state count: number(0)
+ input x: number
+ state count: number(0)
reaction(x) {=
count++;
diff --git a/test/known-good/TypeScript/src/CompositionAfter.txt b/test/known-good/TypeScript/src/CompositionAfter.txt
index ee06c0133..1690b6f9b 100644
--- a/test/known-good/TypeScript/src/CompositionAfter.txt
+++ b/test/known-good/TypeScript/src/CompositionAfter.txt
@@ -1,14 +1,14 @@
target TypeScript {
- fast: true,
- timeout: 10 sec
+ fast: true,
+ timeout: 10 sec
}
-reactor Source(period: time(2 sec)) {
- output y: number
+reactor Source(period: time(2 sec)) {
+ output y: number
timer t(1 sec, period)
- state count: number(0)
+ state count: number(0)
reaction(t) -> y {=
count++;
@@ -17,8 +17,8 @@
}
reactor Test {
- input x: number
- state count: number(0)
+ input x: number
+ state count: number(0)
reaction(x) {=
count++;
@@ -29,7 +29,7 @@
=}
}
-main reactor(delay: time(5 sec)) {
+main reactor(delay: time(5 sec)) {
s = new Source()
d = new Test()
s.y -> d.x after delay
diff --git a/test/known-good/TypeScript/src/CountTest.txt b/test/known-good/TypeScript/src/CountTest.txt
index f1c9aee58..0a987184d 100644
--- a/test/known-good/TypeScript/src/CountTest.txt
+++ b/test/known-good/TypeScript/src/CountTest.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 3 sec
+ timeout: 3 sec
}
import Count from "lib/Count.lf"
reactor Test {
- input c: number
- state i: number(0)
+ input c: number
+ state i: number(0)
reaction(c) {=
console.log("Received " + c);
diff --git a/test/known-good/TypeScript/src/DanglingOutput.txt b/test/known-good/TypeScript/src/DanglingOutput.txt
index c10548528..6de6f0570 100644
--- a/test/known-good/TypeScript/src/DanglingOutput.txt
+++ b/test/known-good/TypeScript/src/DanglingOutput.txt
@@ -3,15 +3,15 @@
target TypeScript
reactor Source {
- output out: number
+ output out: number
timer t
reaction(t) -> out {= out = 1; =}
}
reactor Gain {
- input x: number
- output out: number
+ input x: number
+ output out: number
reaction(x) -> out {=
console.log("Received " + x);
diff --git a/test/known-good/TypeScript/src/Deadline.txt b/test/known-good/TypeScript/src/Deadline.txt
index ee183f319..8b01d764f 100644
--- a/test/known-good/TypeScript/src/Deadline.txt
+++ b/test/known-good/TypeScript/src/Deadline.txt
@@ -2,13 +2,13 @@
target TypeScript {
- timeout: 4 sec
+ timeout: 4 sec
}
-reactor Source(period: time(2 sec)) {
- output y: number
+reactor Source(period: time(2 sec)) {
+ output y: number
timer t(0, period)
- state count: number(0)
+ state count: number(0)
reaction(t) -> y {=
if (2 * Math.floor(count / 2) != count){
@@ -25,9 +25,9 @@
=}
}
-reactor Destination(timeout: time(1 sec)) {
- input x: number
- state count: number(0)
+reactor Destination(timeout: time(1 sec)) {
+ input x: number
+ state count: number(0)
reaction(x) {=
console.log("Destination receives: " + x);
diff --git a/test/known-good/TypeScript/src/DeadlineHandledAbove.txt b/test/known-good/TypeScript/src/DeadlineHandledAbove.txt
index 419c63f0c..039e66792 100644
--- a/test/known-good/TypeScript/src/DeadlineHandledAbove.txt
+++ b/test/known-good/TypeScript/src/DeadlineHandledAbove.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Deadline(threshold: time(100 msec)) {
- input x: number
- output deadline_violation: boolean
+reactor Deadline(threshold: time(100 msec)) {
+ input x: number
+ output deadline_violation: boolean
reaction(x) -> deadline_violation {=
util.requestErrorStop("ERROR: Deadline violation was not detected!")
@@ -19,7 +19,7 @@
}
main reactor DeadlineHandledAbove {
- state violation_detected: boolean(false)
+ state violation_detected: boolean(false)
d = new Deadline(threshold = 10 msec)
reaction(startup) -> d.x {=
diff --git a/test/known-good/TypeScript/src/DelayInt.txt b/test/known-good/TypeScript/src/DelayInt.txt
index 86960cd28..1f5b4fa13 100644
--- a/test/known-good/TypeScript/src/DelayInt.txt
+++ b/test/known-good/TypeScript/src/DelayInt.txt
@@ -2,10 +2,10 @@
target TypeScript
-reactor Delay(delay: time(100 msec)) {
- input x: number
- output out: number
- logical action a: number
+reactor Delay(delay: time(100 msec)) {
+ input x: number
+ output out: number
+ logical action a: number
reaction(x) -> a {= actions.a.schedule( delay, x as number); =}
@@ -17,9 +17,9 @@
}
reactor Test {
- input x: number
- state start_time: time(0)
- state received_value: boolean(false)
+ input x: number
+ state start_time: time(0)
+ state received_value: boolean(false)
reaction(startup) {=
diff --git a/test/known-good/TypeScript/src/DelayedAction.txt b/test/known-good/TypeScript/src/DelayedAction.txt
index 32f03c67c..cee8fc624 100644
--- a/test/known-good/TypeScript/src/DelayedAction.txt
+++ b/test/known-good/TypeScript/src/DelayedAction.txt
@@ -1,11 +1,11 @@
target TypeScript {
- timeout: 5 sec
+ timeout: 5 sec
}
main reactor DelayedAction {
timer t(0, 1 sec)
logical action a
- state count: number(0)
+ state count: number(0)
reaction(t) -> a {= actions.a.schedule(TimeValue.msec(100), null); =}
diff --git a/test/known-good/TypeScript/src/DelayedReaction.txt b/test/known-good/TypeScript/src/DelayedReaction.txt
index 65b123e89..e57f7a4a1 100644
--- a/test/known-good/TypeScript/src/DelayedReaction.txt
+++ b/test/known-good/TypeScript/src/DelayedReaction.txt
@@ -2,14 +2,14 @@
target TypeScript
reactor Source {
- output out: number
+ output out: number
timer t
reaction(t) -> out {= out = 1; =}
}
reactor Sink {
- input x: number
+ input x: number
reaction(x) {=
let elapsed = util.getElapsedLogicalTime();
diff --git a/test/known-good/TypeScript/src/Determinism.txt b/test/known-good/TypeScript/src/Determinism.txt
index 83c7bda50..528b74917 100644
--- a/test/known-good/TypeScript/src/Determinism.txt
+++ b/test/known-good/TypeScript/src/Determinism.txt
@@ -1,15 +1,15 @@
target TypeScript
reactor Source {
- output y: number
+ output y: number
timer t
reaction(t) -> y {= y = 1; =}
}
reactor Destination {
- input x: number
- input y: number
+ input x: number
+ input y: number
reaction(x, y) {=
let sum = 0;
@@ -27,8 +27,8 @@
}
reactor Pass {
- input x: number
- output y: number
+ input x: number
+ output y: number
reaction(x) -> y {= y = x as number; =}
}
diff --git a/test/known-good/TypeScript/src/DoubleInvocation.txt b/test/known-good/TypeScript/src/DoubleInvocation.txt
index a3611a5c3..755cf78e2 100644
--- a/test/known-good/TypeScript/src/DoubleInvocation.txt
+++ b/test/known-good/TypeScript/src/DoubleInvocation.txt
@@ -6,14 +6,14 @@
target TypeScript {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Ball {
- output position: number
- output velocity: number
- state p: number(200)
+ output position: number
+ output velocity: number
+ state p: number(200)
timer trigger(0, 1 sec)
reaction(trigger) -> position, velocity {=
@@ -24,9 +24,9 @@
}
reactor Print {
- input velocity: number
- input position: number
- state previous: number(-1)
+ input velocity: number
+ input position: number
+ state previous: number(-1)
reaction(startup) {=
console.log("####### Print startup");
diff --git a/test/known-good/TypeScript/src/DoubleReaction.txt b/test/known-good/TypeScript/src/DoubleReaction.txt
index 5dd275c6d..2d40a5dd6 100644
--- a/test/known-good/TypeScript/src/DoubleReaction.txt
+++ b/test/known-good/TypeScript/src/DoubleReaction.txt
@@ -1,14 +1,14 @@
target TypeScript {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: number
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: number
timer t(offset, period)
- state count: number(0)
+ state count: number(0)
reaction(t) -> y {=
count++;
@@ -17,9 +17,9 @@
}
reactor Destination {
- input x: number
- input w: number
- state s: number(2)
+ input x: number
+ input w: number
+ state s: number(2)
reaction(x, w) {=
let sum = 0;
diff --git a/test/known-good/TypeScript/src/DoubleTrigger.txt b/test/known-good/TypeScript/src/DoubleTrigger.txt
index b3af85667..7cfdd3824 100644
--- a/test/known-good/TypeScript/src/DoubleTrigger.txt
+++ b/test/known-good/TypeScript/src/DoubleTrigger.txt
@@ -1,14 +1,14 @@
target TypeScript {
- fast: true,
- timeout: 1 sec
+ fast: true,
+ timeout: 1 sec
}
main reactor DoubleTrigger {
timer t1
timer t2
- state s: number(0)
+ state s: number(0)
reaction(t1, t2) {=
s++;
diff --git a/test/known-good/TypeScript/src/FloatLiteral.txt b/test/known-good/TypeScript/src/FloatLiteral.txt
index 01198a1fe..eaa665965 100644
--- a/test/known-good/TypeScript/src/FloatLiteral.txt
+++ b/test/known-good/TypeScript/src/FloatLiteral.txt
@@ -2,13 +2,13 @@
main reactor {
- state N: number(6.0221409e+23)
- state charge: number(-1.6021766E-19)
- state minus_epsilon: number(-.01e0)
- state expected: number(.964853323188E5)
+ state N: number(6.0221409e+23)
+ state charge: number(-1.6021766E-19)
+ state minus_epsilon: number(-.01e0)
+ state expected: number(.964853323188E5)
reaction(startup) {=
- const F: number = - N * charge;
+ const F: number = - N * charge;
if (Math.abs(F - expected) < Math.abs(minus_epsilon)) {
console.log("The Faraday constant is roughly " + F + ".");
} else {
diff --git a/test/known-good/TypeScript/src/Gain.txt b/test/known-good/TypeScript/src/Gain.txt
index 017a9a662..0eb95a2f5 100644
--- a/test/known-good/TypeScript/src/Gain.txt
+++ b/test/known-good/TypeScript/src/Gain.txt
@@ -1,16 +1,16 @@
target TypeScript
-reactor Scale(scale: number(2)) {
- input x: number
- output y: number
+reactor Scale(scale: number(2)) {
+ input x: number
+ output y: number
reaction(x) -> y {= y = (x as number) * scale; =}
}
reactor Test {
- input x: number
- state received_value: boolean(false)
+ input x: number
+ state received_value: boolean(false)
reaction(x) {=
console.log("Received " + x + ".");
diff --git a/test/known-good/TypeScript/src/GetTime.txt b/test/known-good/TypeScript/src/GetTime.txt
index 7ad4de20c..3c1b27d40 100644
--- a/test/known-good/TypeScript/src/GetTime.txt
+++ b/test/known-good/TypeScript/src/GetTime.txt
@@ -3,7 +3,7 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
main reactor GetTime {
diff --git a/test/known-good/TypeScript/src/Hello.txt b/test/known-good/TypeScript/src/Hello.txt
index 216d2446e..0f5105119 100644
--- a/test/known-good/TypeScript/src/Hello.txt
+++ b/test/known-good/TypeScript/src/Hello.txt
@@ -4,13 +4,13 @@
target TypeScript {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
-reactor Reschedule(period: time(2 sec), message: string("Hello TypeScript")) {
- state count: number(0)
- state previous_time: time(0)
+reactor Reschedule(period: time(2 sec), message: string("Hello TypeScript")) {
+ state count: number(0)
+ state previous_time: time(0)
timer t(1 sec, period)
logical action a
@@ -38,8 +38,8 @@
}
reactor Inside(
- period: time(1 sec),
- message: string("Composite default message.")
+ period: time(1 sec),
+ message: string("Composite default message.")
) {
third_instance = new Reschedule(period = period, message = message)
}
diff --git a/test/known-good/TypeScript/src/Hierarchy.txt b/test/known-good/TypeScript/src/Hierarchy.txt
index 09c1b7b52..f9fd6f924 100644
--- a/test/known-good/TypeScript/src/Hierarchy.txt
+++ b/test/known-good/TypeScript/src/Hierarchy.txt
@@ -2,7 +2,7 @@
target TypeScript
reactor Source {
- output out: number
+ output out: number
timer t
reaction(t) -> out {=
@@ -12,8 +12,8 @@
}
reactor Gain {
- input x: number
- output out: number
+ input x: number
+ output out: number
reaction(x) -> out {=
console.log("Gain received " + x);
@@ -22,7 +22,7 @@
}
reactor Print {
- input x: number
+ input x: number
reaction(x) {=
x = x as number;
@@ -34,9 +34,9 @@
}
reactor GainContainer {
- input x: number
- output out: number
- output out2: number
+ input x: number
+ output out: number
+ output out2: number
gain = new Gain()
x -> gain.x
gain.out -> out
diff --git a/test/known-good/TypeScript/src/Hierarchy2.txt b/test/known-good/TypeScript/src/Hierarchy2.txt
index 1277a811c..669300073 100644
--- a/test/known-good/TypeScript/src/Hierarchy2.txt
+++ b/test/known-good/TypeScript/src/Hierarchy2.txt
@@ -1,20 +1,20 @@
target TypeScript {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
reactor Source {
- output out: number
+ output out: number
timer t(0, 1 sec)
reaction(t) -> out {= out = 1; =}
}
reactor Count {
- output out: number
+ output out: number
timer t(0, 1 sec)
- state i: number(0)
+ state i: number(0)
reaction(t) -> out {=
i++;
@@ -23,9 +23,9 @@
}
reactor Add {
- input in1: number
- input in2: number
- output out: number
+ input in1: number
+ input in2: number
+ output out: number
reaction(in1, in2) -> out {=
let result = 0;
@@ -36,8 +36,8 @@
}
reactor Print {
- input x: number
- state expected: number(2)
+ input x: number
+ state expected: number(2)
reaction(x) {=
x = x as number;
@@ -49,8 +49,8 @@
}
reactor AddCount {
- input x: number
- output out: number
+ input x: number
+ output out: number
count = new Count()
add = new Add()
x -> add.in1
diff --git a/test/known-good/TypeScript/src/Import.txt b/test/known-good/TypeScript/src/Import.txt
index 89f2b3da3..ac03ff036 100644
--- a/test/known-good/TypeScript/src/Import.txt
+++ b/test/known-good/TypeScript/src/Import.txt
@@ -1,7 +1,7 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
import Imported from "lib/Imported.lf"
diff --git a/test/known-good/TypeScript/src/Microsteps.txt b/test/known-good/TypeScript/src/Microsteps.txt
index d42db3cc4..9e37b2cba 100644
--- a/test/known-good/TypeScript/src/Microsteps.txt
+++ b/test/known-good/TypeScript/src/Microsteps.txt
@@ -1,8 +1,8 @@
target TypeScript
reactor Destination {
- input x: number
- input y: number
+ input x: number
+ input y: number
reaction(x, y) {=
let elapsed = util.getElapsedLogicalTime();
diff --git a/test/known-good/TypeScript/src/MovingAverage.txt b/test/known-good/TypeScript/src/MovingAverage.txt
index 8ad640301..d160f535e 100644
--- a/test/known-good/TypeScript/src/MovingAverage.txt
+++ b/test/known-good/TypeScript/src/MovingAverage.txt
@@ -2,13 +2,13 @@
target TypeScript {
- timeout: 1 sec,
- fast: true
+ timeout: 1 sec,
+ fast: true
}
reactor Source {
- output out: number
- state count: number(0)
+ output out: number
+ state count: number(0)
timer clock(0, 200 msec)
reaction(clock) -> out {=
@@ -19,9 +19,9 @@
reactor MovingAverageImpl {
state delay_line: {= Array =}({= [0.0, 0.0, 0.0] =})
- state index: number(0)
- input x: number
- output out: number
+ state index: number(0)
+ input x: number
+ output out: number
reaction(x) -> out {=
x = x as number;
@@ -44,8 +44,8 @@
}
reactor Print {
- input x: number
- state count: number(0)
+ input x: number
+ state count: number(0)
reaction(x) {=
x = x as number;
diff --git a/test/known-good/TypeScript/src/MultipleContained.txt b/test/known-good/TypeScript/src/MultipleContained.txt
index c4243f0f5..20f08a114 100644
--- a/test/known-good/TypeScript/src/MultipleContained.txt
+++ b/test/known-good/TypeScript/src/MultipleContained.txt
@@ -3,9 +3,9 @@
target TypeScript
reactor Contained {
- output trigger: number
- input in1: number
- input in2: number
+ output trigger: number
+ input in1: number
+ input in2: number
reaction(startup) -> trigger {= trigger = 42; =}
diff --git a/test/known-good/TypeScript/src/NativeListsAndTimes.txt b/test/known-good/TypeScript/src/NativeListsAndTimes.txt
index f0209565d..81060f3c2 100644
--- a/test/known-good/TypeScript/src/NativeListsAndTimes.txt
+++ b/test/known-good/TypeScript/src/NativeListsAndTimes.txt
@@ -2,17 +2,17 @@
main reactor(
- x: number(0),
- y: time(0),
+ x: number(0),
+ y: time(0),
z(1 msec),
- p: number[](1, 2, 3, 4),
- q: TimeValue[](1 msec, 2 msec, 3 msec),
- g: time[](1 msec, 2 msec)
+ p: number[](1, 2, 3, 4),
+ q: TimeValue[](1 msec, 2 msec, 3 msec),
+ g: time[](1 msec, 2 msec)
) {
- state s: time(y)
- state t: time(z)
- state v: boolean
- state w: time
+ state s: time(y)
+ state t: time(z)
+ state v: boolean
+ state w: time
timer tick(0)
timer tock(1 sec)
timer toe(z)
diff --git a/test/known-good/TypeScript/src/ParameterizedState.txt b/test/known-good/TypeScript/src/ParameterizedState.txt
index fae4d8003..e8b2a1014 100644
--- a/test/known-good/TypeScript/src/ParameterizedState.txt
+++ b/test/known-good/TypeScript/src/ParameterizedState.txt
@@ -1,6 +1,6 @@
target TypeScript
-reactor Foo(bar: number(42)) {
+reactor Foo(bar: number(42)) {
state baz(bar)
reaction(startup) {= console.log("Baz: " + baz); =}
diff --git a/test/known-good/TypeScript/src/PeriodicDesugared.txt b/test/known-good/TypeScript/src/PeriodicDesugared.txt
index 9ecae2119..70b54f263 100644
--- a/test/known-good/TypeScript/src/PeriodicDesugared.txt
+++ b/test/known-good/TypeScript/src/PeriodicDesugared.txt
@@ -1,9 +1,9 @@
target TypeScript
-main reactor(offset: time(0), period: time(500 msec)) {
+main reactor(offset: time(0), period: time(500 msec)) {
logical action init(offset)
logical action recur(period)
- state count: number(0)
+ state count: number(0)
reaction(startup) -> init, recur {=
if (offset.isZero()) {
diff --git a/test/known-good/TypeScript/src/PhysicalConnection.txt b/test/known-good/TypeScript/src/PhysicalConnection.txt
index db51bc132..9f984b62a 100644
--- a/test/known-good/TypeScript/src/PhysicalConnection.txt
+++ b/test/known-good/TypeScript/src/PhysicalConnection.txt
@@ -2,13 +2,13 @@
target TypeScript
reactor Source {
- output y: number
+ output y: number
reaction(startup) -> y {= y = 42 =}
}
reactor Destination {
- input x: number
+ input x: number
reaction(x) {=
let time = util.getElapsedLogicalTime();
diff --git a/test/known-good/TypeScript/src/Preamble.txt b/test/known-good/TypeScript/src/Preamble.txt
index f1f684933..06f7b7b4a 100644
--- a/test/known-good/TypeScript/src/Preamble.txt
+++ b/test/known-good/TypeScript/src/Preamble.txt
@@ -1,10 +1,10 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
main reactor Preamble {
preamble {=
- function add42( i:number) {
+ function add42( i:number) {
return i + 42;
}
=}
diff --git a/test/known-good/TypeScript/src/ReadOutputOfContainedReactor.txt b/test/known-good/TypeScript/src/ReadOutputOfContainedReactor.txt
index 322da8f98..dcec81114 100644
--- a/test/known-good/TypeScript/src/ReadOutputOfContainedReactor.txt
+++ b/test/known-good/TypeScript/src/ReadOutputOfContainedReactor.txt
@@ -3,14 +3,14 @@
target TypeScript
reactor Contained {
- output out: number
+ output out: number
reaction(startup) -> out {= out = 42; =}
}
main reactor ReadOutputOfContainedReactor {
c = new Contained()
- state count: number(0)
+ state count: number(0)
reaction(startup) c.out {=
console.log("Startup reaction reading output of contained reactor: " + c.out);
diff --git a/test/known-good/TypeScript/src/Schedule.txt b/test/known-good/TypeScript/src/Schedule.txt
index 39ecd7d15..fba99c4a8 100644
--- a/test/known-good/TypeScript/src/Schedule.txt
+++ b/test/known-good/TypeScript/src/Schedule.txt
@@ -3,7 +3,7 @@
target TypeScript
reactor ScheduleLogicalAction {
- input x: number
+ input x: number
logical action a
reaction(x) -> a {= actions.a.schedule(TimeValue.msec(200), null) =}
diff --git a/test/known-good/TypeScript/src/ScheduleLogicalAction.txt b/test/known-good/TypeScript/src/ScheduleLogicalAction.txt
index a85865478..fe5466bc1 100644
--- a/test/known-good/TypeScript/src/ScheduleLogicalAction.txt
+++ b/test/known-good/TypeScript/src/ScheduleLogicalAction.txt
@@ -1,13 +1,13 @@
target TypeScript {
- fast: true,
- timeout: 3 sec
+ fast: true,
+ timeout: 3 sec
}
reactor foo {
- input x: number
- output y: number
+ input x: number
+ output y: number
logical action a
reaction(x) -> y, a {=
@@ -21,8 +21,8 @@
}
reactor print {
- state expected_time: time(0)
- input x: number
+ state expected_time: time(0)
+ input x: number
reaction(x) {=
let elapsed_time = util.getElapsedLogicalTime();
diff --git a/test/known-good/TypeScript/src/SendingInside.txt b/test/known-good/TypeScript/src/SendingInside.txt
index 2c624506c..500116de1 100644
--- a/test/known-good/TypeScript/src/SendingInside.txt
+++ b/test/known-good/TypeScript/src/SendingInside.txt
@@ -1,13 +1,13 @@
target TypeScript {
- timeout: 10 sec,
- fast: true
+ timeout: 10 sec,
+ fast: true
}
reactor Printer {
- input x: number
- state count: number(1)
+ input x: number
+ state count: number(1)
reaction(x) {=
console.log("Inside reactor received: " + x);
@@ -19,7 +19,7 @@
}
main reactor SendingInside {
- state count: number(0)
+ state count: number(0)
timer t(0, 1 sec)
p = new Printer()
diff --git a/test/known-good/TypeScript/src/SendingInside2.txt b/test/known-good/TypeScript/src/SendingInside2.txt
index 94e04340a..2653088ae 100644
--- a/test/known-good/TypeScript/src/SendingInside2.txt
+++ b/test/known-good/TypeScript/src/SendingInside2.txt
@@ -1,7 +1,7 @@
target TypeScript
reactor Printer {
- input x: number
+ input x: number
reaction(x) {=
console.log("Inside reactor received:" + x );
diff --git a/test/known-good/TypeScript/src/SendsPointerTest.txt b/test/known-good/TypeScript/src/SendsPointerTest.txt
index a8d3d7916..eea31217a 100644
--- a/test/known-good/TypeScript/src/SendsPointerTest.txt
+++ b/test/known-good/TypeScript/src/SendsPointerTest.txt
@@ -3,20 +3,20 @@
target TypeScript
reactor SendsPointer {
- output out: {= {value: number} =}
+ output out: {= {value: number} =}
reaction(startup) -> out {=
- let my_object = { value: 42 };
+ let my_object = { value: 42 };
out = my_object;
=}
}
-reactor Print(expected: {= {value: number} =}({= { value: 42 } =})) {
- input x: {= {value: number} =}
+reactor Print(expected: {= {value: number} =}({= { value: 42 } =})) {
+ input x: {= {value: number} =}
reaction(x) {=
- x = x as {value: number};
+ x = x as {value: number};
console.log("Received: " + JSON.stringify(x));
if (x.value != expected.value) {
util.requestErrorStop("ERROR: Expected x.value to be " + expected.value);
diff --git a/test/known-good/TypeScript/src/SimpleDeadline.txt b/test/known-good/TypeScript/src/SimpleDeadline.txt
index 7bc63e3b0..9d5544b98 100644
--- a/test/known-good/TypeScript/src/SimpleDeadline.txt
+++ b/test/known-good/TypeScript/src/SimpleDeadline.txt
@@ -3,9 +3,9 @@
target TypeScript
-reactor Deadline(threshold: time(100 msec)) {
- input x: number
- output deadlineViolation: boolean
+reactor Deadline(threshold: time(100 msec)) {
+ input x: number
+ output deadlineViolation: boolean
reaction(x) -> deadlineViolation {=
util.requestErrorStop("ERROR: Deadline violation was not detected!")
@@ -18,7 +18,7 @@
}
reactor Print {
- input x: boolean
+ input x: boolean
reaction(x) {=
if (x) {
diff --git a/test/known-good/TypeScript/src/SlowingClock.txt b/test/known-good/TypeScript/src/SlowingClock.txt
index a00c9ec4c..1ac19a987 100644
--- a/test/known-good/TypeScript/src/SlowingClock.txt
+++ b/test/known-good/TypeScript/src/SlowingClock.txt
@@ -1,17 +1,17 @@
target TypeScript {
- timeout: 5 sec,
- fast: true
+ timeout: 5 sec,
+ fast: true
}
main reactor SlowingClock {
logical action a(100 msec)
- state interval: time(100 msec)
- state expected_time: time(100 msec)
+ state interval: time(100 msec)
+ state expected_time: time(100 msec)
reaction(startup) -> a {= actions.a.schedule(0, null); =}
reaction(a) -> a {=
- let elapsed_logical_time : TimeValue = util.getElapsedLogicalTime();
+ let elapsed_logical_time : TimeValue = util.getElapsedLogicalTime();
console.log("Logical time since start: " + elapsed_logical_time);
if (!elapsed_logical_time.isEqualTo(expected_time)) {
util.requestErrorStop("ERROR: Expected time to be: " + expected_time)
diff --git a/test/known-good/TypeScript/src/SlowingClockPhysical.txt b/test/known-good/TypeScript/src/SlowingClockPhysical.txt
index a98535f05..89e3b60f1 100644
--- a/test/known-good/TypeScript/src/SlowingClockPhysical.txt
+++ b/test/known-good/TypeScript/src/SlowingClockPhysical.txt
@@ -9,13 +9,13 @@
target TypeScript {
- timeout: 1 sec
+ timeout: 1 sec
}
main reactor SlowingClockPhysical {
physical action a(100 msec)
- state interval: time(100 msec)
- state expected_time: time(100 msec)
+ state interval: time(100 msec)
+ state expected_time: time(100 msec)
reaction(startup) -> a {=
expected_time = TimeValue.msec(100);
diff --git a/test/known-good/TypeScript/src/Stop.txt b/test/known-good/TypeScript/src/Stop.txt
index 95bd3edfa..52719f568 100644
--- a/test/known-good/TypeScript/src/Stop.txt
+++ b/test/known-good/TypeScript/src/Stop.txt
@@ -6,21 +6,21 @@
target TypeScript {
- timeout: 11 msec
+ timeout: 11 msec
}
import Sender from "lib/LoopedActionSender.lf"
reactor Consumer {
- input in1: number
- state reactionInvokedCorrectly: boolean(false)
+ input in1: number
+ state reactionInvokedCorrectly: boolean(false)
reaction(in1) {=
const currentTag = util.getCurrentTag();
const compareTag = util.getStartTag().getLaterTag(TimeValue.msec(10));
if (compareTag.getMicroStepsLater(9).isSmallerThan(currentTag)) {
- util.requestErrorStop(`ERROR: Invoked reaction(in) at tag bigger than shutdown.`);
+ util.requestErrorStop(`ERROR: Invoked reaction(in) at tag bigger than shutdown.`);
} else if (currentTag.isSimultaneousWith(compareTag.getMicroStepsLater(8))) {
console.log(`Requesting stop.`);
@@ -37,15 +37,15 @@
if (currentTag.isSimultaneousWith(compareTag.getMicroStepsLater(9)) &&
reactionInvokedCorrectly === true) {
- console.log(`SUCCESS: successfully enforced stop.`);
+ console.log(`SUCCESS: successfully enforced stop.`);
} else if(!currentTag.isSmallerThan(compareTag.getMicroStepsLater(9)) &&
!currentTag.isSimultaneousWith(compareTag.getMicroStepsLater(9))) {
- util.requestErrorStop(`ERROR: Shutdown invoked at tag `
+ util.requestErrorStop(`ERROR: Shutdown invoked at tag `
+ `(${currentTag.time.subtract(util.getStartTime())}, `
+ `${currentTag.microstep}). Failed to enforce timeout.`);
} else if (reactionInvokedCorrectly === false) {
- util.requestErrorStop(`ERROR: Failed to invoke reaction(in) at tag `
+ util.requestErrorStop(`ERROR: Failed to invoke reaction(in) at tag `
+ `(${currentTag.time.subtract(util.getStartTime())}, `
+ `${currentTag.microstep}). Failed to enforce timeout.`);
}
diff --git a/test/known-good/TypeScript/src/Stride.txt b/test/known-good/TypeScript/src/Stride.txt
index 58b849d7a..5e38ee276 100644
--- a/test/known-good/TypeScript/src/Stride.txt
+++ b/test/known-good/TypeScript/src/Stride.txt
@@ -1,13 +1,13 @@
target TypeScript {
- timeout: 2 sec,
- fast: true
+ timeout: 2 sec,
+ fast: true
}
-reactor Count(stride: number(1)) {
- state count: number(0)
- output y: number
+reactor Count(stride: number(1)) {
+ state count: number(0)
+ output y: number
timer t(0, 100 msec)
reaction(t) -> y {=
@@ -17,7 +17,7 @@
}
reactor Display {
- input x: number
+ input x: number
reaction(x) {= console.log("Received: " + x); =}
}
diff --git a/test/known-good/TypeScript/src/StructAsState.txt b/test/known-good/TypeScript/src/StructAsState.txt
index 56f1153de..7535ff315 100644
--- a/test/known-good/TypeScript/src/StructAsState.txt
+++ b/test/known-good/TypeScript/src/StructAsState.txt
@@ -4,11 +4,11 @@
main reactor StructAsState {
preamble {=
type hello_t = {
- name: string ;
- value: number;
+ name: string ;
+ value: number;
}
=}
- state s: hello_t({= {name: "Earth", value: 42} =})
+ state s: hello_t({= {name: "Earth", value: 42} =})
reaction(startup) {=
console.log("State s.name=" + s.name + ", s.value=" + s.value);
diff --git a/test/known-good/TypeScript/src/StructAsType.txt b/test/known-good/TypeScript/src/StructAsType.txt
index 3b5890bb4..7c8b9723e 100644
--- a/test/known-good/TypeScript/src/StructAsType.txt
+++ b/test/known-good/TypeScript/src/StructAsType.txt
@@ -4,22 +4,22 @@
reactor Source {
preamble {=
type hello_t = {
- name: string ;
- value: number;
+ name: string ;
+ value: number;
}
=}
- output out: hello_t
+ output out: hello_t
reaction(startup) -> out {=
- let temp: hello_t = {name: "Earth", value: 42}
+ let temp: hello_t = {name: "Earth", value: 42}
out = temp;
=}
}
-reactor Print(expected: number(42)) {
- input x: hello_t
+reactor Print(expected: number(42)) {
+ input x: hello_t
reaction(x) {=
x = x as hello_t;
diff --git a/test/known-good/TypeScript/src/StructAsTypeDirect.txt b/test/known-good/TypeScript/src/StructAsTypeDirect.txt
index 8fa17ffd0..7c9ee832f 100644
--- a/test/known-good/TypeScript/src/StructAsTypeDirect.txt
+++ b/test/known-good/TypeScript/src/StructAsTypeDirect.txt
@@ -4,22 +4,22 @@
reactor Source {
preamble {=
type hello_t = {
- name: string ;
- value: number;
+ name: string ;
+ value: number;
}
=}
- output out: hello_t
+ output out: hello_t
reaction(startup) -> out {=
- let temp: hello_t = {name: "", value: 0};
+ let temp: hello_t = {name: "", value: 0};
temp.name = "Earth";
temp.value = 42;
out = temp;
=}
}
-reactor Print(expected: number(42)) {
- input x: hello_t
+reactor Print(expected: number(42)) {
+ input x: hello_t
reaction(x) {=
x = x as hello_t;
diff --git a/test/known-good/TypeScript/src/StructPrint.txt b/test/known-good/TypeScript/src/StructPrint.txt
index 2cc54e49b..fb7cdc80a 100644
--- a/test/known-good/TypeScript/src/StructPrint.txt
+++ b/test/known-good/TypeScript/src/StructPrint.txt
@@ -5,20 +5,20 @@
reactor Source {
preamble {=
type hello_t = {
- name: string ;
- value: number;
+ name: string ;
+ value: number;
}
=}
- output out: hello_t
+ output out: hello_t
reaction(startup) -> out {=
- let temp: hello_t = {name: "Earth", value: 42}
+ let temp: hello_t = {name: "Earth", value: 42}
out = temp;
=}
}
-reactor Print(expected: number(42)) {
- input x: hello_t
+reactor Print(expected: number(42)) {
+ input x: hello_t
reaction(x) {=
x = x as hello_t;
diff --git a/test/known-good/TypeScript/src/StructScale.txt b/test/known-good/TypeScript/src/StructScale.txt
index 0d17bf3ef..56b226b9c 100644
--- a/test/known-good/TypeScript/src/StructScale.txt
+++ b/test/known-good/TypeScript/src/StructScale.txt
@@ -6,11 +6,11 @@
import Print, Source from "StructPrint.lf"
-reactor Scale(scale: number(2)) {
+reactor Scale(scale: number(2)) {
- mutable input x: hello_t
- output out: hello_t
+ mutable input x: hello_t
+ output out: hello_t
reaction(x) -> out {=
x = x as hello_t
diff --git a/test/known-good/TypeScript/src/TestForPreviousOutput.txt b/test/known-good/TypeScript/src/TestForPreviousOutput.txt
index f083a3538..c0b8dceaf 100644
--- a/test/known-good/TypeScript/src/TestForPreviousOutput.txt
+++ b/test/known-good/TypeScript/src/TestForPreviousOutput.txt
@@ -3,7 +3,7 @@
target TypeScript
reactor Source {
- output out: number
+ output out: number
reaction(startup) -> out {=
@@ -24,7 +24,7 @@
}
reactor Sink {
- input x: number
+ input x: number
reaction(x) {=
x = x as number;
diff --git a/test/known-good/TypeScript/src/TimeLimit.txt b/test/known-good/TypeScript/src/TimeLimit.txt
index 7fb45b86b..48aacfb2d 100644
--- a/test/known-good/TypeScript/src/TimeLimit.txt
+++ b/test/known-good/TypeScript/src/TimeLimit.txt
@@ -3,14 +3,14 @@
target TypeScript {
- fast: true,
- logging: INFO
+ fast: true,
+ logging: INFO
}
-reactor Clock(offset: time(0), period: time(1 sec)) {
- output y: number
+reactor Clock(offset: time(0), period: time(1 sec)) {
+ output y: number
timer t(offset, period)
- state count: number(0)
+ state count: number(0)
reaction(t) -> y {=
count++;
@@ -19,8 +19,8 @@
}
reactor Destination {
- input x: number
- state s: number(1)
+ input x: number
+ state s: number(1)
reaction(x) {=
if (x != s) {
@@ -30,7 +30,7 @@
=}
}
-main reactor TimeLimit(period: time(1 msec)) {
+main reactor TimeLimit(period: time(1 msec)) {
timer stop(10 sec)
c = new Clock(period = period)
diff --git a/test/known-good/TypeScript/src/TimeState.txt b/test/known-good/TypeScript/src/TimeState.txt
index 0fbfb9cc3..56c5747b1 100644
--- a/test/known-good/TypeScript/src/TimeState.txt
+++ b/test/known-good/TypeScript/src/TimeState.txt
@@ -1,7 +1,7 @@
target TypeScript
-reactor Foo(bar: number(42)) {
- state baz: time(500 msec)
+reactor Foo(bar: number(42)) {
+ state baz: time(500 msec)
reaction(startup) {= console.log("Baz: " + baz); =}
}
diff --git a/test/known-good/TypeScript/src/Wcet.txt b/test/known-good/TypeScript/src/Wcet.txt
index 669448ce9..f2a59eaf4 100644
--- a/test/known-good/TypeScript/src/Wcet.txt
+++ b/test/known-good/TypeScript/src/Wcet.txt
@@ -2,8 +2,8 @@
target TypeScript
reactor Source {
- output out1: number
- output out2: number
+ output out1: number
+ output out2: number
timer t
reaction(t) -> out1, out2 {=
@@ -13,12 +13,12 @@
}
reactor Work {
- input in1: number
- input in2: number
- output out: number
+ input in1: number
+ input in2: number
+ output out: number
reaction(in1, in2) -> out {=
- let ret:number;
+ let ret:number;
if ((in1 as number) > 10) {
ret = (in2 as number) * (in1 as number);
} else {
@@ -29,7 +29,7 @@
}
reactor Print {
- input x: number
+ input x: number
reaction(x) {= console.log("Received: " + x); =}
}
diff --git a/test/known-good/TypeScript/src/concurrent/AsyncCallback.txt b/test/known-good/TypeScript/src/concurrent/AsyncCallback.txt
index d4591e838..906b1672e 100644
--- a/test/known-good/TypeScript/src/concurrent/AsyncCallback.txt
+++ b/test/known-good/TypeScript/src/concurrent/AsyncCallback.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 2 sec,
- keepalive: true
+ timeout: 2 sec,
+ keepalive: true
}
main reactor AsyncCallback {
preamble {=
- function callback(a : Sched) {
+ function callback(a : Sched) {
@@ -17,11 +17,11 @@
}
=}
timer t(0, 200 msec)
- state expected_time: time(100 msec)
- state toggle: boolean(false)
+ state expected_time: time(100 msec)
+ state toggle: boolean(false)
- physical action a(100 msec): number
- state i: number(0)
+ physical action a(100 msec): number
+ state i: number(0)
reaction(t) -> a {=
diff --git a/test/known-good/TypeScript/src/docker/HelloWorldContainerized.txt b/test/known-good/TypeScript/src/docker/HelloWorldContainerized.txt
index 4ab1419e8..66376336b 100644
--- a/test/known-good/TypeScript/src/docker/HelloWorldContainerized.txt
+++ b/test/known-good/TypeScript/src/docker/HelloWorldContainerized.txt
@@ -1,5 +1,5 @@
target TypeScript {
- docker: true
+ docker: true
}
import HelloWorldInside from "../HelloWorld.lf"
diff --git a/test/known-good/TypeScript/src/docker/federated/DistributedCountContainerized.txt b/test/known-good/TypeScript/src/docker/federated/DistributedCountContainerized.txt
index 27281402e..ea1e169a1 100644
--- a/test/known-good/TypeScript/src/docker/federated/DistributedCountContainerized.txt
+++ b/test/known-good/TypeScript/src/docker/federated/DistributedCountContainerized.txt
@@ -4,14 +4,14 @@
target TypeScript {
- timeout: 5 sec,
- docker: true
+ timeout: 5 sec,
+ docker: true
}
import Count from "../../lib/Count.lf"
import Print from "../../federated/DistributedCount.lf"
-federated reactor(offset: time(200 msec)) at rti {
+federated reactor(offset: time(200 msec)) at rti {
c = new Count()
p = new Print()
c.out -> p.inp after offset
diff --git a/test/known-good/TypeScript/src/federated/ChainWithDelay.txt b/test/known-good/TypeScript/src/federated/ChainWithDelay.txt
index fb7ac7689..87b9fb4ec 100644
--- a/test/known-good/TypeScript/src/federated/ChainWithDelay.txt
+++ b/test/known-good/TypeScript/src/federated/ChainWithDelay.txt
@@ -5,7 +5,7 @@
target TypeScript {
- timeout: 3 msec
+ timeout: 3 msec
}
import Count from "../lib/Count.lf"
diff --git a/test/known-good/TypeScript/src/federated/DistributedCount.txt b/test/known-good/TypeScript/src/federated/DistributedCount.txt
index f6ccdd347..d09bbd177 100644
--- a/test/known-good/TypeScript/src/federated/DistributedCount.txt
+++ b/test/known-good/TypeScript/src/federated/DistributedCount.txt
@@ -7,14 +7,14 @@
target TypeScript {
- timeout: 5 sec
+ timeout: 5 sec
}
import Count from "../lib/Count.lf"
reactor Print {
- input inp: number
- state c: number(1)
+ input inp: number
+ state c: number(1)
reaction(inp) {=
const elapsedTime = util.getElapsedLogicalTime();
@@ -35,7 +35,7 @@
=}
}
-federated reactor DistributedCount(offset: time(200 msec)) {
+federated reactor DistributedCount(offset: time(200 msec)) {
c = new Count()
p = new Print()
c.out -> p.inp after offset
diff --git a/test/known-good/TypeScript/src/federated/DistributedCountPhysical.txt b/test/known-good/TypeScript/src/federated/DistributedCountPhysical.txt
index 2169ed7b3..14400f06e 100644
--- a/test/known-good/TypeScript/src/federated/DistributedCountPhysical.txt
+++ b/test/known-good/TypeScript/src/federated/DistributedCountPhysical.txt
@@ -9,13 +9,13 @@
target TypeScript {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor Count {
timer t(200 msec, 1 sec)
- state s: number(0)
- output out: number
+ state s: number(0)
+ output out: number
reaction(t) -> out {=
out = s;
@@ -24,18 +24,18 @@
}
reactor Print {
- input inp: number
- state c: number(0)
- state compareTime: time(200 msec)
+ input inp: number
+ state c: number(0)
+ state compareTime: time(200 msec)
reaction(inp) {=
let elapsedTime = util.getElapsedLogicalTime();
console.log(`At time ${elapsedTime}, received ${inp}.`);
if (inp !== c) {
- util.requestErrorStop(`ERROR: Expected to receive ${c}.`);
+ util.requestErrorStop(`ERROR: Expected to receive ${c}.`);
}
if (!(elapsedTime.isLaterThan(compareTime))) {
- util.requestErrorStop(`ERROR: Expected time to be strictly greater than ${compareTime}. Got ${elapsedTime}.`);
+ util.requestErrorStop(`ERROR: Expected time to be strictly greater than ${compareTime}. Got ${elapsedTime}.`);
}
compareTime = compareTime.add(TimeValue.sec(1));
c++;
@@ -43,7 +43,7 @@
reaction(shutdown) {=
if (c !== 1) {
- util.requestErrorStop(`ERROR: Expected to receive 1 item. Received ${c}.`);
+ util.requestErrorStop(`ERROR: Expected to receive 1 item. Received ${c}.`);
}
console.log("SUCCESS: Successfully received 1 item.");
=}
diff --git a/test/known-good/TypeScript/src/federated/DistributedDoublePort.txt b/test/known-good/TypeScript/src/federated/DistributedDoublePort.txt
index 48b259d38..40fb73177 100644
--- a/test/known-good/TypeScript/src/federated/DistributedDoublePort.txt
+++ b/test/known-good/TypeScript/src/federated/DistributedDoublePort.txt
@@ -7,19 +7,19 @@
target TypeScript {
- timeout: 900 msec,
- coordination-options: {
- advance-message-interval: 100 msec
+ timeout: 900 msec,
+ coordination-options: {
+ advance-message-interval: 100 msec
},
- logging: DEBUG
-}
+ logging: DEBUG
+}
import Count from "../lib/Count.lf"
reactor CountMicrostep {
- state count: number(1)
- output out: number
- logical action act: number
+ state count: number(1)
+ output out: number
+ logical action act: number
timer t(0, 1 sec)
reaction(t) -> act {= actions.act.schedule(0, count++); =}
@@ -28,8 +28,8 @@
}
reactor Print {
- input inp: number
- input inp2: number
+ input inp: number
+ input inp2: number
reaction(inp, inp2) {=
const elapsedTime = util.getElapsedLogicalTime();
diff --git a/test/known-good/TypeScript/src/federated/DistributedLoopedAction.txt b/test/known-good/TypeScript/src/federated/DistributedLoopedAction.txt
index 7cede4104..6c7858e49 100644
--- a/test/known-good/TypeScript/src/federated/DistributedLoopedAction.txt
+++ b/test/known-good/TypeScript/src/federated/DistributedLoopedAction.txt
@@ -6,16 +6,16 @@
target TypeScript {
- timeout: 1 sec
+ timeout: 1 sec
}
import Sender from "../lib/LoopedActionSender.lf"
-reactor Receiver(takeBreakAfter: number(10), breakInterval: time(400 msec)) {
- input inp: number
- state receivedMessages: number(0)
- state totalReceivedMessages: number(0)
- state breaks: number(0)
+reactor Receiver(takeBreakAfter: number(10), breakInterval: time(400 msec)) {
+ input inp: number
+ state receivedMessages: number(0)
+ state totalReceivedMessages: number(0)
+ state breaks: number(0)
timer t(0, 1 msec)
diff --git a/test/known-good/TypeScript/src/federated/DistributedLoopedPhysicalAction.txt b/test/known-good/TypeScript/src/federated/DistributedLoopedPhysicalAction.txt
index d1ee89de1..12e28a4fb 100644
--- a/test/known-good/TypeScript/src/federated/DistributedLoopedPhysicalAction.txt
+++ b/test/known-good/TypeScript/src/federated/DistributedLoopedPhysicalAction.txt
@@ -7,13 +7,13 @@
target TypeScript {
- timeout: 1 sec
+ timeout: 1 sec
}
-reactor Sender(takeBreakAfter: number(10), breakInterval: time(550 msec)) {
- output out: number
+reactor Sender(takeBreakAfter: number(10), breakInterval: time(550 msec)) {
+ output out: number
physical action act
- state sentMessages: number(0)
+ state sentMessages: number(0)
reaction(startup, act) -> act, out {=
@@ -29,11 +29,11 @@
=}
}
-reactor Receiver(takeBreakAfter: number(10), breakInterval: time(550 msec)) {
- input inp: number
- state receivedMessages: number(0)
- state totalReceivedMessages: number(0)
- state breaks: number(0)
+reactor Receiver(takeBreakAfter: number(10), breakInterval: time(550 msec)) {
+ input inp: number
+ state receivedMessages: number(0)
+ state totalReceivedMessages: number(0)
+ state breaks: number(0)
timer t(0, 1 msec)
diff --git a/test/known-good/TypeScript/src/federated/DistributedStop.txt b/test/known-good/TypeScript/src/federated/DistributedStop.txt
index 19ffba2e5..b56253836 100644
--- a/test/known-good/TypeScript/src/federated/DistributedStop.txt
+++ b/test/known-good/TypeScript/src/federated/DistributedStop.txt
@@ -8,10 +8,10 @@
target TypeScript
reactor Sender {
- output out: number
+ output out: number
timer t(0, 1 usec)
logical action act
- state reaction_invoked_correctly: boolean(false)
+ state reaction_invoked_correctly: boolean(false)
reaction(t, act) -> out, act {=
console.log(`Sending 42 at (${util.getElapsedLogicalTime()}, `
@@ -45,23 +45,23 @@
reaction(shutdown) {=
if (!util.getElapsedLogicalTime().isEqualTo(TimeValue.usec(1)) ||
util.getCurrentTag().microstep !== 1) {
- util.requestErrorStop(`ERROR: Sender failed to stop the federation in time.`
+ util.requestErrorStop(`ERROR: Sender failed to stop the federation in time.`
+ `Stopping at (${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep}).`);
} else if (reaction_invoked_correctly === false) {
util.requestErrorStop("ERROR: Sender reaction(t, act) was not invoked at (1usec, 1)."
+ `Stopping at (${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep})`);
} else {
- console.log(`SUCCESS: Successfully stopped the federation at `
+ console.log(`SUCCESS: Successfully stopped the federation at `
+ `(${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep}).`);
}
=}
}
reactor Receiver(
- stp_offset: time(10 msec)
+ stp_offset: time(10 msec)
) {
- input in1: number
- state reaction_invoked_correctly: boolean(false)
+ input in1: number
+ state reaction_invoked_correctly: boolean(false)
reaction(in1) {=
console.log(`Received ${in1} at (${util.getElapsedLogicalTime()}, `
@@ -87,13 +87,13 @@
if (!util.getElapsedLogicalTime().isEqualTo(TimeValue.usec(1)) ||
util.getCurrentTag().microstep !== 1) {
- util.requestErrorStop(`ERROR: Receiver failed to stop the federation at the right time. `
+ util.requestErrorStop(`ERROR: Receiver failed to stop the federation at the right time. `
+ `Stopping at (${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep}).`);
} else if (reaction_invoked_correctly === false) {
util.requestErrorStop("Receiver reaction(in) was not invoked the correct number of times. "
+ `Stopping at (${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep})`);
}
- console.log(`SUCCESS: Successfully stopped the federation at `
+ console.log(`SUCCESS: Successfully stopped the federation at `
+ `(${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep}).`);
=}
}
diff --git a/test/known-good/TypeScript/src/federated/DistributedStopZero.txt b/test/known-good/TypeScript/src/federated/DistributedStopZero.txt
index cc20dd014..0d2c78ede 100644
--- a/test/known-good/TypeScript/src/federated/DistributedStopZero.txt
+++ b/test/known-good/TypeScript/src/federated/DistributedStopZero.txt
@@ -8,7 +8,7 @@
target TypeScript
reactor Sender {
- output out: number
+ output out: number
timer t(0, 1 usec)
reaction(t) -> out {=
@@ -28,16 +28,16 @@
reaction(shutdown) {=
if (!util.getElapsedLogicalTime().isEqualTo(TimeValue.usec(0))||
util.getCurrentTag().microstep !== 1) {
- util.requestErrorStop(`ERROR: Sender failed to stop the federation in time. `
+ util.requestErrorStop(`ERROR: Sender failed to stop the federation in time. `
+ `Stopping at (${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep}).`);
}
- console.log(`SUCCESS: Successfully stopped the federation at `
+ console.log(`SUCCESS: Successfully stopped the federation at `
+ `(${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep}).`);
=}
}
reactor Receiver {
- input in1: number
+ input in1: number
reaction(in1) {=
console.log(`Received ${in1} at (${util.getElapsedLogicalTime()}, `
@@ -57,10 +57,10 @@
if (!util.getElapsedLogicalTime().isEqualTo(TimeValue.usec(0)) ||
util.getCurrentTag().microstep !== 1) {
- util.requestErrorStop(`ERROR: Receiver failed to stop the federation at the right time. `
+ util.requestErrorStop(`ERROR: Receiver failed to stop the federation at the right time. `
+ `Stopping at (${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep}).`);
}
- console.log(`SUCCESS: Successfully stopped the federation at `
+ console.log(`SUCCESS: Successfully stopped the federation at `
+ `(${util.getElapsedLogicalTime()}, ${util.getCurrentTag().microstep}).`);
=}
}
diff --git a/test/known-good/TypeScript/src/federated/HelloDistributed.txt b/test/known-good/TypeScript/src/federated/HelloDistributed.txt
index 542407af9..cda22c634 100644
--- a/test/known-good/TypeScript/src/federated/HelloDistributed.txt
+++ b/test/known-good/TypeScript/src/federated/HelloDistributed.txt
@@ -9,7 +9,7 @@
target TypeScript
reactor Source {
- output out: string
+ output out: string
reaction(startup) -> out {=
console.log("Sending 'Hello World!' message from source federate.");
@@ -19,8 +19,8 @@
}
reactor Destination {
- input inp: string
- state received: boolean(false)
+ input inp: string
+ state received: boolean(false)
reaction(startup) {= console.log("Destination started."); =}
diff --git a/test/known-good/TypeScript/src/federated/LoopDistributedCentralized.txt b/test/known-good/TypeScript/src/federated/LoopDistributedCentralized.txt
index 8b44c8a4e..3d0ee7058 100644
--- a/test/known-good/TypeScript/src/federated/LoopDistributedCentralized.txt
+++ b/test/known-good/TypeScript/src/federated/LoopDistributedCentralized.txt
@@ -6,19 +6,19 @@
target TypeScript {
- timeout: 5 sec
+ timeout: 5 sec
}
-reactor Looper(incr: number(1), delay: time(0 msec)) {
- input inp: number
- output out: number
+reactor Looper(incr: number(1), delay: time(0 msec)) {
+ input inp: number
+ output out: number
physical action a(delay)
- state count: number(0)
+ state count: number(0)
preamble {=
let stop = false;
- function ping(act: any) {
+ function ping(act: any) {
if (!stop) {
console.log("Scheduling action.");
act.schedule(0, null);
@@ -57,7 +57,7 @@
=}
}
-federated reactor LoopDistributedCentralized(delay: time(0)) {
+federated reactor LoopDistributedCentralized(delay: time(0)) {
left = new Looper()
right = new Looper(incr = -1)
left.out -> right.inp
diff --git a/test/known-good/TypeScript/src/federated/LoopDistributedDouble.txt b/test/known-good/TypeScript/src/federated/LoopDistributedDouble.txt
index 0d3468896..76f7bc641 100644
--- a/test/known-good/TypeScript/src/federated/LoopDistributedDouble.txt
+++ b/test/known-good/TypeScript/src/federated/LoopDistributedDouble.txt
@@ -6,26 +6,26 @@
target TypeScript {
- timeout: 5 sec,
- keepAlive: true,
- coordination-options: {
- advance-message-interval: 100 msec
+ timeout: 5 sec,
+ keepAlive: true,
+ coordination-options: {
+ advance-message-interval: 100 msec
}
}
-reactor Looper(incr: number(1), delay: time(0 msec)) {
- input inp: number
- input inp2: number
- output out: number
- output out2: number
+reactor Looper(incr: number(1), delay: time(0 msec)) {
+ input inp: number
+ input inp2: number
+ output out: number
+ output out2: number
physical action a(delay)
- state count: number(0)
+ state count: number(0)
timer t(0, 1 sec)
preamble {=
let stop = false;
- function ping(act: any) {
+ function ping(act: any) {
if (!stop) {
console.log("Scheduling action.");
act.schedule(0, null);
@@ -71,7 +71,7 @@
=}
}
-federated reactor(delay: time(0)) {
+federated reactor(delay: time(0)) {
left = new Looper()
right = new Looper(incr = -1)
left.out -> right.inp
diff --git a/test/known-good/TypeScript/src/federated/PingPongDistributed.txt b/test/known-good/TypeScript/src/federated/PingPongDistributed.txt
index 4a75fb29f..9e58bb989 100644
--- a/test/known-good/TypeScript/src/federated/PingPongDistributed.txt
+++ b/test/known-good/TypeScript/src/federated/PingPongDistributed.txt
@@ -1,10 +1,10 @@
target TypeScript
-reactor Ping(count: number(10)) {
- input receive: number
- output send: number
- state pingsLeft: number(count)
+reactor Ping(count: number(10)) {
+ input receive: number
+ output send: number
+ state pingsLeft: number(count)
logical action serve
reaction(startup, serve) -> send {=
@@ -23,10 +23,10 @@
=}
}
-reactor Pong(expected: number(10)) {
- input receive: number
- output send: number
- state count: number(0)
+reactor Pong(expected: number(10)) {
+ input receive: number
+ output send: number
+ state count: number(0)
reaction(receive) -> send {=
count += 1;
@@ -45,7 +45,7 @@
=}
}
-federated reactor PingPongDistributed(count: number(10)) {
+federated reactor PingPongDistributed(count: number(10)) {
ping = new Ping(count = count)
pong = new Pong(expected = count)
ping.send -> pong.receive
diff --git a/test/known-good/TypeScript/src/federated/PingPongDistributedPhysical.txt b/test/known-good/TypeScript/src/federated/PingPongDistributedPhysical.txt
index d6e1f8a3d..be3c28c93 100644
--- a/test/known-good/TypeScript/src/federated/PingPongDistributedPhysical.txt
+++ b/test/known-good/TypeScript/src/federated/PingPongDistributedPhysical.txt
@@ -27,10 +27,10 @@
target TypeScript
-reactor Ping(count: number(10)) {
- input receive: number
- output send: number
- state pingsLeft: number(count)
+reactor Ping(count: number(10)) {
+ input receive: number
+ output send: number
+ state pingsLeft: number(count)
logical action serve
reaction(startup, serve) -> send {=
@@ -47,10 +47,10 @@
=}
}
-reactor Pong(expected: number(10)) {
- input receive: number
- output send: number
- state count: number(0)
+reactor Pong(expected: number(10)) {
+ input receive: number
+ output send: number
+ state count: number(0)
reaction(receive) -> send {=
count++;
@@ -69,7 +69,7 @@
=}
}
-federated reactor(count: number(10)) {
+federated reactor(count: number(10)) {
ping = new Ping(count = count)
pong = new Pong(expected = count)
ping.send ~> pong.receive
diff --git a/test/known-good/TypeScript/src/federated/SimpleFederated.txt b/test/known-good/TypeScript/src/federated/SimpleFederated.txt
index 0985d176c..07b5364c7 100644
--- a/test/known-good/TypeScript/src/federated/SimpleFederated.txt
+++ b/test/known-good/TypeScript/src/federated/SimpleFederated.txt
@@ -1,10 +1,10 @@
target TypeScript {
- timeout: 2 secs
+ timeout: 2 secs
}
reactor Fed {
- input inp: number
- output out: number
+ input inp: number
+ output out: number
}
federated reactor {
diff --git a/test/known-good/TypeScript/src/federated/StopAtShutdown.txt b/test/known-good/TypeScript/src/federated/StopAtShutdown.txt
index 0bf3cf36b..7cbd05112 100644
--- a/test/known-good/TypeScript/src/federated/StopAtShutdown.txt
+++ b/test/known-good/TypeScript/src/federated/StopAtShutdown.txt
@@ -4,11 +4,11 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor A {
- input inp: number
+ input inp: number
reaction(startup) {= console.log("Hello World!"); =}
@@ -18,7 +18,7 @@
}
reactor B {
- output out: number
+ output out: number
timer t(1 sec)
reaction(t) -> out {= out = 1; =}
diff --git a/test/known-good/TypeScript/src/federated/TopLevelArtifacts.txt b/test/known-good/TypeScript/src/federated/TopLevelArtifacts.txt
index 513688b48..e6947e152 100644
--- a/test/known-good/TypeScript/src/federated/TopLevelArtifacts.txt
+++ b/test/known-good/TypeScript/src/federated/TopLevelArtifacts.txt
@@ -9,14 +9,14 @@
target TypeScript {
- timeout: 1 msec
+ timeout: 1 msec
}
import Count from "../lib/Count.lf"
import TestCount from "../lib/TestCount.lf"
federated reactor {
- state successes: number(0)
+ state successes: number(0)
logical action act
timer t(0, 1 sec)
diff --git a/test/known-good/TypeScript/src/lib/Count.txt b/test/known-good/TypeScript/src/lib/Count.txt
index bc51d561d..d99b0a927 100644
--- a/test/known-good/TypeScript/src/lib/Count.txt
+++ b/test/known-good/TypeScript/src/lib/Count.txt
@@ -1,9 +1,9 @@
target TypeScript
-reactor Count(offset: time(0), period: time(1 sec)) {
- output out: number
+reactor Count(offset: time(0), period: time(1 sec)) {
+ output out: number
timer t(offset, period)
- state count: number(1)
+ state count: number(1)
reaction(t) -> out {= out = count++; =}
}
diff --git a/test/known-good/TypeScript/src/lib/Imported.txt b/test/known-good/TypeScript/src/lib/Imported.txt
index cc0bf5d0a..9fff8e385 100644
--- a/test/known-good/TypeScript/src/lib/Imported.txt
+++ b/test/known-good/TypeScript/src/lib/Imported.txt
@@ -1,13 +1,13 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
import ImportedAgain from "ImportedAgain.lf"
reactor Imported {
- input x: number
+ input x: number
a = new ImportedAgain()
reaction(x) -> a.x {= a.x = (x as number); =}
diff --git a/test/known-good/TypeScript/src/lib/ImportedAgain.txt b/test/known-good/TypeScript/src/lib/ImportedAgain.txt
index 643237b99..e56b11558 100644
--- a/test/known-good/TypeScript/src/lib/ImportedAgain.txt
+++ b/test/known-good/TypeScript/src/lib/ImportedAgain.txt
@@ -1,11 +1,11 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor ImportedAgain {
- input x: number
+ input x: number
reaction(x) {=
console.log("Received: " + x);
diff --git a/test/known-good/TypeScript/src/lib/InternalDelay.txt b/test/known-good/TypeScript/src/lib/InternalDelay.txt
index 3759578b0..b17fd9e08 100644
--- a/test/known-good/TypeScript/src/lib/InternalDelay.txt
+++ b/test/known-good/TypeScript/src/lib/InternalDelay.txt
@@ -1,10 +1,10 @@
target TypeScript
-reactor InternalDelay(delay: TimeValue(10 msec)) {
- input inp: number
- output out: number
- logical action d: number
+reactor InternalDelay(delay: TimeValue(10 msec)) {
+ input inp: number
+ output out: number
+ logical action d: number
reaction(inp) -> d {= actions.d.schedule(delay, inp as number); =}
diff --git a/test/known-good/TypeScript/src/lib/LoopedActionSender.txt b/test/known-good/TypeScript/src/lib/LoopedActionSender.txt
index 76591c120..5503eca08 100644
--- a/test/known-good/TypeScript/src/lib/LoopedActionSender.txt
+++ b/test/known-good/TypeScript/src/lib/LoopedActionSender.txt
@@ -12,10 +12,10 @@
-reactor Sender(takeBreakAfter: number(10), breakInterval: time(400 msec)) {
- output out: number
+reactor Sender(takeBreakAfter: number(10), breakInterval: time(400 msec)) {
+ output out: number
logical action act
- state sentMessages: number(0)
+ state sentMessages: number(0)
reaction(startup, act) -> act, out {=
diff --git a/test/known-good/TypeScript/src/lib/TestCount.txt b/test/known-good/TypeScript/src/lib/TestCount.txt
index 0f9d5560b..575cd024e 100644
--- a/test/known-good/TypeScript/src/lib/TestCount.txt
+++ b/test/known-good/TypeScript/src/lib/TestCount.txt
@@ -9,10 +9,10 @@
target TypeScript
-reactor TestCount(start: number(1), stride: number(1), numInputs: number(1)) {
- state count: number(start)
- state inputsReceived: number(0)
- input inp: number
+reactor TestCount(start: number(1), stride: number(1), numInputs: number(1)) {
+ state count: number(start)
+ state inputsReceived: number(0)
+ input inp: number
reaction(inp) {=
console.log("Received " + inp + ".");
diff --git a/test/known-good/TypeScript/src/multiport/BankMulticast.txt b/test/known-good/TypeScript/src/multiport/BankMulticast.txt
index 4f71ecdfe..9820c2d94 100644
--- a/test/known-good/TypeScript/src/multiport/BankMulticast.txt
+++ b/test/known-good/TypeScript/src/multiport/BankMulticast.txt
@@ -3,15 +3,15 @@
target TypeScript {
- timeout: 3 sec
+ timeout: 3 sec
}
import Count from "../lib/Count.lf"
import TestCount from "../lib/TestCount.lf"
reactor Foo {
- input inp: number
- output out: number
+ input inp: number
+ output out: number
c = new Count()
c.out -> out
@@ -21,9 +21,9 @@
}
reactor Bar {
- output[4] out: number
+ output[4] out: number
- foo = new[4] Foo()
+ foo = new[4] Foo()
foo.out -> foo.inp
foo.out -> out
@@ -32,7 +32,7 @@
main reactor {
bar = new Bar()
- d = new[4] TestCount(numInputs = 4)
+ d = new[4] TestCount(numInputs = 4)
bar.out -> d.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/BankMultiportToReaction.txt b/test/known-good/TypeScript/src/multiport/BankMultiportToReaction.txt
index d41d3b4db..befbb0017 100644
--- a/test/known-good/TypeScript/src/multiport/BankMultiportToReaction.txt
+++ b/test/known-good/TypeScript/src/multiport/BankMultiportToReaction.txt
@@ -1,21 +1,21 @@
target TypeScript {
- timeout: 5 sec
+ timeout: 5 sec
}
import Count from "../lib/Count.lf"
reactor DoubleCount {
- output[2] out: number
+ output[2] out: number
c1 = new Count()
c2 = new Count()
c1.out, c2.out -> out
}
main reactor {
- state count: number(1)
- state received: boolean(false)
+ state count: number(1)
+ state received: boolean(false)
- s = new[2] DoubleCount()
+ s = new[2] DoubleCount()
reaction(s.out) {=
for (let i = 0; i < s.length; i++) {
diff --git a/test/known-good/TypeScript/src/multiport/BankReactionsInContainer.txt b/test/known-good/TypeScript/src/multiport/BankReactionsInContainer.txt
index 385684fe1..190438207 100644
--- a/test/known-good/TypeScript/src/multiport/BankReactionsInContainer.txt
+++ b/test/known-good/TypeScript/src/multiport/BankReactionsInContainer.txt
@@ -2,13 +2,13 @@
target TypeScript {
- timeout: 1 sec
+ timeout: 1 sec
}
reactor R {
- output[2] out: number
- input[2] inp: number
- state received: boolean(false)
+ output[2] out: number
+ input[2] inp: number
+ state received: boolean(false)
reaction(startup) -> out {=
for (let i = 0; i < out.length; i++) {
@@ -40,8 +40,8 @@
}
main reactor {
- s = new[2] R()
- state received: boolean(false)
+ s = new[2] R()
+ state received: boolean(false)
reaction(startup) -> s.inp {=
let count = 0;
diff --git a/test/known-good/TypeScript/src/multiport/BankSelfBroadcast.txt b/test/known-good/TypeScript/src/multiport/BankSelfBroadcast.txt
index 93e930aff..4ab2dfb5b 100644
--- a/test/known-good/TypeScript/src/multiport/BankSelfBroadcast.txt
+++ b/test/known-good/TypeScript/src/multiport/BankSelfBroadcast.txt
@@ -10,9 +10,9 @@
target TypeScript
reactor A {
- input[4] inp: number
- output out: number
- state received: boolean(false)
+ input[4] inp: number
+ output out: number
+ state received: boolean(false)
reaction(startup) -> out {= out = this.getBankIndex(); =}
@@ -40,7 +40,7 @@
}
main reactor {
- a = new[4] A()
+ a = new[4] A()
(a.out)+ -> a.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/BankToBank.txt b/test/known-good/TypeScript/src/multiport/BankToBank.txt
index 59db38494..05a397b9b 100644
--- a/test/known-good/TypeScript/src/multiport/BankToBank.txt
+++ b/test/known-good/TypeScript/src/multiport/BankToBank.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
- output out: number
- state s: number(0)
+ output out: number
+ state s: number(0)
reaction(t) -> out {=
out = s;
@@ -15,8 +15,8 @@
}
reactor Destination {
- state s: number(0)
- input inp: number
+ state s: number(0)
+ input inp: number
reaction(inp) {=
console.log("Destination " + this.getBankIndex() + " received: " + inp);
@@ -34,10 +34,10 @@
=}
}
-main reactor BankToBank(width: number(4)) {
+main reactor BankToBank(width: number(4)) {
- a = new[4] Source()
- b = new[4] Destination()
+ a = new[4] Source()
+ b = new[4] Destination()
a.out -> b.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/BankToBankMultiport.txt b/test/known-good/TypeScript/src/multiport/BankToBankMultiport.txt
index 0af84747b..ff1de69a9 100644
--- a/test/known-good/TypeScript/src/multiport/BankToBankMultiport.txt
+++ b/test/known-good/TypeScript/src/multiport/BankToBankMultiport.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(width: number(1)) {
+reactor Source(width: number(1)) {
timer t(0, 200 msec)
- output[width] out: number
- state s: number(0)
+ output[width] out: number
+ state s: number(0)
reaction(t) -> out {=
for(let i = 0; i < out.length; i++) {
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(width: number(1)) {
- state s: number(6)
- input[width] inp: number
+reactor Destination(width: number(1)) {
+ state s: number(6)
+ input[width] inp: number
reaction(inp) {=
let sum = 0;
@@ -40,9 +40,9 @@
=}
}
-main reactor BankToBankMultiport(bankWidth: number(4)) {
- a = new[bankWidth] Source(width = 4)
- b = new[bankWidth] Destination(width = 4)
+main reactor BankToBankMultiport(bankWidth: number(4)) {
+ a = new[bankWidth] Source(width = 4)
+ b = new[bankWidth] Destination(width = 4)
a.out -> b.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/BankToBankMultiportAfter.txt b/test/known-good/TypeScript/src/multiport/BankToBankMultiportAfter.txt
index 4b57537b0..7c46c7617 100644
--- a/test/known-good/TypeScript/src/multiport/BankToBankMultiportAfter.txt
+++ b/test/known-good/TypeScript/src/multiport/BankToBankMultiportAfter.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(width: number(1)) {
+reactor Source(width: number(1)) {
timer t(0, 200 msec)
- output[width] out: number
- state s: number(0)
+ output[width] out: number
+ state s: number(0)
reaction(t) -> out {=
for(let i = 0; i < out.length; i++) {
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(width: number(1)) {
- state s: number(6)
- input[width] inp: number
+reactor Destination(width: number(1)) {
+ state s: number(6)
+ input[width] inp: number
reaction(inp) {=
let sum = 0;
@@ -40,9 +40,9 @@
=}
}
-main reactor(bankWidth: number(4)) {
- a = new[bankWidth] Source(width = 4)
- b = new[bankWidth] Destination(width = 4)
+main reactor(bankWidth: number(4)) {
+ a = new[bankWidth] Source(width = 4)
+ b = new[bankWidth] Destination(width = 4)
a.out -> b.inp after 200 msec
}
diff --git a/test/known-good/TypeScript/src/multiport/BankToMultiport.txt b/test/known-good/TypeScript/src/multiport/BankToMultiport.txt
index 0e1cdc297..ef926c5f4 100644
--- a/test/known-good/TypeScript/src/multiport/BankToMultiport.txt
+++ b/test/known-good/TypeScript/src/multiport/BankToMultiport.txt
@@ -2,14 +2,14 @@
target TypeScript
reactor Source {
- output out: number
+ output out: number
reaction(startup) -> out {= out = this.getBankIndex(); =}
}
reactor Sink {
- input[4] inp: number
- state received: boolean(false)
+ input[4] inp: number
+ state received: boolean(false)
reaction(inp) {=
for (let i = 0; i < inp.length; i++) {
@@ -29,7 +29,7 @@
}
main reactor BankToMultiport {
- source = new[4] Source()
+ source = new[4] Source()
sink = new Sink()
source.out -> sink.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/BankToReaction.txt b/test/known-good/TypeScript/src/multiport/BankToReaction.txt
index 71bbd05a9..a6855d4bd 100644
--- a/test/known-good/TypeScript/src/multiport/BankToReaction.txt
+++ b/test/known-good/TypeScript/src/multiport/BankToReaction.txt
@@ -1,13 +1,13 @@
target TypeScript {
- timeout: 5 sec
+ timeout: 5 sec
}
import Count from "../lib/Count.lf"
main reactor {
- state count: number(1)
+ state count: number(1)
- s = new[2] Count()
+ s = new[2] Count()
reaction(s.out) {=
for (let i = 0; i < s.length; i++) {
diff --git a/test/known-good/TypeScript/src/multiport/Broadcast.txt b/test/known-good/TypeScript/src/multiport/Broadcast.txt
index ff007334c..cf84a8899 100644
--- a/test/known-good/TypeScript/src/multiport/Broadcast.txt
+++ b/test/known-good/TypeScript/src/multiport/Broadcast.txt
@@ -1,13 +1,13 @@
target TypeScript
reactor Source {
- output out: number
+ output out: number
reaction(startup) -> out {= out = 42; =}
}
reactor Sink {
- input inp: number
+ input inp: number
reaction(inp) {=
console.log("Received " + inp);
@@ -19,7 +19,7 @@
main reactor {
source = new Source()
- sink = new[4] Sink()
+ sink = new[4] Sink()
(source.out)+ -> sink.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/BroadcastAfter.txt b/test/known-good/TypeScript/src/multiport/BroadcastAfter.txt
index 39ee64724..12bd8a0d3 100644
--- a/test/known-good/TypeScript/src/multiport/BroadcastAfter.txt
+++ b/test/known-good/TypeScript/src/multiport/BroadcastAfter.txt
@@ -1,16 +1,16 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
- output out: number
+ output out: number
reaction(startup) -> out {= out = 42; =}
}
reactor Destination {
- input inp: number
- state received: boolean(false)
+ input inp: number
+ state received: boolean(false)
reaction(inp) {=
console.log("Destination " + this.getBankIndex() + " received " + inp + ".");
@@ -34,7 +34,7 @@
main reactor {
a = new Source()
- b = new[4] Destination()
+ b = new[4] Destination()
(a.out)+ -> b.inp after 1 sec
}
diff --git a/test/known-good/TypeScript/src/multiport/BroadcastMultipleAfter.txt b/test/known-good/TypeScript/src/multiport/BroadcastMultipleAfter.txt
index 7bb3cbd93..c26822ae6 100644
--- a/test/known-good/TypeScript/src/multiport/BroadcastMultipleAfter.txt
+++ b/test/known-good/TypeScript/src/multiport/BroadcastMultipleAfter.txt
@@ -1,16 +1,16 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(value: number(42)) {
- output out: number
+reactor Source(value: number(42)) {
+ output out: number
reaction(startup) -> out {= out = value; =}
}
reactor Destination {
- input inp: number
- state received: boolean(false)
+ input inp: number
+ state received: boolean(false)
reaction(inp) {=
console.log("Destination " + this.getBankIndex() + " received " + inp + ".");
@@ -37,7 +37,7 @@
a1 = new Source(value = 1)
a2 = new Source(value = 2)
a3 = new Source(value = 3)
- b = new[9] Destination()
+ b = new[9] Destination()
(a1.out, a2.out, a3.out)+ -> b.inp after 1 sec
}
diff --git a/test/known-good/TypeScript/src/multiport/FullyConnected.txt b/test/known-good/TypeScript/src/multiport/FullyConnected.txt
index 6b89c1421..b29f93a5a 100644
--- a/test/known-good/TypeScript/src/multiport/FullyConnected.txt
+++ b/test/known-good/TypeScript/src/multiport/FullyConnected.txt
@@ -1,10 +1,10 @@
target TypeScript
-reactor Node(numNodes: number(4)) {
- input[numNodes] inp: number
- output out: number
+reactor Node(numNodes: number(4)) {
+ input[numNodes] inp: number
+ output out: number
- state received: boolean(false)
+ state received: boolean(false)
reaction(startup) -> out {=
console.log("Hello from node " + this.getBankIndex() + "!");
@@ -36,8 +36,8 @@
=}
}
-main reactor(numNodes: number(4)) {
- nodes = new[numNodes] Node(numNodes = numNodes)
+main reactor(numNodes: number(4)) {
+ nodes = new[numNodes] Node(numNodes = numNodes)
(nodes.out)+ -> nodes.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/MultiportFromBank.txt b/test/known-good/TypeScript/src/multiport/MultiportFromBank.txt
index 5304572da..47e78900e 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportFromBank.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportFromBank.txt
@@ -1,18 +1,18 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
- output out: number
+ output out: number
reaction(startup) -> out {= out = this.getBankIndex(); =}
}
-reactor Destination(portWidth: number(3)) {
- input[portWidth] inp: number
- state received: boolean(false)
+reactor Destination(portWidth: number(3)) {
+ input[portWidth] inp: number
+ state received: boolean(false)
reaction(inp) {=
for (let i = 0; i < inp.length; i++) {
@@ -32,8 +32,8 @@
=}
}
-main reactor(width: number(4)) {
- a = new[width] Source()
+main reactor(width: number(4)) {
+ a = new[width] Source()
b = new Destination(portWidth = width)
a.out -> b.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/MultiportFromBankHierarchy.txt b/test/known-good/TypeScript/src/multiport/MultiportFromBankHierarchy.txt
index c0b62c420..a3658e645 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportFromBankHierarchy.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportFromBankHierarchy.txt
@@ -1,14 +1,14 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
import Source, Destination from "MultiportFromBank.lf"
-reactor Container(portWidth: number(3)) {
- output[portWidth] out: number
- s = new[portWidth] Source()
+reactor Container(portWidth: number(3)) {
+ output[portWidth] out: number
+ s = new[portWidth] Source()
s.out -> out
}
diff --git a/test/known-good/TypeScript/src/multiport/MultiportFromBankHierarchyAfter.txt b/test/known-good/TypeScript/src/multiport/MultiportFromBankHierarchyAfter.txt
index ea5e77032..e2eba90c0 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportFromBankHierarchyAfter.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportFromBankHierarchyAfter.txt
@@ -1,7 +1,7 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
import Destination from "MultiportFromBank.lf"
diff --git a/test/known-good/TypeScript/src/multiport/MultiportFromHierarchy.txt b/test/known-good/TypeScript/src/multiport/MultiportFromHierarchy.txt
index a4728352d..8740c6f07 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportFromHierarchy.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportFromHierarchy.txt
@@ -1,13 +1,13 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(width: number(3)) {
+reactor Source(width: number(3)) {
timer t(0, 200 msec)
- output[width] out: number
- state s: number(0)
+ output[width] out: number
+ state s: number(0)
reaction(t) -> out {=
for(let i = 0; i < out.length; i++) {
@@ -16,9 +16,9 @@
=}
}
-reactor Destination(width: number(3)) {
- state s: number(6)
- input[width] inp: number
+reactor Destination(width: number(3)) {
+ state s: number(6)
+ input[width] inp: number
reaction(inp) {=
let sum = 0;
@@ -41,19 +41,19 @@
=}
}
-reactor Container(width: number(3)) {
- output[width] out: number
+reactor Container(width: number(3)) {
+ output[width] out: number
src = new InsideContainer(width = width)
src.out -> out
}
-reactor InsideContainer(width: number(3)) {
- output[width] out: number
+reactor InsideContainer(width: number(3)) {
+ output[width] out: number
src = new Source(width = width)
src.out -> out
}
-main reactor MultiportFromHierarchy(width: number(4)) {
+main reactor MultiportFromHierarchy(width: number(4)) {
a = new Container(width = width)
b = new Destination(width = width)
a.out -> b.inp
diff --git a/test/known-good/TypeScript/src/multiport/MultiportFromReaction.txt b/test/known-good/TypeScript/src/multiport/MultiportFromReaction.txt
index 15a1c89f4..3f2b657d4 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportFromReaction.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportFromReaction.txt
@@ -1,11 +1,11 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Destination(width: number(1)) {
- state s: number(6)
- input[width] inp: number
+reactor Destination(width: number(1)) {
+ state s: number(6)
+ input[width] inp: number
reaction(inp) {=
let sum = 0;
@@ -28,9 +28,9 @@
=}
}
-main reactor MultiportFromReaction(width: number(4)) {
+main reactor MultiportFromReaction(width: number(4)) {
timer t(0, 200 msec)
- state s: number(0)
+ state s: number(0)
b = new Destination(width = width)
reaction(t) -> b.inp {=
diff --git a/test/known-good/TypeScript/src/multiport/MultiportIn.txt b/test/known-good/TypeScript/src/multiport/MultiportIn.txt
index 9ea08e786..d73cff447 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportIn.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportIn.txt
@@ -1,27 +1,27 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
- output out: number
- state s: number(0)
+ output out: number
+ state s: number(0)
reaction(t) -> out {= out = s++; =}
}
reactor Computation {
- input inp: number
- output out: number
+ input inp: number
+ output out: number
reaction(inp) -> out {= out = inp; =}
}
reactor Destination {
- state s: number(0)
- input[4] inp: number
+ state s: number(0)
+ input[4] inp: number
reaction(inp) {=
let sum = 0;
diff --git a/test/known-good/TypeScript/src/multiport/MultiportInParameterized.txt b/test/known-good/TypeScript/src/multiport/MultiportInParameterized.txt
index 610648485..341bdc8a5 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportInParameterized.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportInParameterized.txt
@@ -1,13 +1,13 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
- output out: number
- state s: number(0)
+ output out: number
+ state s: number(0)
reaction(t) -> out {=
out = s;
@@ -16,15 +16,15 @@
}
reactor Computation {
- input inp: number
- output out: number
+ input inp: number
+ output out: number
reaction(inp) -> out {= out = inp; =}
}
-reactor Destination(width: number(1)) {
- state s: number(0)
- input[width] inp: number
+reactor Destination(width: number(1)) {
+ state s: number(0)
+ input[width] inp: number
reaction(inp) {=
let sum = 0;
diff --git a/test/known-good/TypeScript/src/multiport/MultiportMutableInput.txt b/test/known-good/TypeScript/src/multiport/MultiportMutableInput.txt
index 0e3dc1efd..d5344943d 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportMutableInput.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportMutableInput.txt
@@ -4,7 +4,7 @@
target TypeScript
reactor Source {
- output[2] out: number
+ output[2] out: number
reaction(startup) -> out {=
out[0] = 21;
@@ -12,8 +12,8 @@
=}
}
-reactor Print(scale: number(1)) {
- input[2] inp: number
+reactor Print(scale: number(1)) {
+ input[2] inp: number
reaction(inp) {=
let expected = 42;
@@ -27,9 +27,9 @@
=}
}
-reactor Scale(scale: number(2)) {
- mutable input[2] inp: number
- output[2] out: number
+reactor Scale(scale: number(2)) {
+ mutable input[2] inp: number
+ output[2] out: number
reaction(inp) -> out {=
for (let j = 0; j < 2; j++) {
diff --git a/test/known-good/TypeScript/src/multiport/MultiportMutableInputArray.txt b/test/known-good/TypeScript/src/multiport/MultiportMutableInputArray.txt
index a19526ad3..74531e6be 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportMutableInputArray.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportMutableInputArray.txt
@@ -26,7 +26,7 @@
=}
}
-reactor Print(scale: number(1)) {
+reactor Print(scale: number(1)) {
input[2] inp: {= Array =}
reaction(inp) {=
@@ -55,7 +55,7 @@
=}
}
-reactor Scale(scale: number(2)) {
+reactor Scale(scale: number(2)) {
mutable input[2] inp: {= Array =}
output[2] out: {= Array =}
diff --git a/test/known-good/TypeScript/src/multiport/MultiportOut.txt b/test/known-good/TypeScript/src/multiport/MultiportOut.txt
index dde4eaf1c..c20afab67 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportOut.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportOut.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
- output[4] out: number
- state s: number(0)
+ output[4] out: number
+ state s: number(0)
reaction(t) -> out {=
for(let i = 0; i < 4; i++) {
@@ -17,8 +17,8 @@
}
reactor Computation {
- input inp: number
- output out: number
+ input inp: number
+ output out: number
reaction(inp) -> out {=
@@ -27,8 +27,8 @@
}
reactor Destination {
- state s: number(0)
- input[4] inp: number
+ state s: number(0)
+ input[4] inp: number
reaction(inp) {=
let sum = 0;
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToBank.txt b/test/known-good/TypeScript/src/multiport/MultiportToBank.txt
index b18ee464a..3029f411f 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToBank.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToBank.txt
@@ -1,7 +1,7 @@
target TypeScript
reactor Source {
- output[4] out: number
+ output[4] out: number
reaction(startup) -> out {=
for (let i = 0 ; i < out.length; i++) {
@@ -11,7 +11,7 @@
}
reactor Sink {
- input inp: number
+ input inp: number
reaction(inp) {=
console.log("Received " + inp);
@@ -23,7 +23,7 @@
main reactor MultiportToBank {
source = new Source()
- sink = new[4] Sink()
+ sink = new[4] Sink()
source.out -> sink.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToBankAfter.txt b/test/known-good/TypeScript/src/multiport/MultiportToBankAfter.txt
index 99cd8422b..207bfe629 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToBankAfter.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToBankAfter.txt
@@ -1,11 +1,11 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(width: number(2)) {
- output[width] out: number
+reactor Source(width: number(2)) {
+ output[width] out: number
reaction(startup) -> out {=
for (let i = 0; i < out.length; i++) {
@@ -15,8 +15,8 @@
}
reactor Destination {
- input inp: number
- state received: boolean(false)
+ input inp: number
+ state received: boolean(false)
reaction(inp) {=
console.log("Destination " + this.getBankIndex() + " received " + inp + ".");
@@ -39,9 +39,9 @@
=}
}
-main reactor(width: number(3)) {
+main reactor(width: number(3)) {
a = new Source(width = width)
- b = new[width] Destination()
+ b = new[width] Destination()
a.out -> b.inp after 1 sec
}
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToBankDouble.txt b/test/known-good/TypeScript/src/multiport/MultiportToBankDouble.txt
index 716d94c34..bbcd374f3 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToBankDouble.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToBankDouble.txt
@@ -1,11 +1,11 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
- output[3] out: number
+ output[3] out: number
reaction(startup) -> out {=
for (let i = 0; i < out.length; i++) {
@@ -24,8 +24,8 @@
}
reactor Destination {
- input inp: number
- state received: boolean(false)
+ input inp: number
+ state received: boolean(false)
reaction(inp) {=
console.log("Destination " + this.getBankIndex() + " received " + inp + ".");
@@ -45,7 +45,7 @@
main reactor {
a = new Source()
- b = new[3] Destination()
+ b = new[3] Destination()
a.out -> b.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToBankHierarchy.txt b/test/known-good/TypeScript/src/multiport/MultiportToBankHierarchy.txt
index 089a546c2..ec948d1f7 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToBankHierarchy.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToBankHierarchy.txt
@@ -1,11 +1,11 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
- output[3] out: number
+ output[3] out: number
reaction(startup) -> out {=
for(let i = 0; i < out.length; i++) {
@@ -15,8 +15,8 @@
}
reactor Destination {
- input inp: number
- state received: boolean(false)
+ input inp: number
+ state received: boolean(false)
reaction(inp) {=
console.log("Destination " + this.getBankIndex() + " received " + inp + ".");
@@ -35,8 +35,8 @@
}
reactor Container {
- input[3] inp: number
- c = new[3] Destination()
+ input[3] inp: number
+ c = new[3] Destination()
inp -> c.inp
}
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToHierarchy.txt b/test/known-good/TypeScript/src/multiport/MultiportToHierarchy.txt
index 8a18ed233..0bced7c9f 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToHierarchy.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToHierarchy.txt
@@ -2,13 +2,13 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(width: number(4)) {
+reactor Source(width: number(4)) {
timer t(0, 200 msec)
- output[width] out: number
- state s: number(0)
+ output[width] out: number
+ state s: number(0)
reaction(t) -> out {=
for(let i = 0; i < 4; i++) {
@@ -17,9 +17,9 @@
=}
}
-reactor Destination(width: number(4)) {
- state s: number(6)
- input[width] inp: number
+reactor Destination(width: number(4)) {
+ state s: number(6)
+ input[width] inp: number
reaction(inp) {=
let sum = 0;
@@ -42,13 +42,13 @@
=}
}
-reactor Container(width: number(4)) {
- input[width] inp: number
+reactor Container(width: number(4)) {
+ input[width] inp: number
dst = new Destination()
inp -> dst.inp
}
-main reactor MultiportToHierarchy(width: number(4)) {
+main reactor MultiportToHierarchy(width: number(4)) {
a = new Source(width = width)
b = new Container(width = width)
a.out -> b.inp
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToMultiport.txt b/test/known-good/TypeScript/src/multiport/MultiportToMultiport.txt
index 53eee2eb0..7ad405920 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToMultiport.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToMultiport.txt
@@ -1,7 +1,7 @@
target TypeScript
reactor Source {
- output[4] out: number
+ output[4] out: number
reaction(startup) -> out {=
for (let i = 0; i < out.length; i++) {
@@ -11,8 +11,8 @@
}
reactor Sink {
- input[4] inp: number
- state received: boolean(false)
+ input[4] inp: number
+ state received: boolean(false)
reaction(inp) {=
for (let i = 0; i < inp.length; i++) {
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToMultiport2.txt b/test/known-good/TypeScript/src/multiport/MultiportToMultiport2.txt
index 695c15193..5b4c446af 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToMultiport2.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToMultiport2.txt
@@ -1,8 +1,8 @@
target TypeScript
-reactor Source(width: number(2)) {
- output[width] out: number
+reactor Source(width: number(2)) {
+ output[width] out: number
reaction(startup) -> out {=
for (let i = 0; i < out.length; i++) {
@@ -11,8 +11,8 @@
=}
}
-reactor Destination(width: number(2)) {
- input[width] inp: number
+reactor Destination(width: number(2)) {
+ input[width] inp: number
reaction(inp) {=
for (let i = 0; i < inp.length; i++) {
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToMultiport2After.txt b/test/known-good/TypeScript/src/multiport/MultiportToMultiport2After.txt
index c1431f204..933715c13 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToMultiport2After.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToMultiport2After.txt
@@ -1,8 +1,8 @@
target TypeScript
-reactor Source(width: number(2)) {
- output[width] out: number
+reactor Source(width: number(2)) {
+ output[width] out: number
reaction(startup) -> out {=
for (let i = 0; i < out.length; i++) {
@@ -11,8 +11,8 @@
=}
}
-reactor Destination(width: number(2)) {
- input[width] inp: number
+reactor Destination(width: number(2)) {
+ input[width] inp: number
reaction(inp) {=
for (let i = 0; i < inp.length; i++) {
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToMultiportArray.txt b/test/known-good/TypeScript/src/multiport/MultiportToMultiportArray.txt
index 1f160a5e7..5abed1963 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToMultiportArray.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToMultiportArray.txt
@@ -1,13 +1,13 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
timer t(0, 200 msec)
output[2] out: {= Array =}
- state s: number(0)
+ state s: number(0)
reaction(t) -> out {=
for(let i = 0; i < 2; i++) {
@@ -24,7 +24,7 @@
}
reactor Destination {
- state s: number(15)
+ state s: number(15)
input[2] inp: {= Array =}
reaction(inp) {=
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToMultiportParameter.txt b/test/known-good/TypeScript/src/multiport/MultiportToMultiportParameter.txt
index 458a0c679..da630f83f 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToMultiportParameter.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToMultiportParameter.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(width: number(1)) {
+reactor Source(width: number(1)) {
timer t(0, 200 msec)
- output[width] out: number
- state s: number(0)
+ output[width] out: number
+ state s: number(0)
reaction(t) -> out {=
for (let i = 0; i < out.length; i++) {
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(width: number(1)) {
- state s: number(6)
- input[width] inp: number
+reactor Destination(width: number(1)) {
+ state s: number(6)
+ input[width] inp: number
reaction(inp) {=
let sum = 0;
@@ -39,7 +39,7 @@
=}
}
-main reactor(width: number(4)) {
+main reactor(width: number(4)) {
a = new Source(width = width)
b = new Destination(width = width)
a.out -> b.inp
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToPort.txt b/test/known-good/TypeScript/src/multiport/MultiportToPort.txt
index 02b7370e2..7aabd07a4 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToPort.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToPort.txt
@@ -1,11 +1,11 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
reactor Source {
- output[2] out: number
+ output[2] out: number
reaction(startup) -> out {=
for(let i = 0; i < out.length; i++) {
@@ -15,9 +15,9 @@
=}
}
-reactor Destination(expected: number(0)) {
- input inp: number
- state received: boolean(false)
+reactor Destination(expected: number(0)) {
+ input inp: number
+ state received: boolean(false)
reaction(inp) {=
console.log("Received " + inp);
diff --git a/test/known-good/TypeScript/src/multiport/MultiportToReaction.txt b/test/known-good/TypeScript/src/multiport/MultiportToReaction.txt
index c9ac1e43e..09cc37f9a 100644
--- a/test/known-good/TypeScript/src/multiport/MultiportToReaction.txt
+++ b/test/known-good/TypeScript/src/multiport/MultiportToReaction.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 2 sec
+ timeout: 2 sec
}
-reactor Source(width: number(1)) {
+reactor Source(width: number(1)) {
timer t(0, 200 msec)
- state s: number(0)
- output[width] out: number
+ state s: number(0)
+ output[width] out: number
reaction(t) -> out {=
console.log("Sending.");
@@ -17,7 +17,7 @@
}
main reactor MultiportToReaction {
- state s: number(6)
+ state s: number(6)
b = new Source(width = 4)
reaction(b.out) {=
diff --git a/test/known-good/TypeScript/src/multiport/NestedBanks.txt b/test/known-good/TypeScript/src/multiport/NestedBanks.txt
index c74b666c7..fd8abf601 100644
--- a/test/known-good/TypeScript/src/multiport/NestedBanks.txt
+++ b/test/known-good/TypeScript/src/multiport/NestedBanks.txt
@@ -6,8 +6,8 @@
target TypeScript
main reactor {
- a = new[2] A()
- c = new[3] C()
+ a = new[2] A()
+ c = new[3] C()
d = new D()
e = new E()
@@ -15,13 +15,13 @@
}
reactor A {
- output[4] x: number
- b = new[2] B(aBankIndex = {= this.getBankIndex() =})
+ output[4] x: number
+ b = new[2] B(aBankIndex = {= this.getBankIndex() =})
b.y -> x
}
-reactor B(aBankIndex: number(0)) {
- output[2] y: number
+reactor B(aBankIndex: number(0)) {
+ output[2] y: number
reaction(startup) -> y {=
let base = aBankIndex * 4 + this.getBankIndex() * 2;
@@ -31,14 +31,14 @@
}
reactor C {
- input[2] z: number
+ input[2] z: number
f = new F(cBankIndex = {= this.getBankIndex() =})
g = new G(cBankIndex = {= this.getBankIndex() =})
z -> f.w, g.s
}
reactor D {
- input[2] u: number
+ input[2] u: number
reaction(u) {=
for (let i = 0; i < u.length; i++) {
@@ -51,7 +51,7 @@
}
reactor E {
- input[8] t: number
+ input[8] t: number
reaction(t) {=
for (let i = 0; i < t.length; i++) {
@@ -60,8 +60,8 @@
=}
}
-reactor F(cBankIndex: number(0)) {
- input w: number
+reactor F(cBankIndex: number(0)) {
+ input w: number
reaction(w) {=
console.log("c[" + cBankIndex + "].f.w received " + w + ".");
@@ -71,8 +71,8 @@
=}
}
-reactor G(cBankIndex: number(0)) {
- input s: number
+reactor G(cBankIndex: number(0)) {
+ input s: number
reaction(s) {=
console.log("c[" + cBankIndex + "].g.s received " + s + ".");
diff --git a/test/known-good/TypeScript/src/multiport/PipelineAfter.txt b/test/known-good/TypeScript/src/multiport/PipelineAfter.txt
index b951a1796..a0c1e8b2e 100644
--- a/test/known-good/TypeScript/src/multiport/PipelineAfter.txt
+++ b/test/known-good/TypeScript/src/multiport/PipelineAfter.txt
@@ -1,20 +1,20 @@
target TypeScript
reactor Source {
- output out: number
+ output out: number
reaction(startup) -> out {= out = 40; =}
}
reactor Compute {
- input inp: number
- output out: number
+ input inp: number
+ output out: number
reaction(inp) -> out {= out = (inp as number) + 2; =}
}
reactor Sink {
- input inp: number
+ input inp: number
reaction(inp) {=
console.log("Received " + inp);
diff --git a/test/known-good/TypeScript/src/multiport/ReactionToContainedBank.txt b/test/known-good/TypeScript/src/multiport/ReactionToContainedBank.txt
index 981b52542..a46b46b99 100644
--- a/test/known-good/TypeScript/src/multiport/ReactionToContainedBank.txt
+++ b/test/known-good/TypeScript/src/multiport/ReactionToContainedBank.txt
@@ -1,15 +1,15 @@
target TypeScript {
- timeout: 1 sec
+ timeout: 1 sec
}
import TestCount from "../lib/TestCount.lf"
-main reactor ReactionToContainedBank(width: number(2)) {
+main reactor ReactionToContainedBank(width: number(2)) {
timer t(0, 100 msec)
- state count: number(1)
+ state count: number(1)
- test = new[width] TestCount(numInputs = 11)
+ test = new[width] TestCount(numInputs = 11)
reaction(t) -> test.inp {=
for (let i = 0; i < width; i++) {
diff --git a/test/known-good/TypeScript/src/multiport/ReactionsToNested.txt b/test/known-good/TypeScript/src/multiport/ReactionsToNested.txt
index 09750abaf..a48eb4089 100644
--- a/test/known-good/TypeScript/src/multiport/ReactionsToNested.txt
+++ b/test/known-good/TypeScript/src/multiport/ReactionsToNested.txt
@@ -1,12 +1,12 @@
target TypeScript {
- timeout: 1 sec
+ timeout: 1 sec
}
-reactor T(expected: number(0)) {
- input z: number
- state received: boolean(false)
+reactor T(expected: number(0)) {
+ input z: number
+ state received: boolean(false)
reaction(z) {=
console.log("T received " + z);
@@ -24,7 +24,7 @@
}
reactor D {
- input[2] y: number
+ input[2] y: number
t1 = new T(expected = 42)
t2 = new T(expected = 43)
y -> t1.z, t2.z
diff --git a/test/known-good/TypeScript/src/serialization/ProtoNoPacking.txt b/test/known-good/TypeScript/src/serialization/ProtoNoPacking.txt
index 7efe57fba..751a7f7f2 100644
--- a/test/known-good/TypeScript/src/serialization/ProtoNoPacking.txt
+++ b/test/known-good/TypeScript/src/serialization/ProtoNoPacking.txt
@@ -13,11 +13,11 @@
target TypeScript {
- protobufs: ProtoHelloWorld.proto
+ protobufs: ProtoHelloWorld.proto
}
reactor SourceProto {
- output out: ProtoHelloWorld.ProtoHelloWorld
+ output out: ProtoHelloWorld.ProtoHelloWorld
reaction(startup) -> out {=
@@ -32,11 +32,11 @@
}
reactor SinkProto {
- input x: ProtoHelloWorld.ProtoHelloWorld
+ input x: ProtoHelloWorld.ProtoHelloWorld
reaction(x) {=
if (x !== undefined) {
- console.log(`Received: name=${x.getName()}, number=${x.getNumber()}.`)
+ console.log(`Received: name=${x.getName()}, number=${x.getNumber()}.`)
}
=}
}
diff --git a/test/known-good/TypeScript/src/target/AfterNoTypes.txt b/test/known-good/TypeScript/src/target/AfterNoTypes.txt
index 92e955113..22aeb1477 100644
--- a/test/known-good/TypeScript/src/target/AfterNoTypes.txt
+++ b/test/known-good/TypeScript/src/target/AfterNoTypes.txt
@@ -1,8 +1,8 @@
target TypeScript {
- fast: false,
- timeout: 3 sec
+ fast: false,
+ timeout: 3 sec
}
reactor Foo {
@@ -15,7 +15,7 @@
}
reactor Print {
- state expected_time: time(10 msec)
+ state expected_time: time(10 msec)
input x
reaction(x) {=