>From a programmer productivity optimization perspective it should be impossible to reliably predict the next statement
Why? 99.9% of programming being done is composition of trivial logical propositions, in some semantic context. The things we implement are trivial, unless you're thinking about symbolic proofs etc