void effective_range_2(int m, int n) {
  ((m - n <= 0) ? (void)(0)
                : __assert_fail(
                      "m - n <= 0",
                      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                      "outputs/2022-01-22/02-19-57/repos/apple/swift-clang/"
                      "refs/heads/master/3rd/templight/llvm/tools/clang/test/"
                      "Analysis/constraint_manager_negate_difference.c",
                      108, __func__));
  ((n - m <= 0) ? (void)(0)
                : __assert_fail(
                      "n - m <= 0",
                      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                      "outputs/2022-01-22/02-19-57/repos/apple/swift-clang/"
                      "refs/heads/master/3rd/templight/llvm/tools/clang/test/"
                      "Analysis/constraint_manager_negate_difference.c",
                      109, __func__));
  clang_analyzer_eval(m - n == 0);
  clang_analyzer_eval(n - m == 0);
}


x86 assembly (clang, -O0):
<effective_range_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
cmp    $0x0,%eax
jg     1142 <effective_range_2+0x22>
jmp    1163 <effective_range_2+0x43>
lea    0xeb7(%rip),%rdi
lea    0xebb(%rip),%rsi
mov    $0x6c,%edx
lea    0xf81(%rip),%rcx
mov    $0x0,%al
call   1030 <__assert_fail@plt>
mov    -0x8(%rbp),%eax
sub    -0x4(%rbp),%eax
cmp    $0x0,%eax
jg     1177 <effective_range_2+0x57>
jmp    1198 <effective_range_2+0x78>
lea    0xf71(%rip),%rdi
lea    0xe86(%rip),%rsi
mov    $0x6d,%edx
lea    0xf4c(%rip),%rcx
mov    $0x0,%al
call   1030 <__assert_fail@plt>
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <clang_analyzer_eval@plt>
mov    -0x8(%rbp),%eax
sub    -0x4(%rbp),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<effective_range_2>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %edi,%ebp
mov    %edi,%r14d
sub    %esi,%r14d
jle    1151 <effective_range_2+0x31>
lea    0xec9(%rip),%rdi
lea    0xecd(%rip),%rsi
lea    0xf98(%rip),%rcx
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <__assert_fail@plt>
sub    %ebp,%ebx
jle    1176 <effective_range_2+0x56>
lea    0xf93(%rip),%rdi
lea    0xea8(%rip),%rsi
lea    0xf73(%rip),%rcx
mov    $0x6d,%edx
xor    %eax,%eax
call   1030 <__assert_fail@plt>
xor    %edi,%edi
test   %r14d,%r14d
sete   %dil
xor    %eax,%eax
call   1040 <clang_analyzer_eval@plt>
xor    %edi,%edi
test   %ebx,%ebx
sete   %dil
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <clang_analyzer_eval@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"m - n <= 0\00"
@.str.1 = [210 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apple/swift-clang/refs/heads/master/3rd/templight/llvm/tools/clang/test/Analysis/constraint_manager_negate_difference.c\00"
@__func__.effective_range_2 = [18 x i8] c"effective_range_2\00"
@.str.2 = [11 x i8] c"n - m <= 0\00"
define void @effective_range_2(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = sub nsw i32 %5, %6
%8 = icmp sle i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
br label %12
10: ; preds = %2
%11 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_fail to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([210 x i8], [210 x i8]* @.str.1, i64 0, i64 0), i32 108, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__func__.effective_range_2, i64 0, i64 0))
br label %12
12: ; preds = %10, %9
%13 = load i32, i32* %4
%14 = load i32, i32* %3
%15 = sub nsw i32 %13, %14
%16 = icmp sle i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
br label %20
18: ; preds = %12
%19 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_fail to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([210 x i8], [210 x i8]* @.str.1, i64 0, i64 0), i32 109, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__func__.effective_range_2, i64 0, i64 0))
br label %20
20: ; preds = %18, %17
%21 = load i32, i32* %3
%22 = load i32, i32* %4
%23 = sub nsw i32 %21, %22
%24 = icmp eq i32 %23, 0
%25 = zext i1 %24 to i32
%26 = call i32 (i32, ...) bitcast (i32 (...)* @clang_analyzer_eval to i32 (i32, ...)*)(i32 %25)
%27 = load i32, i32* %4
%28 = load i32, i32* %3
%29 = sub nsw i32 %27, %28
%30 = icmp eq i32 %29, 0
%31 = zext i1 %30 to i32
%32 = call i32 (i32, ...) bitcast (i32 (...)* @clang_analyzer_eval to i32 (i32, ...)*)(i32 %31)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"m - n <= 0\00"
@.str.1 = [210 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apple/swift-clang/refs/heads/master/3rd/templight/llvm/tools/clang/test/Analysis/constraint_manager_negate_difference.c\00"
@__func__.effective_range_2 = [18 x i8] c"effective_range_2\00"
@.str.2 = [11 x i8] c"n - m <= 0\00"
define void @effective_range_2(i32 %0, i32 %1) {
%3 = sub nsw i32 %0, %1
%4 = icmp slt i32 %3, 1
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_fail to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([210 x i8], [210 x i8]* @.str.1, i64 0, i64 0), i32 108, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__func__.effective_range_2, i64 0, i64 0))
br label %7
7: ; preds = %2, %5
%8 = sub nsw i32 %1, %0
%9 = icmp slt i32 %8, 1
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_fail to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([210 x i8], [210 x i8]* @.str.1, i64 0, i64 0), i32 109, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__func__.effective_range_2, i64 0, i64 0))
br label %12
12: ; preds = %7, %10
%13 = icmp eq i32 %3, 0
%14 = zext i1 %13 to i32
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @clang_analyzer_eval to i32 (i32, ...)*)(i32 %14)
%16 = icmp eq i32 %8, 0
%17 = zext i1 %16 to i32
%18 = tail call i32 (i32, ...) bitcast (i32 (...)* @clang_analyzer_eval to i32 (i32, ...)*)(i32 %17)
ret void
}