Either the dog or the cat made the mess.
The dog couldn’t have done it.
The dog couldn’t have done it.