Skip to content

LABEL_SELFREF: potential false negatives #600

Open

Description

@yakra
  • There can be false negatives if a route has an abbrev included after a slash in the label.
    Not 100% sure how to approach this yet.
    • This begs for a more conventional strncmp-based approach that keeps track of the size of digits.
      The calls to strdcmp would probably go bye-bye. (Upside of that is, I'm free to generalize it for use in other contexts without having to lose sleep over a loss of efficiency in this particular application.)
    • For all its complexity, the code here is pretty compact, especially the first bit where it searches for a number match after a slash. This could all go to Centralia, but more likely I'll have to include 2 or 3 more (there are already 7) helper functions.
    • Consider inlining helper functions. New and existing.
  • Parenthetical exit numbers.
    Both at the beginning of a label and after a slash. Ow, my head.
    It's possible that during development I checked for any occurrences of a ( at the applicable position in a label, didn't find any, and said screw it. Or maybe I'm thinking of vertex name simplification? I dunno man.
    • I-80(42A) New switch case for the 2nd bit.
    • 42A(80) New bit similar to the 1st one for / (beware potential FPs).
    • 42A(M5) New bit similar to the 1st one for / (LOL).

Activity

  1. added
    LABEL_SELFREF
    on Jul 31, 2023
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

    LABEL_SELFREFdata qualitydatacheckrobustness

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions