@@ -32,6 +32,7 @@ import Kore.Internal.Predicate qualified as Predicate
32
32
import Kore.Internal.TermLike qualified as TermLike
33
33
import Kore.Internal.Variable
34
34
import Kore.Syntax.Json qualified as PatternJson
35
+ import Kore.Unparser (unparse )
35
36
import Language.Haskell.TH.Syntax (Exp , Loc (.. ), Q , qLocation )
36
37
import Log
37
38
import Prelude.Kore
@@ -101,7 +102,23 @@ instance Entry DecidePredicateUnknown where
101
102
where
102
103
prettyHsLoc Loc {loc_module, loc_start = (row, col)} =
103
104
Pretty. pretty loc_module <> " :" <> Pretty. pretty row <> " :" <> Pretty. pretty col
104
- oneLineDoc _ = " DecidePredicateUnknown"
105
+ oneLineDoc (DecidePredicateUnknown {message, predicates}) =
106
+ Pretty. hsep
107
+ [ Pretty. brackets " smt"
108
+ , Pretty. pretty description
109
+ , unparse
110
+ ( Predicate. fromPredicate
111
+ sortBool
112
+ predicate
113
+ )
114
+ ]
115
+ where
116
+ predicate = Predicate. makeMultipleAndPredicate . toList $ predicates
117
+ description =
118
+ " solver returned unknwon ("
119
+ <> message
120
+ <> " ) for predicate "
121
+
105
122
helpDoc _ =
106
123
" error or a warning when the solver cannot decide the satisfiability of a formula"
107
124
@@ -125,6 +142,10 @@ externaliseDecidePredicateUnknown :: DecidePredicateUnknown -> (Text, PatternJso
125
142
externaliseDecidePredicateUnknown err@ DecidePredicateUnknown {message} =
126
143
( message
127
144
, PatternJson. fromPredicate
128
- ( TermLike. SortActualSort $ TermLike. SortActual ( TermLike. Id " SortBool " TermLike. AstLocationNone ) [] )
145
+ sortBool
129
146
(Predicate. makeMultipleAndPredicate . toList $ predicates err)
130
147
)
148
+
149
+ sortBool :: TermLike. Sort
150
+ sortBool =
151
+ (TermLike. SortActualSort $ TermLike. SortActual (TermLike. Id " SortBool" TermLike. AstLocationNone ) [] )
0 commit comments