[llvm] [DA] Introduce domain for monotonicity (PR #176367)

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 28 10:25:08 PST 2026


amehsan wrote:

> What I disagree with is adding the constraint `0 <=s BTC` to the Strong SIV test. The reason is that I'm not convinced that adding this constraint actually makes the test sound

@nikic @fhahn @arsenm 

I have two questions for the area team about how a technical discussion should be conducted in the LLVM community. 


I have presented a proof (https://github.com/llvm/llvm-project/issues/168823#issuecomment-3591966501). As the comment quoted above (and some other sentences in the previous comment of this issue) shows this proof  is not considered (In particular part 2 of the proof). In my experience when a developer claims to have a proof at this level of complexity (basically using high-school math) it is discussed until one of the conclusions is reached:

1- The proof is refuted by presenting a counter-example that shows either the main claim is wrong or one of the logical steps in the proof is flawed.

2- The proof is confirmed to be correct and it will be considered for future discussions.

Does LLVM community has a different approach towards proofs (when alternatives such as formal verification is not available)?

------------------------------------------

As a follow up question to this:

For something like DA, if we don't want to rely on handwritten mathematical proofs of correctness, what alternatives do we have to ensure correctness of the code? I agree that formal verification is better, but in the absence of that, it seems to me that the best we can do is to try to provide a mathematical proof of correctness of our algorithms. 

What is the common practice of LLVM community about these issues? 
 




https://github.com/llvm/llvm-project/pull/176367


More information about the llvm-commits mailing list