-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate DFG information into CFG (#1254)
* refactor: quote github env variable * doc(extract-cfg): document use of normalized ast * feat(wip): insert flow edges * feat(points-to): support function call resolution
- Loading branch information
1 parent
9aaf76b
commit a85d13b
Showing
18 changed files
with
149 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a85d13b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"artificial" Benchmark Suite
Retrieve AST from R code
248.32334104545453
ms (106.81347795093653
)239.49771736363638
ms (101.48800821636837
)1.04
Normalize R AST
17.803583
ms (32.629295991359534
)17.41336081818182
ms (30.981566426513265
)1.02
Produce dataflow information
70.43754081818182
ms (152.96904594478139
)68.728513
ms (151.94316854576633
)1.02
Total per-file
858.4292594545454
ms (1566.6182700489467
)837.9476761818181
ms (1510.9729062977526
)1.02
Static slicing
2.0081414958962225
ms (1.1525853766703917
)2.0034774339582415
ms (1.1691051705207822
)1.00
Reconstruct code
0.2328410252468656
ms (0.18445349759234353
)0.22634653062782062
ms (0.168666676054442
)1.03
Total per-slice
2.255245174034879
ms (1.2286384829449617
)2.24374443748002
ms (1.2384172691894533
)1.01
failed to reconstruct/re-parse
0
#0
#1
times hit threshold
0
#0
#1
reduction (characters)
0.7891949660994808
#0.7891949660994808
#1
reduction (normalized tokens)
0.7665650684287274
#0.7665650684287274
#1
memory (df-graph)
95.19682173295455
KiB (244.24808975931026
)95.19682173295455
KiB (244.24808975931026
)1
This comment was automatically generated by workflow using github-action-benchmark.
a85d13b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"social-science" Benchmark Suite
Retrieve AST from R code
245.12588396
ms (46.31602992655432
)240.34012847999998
ms (43.93673078226616
)1.02
Normalize R AST
18.754497079999997
ms (14.1108254362404
)18.87248132
ms (14.186278380523435
)0.99
Produce dataflow information
78.7498075
ms (73.12711600555512
)78.15406248000001
ms (73.48454316898545
)1.01
Total per-file
7614.3063761
ms (30122.107163934794
)7582.25710378
ms (29767.39189439267
)1.00
Static slicing
15.271004775962375
ms (45.45808043905079
)15.270449566508105
ms (44.94967789767313
)1.00
Reconstruct code
0.2633794238041067
ms (0.15137845561756516
)0.2585950662014173
ms (0.1532502183629028
)1.02
Total per-slice
15.542288796787147
ms (45.49128336072756
)15.537331197364793
ms (44.98374295831238
)1.00
failed to reconstruct/re-parse
0
#0
#1
times hit threshold
0
#0
#1
reduction (characters)
0.8760481407790371
#0.8760481407790371
#1
reduction (normalized tokens)
0.8152466834674152
#0.8152466834674152
#1
memory (df-graph)
99.6448046875
KiB (113.2159841674677
)99.6448046875
KiB (113.2159841674677
)1
This comment was automatically generated by workflow using github-action-benchmark.
a85d13b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"artificial" Benchmark Suite (tree-sitter)
Retrieve AST from R code
7.878252454545454
ms (8.533091706684177
)8.145506545454547
ms (9.786080094734778
)0.97
Normalize R AST
16.973453681818185
ms (21.54502888700435
)17.78099590909091
ms (23.820712056308647
)0.95
Produce dataflow information
70.4022154090909
ms (143.62740718489636
)70.83680254545455
ms (150.5207252208632
)0.99
Total per-file
610.2485431363637
ms (1392.0259839720961
)627.2099676818182
ms (1407.4477264884629
)0.97
Static slicing
2.037858681466583
ms (1.1368547848550699
)2.0248883955065318
ms (1.1173257361688766
)1.01
Reconstruct code
0.22464761464280208
ms (0.1717905692529436
)0.23812396339689798
ms (0.1785232875956438
)0.94
Total per-slice
2.2756645753848415
ms (1.2020541914620437
)2.2780515267109083
ms (1.198556469122308
)1.00
failed to reconstruct/re-parse
0
#0
#1
times hit threshold
0
#0
#1
reduction (characters)
0.7891949660994808
#0.7891949660994808
#1
reduction (normalized tokens)
0.7665650684287274
#0.7665650684287274
#1
memory (df-graph)
95.19682173295455
KiB (244.24808975931026
)95.19682173295455
KiB (244.24808975931026
)1
This comment was automatically generated by workflow using github-action-benchmark.
a85d13b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"social-science" Benchmark Suite (tree-sitter)
Retrieve AST from R code
12.352666222222222
ms (8.020088350322169
)10.4682258
ms (6.536909762375299
)1.18
Normalize R AST
29.02011408888889
ms (13.887889786522873
)23.515930466666664
ms (11.460003796895084
)1.23
Produce dataflow information
94.89209242222223
ms (79.52732741572484
)77.72576402222222
ms (66.68368526289126
)1.22
Total per-file
9222.592383555555
ms (37495.14640681524
)7557.427238355555
ms (30739.010883053157
)1.22
Static slicing
19.324996357286814
ms (56.03172605251331
)15.83153546219062
ms (45.672079288893144
)1.22
Reconstruct code
0.3509510572684235
ms (0.37039376921183825
)0.2510293465879067
ms (0.15539877495324173
)1.40
Total per-slice
19.68591182468504
ms (56.074133488036566
)16.090141405670494
ms (45.71466701697095
)1.22
failed to reconstruct/re-parse
0
#0
#1
times hit threshold
0
#0
#1
reduction (characters)
0.8685107303274813
#0.8685107303274813
#1
reduction (normalized tokens)
0.8049905198879769
#0.8049905198879769
#1
memory (df-graph)
97.50590277777778
KiB (111.14577334743846
)97.50590277777778
KiB (111.14577334743846
)1
This comment was automatically generated by workflow using github-action-benchmark.