control flow graph flattening implementation in .NET using Roslyn. This is a part for my thesis "Control flow obfuscation in .NET applications".
A new application can be flattened by adding the code of the application to the tree variable at line 28.