Skip to content

Rename "modifies*" entities in order to avoid possible confusion #6467

Closed
@SaswatPadhi

Description

@SaswatPadhi

CBMC version: 516f109
Operating system: n/a
Exact command line resulting in the issue: n/a (internal code refactor)
What behaviour did you expect: n/a (internal code refactor)
What happened instead: n/a (internal code refactor)

Related to @tautschnig's comment on a recent PR: #6249 (comment)

There are several methods and classes in goto-instrument that implement "assigns" (i.e., "writes") semantics but are named "modifies*" (e.g., get_modifies method in loop_utils.h, function_modifiest class in function_modifies.h etc.) We should refactor these and rename them to "assigns*" to avoid any possible confusion in the future. x := x is a non-modifying write.

The function_modifiest member function implementations also look quite similar to methods within loop_utils.cpp. We should also look into unifying these implementations.

Metadata

Metadata

Labels

awsBugs or features of importance to AWS CBMC userscleanuppending merge

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions