Skip to content

Commit 7918a4c

Browse files
committed
move a variant of goto_instructiont::make_incomplete_goto
The particular variant is moved into the .cpp file to remove the need to include std_code.h in the header file.
1 parent cd93b5d commit 7918a4c

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/goto-programs/goto_program.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ std::ostream &goto_programt::output(std::ostream &out) const
3131
return output(namespacet(symbol_tablet()), irep_idt(), out);
3232
}
3333

34+
goto_programt::instructiont goto_programt::make_incomplete_goto(
35+
const code_gotot &_code,
36+
const source_locationt &l)
37+
{
38+
return instructiont(_code, l, INCOMPLETE_GOTO, true_exprt(), {});
39+
}
40+
3441
/// Writes to \p out a two/three line string representation of a given
3542
/// \p instruction. The output is of the format:
3643
/// ```

src/goto-programs/goto_program.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Author: Daniel Kroening, kroening@kroening.com
2323
#include <util/namespace.h>
2424
#include <util/source_location.h>
2525

26+
class code_gotot;
2627
enum class validation_modet;
2728

2829
/// The type of an instruction in a GOTO program.
@@ -971,11 +972,8 @@ class goto_programt
971972
}
972973

973974
static instructiont make_incomplete_goto(
974-
const code_gotot &_code,
975-
const source_locationt &l = source_locationt::nil())
976-
{
977-
return instructiont(_code, l, INCOMPLETE_GOTO, true_exprt(), {});
978-
}
975+
const code_gotot &,
976+
const source_locationt & = source_locationt::nil());
979977

980978
static instructiont make_goto(
981979
targett _target,

0 commit comments

Comments
 (0)