Determining statement dependency