@eagleoutice/flowr 2.7.0 → 2.7.2
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 +20 -20
- package/abstract-interpretation/absint-visitor.d.ts +160 -0
- package/abstract-interpretation/absint-visitor.js +279 -0
- package/abstract-interpretation/data-frame/dataframe-domain.d.ts +2 -2
- package/abstract-interpretation/data-frame/dataframe-domain.js +23 -7
- package/abstract-interpretation/data-frame/mappers/access-mapper.d.ts +6 -6
- package/abstract-interpretation/data-frame/mappers/access-mapper.js +10 -14
- package/abstract-interpretation/data-frame/mappers/arguments.d.ts +10 -9
- package/abstract-interpretation/data-frame/mappers/arguments.js +7 -4
- package/abstract-interpretation/data-frame/mappers/function-mapper.d.ts +17 -17
- package/abstract-interpretation/data-frame/mappers/function-mapper.js +45 -50
- package/abstract-interpretation/data-frame/mappers/replacement-mapper.d.ts +7 -7
- package/abstract-interpretation/data-frame/mappers/replacement-mapper.js +25 -29
- package/abstract-interpretation/data-frame/semantics.js +2 -3
- package/abstract-interpretation/data-frame/shape-inference.d.ts +52 -28
- package/abstract-interpretation/data-frame/shape-inference.js +67 -90
- package/abstract-interpretation/domains/bounded-set-domain.d.ts +2 -2
- package/abstract-interpretation/domains/interval-domain.d.ts +2 -2
- package/abstract-interpretation/domains/set-range-domain.d.ts +10 -4
- package/abstract-interpretation/domains/set-range-domain.js +7 -1
- package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +2 -2
- package/abstract-interpretation/domains/singleton-domain.d.ts +2 -2
- package/benchmark/slicer.js +13 -14
- package/cli/common/options.d.ts +431 -8
- package/cli/common/options.js +1 -1
- package/cli/common/scripts-info.d.ts +431 -7
- package/cli/flowr-main-options.d.ts +102 -2
- package/cli/flowr.d.ts +102 -2
- package/cli/repl/commands/repl-commands.d.ts +25 -0
- package/cli/repl/commands/repl-query.js +17 -5
- package/cli/wiki.d.ts +13 -0
- package/cli/wiki.js +7 -2
- package/config.d.ts +4 -4
- package/config.js +1 -1
- package/control-flow/basic-cfg-guided-visitor.js +7 -8
- package/control-flow/control-flow-graph.d.ts +1 -1
- package/control-flow/semantic-cfg-guided-visitor.d.ts +1 -1
- package/control-flow/semantic-cfg-guided-visitor.js +1 -1
- package/dataflow/eval/resolve/alias-tracking.js +1 -1
- package/dataflow/internal/linker.d.ts +2 -0
- package/dataflow/internal/linker.js +10 -12
- package/documentation/doc-capabilities.d.ts +1 -1
- package/documentation/doc-readme.d.ts +1 -1
- package/documentation/doc-util/doc-cfg.js +1 -1
- package/documentation/doc-util/doc-cli-option.d.ts +6 -6
- package/documentation/doc-util/doc-cli-option.js +3 -3
- package/documentation/doc-util/doc-dfg.d.ts +1 -1
- package/documentation/doc-util/doc-files.d.ts +3 -0
- package/documentation/doc-util/doc-files.js +4 -1
- package/documentation/doc-util/doc-normalized-ast.js +2 -2
- package/documentation/issue-linting-rule.d.ts +1 -1
- package/documentation/wiki-analyzer.d.ts +1 -1
- package/documentation/wiki-cfg.d.ts +1 -1
- package/documentation/wiki-core.d.ts +1 -1
- package/documentation/wiki-dataflow-graph.d.ts +1 -1
- package/documentation/wiki-dataflow-graph.js +6 -6
- package/documentation/wiki-engine.d.ts +1 -1
- package/documentation/wiki-engine.js +9 -10
- package/documentation/wiki-faq.d.ts +1 -1
- package/documentation/wiki-interface.d.ts +1 -1
- package/documentation/wiki-interface.js +12 -13
- package/documentation/wiki-linter.d.ts +1 -1
- package/documentation/wiki-linting-and-testing.d.ts +1 -1
- package/documentation/wiki-mk/doc-context.d.ts +54 -1
- package/documentation/wiki-mk/doc-context.js +17 -0
- package/documentation/wiki-mk/doc-maker.d.ts +5 -5
- package/documentation/wiki-mk/doc-maker.js +3 -1
- package/documentation/wiki-normalized-ast.d.ts +1 -1
- package/documentation/wiki-onboarding.d.ts +1 -1
- package/documentation/wiki-overview.d.ts +9 -0
- package/documentation/wiki-overview.js +248 -0
- package/documentation/wiki-query.d.ts +1 -1
- package/documentation/wiki-query.js +17 -1
- package/documentation/wiki-search.d.ts +1 -1
- package/documentation/wiki-setup.d.ts +9 -0
- package/documentation/wiki-setup.js +122 -0
- package/linter/rules/dataframe-access-validation.d.ts +1 -1
- package/linter/rules/dataframe-access-validation.js +8 -10
- package/linter/rules/unused-definition.js +1 -1
- package/package.json +1 -1
- package/project/context/flowr-analyzer-context.d.ts +4 -0
- package/project/context/flowr-analyzer-files-context.d.ts +9 -1
- package/project/context/flowr-analyzer-files-context.js +4 -0
- package/project/context/flowr-file.d.ts +2 -0
- package/project/context/flowr-file.js +2 -0
- package/project/plugins/file-plugins/{flowr-description-file.d.ts → files/flowr-description-file.d.ts} +1 -1
- package/project/plugins/file-plugins/files/flowr-description-file.js +75 -0
- package/project/plugins/file-plugins/files/flowr-news-file.d.ts +27 -0
- package/project/plugins/file-plugins/files/flowr-news-file.js +152 -0
- package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-news-file-plugin.d.ts +23 -0
- package/project/plugins/file-plugins/flowr-analyzer-news-file-plugin.js +35 -0
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-jupyter-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-jupyter-file-plugin.js +1 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +1 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +1 -1
- 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 +7 -1
- package/queries/catalog/df-shape-query/df-shape-query-executor.js +4 -2
- package/queries/catalog/files-query/files-query-executor.d.ts +6 -0
- package/queries/catalog/files-query/files-query-executor.js +49 -0
- package/queries/catalog/files-query/files-query-format.d.ts +36 -0
- package/queries/catalog/files-query/files-query-format.js +114 -0
- package/queries/catalog/linter-query/linter-query-format.js +1 -1
- package/queries/query.d.ts +10 -1
- package/queries/query.js +3 -1
- package/r-bridge/lang-4.x/ast/model/model.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/model/processing/decorate.js +8 -8
- package/r-bridge/lang-4.x/ast/model/processing/role.d.ts +8 -8
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-parameter.js +0 -1
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +0 -1
- package/statistics/features/supported/data-access/data-access.js +1 -1
- package/util/containers.js +1 -1
- package/util/files.d.ts +0 -7
- package/util/files.js +0 -41
- package/util/mermaid/ast.d.ts +3 -2
- package/util/mermaid/ast.js +13 -7
- package/util/mermaid/cfg.d.ts +3 -2
- package/util/mermaid/cfg.js +26 -6
- package/util/mermaid/dfg.d.ts +1 -7
- package/util/mermaid/dfg.js +7 -3
- package/util/mermaid/info.d.ts +17 -0
- package/util/mermaid/info.js +5 -0
- package/util/prefix.d.ts +9 -5
- package/util/prefix.js +14 -6
- package/util/r-regex.d.ts +21 -0
- package/util/r-regex.js +25 -0
- package/util/text/args.js +12 -3
- package/util/version.js +1 -1
- package/abstract-interpretation/data-frame/absint-info.d.ts +0 -109
- package/abstract-interpretation/data-frame/absint-info.js +0 -31
- package/abstract-interpretation/data-frame/absint-visitor.d.ts +0 -57
- package/abstract-interpretation/data-frame/absint-visitor.js +0 -176
- package/abstract-interpretation/data-frame/mappers/assignment-mapper.d.ts +0 -21
- package/abstract-interpretation/data-frame/mappers/assignment-mapper.js +0 -34
- package/documentation/doc-util/doc-print.d.ts +0 -5
- package/documentation/doc-util/doc-print.js +0 -36
- package/project/plugins/file-plugins/flowr-description-file.js +0 -37
- package/project/plugins/file-plugins/notebooks/notebook.d.ts +0 -0
- package/project/plugins/file-plugins/notebooks/notebook.js +0 -2
- /package/project/plugins/file-plugins/{notebooks → files}/flowr-jupyter-file.d.ts +0 -0
- /package/project/plugins/file-plugins/{notebooks → files}/flowr-jupyter-file.js +0 -0
- /package/project/plugins/file-plugins/{notebooks → files}/flowr-rmarkdown-file.d.ts +0 -0
- /package/project/plugins/file-plugins/{notebooks → files}/flowr-rmarkdown-file.js +0 -0
package/cli/common/options.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { OptionDefinition } from 'command-line-usage';
|
|
2
1
|
/**
|
|
3
2
|
* This interface describes options, that every script *must* provide.
|
|
4
3
|
*/
|
|
@@ -11,10 +10,434 @@ export interface CommonOptions {
|
|
|
11
10
|
*/
|
|
12
11
|
help: boolean;
|
|
13
12
|
}
|
|
14
|
-
export declare const benchmarkOptions:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
export declare const benchmarkOptions: [{
|
|
14
|
+
readonly name: "verbose";
|
|
15
|
+
readonly alias: "v";
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly description: "Run with verbose logging [do not use for the real benchmark as this affects the time measurements, but only to find errors]";
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "help";
|
|
20
|
+
readonly alias: "h";
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly description: "Print this usage guide";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "limit";
|
|
25
|
+
readonly alias: "l";
|
|
26
|
+
readonly type: NumberConstructor;
|
|
27
|
+
readonly description: "Limit the number of files to process (if given, this will choose these files randomly and add the chosen names to the output";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "runs";
|
|
30
|
+
readonly alias: "r";
|
|
31
|
+
readonly type: NumberConstructor;
|
|
32
|
+
readonly description: "The amount of benchmark runs that should be done, out of which an average will be calculated";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "seed";
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly description: "The random seed for sampling the files if a limit is set, and for sampling the slicing criteria if a maximum is set";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "input";
|
|
39
|
+
readonly alias: "i";
|
|
40
|
+
readonly type: StringConstructor;
|
|
41
|
+
readonly description: "Pass a folder or file as src to read from. Alternatively, pass a single JSON file that contains a list of paths.";
|
|
42
|
+
readonly multiple: true;
|
|
43
|
+
readonly defaultOption: true;
|
|
44
|
+
readonly defaultValue: readonly [];
|
|
45
|
+
readonly typeLabel: "{underline files/folders}";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "parallel";
|
|
48
|
+
readonly alias: "p";
|
|
49
|
+
readonly type: StringConstructor;
|
|
50
|
+
readonly description: "Number of parallel executors (defaults to {italic max(cpu.count-1, 1)})";
|
|
51
|
+
readonly defaultValue: number;
|
|
52
|
+
readonly typeLabel: "{underline number}";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "slice";
|
|
55
|
+
readonly alias: "s";
|
|
56
|
+
readonly type: StringConstructor;
|
|
57
|
+
readonly description: "Automatically slice for *all* variables (default) or *no* slicing and only parsing/dataflow construction. Numbers will indicate: sample X random slices from all.";
|
|
58
|
+
readonly defaultValue: "all";
|
|
59
|
+
readonly typeLabel: "{underline all/no}";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "output";
|
|
62
|
+
readonly alias: "o";
|
|
63
|
+
readonly type: StringConstructor;
|
|
64
|
+
readonly description: `Folder to write all the measurements to in a per-file-basis (defaults to {italic benchmark-${string}})`;
|
|
65
|
+
readonly defaultValue: `benchmark-${string}`;
|
|
66
|
+
readonly typeLabel: "{underline folder}";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "parser";
|
|
69
|
+
readonly type: StringConstructor;
|
|
70
|
+
readonly description: "The parser to use for the benchmark";
|
|
71
|
+
readonly defaultValue: "r-shell";
|
|
72
|
+
readonly typeLabel: "{underline parser}";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "dataframe-shape-inference";
|
|
75
|
+
readonly type: BooleanConstructor;
|
|
76
|
+
readonly description: "Infer the shape of data frames using abstract interpretation (includes control flow graph extraction)";
|
|
77
|
+
readonly defaultValue: false;
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "enable-pointer-tracking";
|
|
80
|
+
readonly type: BooleanConstructor;
|
|
81
|
+
readonly description: "Run dataflow analysis with pointer tracking";
|
|
82
|
+
readonly defaultValue: false;
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "max-file-slices";
|
|
85
|
+
readonly type: NumberConstructor;
|
|
86
|
+
readonly description: "If file has more than passed number of slices, the file is not processed";
|
|
87
|
+
readonly defaultValue: -1;
|
|
88
|
+
readonly typeLabel: "{underline number}";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "threshold";
|
|
91
|
+
readonly alias: "t";
|
|
92
|
+
readonly type: NumberConstructor;
|
|
93
|
+
readonly description: "How many re-visits of the same node are ok?";
|
|
94
|
+
readonly defaultValue: undefined;
|
|
95
|
+
readonly typeLabel: "{underline number}";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "per-file-time-limit";
|
|
98
|
+
readonly type: NumberConstructor;
|
|
99
|
+
readonly description: "Time limit in milliseconds to process single file (disabled by default)";
|
|
100
|
+
readonly defaultValue: undefined;
|
|
101
|
+
readonly typeLabel: "{underline number}";
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "sampling-strategy";
|
|
104
|
+
readonly type: StringConstructor;
|
|
105
|
+
readonly description: "Which strategy to use, when sampling is enabled";
|
|
106
|
+
readonly defaultValue: "random";
|
|
107
|
+
readonly typeLabel: "{underline random/equidistant}";
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "cfg";
|
|
110
|
+
readonly alias: "c";
|
|
111
|
+
readonly type: BooleanConstructor;
|
|
112
|
+
readonly description: "Extract the control flow graph of the file (benchmark it too)";
|
|
113
|
+
}];
|
|
114
|
+
export declare const benchmarkHelperOptions: [{
|
|
115
|
+
readonly name: "verbose";
|
|
116
|
+
readonly alias: "v";
|
|
117
|
+
readonly type: BooleanConstructor;
|
|
118
|
+
readonly description: "Run with verbose logging [do not use for the real benchmark as this affects the time measurements, but only to find errors]";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "help";
|
|
121
|
+
readonly alias: "h";
|
|
122
|
+
readonly type: BooleanConstructor;
|
|
123
|
+
readonly description: "Print this usage guide";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "input";
|
|
126
|
+
readonly alias: "i";
|
|
127
|
+
readonly type: StringConstructor;
|
|
128
|
+
readonly description: "Pass a single file as src to read from";
|
|
129
|
+
readonly multiple: false;
|
|
130
|
+
readonly defaultOption: true;
|
|
131
|
+
readonly typeLabel: "{underline file}";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "file-id";
|
|
134
|
+
readonly alias: "d";
|
|
135
|
+
readonly type: NumberConstructor;
|
|
136
|
+
readonly description: "A numeric file id that can be used to match an input and run-num to a file";
|
|
137
|
+
}, {
|
|
138
|
+
readonly name: "run-num";
|
|
139
|
+
readonly alias: "r";
|
|
140
|
+
readonly type: NumberConstructor;
|
|
141
|
+
readonly description: "The n-th time that the file with the given file-id is being benchmarked";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "slice";
|
|
144
|
+
readonly alias: "s";
|
|
145
|
+
readonly type: StringConstructor;
|
|
146
|
+
readonly description: "Automatically slice for *all* variables (default) or *no* slicing and only parsing/dataflow construction. Numbers will indicate: sample X random slices from all.";
|
|
147
|
+
readonly defaultValue: "all";
|
|
148
|
+
readonly typeLabel: "{underline all/no}";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "cfg";
|
|
151
|
+
readonly alias: "c";
|
|
152
|
+
readonly type: BooleanConstructor;
|
|
153
|
+
readonly description: "Extract the control flow graph of the file (benchmark it too)";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "output";
|
|
156
|
+
readonly alias: "o";
|
|
157
|
+
readonly type: StringConstructor;
|
|
158
|
+
readonly description: "File to write the measurements to (appends a single line in JSON format)";
|
|
159
|
+
readonly typeLabel: "{underline file}";
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "parser";
|
|
162
|
+
readonly type: StringConstructor;
|
|
163
|
+
readonly description: "The parser to use for the benchmark";
|
|
164
|
+
readonly defaultValue: "r-shell";
|
|
165
|
+
readonly typeLabel: "{underline parser}";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "dataframe-shape-inference";
|
|
168
|
+
readonly type: BooleanConstructor;
|
|
169
|
+
readonly description: "Infer the shape of data frames using abstract interpretation (includes control flow graph extraction)";
|
|
170
|
+
readonly defaultValue: false;
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "enable-pointer-tracking";
|
|
173
|
+
readonly type: BooleanConstructor;
|
|
174
|
+
readonly description: "Run dataflow analysis with pointer tracking";
|
|
175
|
+
readonly defaultValue: false;
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "max-slices";
|
|
178
|
+
readonly type: NumberConstructor;
|
|
179
|
+
readonly description: "If file has more than passed number of slices, the file is not processed";
|
|
180
|
+
readonly defaultValue: -1;
|
|
181
|
+
readonly typeLabel: "{underline number}";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "threshold";
|
|
184
|
+
readonly alias: "t";
|
|
185
|
+
readonly type: NumberConstructor;
|
|
186
|
+
readonly description: "How many re-visits of the same node are ok?";
|
|
187
|
+
readonly defaultValue: undefined;
|
|
188
|
+
readonly typeLabel: "{underline number}";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "sampling-strategy";
|
|
191
|
+
readonly type: StringConstructor;
|
|
192
|
+
readonly description: "Which strategy to use, when sampling is enabled";
|
|
193
|
+
readonly defaultValue: "random";
|
|
194
|
+
readonly typeLabel: "{underline random/equidistant}";
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "seed";
|
|
197
|
+
readonly type: StringConstructor;
|
|
198
|
+
readonly description: "The random seed for sampling the slicing criteria if a maximum is set";
|
|
199
|
+
}];
|
|
200
|
+
export declare const exportQuadsOptions: [{
|
|
201
|
+
readonly name: "verbose";
|
|
202
|
+
readonly alias: "v";
|
|
203
|
+
readonly type: BooleanConstructor;
|
|
204
|
+
readonly description: "Run with verbose logging";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "help";
|
|
207
|
+
readonly alias: "h";
|
|
208
|
+
readonly type: BooleanConstructor;
|
|
209
|
+
readonly description: "Print this usage guide";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "input";
|
|
212
|
+
readonly alias: "i";
|
|
213
|
+
readonly type: StringConstructor;
|
|
214
|
+
readonly description: "Pass a folder or file as src to read from";
|
|
215
|
+
readonly multiple: true;
|
|
216
|
+
readonly defaultOption: true;
|
|
217
|
+
readonly defaultValue: readonly [];
|
|
218
|
+
readonly typeLabel: "{underline files/folders}";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "limit";
|
|
221
|
+
readonly alias: "l";
|
|
222
|
+
readonly type: NumberConstructor;
|
|
223
|
+
readonly description: "Limit the number of files to process";
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "output";
|
|
226
|
+
readonly alias: "o";
|
|
227
|
+
readonly type: StringConstructor;
|
|
228
|
+
readonly description: "File to write all the generated quads to (defaults to {italic out.quads})";
|
|
229
|
+
readonly typeLabel: "{underline file}";
|
|
230
|
+
}];
|
|
231
|
+
export declare const slicerOptions: [{
|
|
232
|
+
readonly name: "verbose";
|
|
233
|
+
readonly alias: "v";
|
|
234
|
+
readonly type: BooleanConstructor;
|
|
235
|
+
readonly description: "Run with verbose logging";
|
|
236
|
+
}, {
|
|
237
|
+
readonly name: "help";
|
|
238
|
+
readonly alias: "h";
|
|
239
|
+
readonly type: BooleanConstructor;
|
|
240
|
+
readonly description: "Print this usage guide";
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "input";
|
|
243
|
+
readonly alias: "i";
|
|
244
|
+
readonly type: StringConstructor;
|
|
245
|
+
readonly description: "(Required) Pass a single file to slice";
|
|
246
|
+
readonly multiple: false;
|
|
247
|
+
readonly defaultOption: true;
|
|
248
|
+
readonly typeLabel: "{underline files}";
|
|
249
|
+
}, {
|
|
250
|
+
readonly name: "input-is-text";
|
|
251
|
+
readonly alias: "r";
|
|
252
|
+
readonly type: BooleanConstructor;
|
|
253
|
+
readonly description: "Indicate, that the input is *not* a file, but R code to directly consume";
|
|
254
|
+
}, {
|
|
255
|
+
readonly name: "diff";
|
|
256
|
+
readonly alias: "d";
|
|
257
|
+
readonly type: BooleanConstructor;
|
|
258
|
+
readonly description: "This requires ansi-output and only works if the api option is not set. It visualizes the slice as a diff.";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "criterion";
|
|
261
|
+
readonly alias: "c";
|
|
262
|
+
readonly type: StringConstructor;
|
|
263
|
+
readonly description: "(Required) Slicing criterion either in the form {underline line:col} or {underline line@variable}, multiple can be separated by '{bold ;}'. If you do not want to slice but only process the file, pass an empty string.";
|
|
264
|
+
readonly multiple: false;
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "stats";
|
|
267
|
+
readonly alias: "s";
|
|
268
|
+
readonly type: BooleanConstructor;
|
|
269
|
+
readonly description: "Print stats and write them to {italic <output>.stats} (runtimes etc.)";
|
|
270
|
+
readonly multiple: false;
|
|
271
|
+
}, {
|
|
272
|
+
readonly name: "output";
|
|
273
|
+
readonly alias: "o";
|
|
274
|
+
readonly type: StringConstructor;
|
|
275
|
+
readonly description: "File to write all the generated quads to (defaults to the commandline)";
|
|
276
|
+
readonly typeLabel: "{underline file}";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "no-magic-comments";
|
|
279
|
+
readonly alias: "m";
|
|
280
|
+
readonly type: BooleanConstructor;
|
|
281
|
+
readonly description: "Disable the effects of magic comments which force lines to be included.";
|
|
282
|
+
}, {
|
|
283
|
+
readonly name: "api";
|
|
284
|
+
readonly type: BooleanConstructor;
|
|
285
|
+
readonly description: "Instead of human-readable output, dump a lot of json with the results of all intermediate steps.";
|
|
286
|
+
}];
|
|
287
|
+
export declare const statisticOptions: [{
|
|
288
|
+
readonly name: "verbose";
|
|
289
|
+
readonly alias: "v";
|
|
290
|
+
readonly type: BooleanConstructor;
|
|
291
|
+
readonly description: "Run with verbose logging";
|
|
292
|
+
}, {
|
|
293
|
+
readonly name: "help";
|
|
294
|
+
readonly alias: "h";
|
|
295
|
+
readonly type: BooleanConstructor;
|
|
296
|
+
readonly description: "Print this usage guide";
|
|
297
|
+
}, {
|
|
298
|
+
readonly name: "limit";
|
|
299
|
+
readonly alias: "l";
|
|
300
|
+
readonly type: NumberConstructor;
|
|
301
|
+
readonly description: "Limit the number of files to process";
|
|
302
|
+
}, {
|
|
303
|
+
readonly name: "input";
|
|
304
|
+
readonly alias: "i";
|
|
305
|
+
readonly type: StringConstructor;
|
|
306
|
+
readonly description: "Pass a folder or file as src to read from";
|
|
307
|
+
readonly multiple: true;
|
|
308
|
+
readonly defaultOption: true;
|
|
309
|
+
readonly defaultValue: readonly [];
|
|
310
|
+
readonly typeLabel: "{underline files/folders}";
|
|
311
|
+
}, {
|
|
312
|
+
readonly name: "output-dir";
|
|
313
|
+
readonly alias: "o";
|
|
314
|
+
readonly type: StringConstructor;
|
|
315
|
+
readonly description: "Folder to write the output to";
|
|
316
|
+
readonly defaultValue: `${string}/statistics-out/${string}`;
|
|
317
|
+
readonly typeLabel: "{underline folder}";
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "dump-json";
|
|
320
|
+
readonly type: BooleanConstructor;
|
|
321
|
+
readonly description: "Write JSON output during the extraction";
|
|
322
|
+
readonly typeLabel: "{underline folder}";
|
|
323
|
+
}, {
|
|
324
|
+
readonly name: "no-ansi";
|
|
325
|
+
readonly type: BooleanConstructor;
|
|
326
|
+
readonly description: "Disable ansi-escape-sequences in the output. Useful, if you want to redirect the output to a file.";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "parallel";
|
|
329
|
+
readonly alias: "p";
|
|
330
|
+
readonly type: StringConstructor;
|
|
331
|
+
readonly description: "Number of parallel executors (defaults to {italic max(cpu.count-1, 1)})";
|
|
332
|
+
readonly defaultValue: number;
|
|
333
|
+
readonly typeLabel: "{underline number}";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "features";
|
|
336
|
+
readonly type: StringConstructor;
|
|
337
|
+
readonly description: `Features to track, supported are "all" or ${string}`;
|
|
338
|
+
readonly multiple: true;
|
|
339
|
+
readonly defaultValue: "all";
|
|
340
|
+
readonly typeLabel: "{underline names}";
|
|
341
|
+
}];
|
|
342
|
+
export declare const statisticHelperOptions: [{
|
|
343
|
+
readonly name: "verbose";
|
|
344
|
+
readonly alias: "v";
|
|
345
|
+
readonly type: BooleanConstructor;
|
|
346
|
+
readonly description: "Run with verbose logging";
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "help";
|
|
349
|
+
readonly alias: "h";
|
|
350
|
+
readonly type: BooleanConstructor;
|
|
351
|
+
readonly description: "Print this usage guide";
|
|
352
|
+
}, {
|
|
353
|
+
readonly name: "input";
|
|
354
|
+
readonly alias: "i";
|
|
355
|
+
readonly type: StringConstructor;
|
|
356
|
+
readonly description: "Pass single file as src to read from";
|
|
357
|
+
readonly multiple: false;
|
|
358
|
+
readonly defaultOption: true;
|
|
359
|
+
readonly typeLabel: "{underline file}";
|
|
360
|
+
}, {
|
|
361
|
+
readonly name: "output-dir";
|
|
362
|
+
readonly alias: "o";
|
|
363
|
+
readonly type: StringConstructor;
|
|
364
|
+
readonly description: "Folder to write the output to";
|
|
365
|
+
readonly typeLabel: "{underline folder}";
|
|
366
|
+
}, {
|
|
367
|
+
readonly name: "root-dir";
|
|
368
|
+
readonly type: StringConstructor;
|
|
369
|
+
readonly description: "Root dir for the statistics files";
|
|
370
|
+
readonly defaultValue: "";
|
|
371
|
+
}, {
|
|
372
|
+
readonly name: "compress";
|
|
373
|
+
readonly type: BooleanConstructor;
|
|
374
|
+
readonly description: "Compress the output folder to a single file";
|
|
375
|
+
readonly defaultValue: false;
|
|
376
|
+
}, {
|
|
377
|
+
readonly name: "dump-json";
|
|
378
|
+
readonly type: BooleanConstructor;
|
|
379
|
+
readonly description: "Write JSON output during the extraction";
|
|
380
|
+
readonly typeLabel: "{underline folder}";
|
|
381
|
+
}, {
|
|
382
|
+
readonly name: "no-ansi";
|
|
383
|
+
readonly type: BooleanConstructor;
|
|
384
|
+
readonly description: "Disable ansi-escape-sequences in the output. Useful, if you want to redirect the output to a file.";
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "features";
|
|
387
|
+
readonly type: StringConstructor;
|
|
388
|
+
readonly description: `Features to track, supported are "all" or ${string}`;
|
|
389
|
+
readonly multiple: true;
|
|
390
|
+
readonly defaultValue: "all";
|
|
391
|
+
readonly typeLabel: "{underline names}";
|
|
392
|
+
}];
|
|
393
|
+
export declare const summarizerOptions: [{
|
|
394
|
+
readonly name: "verbose";
|
|
395
|
+
readonly alias: "v";
|
|
396
|
+
readonly type: BooleanConstructor;
|
|
397
|
+
readonly description: "Run with verbose logging";
|
|
398
|
+
}, {
|
|
399
|
+
readonly name: "help";
|
|
400
|
+
readonly alias: "h";
|
|
401
|
+
readonly type: BooleanConstructor;
|
|
402
|
+
readonly description: "Print this usage guide";
|
|
403
|
+
}, {
|
|
404
|
+
readonly name: "type";
|
|
405
|
+
readonly alias: "t";
|
|
406
|
+
readonly type: StringConstructor;
|
|
407
|
+
readonly description: "Manually specify if you want to post-process benchmark results, statistics, or compressed statistics (defaults to auto).";
|
|
408
|
+
readonly defaultValue: "auto";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "graph";
|
|
411
|
+
readonly alias: "g";
|
|
412
|
+
readonly type: BooleanConstructor;
|
|
413
|
+
readonly description: "Produce data to be used for visualizing benchmarks over time";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "categorize";
|
|
416
|
+
readonly type: BooleanConstructor;
|
|
417
|
+
readonly description: "Categorize the results (e.g., \"test\", \"example\", ...)";
|
|
418
|
+
readonly defaultValue: false;
|
|
419
|
+
}, {
|
|
420
|
+
readonly name: "project-skip";
|
|
421
|
+
readonly type: NumberConstructor;
|
|
422
|
+
readonly description: "Skip the first n folders to find the location of projects";
|
|
423
|
+
readonly defaultValue: 0;
|
|
424
|
+
}, {
|
|
425
|
+
readonly name: "ultimate-only";
|
|
426
|
+
readonly alias: "u";
|
|
427
|
+
readonly type: BooleanConstructor;
|
|
428
|
+
readonly description: "Only perform the second summary-stage, with this, the input is used to find the summary-output.";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "input";
|
|
431
|
+
readonly alias: "i";
|
|
432
|
+
readonly type: StringConstructor;
|
|
433
|
+
readonly description: "The {italic output} produced by the benchmark, the statistics, ...";
|
|
434
|
+
readonly defaultOption: true;
|
|
435
|
+
readonly multiple: false;
|
|
436
|
+
readonly typeLabel: "{underline file.json/output}";
|
|
437
|
+
}, {
|
|
438
|
+
readonly name: "output";
|
|
439
|
+
readonly alias: "o";
|
|
440
|
+
readonly type: StringConstructor;
|
|
441
|
+
readonly description: "Basename of the summaries (defaults to {italic <input>-summary})";
|
|
442
|
+
readonly typeLabel: "{underline file}";
|
|
443
|
+
}];
|
package/cli/common/options.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.slicerOptions = [
|
|
|
66
66
|
{ name: 'no-magic-comments', alias: 'm', type: Boolean, description: 'Disable the effects of magic comments which force lines to be included.' },
|
|
67
67
|
{ name: 'api', type: Boolean, description: 'Instead of human-readable output, dump a lot of json with the results of all intermediate steps.' },
|
|
68
68
|
];
|
|
69
|
-
const featureNameList =
|
|
69
|
+
const featureNameList = Array.from(feature_1.allFeatureNames).map(s => `"${s}"`).join(', ');
|
|
70
70
|
exports.statisticOptions = [
|
|
71
71
|
{ name: 'verbose', alias: 'v', type: Boolean, description: 'Run with verbose logging' },
|
|
72
72
|
{ name: 'help', alias: 'h', type: Boolean, description: 'Print this usage guide' },
|