Skip to content

Commit 32a68db

Browse files
author
Daniel Kroening
authored
Merge pull request #757 from forejtv/bugfix/master-fixes
Fix broken master
2 parents e69632e + 65cad8f commit 32a68db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

regression/goto-analyzer/approx-const-fp-array-variable-invalid-cast-const-fp/test.desc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ main.c
33
--show-goto-functions --verbosity 10 --pointer-check
44

55
^Removing function pointers and virtual functions$
6-
^\s*IF fp == \(void \(\*\)\(void\)\)f2 THEN GOTO [0-9]$
7-
^\s*IF fp == \(void \(\*\)\(void\)\)f3 THEN GOTO [0-9]$
8-
^\s*IF fp == \(void \(\*\)\(void\)\)f4 THEN GOTO [0-9]$
6+
^\s*IF fp == \(const void_fp\)f2 THEN GOTO [0-9]$
7+
^\s*IF fp == \(const void_fp\)f3 THEN GOTO [0-9]$
8+
^\s*IF fp == \(const void_fp\)f4 THEN GOTO [0-9]$
99
^SIGNAL=0$
1010
--
1111
^warning: ignoring

src/cbmc/symex_bmc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void symex_bmct::symex_step(
8888
!state.guard.is_false() &&
8989
// avoid an invalid iterator in state.source.pc
9090
(!cur_pc->is_end_function() ||
91-
cur_pc->function!=ID__start) &&
91+
cur_pc->function!=goto_functions.entry_point()) &&
9292
// ignore transition to next instruction when goto points elsewhere
9393
(!cur_pc->is_goto() ||
9494
cur_pc->get_target()==state.source.pc ||

0 commit comments

Comments
 (0)