[bug-gsl] unreachable code in brent.c (2008-02-01)
|
From: |
"Pablo Haramburu" <ph0u@.........> |
|
Subject: |
unreachable code in brent.c |
|
Date: |
Fri, 1 Feb 2008 14:15:54 -0200 (ARST) |
|
To: |
bug-gsl@gnu.org |
Dear developers:
I noticed that there is a short fragment of unreachable code in
min/brent.c (gsl-1.10), function brent_iterate(), lines 197..210. The two
branches of the previous 'if' return, so the code after the 'if' is
unreachable.
I cannot tell if the code is bug-free or not, because I do not understand
the algorithm. I have sent this email in the hope that it is useful, as
unreachable code might point to a bug. If not, it might be a good idea to
remove the unreachable code or add at comment about it.
Sincerely,
Pablo Haramburu