title: Tool for removing all the loops in C code
body: <p>Is there any tool available for converting a C code with loops (while , do-while, for) to a C code with goto statements instead of the looping statements?</p>
  
  <p>I tried Clang. I changed the code to the IR and converted it back , but the code totally different (more lines, following the SSA format, ..) though logically meaning the same.</p>
  
  <p>It would be better if the resultant code looks more alike the original source code. If not, I would like to know about the different other options available.</p>