diff options
author | Yann Herklotz <git@yannherklotz.com> | 2019-11-10 21:13:06 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2019-11-10 21:13:06 +0000 |
commit | e2f6a008feb304fd4e6497bfc41a4a32740e2adf (patch) | |
tree | 3e5522243e32b4c7d9932ed329076f8f2cfb2ede /src/Verismith/Reduce.hs | |
parent | 0438eb4999c3d03ec9a22afbc88b30e0fa131aa6 (diff) | |
download | verismith-e2f6a008feb304fd4e6497bfc41a4a32740e2adf.tar.gz verismith-e2f6a008feb304fd4e6497bfc41a4a32740e2adf.zip |
Add counter example parsing
Diffstat (limited to 'src/Verismith/Reduce.hs')
-rw-r--r-- | src/Verismith/Reduce.hs | 6 |
1 files changed, 3 insertions, 3 deletions
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 |