You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go scientific: the math/cmplx., math/rand. and crypto/rand. arms match text no Go program contains; cmplx.Abs and rand.Intn are not counted #9432
Found by the SOP-002 gap-cell decoy work (protocol SOP-002-v1, epic #8863), batch c.
go.pyscientific is \b(math\.|math/cmplx\.|math/rand\.|crypto/rand\.|gonum\.)\b. A Go call is written with the package NAME (cmplx.Abs(z), rand.Intn(10), rand.Read(b)), never the import path, so the math/cmplx., math/rand. and crypto/rand. arms can only match the division expression math/rand.X (verified: y := math/rand.X -> 1). Only math. and gonum. ever fire on real code.
Snippets:
y:=cmplx.Abs(z)
n:=rand.Intn(10)
Expected (rule names math/cmplx and math/rand as scientific facilities): scientific >= 1. Actual: 0 for both. y := math.Sqrt(x) -> 1 is correct.
Activity