21 ms·
Besides what the others have said, 1. Wrong code doesn't necessarily crash on all inputs, but there's usually at least one input that makes it crash, so it's n
by kqr 8y ago
Besides what the others have said,
1. Wrong code doesn't necessarily crash on all inputs, but there's usually at least one input that makes it crash, so it's not a terrible heuristic.
2. Writing oracles along the line of "the output should not be negative" , or "the output should contain this value" , or "this string should only contain printable ascii" gets you much closer for very cheap.