Skip to content

Location numbers not unique across functions #313

Description

@danpoe

I noticed that the location numbers in the goto binaries produced by goto-cc are only unique per function (but not globally unique). Also when reading a goto binary (via, e.g., get_goto_program() in goto-instrument), the resulting goto functions do not contain globally unique location numbers even when the binary one read from had unique location numbers.

Is this all expected behavior? As it currently works we'd need to call goto_functions.update() immediately after reading a goto binary to make sure it has unique location numbers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions