@eagleoutice/flowr 2.12.2 → 2.13.0
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 +38 -91
- package/abstract-interpretation/data-frame/dataframe-domain.d.ts +3 -3
- package/abstract-interpretation/data-frame/dataframe-domain.js +14 -6
- package/abstract-interpretation/data-frame/semantics.js +12 -16
- package/abstract-interpretation/domains/abstract-domain.d.ts +46 -44
- package/abstract-interpretation/domains/abstract-domain.js +146 -6
- package/abstract-interpretation/domains/bounded-set-domain.d.ts +16 -25
- package/abstract-interpretation/domains/bounded-set-domain.js +22 -69
- package/abstract-interpretation/domains/interval-domain.d.ts +27 -36
- package/abstract-interpretation/domains/interval-domain.js +111 -146
- package/abstract-interpretation/domains/lattice.d.ts +3 -3
- package/abstract-interpretation/domains/multi-value-state-domain.js +3 -3
- package/abstract-interpretation/domains/partial-product-domain.d.ts +12 -19
- package/abstract-interpretation/domains/partial-product-domain.js +21 -54
- package/abstract-interpretation/domains/positive-interval-domain.d.ts +8 -12
- package/abstract-interpretation/domains/positive-interval-domain.js +21 -50
- package/abstract-interpretation/domains/product-domain.d.ts +1 -1
- package/abstract-interpretation/domains/product-domain.js +4 -4
- package/abstract-interpretation/domains/set-range-domain.d.ts +60 -56
- package/abstract-interpretation/domains/set-range-domain.js +141 -200
- package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +17 -23
- package/abstract-interpretation/domains/set-upper-bound-domain.js +59 -103
- package/abstract-interpretation/domains/singleton-domain.d.ts +15 -18
- package/abstract-interpretation/domains/singleton-domain.js +33 -72
- package/abstract-interpretation/domains/state-abstract-domain.d.ts +12 -16
- package/abstract-interpretation/domains/state-abstract-domain.js +36 -126
- package/abstract-interpretation/domains/state-domain-like.d.ts +2 -2
- package/abstract-interpretation/domains/value-abstract-domain.d.ts +120 -0
- package/abstract-interpretation/domains/{satisfiable-domain.js → value-abstract-domain.js} +14 -2
- package/benchmark/slicer.d.ts +2 -2
- package/benchmark/slicer.js +6 -5
- package/cli/common/options.d.ts +10 -0
- package/cli/common/options.js +2 -0
- package/cli/common/scripts-info.d.ts +10 -0
- package/cli/flowr-main-options.d.ts +4 -0
- package/cli/flowr-main-options.js +5 -0
- package/cli/flowr.d.ts +5 -0
- package/cli/flowr.js +15 -7
- package/cli/repl/commands/repl-query.js +42 -20
- package/cli/repl/commands/repl-signature.js +2 -2
- package/cli/repl/core.d.ts +14 -5
- package/cli/repl/core.js +32 -17
- package/cli/repl/parser/slice-query-parser.d.ts +69 -8
- package/cli/repl/parser/slice-query-parser.js +82 -13
- package/cli/repl/path-input.d.ts +6 -0
- package/cli/repl/path-input.js +41 -0
- package/cli/repl/print-version.js +3 -5
- package/cli/slicer-app.d.ts +2 -0
- package/cli/slicer-app.js +2 -1
- package/config.d.ts +54 -6
- package/config.js +133 -12
- package/control-flow/control-flow-graph.d.ts +3 -2
- package/control-flow/control-flow-graph.js +34 -14
- package/control-flow/semantic-cfg-guided-visitor.d.ts +3 -0
- package/control-flow/semantic-cfg-guided-visitor.js +3 -0
- package/core/steps/all/static-slicing/10-reconstruct.d.ts +6 -0
- package/core/steps/all/static-slicing/10-reconstruct.js +3 -1
- package/data/r-base-packages.generated.d.ts +1 -1
- package/data/r-base-packages.generated.js +3 -3
- package/data/sigdb/sigdb.remote.json +53 -53
- package/dataflow/environments/built-in-proc-name.d.ts +2 -0
- package/dataflow/environments/built-in-proc-name.js +2 -0
- package/dataflow/environments/built-in.d.ts +2 -0
- package/dataflow/environments/built-in.js +2 -0
- package/dataflow/environments/default-builtin-config.d.ts +3 -5
- package/dataflow/environments/default-builtin-config.js +2 -2
- package/dataflow/environments/environment.d.ts +9 -0
- package/dataflow/environments/environment.js +28 -7
- package/dataflow/environments/identifier.d.ts +1 -2
- package/dataflow/environments/identifier.js +1 -5
- package/dataflow/extractor.js +1 -2
- package/dataflow/graph/dataflowgraph-builder.js +42 -3
- package/dataflow/graph/df-helper.d.ts +15 -0
- package/dataflow/graph/df-helper.js +20 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +4 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +7 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +13 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +4 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +57 -11
- package/dataflow/internal/process/functions/call/built-in/built-in-load.d.ts +12 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +233 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +5 -3
- package/documentation/data/faq/faqs.js +12 -1
- package/documentation/doc-readme.js +1 -1
- package/documentation/doc-util/doc-files.d.ts +2 -2
- package/documentation/doc-util/doc-files.js +4 -7
- package/documentation/doc-util/doc-query.d.ts +12 -9
- package/documentation/doc-util/doc-query.js +63 -28
- package/documentation/wiki-absint.js +1 -4
- package/documentation/wiki-analyzer.js +8 -3
- package/documentation/wiki-cfg.js +3 -2
- package/documentation/wiki-dataflow-graph.js +14 -4
- package/documentation/wiki-interface.js +29 -16
- package/documentation/wiki-mk/doc-maker.js +1 -1
- package/documentation/wiki-query.js +189 -30
- package/documentation/wiki-signature-database.d.ts +1 -1
- package/documentation/wiki-signature-database.js +53 -27
- package/linter/linter-output.d.ts +24 -0
- package/linter/linter-output.js +117 -0
- package/linter/linter-rules.d.ts +2 -4
- package/linter/rules/dataframe-access-validation.js +4 -4
- package/linter/rules/deprecated-functions.d.ts +2 -4
- package/linter/rules/deprecated-functions.js +58 -3
- package/linter/rules/undefined-symbol.js +18 -10
- package/linter/rules/unused-definition.js +24 -0
- package/package.json +5 -2
- package/project/context/flowr-analyzer-context.d.ts +59 -1
- package/project/context/flowr-analyzer-context.js +118 -3
- package/project/context/flowr-analyzer-dependencies-context.d.ts +32 -7
- package/project/context/flowr-analyzer-dependencies-context.js +33 -3
- package/project/context/flowr-analyzer-files-context.d.ts +32 -0
- package/project/context/flowr-analyzer-files-context.js +132 -14
- package/project/context/flowr-analyzer-loading-order-context.d.ts +6 -0
- package/project/context/flowr-analyzer-loading-order-context.js +20 -0
- package/project/context/flowr-analyzer-meta-context.d.ts +92 -10
- package/project/context/flowr-analyzer-meta-context.js +64 -23
- package/project/context/flowr-file.d.ts +7 -0
- package/project/context/flowr-file.js +7 -0
- package/project/context/project-kind.d.ts +22 -0
- package/project/context/project-kind.js +27 -0
- package/project/dependency-version-space.d.ts +166 -0
- package/project/dependency-version-space.js +564 -0
- package/project/flowr-analyzer-builder.js +1 -1
- package/project/flowr-analyzer.d.ts +4 -0
- package/project/flowr-analyzer.js +5 -0
- package/project/plugins/file-plugins/files/flowr-description-file.d.ts +4 -0
- package/project/plugins/file-plugins/files/flowr-description-file.js +7 -0
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +5 -1
- package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +739 -0
- package/project/plugins/file-plugins/files/flowr-rda-file.js +2407 -0
- package/project/plugins/file-plugins/files/flowr-rproject-file.d.ts +31 -0
- package/project/plugins/file-plugins/files/flowr-rproject-file.js +66 -0
- package/project/plugins/file-plugins/files/r-fun-tab.d.ts +828 -0
- package/project/plugins/file-plugins/files/r-fun-tab.js +1039 -0
- package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-inst-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-inst-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-license-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-license-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-namespace-files-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-namespace-files-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-news-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-news-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-rda-file-plugin.d.ts +26 -0
- package/project/plugins/file-plugins/flowr-analyzer-rda-file-plugin.js +38 -0
- package/project/plugins/file-plugins/flowr-analyzer-rprofile-file-plugin.d.ts +17 -0
- package/project/plugins/file-plugins/flowr-analyzer-rprofile-file-plugin.js +30 -0
- package/project/plugins/file-plugins/flowr-analyzer-rproject-file-plugin.d.ts +22 -0
- package/project/plugins/file-plugins/flowr-analyzer-rproject-file-plugin.js +36 -0
- package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +3 -4
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +5 -6
- package/project/plugins/flowr-analyzer-plugin.js +5 -0
- package/project/plugins/loading-order-plugins/flowr-analyzer-loading-order-description-file-plugin.d.ts +1 -1
- package/project/plugins/loading-order-plugins/flowr-analyzer-loading-order-description-file-plugin.js +1 -1
- package/project/plugins/loading-order-plugins/flowr-analyzer-loading-order-implicit-sources-plugin.d.ts +14 -0
- package/project/plugins/loading-order-plugins/flowr-analyzer-loading-order-implicit-sources-plugin.js +53 -0
- package/project/plugins/loading-order-plugins/flowr-analyzer-loading-order-plugin.js +1 -1
- package/project/plugins/loading-order-plugins/flowr-analyzer-loading-order-rprofile-plugin.d.ts +15 -0
- package/project/plugins/loading-order-plugins/flowr-analyzer-loading-order-rprofile-plugin.js +33 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-description-file-plugin.d.ts +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-description-file-plugin.js +18 -13
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.d.ts +13 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.js +32 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.d.ts +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.js +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +8 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +70 -7
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-namespace-file-plugin.d.ts +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-namespace-file-plugin.js +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-session-info-plugin.d.ts +18 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-session-info-plugin.js +62 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +4 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +5 -13
- package/project/plugins/package-version-plugins/package.d.ts +4 -1
- package/project/plugins/package-version-plugins/package.js +8 -5
- package/project/plugins/plugin-registry.d.ts +11 -3
- package/project/plugins/plugin-registry.js +24 -5
- package/project/plugins/project-discovery/flowr-analyzer-ignore-file-project-discovery-plugin.d.ts +51 -0
- package/project/plugins/project-discovery/flowr-analyzer-ignore-file-project-discovery-plugin.js +101 -0
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +10 -5
- package/project/sigdb/build.js +12 -2
- package/project/sigdb/decode.d.ts +7 -0
- package/project/sigdb/decode.js +35 -4
- package/project/sigdb/decompress.d.ts +2 -0
- package/project/sigdb/decompress.js +5 -0
- package/project/sigdb/manifest.d.ts +5 -0
- package/project/sigdb/manifest.js +37 -6
- package/project/sigdb/reader.d.ts +82 -2
- package/project/sigdb/reader.js +226 -14
- package/project/sigdb/schema.d.ts +31 -5
- package/project/sigdb/schema.js +7 -3
- package/project/sigdb/{version.d.ts → sigdb-version.d.ts} +21 -1
- package/project/sigdb/sigdb-version.js +119 -0
- package/queries/catalog/absint-query/absint-query-format.d.ts +2 -0
- package/queries/catalog/absint-query/absint-query-format.js +2 -0
- package/queries/catalog/call-context-query/call-context-query-executor.js +30 -3
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +1 -0
- package/queries/catalog/call-context-query/call-context-query-format.js +1 -0
- package/queries/catalog/call-graph-query/call-graph-query-executor.js +3 -1
- package/queries/catalog/call-graph-query/call-graph-query-format.d.ts +6 -0
- package/queries/catalog/call-graph-query/call-graph-query-format.js +2 -0
- package/queries/catalog/call-graph-query/expand-library-internals.d.ts +19 -0
- package/queries/catalog/call-graph-query/expand-library-internals.js +59 -0
- package/queries/catalog/cluster-query/cluster-query-format.d.ts +1 -0
- package/queries/catalog/cluster-query/cluster-query-format.js +1 -0
- package/queries/catalog/config-query/config-query-executor.js +15 -6
- package/queries/catalog/config-query/config-query-format.d.ts +18 -4
- package/queries/catalog/config-query/config-query-format.js +246 -96
- package/queries/catalog/control-flow-query/control-flow-query-format.d.ts +1 -0
- package/queries/catalog/control-flow-query/control-flow-query-format.js +1 -0
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.d.ts +1 -0
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.js +1 -0
- package/queries/catalog/dataflow-query/dataflow-query-format.d.ts +1 -0
- package/queries/catalog/dataflow-query/dataflow-query-format.js +1 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +2 -7
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +13 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +117 -17
- package/queries/catalog/dice-query/dice-query-executor.js +6 -9
- package/queries/catalog/dice-query/dice-query-format.d.ts +4 -5
- package/queries/catalog/dice-query/dice-query-format.js +10 -6
- package/queries/catalog/does-call-query/does-call-query-executor.js +15 -2
- package/queries/catalog/does-call-query/does-call-query-format.d.ts +8 -0
- package/queries/catalog/does-call-query/does-call-query-format.js +4 -1
- package/queries/catalog/files-query/files-query-format.d.ts +2 -0
- package/queries/catalog/files-query/files-query-format.js +2 -0
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.d.ts +6 -0
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +277 -0
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +119 -0
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +331 -0
- package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +1 -0
- package/queries/catalog/happens-before-query/happens-before-query-format.js +1 -0
- package/queries/catalog/id-map-query/id-map-query-format.d.ts +1 -0
- package/queries/catalog/id-map-query/id-map-query-format.js +1 -0
- package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +2 -0
- package/queries/catalog/input-sources-query/input-sources-query-format.js +2 -0
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +2 -0
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +2 -0
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +2 -0
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +2 -0
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.d.ts +2 -0
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.js +2 -0
- package/queries/catalog/linter-query/linter-query-executor.js +11 -2
- package/queries/catalog/linter-query/linter-query-format.d.ts +9 -4
- package/queries/catalog/linter-query/linter-query-format.js +44 -21
- package/queries/catalog/location-map-query/location-map-query-format.d.ts +2 -0
- package/queries/catalog/location-map-query/location-map-query-format.js +2 -0
- package/queries/catalog/normalized-ast-query/normalized-ast-query-format.d.ts +1 -0
- package/queries/catalog/normalized-ast-query/normalized-ast-query-format.js +1 -0
- package/queries/catalog/origin-query/origin-query-format.d.ts +2 -0
- package/queries/catalog/origin-query/origin-query-format.js +2 -0
- package/queries/catalog/project-query/project-query-executor.d.ts +0 -15
- package/queries/catalog/project-query/project-query-executor.js +19 -62
- package/queries/catalog/project-query/project-query-format.d.ts +7 -18
- package/queries/catalog/project-query/project-query-format.js +3 -18
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +2 -0
- package/queries/catalog/provenance-query/provenance-query-format.js +2 -0
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +2 -0
- package/queries/catalog/resolve-value-query/resolve-value-query-format.js +2 -0
- package/queries/catalog/search-query/search-query-format.d.ts +1 -0
- package/queries/catalog/search-query/search-query-format.js +1 -0
- package/queries/catalog/signature-query/signature-query-executor.d.ts +5 -0
- package/queries/catalog/signature-query/signature-query-executor.js +267 -57
- package/queries/catalog/signature-query/signature-query-format.d.ts +37 -6
- package/queries/catalog/signature-query/signature-query-format.js +41 -5
- package/queries/catalog/signature-query/signature-query-render.js +48 -6
- package/queries/catalog/slice-query-options.d.ts +49 -0
- package/queries/catalog/slice-query-options.js +50 -0
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +4 -12
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +4 -15
- package/queries/catalog/static-slice-query/static-slice-query-format.js +9 -10
- package/queries/query-print.js +3 -1
- package/queries/query.d.ts +63 -3
- package/queries/query.js +9 -2
- package/r-bridge/data/data.d.ts +16 -0
- package/r-bridge/data/data.js +20 -0
- package/r-bridge/lang-4.x/ast/model/model.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/processing/decorate.js +2 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.js +2 -1
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +19 -16
- package/reconstruct/reconstruct.d.ts +18 -1
- package/reconstruct/reconstruct.js +42 -19
- package/slicing/criterion/parse.d.ts +4 -0
- package/slicing/criterion/parse.js +4 -0
- package/slicing/static/slice-call.js +17 -9
- package/slicing/static/static-slicer.d.ts +1 -1
- package/slicing/static/static-slicer.js +5 -4
- package/util/files.d.ts +19 -1
- package/util/files.js +45 -3
- package/util/glob.d.ts +19 -0
- package/util/glob.js +67 -0
- package/util/log.d.ts +12 -0
- package/util/log.js +17 -1
- package/util/logic.d.ts +6 -0
- package/util/logic.js +31 -1
- package/util/mermaid/dfg.js +17 -12
- package/util/mermaid/mermaid.js +2 -2
- package/util/objects.d.ts +5 -0
- package/util/objects.js +8 -0
- package/util/r-version.d.ts +9 -1
- package/util/r-version.js +27 -2
- package/util/schema.d.ts +16 -0
- package/util/schema.js +89 -4
- package/util/text/ansi.d.ts +4 -0
- package/util/text/ansi.js +27 -3
- package/util/text/strings.d.ts +9 -0
- package/util/text/strings.js +29 -0
- package/util/version.js +79 -6
- package/abstract-interpretation/domains/satisfiable-domain.d.ts +0 -29
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.d.ts +0 -22
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +0 -52
- package/project/sigdb/version.js +0 -55
|
@@ -8,13 +8,12 @@ const lattice_1 = require("./lattice");
|
|
|
8
8
|
*/
|
|
9
9
|
exports.DEFAULT_INFERENCE_LIMIT = 50;
|
|
10
10
|
/**
|
|
11
|
-
* An abstract domain as complete lattice with a widening
|
|
11
|
+
* An abstract domain as complete lattice with a widening and narrowing operator.
|
|
12
12
|
* All operations of value abstract domains should not modify the domain in-place but return new values using {@link create}.
|
|
13
|
-
* @template
|
|
14
|
-
* @template
|
|
15
|
-
* @template
|
|
16
|
-
* @template
|
|
17
|
-
* @template Value - Type of the abstract elements of the abstract domain (defaults to `Abstract` or `Top` or `Bot`)
|
|
13
|
+
* @template Value - Type of an abstract element of the abstract domain representing possible elements (excludes `Top` and `Bot`)
|
|
14
|
+
* @template Top - Type of the Top element of the abstract domain representing all possible elements
|
|
15
|
+
* @template Bot - Type of the Bottom element of the abstract domain representing no possible elements
|
|
16
|
+
* @template Lift - Type of the current abstract value in the abstract domain (defaults to `Value` or `Top` or `Bot`)
|
|
18
17
|
*/
|
|
19
18
|
class AbstractDomain {
|
|
20
19
|
_value;
|
|
@@ -24,6 +23,40 @@ class AbstractDomain {
|
|
|
24
23
|
get value() {
|
|
25
24
|
return this._value;
|
|
26
25
|
}
|
|
26
|
+
equals(other) {
|
|
27
|
+
if (this.value === other.value || (this.isTop() && other.isTop()) || (this.isBottom() && other.isBottom())) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
else if (!this.isValue() || !other.isValue()) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
return this.equalsValue(other);
|
|
34
|
+
}
|
|
35
|
+
leq(other) {
|
|
36
|
+
if (this.isBottom() || other.isTop() || this.equals(other)) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
else if (!this.isValue() || !other.isValue()) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return this.leqValue(other);
|
|
43
|
+
}
|
|
44
|
+
join(other) {
|
|
45
|
+
other = other instanceof AbstractDomain ? other : this.create(other);
|
|
46
|
+
if (this.isTop() || other.isTop()) {
|
|
47
|
+
return this.top();
|
|
48
|
+
}
|
|
49
|
+
else if (this.isBottom()) {
|
|
50
|
+
return this.create(other.value);
|
|
51
|
+
}
|
|
52
|
+
else if (other.isBottom()) {
|
|
53
|
+
return this.create(this.value);
|
|
54
|
+
}
|
|
55
|
+
else if (!this.isValue() || !other.isValue()) {
|
|
56
|
+
return this.bottom();
|
|
57
|
+
}
|
|
58
|
+
return this.joinValue(other);
|
|
59
|
+
}
|
|
27
60
|
/**
|
|
28
61
|
* Joins the current abstract value with multiple other abstract values.
|
|
29
62
|
*/
|
|
@@ -34,6 +67,22 @@ class AbstractDomain {
|
|
|
34
67
|
}
|
|
35
68
|
return result;
|
|
36
69
|
}
|
|
70
|
+
meet(other) {
|
|
71
|
+
other = other instanceof AbstractDomain ? other : this.create(other);
|
|
72
|
+
if (this.isTop()) {
|
|
73
|
+
return this.create(other.value);
|
|
74
|
+
}
|
|
75
|
+
else if (other.isTop()) {
|
|
76
|
+
return this.create(this.value);
|
|
77
|
+
}
|
|
78
|
+
else if (this.isBottom() || other.isBottom()) {
|
|
79
|
+
return this.bottom();
|
|
80
|
+
}
|
|
81
|
+
else if (!this.isValue() || !other.isValue()) {
|
|
82
|
+
return this.top();
|
|
83
|
+
}
|
|
84
|
+
return this.meetValue(other);
|
|
85
|
+
}
|
|
37
86
|
/**
|
|
38
87
|
* Meets the current abstract value with multiple other abstract values.
|
|
39
88
|
*/
|
|
@@ -44,6 +93,97 @@ class AbstractDomain {
|
|
|
44
93
|
}
|
|
45
94
|
return result;
|
|
46
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Widens the current abstract value with another abstract value as a sound over-approximation of the join (least upper bound) for fixpoint iteration acceleration.
|
|
98
|
+
*/
|
|
99
|
+
widen(other) {
|
|
100
|
+
if (this.isTop() || other.isTop()) {
|
|
101
|
+
return this.top();
|
|
102
|
+
}
|
|
103
|
+
else if (this.isBottom()) {
|
|
104
|
+
return this.create(other.value);
|
|
105
|
+
}
|
|
106
|
+
else if (other.isBottom()) {
|
|
107
|
+
return this.create(this.value);
|
|
108
|
+
}
|
|
109
|
+
else if (!this.isValue() || !other.isValue()) {
|
|
110
|
+
return this.bottom();
|
|
111
|
+
}
|
|
112
|
+
return this.widenValue?.(other) ?? (other.leq(this) ? this.create(this.value) : this.top());
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Narrows the current abstract value with another abstract value as a sound over-approximation of the meet (greatest lower bound) to refine the value after widening.
|
|
116
|
+
*/
|
|
117
|
+
narrow(other) {
|
|
118
|
+
if (this.isTop()) {
|
|
119
|
+
return this.create(other.value);
|
|
120
|
+
}
|
|
121
|
+
else if (other.isTop()) {
|
|
122
|
+
return this.create(this.value);
|
|
123
|
+
}
|
|
124
|
+
else if (this.isBottom() || other.isBottom()) {
|
|
125
|
+
return this.bottom();
|
|
126
|
+
}
|
|
127
|
+
else if (!this.isValue() || !other.isValue()) {
|
|
128
|
+
return this.top();
|
|
129
|
+
}
|
|
130
|
+
return this.narrowValue?.(other) ?? (this.isTop() ? this.create(other.value) : this.create(this.value));
|
|
131
|
+
}
|
|
132
|
+
transform(transform, bottomDefault, topDefault) {
|
|
133
|
+
if (bottomDefault !== undefined && this.isBottom()) {
|
|
134
|
+
return this.create(bottomDefault);
|
|
135
|
+
}
|
|
136
|
+
else if (topDefault !== undefined && this.isTop()) {
|
|
137
|
+
return this.create(topDefault);
|
|
138
|
+
}
|
|
139
|
+
return this.create(transform(this.value));
|
|
140
|
+
}
|
|
141
|
+
merge(other, merge, bottomDefault, topDefault) {
|
|
142
|
+
if (bottomDefault !== undefined) {
|
|
143
|
+
if (this.isBottom()) {
|
|
144
|
+
return this.create(bottomDefault(other.value));
|
|
145
|
+
}
|
|
146
|
+
else if (other.isBottom()) {
|
|
147
|
+
return this.create(bottomDefault(this.value));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (topDefault !== undefined) {
|
|
151
|
+
if (this.isTop()) {
|
|
152
|
+
return this.create(topDefault(other.value));
|
|
153
|
+
}
|
|
154
|
+
else if (other.isTop()) {
|
|
155
|
+
return this.create(topDefault(this.value));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return this.create(merge(this.value, other.value));
|
|
159
|
+
}
|
|
160
|
+
toJSON() {
|
|
161
|
+
if (this.value === lattice_1.Top) {
|
|
162
|
+
return lattice_1.Top.description;
|
|
163
|
+
}
|
|
164
|
+
else if (this.value === lattice_1.Bottom) {
|
|
165
|
+
return lattice_1.Bottom.description;
|
|
166
|
+
}
|
|
167
|
+
return this.jsonify();
|
|
168
|
+
}
|
|
169
|
+
toString() {
|
|
170
|
+
if (this.value === lattice_1.Top) {
|
|
171
|
+
return lattice_1.TopSymbol;
|
|
172
|
+
}
|
|
173
|
+
else if (this.value === lattice_1.Bottom) {
|
|
174
|
+
return lattice_1.BottomSymbol;
|
|
175
|
+
}
|
|
176
|
+
return this.stringify();
|
|
177
|
+
}
|
|
178
|
+
isNotTop() {
|
|
179
|
+
return !this.isTop();
|
|
180
|
+
}
|
|
181
|
+
isNotBottom() {
|
|
182
|
+
return !this.isBottom();
|
|
183
|
+
}
|
|
184
|
+
isNotValue() {
|
|
185
|
+
return !this.isValue();
|
|
186
|
+
}
|
|
47
187
|
/**
|
|
48
188
|
* Joins an array of abstract values by joining the first abstract value with the other values in the array.
|
|
49
189
|
* The provided array of abstract values must not be empty or a default value must be provided!
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Ternary } from '../../util/logic';
|
|
2
2
|
import { AbstractDomain } from './abstract-domain';
|
|
3
3
|
import { Top } from './lattice';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ValueDomain } from './value-abstract-domain';
|
|
5
5
|
/** The Bottom element of the bounded set domain as empty set */
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const SetBottom: ReadonlySet<never>;
|
|
7
7
|
/** The type of the actual values of the bounded set domain as set */
|
|
8
8
|
type BoundedSetValue<T> = ReadonlySet<T>;
|
|
9
9
|
/** The type of the Top element of the bounded set domain as {@link Top} symbol */
|
|
10
10
|
type BoundedSetTop = typeof Top;
|
|
11
11
|
/** The type of the Bottom element of the bounded set domain as empty set */
|
|
12
|
-
type BoundedSetBottom = typeof
|
|
12
|
+
type BoundedSetBottom = typeof SetBottom;
|
|
13
13
|
/** The type of the abstract values of the bounded set domain that are Top, Bottom, or actual values */
|
|
14
14
|
type BoundedSetLift<T> = BoundedSetValue<T> | BoundedSetTop | BoundedSetBottom;
|
|
15
15
|
/**
|
|
@@ -18,39 +18,30 @@ type BoundedSetLift<T> = BoundedSetValue<T> | BoundedSetTop | BoundedSetBottom;
|
|
|
18
18
|
* @template T - Type of the values in the abstract domain
|
|
19
19
|
* @template Value - Type of the constraint in the abstract domain (Top, Bottom, or an actual value)
|
|
20
20
|
*/
|
|
21
|
-
export declare class BoundedSetDomain<T, Value extends BoundedSetLift<T> = BoundedSetLift<T>> extends AbstractDomain<
|
|
21
|
+
export declare class BoundedSetDomain<T, Value extends BoundedSetLift<T> = BoundedSetLift<T>> extends AbstractDomain<BoundedSetValue<T>, BoundedSetTop, BoundedSetBottom, Value> implements ValueDomain<T> {
|
|
22
22
|
readonly limit: number;
|
|
23
|
-
|
|
23
|
+
protected readonly setType: typeof Set<T>;
|
|
24
24
|
/**
|
|
25
25
|
* @param limit - A limit for the maximum number of elements to store in the set
|
|
26
26
|
* @param setType - An optional set constructor for the domain elements if the type `T` is not storable in a HashSet
|
|
27
27
|
*/
|
|
28
28
|
constructor(value: Value | T[], limit?: number, setType?: typeof Set<T>);
|
|
29
29
|
create(value: BoundedSetLift<T> | T[]): this;
|
|
30
|
+
from(...values: T[]): this;
|
|
30
31
|
static top<T>(limit?: number, setType?: typeof Set<T>): BoundedSetDomain<T, BoundedSetTop>;
|
|
31
32
|
static bottom<T>(limit?: number, setType?: typeof Set<T>): BoundedSetDomain<T, BoundedSetBottom>;
|
|
32
|
-
static
|
|
33
|
+
static from<T>(values: T | T[], limit?: number, setType?: typeof Set<T>): BoundedSetDomain<T>;
|
|
33
34
|
top(): this & BoundedSetDomain<T, BoundedSetTop>;
|
|
34
35
|
bottom(): this & BoundedSetDomain<T, BoundedSetBottom>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
meet(other: BoundedSetLift<T> | T[]): this;
|
|
40
|
-
meet(other: this): this;
|
|
41
|
-
/**
|
|
42
|
-
* Subtracts another abstract value from the current abstract value by removing all elements of the other abstract value from the current abstract value.
|
|
43
|
-
*/
|
|
44
|
-
subtract(other: this | BoundedSetLift<T> | T[]): this;
|
|
45
|
-
widen(other: this): this;
|
|
46
|
-
narrow(other: this): this;
|
|
47
|
-
concretize(limit: number): ReadonlySet<T> | typeof Top;
|
|
48
|
-
abstract(concrete: ReadonlySet<T> | typeof Top): this;
|
|
36
|
+
protected equalsValue(this: BoundedSetDomain<T, BoundedSetValue<T>>, other: BoundedSetDomain<T, BoundedSetValue<T>>): boolean;
|
|
37
|
+
protected leqValue(this: BoundedSetDomain<T, BoundedSetValue<T>>, other: BoundedSetDomain<T, BoundedSetValue<T>>): boolean;
|
|
38
|
+
protected joinValue(this: this & BoundedSetDomain<T, BoundedSetValue<T>>, other: BoundedSetDomain<T, BoundedSetValue<T>>): this;
|
|
39
|
+
protected meetValue(this: this & BoundedSetDomain<T, BoundedSetValue<T>>, other: BoundedSetDomain<T, BoundedSetValue<T>>): this;
|
|
49
40
|
satisfies(value: T): Ternary;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
isTop(): this is BoundedSetDomain<T, BoundedSetTop>;
|
|
53
|
-
isBottom(): this is BoundedSetDomain<T, BoundedSetBottom>;
|
|
54
|
-
isValue(): this is BoundedSetDomain<T, BoundedSetValue<T>>;
|
|
41
|
+
protected jsonify(this: BoundedSetDomain<T, BoundedSetValue<T>>): unknown;
|
|
42
|
+
protected stringify(this: BoundedSetDomain<T, BoundedSetValue<T>>): string;
|
|
43
|
+
isTop(): this is this & BoundedSetDomain<T, BoundedSetTop>;
|
|
44
|
+
isBottom(): this is this & BoundedSetDomain<T, BoundedSetBottom>;
|
|
45
|
+
isValue(): this is this & BoundedSetDomain<T, BoundedSetValue<T>>;
|
|
55
46
|
}
|
|
56
47
|
export {};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BoundedSetDomain = exports.
|
|
3
|
+
exports.BoundedSetDomain = exports.SetBottom = void 0;
|
|
4
4
|
const set_1 = require("../../util/collections/set");
|
|
5
5
|
const logic_1 = require("../../util/logic");
|
|
6
6
|
const abstract_domain_1 = require("./abstract-domain");
|
|
7
7
|
const lattice_1 = require("./lattice");
|
|
8
|
-
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
9
8
|
/** The Bottom element of the bounded set domain as empty set */
|
|
10
|
-
exports.
|
|
9
|
+
exports.SetBottom = new Set();
|
|
11
10
|
/**
|
|
12
11
|
* The bounded set abstract domain as sets of possible values bounded by a `limit` indicating the maximum number of inferred values.
|
|
13
12
|
* The Bottom element is defined as the empty set and the Top element is defined as {@link Top} symbol.
|
|
@@ -39,74 +38,35 @@ class BoundedSetDomain extends abstract_domain_1.AbstractDomain {
|
|
|
39
38
|
create(value) {
|
|
40
39
|
return new BoundedSetDomain(value, this.limit, this.setType);
|
|
41
40
|
}
|
|
41
|
+
from(...values) {
|
|
42
|
+
return this.create(values);
|
|
43
|
+
}
|
|
42
44
|
static top(limit, setType) {
|
|
43
|
-
return new
|
|
45
|
+
return new this(lattice_1.Top, limit, setType);
|
|
44
46
|
}
|
|
45
47
|
static bottom(limit, setType) {
|
|
46
|
-
return new
|
|
48
|
+
return new this(exports.SetBottom, limit, setType);
|
|
47
49
|
}
|
|
48
|
-
static
|
|
49
|
-
return new
|
|
50
|
+
static from(values, limit, setType) {
|
|
51
|
+
return new this(Array.isArray(values) ? values : [values], limit, setType);
|
|
50
52
|
}
|
|
51
53
|
top() {
|
|
52
|
-
return
|
|
54
|
+
return this.create(lattice_1.Top);
|
|
53
55
|
}
|
|
54
56
|
bottom() {
|
|
55
|
-
return
|
|
57
|
+
return this.create(exports.SetBottom);
|
|
56
58
|
}
|
|
57
|
-
|
|
58
|
-
return
|
|
59
|
+
equalsValue(other) {
|
|
60
|
+
return (0, set_1.setEquals)(this.value, other.value);
|
|
59
61
|
}
|
|
60
|
-
|
|
61
|
-
return
|
|
62
|
+
leqValue(other) {
|
|
63
|
+
return this.value.isSubsetOf(other.value);
|
|
62
64
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (this.value === lattice_1.Top || otherValue === lattice_1.Top) {
|
|
66
|
-
return this.top();
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return this.create(this.value.union(otherValue));
|
|
70
|
-
}
|
|
65
|
+
joinValue(other) {
|
|
66
|
+
return this.create(this.value.union(other.value));
|
|
71
67
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
if (this.value === lattice_1.Top) {
|
|
75
|
-
return this.create(otherValue);
|
|
76
|
-
}
|
|
77
|
-
else if (otherValue === lattice_1.Top) {
|
|
78
|
-
return this.create(this.value);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.create(this.value.intersection(otherValue));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Subtracts another abstract value from the current abstract value by removing all elements of the other abstract value from the current abstract value.
|
|
86
|
-
*/
|
|
87
|
-
subtract(other) {
|
|
88
|
-
const otherValue = other instanceof BoundedSetDomain ? other.value : Array.isArray(other) ? new this.setType(other) : other;
|
|
89
|
-
if (this.value === lattice_1.Top) {
|
|
90
|
-
return this.top();
|
|
91
|
-
}
|
|
92
|
-
else if (otherValue === lattice_1.Top) {
|
|
93
|
-
return this.create(this.value);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.create(this.value.difference(otherValue));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
widen(other) {
|
|
100
|
-
return other.leq(this) ? this.create(this.value) : this.top();
|
|
101
|
-
}
|
|
102
|
-
narrow(other) {
|
|
103
|
-
return this.isTop() ? this.create(other.value) : this.create(this.value);
|
|
104
|
-
}
|
|
105
|
-
concretize(limit) {
|
|
106
|
-
return this.value === lattice_1.Top || this.value.size > limit ? lattice_1.Top : this.value;
|
|
107
|
-
}
|
|
108
|
-
abstract(concrete) {
|
|
109
|
-
return BoundedSetDomain.abstract(concrete, this.limit, this.setType);
|
|
68
|
+
meetValue(other) {
|
|
69
|
+
return this.create(this.value.intersection(other.value));
|
|
110
70
|
}
|
|
111
71
|
satisfies(value) {
|
|
112
72
|
if (this.isValue() && this.value.has(value)) {
|
|
@@ -117,18 +77,11 @@ class BoundedSetDomain extends abstract_domain_1.AbstractDomain {
|
|
|
117
77
|
}
|
|
118
78
|
return logic_1.Ternary.Never;
|
|
119
79
|
}
|
|
120
|
-
|
|
121
|
-
if (this.value === lattice_1.Top) {
|
|
122
|
-
return this.value.description;
|
|
123
|
-
}
|
|
80
|
+
jsonify() {
|
|
124
81
|
return this.value.values().toArray();
|
|
125
82
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return lattice_1.TopSymbol;
|
|
129
|
-
}
|
|
130
|
-
const string = this.value.values().map(abstract_domain_1.AbstractDomain.toString).toArray().join(', ');
|
|
131
|
-
return `{${string}}`;
|
|
83
|
+
stringify() {
|
|
84
|
+
return `{${this.value.values().map(abstract_domain_1.AbstractDomain.toString).toArray().join(', ')}}`;
|
|
132
85
|
}
|
|
133
86
|
isTop() {
|
|
134
87
|
return this.value === lattice_1.Top;
|
|
@@ -1,56 +1,47 @@
|
|
|
1
1
|
import { Ternary } from '../../util/logic';
|
|
2
2
|
import { AbstractDomain } from './abstract-domain';
|
|
3
|
-
import { Bottom
|
|
4
|
-
import { type
|
|
3
|
+
import { Bottom } from './lattice';
|
|
4
|
+
import { type NumericDomain, NumericalComparator } from './value-abstract-domain';
|
|
5
5
|
/** The Top element of the interval domain as interval [-∞, +∞] */
|
|
6
6
|
export declare const IntervalTop: IntervalValue;
|
|
7
7
|
/** The type of the actual values of the interval domain as tuple of the lower and upper bound */
|
|
8
|
-
type IntervalValue = readonly [lower: number, upper: number];
|
|
8
|
+
export type IntervalValue = readonly [lower: number, upper: number];
|
|
9
9
|
/** The type of the Top element of the interval domain as interval [-∞, +∞] */
|
|
10
|
-
type IntervalTop = typeof IntervalTop;
|
|
10
|
+
export type IntervalTop = typeof IntervalTop;
|
|
11
11
|
/** The type of the Bottom element of the interval domain as {@link Bottom} symbol */
|
|
12
|
-
type IntervalBottom = typeof Bottom;
|
|
12
|
+
export type IntervalBottom = typeof Bottom;
|
|
13
13
|
/** The type of the abstract values of the interval domain that are Top, Bottom, or actual values */
|
|
14
|
-
type IntervalLift = IntervalValue | IntervalBottom;
|
|
14
|
+
export type IntervalLift = IntervalValue | IntervalBottom;
|
|
15
|
+
type IntervalBound<Value extends IntervalLift> = Value extends IntervalValue ? number : number | typeof Bottom;
|
|
15
16
|
/**
|
|
16
17
|
* The interval abstract domain as intervals with possibly infinite bounds representing possible numeric values.
|
|
17
18
|
* The Bottom element is defined as {@link Bottom} symbol and the Top element is defined as the interval [-∞, +∞].
|
|
18
19
|
* @template Value - Type of the constraint in the abstract domain (Top, Bottom, or an actual value)
|
|
19
20
|
*/
|
|
20
|
-
export declare class IntervalDomain<Value extends IntervalLift = IntervalLift> extends AbstractDomain<
|
|
21
|
+
export declare class IntervalDomain<Value extends IntervalLift = IntervalLift> extends AbstractDomain<IntervalValue, IntervalTop, IntervalBottom, Value> implements NumericDomain {
|
|
21
22
|
constructor(value: Value);
|
|
22
23
|
create(value: IntervalLift): this;
|
|
24
|
+
get lower(): IntervalBound<Value>;
|
|
25
|
+
get upper(): IntervalBound<Value>;
|
|
26
|
+
from(...values: number[]): this;
|
|
23
27
|
static top(): IntervalDomain<IntervalTop>;
|
|
24
28
|
static bottom(): IntervalDomain<IntervalBottom>;
|
|
25
|
-
static
|
|
29
|
+
static from(...values: number[]): IntervalDomain;
|
|
26
30
|
top(): this & IntervalDomain<IntervalTop>;
|
|
27
31
|
bottom(): this & IntervalDomain<IntervalBottom>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
widen(other: this): this;
|
|
35
|
-
narrow(other: this): this;
|
|
36
|
-
concretize(limit: number): ReadonlySet<number> | typeof Top;
|
|
37
|
-
abstract(concrete: ReadonlySet<number> | typeof Top): this;
|
|
32
|
+
protected equalsValue(this: IntervalDomain<IntervalValue>, other: IntervalDomain<IntervalValue>): boolean;
|
|
33
|
+
protected leqValue(this: IntervalDomain<IntervalValue>, other: IntervalDomain<IntervalValue>): boolean;
|
|
34
|
+
protected joinValue(this: this & IntervalDomain<IntervalValue>, other: IntervalDomain<IntervalValue>): this;
|
|
35
|
+
protected meetValue(this: this & IntervalDomain<IntervalValue>, other: IntervalDomain<IntervalValue>): this;
|
|
36
|
+
protected widenValue(this: this & IntervalDomain<IntervalValue>, other: IntervalDomain<IntervalValue>): this;
|
|
37
|
+
protected narrowValue(this: this & IntervalDomain<IntervalValue>, other: IntervalDomain<IntervalValue>): this;
|
|
38
38
|
satisfies(value: number, comparator?: NumericalComparator): Ternary;
|
|
39
|
-
|
|
40
|
-
* Adds another abstract value to the current abstract value by adding the two lower and upper bounds, respectively.
|
|
41
|
-
*/
|
|
39
|
+
negate(): this;
|
|
42
40
|
add(other: this | IntervalLift): this;
|
|
43
|
-
/**
|
|
44
|
-
* Subtracts another abstract value from the current abstract value by subtracting the two lower and upper bounds from each other, respectively.
|
|
45
|
-
*/
|
|
46
41
|
subtract(other: this | IntervalLift): this;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*/
|
|
42
|
+
multiply(other: this | IntervalLift): this;
|
|
43
|
+
divide(other: this | IntervalLift): this;
|
|
50
44
|
min(other: this | IntervalLift): this;
|
|
51
|
-
/**
|
|
52
|
-
* Creates the maximum between the current abstract value and another abstract value by creating the maximum of the two lower and upper bounds, respectively.
|
|
53
|
-
*/
|
|
54
45
|
max(other: this | IntervalLift): this;
|
|
55
46
|
/**
|
|
56
47
|
* Extends the lower bound of the current abstract value down to -∞.
|
|
@@ -60,11 +51,11 @@ export declare class IntervalDomain<Value extends IntervalLift = IntervalLift> e
|
|
|
60
51
|
* Extends the upper bound of the current abstract value up to +∞.
|
|
61
52
|
*/
|
|
62
53
|
widenUp(): this;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
isTop(): this is IntervalDomain<IntervalTop>;
|
|
66
|
-
isBottom(): this is IntervalDomain<IntervalBottom>;
|
|
67
|
-
isValue(): this is IntervalDomain<IntervalValue>;
|
|
68
|
-
isFinite(): this is IntervalDomain<IntervalValue>;
|
|
54
|
+
protected jsonify(): unknown;
|
|
55
|
+
protected stringify(this: IntervalDomain<IntervalValue>): string;
|
|
56
|
+
isTop(): this is this & IntervalDomain<IntervalTop>;
|
|
57
|
+
isBottom(): this is this & IntervalDomain<IntervalBottom>;
|
|
58
|
+
isValue(): this is this & IntervalDomain<IntervalValue>;
|
|
59
|
+
isFinite(): this is this & IntervalDomain<IntervalValue>;
|
|
69
60
|
}
|
|
70
61
|
export {};
|