test list

This commit is contained in:
anil
2020-08-19 15:07:37 +02:00
parent bfcd2aacc5
commit cb293de686
242 changed files with 370216 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
## Running `php` bugs
After running the container you need to follow the following
steps to prepare `SOSRepair` for running:
1. Copy `makeout`, `compile.sh` and `tests-list` to
the container's `/experiment/`.
2. Copy `settings.py` to the container's `/opt/sosrepair/sosrepair`.
3. In the container, reconfigure the project with coverage flags:
```
cd /experiment/src
./configure "CFLAGS=-fprofile-arcs -ftest-coverage" "CXXFLAGS=-fprofile-arcs -ftest-coverage" "LDFLAGS=-lgcov"
make clean
make
```
4. Run `/opt/sosrepair/prepare/setup.sh`.
5. Set proper permissions by running `sudo chmod -R 777 /opt/sosrepair/sosrepair`.
6. Setup environment variables:
```
export PYTHONPATH="/opt/sosrepair/bindings:${PYTHONPATH}"
export CPATH=":/opt/sosrepair/include"
export PATH="/opt/sosrepair/bin:$PATH"
```
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $DIR/src
#make clean
(make && exit 0)|| exit 1
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
CONTAINER=$1
BUG=$2
docker cp compile.sh $CONTAINER:/experiment/
#docker cp $BUG/test.sh $CONTAINER:/experiment/
docker cp $BUG/tests-list.txt $CONTAINER:/experiment/
docker cp $BUG/settings.py $CONTAINER:/opt/sosrepair/sosrepair/
File diff suppressed because one or more lines are too long
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/date/php_date.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (3076, 3095)
# IF SOS+
# METHOD_RANGE = (3088, 3088)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,13 @@
n1
p2414
p2378
p2327
p2315
p2298
p2256
p2156
p2102
p2087
p2054
p2042
p2031
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/main/streams/userspace.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (854, 893)
# IF SOS+
# METHOD_RANGE = (858, 859)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,6 @@
n1
p7273
p1845
p1609
p1298
p59
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/phar/phar.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (1246, 1318)
# IF SOS+
# METHOD_RANGE = (1268, 1268)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,230 @@
n2
n1
p2559
p2558
p2557
p2556
p2555
p2554
p2553
p2552
p2551
p2550
p2549
p2548
p2547
p2546
p2545
p2544
p2543
p2542
p2541
p2540
p2539
p2538
p2537
p2536
p2535
p2534
p2532
p2531
p2530
p2526
p2525
p2524
p2523
p2522
p2521
p2519
p2518
p2517
p2516
p2515
p2514
p2513
p2512
p2511
p2510
p2509
p2508
p2507
p2506
p2502
p2501
p2500
p2499
p2496
p2495
p2494
p2493
p2492
p2491
p2490
p2489
p2488
p2487
p2486
p2485
p2484
p2483
p2482
p2481
p2480
p2479
p2478
p2477
p2476
p2475
p2474
p2473
p2472
p2471
p2470
p2469
p2467
p2466
p2465
p2464
p2463
p2442
p2441
p2440
p2439
p2438
p2437
p2435
p2434
p2433
p2432
p2431
p2430
p2429
p2428
p2427
p2426
p2425
p2424
p2423
p2422
p2421
p2420
p2419
p2418
p2416
p2415
p2414
p2413
p2412
p2411
p2410
p2409
p2408
p2407
p2406
p2405
p2404
p2403
p2402
p2401
p2400
p2399
p2398
p2397
p2396
p2395
p2394
p2393
p2392
p2390
p2389
p2388
p2387
p2386
p2385
p2384
p2383
p2382
p2380
p2377
p2376
p2375
p2374
p2373
p2371
p2370
p2369
p2368
p2367
p2366
p2365
p2364
p2363
p2362
p2361
p2360
p2359
p2358
p2357
p2356
p2355
p2354
p2353
p2352
p2351
p2350
p2349
p2348
p2345
p2342
p2341
p2340
p2339
p2338
p2337
p2336
p2335
p2331
p2296
p2295
p2294
p2293
p2292
p2290
p2286
p2285
p2284
p2282
p2281
p2280
p2246
p2245
p2244
p2243
p2242
p2239
p2238
p2237
p2236
p2235
p2234
p2233
p2232
p2231
p2230
p2229
p2228
p2227
p2226
p2225
p2224
p2223
p2222
p2221
p2220
p2219
p2218
p2217
p2216
p2215
p2212
p2211
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/tokenizer/tokenizer.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (104, 158)
# IF SOS+
# METHOD_RANGE = (154, 154)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,24 @@
n2
n1
p5596
p5595
p5594
p5593
p5592
p5591
p5590
p5589
p5588
p5586
p5585
p5584
p5583
p5581
p5580
p5579
p5578
p5577
p5576
p5575
p5574
p5573
@@ -0,0 +1,2 @@
For running SOS+ you need to limit the variables to the set of
`s`, `pp`, and `ret` for it to be able to find the perfect repair.
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/standard/url.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (99, 364)
# IF SOS+
# METHOD_RANGE = (319, 320)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,24 @@
n1
p4814
p4764
p4743
p4255
p4220
p4218
p4216
p4214
p4209
p4204
p4200
p4193
p4191
p4190
p4187
p4186
p3871
p2978
p1891
p1675
p1359
p1341
p1298
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/spl/spl_directory.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (221, 243)
# IF SOS+
# METHOD_RANGE = (236, 237)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,210 @@
n1
p5363
p3402
p3401
p3400
p3399
p3398
p3397
p3372
p3356
p3343
p3342
p3115
p3114
p3113
p3112
p3110
p2569
p2568
p2567
p2566
p2565
p2564
p2563
p2562
p2561
p2560
p2559
p2558
p2557
p2556
p2555
p2554
p2553
p2552
p2551
p2550
p2549
p2548
p2547
p2546
p2545
p2544
p2542
p2541
p2540
p2536
p2535
p2534
p2533
p2532
p2531
p2529
p2518
p2517
p2516
p2512
p2511
p2509
p2503
p2499
p2498
p2497
p2496
p2495
p2494
p2493
p2492
p2491
p2490
p2489
p2488
p2487
p2486
p2485
p2484
p2483
p2482
p2481
p2480
p2479
p2477
p2476
p2475
p2473
p2452
p2451
p2450
p2449
p2448
p2447
p2445
p2444
p2443
p2441
p2440
p2439
p2438
p2437
p2436
p2431
p2429
p2428
p2426
p2425
p2424
p2423
p2422
p2420
p2419
p2418
p2417
p2416
p2415
p2414
p2413
p2412
p2411
p2410
p2409
p2408
p2407
p2406
p2405
p2404
p2403
p2402
p2401
p2400
p2399
p2398
p2397
p2396
p2395
p2394
p2393
p2392
p2387
p2386
p2385
p2384
p2383
p2381
p2380
p2379
p2378
p2376
p2375
p2374
p2373
p2372
p2371
p2370
p2369
p2368
p2367
p2366
p2365
p2364
p2363
p2362
p2361
p2360
p2359
p2357
p2350
p2349
p2348
p2347
p2346
p2345
p2344
p2340
p2304
p2303
p2302
p2299
p2295
p2294
p2293
p2290
p2289
p2255
p2254
p2253
p2252
p2251
p2247
p2246
p2245
p2244
p2243
p2242
p2241
p2240
p2238
p2237
p2236
p2234
p2233
p2232
p2230
p2239
p2227
p2226
p2225
p2224
p2223
p2220
p2219
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/date/php_date.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (3741, 3820)
# IF SOS+
# METHOD_RANGE = (3765, 3765)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,6 @@
n1
p498
p488
p307
p160
p87
@@ -0,0 +1,3 @@
The fault localization cannot report any of the lines in
the buggy function, therefore we consider all lines of the
function equally buggy.
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/phar/phar_object.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (570, 647)
# IF SOS+
# METHOD_RANGE = (632, 633)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,9 @@
n1
p5234
p5206
p5204
p5150
p5130
p5125
p5003
p5001
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/standard/string.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (5230, 5265)
# IF SOS+
# METHOD_RANGE = (5255, 5256)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,3 @@
n1
p3336
p3280
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_object_handlers.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (380, 474)
# IF SOS+
# METHOD_RANGE = (449, 450)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,638 @@
n1
p7540
p7408
p7407
p7406
p7405
p7401
p7400
p7399
p7398
p7396
p7394
p7378
p7377
p7359
p7351
p7339
p7336
p7332
p7328
p7320
p7319
p7316
p7307
p7306
p7305
p7302
p7299
p7287
p7286
p7285
p7284
p7279
p7278
p7201
p7199
p7194
p7187
p7175
p7173
p7164
p7163
p7162
p7161
p7160
p7159
p7157
p7155
p7153
p7138
p7134
p7133
p7132
p7131
p7128
p7127
p7126
p7123
p7099
p7098
p7097
p7096
p7095
p7079
p7078
p7071
p7070
p7068
p7061
p7046
p7044
p7036
p7032
p7028
p7024
p7023
p7022
p7021
p7020
p7007
p7005
p7004
p7003
p7002
p7001
p7000
p6999
p6998
p6997
p6994
p6993
p6980
p6979
p6976
p6969
p6889
p6888
p6887
p6835
p6753
p6143
p5869
p5863
p5848
p5846
p5841
p5823
p5821
p5553
p5499
p5491
p5406
p5378
p5363
p5360
p5348
p5344
p5341
p5339
p5332
p5331
p5330
p5329
p5328
p5327
p5288
p5242
p5219
p5180
p5177
p5146
p5145
p5144
p5007
p4781
p4780
p4779
p4770
p4688
p4674
p4667
p4568
p4547
p4464
p4463
p4410
p4350
p4335
p4332
p4319
p4314
p4245
p4239
p4235
p4229
p4179
p4177
p4169
p4156
p4154
p4146
p4104
p3960
p3899
p3731
p3709
p3704
p3693
p3682
p3672
p3665
p3653
p3652
p3647
p3646
p3643
p3638
p3637
p3635
p3629
p3624
p3622
p3620
p3619
p3616
p3615
p3613
p3611
p3609
p3595
p3582
p3581
p3575
p3574
p3573
p3572
p3566
p3565
p3561
p3559
p3558
p3557
p3556
p3555
p3533
p3532
p3526
p3524
p3523
p3520
p3519
p3518
p3516
p3514
p3511
p3509
p3508
p3507
p3505
p3501
p3500
p3499
p3498
p3481
p3480
p3478
p3477
p3476
p3471
p3467
p3462
p3460
p3459
p3458
p3457
p3452
p3451
p3450
p3449
p3443
p3441
p3439
p3438
p3419
p3418
p3417
p3414
p3407
p3399
p3398
p3397
p3391
p3389
p3388
p3387
p3371
p3366
p3363
p3362
p3360
p3359
p3355
p3353
p3347
p3341
p3335
p3329
p3326
p3316
p3311
p3309
p3307
p3306
p3305
p3301
p3298
p3291
p3282
p3281
p3279
p3278
p3277
p3276
p3272
p3270
p3269
p3268
p3263
p3262
p3260
p3254
p3204
p3198
p3172
p3170
p3168
p3166
p3151
p3150
p3149
p3146
p3145
p3124
p3122
p3117
p3114
p3113
p3112
p2995
p2969
p2887
p2886
p2869
p2868
p2859
p2858
p2851
p2850
p2849
p2846
p2838
p2830
p2818
p2808
p2802
p2799
p2798
p2796
p2790
p2787
p2786
p2784
p2781
p2778
p2777
p2768
p2766
p2740
p2737
p2736
p2735
p2732
p2730
p2726
p2725
p2722
p2703
p2685
p2684
p2683
p2681
p2676
p2673
p2657
p2647
p2646
p2645
p2644
p2643
p2642
p2627
p2626
p2604
p2581
p2580
p2577
p2575
p2574
p2568
p2565
p2563
p2558
p2557
p2556
p2544
p2540
p2532
p2531
p2530
p2529
p2528
p2527
p2526
p2525
p2524
p2523
p2522
p2521
p2517
p2515
p2514
p2513
p2512
p2511
p2510
p2509
p2508
p2507
p2506
p2505
p2504
p2503
p2500
p2493
p2492
p2491
p2478
p2468
p2466
p2465
p2460
p2459
p2456
p2448
p2447
p2446
p2445
p2444
p2440
p2432
p2431
p2429
p2428
p2427
p2424
p2422
p2421
p2416
p2415
p2412
p2406
p2402
p2401
p2400
p2392
p2390
p2387
p2382
p2378
p2377
p2376
p2371
p2366
p2365
p2355
p2354
p2350
p2349
p2337
p2336
p2335
p2323
p2321
p2320
p2315
p2314
p2299
p2286
p2285
p2284
p2272
p2270
p2269
p2264
p2263
p2241
p2240
p2239
p2235
p2234
p2233
p2231
p2230
p2229
p2228
p2226
p2224
p2223
p2205
p2204
p2203
p2202
p2201
p2200
p2199
p2198
p2195
p2184
p2183
p2181
p2180
p2179
p2069
p2067
p2040
p1877
p1748
p1742
p1727
p1715
p1710
p1693
p1656
p1644
p1639
p1636
p1635
p1633
p1632
p1630
p1622
p1615
p1612
p1610
p1552
p1352
p1351
p1350
p1317
p1197
p1196
p1195
p1176
p1175
p1168
p1056
p1051
p1043
p1026
p976
p957
p954
p952
p934
p903
p793
p723
p722
p695
p687
p686
p685
p674
p665
p645
p643
p642
p641
p640
p636
p634
p628
p572
p568
p567
p565
p561
p559
p558
p557
p555
p531
p527
p520
p515
p514
p501
p499
p494
p427
p421
p419
p416
p401
p396
p394
p391
p383
p381
p380
p379
p371
p370
p362
p360
p353
p351
p340
p331
p330
p297
p278
p270
p264
p262
p259
p248
p247
p245
p244
p241
p238
p236
p226
p224
p220
p218
p211
p208
p199
p193
p191
p188
p182
p180
p175
p173
p158
p147
p142
p136
p131
p127
p125
p117
p107
p106
p100
p88
p84
p83
p77
p76
p72
p69
p60
p48
p29
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,26 @@
n1
p5727
p2545
p1987
p1724
p1703
p1699
p1671
p1613
p1579
p1557
p1429
p1353
p1255
p1232
p1106
p1104
p1099
p1088
p968
p833
p831
p826
p784
p725
p721
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/libxml/libxml.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (273, 326)
# IF SOS+
# METHOD_RANGE = (315, 315)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,53 @@
n1
p6872
p6871
p6858
p6857
p6856
p6853
p6852
p6848
p6847
p6846
p6843
p6839
p6838
p6834
p6833
p6830
p6829
p6828
p3109
p3108
p3065
p3063
p3025
p3024
p2075
p1753
p1748
p1747
p1746
p1727
p1725
p1721
p1697
p1696
p1694
p1693
p1692
p1691
p1690
p1689
p1688
p1687
p1686
p1685
p1684
p1683
p1682
p1676
p1673
p1671
p1670
p1668
@@ -0,0 +1,82 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_constants.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (100, 159)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,82 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = ()
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_compile.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (2464, 2566)
# IF SOS+
# METHOD_RANGE = (2490, 2491)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/json/json.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (221, 345)
# IF SOS+
# METHOD_RANGE (300, 300)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,18 @@
n1
p2156
p2155
p2154
p2153
p2150
p2149
p2146
p2141
p2138
p2136
p2130
p2129
p2125
p2124
p2123
p2122
p2121
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_compile.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (5025, 5046)
# IF SOS+
# METHOD_RANGE = (5026, 5027)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,91 @@
n1
p7670
p7499
p7188
p7187
p7186
p7184
p7183
p7181
p7179
p7178
p7177
p7176
p7175
p7174
p7173
p7172
p7171
p7170
p7169
p7168
p7167
p7166
p7165
p7164
p7163
p7162
p7161
p7160
p7158
p7157
p7155
p7154
p7152
p7151
p7150
p7149
p7148
p7147
p7146
p7145
p7144
p7143
p7142
p7141
p7140
p7139
p7138
p7137
p7136
p7135
p7134
p7133
p7132
p7131
p7129
p7128
p7127
p7126
p7124
p7123
p7122
p7121
p7120
p7119
p7118
p7117
p7116
p7115
p7114
p7113
p7112
p7111
p7110
p7109
p7107
p7105
p7104
p7102
p7101
p7100
p7018
p6858
p6669
p6635
p4774
p4611
p3890
p966
p943
p894
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_API.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (1107, 1129)
# IF SOS+
# METHOD_RANGE = (1110, 1110)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_compile.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (3595, 3658)
# IF SOS+
# METHOD_RANGE = (3620, 3631)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,68 @@
n2
n1
p7189
p7188
p7187
p7182
p7180
p7178
p7177
p7175
p7174
p7173
p7172
p7171
p7170
p7167
p7166
p7165
p7164
p7163
p7161
p7160
p7158
p7157
p7154
p7152
p7151
p7150
p7149
p7148
p7146
p7144
p7141
p7140
p7139
p7138
p7137
p7136
p7135
p7134
p7133
p7132
p7131
p7129
p7128
p7127
p7126
p7123
p7121
p7120
p7119
p7118
p7117
p7116
p7115
p7114
p7113
p7112
p7109
p7107
p7104
p7102
p7100
p7018
p6858
p6669
p6635
p4774
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/spl/spl_directory.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (1221, 1258)
# IF SOS+
# METHOD_RANGE = (1233, 1233)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/standard/file.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (800, 828)
# IF SOS+
# METHOD_RANGE = (822, 823)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,21 @@
n1
p1
p10
p100
p1000
p2
p20
p200
p2000
p3
p30
p300
p3000
p4
p40
p400
p4000
p5
p50
p500
p5000
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_compile.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (5311, 5324)
# IF SOS+
# METHOD_RANGE = (5314, 5314)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,233 @@
n1
p7748
p7563
p7541
p7094
p7093
p6981
p6793
p6620
p5401
p5398
p5396
p5395
p5389
p5385
p5384
p5379
p5377
p5376
p5373
p5370
p5368
p5367
p5362
p5357
p5355
p5353
p5351
p5347
p5346
p5344
p5342
p5340
p5339
p5338
p5337
p5334
p5333
p5332
p5331
p5330
p5329
p5328
p5327
p5326
p5325
p5324
p5323
p5322
p5321
p5320
p5319
p5318
p5317
p5316
p5315
p5314
p5313
p5311
p5310
p5309
p5308
p5307
p5306
p5305
p5304
p5303
p5302
p5301
p5300
p5299
p5298
p5297
p5296
p5295
p5294
p5293
p5292
p5291
p5290
p5289
p5288
p5287
p5286
p5285
p5284
p5283
p5282
p5281
p5280
p5279
p5278
p5277
p5276
p5274
p5272
p5269
p5267
p5265
p5264
p5261
p5260
p5259
p5257
p5256
p5255
p5253
p5252
p5251
p5250
p5249
p5248
p5246
p5245
p5242
p5240
p5237
p5236
p5234
p5232
p5231
p5230
p5228
p5227
p5226
p5225
p5224
p5223
p5222
p5221
p5219
p5217
p5215
p5214
p5211
p5210
p5209
p5205
p5204
p5201
p5196
p5195
p5194
p5190
p5188
p5187
p5186
p5185
p5183
p5181
p5180
p5177
p5173
p5171
p5169
p5164
p5162
p5160
p5159
p5158
p5156
p5155
p5154
p5153
p5149
p5146
p5143
p5142
p5140
p5139
p5136
p5135
p5134
p5133
p5131
p5129
p5128
p5127
p5124
p5120
p5119
p5118
p5117
p5115
p5114
p5112
p5111
p5110
p5106
p5104
p5102
p5100
p5099
p5097
p5096
p5094
p5093
p5090
p5088
p5087
p5086
p5084
p5081
p5079
p5076
p5074
p5073
p5071
p5070
p5067
p5062
p5060
p5058
p5057
p5056
p5055
p5053
p5051
p5048
p5046
p5043
p5041
p5039
p5038
p5036
p5035
p5034
p5032
p5031
p5027
p5026
p5023
p4989
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_compile.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (3172, 3244)
# IF SOS+
# METHOD_RANGE = (3176, 3177)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,23 @@
n1
n2
p1
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p5234
p5206
p5204
p5150
p5130
p5125
p5003
p5001
@@ -0,0 +1,4 @@
For this bug since the value of a `const` needs modification, we removed
the `const` from the definition of `window_size`.
For SOS+ you also need to limit the number of live variables for it to be
able to find the perfect patch.
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/phar/phar.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (1568, 1735)
# IF SOS+
# METHOD_RANGE = (1573, 1574)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,251 @@
n1
p2718
p2712
p2708
p2707
p2692
p2691
p2690
p2689
p2688
p2687
p2686
p2685
p2684
p2677
p2676
p2675
p2674
p2673
p2672
p2671
p2670
p2669
p2668
p2667
p2665
p2664
p2663
p2662
p2660
p2659
p2658
p2657
p2656
p2655
p2654
p2653
p2652
p2651
p2650
p2649
p2647
p2645
p2644
p2642
p2627
p2626
p2625
p2624
p2623
p2622
p2621
p2620
p2619
p2618
p2617
p2616
p2615
p2614
p2613
p2612
p2611
p2610
p2609
p2608
p2607
p2606
p2605
p2604
p2603
p2602
p2601
p2600
p2593
p2592
p2591
p2590
p2587
p2585
p2584
p2583
p2582
p2581
p2580
p2576
p2574
p2572
p2571
p2570
p2569
p2568
p2566
p2565
p2563
p2562
p2560
p2559
p2558
p2557
p2556
p2555
p2554
p2553
p2552
p2551
p2550
p2549
p2548
p2547
p2543
p2542
p2536
p2533
p2529
p2528
p2527
p2505
p2504
p2503
p2502
p2501
p2500
p2497
p2496
p2495
p2490
p2488
p2487
p2486
p2485
p2484
p2483
p2482
p2481
p2480
p2479
p2478
p2477
p2476
p2475
p2474
p2473
p2472
p2471
p2470
p2469
p2468
p2466
p2463
p2462
p2461
p2460
p2459
p2458
p2457
p2456
p2455
p2453
p2449
p2448
p2447
p2446
p2445
p2444
p2438
p2437
p2436
p2435
p2434
p2433
p2432
p2431
p2430
p2429
p2428
p2427
p2426
p2425
p2424
p2423
p2422
p2421
p2420
p2419
p2418
p2417
p2416
p2415
p2414
p2413
p2412
p2411
p2410
p2409
p2408
p2407
p2406
p2405
p2404
p2403
p2402
p2401
p2400
p2399
p2398
p2397
p2396
p2395
p2394
p2393
p2392
p2391
p2390
p2389
p2388
p2387
p2386
p2379
p2374
p2373
p2371
p2370
p2369
p2368
p2367
p2366
p2365
p2364
p2363
p2362
p2361
p2360
p2359
p2358
p2357
p2356
p2355
p2354
p2353
p2352
p2351
p2350
p2349
p2348
p2347
p2346
p2345
p2344
p2343
p2342
p2338
@@ -0,0 +1,4 @@
For this bug since the value of a `const` needs modification, we removed
the `const` from the definition of `window_size`.
For SOS+ you also need to limit the number of live variables for it to be
able to find the perfect patch.
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/phar/phar.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (1568, 1730)
# IF SOS+
# METHOD_RANGE = (1573, 1573)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,251 @@
n1
p2718
p2712
p2708
p2707
p2692
p2691
p2690
p2689
p2688
p2687
p2686
p2685
p2684
p2677
p2676
p2675
p2674
p2673
p2672
p2671
p2670
p2669
p2668
p2667
p2665
p2664
p2663
p2662
p2660
p2659
p2658
p2657
p2656
p2655
p2654
p2653
p2652
p2651
p2650
p2649
p2647
p2645
p2644
p2642
p2627
p2626
p2625
p2624
p2623
p2622
p2621
p2620
p2619
p2618
p2617
p2616
p2615
p2614
p2613
p2612
p2611
p2610
p2609
p2608
p2607
p2606
p2605
p2604
p2603
p2602
p2601
p2600
p2593
p2592
p2591
p2590
p2587
p2585
p2584
p2583
p2582
p2581
p2580
p2576
p2574
p2572
p2571
p2570
p2569
p2568
p2566
p2565
p2563
p2562
p2560
p2559
p2558
p2557
p2556
p2555
p2554
p2553
p2552
p2551
p2550
p2549
p2548
p2547
p2543
p2542
p2536
p2533
p2529
p2528
p2527
p2505
p2504
p2503
p2502
p2501
p2500
p2497
p2496
p2495
p2490
p2488
p2487
p2486
p2485
p2484
p2483
p2482
p2481
p2480
p2479
p2478
p2477
p2476
p2475
p2474
p2473
p2472
p2471
p2470
p2469
p2468
p2466
p2463
p2462
p2461
p2460
p2459
p2458
p2457
p2456
p2455
p2453
p2449
p2448
p2447
p2446
p2445
p2444
p2438
p2437
p2436
p2435
p2434
p2433
p2432
p2431
p2430
p2429
p2428
p2427
p2426
p2425
p2424
p2423
p2422
p2421
p2420
p2419
p2418
p2417
p2416
p2415
p2414
p2413
p2412
p2411
p2410
p2409
p2408
p2407
p2406
p2405
p2404
p2403
p2402
p2401
p2400
p2399
p2398
p2397
p2396
p2395
p2394
p2393
p2392
p2391
p2390
p2389
p2388
p2387
p2386
p2379
p2374
p2373
p2371
p2370
p2369
p2368
p2367
p2366
p2365
p2364
p2363
p2362
p2361
p2360
p2359
p2358
p2357
p2356
p2355
p2354
p2353
p2352
p2351
p2350
p2349
p2348
p2347
p2346
p2345
p2344
p2343
p2342
p2338
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/reflection/php_reflection.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (698, 763)
# IF SOS+
# METHOD_RANGE = (748, 749)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,16 @@
n1
p7098
p7097
p7096
p4899
p2985
p2962
p2931
p2927
p2866
p2838
p2833
p2751
p2744
p2728
p447
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/Zend/zend_compile.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (4228, 4324)
# IF SOS+
# METHOD_RANGE = (4275, 4276)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,69 @@
n1
p7714
p7541
p7224
p7223
p7222
p7219
p7217
p7215
p7213
p7210
p7209
p7207
p7206
p7204
p7203
p7199
p7196
p7195
p7193
p7192
p7191
p7187
p7186
p7182
p7175
p7173
p7172
p7171
p7170
p7168
p7166
p7165
p7163
p7162
p7161
p7160
p7159
p7158
p7156
p7155
p7154
p7153
p7151
p7150
p7148
p7147
p7146
p7142
p7141
p7140
p7139
p7138
p7137
p7135
p7134
p7129
p7126
p7124
p7040
p6879
p6688
p6654
p4788
p4625
p3901
p966
p943
p894
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/filter/logical_filters.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (525, 556)
# IF SOS+
# METHOD_RANGE = (525, 526)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
n1
p4752
p4643
p3955
p4098
p4162
p4492
@@ -0,0 +1,3 @@
In case of SOS, the perfect patch is among many patches.
Therefore to get the perfect patch, you need to run with
`--all_patches` argument.
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/main/streams/streams.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (975, 1047)
# IF SOS+
# METHOD_RANGE = (994, 994)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,10 @@
n3
n2
n1
p4248
p4242
p3991
p1806
p1582
p1447
p1423
@@ -0,0 +1,2 @@
If running with SOS+, you need to limit the variables
for mapping to `c` and `skip_upload`.
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/main/rfc1867.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (677, 1261)
# IF SOS+
# METHOD_RANGE = (945, 946)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,35 @@
n1
p6042
p6041
p6040
p6037
p6033
p6031
p6026
p6022
p6021
p6020
p6018
p6017
p6015
p6012
p6011
p6010
p6005
p6004
p6003
p1434
p1401
p1286
p1263
p1254
p1253
p1245
p1221
p1200
p1195
p1146
p1140
p1139
p1134
p1129
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/session/mod_user.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (81, 93)
# IF SOS+
# METHOD_RANGE = (83, 84)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""

Some files were not shown because too many files have changed in this diff Show More