Hope this diagram of cop programming helps:
copGPT thinking...
1 [BE A BASTARD?]
2 / \
3 / \
4 NO [YES]-------[BEAT WIFE?]
5 / \
6 / \
7 NO [YES] [return to line 1]