1. A method comprising: by one or more computing devices, constructing a λ JS model for a software program written in JavaScript; converting the λ JS model to a continuation-passing style (CPS) model for the software program; and constructing a control flow graph (CFG) for the software program based on the CPS model.