@eagleoutice/flowr 2.16.1 → 2.16.3

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 (459) hide show
  1. package/README.md +10 -10
  2. package/abstract-interpretation/data-frame/arguments.js +4 -3
  3. package/abstract-interpretation/data-frame/dataframe-semantics.js +1 -2
  4. package/abstract-interpretation/data-frame/semantics.d.ts +2 -2
  5. package/abstract-interpretation/data-frame/semantics.js +2 -6
  6. package/benchmark/slicer.js +1 -3
  7. package/benchmark/summarizer/first-phase/input.js +1 -12
  8. package/benchmark/summarizer/second-phase/process.d.ts +7 -0
  9. package/benchmark/summarizer/second-phase/process.js +15 -12
  10. package/cli/repl/commands/repl-cfg.js +18 -49
  11. package/cli/repl/commands/repl-clipboard.d.ts +2 -0
  12. package/cli/repl/commands/repl-clipboard.js +5 -0
  13. package/cli/repl/commands/repl-commands.js +2 -2
  14. package/cli/repl/commands/repl-dataflow.js +21 -55
  15. package/cli/repl/commands/repl-normalize.js +15 -28
  16. package/cli/repl/commands/repl-parse.js +2 -2
  17. package/cli/repl/commands/repl-query.js +10 -10
  18. package/cli/repl/commands/repl-signature.js +4 -4
  19. package/cli/repl/server/connection.d.ts +1 -0
  20. package/cli/repl/server/connection.js +8 -30
  21. package/cli/repl/server/messages/message-analysis.js +1 -1
  22. package/config.d.ts +6 -0
  23. package/config.js +7 -4
  24. package/control-flow/cfg-dead-code.js +5 -14
  25. package/control-flow/cfg-to-basic-blocks.js +1 -6
  26. package/control-flow/control-flow-graph.d.ts +2 -16
  27. package/control-flow/control-flow-graph.js +8 -66
  28. package/control-flow/diff-cfg.js +10 -23
  29. package/control-flow/semantic-cfg-guided-visitor.js +5 -11
  30. package/control-flow/simple-visitor.js +2 -2
  31. package/core/steps/pipeline/default-pipelines.d.ts +138 -138
  32. package/data/r-base-packages.generated.js +0 -1
  33. package/data/r-base-primitives.generated.js +0 -1
  34. package/data/r-s3-generics.generated.d.ts +5 -0
  35. package/data/r-s3-generics.generated.js +103 -0
  36. package/dataflow/cluster.js +2 -1
  37. package/dataflow/environments/append.d.ts +1 -0
  38. package/dataflow/environments/built-in-props.d.ts +15 -2
  39. package/dataflow/environments/built-in-props.js +31 -4
  40. package/dataflow/environments/built-in.js +15 -9
  41. package/dataflow/environments/clone.d.ts +1 -0
  42. package/dataflow/environments/clone.js +1 -0
  43. package/dataflow/environments/default-builtin-config.d.ts +385 -25
  44. package/dataflow/environments/default-builtin-config.js +186 -106
  45. package/dataflow/environments/define.d.ts +1 -0
  46. package/dataflow/environments/define.js +1 -0
  47. package/dataflow/environments/environment.d.ts +27 -0
  48. package/dataflow/environments/environment.js +37 -16
  49. package/dataflow/environments/frame-memory.d.ts +9 -1
  50. package/dataflow/environments/frame-memory.js +12 -1
  51. package/dataflow/environments/identifier.d.ts +1 -2
  52. package/dataflow/environments/identifier.js +5 -7
  53. package/dataflow/environments/overwrite.js +1 -0
  54. package/dataflow/environments/query-fn-props.d.ts +3 -0
  55. package/dataflow/environments/query-fn-props.js +7 -0
  56. package/dataflow/environments/resolve-by-name.js +11 -4
  57. package/dataflow/environments/scoping.d.ts +3 -0
  58. package/dataflow/environments/scoping.js +3 -0
  59. package/dataflow/eval/resolve/alias-tracking.js +3 -3
  60. package/dataflow/eval/resolve/resolve-argument.d.ts +7 -3
  61. package/dataflow/eval/resolve/resolve-argument.js +21 -12
  62. package/dataflow/eval/resolve/resolve-numbers.js +5 -2
  63. package/dataflow/eval/resolve/resolve-strings.d.ts +1 -1
  64. package/dataflow/eval/resolve/resolve-working-directory.js +2 -2
  65. package/dataflow/eval/resolve/resolve.js +1 -2
  66. package/dataflow/eval/values/intervals/interval-constants.js +1 -6
  67. package/dataflow/eval/values/r-value.js +1 -6
  68. package/dataflow/extractor.js +17 -17
  69. package/dataflow/fn/argument-roles.js +15 -15
  70. package/dataflow/fn/class-declaration.js +7 -7
  71. package/dataflow/fn/frame-reflection.d.ts +1 -23
  72. package/dataflow/fn/frame-reflection.js +8 -95
  73. package/dataflow/fn/function-props.d.ts +0 -3
  74. package/dataflow/fn/function-props.js +9 -11
  75. package/dataflow/fn/function-semantics.d.ts +1 -0
  76. package/dataflow/fn/strict-function.js +15 -14
  77. package/dataflow/graph/call-graph.d.ts +8 -0
  78. package/dataflow/graph/call-graph.js +40 -25
  79. package/dataflow/graph/dataflowgraph-builder.d.ts +0 -60
  80. package/dataflow/graph/dataflowgraph-builder.js +15 -135
  81. package/dataflow/graph/df-helper.d.ts +56 -4
  82. package/dataflow/graph/df-helper.js +116 -1
  83. package/dataflow/graph/diff-dataflow-graph.js +13 -15
  84. package/dataflow/graph/graph-helper.d.ts +20 -0
  85. package/dataflow/graph/graph-helper.js +18 -0
  86. package/dataflow/graph/graph.js +15 -8
  87. package/dataflow/graph/match-args.d.ts +1 -1
  88. package/dataflow/graph/match-args.js +3 -3
  89. package/dataflow/internal/linker.d.ts +4 -10
  90. package/dataflow/internal/linker.js +21 -29
  91. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +2 -8
  92. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +5 -2
  93. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +39 -22
  94. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -21
  95. package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +3 -7
  96. package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +6 -11
  97. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +6 -8
  98. package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +14 -13
  99. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +27 -13
  100. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +6 -8
  101. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +33 -35
  102. package/dataflow/internal/process/functions/call/built-in/built-in-get.js +3 -5
  103. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +6 -7
  104. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +12 -5
  105. package/dataflow/internal/process/functions/call/built-in/built-in-list.js +3 -4
  106. package/dataflow/internal/process/functions/call/built-in/built-in-load.js +7 -8
  107. package/dataflow/internal/process/functions/call/built-in/built-in-local.js +5 -6
  108. package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +3 -4
  109. package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +2 -3
  110. package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +14 -7
  111. package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +6 -5
  112. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -2
  113. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +5 -6
  114. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +4 -4
  115. package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +7 -7
  116. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +1 -2
  117. package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +2 -3
  118. package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +1 -1
  119. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +5 -7
  120. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +1 -1
  121. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +4 -5
  122. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +8 -9
  123. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +4 -5
  124. package/dataflow/internal/process/functions/call/built-in/built-in-with.js +3 -3
  125. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +36 -38
  126. package/dataflow/internal/process/functions/call/common.d.ts +3 -1
  127. package/dataflow/internal/process/functions/call/common.js +6 -7
  128. package/dataflow/internal/process/functions/call/deferred.js +8 -8
  129. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +11 -4
  130. package/dataflow/internal/process/functions/call/known-call-handling.js +11 -7
  131. package/dataflow/internal/process/functions/call/named-call-handling.js +64 -11
  132. package/dataflow/internal/process/functions/call/nse.js +4 -4
  133. package/dataflow/internal/process/functions/call/quoted.js +16 -14
  134. package/dataflow/internal/process/functions/call/unnamed-call-handling.js +2 -2
  135. package/dataflow/internal/process/functions/process-parameter.js +2 -2
  136. package/dataflow/internal/process/process-named-call.js +1 -1
  137. package/dataflow/origin/dfg-get-origin.js +2 -2
  138. package/dataflow/origin/dfg-get-symbol-refs.d.ts +1 -0
  139. package/dataflow/origin/dfg-get-symbol-refs.js +3 -8
  140. package/documentation/data/faq/wiki-faq-store.js +2 -2
  141. package/documentation/doc-capabilities.js +2 -1
  142. package/documentation/doc-util/doc-functions.js +2 -2
  143. package/documentation/doc-util/doc-repl.js +4 -4
  144. package/documentation/doc-util/doc-types.js +2 -2
  145. package/documentation/wiki-absint.js +2 -1
  146. package/documentation/wiki-cfg.js +2 -1
  147. package/documentation/wiki-create-linting-rules.js +1 -1
  148. package/documentation/wiki-dataflow-graph.js +6 -6
  149. package/documentation/wiki-interface.js +3 -2
  150. package/documentation/wiki-linter.js +54 -4
  151. package/documentation/wiki-mk/doc-maker.js +1 -2
  152. package/documentation/wiki-query.js +25 -0
  153. package/documentation/wiki-search.js +2 -1
  154. package/documentation/wiki-signature-database.js +0 -2
  155. package/linter/linter-executor.js +4 -0
  156. package/linter/linter-rules.d.ts +526 -4
  157. package/linter/linter-rules.js +39 -1
  158. package/linter/linter-tags.d.ts +6 -0
  159. package/linter/linter-tags.js +6 -0
  160. package/linter/rules/absolute-path.js +4 -3
  161. package/linter/rules/cmd-check/bogus-return.d.ts +29 -0
  162. package/linter/rules/cmd-check/bogus-return.js +63 -0
  163. package/linter/rules/cmd-check/call-arguments.d.ts +63 -0
  164. package/linter/rules/cmd-check/call-arguments.js +211 -0
  165. package/linter/rules/cmd-check/class-string-comparison.d.ts +48 -0
  166. package/linter/rules/cmd-check/class-string-comparison.js +135 -0
  167. package/linter/rules/cmd-check/cmd-check-util.d.ts +67 -0
  168. package/linter/rules/cmd-check/cmd-check-util.js +169 -0
  169. package/linter/rules/cmd-check/compiled-code.d.ts +86 -0
  170. package/linter/rules/cmd-check/compiled-code.js +350 -0
  171. package/linter/rules/cmd-check/conformance.d.ts +47 -0
  172. package/linter/rules/cmd-check/conformance.js +166 -0
  173. package/linter/rules/cmd-check/dependency-declaration.d.ts +95 -0
  174. package/linter/rules/cmd-check/dependency-declaration.js +299 -0
  175. package/linter/rules/cmd-check/description-metadata.d.ts +63 -0
  176. package/linter/rules/cmd-check/description-metadata.js +393 -0
  177. package/linter/rules/cmd-check/documentation-mismatch.d.ts +54 -0
  178. package/linter/rules/cmd-check/documentation-mismatch.js +407 -0
  179. package/linter/rules/cmd-check/file-checks.d.ts +29 -0
  180. package/linter/rules/cmd-check/file-checks.js +34 -0
  181. package/linter/rules/cmd-check/foreign-function-calls.d.ts +54 -0
  182. package/linter/rules/cmd-check/foreign-function-calls.js +115 -0
  183. package/linter/rules/cmd-check/global-environment-modification.d.ts +61 -0
  184. package/linter/rules/cmd-check/global-environment-modification.js +237 -0
  185. package/linter/rules/cmd-check/namespace-tampering.d.ts +52 -0
  186. package/linter/rules/cmd-check/namespace-tampering.js +162 -0
  187. package/linter/rules/cmd-check/non-ascii-code.d.ts +51 -0
  188. package/linter/rules/cmd-check/non-ascii-code.js +112 -0
  189. package/linter/rules/cmd-check/package-code.d.ts +30 -0
  190. package/linter/rules/cmd-check/package-code.js +141 -0
  191. package/linter/rules/cmd-check/package-data.d.ts +49 -0
  192. package/linter/rules/cmd-check/package-data.js +181 -0
  193. package/linter/rules/cmd-check/package-files.d.ts +41 -0
  194. package/linter/rules/cmd-check/package-files.js +157 -0
  195. package/linter/rules/cmd-check/package-hooks.d.ts +57 -0
  196. package/linter/rules/cmd-check/package-hooks.js +165 -0
  197. package/linter/rules/cmd-check/package-metafiles.d.ts +49 -0
  198. package/linter/rules/cmd-check/package-metafiles.js +292 -0
  199. package/linter/rules/cmd-check/package-runtime.d.ts +67 -0
  200. package/linter/rules/cmd-check/package-runtime.js +284 -0
  201. package/linter/rules/cmd-check/package-structure.d.ts +85 -0
  202. package/linter/rules/cmd-check/package-structure.js +320 -0
  203. package/linter/rules/cmd-check/rd-files.d.ts +67 -0
  204. package/linter/rules/cmd-check/rd-files.js +621 -0
  205. package/linter/rules/cmd-check/s-three-method-consistency.d.ts +72 -0
  206. package/linter/rules/cmd-check/s-three-method-consistency.js +206 -0
  207. package/linter/rules/cmd-check/true-false-abbreviation.d.ts +45 -0
  208. package/linter/rules/cmd-check/true-false-abbreviation.js +121 -0
  209. package/linter/rules/deprecated-functions.js +4 -4
  210. package/linter/rules/function-finder-util.d.ts +1 -1
  211. package/linter/rules/function-finder-util.js +1 -3
  212. package/linter/rules/naming-convention.d.ts +1 -1
  213. package/linter/rules/naming-convention.js +13 -14
  214. package/linter/rules/network-functions.d.ts +4 -3
  215. package/linter/rules/network-functions.js +14 -12
  216. package/linter/rules/no-leaked-credentials.d.ts +8 -3
  217. package/linter/rules/no-leaked-credentials.js +134 -36
  218. package/linter/rules/problematic-inputs.d.ts +1 -1
  219. package/linter/rules/problematic-inputs.js +21 -14
  220. package/linter/rules/seeded-randomness.js +5 -5
  221. package/linter/rules/software-has-license.d.ts +1 -1
  222. package/linter/rules/software-has-license.js +1 -1
  223. package/linter/rules/unclosed-connection.js +3 -3
  224. package/linter/rules/undefined-symbol-util.js +16 -32
  225. package/linter/rules/undefined-symbol.d.ts +2 -0
  226. package/linter/rules/undefined-symbol.js +33 -3
  227. package/linter/rules/unescaped-arguments.d.ts +13 -2
  228. package/linter/rules/unescaped-arguments.js +104 -15
  229. package/linter/rules/unused-definition.js +13 -19
  230. package/package.json +1 -1
  231. package/project/cache/flowr-analyzer-cache.js +1 -1
  232. package/project/context/flowr-analyzer-context.js +1 -1
  233. package/project/context/flowr-analyzer-environment-context.d.ts +1 -1
  234. package/project/context/flowr-analyzer-files-context.d.ts +6 -0
  235. package/project/context/flowr-analyzer-files-context.js +3 -0
  236. package/project/context/flowr-analyzer-incremental-analysis-context.d.ts +0 -2
  237. package/project/context/flowr-analyzer-incremental-analysis-context.js +0 -4
  238. package/project/context/flowr-file.d.ts +4 -0
  239. package/project/context/flowr-file.js +4 -0
  240. package/project/flowr-analyzer-builder.js +1 -1
  241. package/project/plugins/file-plugins/files/flowr-description-file.js +2 -2
  242. package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +2 -0
  243. package/project/plugins/file-plugins/files/flowr-jupyter-file.js +4 -0
  244. package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +2 -0
  245. package/project/plugins/file-plugins/files/flowr-manifest-files.js +11 -14
  246. package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +3 -0
  247. package/project/plugins/file-plugins/files/flowr-namespace-file.js +25 -15
  248. package/project/plugins/file-plugins/files/flowr-rd-file.d.ts +44 -0
  249. package/project/plugins/file-plugins/files/flowr-rd-file.js +130 -61
  250. package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +0 -1
  251. package/project/plugins/file-plugins/files/flowr-rda-file.js +4 -16
  252. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -0
  253. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +4 -0
  254. package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +2 -0
  255. package/project/plugins/file-plugins/files/flowr-sweave-file.js +4 -0
  256. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.d.ts +0 -1
  257. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.js +1 -5
  258. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +2 -0
  259. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +2 -0
  260. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-session-info-plugin.js +3 -7
  261. package/project/sigdb/build.js +16 -30
  262. package/project/sigdb/dict.d.ts +4 -6
  263. package/project/sigdb/dict.js +125 -31
  264. package/project/sigdb/reader.js +2 -18
  265. package/project/sigdb/sigdb-download.js +14 -23
  266. package/queries/base-query-format.d.ts +2 -0
  267. package/queries/base-query-format.js +10 -2
  268. package/queries/catalog/absint-query/absint-query-format.d.ts +1 -1
  269. package/queries/catalog/absint-query/absint-query-format.js +5 -7
  270. package/queries/catalog/call-context-query/call-context-query-executor.js +26 -33
  271. package/queries/catalog/call-context-query/call-context-query-format.d.ts +1 -1
  272. package/queries/catalog/call-context-query/call-context-query-format.js +1 -3
  273. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +2 -4
  274. package/queries/catalog/call-context-query/identify-link-to-nested-call-relation.js +1 -4
  275. package/queries/catalog/call-graph-query/call-graph-query-format.js +2 -3
  276. package/queries/catalog/config-query/config-query-format.js +3 -3
  277. package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.js +2 -3
  278. package/queries/catalog/dataflow-query/dataflow-query-format.js +2 -3
  279. package/queries/catalog/dependencies-query/data-flow.d.ts +43 -0
  280. package/queries/catalog/dependencies-query/data-flow.js +173 -0
  281. package/queries/catalog/dependencies-query/dependencies-query-executor.d.ts +18 -0
  282. package/queries/catalog/dependencies-query/dependencies-query-executor.js +108 -12
  283. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +17 -1
  284. package/queries/catalog/dependencies-query/dependencies-query-format.js +14 -11
  285. package/queries/catalog/dependencies-query/function-info/derived-functions.js +2 -1
  286. package/queries/catalog/dependencies-query/function-info/function-info.d.ts +2 -0
  287. package/queries/catalog/dependencies-query/function-info/library-functions.js +13 -13
  288. package/queries/catalog/dependencies-query/function-info/read-functions.js +1 -1
  289. package/queries/catalog/dependencies-query/function-info/remote-functions.js +3 -3
  290. package/queries/catalog/dependencies-query/function-info/source-functions.js +2 -2
  291. package/queries/catalog/dependencies-query/function-info/test-functions.js +8 -8
  292. package/queries/catalog/dependencies-query/function-info/transform-functions.d.ts +8 -0
  293. package/queries/catalog/dependencies-query/function-info/transform-functions.js +17 -0
  294. package/queries/catalog/dependencies-query/function-info/write-functions.js +4 -0
  295. package/queries/catalog/dependencies-query/implicit-echo.d.ts +5 -3
  296. package/queries/catalog/dependencies-query/implicit-echo.js +33 -34
  297. package/queries/catalog/dependencies-query/link-devices.d.ts +3 -2
  298. package/queries/catalog/dependencies-query/link-devices.js +9 -6
  299. package/queries/catalog/dependencies-query/plot-description.d.ts +10 -0
  300. package/queries/catalog/dependencies-query/plot-description.js +119 -0
  301. package/queries/catalog/dependencies-query/plot-objects.d.ts +13 -0
  302. package/queries/catalog/dependencies-query/plot-objects.js +61 -0
  303. package/queries/catalog/dice-query/dice-query-format.d.ts +2 -2
  304. package/queries/catalog/dice-query/dice-query-format.js +3 -40
  305. package/queries/catalog/does-call-query/does-call-query-format.d.ts +1 -1
  306. package/queries/catalog/does-call-query/does-call-query-format.js +2 -2
  307. package/queries/catalog/function-info-query/function-info-query-format.js +2 -2
  308. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +2 -1
  309. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +2 -2
  310. package/queries/catalog/happens-before-query/happens-before-query-format.js +2 -2
  311. package/queries/catalog/id-map-query/id-map-query-format.js +1 -3
  312. package/queries/catalog/input-sources-query/input-source-functions.d.ts +6 -4
  313. package/queries/catalog/input-sources-query/input-source-functions.js +11 -6
  314. package/queries/catalog/input-sources-query/input-sources-query-executor.js +3 -3
  315. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +1 -1
  316. package/queries/catalog/input-sources-query/input-sources-query-format.js +11 -5
  317. package/queries/catalog/input-sources-query/simple-input-classifier.d.ts +12 -4
  318. package/queries/catalog/input-sources-query/simple-input-classifier.js +237 -40
  319. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +4 -7
  320. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +1 -1
  321. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +3 -2
  322. package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.js +2 -2
  323. package/queries/catalog/linter-query/linter-query-executor.js +10 -3
  324. package/queries/catalog/linter-query/linter-query-format.d.ts +4 -1
  325. package/queries/catalog/linter-query/linter-query-format.js +32 -21
  326. package/queries/catalog/location-map-query/location-map-query-format.d.ts +1 -1
  327. package/queries/catalog/location-map-query/location-map-query-format.js +1 -3
  328. package/queries/catalog/normalized-ast-query/normalized-ast-query-format.js +2 -3
  329. package/queries/catalog/origin-query/origin-query-executor.d.ts +1 -1
  330. package/queries/catalog/origin-query/origin-query-executor.js +3 -3
  331. package/queries/catalog/origin-query/origin-query-format.d.ts +1 -1
  332. package/queries/catalog/origin-query/origin-query-format.js +4 -5
  333. package/queries/catalog/project-query/project-query-format.js +2 -2
  334. package/queries/catalog/provenance-query/provenance-query-format.js +2 -3
  335. package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +1 -1
  336. package/queries/catalog/resolve-value-query/resolve-value-query-format.js +4 -4
  337. package/queries/catalog/search-query/search-query-format.js +1 -3
  338. package/queries/catalog/signature-query/signature-query-executor.js +3 -3
  339. package/queries/catalog/signature-query/signature-query-format.js +2 -2
  340. package/queries/catalog/slice-query-options.d.ts +16 -0
  341. package/queries/catalog/slice-query-options.js +28 -0
  342. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -2
  343. package/queries/catalog/static-slice-query/static-slice-query-format.js +3 -42
  344. package/queries/query-print.d.ts +4 -0
  345. package/queries/query-print.js +17 -1
  346. package/queries/query.d.ts +3 -3
  347. package/queries/query.js +3 -4
  348. package/r-bridge/lang-4.x/ast/model/model.d.ts +27 -3
  349. package/r-bridge/lang-4.x/ast/model/model.js +28 -1
  350. package/r-bridge/lang-4.x/ast/model/nodes/info/r-delimiter.d.ts +1 -0
  351. package/r-bridge/lang-4.x/ast/model/nodes/info/r-delimiter.js +1 -0
  352. package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +2 -0
  353. package/r-bridge/lang-4.x/ast/model/nodes/r-access.js +1 -0
  354. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +20 -1
  355. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +25 -1
  356. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +2 -0
  357. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.js +1 -0
  358. package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +2 -0
  359. package/r-bridge/lang-4.x/ast/model/nodes/r-break.js +1 -0
  360. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +2 -0
  361. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.js +1 -0
  362. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +2 -0
  363. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.js +1 -0
  364. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +2 -0
  365. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.js +1 -0
  366. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +18 -2
  367. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +15 -6
  368. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +2 -0
  369. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.js +1 -0
  370. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +2 -0
  371. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.js +1 -0
  372. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +2 -0
  373. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.js +1 -0
  374. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +2 -0
  375. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.js +1 -0
  376. package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +2 -0
  377. package/r-bridge/lang-4.x/ast/model/nodes/r-next.js +1 -0
  378. package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +2 -0
  379. package/r-bridge/lang-4.x/ast/model/nodes/r-number.js +1 -0
  380. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +2 -0
  381. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.js +1 -0
  382. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +2 -0
  383. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.js +1 -0
  384. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +2 -0
  385. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.js +1 -0
  386. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +17 -0
  387. package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +20 -0
  388. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +2 -0
  389. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.js +1 -0
  390. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +2 -0
  391. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.js +1 -0
  392. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +2 -0
  393. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.js +1 -0
  394. package/r-bridge/lang-4.x/ast/model/operators.js +0 -2
  395. package/r-bridge/lang-4.x/ast/model/processing/decorate.js +1 -6
  396. package/r-bridge/lang-4.x/ast/model/processing/fold.js +1 -6
  397. package/r-bridge/lang-4.x/ast/model/processing/node-id.js +4 -3
  398. package/r-bridge/lang-4.x/ast/parser/json/format.js +2 -2
  399. package/r-bridge/lang-4.x/ast/parser/main/internal/control/normalize-if-then.js +1 -5
  400. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.js +2 -2
  401. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.js +4 -20
  402. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.js +1 -5
  403. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.js +1 -5
  404. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.js +1 -5
  405. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-while.js +2 -9
  406. package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.js +1 -5
  407. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +2 -10
  408. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +2 -11
  409. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-expressions.js +3 -11
  410. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -5
  411. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -5
  412. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.js +1 -5
  413. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.d.ts +6 -1
  414. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.js +7 -0
  415. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.d.ts +0 -10
  416. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +30 -82
  417. package/r-bridge/retriever.d.ts +0 -4
  418. package/r-bridge/retriever.js +0 -13
  419. package/r-bridge/roxygen2/documentation-provider.js +3 -7
  420. package/r-bridge/shell.js +3 -8
  421. package/reconstruct/auto-select/magic-comments.js +8 -7
  422. package/reconstruct/inline/source-inline-map.d.ts +3 -0
  423. package/reconstruct/inline/source-inline-map.js +8 -7
  424. package/reconstruct/reconstruct.d.ts +1 -1
  425. package/reconstruct/reconstruct.js +33 -109
  426. package/search/flowr-search-printer.js +4 -15
  427. package/search/search-executor/search-enrichers.js +5 -3
  428. package/search/search-executor/search-generators.js +1 -1
  429. package/slicing/criterion/filters/all-variables.js +1 -2
  430. package/slicing/static/fingerprint.js +11 -2
  431. package/slicing/static/slice-call.d.ts +2 -8
  432. package/slicing/static/slice-call.js +8 -18
  433. package/slicing/static/static-slicer.js +81 -6
  434. package/util/collections/arrays.js +1 -1
  435. package/util/collections/set.js +1 -1
  436. package/util/diff-graph.d.ts +4 -0
  437. package/util/diff-graph.js +12 -0
  438. package/util/files.js +2 -6
  439. package/util/json.js +1 -15
  440. package/util/mermaid/cfg.js +10 -17
  441. package/util/mermaid/dfg.js +6 -8
  442. package/util/objects.d.ts +1 -1
  443. package/util/quads.js +4 -13
  444. package/util/r-author.js +5 -5
  445. package/util/range.d.ts +9 -0
  446. package/util/range.js +11 -0
  447. package/util/schema.js +3 -3
  448. package/util/simple-df/dfg-view.js +2 -1
  449. package/util/text/ansi.js +1 -2
  450. package/util/text/playground-link.js +2 -1
  451. package/util/text/r-highlight.js +2 -1
  452. package/util/text/strings.d.ts +2 -0
  453. package/util/text/strings.js +5 -0
  454. package/util/text/time.js +1 -2
  455. package/util/version.js +4 -3
  456. package/dataflow/fn/recursive-function.d.ts +0 -6
  457. package/dataflow/fn/recursive-function.js +0 -32
  458. package/dataflow/internal/process/functions/call/argument/unpack-argument.d.ts +0 -16
  459. package/dataflow/internal/process/functions/call/argument/unpack-argument.js +0 -27
