Skip to content

Warn when control flow reaches end of a _Noreturn function #501

@michael-schwarz

Description

@michael-schwarz

Since goblint/cil#58, CIL supports the _Noreturn attribute.

As remarked by @sim642 on Slack, we should also do something with _Noreturn in Goblint and emit a warning when control flow does indeed reach the end of such a function (i.e. return node is not dead).

This probably also requires investigating which standard library functions terminate execution (e.g. exit(...) and friends).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions