1. A method for transforming a flowchart to an equivalent tree diagram, said flowchart comprises at least one logic structure and at least one processing activity in said at least one logic structure, said method comprising: traversing said flowchart; transforming said at least one logic structure in said flowchart to at least one branching node in said tree diagram; and transforming at least one processing activity in said logic structures of said flowchart to at least one leaf node below corresponding branching nodes in said tree diagram.