AI-assisted bug and vulnerability detection