From e2f6a008feb304fd4e6497bfc41a4a32740e2adf Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 10 Nov 2019 21:13:06 +0000 Subject: Add counter example parsing --- src/Verismith/Reduce.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Verismith/Reduce.hs') diff --git a/src/Verismith/Reduce.hs b/src/Verismith/Reduce.hs index cff61ed..69b5e17 100644 --- a/src/Verismith/Reduce.hs +++ b/src/Verismith/Reduce.hs @@ -613,9 +613,9 @@ reduceSynth datadir a b = reduce synth runSynth b src' runEquiv datadir a b src' return $ case r of - Fail EquivFail -> True - Fail _ -> False - Pass _ -> False + Fail (EquivFail _) -> True + Fail _ -> False + Pass _ -> False reduceSynthesis :: (Synthesiser a, MonadSh m) => a -> SourceInfo -> m SourceInfo reduceSynthesis a = reduce synth -- cgit