Exploring the synergy between generative AI and software engineering: Automating code optimization and bug fixing | Synapse