Skip to content

Commit 9c3867f

Browse files
author
kroening
committed
avoid spaces in property IDs
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@4659 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent e62b5f7 commit 9c3867f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/goto-programs/set_properties.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,14 @@ void label_properties(
9292
if(it->source_location.get_property_class()!="")
9393
{
9494
if(prefix!="") prefix+=".";
95-
prefix+=id2string(it->source_location.get_property_class());
95+
96+
std::string class_infix=
97+
id2string(it->source_location.get_property_class());
98+
99+
// replace the spaces by underscores
100+
std::replace(class_infix.begin(), class_infix.end(), ' ', '_');
101+
102+
prefix+=class_infix;
96103
}
97104

98105
if(prefix!="") prefix+=".";

0 commit comments

Comments
 (0)