Skip to content

Commit 4b8a655

Browse files
author
thk123
committed
Move the goto model directly back
1 parent 475dbcc commit 4b8a655

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

jbmc/unit/java-testing-utils/load_java_class.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ symbol_tablet load_java_class(
4949
const std::string &main)
5050
{
5151
return load_goto_model_from_java_class(java_class_name, class_path, main)
52-
->get_symbol_table();
52+
.get_symbol_table();
5353
}
5454

5555
/// Returns the symbol table from \ref load_goto_model_from_java_class
@@ -66,7 +66,7 @@ symbol_tablet load_java_class(
6666
main,
6767
std::move(java_lang),
6868
command_line)
69-
->get_symbol_table();
69+
.get_symbol_table();
7070
}
7171

7272
/// Go through the process of loading, type-checking and finalising a
@@ -83,7 +83,7 @@ symbol_tablet load_java_class(
8383
/// language
8484
/// \return The goto model containing both the functions and the symbol table
8585
/// from loading this class.
86-
std::unique_ptr<goto_modelt> load_goto_model_from_java_class(
86+
goto_modelt load_goto_model_from_java_class(
8787
const std::string &java_class_name,
8888
const std::string &class_path,
8989
const std::string &main,
@@ -153,7 +153,7 @@ std::unique_ptr<goto_modelt> load_goto_model_from_java_class(
153153
// Check your working directory and the class path is correctly configured
154154
// as this often indicates that one of these is wrong.
155155
REQUIRE_FALSE(class_type.get_bool(ID_incomplete_class));
156-
return maybe_goto_model;
156+
return std::move(*maybe_goto_model);
157157
}
158158

159159
/// Returns the symbol table from \ref load_goto_model_from_java_class
@@ -180,7 +180,7 @@ symbol_tablet load_java_class(
180180
/// See \ref load_goto_model_from_java_class
181181
/// With the command line configured to disable lazy loading and string
182182
/// refinement and the language set to be the default java_bytecode language
183-
std::unique_ptr<goto_modelt> load_goto_model_from_java_class(
183+
goto_modelt load_goto_model_from_java_class(
184184
const std::string &java_class_name,
185185
const std::string &class_path,
186186
const std::string &main)

jbmc/unit/java-testing-utils/load_java_class.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ symbol_tablet load_java_class(
2525
const std::string &class_path,
2626
const std::string &main = "");
2727

28-
std::unique_ptr<goto_modelt> load_goto_model_from_java_class(
28+
goto_modelt load_goto_model_from_java_class(
2929
const std::string &java_class_name,
3030
const std::string &class_path,
3131
const std::string &main = "");
@@ -43,7 +43,7 @@ symbol_tablet load_java_class(
4343
std::unique_ptr<languaget> &&java_lang,
4444
const cmdlinet &command_line);
4545

46-
std::unique_ptr<goto_modelt> load_goto_model_from_java_class(
46+
goto_modelt load_goto_model_from_java_class(
4747
const std::string &java_class_name,
4848
const std::string &class_path,
4949
const std::string &main,

0 commit comments

Comments
 (0)