Skip to content

Commit 933d841

Browse files
Merge pull request #478 from smowton/global_string_tables_master
Make string literal tables global
2 parents 8c31951 + 5a349f0 commit 933d841

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/java_bytecode/java_bytecode_typecheck.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,9 @@ bool java_bytecode_typecheck(
184184
// fail for now
185185
return true;
186186
}
187+
188+
// Static members of java_bytecode_typecheckt:
189+
std::map<irep_idt, irep_idt>
190+
java_bytecode_typecheckt::string_literal_to_symbol_name;
191+
std::map<irep_idt, size_t>
192+
java_bytecode_typecheckt::escaped_string_literal_count;

src/java_bytecode/java_bytecode_typecheck.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class java_bytecode_typecheckt:public typecheckt
6464
virtual std::string to_string(const typet &type);
6565

6666
std::set<irep_idt> already_typechecked;
67-
std::map<irep_idt, irep_idt> string_literal_to_symbol_name;
68-
std::map<irep_idt, size_t> escaped_string_literal_count;
67+
static std::map<irep_idt, irep_idt> string_literal_to_symbol_name;
68+
static std::map<irep_idt, size_t> escaped_string_literal_count;
6969
};
7070

7171
#endif // CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_TYPECHECK_H

0 commit comments

Comments
 (0)