Skip to content

Commit edd216f

Browse files
committed
remove base_type_eq from goto_programt::instructiont::validate
1 parent b466503 commit edd216f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/goto-programs/goto_program.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Author: Daniel Kroening, [email protected]
1515

1616
#include <iomanip>
1717

18-
#include <util/base_type.h>
1918
#include <util/expr_iterator.h>
2019
#include <util/find_symbols.h>
2120
#include <util/format_expr.h>
@@ -808,7 +807,7 @@ void goto_programt::instructiont::validate(
808807
if(!ns.lookup(goto_id, table_symbol))
809808
{
810809
bool symbol_expr_type_matches_symbol_table =
811-
base_type_eq(goto_symbol_expr.type(), table_symbol->type, ns);
810+
goto_symbol_expr.type() == table_symbol->type;
812811

813812
if(
814813
!symbol_expr_type_matches_symbol_table &&
@@ -831,7 +830,7 @@ void goto_programt::instructiont::validate(
831830
table_symbol_type.return_type();
832831

833832
symbol_expr_type_matches_symbol_table =
834-
base_type_eq(goto_symbol_expr_type, table_symbol_type, ns);
833+
goto_symbol_expr_type == table_symbol_type;
835834
}
836835
}
837836

0 commit comments

Comments
 (0)