added analyses to code generation