@eagleoutice/flowr 2.10.8 → 2.10.10

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.
Files changed (260) hide show
  1. package/README.md +106 -36
  2. package/abstract-interpretation/absint-visitor.js +6 -3
  3. package/abstract-interpretation/domains/abstract-domain.d.ts +1 -1
  4. package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
  5. package/abstract-interpretation/domains/bounded-set-domain.js +1 -1
  6. package/abstract-interpretation/domains/interval-domain.d.ts +1 -1
  7. package/abstract-interpretation/domains/interval-domain.js +1 -1
  8. package/abstract-interpretation/domains/lattice.d.ts +1 -1
  9. package/abstract-interpretation/domains/partial-product-domain.d.ts +1 -1
  10. package/abstract-interpretation/domains/partial-product-domain.js +2 -2
  11. package/abstract-interpretation/domains/set-range-domain.d.ts +1 -1
  12. package/abstract-interpretation/domains/set-range-domain.js +1 -1
  13. package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +1 -1
  14. package/abstract-interpretation/domains/set-upper-bound-domain.js +1 -1
  15. package/abstract-interpretation/domains/singleton-domain.d.ts +1 -1
  16. package/abstract-interpretation/domains/singleton-domain.js +1 -1
  17. package/abstract-interpretation/domains/state-abstract-domain.d.ts +1 -1
  18. package/abstract-interpretation/domains/state-abstract-domain.js +2 -2
  19. package/abstract-interpretation/unsupported-functions.d.ts +3 -2
  20. package/abstract-interpretation/unsupported-functions.js +38 -28
  21. package/cli/benchmark-app.js +2 -1
  22. package/cli/common/script.js +3 -2
  23. package/cli/flowr.js +47 -10
  24. package/cli/repl/commands/repl-cfg.js +9 -9
  25. package/cli/repl/commands/repl-commands.js +5 -0
  26. package/cli/repl/commands/repl-dataflow.js +31 -24
  27. package/cli/repl/commands/repl-main.d.ts +6 -0
  28. package/cli/repl/commands/repl-normalize.js +15 -12
  29. package/cli/repl/commands/repl-parse.js +1 -1
  30. package/cli/repl/commands/repl-query.js +4 -5
  31. package/cli/repl/commands/repl-quit.js +2 -1
  32. package/cli/repl/core.d.ts +11 -0
  33. package/cli/repl/core.js +101 -3
  34. package/cli/repl/execute.js +3 -2
  35. package/cli/repl/parser/slice-query-parser.d.ts +16 -0
  36. package/cli/repl/parser/slice-query-parser.js +52 -0
  37. package/cli/repl/server/connection.d.ts +1 -0
  38. package/cli/repl/server/connection.js +25 -0
  39. package/cli/repl/server/messages/message-analysis.d.ts +10 -0
  40. package/cli/repl/server/messages/message-analysis.js +6 -2
  41. package/cli/repl/server/messages/message-slice.d.ts +1 -1
  42. package/cli/script-core/statistics-core.js +2 -1
  43. package/cli/script-core/statistics-helper-core.js +2 -1
  44. package/cli/wiki.d.ts +2 -1
  45. package/cli/wiki.js +4 -1
  46. package/config.d.ts +9 -0
  47. package/config.js +23 -1
  48. package/control-flow/diff-cfg.d.ts +1 -1
  49. package/control-flow/diff-cfg.js +1 -1
  50. package/control-flow/extract-cfg.js +9 -3
  51. package/control-flow/semantic-cfg-guided-visitor.js +1 -0
  52. package/control-flow/simple-visitor.js +6 -5
  53. package/control-flow/useless-loop.js +2 -2
  54. package/core/print/dataflow-printer.d.ts +2 -2
  55. package/core/print/dataflow-printer.js +2 -2
  56. package/core/steps/all/static-slicing/00-slice.js +1 -1
  57. package/core/steps/pipeline/default-pipelines.d.ts +146 -146
  58. package/dataflow/environments/append.d.ts +2 -1
  59. package/dataflow/environments/append.js +2 -1
  60. package/dataflow/environments/built-in-proc-name.d.ts +2 -0
  61. package/dataflow/environments/built-in-proc-name.js +2 -0
  62. package/dataflow/environments/built-in.d.ts +2 -0
  63. package/dataflow/environments/built-in.js +2 -0
  64. package/dataflow/environments/default-builtin-config.d.ts +122 -66
  65. package/dataflow/environments/default-builtin-config.js +324 -145
  66. package/dataflow/environments/environment.d.ts +2 -1
  67. package/dataflow/environments/environment.js +13 -9
  68. package/dataflow/environments/identifier.d.ts +55 -2
  69. package/dataflow/environments/identifier.js +14 -2
  70. package/dataflow/environments/reference-to-maybe.d.ts +2 -0
  71. package/dataflow/environments/reference-to-maybe.js +56 -11
  72. package/dataflow/environments/resolve-by-name.js +13 -7
  73. package/dataflow/eval/values/general.js +4 -0
  74. package/dataflow/extractor.js +22 -3
  75. package/dataflow/graph/df-helper.d.ts +6 -0
  76. package/dataflow/graph/df-helper.js +33 -0
  77. package/dataflow/graph/graph.js +7 -3
  78. package/dataflow/info.d.ts +1 -1
  79. package/dataflow/info.js +3 -1
  80. package/dataflow/internal/linker.d.ts +5 -1
  81. package/dataflow/internal/linker.js +34 -9
  82. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +3 -1
  83. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +1 -1
  84. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +53 -0
  85. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.d.ts +13 -0
  86. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.js +58 -0
  87. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -1
  88. package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +1 -1
  89. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +38 -14
  90. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +19 -0
  91. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +1 -1
  92. package/dataflow/internal/process/functions/call/known-call-handling.js +4 -3
  93. package/dataflow/internal/process/functions/call/named-call-handling.js +6 -0
  94. package/dataflow/origin/dfg-get-origin.d.ts +1 -1
  95. package/dataflow/origin/dfg-get-origin.js +1 -1
  96. package/dataflow/processor.d.ts +6 -0
  97. package/documentation/data/faq/faqs.d.ts +2 -1
  98. package/documentation/data/faq/faqs.js +75 -57
  99. package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
  100. package/documentation/data/server/doc-data-server-messages.js +15 -7
  101. package/documentation/doc-readme.js +15 -15
  102. package/documentation/doc-util/doc-cfg.d.ts +3 -1
  103. package/documentation/doc-util/doc-cfg.js +3 -3
  104. package/documentation/doc-util/doc-dfg.d.ts +3 -1
  105. package/documentation/doc-util/doc-dfg.js +3 -3
  106. package/documentation/doc-util/doc-files.d.ts +3 -1
  107. package/documentation/doc-util/doc-files.js +9 -6
  108. package/documentation/doc-util/doc-normalized-ast.d.ts +3 -1
  109. package/documentation/doc-util/doc-normalized-ast.js +2 -2
  110. package/documentation/doc-util/doc-query.d.ts +2 -1
  111. package/documentation/doc-util/doc-query.js +2 -2
  112. package/documentation/doc-util/doc-repl.js +1 -0
  113. package/documentation/doc-util/doc-types.d.ts +6 -6
  114. package/documentation/doc-util/doc-types.js +11 -9
  115. package/documentation/issue-linting-rule.js +1 -2
  116. package/documentation/wiki-analyzer.js +9 -9
  117. package/documentation/wiki-cfg.js +40 -41
  118. package/documentation/wiki-core.js +119 -31
  119. package/documentation/wiki-create-linting-rules.d.ts +6 -0
  120. package/documentation/wiki-create-linting-rules.js +95 -0
  121. package/documentation/wiki-dataflow-graph.js +77 -76
  122. package/documentation/wiki-engine.js +1 -2
  123. package/documentation/wiki-faq.d.ts +2 -1
  124. package/documentation/wiki-faq.js +4 -4
  125. package/documentation/wiki-interface.js +19 -6
  126. package/documentation/wiki-linter.d.ts +1 -1
  127. package/documentation/wiki-linter.js +14 -6
  128. package/documentation/wiki-linting-and-testing.js +2 -2
  129. package/documentation/wiki-mk/doc-context.d.ts +3 -3
  130. package/documentation/wiki-mk/doc-maker.d.ts +2 -0
  131. package/documentation/wiki-mk/doc-maker.js +7 -1
  132. package/documentation/wiki-normalized-ast.js +5 -5
  133. package/documentation/wiki-onboarding.d.ts +2 -1
  134. package/documentation/wiki-onboarding.js +5 -5
  135. package/documentation/wiki-overview.js +3 -3
  136. package/documentation/wiki-query.js +85 -84
  137. package/documentation/wiki-search.js +4 -5
  138. package/documentation/wiki-setup.js +6 -7
  139. package/gas.d.ts +74 -0
  140. package/gas.js +18 -0
  141. package/linter/linter-executor.js +2 -8
  142. package/linter/linter-format.d.ts +4 -11
  143. package/linter/linter-rules.d.ts +88 -86
  144. package/linter/linter-rules.js +7 -1
  145. package/linter/rules/absolute-path.d.ts +2 -7
  146. package/linter/rules/absolute-path.js +6 -4
  147. package/linter/rules/dataframe-access-validation.d.ts +1 -6
  148. package/linter/rules/dataframe-access-validation.js +8 -6
  149. package/linter/rules/dead-code.d.ts +2 -11
  150. package/linter/rules/dead-code.js +16 -11
  151. package/linter/rules/deprecated-functions.d.ts +3 -3
  152. package/linter/rules/file-path-validity.d.ts +1 -6
  153. package/linter/rules/file-path-validity.js +5 -5
  154. package/linter/rules/function-finder-util.d.ts +7 -11
  155. package/linter/rules/function-finder-util.js +9 -6
  156. package/linter/rules/naming-convention.d.ts +2 -7
  157. package/linter/rules/naming-convention.js +3 -2
  158. package/linter/rules/network-functions.d.ts +2 -7
  159. package/linter/rules/network-functions.js +14 -12
  160. package/linter/rules/no-leaked-credentials.d.ts +36 -0
  161. package/linter/rules/no-leaked-credentials.js +75 -0
  162. package/linter/rules/problematic-inputs.d.ts +1 -8
  163. package/linter/rules/problematic-inputs.js +5 -4
  164. package/linter/rules/roxygen-arguments.d.ts +2 -7
  165. package/linter/rules/roxygen-arguments.js +13 -20
  166. package/linter/rules/seeded-randomness.d.ts +2 -7
  167. package/linter/rules/seeded-randomness.js +7 -4
  168. package/linter/rules/software-has-license.d.ts +31 -0
  169. package/linter/rules/software-has-license.js +46 -0
  170. package/linter/rules/software-has-tests.d.ts +38 -0
  171. package/linter/rules/software-has-tests.js +48 -0
  172. package/linter/rules/stop-with-call-arg.d.ts +2 -7
  173. package/linter/rules/stop-with-call-arg.js +3 -2
  174. package/linter/rules/unused-definition.d.ts +3 -8
  175. package/linter/rules/unused-definition.js +7 -5
  176. package/linter/rules/useless-loop.d.ts +2 -7
  177. package/linter/rules/useless-loop.js +5 -2
  178. package/package.json +3 -2
  179. package/project/context/flowr-analyzer-context.d.ts +13 -14
  180. package/project/context/flowr-analyzer-context.js +4 -0
  181. package/project/context/flowr-analyzer-files-context.d.ts +12 -0
  182. package/project/context/flowr-analyzer-files-context.js +12 -2
  183. package/project/context/flowr-analyzer-gas-context.d.ts +28 -0
  184. package/project/context/flowr-analyzer-gas-context.js +101 -0
  185. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +13 -7
  186. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +56 -11
  187. package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +1 -1
  188. package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +2 -2
  189. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +2 -1
  190. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +5 -5
  191. package/project/plugins/flowr-analyzer-plugin.d.ts +15 -8
  192. package/project/plugins/flowr-analyzer-plugin.js +14 -7
  193. package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.d.ts +19 -0
  194. package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.js +35 -0
  195. package/project/plugins/plugin-registry.d.ts +2 -1
  196. package/project/plugins/plugin-registry.js +3 -1
  197. package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.d.ts +22 -0
  198. package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +47 -0
  199. package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +1 -1
  200. package/queries/catalog/call-context-query/call-context-query-executor.js +54 -8
  201. package/queries/catalog/call-context-query/call-context-query-format.d.ts +2 -2
  202. package/queries/catalog/dependencies-query/function-info/test-functions.d.ts +2 -0
  203. package/queries/catalog/dependencies-query/function-info/test-functions.js +18 -177
  204. package/queries/catalog/df-shape-query/df-shape-query-format.js +1 -1
  205. package/queries/catalog/dice-query/dice-query-executor.d.ts +8 -0
  206. package/queries/catalog/dice-query/dice-query-executor.js +52 -0
  207. package/queries/catalog/dice-query/dice-query-format.d.ts +53 -0
  208. package/queries/catalog/dice-query/dice-query-format.js +102 -0
  209. package/queries/catalog/happens-before-query/happens-before-query-executor.js +2 -2
  210. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +2 -0
  211. package/queries/catalog/input-sources-query/input-sources-query-format.js +1 -0
  212. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +2 -0
  213. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +1 -0
  214. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +2 -0
  215. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +1 -0
  216. package/queries/catalog/linter-query/linter-query-executor.js +7 -0
  217. package/queries/catalog/location-map-query/location-map-query-format.d.ts +2 -0
  218. package/queries/catalog/location-map-query/location-map-query-format.js +1 -0
  219. package/queries/catalog/origin-query/origin-query-format.d.ts +2 -0
  220. package/queries/catalog/origin-query/origin-query-format.js +1 -0
  221. package/queries/catalog/provenance-query/provenance-query-format.d.ts +2 -0
  222. package/queries/catalog/provenance-query/provenance-query-format.js +1 -0
  223. package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +2 -0
  224. package/queries/catalog/resolve-value-query/resolve-value-query-format.js +1 -0
  225. package/queries/catalog/static-slice-query/static-slice-query-executor.js +1 -1
  226. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -0
  227. package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
  228. package/queries/query.d.ts +18 -1
  229. package/queries/query.js +3 -1
  230. package/r-bridge/data/data.d.ts +5 -0
  231. package/r-bridge/data/data.js +6 -0
  232. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +0 -1
  233. package/r-bridge/lang-4.x/ast/model/processing/decorate.js +10 -1
  234. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.d.ts +1 -1
  235. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -1
  236. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.d.ts +1 -1
  237. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -1
  238. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +63 -44
  239. package/r-bridge/parser.js +2 -9
  240. package/r-bridge/shell.d.ts +8 -1
  241. package/r-bridge/shell.js +26 -7
  242. package/search/flowr-search-builder.d.ts +2 -2
  243. package/search/flowr-search-builder.js +1 -1
  244. package/search/flowr-search-filters.d.ts +30 -9
  245. package/search/flowr-search-filters.js +26 -21
  246. package/search/search-executor/search-enrichers.d.ts +600 -0
  247. package/search/search-executor/search-enrichers.js +23 -2
  248. package/slicing/static/static-slicer.d.ts +39 -11
  249. package/slicing/static/static-slicer.js +44 -14
  250. package/util/collections/queue.d.ts +16 -0
  251. package/util/collections/queue.js +38 -0
  252. package/util/log.d.ts +1 -1
  253. package/util/log.js +1 -1
  254. package/util/mermaid/dfg.d.ts +2 -2
  255. package/util/mermaid/dfg.js +2 -2
  256. package/util/objects.d.ts +9 -0
  257. package/util/objects.js +57 -1
  258. package/util/proc.d.ts +6 -0
  259. package/util/proc.js +20 -0
  260. package/util/version.js +1 -1
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/Linter) for more information on the currently supported linters).
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/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)).
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 using flowR v2.10.7, R grammar v14 (tree-sitter engine)
27
+ flowR repl using flowR v2.10.9, R grammar v14 (tree-sitter engine)
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 (2 ms)
36
+ Query: linter (1 ms)
37
37
  ╰ Deprecated Functions (deprecated-functions):
