blob: c611a0eefbe732be499d4e678c4c69c780af0da4 [file] [log] [blame]
Anna Zaksa8d8a472013-04-16 21:37:04 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3<html>
4<head>
5 <title>Open Projects</title>
6 <link type="text/css" rel="stylesheet" href="menu.css">
7 <link type="text/css" rel="stylesheet" href="content.css">
8 <script type="text/javascript" src="scripts/menu.js"></script>
9</head>
10<body>
11
12<div id="page">
13<!--#include virtual="menu.html.incl"-->
14<div id="content">
15
16<h1>Open Projects</h1>
17
18<p>This page lists several projects that would boost analyzer's usability and
19power. Most of the projects listed here are infrastructure-related so this list
Jordan Rose8d008222013-04-17 00:57:24 +000020is an addition to the <a href="potential_checkers.html">potential checkers
21list</a>. If you are interested in tackling one of these, please send an email
22to the <a href=http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev>cfe-dev
23mailing list</a> to notify other members of the community.</p>
24
Anna Zaksa8d8a472013-04-16 21:37:04 +000025<ul>
26 <li>Core Analyzer Infrastructure
27 <ul>
Jordan Rose8d008222013-04-17 00:57:24 +000028 <li>Explicitly model standard library functions with <tt>BodyFarm</tt>.
Anna Zaksa8d8a472013-04-16 21:37:04 +000029 <p><tt><a href="http://clang.llvm.org/doxygen/classclang_1_1BodyFarm.html">BodyFarm</a></tt>
Jordan Rose8d008222013-04-17 00:57:24 +000030 allows the analyzer to explicitly model functions whose definitions are
Anna Zaksa8d8a472013-04-16 21:37:04 +000031 not available during analysis. Modeling more of the widely used functions
Jordan Rose8d008222013-04-17 00:57:24 +000032 (such as the members of <tt>std::string</tt>) will improve precision of the
33 analysis.
Anna Zaksa8d8a472013-04-16 21:37:04 +000034 <i>(Difficulty: Easy)</i><p>
35 </li>
36
37 <li>Implement generalized loop execution modeling.
38 <p>Currently, the analyzer simply unrolls each loop <tt>N</tt> times. This
39 means that it will not execute any code after the loop if the loop is
40 guaranteed to execute more than <tt>N</tt> times. This results in lost
41 basic block coverage. We could continue exploring the path if we could
42 model a generic <tt>i</tt>-th iteration of a loop.
43 <i> (Difficulty: Hard)</i></p>
44 </li>
45
Jordan Rose8d008222013-04-17 00:57:24 +000046 <li>Enhance CFG to model C++ temporaries properly.
47 <p>There is an existing implementation of this, but it's not complete and
48 is disabled in the analyzer.
49 <i>(Difficulty: Medium)</i></p>
50
51 <li>Enhance CFG to model exception-handling properly.
52 <p>Currently exceptions are treated as "black holes", and exception-handling
53 control structures are poorly modeled (to be conservative). This could be
54 much improved for both C++ and Objective-C exceptions.
55 <i>(Difficulty: Medium)</i></p>
Anna Zaksa8d8a472013-04-16 21:37:04 +000056
Jordan Rose8d008222013-04-17 00:57:24 +000057 <li>Design and implement alpha-renaming.
Anna Zaksa8d8a472013-04-16 21:37:04 +000058 <p>Implement unifying two symbolic values along a path after they are
59 determined to be equal via comparison. This would allow us to reduce the
60 number of false positives and would be a building step to more advanced
Jordan Rose8d008222013-04-17 00:57:24 +000061 analyses, such as summary-based interprocedural and cross-translation-unit
Anna Zaksa8d8a472013-04-16 21:37:04 +000062 analysis.
63 <i>(Difficulty: Hard)</i></p>
64 </li>
65 </ul>
66 </li>
67
68 <li>Bug Reporting
69 <ul>
Jordan Rose8d008222013-04-17 00:57:24 +000070 <li>Add support for displaying cross-file diagnostic paths in HTML output
71 (used by <tt>scan-build</tt>).
72 <p>Currently <tt>scan-build</tt> output does not display reports that span
73 multiple files. The main problem is that we do not have a good format to
Anna Zaksa8d8a472013-04-16 21:37:04 +000074 display such paths in HTML output. <i>(Difficulty: Medium)</i> </p>
75 </li>
76
Jordan Rose8d008222013-04-17 00:57:24 +000077 <li>Relate bugs to checkers / "bug types"
78 <p>We need to come up with an API which will relate bug reports
Anna Zaksa8d8a472013-04-16 21:37:04 +000079 to the checkers that produce them and refactor the existing code to use the
Jordan Rose8d008222013-04-17 00:57:24 +000080 new API. This would allow us to identify the checker from the bug report,
81 which paves the way for selective control of certain checks.
82 <i>(Difficulty: Easy-Medium)</i></p>
Anna Zaksa8d8a472013-04-16 21:37:04 +000083 </li>
84
Jordan Rose8d008222013-04-17 00:57:24 +000085 <li>Refactor path diagnostic generation in <a href="http://clang.llvm.org/doxygen/BugReporter_8cpp_source.html">BugReporter.cpp</a>.
Anna Zaksa8d8a472013-04-16 21:37:04 +000086 <p>It would be great to have more code reuse between "Minimal" and
87 "Extensive" PathDiagnostic generation algorithms. One idea is to create an
88 IR for representing path diagnostics, which would be later be used to
89 generate minimal or extensive report output. <i>(Difficulty: Medium)</i></p>
90 </li>
91 </ul>
92 </li>
93
94 <li>Other Infrastructure
95 <ul>
Jordan Rose8d008222013-04-17 00:57:24 +000096 <li>Create an <tt>analyzer_annotate</tt> attribute for the analyzer
97 annotations.
98 <p>We would like to put all analyzer attributes behind a fence so that we
Anna Zaksa8d8a472013-04-16 21:37:04 +000099 could add/remove them without worrying that compiler (not analyzer) users
100 depend on them. Design and implement such a generic analyzer attribute in
101 the compiler. <i>(Difficulty: Medium)</i></p>
102 </li>
103
Jordan Rose8d008222013-04-17 00:57:24 +0000104 <li>Rewrite <tt>scan-build</tt> (in Python).
105 <p><i>(Difficulty: Easy)</i></p>
Anna Zaksa8d8a472013-04-16 21:37:04 +0000106 </li>
107 </ul>
108 </li>
109
110 <li>Enhanced Checks
111 <ul>
112 <li>Implement a production-ready StreamChecker.
113 <p>A SimpleStreamChecker has been presented in the Building a Checker in 24
114 Hours talk
115 (<a href="http://llvm.org/devmtg/2012-11/Zaks-Rose-Checker24Hours.pdf">slides</a>
116 <a href="http://llvm.org/devmtg/2012-11/videos/Zaks-Rose-Checker24Hours.mp4">video</a>).
117 We need to implement a production version of the checker with richer set of
118 APIs and evaluate it by running on real codebases.
119 <i>(Difficulty: Easy)</i></p>
120 </li>
121
122 <li>Extend Malloc checker with reasoning about custom allocator,
123 deallocator, and ownership-transfer functions.
Jordan Rose8d008222013-04-17 00:57:24 +0000124 <p>This would require extending the MallocPessimistic checker to reason
Anna Zaksa8d8a472013-04-16 21:37:04 +0000125 about annotated functions. It is strongly desired that one would rely on
Jordan Rose8d008222013-04-17 00:57:24 +0000126 the <tt>analyzer_annotate</tt> attribute, as described above.
Anna Zaksa8d8a472013-04-16 21:37:04 +0000127 <i>(Difficulty: Easy)</i></p>
128 </li>
129
130 <li>Implement iterators invalidation checker.
131 <p><i>(Difficulty: Easy)</i></p>
132 </li>
133
134 <li>Write checkers which catch Copy and Paste errors.
Jordan Rose8d008222013-04-17 00:57:24 +0000135 <p>Take a look at the
136 <a href="http://pages.cs.wisc.edu/~shanlu/paper/TSE-CPMiner.pdf">CP-Miner</a>
137 paper for inspiration.
138 <i>(Difficulty: Medium-Hard)</i></p>
Anna Zaksa8d8a472013-04-16 21:37:04 +0000139 </li>
140 </ul>
141 </li>
142</ul>
143
144</div>
145</div>
146</body>
147</html>
148