Skip to content

Commit

Permalink
Use ValidityResult for additional clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Aug 8, 2023
1 parent 32dbb64 commit 839fe34
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kore-rpc-types/src/Kore/JsonRpc/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,23 @@ data GetModelResult = GetModelResult
data SimplifyImplicationResult = SimplifyImplicationResult
{ satisfiable :: SatResult
, substitution :: Maybe KoreJson
{ valid :: ValidityResult
, logs :: Maybe [LogEntry]
}
deriving stock (Generic, Show, Eq)
deriving
(FromJSON, ToJSON)
via CustomJSON '[OmitNothingFields, FieldLabelModifier '[CamelToKebab]] SimplifyImplicationResult

data ValidityResult
= Valid
| Invalid
| ValidityUnknown
deriving stock (Generic, Show, Eq)
deriving
(FromJSON, ToJSON)
via CustomJSON '[] ValidityResult

data SatResult
= Sat
| Unsat
Expand Down

0 comments on commit 839fe34

Please sign in to comment.