38
- ╰ Metadata: totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 1, processTimeMs: 0
38
+ ╰ Metadata: totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 0, 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: 0, processTimeMs: 0
42
+ ╰ Metadata: totalReads: 1, totalUnknown: 0, totalWritesBeforeAlways: 0, totalValid: 0, searchTimeMs: 1, 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):
@@ -51,11 +51,11 @@ It offers a wide variety of features, for example:
51
51
  ╰ Naming Convention (naming-convention):
52
52
  ╰ Metadata: numMatches: 0, numBreak: 0, searchTimeMs: 0, processTimeMs: 0
53
53
  ╰ Network Functions (network-functions):
54
- ╰ Metadata: totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 0, processTimeMs: 1
54
+ ╰ Metadata: totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 0, processTimeMs: 0
55
55
  ╰ Dataframe Access Validation (dataframe-access-validation):
56
56
  ╰ Metadata: numOperations: 0, numAccesses: 0, totalAccessed: 0, searchTimeMs: 0, processTimeMs: 0
57
57
  ╰ Dead Code (dead-code):
58
- ╰ Metadata: consideredNodes: 5, searchTimeMs: 0, processTimeMs: 0
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,17 @@ 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
- All queries together required ≈2 ms (1ms accuracy, total 2 ms)
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
+ All queries together required ≈1 ms (1ms accuracy, total 1 ms)
68
78
  ```
69
79
 
70
80
 
@@ -80,25 +90,25 @@ It offers a wide variety of features, for example:
80
90
  ```
