|
6 | 6 |
|
7 | 7 | \*******************************************************************/
|
8 | 8 |
|
9 |
| -#include "java_bytecode_language.h" |
10 |
| - |
11 |
| -#include <fstream> |
12 |
| -#include <string> |
13 |
| - |
14 |
| -#include <linking/static_lifetime_init.h> |
| 9 | +#include "java_bytecode_convert_class.h" |
15 | 10 |
|
16 | 11 | #include <util/cmdline.h>
|
17 | 12 | #include <util/config.h>
|
18 | 13 | #include <util/expr_iterator.h>
|
19 | 14 | #include <util/invariant.h>
|
20 | 15 | #include <util/journalling_symbol_table.h>
|
21 | 16 | #include <util/options.h>
|
22 |
| -#include <util/prefix.h> |
23 | 17 | #include <util/suffix.h>
|
24 | 18 | #include <util/symbol_table_builder.h>
|
25 | 19 |
|
26 |
| -#include <json/json_parser.h> |
27 |
| - |
28 | 20 | #include <goto-programs/class_hierarchy.h>
|
29 | 21 |
|
| 22 | +#include <json/json_parser.h> |
| 23 | +#include <linking/static_lifetime_init.h> |
| 24 | + |
30 | 25 | #include "ci_lazy_methods.h"
|
31 | 26 | #include "create_array_with_type_intrinsic.h"
|
| 27 | +#include "expr2java.h" |
32 | 28 | #include "java_bytecode_concurrency_instrumentation.h"
|
33 |
| -#include "java_bytecode_convert_class.h" |
34 | 29 | #include "java_bytecode_convert_method.h"
|
35 | 30 | #include "java_bytecode_instrument.h"
|
36 | 31 | #include "java_bytecode_internal_additions.h"
|
| 32 | +#include "java_bytecode_language.h" |
37 | 33 | #include "java_bytecode_typecheck.h"
|
38 | 34 | #include "java_class_loader.h"
|
39 | 35 | #include "java_class_loader_limit.h"
|
|
44 | 40 | #include "java_utils.h"
|
45 | 41 | #include "lambda_synthesis.h"
|
46 | 42 | #include "lift_clinit_calls.h"
|
47 |
| - |
48 |
| -#include "expr2java.h" |
49 | 43 | #include "load_method_by_regex.h"
|
50 | 44 |
|
| 45 | +#include <fstream> |
| 46 | +#include <string> |
| 47 | + |
51 | 48 | /// Parse options that are java bytecode specific.
|
52 | 49 | /// \param cmd: Command line
|
53 | 50 | /// \param [out] options: The options object that will be updated.
|
@@ -536,7 +533,7 @@ static symbol_exprt get_or_create_class_literal_symbol(
|
536 | 533 | symbolt new_class_symbol{
|
537 | 534 | symbol_expr.get_identifier(), symbol_expr.type(), ID_java};
|
538 | 535 | INVARIANT(
|
539 |
| - has_prefix(id2string(new_class_symbol.name), "java::"), |
| 536 | + new_class_symbol.name.starts_with("java::"), |
540 | 537 | "class identifier should have 'java::' prefix");
|
541 | 538 | new_class_symbol.base_name =
|
542 | 539 | id2string(new_class_symbol.name).substr(6);
|
|
0 commit comments