int main(void) {
  if (func1(6, 7) != 42) {
    abort();
  }
  if (func2(1000, 1000) != 1000000L) {
    abort();
  }
  if (func3(70000L, -32L) != -2240000L) {
    abort();
  }
  if (func4(-40L, -80L) != 3200LL) {
    abort();
  }
  if (func5(9LL, 9LL) != 81LL) {
    abort();
  }
  if (func6(-2U, 8U) != 524272LU) {
    abort();
  }
  if (func7(99UL, 101UL) != 9999LLU) {
    abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x6,%edi
mov    $0x7,%esi
mov    $0x0,%al
call   1050 <func1@plt>
cmp    $0x2a,%eax
je     11ae <main+0x2e>
call   1060 <abort@plt>
mov    $0x3e8,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1090 <func2@plt>
cltq
cmp    $0xf4240,%rax
je     11cf <main+0x4f>
call   1060 <abort@plt>
mov    $0x11170,%edi
mov    $0xffffffffffffffe0,%rsi
mov    $0x0,%al
call   1030 <func3@plt>
cltq
cmp    $0xffffffffffddd200,%rax
je     11f5 <main+0x75>
call   1060 <abort@plt>
mov    $0xffffffffffffffd8,%rdi
mov    $0xffffffffffffffb0,%rsi
mov    $0x0,%al
call   1080 <func4@plt>
cltq
cmp    $0xc80,%rax
je     121d <main+0x9d>
call   1060 <abort@plt>
mov    $0x9,%esi
mov    %rsi,%rdi
mov    $0x0,%al
call   1040 <func5@plt>
cltq
cmp    $0x51,%rax
je     123d <main+0xbd>
call   1060 <abort@plt>
mov    $0xfffffffe,%edi
mov    $0x8,%esi
mov    $0x0,%al
call   10a0 <func6@plt>
cltq
cmp    $0x7fff0,%rax
je     1261 <main+0xe1>
call   1060 <abort@plt>
mov    $0x63,%edi
mov    $0x65,%esi
mov    $0x0,%al
call   1070 <func7@plt>
cltq
cmp    $0x270f,%rax
je     1285 <main+0x105>
call   1060 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x6,%edi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <func1@plt>
cmp    $0x2a,%eax
jne    1237 <main+0xb7>
mov    $0x3e8,%edi
mov    $0x3e8,%esi
xor    %eax,%eax
call   1090 <func2@plt>
cmp    $0xf4240,%eax
jne    1237 <main+0xb7>
mov    $0x11170,%edi
mov    $0xffffffffffffffe0,%rsi
xor    %eax,%eax
call   1030 <func3@plt>
cmp    $0xffddd200,%eax
jne    1237 <main+0xb7>
mov    $0xffffffffffffffd8,%rdi
mov    $0xffffffffffffffb0,%rsi
xor    %eax,%eax
call   1080 <func4@plt>
cmp    $0xc80,%eax
jne    1237 <main+0xb7>
mov    $0x9,%edi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <func5@plt>
cmp    $0x51,%eax
jne    1237 <main+0xb7>
mov    $0xfffffffe,%edi
mov    $0x8,%esi
xor    %eax,%eax
call   10a0 <func6@plt>
cmp    $0x7fff0,%eax
jne    1237 <main+0xb7>
mov    $0x63,%edi
mov    $0x65,%esi
xor    %eax,%eax
call   1070 <func7@plt>
cmp    $0x270f,%eax
jne    1237 <main+0xb7>
xor    %eax,%eax
pop    %rcx
ret
call   1060 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i32, i32, ...) bitcast (i32 (...)* @func1 to i32 (i32, i32, ...)*)(i32 6, i32 7)
%3 = icmp ne i32 %2, 42
br i1 %3, label %4, label %5
4: ; preds = %0
unreachable
5: ; preds = %0
%6 = call i32 (i32, i32, ...) bitcast (i32 (...)* @func2 to i32 (i32, i32, ...)*)(i32 1000, i32 1000)
%7 = sext i32 %6 to i64
%8 = icmp ne i64 %7, 1000000
br i1 %8, label %9, label %10
9: ; preds = %5
unreachable
10: ; preds = %5
%11 = call i32 (i64, i64, ...) bitcast (i32 (...)* @func3 to i32 (i64, i64, ...)*)(i64 70000, i64 -32)
%12 = sext i32 %11 to i64
%13 = icmp ne i64 %12, -2240000
br i1 %13, label %14, label %15
14: ; preds = %10
unreachable
15: ; preds = %10
%16 = call i32 (i64, i64, ...) bitcast (i32 (...)* @func4 to i32 (i64, i64, ...)*)(i64 -40, i64 -80)
%17 = sext i32 %16 to i64
%18 = icmp ne i64 %17, 3200
br i1 %18, label %19, label %20
19: ; preds = %15
unreachable
20: ; preds = %15
%21 = call i32 (i64, i64, ...) bitcast (i32 (...)* @func5 to i32 (i64, i64, ...)*)(i64 9, i64 9)
%22 = sext i32 %21 to i64
%23 = icmp ne i64 %22, 81
br i1 %23, label %24, label %25
24: ; preds = %20
unreachable
25: ; preds = %20
%26 = call i32 (i32, i32, ...) bitcast (i32 (...)* @func6 to i32 (i32, i32, ...)*)(i32 -2, i32 8)
%27 = sext i32 %26 to i64
%28 = icmp ne i64 %27, 524272
br i1 %28, label %29, label %30
29: ; preds = %25
unreachable
30: ; preds = %25
%31 = call i32 (i64, i64, ...) bitcast (i32 (...)* @func7 to i32 (i64, i64, ...)*)(i64 99, i64 101)
%32 = sext i32 %31 to i64
%33 = icmp ne i64 %32, 9999
br i1 %33, label %34, label %35
34: ; preds = %30
unreachable
35: ; preds = %30
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @func1 to i32 (i32, i32, ...)*)(i32 6, i32 7)
%2 = icmp eq i32 %1, 42
br i1 %2, label %4, label %3
3: ; preds = %0
tail call void @abort()
unreachable
4: ; preds = %0
%5 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @func2 to i32 (i32, i32, ...)*)(i32 1000, i32 1000)
%6 = icmp eq i32 %5, 1000000
br i1 %6, label %8, label %7
7: ; preds = %4
tail call void @abort()
unreachable
8: ; preds = %4
%9 = tail call i32 (i64, i64, ...) bitcast (i32 (...)* @func3 to i32 (i64, i64, ...)*)(i64 70000, i64 -32)
%10 = icmp eq i32 %9, -2240000
br i1 %10, label %12, label %11
11: ; preds = %8
tail call void @abort()
unreachable
12: ; preds = %8
%13 = tail call i32 (i64, i64, ...) bitcast (i32 (...)* @func4 to i32 (i64, i64, ...)*)(i64 -40, i64 -80)
%14 = icmp eq i32 %13, 3200
br i1 %14, label %16, label %15
15: ; preds = %12
tail call void @abort()
unreachable
16: ; preds = %12
%17 = tail call i32 (i64, i64, ...) bitcast (i32 (...)* @func5 to i32 (i64, i64, ...)*)(i64 9, i64 9)
%18 = icmp eq i32 %17, 81
br i1 %18, label %20, label %19
19: ; preds = %16
tail call void @abort()
unreachable
20: ; preds = %16
%21 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @func6 to i32 (i32, i32, ...)*)(i32 -2, i32 8)
%22 = icmp eq i32 %21, 524272
br i1 %22, label %24, label %23
23: ; preds = %20
tail call void @abort()
unreachable
24: ; preds = %20
%25 = tail call i32 (i64, i64, ...) bitcast (i32 (...)* @func7 to i32 (i64, i64, ...)*)(i64 99, i64 101)
%26 = icmp eq i32 %25, 9999
br i1 %26, label %28, label %27
27: ; preds = %24
tail call void @abort()
unreachable
28: ; preds = %24
ret i32 0
}