81
91
 
82
92
 
83
- (This can be shortened to `@linter` when used with the REPL command <span title="Description (Repl Command): Query the given R code, start with 'file://' to indicate a file. The query is to be a valid query in json format (use 'help' to get more information).">`:query`</span>).
93
+ (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
94
 
85
95
 
86
96
 
87
97
  _Results (prettified and summarized):_
88
98
 
89
- Query: **linter** (2 ms)\
99
+ Query: **linter** (1 ms)\
90
100
  &nbsp;&nbsp;&nbsp;╰ **Deprecated Functions** (deprecated-functions):\
91
101
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 0, processTimeMs: 0</code>\
92
102
  &nbsp;&nbsp;&nbsp;╰ **File Path Validity** (file-path-validity):\
93
103
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ certain:\
94
104
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ Path `/root/x.txt` at 1.1-23\
95
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>totalReads: 1, totalUnknown: 0, totalWritesBeforeAlways: 0, totalValid: 0, searchTimeMs: 1, processTimeMs: 0</code>\
105
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>totalReads: 1, totalUnknown: 0, totalWritesBeforeAlways: 0, totalValid: 0, searchTimeMs: 0, processTimeMs: 0</code>\
96
106
  &nbsp;&nbsp;&nbsp;╰ **Seeded Randomness** (seeded-randomness):\
97
107
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>consumerCalls: 0, callsWithFunctionProducers: 0, callsWithAssignmentProducers: 0, callsWithNonConstantProducers: 0, callsWithOtherBranchProducers: 0, searchTimeMs: 0, processTimeMs: 0</code>\
98
108
  &nbsp;&nbsp;&nbsp;╰ **Absolute Paths** (absolute-file-paths):\
99
109
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ certain:\
100
110
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ Path `/root/x.txt` at 1.1-23\
101
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>totalConsidered: 1, totalUnknown: 0, searchTimeMs: 0, processTimeMs: 0</code>\
111
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>totalConsidered: 1, totalUnknown: 0, searchTimeMs: 1, processTimeMs: 0</code>\
102
112
  &nbsp;&nbsp;&nbsp;╰ **Unused Definitions** (unused-definitions):\
103
113
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>totalConsidered: 0, searchTimeMs: 0, processTimeMs: 0</code>\
104
114
  &nbsp;&nbsp;&nbsp;╰ **Naming Convention** (naming-convention):\
@@ -106,9 +116,9 @@ It offers a wide variety of features, for example:
106
116
  &nbsp;&nbsp;&nbsp;╰ **Network Functions** (network-functions):\
107
117
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>totalCalls: 0, totalFunctionDefinitions: 0, searchTimeMs: 0, processTimeMs: 0</code>\
108
118
  &nbsp;&nbsp;&nbsp;╰ **Dataframe Access Validation** (dataframe-access-validation):\
109
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>numOperations: 0, numAccesses: 0, totalAccessed: 0, searchTimeMs: 0, processTimeMs: 1</code>\
119
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>numOperations: 0, numAccesses: 0, totalAccessed: 0, searchTimeMs: 0, processTimeMs: 0</code>\
110
120
  &nbsp;&nbsp;&nbsp;╰ **Dead Code** (dead-code):\
111
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>consideredNodes: 5, searchTimeMs: 0, processTimeMs: 0</code>\
121
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>searchTimeMs: 0, processTimeMs: 0</code>\
112
122
  &nbsp;&nbsp;&nbsp;╰ **Useless Loops** (useless-loop):\
113
123
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>numOfUselessLoops: 0, searchTimeMs: 0, processTimeMs: 0</code>\
114
124
  &nbsp;&nbsp;&nbsp;╰ **Problematic inputs** (problematic-inputs):\
@@ -117,11 +127,21 @@ It offers a wide variety of features, for example:
117
127
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>consideredNodes: 0, searchTimeMs: 0, processTimeMs: 0</code>\
118
128
  &nbsp;&nbsp;&nbsp;╰ **Roxygen Arguments** (roxygen-arguments):\
119
129
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>searchTimeMs: 0, processTimeMs: 0</code>\
120
- _All queries together required ≈2 ms (1ms accuracy, total 2 ms)_
130
+ &nbsp;&nbsp;&nbsp;╰ **Software Has License** (software-has-license):\
131
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ certain:\
132
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ No license found in the project\
133
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>searchTimeMs: 0, processTimeMs: 0</code>\
134
+ &nbsp;&nbsp;&nbsp;╰ **Software Has Tests** (software-has-tests):\
135
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ certain:\
136
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ No tests found in the project\
137
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>testFilesFound: 0, testCallsFound: 0, searchTimeMs: 0, processTimeMs: 0</code>\
138
+ &nbsp;&nbsp;&nbsp;╰ **No Leaked Credentials** (no-leaked-credentials):\
139
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╰ _Metadata_: <code>totalChecked: 0, searchTimeMs: 0, processTimeMs: 0</code>\
140
+ _All queries together required ≈1 ms (1ms accuracy, total 2 ms)_
121
141
 
122
142
  <details> <summary style="color:gray">Show Detailed Results as Json</summary>
123
143
 
124
- The analysis required _2.4 ms_ (including parsing and normalization and the query) within the generation environment.
144
+ The analysis required _1.8 ms_ (including parsing and normalization and the query) within the generation environment.
125
145
 
126
146
  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
147
  Please consult the [Interface](https://github.com/flowr-analysis/flowr/wiki/Interface) wiki page for more information on how to get those.
@@ -161,7 +181,7 @@ It offers a wide variety of features, for example:
161
181
  "totalUnknown": 0,
162
182
  "totalWritesBeforeAlways": 0,
163
183
  "totalValid": 0,
164
- "searchTimeMs": 1,
184
+ "searchTimeMs": 0,
165
185
  "processTimeMs": 0
166
186
  }
167
187
  },
@@ -193,7 +213,7 @@ It offers a wide variety of features, for example:
193
213
  ".meta": {
194
214
  "totalConsidered": 1,
195
215
  "totalUnknown": 0,
196
- "searchTimeMs": 0,
216
+ "searchTimeMs": 1,
197
217
  "processTimeMs": 0
198
218
  }
199
219
  },
@@ -230,13 +250,12 @@ It offers a wide variety of features, for example:
230
250
  "numAccesses": 0,
231
251
  "totalAccessed": 0,
232
252
  "searchTimeMs": 0,
233
- "processTimeMs": 1
253
+ "processTimeMs": 0
234
254
  }
235
255
  },
236
256
  "dead-code": {
237
257
  "results": [],
238
258
  ".meta": {
239
- "consideredNodes": 5,
240
259
  "searchTimeMs": 0,
241
260
  "processTimeMs": 0
242
261
  }
@@ -270,14 +289,60 @@ It offers a wide variety of features, for example:
270
289
  "searchTimeMs": 0,
271
290
  "processTimeMs": 0
272
291
  }
292
+ },
293
+ "software-has-license": {
294
+ "results": [
295
+ {
296
+ "certainty": "certain",
297
+ "loc": [
298
+ -1,
299
+ -1,
300
+ -1,
301
+ -1
302
+ ],
303
+ "message": "No license found in the project"
304
+ }
305
+ ],
306
+ ".meta": {
307
+ "searchTimeMs": 0,
308
+ "processTimeMs": 0
309
+ }
310
+ },
311
+ "software-has-tests": {
312
+ "results": [
313
+ {
314
+ "certainty": "certain",
315
+ "loc": [
316
+ -1,
317
+ -1,
318
+ -1,
319
+ -1
320
+ ],
321
+ "message": "No tests found in the project"
322
+ }
323
+ ],
324
+ ".meta": {
325
+ "testFilesFound": 0,
326
+ "testCallsFound": 0,
327
+ "searchTimeMs": 0,
328
+ "processTimeMs": 0
329
+ }
330
+ },
331
+ "no-leaked-credentials": {
332
+ "results": [],
333
+ ".meta": {
334
+ "totalChecked": 0,
335
+ "searchTimeMs": 0,
336
+ "processTimeMs": 0
337
+ }
273
338
  }
