Skip to content

Remove unreachable instructions #2485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/cpp/parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2386,8 +2386,6 @@ bool Parser::optAttribute(typet &t)
return false;
}
}

return true;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/goto-cc/as_mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ int as_modet::as_hybrid_binary()

#else
error() << "binary merging not implemented for this platform" << eom;
return 1;
result = 1;
#endif

return result;
Expand Down
7 changes: 2 additions & 5 deletions src/pointer-analysis/goto_program_dereference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@ bool goto_program_dereferencet::is_valid_object(
return true; // global/static

#if 0
if(valid_local_variables->find(symbol.name)!=
valid_local_variables->end())
return true; // valid local
return valid_local_variables->find(symbol.name)!=
valid_local_variables->end(); // valid local
#else
return true;
#endif

return false;
}

void goto_program_dereferencet::dereference_failure(
Expand Down
3 changes: 0 additions & 3 deletions src/util/simplify_expr_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1483,9 +1483,6 @@ bool simplify_exprt::simplify_inequality(exprt &expr)
// both are not constant
return simplify_inequality_not_constant(expr);
}

UNREACHABLE;
return false;
}

bool simplify_exprt::eliminate_common_addends(
Expand Down
2 changes: 0 additions & 2 deletions src/util/simplify_expr_pointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ bool simplify_exprt::simplify_pointer_offset(exprt &expr)

return false;
}

return true;
}

return true;
Expand Down