bc: stop passing around pointers to G.prog, they are all constant