274
339
  },
275
340
  ".meta": {
276
- "timing": 2
341
+ "timing": 1
277
342
  }
278
343
  },
279
344
  ".meta": {
280
- "timing": 2
345
+ "timing": 1
281
346
  }
282
347
  }
283
348
  ```
@@ -311,8 +376,8 @@ It offers a wide variety of features, for example:
311
376
  <details><summary>Example: Slicing with flowR</summary>
312
377
 
313
378
 
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/Interface#using-the-repl) as well.
379
+ The simplest way to retrieve slices is with flowR's [Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=code-inspect.vscode-flowr).
380
+ However, you can slice using the [REPL](https://github.com/flowr-analysis/flowr/wiki/interface#using-the-repl) as well.
316
381
  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
382
  what is happening in the code.
318
383
 
@@ -342,7 +407,7 @@ It offers a wide variety of features, for example:
342
407
 
343
408
  ```shell
344
409
  $ docker run -it --rm eagleoutice/flowr # or npm run flowr
345
- flowR repl using flowR v2.10.7, R grammar v14 (tree-sitter engine)
410
+ flowR repl using flowR v2.10.9, R grammar v14 (tree-sitter engine)
346
411
  R> :query @static-slice (11@sum) file://test/testfiles/example.R
347
412
  ```
348
413
 
@@ -356,7 +421,7 @@ It offers a wide variety of features, for example:
356
421
  N <- 10
357
422
  for(i in 1:(N-1)) sum <- sum + i + w
358
423
  sum
359
- All queries together required ≈2 ms (1ms accuracy, total 2 ms)
424
+ All queries together required ≈1 ms (1ms accuracy, total 1 ms)
360
425
  ```
