Automatic Transcompilation of Affine C Programs to CUDA