Hardware-software systems for flaw detection