Skip to content

Feature request: labels for function pointer restrictions #6464

Closed
@avanhatt

Description

@avanhatt

RMC is starting to use CBMC function pointer restrictions.

We have found CBMC's naming convention for identifying specific function pointer calls (indexed based on static placement, documented here) to be difficult to use without introducing wrapper functions. It would be helpful if we could specify call sites using C labels instead:

That is, we would like to be able to use "call_f" : [...], "call_g": [...] instead of "surrounding_fn.function_pointer_call.1" : [...], "surrounding_fn.function_pointer_call.2": [...] for this example:

void surrounding_fn(..) {
    call_f: (*f)(x);
    call_g: (*g)(y);
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions