Closed vonaka closed 3 years ago
Hi vonaka, thank you so much for your feedback!
I understand your point. It is a good idea to include your proposed fix, which leads to a functionally equivalent program, but which avoids the valgrind
memory warning.
(Note that values that were not initialized in presquares
were never read by the program.)
I believe that in function
SemiStatic::System::init()
presquares[j]
can be not yet initialized at the moment of execution of line 36. And it looks likevalgrind
agrees with me: