[cfe-dev] Working on open projects

George Karpenkov via cfe-dev cfe-dev at lists.llvm.org
Mon Sep 18 18:03:35 PDT 2017


> On Sep 15, 2017, at 4:45 AM, Gábor Horváth <xazax.hun at gmail.com> wrote:
> 
> Hi,
> Note that, it is possible to feed raw source code to the analyzer to be used through body farm (there are some limitations though). This functionality works without relying on the ASTImporter.
> To see how this works there is a test case here: https://github.com/llvm-mirror/clang/blob/master/test/Analysis/model-file.cpp <https://github.com/llvm-mirror/clang/blob/master/test/Analysis/model-file.cpp>
> One of the modelled functions can be found here: https://github.com/llvm-mirror/clang/blob/master/test/Analysis/Inputs/Models/notzero.model <https://github.com/llvm-mirror/clang/blob/master/test/Analysis/Inputs/Models/notzero.model>
Hi Gabor,

From my understanding that only works for C, and not for C++, right?

Thanks,
George

> 
> Regards,
> Gábor
> 
>  
> 
> * The C++ operator-new project is about constructing the clang's CFG more accurately. Because most of the compilation relies on the LLVM's CFG, clang CFG is essentially used only by the analyzer and a couple of analysis-based compiler warnings, but not for compilation, and as such it is not entirely finished. I didn't look deeply into this problem yet, but it seems that by the time the analyzer sees the object construction element in the CFG, he wasn't informed that he needs to allocate symbolic memory to hold the newly constructed object, which needs fixing.
> 
> While fixing the CFG is the first step, the ultimate goal of this project is to enable the "-analyzer-config c++-allocator-inlining=true" option by default. Which means that work would also need to be done on the analyzer side in order to understand the new CFG items and act accordingly.
> 
> As an example of a recent CFG work i could recommend https://reviews.llvm.org/D15031 <https://reviews.llvm.org/D15031> which is not related to operator new, but gives an impression of how this area of our code looks.
> 
> * As for contacts, this mailing list is the right place to discuss what you want to do, and our phabricator (reviews.llvm.org <http://reviews.llvm.org/>) is the right place to publish your patches. I've also CC'd the analyzer's code owner Anna and other potentially interested people.
> 
> 
> On 9/14/17 2:27 AM, Jiten Thakkar via cfe-dev wrote:
> Hi All,
> I was going through open projects page (https://clang-analyzer.llvm.org/open_projects.html <https://clang-analyzer.llvm.org/open_projects.html>) and wondering if that page is up to date or not. I found 'Explicitly model standard library functions with BodyFarm' and 'Enhance CFG to model C++ new more precisely' interesting to work on. I have some experience with LLVM API and modeling functions for verification as part of my masters project. So if anyone can let me know whom should I contact for those projects or how should I get started then it would be very helpful.
> 
> Thanks,
> Jiten
> 
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170918/a7fb31cb/attachment.html>


More information about the cfe-dev mailing list