@@ -29,6 +29,7 @@ const r_function_definition_1 = require("../../r-bridge/lang-4.x/ast/model/nodes
29
29
  const r_parameter_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-parameter");
30
30
  const assert_1 = require("../../util/assert");
31
31
  const defaultmap_1 = require("../../util/collections/defaultmap");
32
+ const df_helper_1 = require("../graph/df-helper");
32
33
  /**
33
34
  * What an argument is used for when the call never evaluates it: quoted or read in another frame
34
35
  * ({@link ArgProp.Nse}), or looked at only for having been supplied ({@link ArgProp.Presence}).
@@ -57,7 +58,7 @@ function isDispatch(vertex) {
57
58
  }
58
59
  /** Whether the call belongs to one of the given processors. */
59
60
  function hasProcessor(vertex, of) {
60
- return vertex.origin !== 'unnamed' && of.some(p => vertex.origin.includes(p));
61
+ return vertex.origin !== 'unnamed' && of.some(p => vertex_1.DfgVertex.hasOrigin(vertex, p));
61
62
  }
62
63
  /** The definition a node sits in. */
63
64
  function enclosingDefinition(id, idMap, graph) {
@@ -83,7 +84,7 @@ function dispatchingDefinitions(graph) {
83
84
  dispatch.set(within, {
84
85
  named: (r_function_call_1.RFunctionCall.is(node) && node.arguments.length > 1) || (known?.named ?? false),
85
86
  certain: conditionsBeyond(vertex.cds, graph.getVertex(within)?.cds).length === 0 || (known?.certain ?? false),
86
- next: [...known?.next ?? [], ...(0, frame_reflection_1.calledDefinitions)(graph, id).filter(t => t !== within)]
87
+ next: [...known?.next ?? [], ...df_helper_1.Dataflow.calleeIdsOf(graph, id).filter(t => t !== within)]
87
88
  });
88
89
  }
89
90
  return dispatch;
@@ -102,7 +103,7 @@ function branchOutcomes(graph, ctx) {
102
103
  return outcomes.size === 1 ? [...outcomes][0] : undefined;
103
104
  });
104
105
  }
