 Premise is: Later, Tom testified against John so as to avoid the electric chair.
Hypothesis is: He was reluctant to do so because he knew John was innocent, but he had no choice if he wanted to live.