AIB 2011-25: Compiler-Generated Subgradient Code for McCormick Relaxations