lus2lic --gen-autotest : change the strategy to compare real values en generated oracles.
Indeed, for big integers, looking at |x-x'|<eps leads to false positive, because of the precision (*); it is better to to look at |1-x/x'|<eps (*) the precision (-p 6) influence the comparison, because the SUT currently sends its result via a socket and truncate the result (which is probably a bad idea). nb : the exec time explose (x3), but for an external (unknown) reason (undoing the change leads to the same exec time ~800s).
Showing
- src/main.ml 14 additions, 2 deletionssrc/main.ml
- src/soc2c.ml 2 additions, 2 deletionssrc/soc2c.ml
- test/lus2lic.sum 9 additions, 9 deletionstest/lus2lic.sum
- test/lus2lic.time 2 additions, 2 deletionstest/lus2lic.time
- test/should_work/sincos.lus 2 additions, 2 deletionstest/should_work/sincos.lus
- todo.org 41 additions, 49 deletionstodo.org
Loading
Please register or sign in to comment