Skip to content
Snippets Groups Projects
Commit 4ff7a4dc authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Don't give invalid characters to the solver

parent 984e6a2b
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,9 @@ abstract class SMTLIBSolver(val context: LeonContext, val program: Program)
protected val library = program.library
protected def id2sym(id: Identifier): SSymbol = SSymbol(id.uniqueNameDelimited("!"))
protected def id2sym(id: Identifier): SSymbol = {
SSymbol(id.uniqueNameDelimited("!").replace("|", "$pipe").replace("\\", "$backslash"))
}
protected def freshSym(id: Identifier): SSymbol = freshSym(id.name)
protected def freshSym(name: String): SSymbol = id2sym(FreshIdentifier(name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment