|
From: Dimitri Papadopoulos-O. <pap...@sh...> - 2005-03-04 09:29:56
|
Hi, > I'm attaching a program that demonstrates the problem. When I compile Mmmh... If the code was less obfuscated, maybe I could understand it :-) Seriously, can't the algorithm be clarified and the code simplified and properly indented? > with -O0 or -O1, there's no problem, but with -O2 and above, I get: I've added a few printf's to your code to track best_dist[k] initializations. It does look like best_dist[k] is initialized using unitialiazed best_dist[k-1] values. See attached modified val.c source file. Dimitri |