timed-automata-analyzer 0.9.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ In case you want to contribute to the tool or fork the repository, only few step
21
21
  - As a first step, you need to install Rust.
22
22
  See the [Rust website](https://www.rust-lang.org/tools/install) for information on how to do this.
23
23
  - Additionally, you need to install _wasm-pack_ with `cargo install wasm-pack` for WebAssembly outputs.
24
- - The WebAssembly binary (including glue code for JavaScript/TypeScript and an NPM package) is generated by running `wasm-pack build --target bundler`.
24
+ - The WebAssembly binary (including glue code for JavaScript/TypeScript and an npm package) is generated by running `wasm-pack build --target bundler` and published to the npm registry by running `wasm-pack publish`.
25
25
  - This project includes an extensive test suite. Tests can be run with `cargo test`.
26
26
  - For linting, this project uses the built-in linter of Rust as well as [Clippy](https://github.com/rust-lang/rust-clippy).
27
27
  To run the linters, execute `cargo check` and `cargo clippy`, respectively.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "luth1um"
6
6
  ],
7
7
  "description": "An analyzer for Timed Automata written in Rust",
8
- "version": "0.9.1",
8
+ "version": "1.0.1",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -1,6 +1,23 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
+ * Checks all locations of the input TA for reachability and returns all unreachable locations. The
5
+ * result will be empty if all locations are reachable.
6
+ *
7
+ * This function will throw an error if one or more validation checks fail. The following
8
+ * properties will be validated:
9
+ * <ul>
10
+ * <li>There exists exactly one initial location.</li>
11
+ * <li>The set of locations is non-empty.</li>
12
+ * <li>All invariants are downward-closed.</li>
13
+ * <li>The highest constant used in any clock constraint is not greater than the highest allowed
14
+ * value (536870909).</li>
15
+ * <li>All locations names are unique.</li>
16
+ * <li>All clock names are unique.</li>
17
+ * <li>All clocks used in clock constraints are also contained in the set of clocks.</li>
18
+ * <li>All location names used as source and target of switches are also contained in the set of
19
+ * locations.</li>
20
+ * </ul>
4
21
  * @param {TimedAutomaton} ta
5
22
  * @returns {(string)[]}
6
23
  */
@@ -151,6 +151,23 @@ function getArrayJsValueFromWasm0(ptr, len) {
151
151
  return result;
152
152
  }
153
153
  /**
154
+ * Checks all locations of the input TA for reachability and returns all unreachable locations. The
155
+ * result will be empty if all locations are reachable.
156
+ *
157
+ * This function will throw an error if one or more validation checks fail. The following
158
+ * properties will be validated:
159
+ * <ul>
160
+ * <li>There exists exactly one initial location.</li>
161
+ * <li>The set of locations is non-empty.</li>
162
+ * <li>All invariants are downward-closed.</li>
163
+ * <li>The highest constant used in any clock constraint is not greater than the highest allowed
164
+ * value (536870909).</li>
165
+ * <li>All locations names are unique.</li>
166
+ * <li>All clock names are unique.</li>
167
+ * <li>All clocks used in clock constraints are also contained in the set of clocks.</li>
168
+ * <li>All location names used as source and target of switches are also contained in the set of
169
+ * locations.</li>
170
+ * </ul>
154
171
  * @param {TimedAutomaton} ta
155
172
  * @returns {(string)[]}
156
173
  */
Binary file