105
- function makeState(graph, ctx) {
106
+ function strictnessStateOf(graph, ctx) {
106
107
  const owner = new Map();
107
108
  for (const [id, vertex] of graph.verticesOfType(vertex_1.VertexType.FunctionDefinition)) {
108
109
  for (const param of Object.keys(vertex.params)) {
@@ -146,8 +147,8 @@ function conditionsBeyond(cds, definition) {
146
147
  */
147
148
  function isBuiltInCall(vertex) {
148
149
  return vertex.origin !== 'unnamed'
149
- && !vertex.origin.includes(built_in_proc_name_1.BuiltInProcName.Function)
150
- && !vertex.origin.includes(built_in_proc_name_1.BuiltInProcName.Unnamed);
150
+ && !vertex_1.DfgVertex.hasOrigin(vertex, built_in_proc_name_1.BuiltInProcName.Function)
151
+ && !vertex_1.DfgVertex.hasOrigin(vertex, built_in_proc_name_1.BuiltInProcName.Unnamed);
151
152
  }
152
153
  /** The node whose value an argument stands for, carrying the link to the parameter it binds to. */
153
154
  function argumentValue(id, idMap) {
@@ -204,8 +205,8 @@ function parameterAt(definition, index, idMap, graph) {
204
205
  /** The parameters an argument of `call` binds to, by position in each definition an unlinked call may reach, `undefined` if unknown. */
205
206
  function boundParameters(call, argument, idMap, graph, origins) {
206
207
  const sources = new Set([argument, argumentValue(argument, idMap)]);
207
- const linked = [...sources].flatMap(from => (0, frame_reflection_1.edgeTargets)(graph, from, edge_1.EdgeType.DefinesOnCall));
208
- if (linked.length > 0 || (0, frame_reflection_1.calledDefinitions)(graph, call.id).length > 0) {
208
+ const linked = [...sources].flatMap(from => df_helper_1.Dataflow.targetsOf(graph, from, edge_1.EdgeType.DefinesOnCall));
209
+ if (linked.length > 0 || df_helper_1.Dataflow.calleeIdsOf(graph, call.id).length > 0) {
209
210
  return linked;
210
211
  }
211
212
  const index = argumentIndex(call, argument, idMap);
@@ -285,7 +286,7 @@ function forces(read, definition, state) {
285
286
  function strictnessOfParameter(param, definition, state) {
286
287
  const reads = [];
287
288
  const branches = [];
288
- for (const read of (0, frame_reflection_1.edgeSources)(state.graph, param, edge_1.EdgeType.Reads)) {
289
+ for (const read of df_helper_1.Dataflow.sourcesOf(state.graph, param, edge_1.EdgeType.Reads)) {
289
290
  /* a `NextMethod` hands the parameter on unforced, the methods it reaches decide below */
290
291
  if (!vertex_1.DfgVertex.hasOrigin(state.graph.getVertex(read), built_in_proc_name_1.BuiltInProcName.S3DispatchNext)) {
291
292
  const { value, onlyUnder = [] } = forces(read, definition, state);
@@ -299,7 +300,7 @@ function strictnessOfParameter(param, definition, state) {
299
300
  const dispatch = state.dispatch.get(definition.id);
300
301
  if (dispatch !== undefined) {
301
302
  const surely = (values) => dispatch.certain ? agree(values) : weaken(agree(values));
302
- const methods = (0, frame_reflection_1.edgeTargets)(state.graph, param, edge_1.EdgeType.DefinesOnCall).map(target => handedTo(target, state));
303
+ const methods = df_helper_1.Dataflow.targetsOf(state.graph, param, edge_1.EdgeType.DefinesOnCall).map(target => handedTo(target, state));
303
304
  reads.push(surely(methods));
304
305
  if (dispatch.next.length > 0) {
305
306
  const at = parameterIds(definition.id, state.idMap).indexOf(param);
@@ -420,7 +421,7 @@ function computeStrictness(id, vertex, params, state) {
420
421
  * @useInstead {@link FunctionSemantics.strictness}
421
422
  */
422
423
  function strictnessOfEach(ids, graph, { ctx } = {}) {
423
- const state = makeState(graph, ctx);
424
+ const state = strictnessStateOf(graph, ctx);
424
425
  const result = {};
425
426
  for (const id of ids) {
426
427
  result[id] = strictnessOf(id, state);
@@ -436,15 +437,15 @@ function forcingPointsOf(params, graph, idMap, seen = new Set()) {
436
437
  }
437
438
  seen.add(param);
438
439
  const owner = idMap.get(idMap.get(param)?.info.parent ?? -1)?.info.parent;
439
- for (const read of (0, frame_reflection_1.edgeSources)(graph, param, edge_1.EdgeType.Reads)) {
440
+ for (const read of df_helper_1.Dataflow.sourcesOf(graph, param, edge_1.EdgeType.Reads)) {
440
441
  found.push(read);
441
442
  let closure = model_1.RNode.findEnclosing(read, idMap, r_function_definition_1.RFunctionDefinition.is);
442
443
  while (closure !== undefined && closure !== owner) {
443
- found.push(...(0, frame_reflection_1.edgeSources)(graph, closure, edge_1.EdgeType.Calls));
444
+ found.push(...df_helper_1.Dataflow.sourcesOf(graph, closure, edge_1.EdgeType.Calls));
444
445
  closure = model_1.RNode.strictlyEnclosingFunction(closure, idMap);
445
446
  }
446
447
  /* a read that is an argument hands the promise on */
447
- for (const holder of (0, frame_reflection_1.edgeSources)(graph, read, edge_1.EdgeType.Argument)) {
448
+ for (const holder of df_helper_1.Dataflow.sourcesOf(graph, read, edge_1.EdgeType.Argument)) {
448
449
  const call = graph.getVertex(holder);
449
450
  if (vertex_1.DfgVertex.isFunctionCall(call) && !isBuiltInCall(call)) {
450
451
  const bound = boundParameters(call, read, idMap, graph) ?? [];
@@ -492,7 +493,7 @@ function promiseForcing(graph, { ctx } = {}) {
492
493
  if (idMap === undefined) {
493
494
  return logic_1.Ternary.Maybe;
494
495
  }
495
- state ??= makeState(graph, ctx);
496
+ state ??= strictnessStateOf(graph, ctx);
496
497
  if (state.owner.has(holder)) {
497
498
  return handedTo(holder, state);
498
499
  }
@@ -29,6 +29,12 @@ export declare const CallGraph: {
29
29
  readonly name: "CallGraph";
30
30
  /** Extracts the sub call graph from the given call graph, starting from the given entry points. */
31
31
  readonly computeSubCallGraph: (this: void, graph: CallGraph, entryPoints: Set<NodeId>) => CallGraph;
32
+ /**
33
+ * Whether the function definition with the given id (transitively) calls itself; `false` for ids that are no function definition.
34
+ * @param id - The id of the function definition
35
+ * @param graph - The call graph to follow
36
+ */
37
+ readonly isRecursive: (this: void, id: NodeId, graph: CallGraph) => boolean;
32
38
  /** The calls the program makes on its own: those outside of any function definition. */
33
39
  readonly entryPoints: (this: void, graph: CallGraph) => Set<NodeId>;
34
40
  /**
@@ -60,6 +66,8 @@ export declare const CallGraph: {
60
66
  };
61
67
  };
62
68
  readonly diff: {
69
+ readonly vertexCount: <Graph>(this: void, ctx: import("../../util/diff-graph").GraphDiffContext<Graph>, left: number, right: number) => void;
70
+ readonly missingVertex: <Graph>(this: void, ctx: import("../../util/diff-graph").GraphDiffContext<Graph>, id: NodeId) => void;
63
71
  readonly outgoingEdges: <EdgeMap, Graph extends import("../../util/diff-graph").EdgeIndexedGraph<EdgeMap>>(this: void, ctx: import("../../util/diff-graph").GraphDiffContext<Graph>, diffEdges: (ctx: import("../../util/diff-graph").GraphDiffContext<Graph>, id: NodeId, lEdges: EdgeMap | undefined, rEdges: EdgeMap | undefined) => void, project?: (edges: EdgeMap) => EdgeMap | undefined) => void;
64
72
  readonly edges: <Edge, Graph>(this: void, ctx: import("../../util/diff-graph").GraphDiffContext<Graph>, id: NodeId, lEdges: ReadonlyMap<NodeId, Edge> | undefined, rEdges: ReadonlyMap<NodeId, Edge> | undefined, diffEdge: (edge: Edge, otherEdge: Edge, ctx: import("../../util/diff-graph").GraphDiffContext<Graph>, id: NodeId, target: NodeId) => void) => void;
65
73
  };
@@ -5,7 +5,6 @@ exports.fallbackUntargetedCall = fallbackUntargetedCall;
5
5
  const graph_1 = require("./graph");
6
6
  const vertex_1 = require("./vertex");
7
7
  const node_id_1 = require("../../r-bridge/lang-4.x/ast/model/processing/node-id");
8
- const linker_1 = require("../internal/linker");
9
8
  const edge_1 = require("./edge");
10
9
  const built_in_proc_name_1 = require("../environments/built-in-proc-name");
11
10
  const defaultmap_1 = require("../../util/collections/defaultmap");
@@ -15,6 +14,7 @@ const r_binary_op_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-binary-
15
14
  const model_1 = require("../../r-bridge/lang-4.x/ast/model/model");
16
15
  const identifier_1 = require("../environments/identifier");
17
16
  const r_argument_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-argument");
17
+ const df_helper_1 = require("./df-helper");
18
18
  function processCds(vtx, graph, result, state) {
19
19
  for (const tar of vtx.cds ?? []) {
20
20
  const targetVtx = graph.getVertex(tar.id);
@@ -74,7 +74,7 @@ function processCall(vtx, from, graph, result, state) {
74
74
  processCds(vtx, graph, result, state);
75
75
  let addedTarget = false;
76
76
  let addedBiTarget = false;
77
- for (const tar of (0, linker_1.getAllFunctionCallTargets)(vid, graph, vtx.environment)) {
77
+ for (const tar of df_helper_1.Dataflow.callTargetsOf(vid, graph, vtx.environment)) {
78
78
  const targetVtx = graph.getVertex(tar);
79
79
  if (node_id_1.NodeId.isBuiltIn(tar)) {
80
80
  result.addEdge(vid, tar, edge_1.EdgeType.Calls);
@@ -169,11 +169,7 @@ function followCalls(graph, seeds, reached) {
169
169
  continue;
170
170
  }
171
171
  reached.add(current);
172
- for (const [target, edge] of graph.edgesFrom(current)) {
173
- if (edge_1.DfEdge.includesType(edge, edge_1.EdgeType.Calls)) {
174
- toVisit.push(target);
175
- }
176
- }
172
+ toVisit.push(...df_helper_1.Dataflow.targetsOf(graph, current, edge_1.EdgeType.Calls));
177
173
  }
178
174
  }
179
175
  /** Whether `name` is a `<generic>.<class>` of a generic that is called, as `print.foo` is when `print` is. */
@@ -207,8 +203,8 @@ function mayRunAnyway(graph, reached) {
207
203
  }
208
204
  const seeds = [];
209
205
  let generics;
210
- for (const [id, vertex] of graph.vertices(true)) {
211
- if (!vertex_1.DfgVertex.isFunctionDefinition(vertex) || reached.has(id)) {
206
+ for (const [id] of graph.verticesOfType(vertex_1.VertexType.FunctionDefinition)) {
207
+ if (reached.has(id)) {
212
208
  continue;
213
209
  }
214
210
  const node = idMap.get(id);
@@ -240,27 +236,46 @@ exports.CallGraph = {
240
236
  /** Extracts the sub call graph from the given call graph, starting from the given entry points. */
241
237
  computeSubCallGraph(graph, entryPoints) {
242
238
  const result = new graph_1.DataflowGraph(graph.idMap);
243
- const toVisit = Array.from(entryPoints);
244
- const visited = new Set();
239
+ const reached = new Set();
240
+ followCalls(graph, entryPoints, reached);
241
+ for (const id of reached) {
242
+ const vtx = graph.getVertex(id);
243
+ if (!vtx) {
244
+ continue;
245
+ }
246
+ result.addVertex(vtx, undefined, true);
247
+ for (const tar of df_helper_1.Dataflow.targetsOf(graph, id, edge_1.EdgeType.Calls)) {
248
+ result.addEdge(id, tar, edge_1.EdgeType.Calls);
249
+ }
250
+ }
251
+ return result;
252
+ },
253
+ /**
254
+ * Whether the function definition with the given id (transitively) calls itself; `false` for ids that are no function definition.
255
+ * @param id - The id of the function definition
256
+ * @param graph - The call graph to follow
257
+ */
258
+ isRecursive(id, graph) {
259
+ if (!vertex_1.DfgVertex.isFunctionDefinition(graph.getVertex(id))) {
260
+ return false;
261
+ }
262
+ const seen = new Set();
263
+ const toVisit = [id];
264
+ let gotStart = 0;
245
265
  while (toVisit.length > 0) {
246
266
  const currentId = toVisit.pop();
247
- if (visited.has(currentId)) {
248
- continue;
267
+ if (currentId === id && gotStart++ > 0) {
268
+ return true;
249
269
  }
250
- visited.add(currentId);
251
- const currentVtx = graph.getVertex(currentId);
252
- if (!currentVtx) {
270
+ if (seen.has(currentId)) {
253
271
  continue;
254
272
  }
255
- result.addVertex(currentVtx, undefined, true);
256
- for (const [tar, e] of graph.edgesFrom(currentId)) {
257
- if (edge_1.DfEdge.includesType(e, edge_1.EdgeType.Calls)) {
258
- result.addEdge(currentId, tar, edge_1.EdgeType.Calls);
259
- toVisit.push(tar);
260
- }
273
+ seen.add(currentId);
274
+ for (const nextId of graph.edgesFrom(currentId).keys()) {
275
+ toVisit.push(nextId);
261
276
  }
262
277
  }
263
- return result;
278
+ return false;
264
279
  },
265
280
  /** The calls the program makes on its own: those outside of any function definition. */
266
281
  entryPoints(graph) {
@@ -269,8 +284,8 @@ exports.CallGraph = {
269
284
  if (idMap === undefined) {
270
285
  return entries;
271
286
  }
272
- for (const [id, vertex] of graph.vertices(true)) {
273
- const node = vertex_1.DfgVertex.isFunctionCall(vertex) ? idMap.get(id) : undefined;
287
+ for (const [id] of graph.verticesOfType(vertex_1.VertexType.FunctionCall)) {
288
+ const node = idMap.get(id);
274
289
  if (node !== undefined && r_function_definition_1.RFunctionDefinition.wrappingFunctionDefinition(node, idMap) === undefined) {
275
290
  entries.add(id);
276
291
  }
@@ -4,8 +4,6 @@ import { type DataflowFunctionFlowInformation, DataflowGraph, FunctionArgument }
4
4
  import type { IEnvironment, REnvironmentInformation } from '../environments/environment';
5
5
  import { type DataflowGraphVertexFunctionDefinition, type DataflowGraphVertexArgument, type DataflowGraphVertexAstLink, type DataflowGraphVertexInfo, type DataflowGraphVertexUse, type FunctionOriginInformation } from './vertex';
6
6
  import type { ControlDependency, ExitPoint } from '../info';
7
- import type { FlowrSearchLike } from '../../search/flowr-search-builder';
8
- import type { ReadonlyFlowrAnalysisProvider } from '../../project/flowr-analyzer';
9
7
  import type { HookInformation } from '../hooks';
10
8
  /**
11
9
  * Creates an empty dataflow graph.
@@ -94,7 +92,6 @@ export declare class DataflowGraphBuilder<Vertex extends DataflowGraphVertexInfo
94
92
  cds?: ControlDependency[];
95
93
  }, asRoot?: boolean): this;
96
94
  private edgeHelper;
97
- private queryHelper;
98
95
  /**
99
96
  * Adds a **read edge**.
100
97
  * @param from - NodeId of the source vertex
@@ -102,107 +99,50 @@ export declare class DataflowGraphBuilder<Vertex extends DataflowGraphVertexInfo
102
99
  * If you pass multiple this will construct a single edge for each of them.
103
100
  */
104
101
  reads(from: NodeId, to: DataflowGraphEdgeTarget): this;
105
- /**
106
- * Adds a **read edge** with a query for the from and/or to vertices.
107
- * @param from - Either a node id or a query to find the node id.
108
- * @param to - Either a node id or a query to find the node id.
109
- * @param input - The input to search in i.e. the dataflow graph.
110
- */
111
- readsQuery(from: FromQueryParam, to: ToQueryParam, input: ReadonlyFlowrAnalysisProvider): Promise<this>;
112
102
  /**
113
103
  * Adds a **defined-by edge** with from as defined variable, and to
114
104
  * as a variable/function contributing to its definition.
115
105
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
116
106
  */
117
107
  definedBy(from: NodeId, to: DataflowGraphEdgeTarget): this;
118
- /**
119
- * Adds a **defined-by edge** with a query for the from and/or to vertices.
120
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
121
- */
122
- definedByQuery(from: FromQueryParam, to: ToQueryParam, data: ReadonlyFlowrAnalysisProvider): Promise<this>;
123
108
  /**
124
109
  * Adds a **call edge** with from as caller, and to as callee.
125
110
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
126
111
  */
127
112
  calls(from: NodeId, to: DataflowGraphEdgeTarget): this;
128
- /**
129
- * Adds a **call edge** with a query for the from and/or to vertices.
130
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
131
- */
132
- callsQuery(from: FromQueryParam, to: ToQueryParam, data: ReadonlyFlowrAnalysisProvider): Promise<this>;
133
113
  /**
134
114
  * Adds a **return edge** with from as function, and to as exit point.
135
115
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
136
116
  */
137
117
  returns(from: NodeId, to: DataflowGraphEdgeTarget): this;
138
- /**
139
- * Adds a **return edge** with a query for the from and/or to vertices.
140
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
141
- */
142
- returnsQuery(from: FromQueryParam, to: ToQueryParam, data: ReadonlyFlowrAnalysisProvider): Promise<this>;
143
118
  /**
144
119
  * Adds a **defines-on-call edge** with from as variable, and to as its definition
145
120
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
146
121
  */
147
122
  definesOnCall(from: NodeId, to: DataflowGraphEdgeTarget): this;
148
- /**
149
- * Adds a **defines-on-call edge** with a query for the from and/or to vertices.
150
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
151
- */
152
- definesOnCallQuery(from: FromQueryParam, to: ToQueryParam, data: ReadonlyFlowrAnalysisProvider): Promise<this>;
153
123
  /**
154
124
  * Adds a **defined-by-on-call edge** with from as definition, and to as variable.
155
125
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
156
126
  */
157
127
  definedByOnCall(from: NodeId, to: DataflowGraphEdgeTarget): this;
158
- /**
159
- * Adds a **defined-by-on-call edge** with a query for the from and/or to vertices.
160
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
161
- */
162
- definedByOnCallQuery(from: FromQueryParam, to: ToQueryParam, data: ReadonlyFlowrAnalysisProvider): Promise<this>;
163
128
  /**
164
129
  * Adds an **argument edge** with from as function call, and to as argument.
165
130
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
166
131
  */
167
132
  argument(from: NodeId, to: DataflowGraphEdgeTarget): this;
168
- /**
169
- * Adds a **argument edge** with a query for the from and/or to vertices.
170
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
171
- */
172
- argumentQuery(from: FromQueryParam, to: ToQueryParam, data: ReadonlyFlowrAnalysisProvider): Promise<this>;
173
133
  /**
174
134
  * Adds a **non-standard evaluation edge** with from as vertex, and to as vertex.
175
135
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
176
136
  */
177
137
  nse(from: NodeId, to: DataflowGraphEdgeTarget): this;
178
- /**
179
- * Adds a **non-standard evaluation edge** with a query for the from and/or to vertices.
180
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
181
- */
182
- nseQuery(from: FromQueryParam, to: ToQueryParam, data: ReadonlyFlowrAnalysisProvider): Promise<this>;
183
138
  /**
184
139
  * Adds a **side-effect-on-call edge** with from as vertex, and to as vertex.
185
140
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
186
141
  */
187
142
  sideEffectOnCall(from: NodeId, to: DataflowGraphEdgeTarget): this;
188
- /**
189
- * Adds a **side-effect-on-call edge** with a query for the from and/or to vertices.
190
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
191
- */
192
- sideEffectOnCallQuery(from: FromQueryParam, to: ToQueryParam, data: ReadonlyFlowrAnalysisProvider): Promise<this>;
193
143
  /**
194
144
  * explicitly overwrite the root ids of the graph,
195
145
  * this is just an easier variant in case you working with a lot of functions this saves you a lot of `false` flags.
196
146
  */
197
147
  overwriteRootIds(ids: readonly NodeId[]): this;
198
148
  }
199
- interface Query {
200
- query: FlowrSearchLike;
201
- }
202
- type FromQueryParam = {
203
- nodeId: NodeId;
204
- } | Query;
205
- type ToQueryParam = {
206
- target: DataflowGraphEdgeTarget;
207
- } | Query;
208
- export {};
@@ -1,37 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.DataflowGraphBuilder = void 0;
37
4
  exports.emptyGraph = emptyGraph;
@@ -42,9 +9,14 @@ const vertex_1 = require("./vertex");
42
9
  const r_function_call_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-function-call");
43
10
  const edge_1 = require("./edge");
44
11
  const default_builtin_config_1 = require("../environments/default-builtin-config");
45
- const assert_1 = require("../../util/assert");
46
12
  const flowr_analyzer_context_1 = require("../../project/context/flowr-analyzer-context");
47
13
  const built_in_proc_name_1 = require("../environments/built-in-proc-name");
14
+ function normalizeCds(cds) {
15
+ return cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) }));
16
+ }
17
+ function normalizeReference(ref) {
18
+ return { ...ref, nodeId: node_id_1.NodeId.normalize(ref.nodeId), cds: normalizeCds(ref.cds) };
19
+ }
48
20
  /**
49
21
  * Creates an empty dataflow graph.
50
22
  * Should only be used in tests and documentation.
@@ -85,15 +57,15 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
85
57
  ...subflow,
86
58
  entryPoint: node_id_1.NodeId.normalize(subflow.entryPoint),
87
59
  graph: new Set([...subflow.graph].map(node_id_1.NodeId.normalize)),
88
- out: subflow.out.map(o => ({ ...o, nodeId: node_id_1.NodeId.normalize(o.nodeId), cds: o.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) })) })),
89
- in: subflow.in.map(o => ({ ...o, nodeId: node_id_1.NodeId.normalize(o.nodeId), cds: o.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) })) })),
90
- unknownReferences: subflow.unknownReferences.map(o => ({ ...o, nodeId: node_id_1.NodeId.normalize(o.nodeId), cds: o.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) })) })),
60
+ out: subflow.out.map(normalizeReference),
61
+ in: subflow.in.map(normalizeReference),
62
+ unknownReferences: subflow.unknownReferences.map(normalizeReference),
91
63
  hooks: subflow.hooks ?? [],
92
64
  },
93
65
  mode: info?.mode,
94
- exitPoints: exitPoints.map(e => typeof e === 'object' ? ({ ...e, nodeId: node_id_1.NodeId.normalize(e.nodeId), cds: e.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) })) }) :
66
+ exitPoints: exitPoints.map(e => typeof e === 'object' ? normalizeReference(e) :
95
67
  ({ nodeId: node_id_1.NodeId.normalize(e), type: 0 /* ExitPointType.Default */, cds: undefined })),
96
- cds: info?.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) })),
68
+ cds: normalizeCds(info?.cds),
97
69
  environment: info?.environment,
98
70
  }, asRoot);
99
71
  }
@@ -114,7 +86,7 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
114
86
  name,
115
87
  args: args.map(a => a === r_function_call_1.EmptyArgument ? r_function_call_1.EmptyArgument : { ...a, nodeId: node_id_1.NodeId.normalize(a.nodeId), cds: undefined }),
116
88
  environment: (info?.onlyBuiltIn || onlyBuiltInAuto) ? undefined : info?.environment ?? this.defaultEnvironment,
117
- cds: info?.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) })),
89
+ cds: normalizeCds(info?.cds),
118
90
  onlyBuiltin: info?.onlyBuiltIn ?? onlyBuiltInAuto ?? false,
119
91
  origin: info?.origin ?? [(0, default_builtin_config_1.getDefaultProcessor)(name) ?? built_in_proc_name_1.BuiltInProcName.Function],
120
92
  link: info?.link
@@ -166,7 +138,7 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
166
138
  tag: vertex_1.VertexType.VariableDefinition,
167
139
  id: node_id_1.NodeId.normalize(id),
168
140
  name,
169
- cds: info?.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) })),
141
+ cds: normalizeCds(info?.cds),
170
142
  }, asRoot);
171
143
  if (info?.definedBy) {
172
144
  for (const def of info.definedBy) {
@@ -192,7 +164,7 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
192
164
  environment: undefined
193
165
  }, {
194
166
  ...info,
195
- cds: info?.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) }))
167
+ cds: normalizeCds(info?.cds)
196
168
  }), asRoot);
197
169
  }
198
170
  /**
@@ -206,7 +178,7 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
206
178
  return this.addVertexWithDefaultEnv({
207
179
  tag: vertex_1.VertexType.Value,
208
180
  id: node_id_1.NodeId.normalize(id),
209
- cds: options?.cds?.map(c => ({ ...c, id: node_id_1.NodeId.normalize(c.id) })),
181
+ cds: normalizeCds(options?.cds),
210
182
  environment: undefined
211
183
  }, asRoot);
212
184
  }
@@ -219,33 +191,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
219
191
  }
220
192
  return this.addEdge(node_id_1.NodeId.normalize(from), node_id_1.NodeId.normalize(to), type);
221
193
  }
222
- async queryHelper(from, to, data, type) {
223
- /*
224
- * the search executor reaches back into the dataflow graph (via the queries and the linter), so importing it
225
- * up here would make this cycle load-bearing: whoever is loaded first sees the other half-initialized, which
226
- * breaks at module-evaluation time (a subclass extending an `undefined` base). We only need it once a query
227
- * is actually run, which is long after every module is up.
228
- */
229
- const { runSearch } = await Promise.resolve().then(() => __importStar(require('../../search/flowr-search-executor')));
230
- let fromId;
231
- if ('nodeId' in from) {
232
- fromId = from.nodeId;
233
- }
234
- else {
235
- const result = (await runSearch(from.query, data)).getElements();
236
- (0, assert_1.guard)(result.length === 1, `from query result should yield exactly one node, but yielded ${result.length}`);
237
- fromId = result[0].node.info.id;
238
- }
239
- let toIds;
240
- if ('target' in to) {
241
- toIds = to.target;
242
- }
243
- else {
244
- const result = (await runSearch(to.query, data)).getElements();
245
- toIds = result.map(r => r.node.info.id);
246
- }
247
- return this.edgeHelper(fromId, toIds, type);
248
- }
249
194
  /**
250
195
  * Adds a **read edge**.
251
196
  * @param from - NodeId of the source vertex
@@ -255,15 +200,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
255
200
  reads(from, to) {
256
201
  return this.edgeHelper(from, to, edge_1.EdgeType.Reads);
257
202
  }
258
- /**
259
- * Adds a **read edge** with a query for the from and/or to vertices.
260
- * @param from - Either a node id or a query to find the node id.
261
- * @param to - Either a node id or a query to find the node id.
262
- * @param input - The input to search in i.e. the dataflow graph.
263
- */
264
- readsQuery(from, to, input) {
265
- return this.queryHelper(from, to, input, edge_1.EdgeType.Reads);
266
- }
267
203
  /**
268
204
  * Adds a **defined-by edge** with from as defined variable, and to
269
205
  * as a variable/function contributing to its definition.
@@ -272,13 +208,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
272
208
  definedBy(from, to) {
273
209
  return this.edgeHelper(from, to, edge_1.EdgeType.DefinedBy);
274
210
  }
275
- /**
276
- * Adds a **defined-by edge** with a query for the from and/or to vertices.
277
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
278
- */
279
- definedByQuery(from, to, data) {
280
- return this.queryHelper(from, to, data, edge_1.EdgeType.DefinedBy);
281
- }
282
211
  /**
283
212
  * Adds a **call edge** with from as caller, and to as callee.
284
213
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
@@ -286,13 +215,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
286
215
  calls(from, to) {
287
216
  return this.edgeHelper(from, to, edge_1.EdgeType.Calls);
288
217
  }
289
- /**
290
- * Adds a **call edge** with a query for the from and/or to vertices.
291
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
292
- */
293
- callsQuery(from, to, data) {
294
- return this.queryHelper(from, to, data, edge_1.EdgeType.Calls);
295
- }
296
218
  /**
297
219
  * Adds a **return edge** with from as function, and to as exit point.
298
220
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
@@ -300,13 +222,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
300
222
  returns(from, to) {
301
223
  return this.edgeHelper(from, to, edge_1.EdgeType.Returns);
302
224
  }
303
- /**
304
- * Adds a **return edge** with a query for the from and/or to vertices.
305
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
306
- */
307
- returnsQuery(from, to, data) {
308
- return this.queryHelper(from, to, data, edge_1.EdgeType.Returns);
309
- }
310
225
  /**
311
226
  * Adds a **defines-on-call edge** with from as variable, and to as its definition
312
227
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
@@ -314,13 +229,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
314
229
  definesOnCall(from, to) {
315
230
  return this.edgeHelper(from, to, edge_1.EdgeType.DefinesOnCall);
316
231
  }
317
- /**
318
- * Adds a **defines-on-call edge** with a query for the from and/or to vertices.
319
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
320
- */
321
- definesOnCallQuery(from, to, data) {
322
- return this.queryHelper(from, to, data, edge_1.EdgeType.DefinesOnCall);
323
- }
324
232
  /**
325
233
  * Adds a **defined-by-on-call edge** with from as definition, and to as variable.
326
234
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
@@ -328,13 +236,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
328
236
  definedByOnCall(from, to) {
329
237
  return this.edgeHelper(from, to, edge_1.EdgeType.DefinedByOnCall);
330
238
  }
331
- /**
332
- * Adds a **defined-by-on-call edge** with a query for the from and/or to vertices.
333
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
334
- */
335
- definedByOnCallQuery(from, to, data) {
336
- return this.queryHelper(from, to, data, edge_1.EdgeType.DefinedByOnCall);
337
- }
338
239
  /**
339
240
  * Adds an **argument edge** with from as function call, and to as argument.
340
241
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
@@ -342,13 +243,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
342
243
  argument(from, to) {
343
244
  return this.edgeHelper(from, to, edge_1.EdgeType.Argument);
344
245
  }
345
- /**
346
- * Adds a **argument edge** with a query for the from and/or to vertices.
347
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
348
- */
349
- argumentQuery(from, to, data) {
350
- return this.queryHelper(from, to, data, edge_1.EdgeType.Argument);
351
- }
352
246
  /**
353
247
  * Adds a **non-standard evaluation edge** with from as vertex, and to as vertex.
354
248
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
@@ -356,13 +250,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
356
250
  nse(from, to) {
357
251
  return this.edgeHelper(from, to, edge_1.EdgeType.NonStandardEvaluation);
358
252
  }
359
- /**
360
- * Adds a **non-standard evaluation edge** with a query for the from and/or to vertices.
361
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
362
- */
363
- nseQuery(from, to, data) {
364
- return this.queryHelper(from, to, data, edge_1.EdgeType.NonStandardEvaluation);
365
- }
366
253
  /**
367
254
  * Adds a **side-effect-on-call edge** with from as vertex, and to as vertex.
368
255
  * @see {@link DataflowGraphBuilder#reads|reads} for parameters.
@@ -370,13 +257,6 @@ class DataflowGraphBuilder extends graph_1.DataflowGraph {
370
257
  sideEffectOnCall(from, to) {
371
258
  return this.edgeHelper(from, to, edge_1.EdgeType.SideEffectOnCall);
372
259
  }
373
- /**
374
- * Adds a **side-effect-on-call edge** with a query for the from and/or to vertices.
375
- * @see {@link DataflowGraphBuilder#readsQuery|readsQuery} for parameters.
376
- */
377
- sideEffectOnCallQuery(from, to, data) {
378
- return this.queryHelper(from, to, data, edge_1.EdgeType.SideEffectOnCall);
379
- }
380
260
  /**
381
261
  * explicitly overwrite the root ids of the graph,
382
262
  * this is just an easier variant in case you working with a lot of functions this saves you a lot of `false` flags.