Skip to content

Commit

Permalink
Add optional originalTerm to Rewrite log
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Sep 14, 2023
1 parent d677fe6 commit db8439b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kore-rpc-types/src/Kore/JsonRpc/Types/Log.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ data LogRewriteResult

data LogEntry
= Rewrite
{ result :: LogRewriteResult
{ originalTerm :: Maybe KoreJson
, result :: LogRewriteResult
, origin :: LogOrigin
}
| Simplification
Expand Down
1 change: 1 addition & 0 deletions kore/src/Kore/JsonRpc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ respond serverState moduleName runSMT =
, substitution = Nothing
, ruleId = fromMaybe "UNKNOWN" $ getUniqueId ruleId
}
, originalTerm = Nothing
, origin = KoreRpc
}
| fromMaybe False logSuccessfulRewrites
Expand Down

0 comments on commit db8439b

Please sign in to comment.