[issue9530] integer undefined behaviors

2012-06-20 Thread John Regehr
John Regehr added the comment: I the tests for today's cpython using IOC and got only the issues below. The on-purpose divide by zero should be OK but the shift by -2 probably wants to be fixed. ARITHMETIC UNDEFINED at : Op: <<=, Reason : Signed Left Shift: Right operand is neg

[issue9530] integer undefined behaviors

2012-04-30 Thread John Regehr
John Regehr added the comment: Hi folks, I realize it was a long time ago that I reported this issue! Since then our tool has been made available: http://embed.cs.utah.edu/ioc/ In particular, that web page contains a pre-compiled version of the tool for recent Ubuntu on x86-64, that

[issue9530] integer undefined behaviors

2011-11-21 Thread John Regehr
John Regehr added the comment: Hi Mark, yes you can run the overflow checker but "easy instructions" depends on whether you feel like building your own LLVM. It is not at all difficult, but it's certainly not as easy as "apt-get install ...". Patch and instr

[issue9530] integer undefined behaviors

2011-11-19 Thread John Regehr
John Regehr added the comment: This is great. I'd be happy to re-run the tests sometime, and also we're talking with the LLVM folks about getting our patches into the main LLMM tree. Basically it'll act as a more powerful -ftrapv, and the error message will be much bette

[issue9530] integer undefined behaviors

2010-08-06 Thread John Regehr
John Regehr added the comment: Hi Mark-- Glad it's useful! We plan to release this tool but haven't done so yet, it still has rough edges. It's LLVM-based and it seems likely they will take our patches. -- ___ Python

[issue9530] integer undefined behaviors

2010-08-05 Thread John Regehr
New submission from John Regehr : I ran "make test" for today's Python3k snapshot under a tool which detects math operations that the C language considers to have undefined behavior. This was on x86 Linux. The list of undefined behaviors is attached. Hopefully they are s