A man trapped in an automated prison must outsmart a computer in order to escape and try and find his way back to the outside world that may already be wiped out.
One assumes the dog dies, but in the end, there is a shot of the dog lying contentedly on the floor. It’s unclear whether it’s a memory, but I choose to believe someone found the dog and it lived.