361
426
 
362
427
 
@@ -373,7 +438,7 @@ It offers a wide variety of features, for example:
373
438
 
374
439
  * 📚 **dependency analysis**\
375
440
  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/Query-API#dependencies-query), which shows you the library your project needs,
441
+ 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
442
  the data files it reads, the scripts it sources, and the data it outputs.
378
443
 
379
444
 
@@ -390,7 +455,7 @@ It offers a wide variety of features, for example:
390
455
 
391
456
 
392
457
  * 🚀 **fast call-graph, data-, and control-flow graphs**\
393
- Within just [<i><span title="This measurement is automatically fetched from the latest benchmark!">98.6 ms</span></i> (as of Jun 3, 2026)](https://flowr-analysis.github.io/flowr/wiki/stats/benchmark),
458
+ Within just [<i><span title="This measurement is automatically fetched from the latest benchmark!">101.7 ms</span></i> (as of Jun 15, 2026)](https://flowr-analysis.github.io/flowr/wiki/stats/benchmark),
394
459
  _flowR_ can analyze the data- and control-flow of the average real-world R&nbsp;script. See the [benchmarks](https://flowr-analysis.github.io/flowr/wiki/stats/benchmark) for more information,
395
460
  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
461
 
@@ -398,8 +463,8 @@ It offers a wide variety of features, for example:
398
463
  <details><summary>Example: Generating a dataflow graph with flowR</summary>
399
464
 
400
465
 
401
- You can investigate flowR's analyses using the [REPL](https://github.com/flowr-analysis/flowr/wiki/Interface#using-the-repl).
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, start with 'file://' to indicate a file (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.
466
+ You can investigate flowR's analyses using the [REPL](https://github.com/flowr-analysis/flowr/wiki/interface#using-the-repl).
467
+ 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
468
 
404
469
  Let's have a look at the following example:
405
470
 
@@ -426,7 +491,7 @@ It offers a wide variety of features, for example:
426
491
 
427
492
  ```shell
428
493
  $ docker run -it --rm eagleoutice/flowr # or npm run flowr
429
- flowR repl using flowR v2.10.7, R grammar v14 (tree-sitter engine)
494
+ flowR repl using flowR v2.10.9, R grammar v14 (tree-sitter engine)
430
495
  R> :dataflow* test/testfiles/example.R
431
496
  ```
432
497
 
@@ -588,6 +653,9 @@ It offers a wide variety of features, for example:
588
653
  40(["`#91;RSymbol#93; sum
589
654
  (40)
590
655
  *11.13-15*`"])
656
+ built-in:sum["`Built-In:
657
+ sum`"]
658
+ style built-in:sum stroke:gray,fill:gray,stroke-width:2px,opacity:.8;
591
659
  42{{"`#91;RString#93; #34;
592
660
  #34;
593
661
  (42)
@@ -719,22 +787,24 @@ It offers a wide variety of features, for example:
719
787
  linkStyle 74 stroke:gray;
720
788
  40 -->|"reads"| 0
721
789
  40 -->|"reads"| 23
790
+ 40 -.->|"reads"| built-in:sum
791
+ linkStyle 77 stroke:gray;
722
792
  44 -->|"argument"| 38
723
793
  44 -->|"reads, argument"| 40
724
794
  44 -->|"argument"| 42
725
795
  44 -.->|"reads, calls"| built-in:cat
726
- linkStyle 80 stroke:gray;
796
+ linkStyle 81 stroke:gray;
727
797
  48 -->|"reads"| 3
728
798
  48 -->|"reads"| 30
729
799
  52 -->|"argument"| 46
730
800
  52 -->|"reads, argument"| 48
731
801
  52 -->|"argument"| 50
732
802
  52 -.->|"reads, calls"| built-in:cat
733
- linkStyle 86 stroke:gray;
803
+ linkStyle 87 stroke:gray;
734
804
  ```
735
805
 
736
806
 
737
- (The analysis required _1.9 ms_ (including parse and normalize, using the [tree-sitter](https://github.com/flowr-analysis/flowr/wiki/Engines) engine) within the generation environment.)
807
+ (The analysis required _1.0 ms_ (including parse and normalize, using the [tree-sitter](https://github.com/flowr-analysis/flowr/wiki/Engines) engine) within the generation environment.)
738
808
 
739
809
 
740
810
 
@@ -752,7 +822,7 @@ If you want to use flowR and the features it provides, feel free to check out th
752
822
  - [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
823
  - [RStudio Addin](https://github.com/flowr-analysis/rstudio-addin-flowr): integrates flowR into [RStudio](https://posit.co/downloads/)
754
824
  - [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/Interface#communicating-with-the-server)
825
+ - [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
826
  - [NPM package](https://www.npmjs.com/package/@eagleoutice/flowr): include flowR in your TypeScript and JavaScript projects
757
827
 
758
828
 
@@ -229,7 +229,7 @@ class AbstractInterpretationVisitor extends semantic_cfg_guided_visitor_1.Semant
229
229
  }
230
230
  }
231
231
  onVariableDefinition({ vertex }) {
232
- if (this.currentState.get(vertex.id) === undefined) {
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 toJson(): unknown;
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
- toJson(): unknown;
50
+ toJSON(): unknown;
51
51
  toString(): string;
52
52
  isTop(): this is BoundedSetDomain<T, BoundedSetTop>;
53
53
  isBottom(): this is BoundedSetDomain<T, BoundedSetBottom>;
@@ -117,7 +117,7 @@ class BoundedSetDomain extends abstract_domain_1.AbstractDomain {
117
117
  }
118
118
  return logic_1.Ternary.Never;
119
119
  }
120
- toJson() {
120
+ toJSON() {
121
121
  if (this.value === lattice_1.Top) {
122
122
  return this.value.description;
123
123
  }
@@ -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
- toJson(): unknown;
63
+ toJSON(): unknown;
64
64
  toString(): string;
65
65
  isTop(): this is IntervalDomain<IntervalTop>;
66
66
  isBottom(): this is IntervalDomain<IntervalBottom>;
@@ -238,7 +238,7 @@ class IntervalDomain extends abstract_domain_1.AbstractDomain {
238
238
  return this.create([this.value[0], +Infinity]);
239
239
  }
240
240
  }
241
- toJson() {
241
+ toJSON() {
242
242
  if (this.value === lattice_1.Bottom) {
243
243
  return this.value.description;
244
244
  }
@@ -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
- toJson(): unknown;
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
- toJson(): unknown;
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
- toJson() {
144
- return record_1.Record.mapProperties(this.value, entry => entry?.toJson());
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
- toJson(): unknown;
97
+ toJSON(): unknown;
98
98
  toString(): string;
99
99
  isTop(): this is SetRangeDomain<T, SetRangeTop>;
100
100
  isBottom(): this is SetRangeDomain<T, SetRangeBottom>;
@@ -369,7 +369,7 @@ class SetRangeDomain extends abstract_domain_1.AbstractDomain {
369
369
  return this.create({ min: lower, range: lattice_1.Top });
370
370
  }
371
371
  }
372
- toJson() {
372
+ toJSON() {
373
373
  if (this.value === lattice_1.Bottom) {
374
374
  return this.value.description;
375
375
  }
@@ -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
- toJson(): unknown;
48
+ toJSON(): unknown;
49
49
  toString(): string;
50
50
  isTop(): this is SetUpperBoundDomain<T, SetUpperBoundTop>;
51
51
  isBottom(): this is SetUpperBoundDomain<T, SetUpperBoundBottom>;
@@ -167,7 +167,7 @@ class SetUpperBoundDomain extends abstract_domain_1.AbstractDomain {
167
167
  }
168
168
  }
169
169
  }
170
- toJson() {
170
+ toJSON() {
171
171
  if (this.value === lattice_1.Top || this.value === lattice_1.Bottom) {
172
172
  return this.value.description;
173
173
  }
@@ -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
- toJson(): unknown;
37
+ toJSON(): unknown;
38
38
  toString(): string;
39
39
  isTop(): this is SingletonDomain<T, SingletonTop>;
40
40
  isBottom(): this is SingletonDomain<T, SingletonBottom>;
@@ -98,7 +98,7 @@ class SingletonDomain extends abstract_domain_1.AbstractDomain {
98
98
  }
99
99
  return logic_1.Ternary.Never;
100
100
  }
101
- toJson() {
101
+ toJSON() {
102
102
  if (this.value === lattice_1.Top) {
103
103
  return lattice_1.Top.description;
104
104
  }
@@ -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
- toJson(): unknown;
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
- toJson() {
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.toJson()]));
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 a unsupported (environment-changing) function call (e.g. `eval`, `load`, `attach`, `rm`, ...)
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
  };