Remember that UML stands for Unified Modeling Language. This is not only for modeling relationships of objects, which, in my opinion, are a common misconception of UML. It can also be used for state diagrams, business processes, database diagrams, ... See http://en.wikipedia.org/wiki/Unified_Modeling_Language .
I recently used IBM Rational Software Architect to convert state diagrams to Perl. But for Perl, we had to write our own translation files, since Architect did not include them for Perl.
But if you are talking about C code, Architect has a built-in function to reverse engineer the written code into a UML diagram. I used this function for Java and it works very well and creates a diagram of objects. I have not used it for C before, so I donβt know if it will turn it into a sequence, activity or state diagram.
You can download a trial version of Software Architect and see if it works for your code.
eSniff
source share