Skip to content

Commit 8304ec1

Browse files
committed
Allow "-" when back-translating
1 parent df05038 commit 8304ec1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kore/src/Kore/Rewrite/SMT/Translate.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,11 @@ backTranslateWith
563563
. Map.map AST.symbolData
564564
$ Map.filter (not . isBuiltin . AST.symbolDeclaration) symbols
565565

566-
isBuiltin :: AST.KoreSymbolDeclaration a b -> Bool
567-
isBuiltin AST.SymbolBuiltin{} = True
566+
isBuiltin :: AST.KoreSymbolDeclaration SExpr SExpr -> Bool
567+
isBuiltin (AST.SymbolBuiltin (AST.IndirectSymbolDeclaration{name})) =
568+
case name of
569+
Atom "-" -> False
570+
_ -> True
568571
isBuiltin _other = False
569572

570573
symbolFrom :: Id -> Symbol

0 commit comments

Comments
 (0)