Skip to content

Commit 466f12b

Browse files
Move contents of goto_program_template.cpp to goto_program.cpp
goto_program_template.cpp seems to be a relict of times where we had goto_program_template.h
1 parent db3784f commit 466f12b

File tree

3 files changed

+28
-43
lines changed

3 files changed

+28
-43
lines changed

src/goto-programs/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ SRC = adjust_float_expressions.cpp \
1919
goto_inline_class.cpp \
2020
goto_inline.cpp \
2121
goto_program.cpp \
22-
goto_program_template.cpp \
2322
goto_trace.cpp \
2423
graphml_witness.cpp \
2524
initialize_goto_model.cpp \

src/goto-programs/goto_program.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,3 +698,31 @@ bool goto_programt::equals(const goto_programt &other) const
698698

699699
return true;
700700
}
701+
702+
std::ostream &operator<<(std::ostream &out, goto_program_instruction_typet t)
703+
{
704+
switch(t)
705+
{
706+
case NO_INSTRUCTION_TYPE: out << "NO_INSTRUCTION_TYPE"; break;
707+
case GOTO: out << "GOTO"; break;
708+
case ASSUME: out << "ASSUME"; break;
709+
case ASSERT: out << "ASSERT"; break;
710+
case OTHER: out << "OTHER"; break;
711+
case DECL: out << "DECL"; break;
712+
case DEAD: out << "DEAD"; break;
713+
case SKIP: out << "SKIP"; break;
714+
case START_THREAD: out << "START_THREAD"; break;
715+
case END_THREAD: out << "END_THREAD"; break;
716+
case LOCATION: out << "LOCATION"; break;
717+
case END_FUNCTION: out << "END_FUNCTION"; break;
718+
case ATOMIC_BEGIN: out << "ATOMIC_BEGIN"; break;
719+
case ATOMIC_END: out << "ATOMIC_END"; break;
720+
case RETURN: out << "RETURN"; break;
721+
case ASSIGN: out << "ASSIGN"; break;
722+
case FUNCTION_CALL: out << "FUNCTION_CALL"; break;
723+
default:
724+
out << "?";
725+
}
726+
727+
return out;
728+
}

src/goto-programs/goto_program_template.cpp

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)