File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ import Booster.Pattern.Base (
68
68
TermAttributes (hash ),
69
69
pattern AndTerm ,
70
70
)
71
+ import Booster.Pattern.Bool (asEquations )
71
72
import Booster.Pattern.Pretty
72
73
import Booster.Prettyprinter (renderOneLineText )
73
74
import Booster.Syntax.Json (KorePattern , addHeader , prettyPattern )
@@ -185,8 +186,8 @@ withTermContext t@(Term attrs _) m =
185
186
m
186
187
187
188
withPatternContext :: LoggerMIO m => Pattern -> m a -> m a
188
- withPatternContext Pattern {term, constraints} m =
189
- let t' = foldl' AndTerm term $ Set. toList $ Set. map coerce constraints -- FIXME
189
+ withPatternContext Pattern {term, constraints, substitution } m =
190
+ let t' = foldl' AndTerm term . map coerce $ Set. toList constraints <> asEquations substitution
190
191
in withTermContext t' m
191
192
192
193
instance ToLogFormat KorePattern where
You can’t perform that action at this time.
0 commit comments