added code to generate the output for init and uninit globals