On Fri, Mar 06, 2009 at 09:31:44AM +0100, Marco Trudel wrote: > > The "enum enum1;" (GEnumTagDecl) is listed twice. Am I doing something > > wrong or am I missing something basic? I would expect it to be in the > > global list only once... > Anyone? I really guess I'm doing something silly because if this were a > bug, it would have been discovered long ago...
I believe this is part of the conversion from cabs to cil (file cabs2cil.ml). The reason why CIL duplicates it must have something to do with more complex cases (recursion, named struct or whatever). Remember that CIL aims at providing an equivalent code in some intermediate language, so you can't expect to retreive every piece of information from your original file. Anyway, you might try and write a small module which would sanitize such obvious duplicates if you really need it, but there is a chance that you forget some cases so you shouldn't rely too much on it. Perhaps we could provide you some hints if you detailed what you're trying to count, and (more importantly) why. Regards, -- Gabriel Kerneis ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users