[cfe-commits] [PATCH] Move the rest stuff into ConstraintManager

Ted Kremenek kremenek at apple.com
Fri Aug 29 07:32:30 PDT 2008


Looks good.  Please apply!

On Aug 29, 2008, at 12:12 AM, Zhongxing Xu wrote:

> New patch attached.
>
> On Fri, Aug 29, 2008 at 1:46 PM, Ted Kremenek <kremenek at apple.com>  
> wrote:
> On Aug 27, 2008, at 11:16 PM, Zhongxing Xu wrote:
>
> This patch moves the rest of the symbolic analysis stuff into  
> BasicConstraintManager.
>
> - Zhongxing Xu
> <consteqty.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
> Hi Zhongxing,
>
> Somehow I missed this patch when I went through my email today.
>
> It looks pretty good!  The only concern I can spot right now is the  
> commenting out of the pretty-printing of equality and inequality  
> relationships.  That's a functionality regression that we shouldn't  
> have, and generally we shouldn't be commenting out code (if we want  
> to remove, we just remove it).  It's also an opportunity to  
> generalize the functionality to allow pretty-printing of arbitrary  
> constraints managed by the ConstraintManager.
>
> It's clear that we will need to add a print method to  
> ConstraintManager, similar to what we did with the StoreManager:
>
>    virtual void print(Store store, std::ostream& Out, const char*  
> nl, const char *sep) = 0;
>
> Of course, in the case of ConstraintManager, we just pass the state  
> instead of the store.
>
> We can then move the pretty-printing logic for the inequality/ 
> equality relationships into BasicConstraintManager.  That seems like  
> a small amendment to your patch, and would complete the migration of  
> the functionality and improve the API.
>
> Otherwise, great patch!
>
> Ted
>
> <consteq2.patch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20080829/2be5acfa/attachment.html>


More information about the cfe-commits mailing list