[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bug with logical operator or misunderstanding?
- From: Ryota Hirose <hirose.ryota@...>
- Date: Fri, 28 Jan 2011 07:45:23 +0900
Hello Lua Hackers,
To generate constant, it will be necessary to write more lines and functions.
2011年1月27日 22:50:29 UTC+9 Roberto Ierusalimschy <firstname.lastname@example.org>
The attached program tests all cases with up to 3 connectives (and/or)
and prints the buggy ones. (It assumes that the basic and/or is
working :) The patch that removes all optimizations seems to correct
Wow, It's so cool. I've not undergone enough training yet...
BTW, either my last patch and Sean's second one pass all cases, but I think
that Sean's one is best for main line.
This optimization is a kind of the constant folding optimization, like
constfolding() for numerical operators, but goiftrue()/goiffalse() will
control only jump instructions. The best way is generating constant, I think.
It will be hard work, so, the work around must be simple, right now. The
half-finished work is not necessary. Please dump my patch to a trash bin.