WLS: false positive bug
Posted: February 16th, 2025, 8:36 am
FYI: While testing the WLS smartsearch routine i ported in lifesrc to be able to run on the command-line, i received a false positive when searching for a 2c/5 spaceship in life rule. After a day of debugging the code and finding nothing, i ran WLS (Both K and J versions) and could confirm the false positive:
This is reproducible with g5, r14, c8, row-mirror, -2 x cells right, no smartsearch strategy. It doesn't matter what search strategy one chooses, or which direction one wants to search.
I haven't found an earlier post about this specific bug in WLS. I'm unsure if this is easy or even worthwhile to fix. My guess is that is has to do with the large speed and the fact that there is only a one-cell empty border surrounding the searchbox: The 2-cell translation might skip over the empty border in the transition from g-1 generation slice to the 0 generation slice.
I'll poke around in my command-line port on Linux (since i'm more accustomed to code development and profiling over there), and see/try if i can find a cause/fix/workaround.
I haven't found an earlier post about this specific bug in WLS. I'm unsure if this is easy or even worthwhile to fix. My guess is that is has to do with the large speed and the fact that there is only a one-cell empty border surrounding the searchbox: The 2-cell translation might skip over the empty border in the transition from g-1 generation slice to the 0 generation slice.
I'll poke around in my command-line port on Linux (since i'm more accustomed to code development and profiling over there), and see/try if i can find a cause/fix/workaround.