-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommands.txt
More file actions
416 lines (276 loc) · 22.8 KB
/
Copy pathcommands.txt
File metadata and controls
416 lines (276 loc) · 22.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
########################################################
#### Step 0: Configuraion
########################################################
Place a `/root/SmartC2Rust/config.json` like the following:
{
"llm_choice" : "<LLM model>",
"claude_api_key" : "<Your API key>",
"azure_endpoint" : "<Endpoint if necessary>",
"test_mode": false,
"average": 400,
"ffi_strategy": "minimize"
}
########################################################
#### Step 1: Reformat test cases
########################################################
cd /root/SmartC2Rust/macro
# time-1.9
python3 pre_process.py /root/SmartC2Rust/benchmark/time-1.9 reformat base /root/SmartC2Rust/benchmark/time-1.9/base_test.sh
# avl
python3 pre_process.py /root/SmartC2Rust/benchmark/avl reformat base /root/SmartC2Rust/benchmark/avl/base_test.sh
# which-2.21
python3 pre_process.py /root/SmartC2Rust/benchmark/which-2.21 reformat base /root/SmartC2Rust/benchmark/which-2.21/base_test.sh
# Tinyhttpd
python3 pre_process.py /root/SmartC2Rust/benchmark/Tinyhttpd reformat base /root/SmartC2Rust/benchmark/Tinyhttpd/base_test.sh
# ht
python3 pre_process.py /root/SmartC2Rust/benchmark/ht reformat base /root/SmartC2Rust/benchmark/ht/base_test.sh
# buffer
python3 pre_process.py /root/SmartC2Rust/benchmark/buffer reformat base /root/SmartC2Rust/benchmark/buffer/base_test.sh
# qsort
python3 pre_process.py /root/SmartC2Rust/benchmark/qsort reformat base /root/SmartC2Rust/benchmark/qsort/base_test.sh
# rgba
python3 pre_process.py /root/SmartC2Rust/benchmark/rgba reformat base /root/SmartC2Rust/benchmark/rgba/base_test.sh
# bst
python3 pre_process.py /root/SmartC2Rust/benchmark/bst reformat base /root/SmartC2Rust/benchmark/bst/base_test.sh
# zopfli
python3 pre_process.py /root/SmartC2Rust/benchmark/zopfli reformat base /root/SmartC2Rust/benchmark/zopfli/base_test.sh
# FastestWebsiteEver
python3 pre_process.py /root/SmartC2Rust/benchmark/FastestWebsiteEver reformat base /root/SmartC2Rust/benchmark/FastestWebsiteEver/base_test.sh
# mark-sweep
python3 pre_process.py /root/SmartC2Rust/benchmark/mark-sweep reformat base /root/SmartC2Rust/benchmark/mark-sweep/base_test.sh
# sds
python3 pre_process.py /root/SmartC2Rust/benchmark/sds reformat base /root/SmartC2Rust/benchmark/sds/base_test.sh
# yank
python3 pre_process.py /root/SmartC2Rust/benchmark/yank reformat base /root/SmartC2Rust/benchmark/yank/base_test.sh
# tiny-AES-c
python3 pre_process.py /root/SmartC2Rust/benchmark/tiny-AES-c reformat base /root/SmartC2Rust/benchmark/tiny-AES-c/base_test.sh
# SipHash
python3 pre_process.py /root/SmartC2Rust/benchmark/SipHash reformat base /root/SmartC2Rust/benchmark/SipHash/base_test.sh
# c4
python3 pre_process.py /root/SmartC2Rust/benchmark/c4 reformat base /root/SmartC2Rust/benchmark/c4/base_test.sh
# urlparser
python3 pre_process.py /root/SmartC2Rust/benchmark/urlparser reformat base /root/SmartC2Rust/benchmark/urlparser/base_test.sh
# mcrcon
python3 pre_process.py /root/SmartC2Rust/benchmark/mcrcon reformat base /root/SmartC2Rust/benchmark/mcrcon/base_test.sh
# su-exec
python3 pre_process.py /root/SmartC2Rust/benchmark/su-exec reformat base /root/SmartC2Rust/benchmark/su-exec/base_test.sh
########################################################
#### Step 2: Get golden flows
########################################################
cd /root/SmartC2Rust/macro
# time-1.9
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/time-1.9 golden
# avl
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/avl golden
# which-2.21
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/which-2.21 golden
# Tinyhttpd
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/Tinyhttpd golden
# ht
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/ht golden
# buffer
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/buffer golden
# qsort
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/qsort golden
# rgba
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/rgba golden
# bst
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/bst golden
# zopfli
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/zopfli golden
# FastestWebsiteEver
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/FastestWebsiteEver golden
# mark-sweep
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/mark-sweep golden
# sds
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/sds golden
# yank
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/yank golden
# tiny-AES-c
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/tiny-AES-c golden
# SipHash
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/SipHash golden
# c4
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/c4 golden
# urlparser
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/urlparser golden
# mcrcon
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/mcrcon golden
# su-exec
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/su-exec golden
########################################################
#### Step 3: Pre-processing for parsing
########################################################
cd /root/SmartC2Rust/macro
# time-1.9
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/time-1.9 macro off /root/SmartC2Rust/macro/trans_re_0000/time-1.9/run_test.sh /root/SmartC2Rust/benchmark/time-1.9/targets.txt
# avl
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/avl macro off /root/SmartC2Rust/macro/trans_re_0000/avl/run_test.sh /root/SmartC2Rust/benchmark/avl/targets.txt
# which-2.21
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/which-2.21 macro off /root/SmartC2Rust/macro/trans_re_0000/which-2.21/run_test.sh /root/SmartC2Rust/benchmark/which-2.21/targets.txt
# Tinyhttpd
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/Tinyhttpd macro off /root/SmartC2Rust/macro/trans_re_0000/Tinyhttpd/run_test.sh /root/SmartC2Rust/benchmark/Tinyhttpd/targets.txt
# ht
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/ht macro off /root/SmartC2Rust/macro/trans_re_0000/ht/run_test.sh /root/SmartC2Rust/benchmark/ht/targets.txt
# buffer
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/buffer macro off /root/SmartC2Rust/macro/trans_re_0000/buffer/run_test.sh /root/SmartC2Rust/benchmark/buffer/targets.txt
# qsort
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/qsort macro off /root/SmartC2Rust/macro/trans_re_0000/qsort/run_test.sh /root/SmartC2Rust/benchmark/qsort/targets.txt
# rgba
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/rgba macro off /root/SmartC2Rust/macro/trans_re_0000/rgba/run_test.sh /root/SmartC2Rust/benchmark/rgba/targets.txt
# bst
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/bst macro off /root/SmartC2Rust/macro/trans_re_0000/bst/run_test.sh /root/SmartC2Rust/benchmark/bst/targets.txt
# zopfli
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/zopfli macro off /root/SmartC2Rust/macro/trans_re_0000/zopfli/run_test.sh /root/SmartC2Rust/benchmark/zopfli/targets.txt
# FastestWebsiteEver
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/FastestWebsiteEver macro off /root/SmartC2Rust/macro/trans_re_0000/FastestWebsiteEver/run_test.sh /root/SmartC2Rust/benchmark/FastestWebsiteEver/targets.txt
# mark-sweep
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/mark-sweep macro off /root/SmartC2Rust/macro/trans_re_0000/mark-sweep/run_test.sh /root/SmartC2Rust/benchmark/mark-sweep/targets.txt
# sds
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/sds macro off /root/SmartC2Rust/macro/trans_re_0000/sds/run_test.sh /root/SmartC2Rust/benchmark/sds/targets.txt
# yank
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/yank macro off /root/SmartC2Rust/macro/trans_re_0000/yank/run_test.sh /root/SmartC2Rust/benchmark/yank/targets.txt
# tiny-AES-c
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/tiny-AES-c macro off /root/SmartC2Rust/macro/trans_re_0000/tiny-AES-c/run_test.sh /root/SmartC2Rust/benchmark/tiny-AES-c/targets.txt
# SipHash
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/SipHash macro off /root/SmartC2Rust/macro/trans_re_0000/SipHash/run_test.sh /root/SmartC2Rust/benchmark/SipHash/targets.txt
# c4
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/c4 macro off /root/SmartC2Rust/macro/trans_re_0000/c4/run_test.sh /root/SmartC2Rust/benchmark/c4/targets.txt
# urlparser
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/urlparser macro off /root/SmartC2Rust/macro/trans_re_0000/urlparser/run_test.sh /root/SmartC2Rust/benchmark/urlparser/targets.txt
# mcrcon
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/mcrcon macro off /root/SmartC2Rust/macro/trans_re_0000/mcrcon/run_test.sh /root/SmartC2Rust/benchmark/mcrcon/targets.txt
# su-exec
python3 pre_process.py /root/SmartC2Rust/macro/trans_re_0000/su-exec macro off /root/SmartC2Rust/macro/trans_re_0000/su-exec/run_test.sh /root/SmartC2Rust/benchmark/su-exec/targets.txt
########################################################
#### Step 4: Pre-processing for segmentation
########################################################
cd /root/SmartC2Rust/trans
# time-1.9
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/time-1.9 meta /root/SmartC2Rust/benchmark/time-1.9/targets.txt /root/SmartC2Rust/macro/metadata_0000/time-1.9 /root/SmartC2Rust/macro/div_metadata_0000/time-1.9 /root/SmartC2Rust/macro/trans_c_0000/time-1.9
# avl
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/avl meta /root/SmartC2Rust/benchmark/avl/targets.txt /root/SmartC2Rust/macro/metadata_0000/avl /root/SmartC2Rust/macro/div_metadata_0000/avl /root/SmartC2Rust/macro/trans_c_0000/avl
# which-2.21
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/which-2.21 meta /root/SmartC2Rust/benchmark/which-2.21/targets.txt /root/SmartC2Rust/macro/metadata_0000/which-2.21 /root/SmartC2Rust/macro/div_metadata_0000/which-2.21 /root/SmartC2Rust/macro/trans_c_0000/which-2.21
# Tinyhttpd
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/Tinyhttpd meta /root/SmartC2Rust/benchmark/Tinyhttpd/targets.txt /root/SmartC2Rust/macro/metadata_0000/Tinyhttpd /root/SmartC2Rust/macro/div_metadata_0000/Tinyhttpd /root/SmartC2Rust/macro/trans_c_0000/Tinyhttpd
# ht
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/ht meta /root/SmartC2Rust/benchmark/ht/targets.txt /root/SmartC2Rust/macro/metadata_0000/ht /root/SmartC2Rust/macro/div_metadata_0000/ht /root/SmartC2Rust/macro/trans_c_0000/ht
# buffer
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/buffer meta /root/SmartC2Rust/benchmark/buffer/targets.txt /root/SmartC2Rust/macro/metadata_0000/buffer /root/SmartC2Rust/macro/div_metadata_0000/buffer /root/SmartC2Rust/macro/trans_c_0000/buffer
# qsort
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/qsort meta /root/SmartC2Rust/benchmark/qsort/targets.txt /root/SmartC2Rust/macro/metadata_0000/qsort /root/SmartC2Rust/macro/div_metadata_0000/qsort /root/SmartC2Rust/macro/trans_c_0000/qsort
# rgba
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/rgba meta /root/SmartC2Rust/benchmark/rgba/targets.txt /root/SmartC2Rust/macro/metadata_0000/rgba /root/SmartC2Rust/macro/div_metadata_0000/rgba /root/SmartC2Rust/macro/trans_c_0000/rgba
# bst
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/bst meta /root/SmartC2Rust/benchmark/bst/targets.txt /root/SmartC2Rust/macro/metadata_0000/bst /root/SmartC2Rust/macro/div_metadata_0000/bst /root/SmartC2Rust/macro/trans_c_0000/bst
# zopfli
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/zopfli meta /root/SmartC2Rust/benchmark/zopfli/targets.txt /root/SmartC2Rust/macro/metadata_0000/zopfli /root/SmartC2Rust/macro/div_metadata_0000/zopfli /root/SmartC2Rust/macro/trans_c_0000/zopfli
# FastestWebsiteEver
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/FastestWebsiteEver meta /root/SmartC2Rust/benchmark/FastestWebsiteEver/targets.txt /root/SmartC2Rust/macro/metadata_0000/FastestWebsiteEver /root/SmartC2Rust/macro/div_metadata_0000/FastestWebsiteEver /root/SmartC2Rust/macro/trans_c_0000/FastestWebsiteEver
# mark-sweep
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/mark-sweep meta /root/SmartC2Rust/benchmark/mark-sweep/targets.txt /root/SmartC2Rust/macro/metadata_0000/mark-sweep /root/SmartC2Rust/macro/div_metadata_0000/mark-sweep /root/SmartC2Rust/macro/trans_c_0000/mark-sweep
# sds
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/sds meta /root/SmartC2Rust/benchmark/sds/targets.txt /root/SmartC2Rust/macro/metadata_0000/sds /root/SmartC2Rust/macro/div_metadata_0000/sds /root/SmartC2Rust/macro/trans_c_0000/sds
# yank
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/yank meta /root/SmartC2Rust/benchmark/yank/targets.txt /root/SmartC2Rust/macro/metadata_0000/yank /root/SmartC2Rust/macro/div_metadata_0000/yank /root/SmartC2Rust/macro/trans_c_0000/yank
# tiny-AES-c
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/tiny-AES-c meta /root/SmartC2Rust/benchmark/tiny-AES-c/targets.txt /root/SmartC2Rust/macro/metadata_0000/tiny-AES-c /root/SmartC2Rust/macro/div_metadata_0000/tiny-AES-c /root/SmartC2Rust/macro/trans_c_0000/tiny-AES-c
# SipHash
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/SipHash meta /root/SmartC2Rust/benchmark/SipHash/targets.txt /root/SmartC2Rust/macro/metadata_0000/SipHash /root/SmartC2Rust/macro/div_metadata_0000/SipHash /root/SmartC2Rust/macro/trans_c_0000/SipHash
# c4
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/c4 meta /root/SmartC2Rust/benchmark/c4/targets.txt /root/SmartC2Rust/macro/metadata_0000/c4 /root/SmartC2Rust/macro/div_metadata_0000/c4 /root/SmartC2Rust/macro/trans_c_0000/c4
# urlparser
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/urlparser meta /root/SmartC2Rust/benchmark/urlparser/targets.txt /root/SmartC2Rust/macro/metadata_0000/urlparser /root/SmartC2Rust/macro/div_metadata_0000/urlparser /root/SmartC2Rust/macro/trans_c_0000/urlparser
# mcrcon
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/mcrcon meta /root/SmartC2Rust/benchmark/mcrcon/targets.txt /root/SmartC2Rust/macro/metadata_0000/mcrcon /root/SmartC2Rust/macro/div_metadata_0000/mcrcon /root/SmartC2Rust/macro/trans_c_0000/mcrcon
# su-exec
python3 pre_process.py /root/SmartC2Rust/macro/trans_c_0000/su-exec meta /root/SmartC2Rust/benchmark/su-exec/targets.txt /root/SmartC2Rust/macro/metadata_0000/su-exec /root/SmartC2Rust/macro/div_metadata_0000/su-exec /root/SmartC2Rust/macro/trans_c_0000/su-exec
########################################################
#### Step 5: Compilation-repair
########################################################
cd /root/SmartC2Rust/trans
# time-1.9
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/time-1.9 /root/SmartC2Rust/trans/trans_c_0000/time-1.9 /root/SmartC2Rust/benchmark/time-1.9/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/time-1.9 /root/SmartC2Rust/trans/div_metadata_0000/time-1.9 database_0000/time-1.9/block_output.txt off
# avl
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/avl /root/SmartC2Rust/trans/trans_c_0000/avl /root/SmartC2Rust/benchmark/avl/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/avl /root/SmartC2Rust/trans/div_metadata_0000/avl database_0000/avl/block_output.txt off
# which-2.21
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/which-2.21 /root/SmartC2Rust/trans/trans_c_0000/which-2.21 /root/SmartC2Rust/benchmark/which-2.21/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/which-2.21 /root/SmartC2Rust/trans/div_metadata_0000/which-2.21 database_0000/which-2.21/block_output.txt off
# Tinyhttpd
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/Tinyhttpd /root/SmartC2Rust/trans/trans_c_0000/Tinyhttpd /root/SmartC2Rust/benchmark/Tinyhttpd/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/Tinyhttpd /root/SmartC2Rust/trans/div_metadata_0000/Tinyhttpd database_0000/Tinyhttpd/block_output.txt off
# ht
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/ht /root/SmartC2Rust/trans/trans_c_0000/ht /root/SmartC2Rust/benchmark/ht/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/ht /root/SmartC2Rust/trans/div_metadata_0000/ht database_0000/ht/block_output.txt off
# buffer
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/buffer /root/SmartC2Rust/trans/trans_c_0000/buffer /root/SmartC2Rust/benchmark/buffer/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/buffer /root/SmartC2Rust/trans/div_metadata_0000/buffer database_0000/buffer/block_output.txt off
# qsort
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/qsort /root/SmartC2Rust/trans/trans_c_0000/qsort /root/SmartC2Rust/benchmark/qsort/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/qsort /root/SmartC2Rust/trans/div_metadata_0000/qsort database_0000/qsort/block_output.txt off
# rgba
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/rgba /root/SmartC2Rust/trans/trans_c_0000/rgba /root/SmartC2Rust/benchmark/rgba/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/rgba /root/SmartC2Rust/trans/div_metadata_0000/rgba database_0000/rgba/block_output.txt off
# bst
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/bst /root/SmartC2Rust/trans/trans_c_0000/bst /root/SmartC2Rust/benchmark/bst/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/bst /root/SmartC2Rust/trans/div_metadata_0000/bst database_0000/bst/block_output.txt off
# zopfli
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/zopfli /root/SmartC2Rust/trans/trans_c_0000/zopfli /root/SmartC2Rust/benchmark/zopfli/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/zopfli /root/SmartC2Rust/trans/div_metadata_0000/zopfli database_0000/zopfli/block_output.txt off
# FastestWebsiteEver
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/FastestWebsiteEver /root/SmartC2Rust/trans/trans_c_0000/FastestWebsiteEver /root/SmartC2Rust/benchmark/FastestWebsiteEver/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/FastestWebsiteEver /root/SmartC2Rust/trans/div_metadata_0000/FastestWebsiteEver database_0000/FastestWebsiteEver/block_output.txt off
# mark-sweep
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/mark-sweep /root/SmartC2Rust/trans/trans_c_0000/mark-sweep /root/SmartC2Rust/benchmark/mark-sweep/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/mark-sweep /root/SmartC2Rust/trans/div_metadata_0000/mark-sweep database_0000/mark-sweep/block_output.txt off
# sds
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/sds /root/SmartC2Rust/trans/trans_c_0000/sds /root/SmartC2Rust/benchmark/sds/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/sds /root/SmartC2Rust/trans/div_metadata_0000/sds database_0000/sds/block_output.txt off
# yank
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/yank /root/SmartC2Rust/trans/trans_c_0000/yank /root/SmartC2Rust/benchmark/yank/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/yank /root/SmartC2Rust/trans/div_metadata_0000/yank database_0000/yank/block_output.txt off
# tiny-AES-c
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/tiny-AES-c /root/SmartC2Rust/trans/trans_c_0000/tiny-AES-c /root/SmartC2Rust/benchmark/tiny-AES-c/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/tiny-AES-c /root/SmartC2Rust/trans/div_metadata_0000/tiny-AES-c database_0000/tiny-AES-c/block_output.txt off
# SipHash
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/SipHash /root/SmartC2Rust/trans/trans_c_0000/SipHash /root/SmartC2Rust/benchmark/SipHash/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/SipHash /root/SmartC2Rust/trans/div_metadata_0000/SipHash database_0000/SipHash/block_output.txt off
# c4
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/c4 /root/SmartC2Rust/trans/trans_c_0000/c4 /root/SmartC2Rust/benchmark/c4/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/c4 /root/SmartC2Rust/trans/div_metadata_0000/c4 database_0000/c4/block_output.txt off
# urlparser
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/urlparser /root/SmartC2Rust/trans/trans_c_0000/urlparser /root/SmartC2Rust/benchmark/urlparser/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/urlparser /root/SmartC2Rust/trans/div_metadata_0000/urlparser database_0000/urlparser/block_output.txt off
# mcrcon
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/mcrcon /root/SmartC2Rust/trans/trans_c_0000/mcrcon /root/SmartC2Rust/benchmark/mcrcon/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/mcrcon /root/SmartC2Rust/trans/div_metadata_0000/mcrcon database_0000/mcrcon/block_output.txt off
# su-exec
python3 compile.py /root/SmartC2Rust/trans/c_code_0000/su-exec /root/SmartC2Rust/trans/trans_c_0000/su-exec /root/SmartC2Rust/benchmark/su-exec/targets_actual.txt trans /root/SmartC2Rust/trans/metadata_0000/su-exec /root/SmartC2Rust/trans/div_metadata_0000/su-exec database_0000/su-exec/block_output.txt off
########################################################
#### Step 6: Semantics-repair
########################################################
cd /root/SmartC2Rust/trans
# time-1.9
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_time-1.9/time-1.9
# avl
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_avl/avl
# which-2.21
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_which-2.21/which-2.21
# Tinyhttpd
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_Tinyhttpd/Tinyhttpd
# ht
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_ht/ht
# buffer
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_buffer/buffer
# qsort
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_qsort/qsort
# rgba
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_rgba/rgba
# bst
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_bst/bst
# zopfli
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_zopfli/zopfli
# FastestWebsiteEver
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_FastestWebsiteEver/FastestWebsiteEver
# mark-sweep
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_mark-sweep/mark-sweep
# sds
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_sds/sds
# yank
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_yank/yank
# tiny-AES-c
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_tiny-AES-c/tiny-AES-c
# SipHash
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_SipHash/SipHash
# c4
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_c4/c4
# urlparser
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_urlparser/urlparser
# mcrcon
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_mcrcon/mcrcon
# su-exec
python3 semantics.py s_repair /root/SmartC2Rust/trans/workspace_0000_su-exec/su-exec