@eagleoutice/flowr 2.9.5 → 2.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/abstract-interpretation/data-frame/dataframe-domain.js +1 -2
- package/benchmark/slicer.d.ts +0 -1
- package/benchmark/slicer.js +3 -9
- package/benchmark/stats/print.js +1 -0
- package/benchmark/summarizer/data.d.ts +2 -0
- package/benchmark/summarizer/first-phase/process.js +3 -1
- package/benchmark/summarizer/second-phase/process.js +4 -0
- package/cli/repl/commands/repl-commands.d.ts +1 -0
- package/cli/repl/commands/repl-commands.js +1 -0
- package/cli/repl/commands/repl-normalize.d.ts +1 -0
- package/cli/repl/commands/repl-normalize.js +28 -1
- package/control-flow/basic-cfg-guided-visitor.js +1 -3
- package/control-flow/cfg-dead-code.js +15 -10
- package/control-flow/control-flow-graph.d.ts +3 -1
- package/control-flow/control-flow-graph.js +26 -19
- package/control-flow/extract-cfg.d.ts +2 -1
- package/control-flow/extract-cfg.js +11 -2
- package/control-flow/simple-visitor.d.ts +1 -2
- package/control-flow/simple-visitor.js +16 -13
- package/dataflow/fn/recursive-function.js +1 -1
- package/documentation/doc-readme.js +11 -9
- package/documentation/wiki-absint.js +4 -3
- package/documentation/wiki-mk/doc-context.d.ts +3 -0
- package/documentation/wiki-mk/doc-context.js +4 -1
- package/linter/linter-rules.d.ts +2 -2
- package/linter/rules/dataframe-access-validation.d.ts +2 -2
- package/linter/rules/dataframe-access-validation.js +3 -3
- package/package.json +1 -1
- package/project/cache/flowr-analyzer-controlflow-cache.js +3 -0
- package/project/cfg-kind.d.ts +5 -1
- package/project/cfg-kind.js +5 -1
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +3 -2
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +3 -0
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +13 -2
- package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +70 -0
- package/project/plugins/file-plugins/files/flowr-sweave-file.js +163 -0
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-sweave-file-plugin.d.ts +22 -0
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-sweave-file-plugin.js +33 -0
- package/project/plugins/flowr-analyzer-plugin-defaults.js +2 -0
- package/project/plugins/plugin-registry.d.ts +2 -1
- package/project/plugins/plugin-registry.js +2 -0
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +1 -1
- package/queries/catalog/call-context-query/call-context-query-executor.d.ts +3 -2
- package/queries/catalog/call-context-query/call-context-query-executor.js +16 -11
- package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +1 -1
- package/queries/catalog/call-context-query/identify-link-to-nested-call-relation.js +7 -4
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +99 -81
- package/queries/catalog/df-shape-query/df-shape-query-executor.js +12 -5
- package/queries/query.js +4 -3
- package/r-bridge/data/data.d.ts +20 -0
- package/r-bridge/data/data.js +24 -0
- package/r-bridge/lang-4.x/convert-values.js +1 -1
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +64 -34
- package/util/r-regex.d.ts +4 -0
- package/util/r-regex.js +35 -3
- package/util/version.js +1 -1
- package/control-flow/invert-cfg.d.ts +0 -5
- package/control-flow/invert-cfg.js +0 -20
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.invertCfg = invertCfg;
|
|
4
|
-
const control_flow_graph_1 = require("./control-flow-graph");
|
|
5
|
-
/**
|
|
6
|
-
* Inverts the given dataflow graph by reversing all edges.
|
|
7
|
-
*/
|
|
8
|
-
function invertCfg(graph) {
|
|
9
|
-
const invertedGraph = new control_flow_graph_1.ControlFlowGraph();
|
|
10
|
-
for (const [, v] of graph.vertices(true)) {
|
|
11
|
-
invertedGraph.addVertex(v);
|
|
12
|
-
}
|
|
13
|
-
for (const [from, targets] of graph.edges()) {
|
|
14
|
-
for (const [to, t] of targets) {
|
|
15
|
-
invertedGraph.addEdge(to, from, t);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return invertedGraph;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=invert-cfg.js.map
|