@eagleoutice/flowr 2.10.9 → 2.11.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 +116 -38
- package/abstract-interpretation/absint-visitor.js +6 -3
- package/abstract-interpretation/domains/abstract-domain.d.ts +1 -1
- package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
- package/abstract-interpretation/domains/bounded-set-domain.js +1 -1
- package/abstract-interpretation/domains/interval-domain.d.ts +1 -1
- package/abstract-interpretation/domains/interval-domain.js +1 -1
- package/abstract-interpretation/domains/lattice.d.ts +1 -1
- package/abstract-interpretation/domains/partial-product-domain.d.ts +1 -1
- package/abstract-interpretation/domains/partial-product-domain.js +2 -2
- package/abstract-interpretation/domains/set-range-domain.d.ts +1 -1
- package/abstract-interpretation/domains/set-range-domain.js +1 -1
- package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +1 -1
- package/abstract-interpretation/domains/set-upper-bound-domain.js +1 -1
- package/abstract-interpretation/domains/singleton-domain.d.ts +1 -1
- package/abstract-interpretation/domains/singleton-domain.js +1 -1
- package/abstract-interpretation/domains/state-abstract-domain.d.ts +1 -1
- package/abstract-interpretation/domains/state-abstract-domain.js +2 -2
- package/abstract-interpretation/unsupported-functions.d.ts +3 -2
- package/abstract-interpretation/unsupported-functions.js +38 -28
- package/cli/benchmark-app.js +2 -1
- package/cli/common/options.d.ts +2 -108
- package/cli/common/options.js +3 -27
- package/cli/common/script.js +3 -2
- package/cli/common/scripts-info.d.ts +2 -123
- package/cli/common/scripts-info.js +0 -17
- package/cli/flowr-main-options.d.ts +5 -0
- package/cli/flowr-main-options.js +10 -0
- package/cli/flowr.js +48 -11
- package/cli/repl/commands/repl-cfg.js +9 -9
- package/cli/repl/commands/repl-commands.js +5 -0
- package/cli/repl/commands/repl-dataflow.js +31 -24
- package/cli/repl/commands/repl-main.d.ts +6 -0
- package/cli/repl/commands/repl-normalize.js +15 -12
- package/cli/repl/commands/repl-parse.js +1 -1
- package/cli/repl/commands/repl-query.js +4 -5
- package/cli/repl/commands/repl-quit.js +2 -1
- package/cli/repl/core.d.ts +11 -0
- package/cli/repl/core.js +101 -3
- package/cli/repl/execute.js +3 -2
- package/cli/repl/parser/slice-query-parser.d.ts +16 -0
- package/cli/repl/parser/slice-query-parser.js +52 -0
- package/cli/repl/print-version.d.ts +3 -1
- package/cli/repl/print-version.js +21 -2
- package/cli/repl/server/connection.d.ts +3 -0
- package/cli/repl/server/connection.js +65 -31
- package/cli/repl/server/messages/message-analysis.d.ts +10 -0
- package/cli/repl/server/messages/message-analysis.js +6 -2
- package/cli/repl/server/messages/message-slice.d.ts +1 -1
- package/cli/script-core/summarizer-core.js +13 -32
- package/cli/wiki.d.ts +3 -1
- package/cli/wiki.js +6 -1
- package/config.d.ts +22 -10
- package/config.js +33 -7
- package/control-flow/diff-cfg.d.ts +1 -1
- package/control-flow/diff-cfg.js +1 -1
- package/control-flow/semantic-cfg-guided-visitor.js +2 -0
- package/control-flow/simple-visitor.js +6 -5
- package/control-flow/useless-loop.js +2 -2
- package/core/print/dataflow-printer.d.ts +2 -2
- package/core/print/dataflow-printer.js +2 -2
- package/core/steps/all/static-slicing/00-slice.js +1 -1
- package/data/pkgdb/pkgdb-latest.json.br +0 -0
- package/data/pkgdb/pkgdb-tiny.json.br +0 -0
- package/dataflow/environments/append.d.ts +2 -2
- package/dataflow/environments/append.js +4 -10
- package/dataflow/environments/apply-kill.d.ts +21 -0
- package/dataflow/environments/apply-kill.js +155 -0
- package/dataflow/environments/built-in-proc-name.d.ts +4 -0
- package/dataflow/environments/built-in-proc-name.js +4 -0
- package/dataflow/environments/built-in.d.ts +4 -0
- package/dataflow/environments/built-in.js +4 -0
- package/dataflow/environments/default-builtin-config.d.ts +183 -67
- package/dataflow/environments/default-builtin-config.js +358 -147
- package/dataflow/environments/environment.d.ts +49 -31
- package/dataflow/environments/environment.js +144 -25
- package/dataflow/environments/identifier.d.ts +65 -2
- package/dataflow/environments/identifier.js +37 -2
- package/dataflow/environments/overwrite.js +2 -10
- package/dataflow/environments/reference-to-maybe.d.ts +2 -0
- package/dataflow/environments/reference-to-maybe.js +56 -11
- package/dataflow/environments/resolve-by-name.d.ts +1 -1
- package/dataflow/environments/resolve-by-name.js +23 -9
- package/dataflow/environments/scoping.d.ts +9 -2
- package/dataflow/environments/scoping.js +15 -2
- package/dataflow/eval/values/general.js +4 -0
- package/dataflow/extractor.js +35 -4
- package/dataflow/graph/df-helper.d.ts +14 -0
- package/dataflow/graph/df-helper.js +41 -0
- package/dataflow/graph/graph.d.ts +4 -1
- package/dataflow/graph/graph.js +6 -2
- package/dataflow/info.d.ts +27 -1
- package/dataflow/internal/linker.d.ts +5 -1
- package/dataflow/internal/linker.js +34 -9
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +7 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +7 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +9 -48
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +30 -47
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +17 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +7 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +61 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +9 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +37 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +391 -21
- package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.d.ts +13 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.js +58 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +3 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +132 -25
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +9 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +25 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +94 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +11 -4
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +30 -0
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +279 -0
- package/dataflow/internal/process/functions/call/known-call-handling.js +4 -3
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +23 -0
- package/dataflow/origin/dfg-get-origin.d.ts +1 -1
- package/dataflow/origin/dfg-get-origin.js +1 -1
- package/dataflow/processor.d.ts +6 -0
- package/documentation/data/faq/faqs.d.ts +2 -1
- package/documentation/data/faq/faqs.js +78 -57
- package/documentation/data/interface/doc-writing-code.js +4 -80
- package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
- package/documentation/data/server/doc-data-server-messages.js +15 -7
- package/documentation/doc-readme.js +15 -15
- package/documentation/doc-util/doc-cfg.d.ts +3 -1
- package/documentation/doc-util/doc-cfg.js +3 -3
- package/documentation/doc-util/doc-dfg.d.ts +3 -1
- package/documentation/doc-util/doc-dfg.js +3 -3
- package/documentation/doc-util/doc-files.d.ts +3 -1
- package/documentation/doc-util/doc-files.js +9 -6
- package/documentation/doc-util/doc-normalized-ast.d.ts +3 -1
- package/documentation/doc-util/doc-normalized-ast.js +2 -2
- package/documentation/doc-util/doc-query.d.ts +2 -1
- package/documentation/doc-util/doc-query.js +2 -2
- package/documentation/doc-util/doc-repl.js +1 -0
- package/documentation/doc-util/doc-structure.js +1 -2
- package/documentation/doc-util/doc-types.d.ts +6 -6
- package/documentation/doc-util/doc-types.js +11 -9
- package/documentation/issue-linting-rule.js +1 -2
- package/documentation/wiki-analyzer.js +9 -9
- package/documentation/wiki-cfg.js +40 -41
- package/documentation/wiki-core.js +121 -32
- package/documentation/wiki-create-linting-rules.d.ts +6 -0
- package/documentation/wiki-create-linting-rules.js +95 -0
- package/documentation/wiki-dataflow-graph.js +112 -77
- package/documentation/wiki-engine.js +1 -2
- package/documentation/wiki-faq.d.ts +2 -1
- package/documentation/wiki-faq.js +4 -4
- package/documentation/wiki-interface.js +22 -8
- package/documentation/wiki-linter.d.ts +1 -1
- package/documentation/wiki-linter.js +16 -6
- package/documentation/wiki-linting-and-testing.js +2 -2
- package/documentation/wiki-mk/doc-context.d.ts +3 -3
- package/documentation/wiki-mk/doc-maker.d.ts +2 -0
- package/documentation/wiki-mk/doc-maker.js +7 -1
- package/documentation/wiki-normalized-ast.js +5 -5
- package/documentation/wiki-onboarding.d.ts +2 -1
- package/documentation/wiki-onboarding.js +5 -5
- package/documentation/wiki-overview.js +4 -17
- package/documentation/wiki-package-database.d.ts +9 -0
- package/documentation/wiki-package-database.js +63 -0
- package/documentation/wiki-query.js +86 -84
- package/documentation/wiki-search.js +4 -5
- package/documentation/wiki-setup.js +6 -7
- package/gas.d.ts +74 -0
- package/gas.js +18 -0
- package/linter/linter-executor.js +2 -8
- package/linter/linter-format.d.ts +4 -11
- package/linter/linter-rules.d.ts +111 -86
- package/linter/linter-rules.js +9 -1
- package/linter/rules/absolute-path.d.ts +2 -7
- package/linter/rules/absolute-path.js +8 -5
- package/linter/rules/dataframe-access-validation.d.ts +1 -6
- package/linter/rules/dataframe-access-validation.js +8 -6
- package/linter/rules/dead-code.d.ts +2 -11
- package/linter/rules/dead-code.js +16 -11
- package/linter/rules/deprecated-functions.d.ts +3 -3
- package/linter/rules/file-path-validity.d.ts +1 -6
- package/linter/rules/file-path-validity.js +5 -5
- package/linter/rules/function-finder-util.d.ts +7 -11
- package/linter/rules/function-finder-util.js +9 -6
- package/linter/rules/naming-convention.d.ts +2 -7
- package/linter/rules/naming-convention.js +3 -2
- package/linter/rules/network-functions.d.ts +2 -7
- package/linter/rules/network-functions.js +14 -12
- package/linter/rules/no-leaked-credentials.d.ts +36 -0
- package/linter/rules/no-leaked-credentials.js +75 -0
- package/linter/rules/problematic-inputs.d.ts +1 -8
- package/linter/rules/problematic-inputs.js +5 -4
- package/linter/rules/roxygen-arguments.d.ts +2 -7
- package/linter/rules/roxygen-arguments.js +13 -20
- package/linter/rules/seeded-randomness.d.ts +2 -7
- package/linter/rules/seeded-randomness.js +7 -4
- package/linter/rules/software-has-license.d.ts +31 -0
- package/linter/rules/software-has-license.js +46 -0
- package/linter/rules/software-has-tests.d.ts +38 -0
- package/linter/rules/software-has-tests.js +48 -0
- package/linter/rules/stop-with-call-arg.d.ts +2 -7
- package/linter/rules/stop-with-call-arg.js +3 -2
- package/linter/rules/undefined-symbol.d.ts +39 -0
- package/linter/rules/undefined-symbol.js +80 -0
- package/linter/rules/unused-definition.d.ts +3 -8
- package/linter/rules/unused-definition.js +7 -5
- package/linter/rules/useless-loop.d.ts +2 -7
- package/linter/rules/useless-loop.js +5 -2
- package/package.json +5 -5
- package/project/cache/flowr-analyzer-cache.d.ts +2 -0
- package/project/cache/flowr-analyzer-cache.js +9 -1
- package/project/context/flowr-analyzer-context.d.ts +13 -14
- package/project/context/flowr-analyzer-context.js +4 -0
- package/project/context/flowr-analyzer-dependencies-context.d.ts +16 -8
- package/project/context/flowr-analyzer-dependencies-context.js +36 -4
- package/project/context/flowr-analyzer-environment-context.d.ts +2 -4
- package/project/context/flowr-analyzer-environment-context.js +3 -4
- package/project/context/flowr-analyzer-files-context.d.ts +13 -0
- package/project/context/flowr-analyzer-files-context.js +12 -2
- package/project/context/flowr-analyzer-gas-context.d.ts +28 -0
- package/project/context/flowr-analyzer-gas-context.js +101 -0
- package/project/context/flowr-file.d.ts +2 -0
- package/project/context/flowr-file.js +2 -0
- package/project/flowr-analyzer-builder.js +3 -0
- package/project/flowr-analyzer.d.ts +2 -1
- package/project/flowr-analyzer.js +3 -1
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +13 -15
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +36 -13
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +13 -7
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +56 -11
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +27 -0
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +41 -0
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +2 -2
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +2 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +5 -5
- package/project/plugins/flowr-analyzer-plugin.d.ts +15 -8
- package/project/plugins/flowr-analyzer-plugin.js +14 -7
- package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.d.ts +19 -0
- package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.js +35 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +18 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +62 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.d.ts +63 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.js +174 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +10 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +6 -0
- package/project/plugins/package-version-plugins/package.d.ts +3 -0
- package/project/plugins/package-version-plugins/package.js +12 -0
- package/project/plugins/package-version-plugins/pkgdb.d.ts +133 -0
- package/project/plugins/package-version-plugins/pkgdb.js +370 -0
- package/project/plugins/plugin-registry.d.ts +5 -1
- package/project/plugins/plugin-registry.js +10 -1
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.d.ts +22 -0
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +47 -0
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +1 -1
- package/queries/catalog/call-context-query/call-context-query-executor.js +62 -8
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +4 -2
- package/queries/catalog/call-context-query/call-context-query-format.js +1 -0
- package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +8 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -3
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +3 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +3 -2
- package/queries/catalog/dependencies-query/function-info/function-info.d.ts +1 -1
- package/queries/catalog/dependencies-query/function-info/other-path-functions.d.ts +2 -0
- package/queries/catalog/dependencies-query/function-info/other-path-functions.js +27 -0
- package/queries/catalog/dependencies-query/function-info/read-functions.js +5 -4
- package/queries/catalog/dependencies-query/function-info/test-functions.d.ts +2 -0
- package/queries/catalog/dependencies-query/function-info/test-functions.js +18 -177
- package/queries/catalog/dependencies-query/function-info/visualize-functions.js +3 -1
- package/queries/catalog/df-shape-query/df-shape-query-format.js +1 -1
- package/queries/catalog/dice-query/dice-query-executor.d.ts +8 -0
- package/queries/catalog/dice-query/dice-query-executor.js +52 -0
- package/queries/catalog/dice-query/dice-query-format.d.ts +53 -0
- package/queries/catalog/dice-query/dice-query-format.js +102 -0
- package/queries/catalog/happens-before-query/happens-before-query-executor.js +2 -2
- 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 +1 -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 +1 -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 +1 -0
- package/queries/catalog/linter-query/linter-query-executor.js +8 -0
- 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 +1 -0
- package/queries/catalog/origin-query/origin-query-format.d.ts +2 -0
- package/queries/catalog/origin-query/origin-query-format.js +1 -0
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +2 -0
- package/queries/catalog/provenance-query/provenance-query-format.js +1 -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 +1 -0
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +1 -1
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -0
- package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
- package/queries/query.d.ts +18 -1
- package/queries/query.js +3 -1
- package/r-bridge/data/data.d.ts +7 -2
- package/r-bridge/data/data.js +8 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +0 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -1
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +13 -4
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +55 -44
- package/r-bridge/parser.js +2 -9
- package/r-bridge/shell.d.ts +8 -1
- package/r-bridge/shell.js +26 -7
- package/search/flowr-search-builder.d.ts +2 -2
- package/search/flowr-search-builder.js +1 -1
- package/search/flowr-search-filters.d.ts +30 -9
- package/search/flowr-search-filters.js +26 -21
- package/search/search-executor/search-enrichers.d.ts +601 -1
- package/search/search-executor/search-enrichers.js +30 -6
- package/slicing/static/static-slicer.d.ts +39 -11
- package/slicing/static/static-slicer.js +44 -14
- package/util/collections/queue.d.ts +16 -0
- package/util/collections/queue.js +38 -0
- package/util/log.d.ts +1 -1
- package/util/log.js +1 -1
- package/util/mermaid/dfg.d.ts +2 -2
- package/util/mermaid/dfg.js +2 -2
- package/util/mermaid/mermaid.d.ts +4 -0
- package/util/mermaid/mermaid.js +8 -1
- package/util/objects.d.ts +9 -0
- package/util/objects.js +54 -0
- package/util/proc.d.ts +6 -0
- package/util/proc.js +20 -0
- package/util/version.js +10 -2
- package/cli/common/features.d.ts +0 -9
- package/cli/common/features.js +0 -35
- package/cli/script-core/statistics-core.d.ts +0 -6
- package/cli/script-core/statistics-core.js +0 -103
- package/cli/script-core/statistics-helper-core.d.ts +0 -6
- package/cli/script-core/statistics-helper-core.js +0 -85
- package/cli/statistics-app.d.ts +0 -11
- package/cli/statistics-app.js +0 -16
- package/cli/statistics-helper-app.d.ts +0 -11
- package/cli/statistics-helper-app.js +0 -14
- package/statistics/features/common-syntax-probability.d.ts +0 -38
- package/statistics/features/common-syntax-probability.js +0 -169
- package/statistics/features/feature.d.ts +0 -179
- package/statistics/features/feature.js +0 -38
- package/statistics/features/post-processing.d.ts +0 -18
- package/statistics/features/post-processing.js +0 -26
- package/statistics/features/supported/assignments/assignments.d.ts +0 -12
- package/statistics/features/supported/assignments/assignments.js +0 -56
- package/statistics/features/supported/assignments/post-process.d.ts +0 -6
- package/statistics/features/supported/assignments/post-process.js +0 -126
- package/statistics/features/supported/comments/comments.d.ts +0 -18
- package/statistics/features/supported/comments/comments.js +0 -143
- package/statistics/features/supported/comments/post-process.d.ts +0 -6
- package/statistics/features/supported/comments/post-process.js +0 -51
- package/statistics/features/supported/control-flow/control-flow.d.ts +0 -17
- package/statistics/features/supported/control-flow/control-flow.js +0 -69
- package/statistics/features/supported/control-flow/post-process.d.ts +0 -6
- package/statistics/features/supported/control-flow/post-process.js +0 -66
- package/statistics/features/supported/data-access/data-access.d.ts +0 -15
- package/statistics/features/supported/data-access/data-access.js +0 -122
- package/statistics/features/supported/data-access/post-process.d.ts +0 -6
- package/statistics/features/supported/data-access/post-process.js +0 -108
- package/statistics/features/supported/defined-functions/defined-functions.d.ts +0 -34
- package/statistics/features/supported/defined-functions/defined-functions.js +0 -145
- package/statistics/features/supported/defined-functions/post-process.d.ts +0 -6
- package/statistics/features/supported/defined-functions/post-process.js +0 -168
- package/statistics/features/supported/expression-list/post-process.d.ts +0 -6
- package/statistics/features/supported/expression-list/post-process.js +0 -45
- package/statistics/features/supported/expression-list/statistics-expression-list.d.ts +0 -9
- package/statistics/features/supported/expression-list/statistics-expression-list.js +0 -37
- package/statistics/features/supported/loops/loops.d.ts +0 -20
- package/statistics/features/supported/loops/loops.js +0 -81
- package/statistics/features/supported/loops/post-process.d.ts +0 -6
- package/statistics/features/supported/loops/post-process.js +0 -73
- package/statistics/features/supported/used-functions/post-process.d.ts +0 -6
- package/statistics/features/supported/used-functions/post-process.js +0 -176
- package/statistics/features/supported/used-functions/used-functions.d.ts +0 -24
- package/statistics/features/supported/used-functions/used-functions.js +0 -99
- package/statistics/features/supported/used-packages/post-process.d.ts +0 -6
- package/statistics/features/supported/used-packages/post-process.js +0 -122
- package/statistics/features/supported/used-packages/used-packages.d.ts +0 -16
- package/statistics/features/supported/used-packages/used-packages.js +0 -140
- package/statistics/features/supported/values/post-process.d.ts +0 -6
- package/statistics/features/supported/values/post-process.js +0 -73
- package/statistics/features/supported/values/values.d.ts +0 -14
- package/statistics/features/supported/values/values.js +0 -111
- package/statistics/features/supported/variables/post-process.d.ts +0 -15
- package/statistics/features/supported/variables/post-process.js +0 -126
- package/statistics/features/supported/variables/variables.d.ts +0 -15
- package/statistics/features/supported/variables/variables.js +0 -62
- package/statistics/meta-statistics.d.ts +0 -32
- package/statistics/meta-statistics.js +0 -16
- package/statistics/output/file-provider.d.ts +0 -36
- package/statistics/output/file-provider.js +0 -96
- package/statistics/output/print-stats.d.ts +0 -29
- package/statistics/output/print-stats.js +0 -81
- package/statistics/output/statistics-file.d.ts +0 -36
- package/statistics/output/statistics-file.js +0 -68
- package/statistics/statistics.d.ts +0 -29
- package/statistics/statistics.js +0 -108
- package/statistics/summarizer/auto-detect.d.ts +0 -5
- package/statistics/summarizer/auto-detect.js +0 -34
- package/statistics/summarizer/first-phase/process.d.ts +0 -6
- package/statistics/summarizer/first-phase/process.js +0 -81
- package/statistics/summarizer/post-process/clusterer.d.ts +0 -25
- package/statistics/summarizer/post-process/clusterer.js +0 -40
- package/statistics/summarizer/post-process/file-based-count.d.ts +0 -16
- package/statistics/summarizer/post-process/file-based-count.js +0 -47
- package/statistics/summarizer/post-process/histogram.d.ts +0 -57
- package/statistics/summarizer/post-process/histogram.js +0 -126
- package/statistics/summarizer/post-process/post-process-output.d.ts +0 -14
- package/statistics/summarizer/post-process/post-process-output.js +0 -102
- package/statistics/summarizer/second-phase/process.d.ts +0 -15
- package/statistics/summarizer/second-phase/process.js +0 -118
- package/statistics/summarizer/summarizer.d.ts +0 -34
- package/statistics/summarizer/summarizer.js +0 -141
package/README.md
CHANGED
|
@@ -13,18 +13,18 @@ and [Docker](https://hub.docker.com/r/eagleoutice/flowr).
|
|
|
13
13
|
It offers a wide variety of features, for example:
|
|
14
14
|
|
|
15
15
|
* 🐞 **code linting**\
|
|
16
|
-
Analyze your R scripts for common issues and potential bugs (see the [wiki page](https://github.com/flowr-analysis/flowr/wiki/
|
|
16
|
+
Analyze your R scripts for common issues and potential bugs (see the [wiki page](https://github.com/flowr-analysis/flowr/wiki/linter) for more information on the currently supported linters).
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
<details><summary>Example: Linting code with flowR</summary>
|
|
20
20
|
|
|
21
|
-
To lint your code, you can use the [REPL](https://github.com/flowr-analysis/flowr/wiki/
|
|
21
|
+
To lint your code, you can use the [REPL](https://github.com/flowr-analysis/flowr/wiki/interface#using-the-repl) or the [Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=code-inspect.vscode-flowr) (see [vscode-flowr#283](https://github.com/flowr-analysis/vscode-flowr/pull/283)).
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
```shell
|
|
26
26
|
$ docker run -it --rm eagleoutice/flowr # or npm run flowr
|
|
27
|
-
flowR repl
|
|
27
|
+
flowR repl v2.10.10, R grammar v14 (tree-sitter engine, pkg-db: latest/2026-05-23)
|
|
28
28
|
R> :query @linter "read.csv(\"/root/x.txt\")"
|
|
29
29
|
```
|
|
30
30
|
|
|
@@ -33,13 +33,13 @@ It offers a wide variety of features, for example:
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
```text
|
|
36
|
-
Query: linter (
|
|
36
|
+
Query: linter (24 ms)
|
|
37
37
|
╰ Deprecated Functions (deprecated-functions):
|
|
38
|
-
╰ Metadata: totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs:
|
|
38
|
+
╰ Metadata: totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 1, processTimeMs: 0
|
|
39
39
|
╰ File Path Validity (file-path-validity):
|
|
40
40
|
╰ certain:
|
|
41
41
|
╰ Path `/root/x.txt` at 1.1-23
|
|
42
|
-
╰ Metadata: totalReads: 1, totalUnknown: 0, totalWritesBeforeAlways: 0, totalValid: 0, searchTimeMs:
|
|
42
|
+
╰ Metadata: totalReads: 1, totalUnknown: 0, totalWritesBeforeAlways: 0, totalValid: 0, searchTimeMs: 22, processTimeMs: 0
|
|
43
43
|
╰ Seeded Randomness (seeded-randomness):
|
|
44
44
|
╰ Metadata: consumerCalls: 0, callsWithFunctionProducers: 0, callsWithAssignmentProducers: 0, callsWithNonConstantProducers: 0, callsWithOtherBranchProducers: 0, searchTimeMs: 0, processTimeMs: 0
|
|
45
45
|
╰ Absolute Paths (absolute-file-paths):
|
|
@@ -55,7 +55,7 @@ It offers a wide variety of features, for example:
|
|
|
55
55
|
╰ Dataframe Access Validation (dataframe-access-validation):
|
|
56
56
|
╰ Metadata: numOperations: 0, numAccesses: 0, totalAccessed: 0, searchTimeMs: 0, processTimeMs: 1
|
|
57
57
|
╰ Dead Code (dead-code):
|
|
58
|
-
╰ Metadata:
|
|
58
|
+
╰ Metadata: searchTimeMs: 0, processTimeMs: 0
|
|
59
59
|
╰ Useless Loops (useless-loop):
|
|
60
60
|
╰ Metadata: numOfUselessLoops: 0, searchTimeMs: 0, processTimeMs: 0
|
|
61
61
|
╰ Problematic inputs (problematic-inputs):
|
|
@@ -64,7 +64,19 @@ It offers a wide variety of features, for example:
|
|
|
64
64
|
╰ Metadata: consideredNodes: 0, searchTimeMs: 0, processTimeMs: 0
|
|
65
65
|
╰ Roxygen Arguments (roxygen-arguments):
|
|
66
66
|
╰ Metadata: searchTimeMs: 0, processTimeMs: 0
|
|
67
|
-
|
|
67
|
+
╰ Software Has License (software-has-license):
|
|
68
|
+
╰ certain:
|
|
69
|
+
╰ No license found in the project
|
|
70
|
+
╰ Metadata: searchTimeMs: 0, processTimeMs: 0
|
|
71
|
+
╰ Software Has Tests (software-has-tests):
|
|
72
|
+
╰ certain:
|
|
73
|
+
╰ No tests found in the project
|
|
74
|
+
╰ Metadata: testFilesFound: 0, testCallsFound: 0, searchTimeMs: 0, processTimeMs: 0
|
|
75
|
+
╰ No Leaked Credentials (no-leaked-credentials):
|
|
76
|
+
╰ Metadata: totalChecked: 0, searchTimeMs: 0, processTimeMs: 0
|
|
77
|
+
╰ Undefined Symbol (undefined-symbol):
|
|
78
|
+
╰ Metadata: totalCalls: 1, searchTimeMs: 0, processTimeMs: 0
|
|
79
|
+
All queries together required ≈24 ms (1ms accuracy, total 24 ms)
|
|
68
80
|
```
|
|
69
81
|
|
|
70
82
|
|
|
@@ -80,19 +92,19 @@ It offers a wide variety of features, for example:
|
|
|
80
92
|
```
|
|
81
93
|
|
|
82
94
|
|
|
83
|
-
(This can be shortened to `@linter` when used with the REPL command <span title="Description (Repl Command): Query the given R code
|
|
95
|
+
(This can be shortened to `@linter` when used with the REPL command <span title="Description (Repl Command): Query the given R code (use 'help' for more information)">`:query`</span>).
|
|
84
96
|
|
|
85
97
|
|
|
86
98
|
|
|
87
99
|
_Results (prettified and summarized):_
|
|
88
100
|
|
|
89
|
-
Query: **linter** (
|
|
101
|
+
Query: **linter** (27 ms)\
|
|
90
102
|
╰ **Deprecated Functions** (deprecated-functions):\
|
|
91
103
|
╰ _Metadata_: <code>totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 1, processTimeMs: 0</code>\
|
|
92
104
|
╰ **File Path Validity** (file-path-validity):\
|
|
93
105
|
╰ certain:\
|
|
94
106
|
╰ Path `/root/x.txt` at 1.1-23\
|
|
95
|
-
╰ _Metadata_: <code>totalReads: 1, totalUnknown: 0, totalWritesBeforeAlways: 0, totalValid: 0, searchTimeMs:
|
|
107
|
+
╰ _Metadata_: <code>totalReads: 1, totalUnknown: 0, totalWritesBeforeAlways: 0, totalValid: 0, searchTimeMs: 25, processTimeMs: 0</code>\
|
|
96
108
|
╰ **Seeded Randomness** (seeded-randomness):\
|
|
97
109
|
╰ _Metadata_: <code>consumerCalls: 0, callsWithFunctionProducers: 0, callsWithAssignmentProducers: 0, callsWithNonConstantProducers: 0, callsWithOtherBranchProducers: 0, searchTimeMs: 0, processTimeMs: 0</code>\
|
|
98
110
|
╰ **Absolute Paths** (absolute-file-paths):\
|
|
@@ -106,9 +118,9 @@ It offers a wide variety of features, for example:
|
|
|
106
118
|
╰ **Network Functions** (network-functions):\
|
|
107
119
|
╰ _Metadata_: <code>totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 0, processTimeMs: 0</code>\
|
|
108
120
|
╰ **Dataframe Access Validation** (dataframe-access-validation):\
|
|
109
|
-
╰ _Metadata_: <code>numOperations: 0, numAccesses: 0, totalAccessed: 0, searchTimeMs: 0, processTimeMs:
|
|
121
|
+
╰ _Metadata_: <code>numOperations: 0, numAccesses: 0, totalAccessed: 0, searchTimeMs: 0, processTimeMs: 1</code>\
|
|
110
122
|
╰ **Dead Code** (dead-code):\
|
|
111
|
-
╰ _Metadata_: <code>
|
|
123
|
+
╰ _Metadata_: <code>searchTimeMs: 0, processTimeMs: 0</code>\
|
|
112
124
|
╰ **Useless Loops** (useless-loop):\
|
|
113
125
|
╰ _Metadata_: <code>numOfUselessLoops: 0, searchTimeMs: 0, processTimeMs: 0</code>\
|
|
114
126
|
╰ **Problematic inputs** (problematic-inputs):\
|
|
@@ -117,11 +129,23 @@ It offers a wide variety of features, for example:
|
|
|
117
129
|
╰ _Metadata_: <code>consideredNodes: 0, searchTimeMs: 0, processTimeMs: 0</code>\
|
|
118
130
|
╰ **Roxygen Arguments** (roxygen-arguments):\
|
|
119
131
|
╰ _Metadata_: <code>searchTimeMs: 0, processTimeMs: 0</code>\
|
|
120
|
-
|
|
132
|
+
╰ **Software Has License** (software-has-license):\
|
|
133
|
+
╰ certain:\
|
|
134
|
+
╰ No license found in the project\
|
|
135
|
+
╰ _Metadata_: <code>searchTimeMs: 0, processTimeMs: 0</code>\
|
|
136
|
+
╰ **Software Has Tests** (software-has-tests):\
|
|
137
|
+
╰ certain:\
|
|
138
|
+
╰ No tests found in the project\
|
|
139
|
+
╰ _Metadata_: <code>testFilesFound: 0, testCallsFound: 0, searchTimeMs: 0, processTimeMs: 0</code>\
|
|
140
|
+
╰ **No Leaked Credentials** (no-leaked-credentials):\
|
|
141
|
+
╰ _Metadata_: <code>totalChecked: 0, searchTimeMs: 0, processTimeMs: 0</code>\
|
|
142
|
+
╰ **Undefined Symbol** (undefined-symbol):\
|
|
143
|
+
╰ _Metadata_: <code>totalCalls: 1, searchTimeMs: 0, processTimeMs: 0</code>\
|
|
144
|
+
_All queries together required ≈27 ms (1ms accuracy, total 27 ms)_
|
|
121
145
|
|
|
122
146
|
<details> <summary style="color:gray">Show Detailed Results as Json</summary>
|
|
123
147
|
|
|
124
|
-
The analysis required
|
|
148
|
+
The analysis required _27.1 ms_ (including parsing and normalization and the query) within the generation environment.
|
|
125
149
|
|
|
126
150
|
In general, the JSON contains the Ids of the nodes in question as they are present in the normalized AST or the dataflow graph of flowR.
|
|
127
151
|
Please consult the [Interface](https://github.com/flowr-analysis/flowr/wiki/Interface) wiki page for more information on how to get those.
|
|
@@ -161,7 +185,7 @@ It offers a wide variety of features, for example:
|
|
|
161
185
|
"totalUnknown": 0,
|
|
162
186
|
"totalWritesBeforeAlways": 0,
|
|
163
187
|
"totalValid": 0,
|
|
164
|
-
"searchTimeMs":
|
|
188
|
+
"searchTimeMs": 25,
|
|
165
189
|
"processTimeMs": 0
|
|
166
190
|
}
|
|
167
191
|
},
|
|
@@ -230,14 +254,13 @@ It offers a wide variety of features, for example:
|
|
|
230
254
|
"numAccesses": 0,
|
|
231
255
|
"totalAccessed": 0,
|
|
232
256
|
"searchTimeMs": 0,
|
|
233
|
-
"processTimeMs":
|
|
257
|
+
"processTimeMs": 1
|
|
234
258
|
}
|
|
235
259
|
},
|
|
236
260
|
"dead-code": {
|
|
237
261
|
"results": [],
|
|
238
262
|
".meta": {
|
|
239
|
-
"
|
|
240
|
-
"searchTimeMs": 1,
|
|
263
|
+
"searchTimeMs": 0,
|
|
241
264
|
"processTimeMs": 0
|
|
242
265
|
}
|
|
243
266
|
},
|
|
@@ -270,14 +293,68 @@ It offers a wide variety of features, for example:
|
|
|
270
293
|
"searchTimeMs": 0,
|
|
271
294
|
"processTimeMs": 0
|
|
272
295
|
}
|
|
296
|
+
},
|
|
297
|
+
"software-has-license": {
|
|
298
|
+
"results": [
|
|
299
|
+
{
|
|
300
|
+
"certainty": "certain",
|
|
301
|
+
"loc": [
|
|
302
|
+
-1,
|
|
303
|
+
-1,
|
|
304
|
+
-1,
|
|
305
|
+
-1
|
|
306
|
+
],
|
|
307
|
+
"message": "No license found in the project"
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
".meta": {
|
|
311
|
+
"searchTimeMs": 0,
|
|
312
|
+
"processTimeMs": 0
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"software-has-tests": {
|
|
316
|
+
"results": [
|
|
317
|
+
{
|
|
318
|
+
"certainty": "certain",
|
|
319
|
+
"loc": [
|
|
320
|
+
-1,
|
|
321
|
+
-1,
|
|
322
|
+
-1,
|
|
323
|
+
-1
|
|
324
|
+
],
|
|
325
|
+
"message": "No tests found in the project"
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
".meta": {
|
|
329
|
+
"testFilesFound": 0,
|
|
330
|
+
"testCallsFound": 0,
|
|
331
|
+
"searchTimeMs": 0,
|
|
332
|
+
"processTimeMs": 0
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"no-leaked-credentials": {
|
|
336
|
+
"results": [],
|
|
337
|
+
".meta": {
|
|
338
|
+
"totalChecked": 0,
|
|
339
|
+
"searchTimeMs": 0,
|
|
340
|
+
"processTimeMs": 0
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"undefined-symbol": {
|
|
344
|
+
"results": [],
|
|
345
|
+
".meta": {
|
|
346
|
+
"totalCalls": 1,
|
|
347
|
+
"searchTimeMs": 0,
|
|
348
|
+
"processTimeMs": 0
|
|
349
|
+
}
|
|
273
350
|
}
|
|
274
351
|
},
|
|
275
352
|
".meta": {
|
|
276
|
-
"timing":
|
|
353
|
+
"timing": 27
|
|
277
354
|
}
|
|
278
355
|
},
|
|
279
356
|
".meta": {
|
|
280
|
-
"timing":
|
|
357
|
+
"timing": 27
|
|
281
358
|
}
|
|
282
359
|
}
|
|
283
360
|
```
|
|
@@ -300,7 +377,6 @@ It offers a wide variety of features, for example:
|
|
|
300
377
|
|
|
301
378
|
|
|
302
379
|
</details>
|
|
303
|
-
|
|
304
380
|
|
|
305
381
|
|
|
306
382
|
* 🍕 **program slicing**\
|
|
@@ -311,8 +387,8 @@ It offers a wide variety of features, for example:
|
|
|
311
387
|
<details><summary>Example: Slicing with flowR</summary>
|
|
312
388
|
|
|
313
389
|
|
|
314
|
-
The simplest way to retrieve slices is with flowR's [Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=code-inspect.vscode-flowr).
|
|
315
|
-
However, you can slice using the [REPL](https://github.com/flowr-analysis/flowr/wiki/
|
|
390
|
+
The simplest way to retrieve slices is with flowR's [Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=code-inspect.vscode-flowr).
|
|
391
|
+
However, you can slice using the [REPL](https://github.com/flowr-analysis/flowr/wiki/interface#using-the-repl) as well.
|
|
316
392
|
This can help you if you want to reuse specific parts of an existing analysis within another context or if you want to understand
|
|
317
393
|
what is happening in the code.
|
|
318
394
|
|
|
@@ -342,7 +418,7 @@ It offers a wide variety of features, for example:
|
|
|
342
418
|
|
|
343
419
|
```shell
|
|
344
420
|
$ docker run -it --rm eagleoutice/flowr # or npm run flowr
|
|
345
|
-
flowR repl
|
|
421
|
+
flowR repl v2.10.10, R grammar v14 (tree-sitter engine, pkg-db: latest/2026-05-23)
|
|
346
422
|
R> :query @static-slice (11@sum) file://test/testfiles/example.R
|
|
347
423
|
```
|
|
348
424
|
|
|
@@ -369,11 +445,10 @@ It offers a wide variety of features, for example:
|
|
|
369
445
|
|
|
370
446
|
|
|
371
447
|
</details>
|
|
372
|
-
|
|
373
448
|
|
|
374
449
|
* 📚 **dependency analysis**\
|
|
375
450
|
Given your analysis project, flowR offers a plethora of so-called [queries](https://github.com/flowr-analysis/flowr/wiki/query-api) to get more information about your code.
|
|
376
|
-
An important query is the [dependencies query](https://github.com/flowr-analysis/flowr/wiki/
|
|
451
|
+
An important query is the [dependencies query](https://github.com/flowr-analysis/flowr/wiki/query-api#dependencies-query), which shows you the library your project needs,
|
|
377
452
|
the data files it reads, the scripts it sources, and the data it outputs.
|
|
378
453
|
|
|
379
454
|
|
|
@@ -386,11 +461,10 @@ It offers a wide variety of features, for example:
|
|
|
386
461
|
|
|
387
462
|
|
|
388
463
|
|
|
389
|
-
</details>
|
|
390
|
-
|
|
464
|
+
</details>
|
|
391
465
|
|
|
392
466
|
* 🚀 **fast call-graph, data-, and control-flow graphs**\
|
|
393
|
-
Within just [<i><span title="This measurement is automatically fetched from the latest benchmark!">
|
|
467
|
+
Within just [<i><span title="This measurement is automatically fetched from the latest benchmark!">107.1 ms</span></i> (as of Jul 2, 2026)](https://flowr-analysis.github.io/flowr/wiki/stats/benchmark),
|
|
394
468
|
_flowR_ can analyze the data- and control-flow of the average real-world R script. See the [benchmarks](https://flowr-analysis.github.io/flowr/wiki/stats/benchmark) for more information,
|
|
395
469
|
and consult the [wiki pages](https://github.com/flowr-analysis/flowr/wiki/dataflow-graph) for more details on the [dataflow graphs](https://github.com/flowr-analysis/flowr/wiki/dataflow-graph) as well as [call graphs](https://github.com/flowr-analysis/flowr/wiki/dataflow-graph#perspectives-cg).
|
|
396
470
|
|
|
@@ -398,8 +472,8 @@ It offers a wide variety of features, for example:
|
|
|
398
472
|
<details><summary>Example: Generating a dataflow graph with flowR</summary>
|
|
399
473
|
|
|
400
474
|
|
|
401
|
-
You can investigate flowR's analyses using the [REPL](https://github.com/flowr-analysis/flowr/wiki/
|
|
402
|
-
Commands like <span title="Description (Repl Command, starred version): Returns the URL to mermaid.live; Base Command: Get mermaid code for the dataflow graph
|
|
475
|
+
You can investigate flowR's analyses using the [REPL](https://github.com/flowr-analysis/flowr/wiki/interface#using-the-repl).
|
|
476
|
+
Commands like <span title="Description (Repl Command, starred version): Returns the URL to mermaid.live; Base Command: Get mermaid code for the dataflow graph (aliases: :d*, :df*)">`:dataflow*`</span> allow you to view a [dataflow graph](https://github.com/flowr-analysis/flowr/wiki/dataflow-graph) for a given R script.
|
|
403
477
|
|
|
404
478
|
Let's have a look at the following example:
|
|
405
479
|
|
|
@@ -426,7 +500,7 @@ It offers a wide variety of features, for example:
|
|
|
426
500
|
|
|
427
501
|
```shell
|
|
428
502
|
$ docker run -it --rm eagleoutice/flowr # or npm run flowr
|
|
429
|
-
flowR repl
|
|
503
|
+
flowR repl v2.10.10, R grammar v14 (tree-sitter engine, pkg-db: latest/2026-05-23)
|
|
430
504
|
R> :dataflow* test/testfiles/example.R
|
|
431
505
|
```
|
|
432
506
|
|
|
@@ -588,6 +662,9 @@ It offers a wide variety of features, for example:
|
|
|
588
662
|
40(["`#91;RSymbol#93; sum
|
|
589
663
|
(40)
|
|
590
664
|
*11.13-15*`"])
|
|
665
|
+
built-in:sum["`Built-In:
|
|
666
|
+
sum`"]
|
|
667
|
+
style built-in:sum stroke:gray,fill:gray,stroke-width:2px,opacity:.8;
|
|
591
668
|
42{{"`#91;RString#93; #34;
|
|
592
669
|
#34;
|
|
593
670
|
(42)
|
|
@@ -719,22 +796,24 @@ It offers a wide variety of features, for example:
|
|
|
719
796
|
linkStyle 74 stroke:gray;
|
|
720
797
|
40 -->|"reads"| 0
|
|
721
798
|
40 -->|"reads"| 23
|
|
799
|
+
40 -.->|"reads"| built-in:sum
|
|
800
|
+
linkStyle 77 stroke:gray;
|
|
722
801
|
44 -->|"argument"| 38
|
|
723
802
|
44 -->|"reads, argument"| 40
|
|
724
803
|
44 -->|"argument"| 42
|
|
725
804
|
44 -.->|"reads, calls"| built-in:cat
|
|
726
|
-
linkStyle
|
|
805
|
+
linkStyle 81 stroke:gray;
|
|
727
806
|
48 -->|"reads"| 3
|
|
728
807
|
48 -->|"reads"| 30
|
|
729
808
|
52 -->|"argument"| 46
|
|
730
809
|
52 -->|"reads, argument"| 48
|
|
731
810
|
52 -->|"argument"| 50
|
|
732
811
|
52 -.->|"reads, calls"| built-in:cat
|
|
733
|
-
linkStyle
|
|
812
|
+
linkStyle 87 stroke:gray;
|
|
734
813
|
```
|
|
735
814
|
|
|
736
815
|
|
|
737
|
-
(The analysis required
|
|
816
|
+
(The analysis required _1.3 ms_ (including parse and normalize, using the [tree-sitter](https://github.com/flowr-analysis/flowr/wiki/Engines) engine) within the generation environment.)
|
|
738
817
|
|
|
739
818
|
|
|
740
819
|
|
|
@@ -745,14 +824,13 @@ It offers a wide variety of features, for example:
|
|
|
745
824
|
|
|
746
825
|
|
|
747
826
|
</details>
|
|
748
|
-
|
|
749
827
|
|
|
750
828
|
If you want to use flowR and the features it provides, feel free to check out the:
|
|
751
829
|
|
|
752
830
|
- [Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=code-inspect.vscode-flowr)/[Positron](https://open-vsx.org/extension/code-inspect/vscode-flowr): provides access to flowR directly in VS Code and Positron (or [vscode.dev](https://vscode.dev/))
|
|
753
831
|
- [RStudio Addin](https://github.com/flowr-analysis/rstudio-addin-flowr): integrates flowR into [RStudio](https://posit.co/downloads/)
|
|
754
832
|
- [R package](https://github.com/flowr-analysis/flowr-r-adapter): use flowR in your R scripts
|
|
755
|
-
- [Docker image](https://hub.docker.com/r/eagleoutice/flowr): run flowR in a container, this also includes [flowR's server](https://github.com/flowr-analysis/flowr/wiki/
|
|
833
|
+
- [Docker image](https://hub.docker.com/r/eagleoutice/flowr): run flowR in a container, this also includes [flowR's server](https://github.com/flowr-analysis/flowr/wiki/interface#communicating-with-the-server)
|
|
756
834
|
- [NPM package](https://www.npmjs.com/package/@eagleoutice/flowr): include flowR in your TypeScript and JavaScript projects
|
|
757
835
|
|
|
758
836
|
|
|
@@ -229,7 +229,7 @@ class AbstractInterpretationVisitor extends semantic_cfg_guided_visitor_1.Semant
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
onVariableDefinition({ vertex }) {
|
|
232
|
-
if (this.
|
|
232
|
+
if (!this.trace.has(vertex.id)) {
|
|
233
233
|
this.unassigned.add(vertex.id);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -241,8 +241,11 @@ class AbstractInterpretationVisitor extends semantic_cfg_guided_visitor_1.Semant
|
|
|
241
241
|
this.unassigned.delete(target);
|
|
242
242
|
if (value !== undefined) {
|
|
243
243
|
this.currentState.set(target, value);
|
|
244
|
-
this.trace.set(target, this.currentState);
|
|
245
244
|
}
|
|
245
|
+
else {
|
|
246
|
+
this.currentState.remove(target);
|
|
247
|
+
}
|
|
248
|
+
this.trace.set(target, this.currentState);
|
|
246
249
|
}
|
|
247
250
|
onReplacementCall({ target }) {
|
|
248
251
|
if (target !== undefined) {
|
|
@@ -285,7 +288,7 @@ class AbstractInterpretationVisitor extends semantic_cfg_guided_visitor_1.Semant
|
|
|
285
288
|
}
|
|
286
289
|
/** Checks whether a node represents a unsupported (environment-changing) function call (e.g. `eval`, `load`, `attach`, `rm`, ...) */
|
|
287
290
|
isUnsupportedFunctionCall(nodeId) {
|
|
288
|
-
return unsupported_functions_1.UnsupportedFunctions.isUnsupportedCall(this.getDataflowGraph(nodeId));
|
|
291
|
+
return unsupported_functions_1.UnsupportedFunctions.isUnsupportedCall(this.getDataflowGraph(nodeId), this.config.dfg);
|
|
289
292
|
}
|
|
290
293
|
/** We only perform widening at `for`, `while`, or `repeat` loops with more than one ingoing CFG edge */
|
|
291
294
|
isWideningPoint(nodeId) {
|
|
@@ -48,7 +48,7 @@ export declare abstract class AbstractDomain<Concrete, Abstract, Top, Bot, Value
|
|
|
48
48
|
* Maps a set of possible concrete values into an abstract value as abstraction function of the abstract domain (should additionally be provided as static function).
|
|
49
49
|
*/
|
|
50
50
|
abstract abstract(concrete: ReadonlySet<Concrete> | typeof Top): this;
|
|
51
|
-
abstract
|
|
51
|
+
abstract toJSON(): unknown;
|
|
52
52
|
abstract toString(): string;
|
|
53
53
|
abstract isTop(): this is AbstractDomain<Concrete, Abstract, Top, Bot, Top>;
|
|
54
54
|
abstract isBottom(): this is AbstractDomain<Concrete, Abstract, Top, Bot, Bot>;
|
|
@@ -47,7 +47,7 @@ export declare class BoundedSetDomain<T, Value extends BoundedSetLift<T> = Bound
|
|
|
47
47
|
concretize(limit: number): ReadonlySet<T> | typeof Top;
|
|
48
48
|
abstract(concrete: ReadonlySet<T> | typeof Top): this;
|
|
49
49
|
satisfies(value: T): Ternary;
|
|
50
|
-
|
|
50
|
+
toJSON(): unknown;
|
|
51
51
|
toString(): string;
|
|
52
52
|
isTop(): this is BoundedSetDomain<T, BoundedSetTop>;
|
|
53
53
|
isBottom(): this is BoundedSetDomain<T, BoundedSetBottom>;
|
|
@@ -60,7 +60,7 @@ export declare class IntervalDomain<Value extends IntervalLift = IntervalLift> e
|
|
|
60
60
|
* Extends the upper bound of the current abstract value up to +∞.
|
|
61
61
|
*/
|
|
62
62
|
widenUp(): this;
|
|
63
|
-
|
|
63
|
+
toJSON(): unknown;
|
|
64
64
|
toString(): string;
|
|
65
65
|
isTop(): this is IntervalDomain<IntervalTop>;
|
|
66
66
|
isBottom(): this is IntervalDomain<IntervalBottom>;
|
|
@@ -51,7 +51,7 @@ export interface Lattice<Value, Top, Bot, Lift extends Value | Top | Bot = Value
|
|
|
51
51
|
/**
|
|
52
52
|
* Converts the lattice into a JSON serializable value.
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
toJSON(): unknown;
|
|
55
55
|
/**
|
|
56
56
|
* Converts the lattice into a human-readable string.
|
|
57
57
|
*/
|
|
@@ -31,7 +31,7 @@ export declare abstract class PartialProductDomain<Product extends AbstractProdu
|
|
|
31
31
|
narrow(other: this): this;
|
|
32
32
|
concretize(limit: number): ReadonlySet<ConcreteProductOf<Product>> | typeof Top;
|
|
33
33
|
abstract(concrete: ReadonlySet<ConcreteProductOf<Product>> | typeof Top): this;
|
|
34
|
-
|
|
34
|
+
toJSON(): unknown;
|
|
35
35
|
toString(): string;
|
|
36
36
|
isTop(): boolean;
|
|
37
37
|
isTop(): this is this;
|
|
@@ -140,8 +140,8 @@ class PartialProductDomain extends abstract_domain_1.AbstractDomain {
|
|
|
140
140
|
}
|
|
141
141
|
return this.create(result);
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
return record_1.Record.mapProperties(this.value, entry => entry?.
|
|
143
|
+
toJSON() {
|
|
144
|
+
return record_1.Record.mapProperties(this.value, entry => entry?.toJSON());
|
|
145
145
|
}
|
|
146
146
|
toString() {
|
|
147
147
|
return '(' + record_1.Record.entries(this.value).map(([key, value]) => `${key}: ${value.toString()}`).join(', ') + ')';
|
|
@@ -94,7 +94,7 @@ export declare class SetRangeDomain<T, Value extends SetRangeLift<T> = SetRangeL
|
|
|
94
94
|
* Extends the maximum set of the current abstract value up to {@link Top}.
|
|
95
95
|
*/
|
|
96
96
|
widenUp(): this;
|
|
97
|
-
|
|
97
|
+
toJSON(): unknown;
|
|
98
98
|
toString(): string;
|
|
99
99
|
isTop(): this is SetRangeDomain<T, SetRangeTop>;
|
|
100
100
|
isBottom(): this is SetRangeDomain<T, SetRangeBottom>;
|
|
@@ -45,7 +45,7 @@ export declare class SetUpperBoundDomain<T, Value extends SetUpperBoundLift<T> =
|
|
|
45
45
|
concretize(limit: number): ReadonlySet<ReadonlySet<T>> | typeof Top;
|
|
46
46
|
abstract(concrete: ReadonlySet<ReadonlySet<T>> | typeof Top): this;
|
|
47
47
|
satisfies(set: ReadonlySet<T> | T[], comparator?: SetComparator): Ternary;
|
|
48
|
-
|
|
48
|
+
toJSON(): unknown;
|
|
49
49
|
toString(): string;
|
|
50
50
|
isTop(): this is SetUpperBoundDomain<T, SetUpperBoundTop>;
|
|
51
51
|
isBottom(): this is SetUpperBoundDomain<T, SetUpperBoundBottom>;
|
|
@@ -34,7 +34,7 @@ export declare class SingletonDomain<T, Value extends SingletonLift<T> = Singlet
|
|
|
34
34
|
concretize(): ReadonlySet<T> | typeof Top;
|
|
35
35
|
abstract(concrete: ReadonlySet<T> | typeof Top): this;
|
|
36
36
|
satisfies(value: T): Ternary;
|
|
37
|
-
|
|
37
|
+
toJSON(): unknown;
|
|
38
38
|
toString(): string;
|
|
39
39
|
isTop(): this is SingletonDomain<T, SingletonTop>;
|
|
40
40
|
isBottom(): this is SingletonDomain<T, SingletonBottom>;
|
|
@@ -38,7 +38,7 @@ export declare class StateAbstractDomain<Domain extends AnyAbstractDomain, Value
|
|
|
38
38
|
narrow(other: this): this;
|
|
39
39
|
concretize(limit: number): ReadonlySet<ConcreteState<Domain>> | typeof Top;
|
|
40
40
|
abstract(concrete: ReadonlySet<ConcreteState<Domain>> | typeof Top): this;
|
|
41
|
-
|
|
41
|
+
toJSON(): unknown;
|
|
42
42
|
toString(): string;
|
|
43
43
|
isTop(): this is this & StateAbstractDomain<Domain, StateDomainTop>;
|
|
44
44
|
isBottom(): this is this & StateAbstractDomain<Domain, StateDomainBottom>;
|
|
@@ -205,11 +205,11 @@ class StateAbstractDomain extends abstract_domain_1.AbstractDomain {
|
|
|
205
205
|
}
|
|
206
206
|
return this.create(result);
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
toJSON() {
|
|
209
209
|
if (this.value === lattice_1.Bottom) {
|
|
210
210
|
return this.value.description;
|
|
211
211
|
}
|
|
212
|
-
return Object.fromEntries(this.value.entries().map(([key, value]) => [key, value.
|
|
212
|
+
return Object.fromEntries(this.value.entries().map(([key, value]) => [key, value.toJSON()]));
|
|
213
213
|
}
|
|
214
214
|
toString() {
|
|
215
215
|
if (this.value === lattice_1.Bottom) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { DataflowGraph } from '../dataflow/graph/graph';
|
|
1
2
|
import { type DataflowGraphVertexArgument } from '../dataflow/graph/vertex';
|
|
2
3
|
/**
|
|
3
4
|
* Helper for unsupported functions that may change the environment.
|
|
4
5
|
*/
|
|
5
6
|
export declare const UnsupportedFunctions: {
|
|
6
7
|
/**
|
|
7
|
-
* Checks whether a data flow graph vertex represents
|
|
8
|
+
* Checks whether a data flow graph vertex represents an unsupported (environment-changing) function call (e.g. `eval`, `load`, `attach`, `rm`, ...)
|
|
8
9
|
*/
|
|
9
|
-
isUnsupportedCall(this: void, vertex: DataflowGraphVertexArgument | undefined): boolean;
|
|
10
|
+
isUnsupportedCall(this: void, vertex: DataflowGraphVertexArgument | undefined, dfg: DataflowGraph): boolean;
|
|
10
11
|
};
|