IEEE Access · 2020 · 27 citations · 24 references
ComputingComputer ScienceCompilersSoftware EngineeringSyntaxAbstract Syntax TreesParsingStatic Code AnalysisSyntactic AnalysisSyntax AnalysisSyntax ParsingAbstract Syntax Tree RepresentationComplexity AnalysisScalable ComputingSemantic InformationStructured Representations
Although source code programs are commonly written as textual information, they enclose syntactic and semantic information that is usually represented as graphs. This information is used for many different purposes, such as static program analysis, advanced code search, coding guideline checking, software metrics computation, and extraction of semantic and syntactic information to create predictive models. Most of the existing systems that provide these kinds of services are designed ad hoc for the particular purpose they are aimed at. For this reason, we created ProgQuery, a platform to allow users to write their own Java program analyses in a declarative fashion, using graph representations. We modify the Java compiler to compute seven syntactic and semantic representations, and store them in a Neo4j graph database. Such representations are overlaid, meaning that syntactic and semantic nodes of the different graphs are interconnected to allow combining different kinds of information in the queries/analyses. We evaluate ProgQuery and compare it to the related systems. Our platform outperforms the other systems in analysis time, and scales better to program sizes and analysis complexity. Moreover, the queries coded show that ProgQuery is more expressive than the other approaches. The additional information stored by ProgQuery increases the database size and associated insertion time, but these increases are significantly lower than the query/analysis performance gains obtained.
24
Refactoring improving the design of existing code
Mauricio A. Saca · 2017 · 2.1K citations
Statistically rigorous java performance evaluation
Andy Georges, Dries Buytaert, Lieven Eeckhout · 2007 · 525 citations · Full text
Using Static Analysis to Find Bugs
Nathaniel Ayewah, William Pugh, David Hovemeyer et al. · IEEE Software · 2008 · 522 citations
Computing, Computer Science, Secure Software Development +14
Nadime Francis, Alastair Green, Paolo Guagliardo et al. · 2018 · 520 citations · Full text
Learning natural coding conventions
Miltiadis Allamanis, Earl T. Barr, Christian Bird et al. · 2014 · 382 citations · Full text