[Haskell-cafe] Optimization flag changing result of code execution

Azeem -ul-Hasan azeeem at live.com
Sun Mar 17 14:48:06 CET 2013


I am using
   GHC 7.6.1
   mwc-random 0.12.0.1
   vector 0.9.1
   primitive 0.4.1

Azeem
  
On 16.03.2013 13:31, Azeem -ul-Hasan wrote:
> Nope that isn't the case either. Even if I make use of defaultSeed
> through create the problem still remains. The problem seems to be in the
> generation of a vector of (a,a) i.e in the part
>
> V.generateM ((round $ p*(fromIntegral $ l*z)) `div` 2) (\i-> R.uniformR
> ((0,0) , (l-1,l-1)) gen)
>
> in line 16. Thanks again.
>
I've tried to run you program and I've got approximately same results 
regardless of optimization level. Which versions of GHC, mwc-random, 
vector and primitive do you use?
 
 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130317/1cb8eed9/attachment.htm>


More information about the Haskell-Cafe mailing list