Move the AST process to the initial_analysis phase, and after decompilation. Also, fixed reporting related queries