Abstract-In this work we propose a resynthesis framework, called CoRé, that automatically corrects errors in digital designs. The framework is based on a simulation-based abstraction technique and performs error correction through two innovative circuit resynthesis solutions: Distinguishing-Power Search (DPS) and Goal-Directed Search (GDS), which modify the functionality of a circuit's internal nodes to match the correct behavior. In addition, we propose a compact encoding of resynthesis information, called Pairs of Bits to be Distinguished (PBDs), which is a key enabler for our resynthesis techniques. Compared with previous solutions, CoRé is more powerful in that: (1) it can fix a broader range of error types because it is not bounded by specific error models; (2) it derives the correct functionality from simulation vectors, without requiring golden netlists; and (3) it can be applied with a broad range of verification flows, including formal and simulation-based.