Julia,

Perhaps if Greg has more free time he will write an expression
simplifier :-)
Perhaps the first thing to handle at is "x ? 1 : 0" and its negation.

But is it an improvement?

The ?: simplification would make it easier to read the code.
Other 'simplifications' may make it harder/easier for a reader of
the code to spot the mapping back to the application domain.

--
Derek M. Jones                         tel: +44 (0) 1252 520 667
Knowledge Software Ltd                 mailto:[email protected]
Source code analysis                   http://www.knosof.co.uk
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to