#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ abort();
scalar_t__ test1(int);
scalar_t__ test1u(int);
int test2(int);
int test2u(int);
int test3(int);
int test3u(int);
int test4(int);
int test4u(int);
scalar_t__ test5(int);
scalar_t__ test5u(int);
scalar_t__ test6(int);
scalar_t__ test6u(int);
int main() {
  int c;
  for (c = -128; c < 256; c++) {
    if (test1(c) != 0)
      abort();
    if (test1u(c) != 0)
      abort();
    if (test2(c) != 1)
      abort();
    if (test2u(c) != 1)
      abort();
    if (test3(c) != 1)
      abort();
    if (test3u(c) != 1)
      abort();
    if (test4(c) != 1)
      abort();
    if (test4u(c) != 1)
      abort();
    if (test5(c) != 0)
      abort();
    if (test5u(c) != 0)
      abort();
    if (test6(c) != 0)
      abort();
    if (test6u(c) != 0)
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffff80,-0x8(%rbp)
cmpl   $0x100,-0x8(%rbp)
jge    132c <main+0x15c>
mov    -0x8(%rbp),%edi
call   1070 <test1@plt>
cmp    $0x0,%rax
je     120c <main+0x3c>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   10e0 <test1u@plt>
cmp    $0x0,%rax
je     1225 <main+0x55>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   10c0 <test2@plt>
cmp    $0x1,%eax
je     123d <main+0x6d>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   1090 <test2u@plt>
cmp    $0x1,%eax
je     1255 <main+0x85>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   1060 <test3@plt>
cmp    $0x1,%eax
je     126d <main+0x9d>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   1040 <test3u@plt>
cmp    $0x1,%eax
je     1285 <main+0xb5>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   10b0 <test4@plt>
cmp    $0x1,%eax
je     129d <main+0xcd>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   10d0 <test4u@plt>
cmp    $0x1,%eax
je     12b5 <main+0xe5>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   1050 <test5@plt>
cmp    $0x0,%rax
je     12ce <main+0xfe>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   1080 <test5u@plt>
cmp    $0x0,%rax
je     12e7 <main+0x117>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   10a0 <test6@plt>
cmp    $0x0,%rax
je     1300 <main+0x130>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%edi
call   10f0 <test6u@plt>
cmp    $0x0,%rax
je     1319 <main+0x149>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    131e <main+0x14e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11e6 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0xffffff80,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1070 <test1@plt>
test   %rax,%rax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   10e0 <test1u@plt>
test   %rax,%rax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   10c0 <test2@plt>
cmp    $0x1,%eax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   1090 <test2u@plt>
cmp    $0x1,%eax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   1060 <test3@plt>
cmp    $0x1,%eax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   1040 <test3u@plt>
cmp    $0x1,%eax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   10b0 <test4@plt>
cmp    $0x1,%eax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   10d0 <test4u@plt>
cmp    $0x1,%eax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   1050 <test5@plt>
test   %rax,%rax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   1080 <test5u@plt>
test   %rax,%rax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   10a0 <test6@plt>
test   %rax,%rax
jne    128b <main+0xbb>
mov    %ebx,%edi
call   10f0 <test6u@plt>
test   %rax,%rax
jne    128b <main+0xbb>
add    $0x1,%ebx
cmp    $0x100,%ebx
jne    11e0 <main+0x10>
xor    %eax,%eax
pop    %rbx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 -128, i32* %2
br label %3
3: ; preds = %79, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 256
br i1 %5, label %6, label %82
6: ; preds = %3
%7 = load i32, i32* %2
%8 = call i64 @test1(i32 %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = call i32 (...) @abort()
unreachable
12: ; preds = %6
%13 = load i32, i32* %2
%14 = call i64 @test1u(i32 %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 (...) @abort()
unreachable
18: ; preds = %12
%19 = load i32, i32* %2
%20 = call i32 @test2(i32 %19)
%21 = icmp ne i32 %20, 1
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 (...) @abort()
unreachable
24: ; preds = %18
%25 = load i32, i32* %2
%26 = call i32 @test2u(i32 %25)
%27 = icmp ne i32 %26, 1
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 (...) @abort()
unreachable
30: ; preds = %24
%31 = load i32, i32* %2
%32 = call i32 @test3(i32 %31)
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = call i32 (...) @abort()
unreachable
36: ; preds = %30
%37 = load i32, i32* %2
%38 = call i32 @test3u(i32 %37)
%39 = icmp ne i32 %38, 1
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 (...) @abort()
unreachable
42: ; preds = %36
%43 = load i32, i32* %2
%44 = call i32 @test4(i32 %43)
%45 = icmp ne i32 %44, 1
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = call i32 (...) @abort()
unreachable
48: ; preds = %42
%49 = load i32, i32* %2
%50 = call i32 @test4u(i32 %49)
%51 = icmp ne i32 %50, 1
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = call i32 (...) @abort()
unreachable
54: ; preds = %48
%55 = load i32, i32* %2
%56 = call i64 @test5(i32 %55)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (...) @abort()
unreachable
60: ; preds = %54
%61 = load i32, i32* %2
%62 = call i64 @test5u(i32 %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = call i32 (...) @abort()
unreachable
66: ; preds = %60
%67 = load i32, i32* %2
%68 = call i64 @test6(i32 %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = call i32 (...) @abort()
unreachable
72: ; preds = %66
%73 = load i32, i32* %2
%74 = call i64 @test6u(i32 %73)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %72
%77 = call i32 (...) @abort()
unreachable
78: ; preds = %72
br label %79
79: ; preds = %78
%80 = load i32, i32* %2
%81 = add nsw i32 %80, 1
store i32 %81, i32* %2
br label %3
82: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
br label %4
1: ; preds = %60
%2 = add nsw i32 %5, 1
%3 = icmp eq i32 %2, 256
br i1 %3, label %65, label %4
4: ; preds = %0, %1
%5 = phi i32 [ -128, %0 ], [ %2, %1 ]
%6 = tail call i64 @test1(i32 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %4
%9 = tail call i32 (...) @abort()
unreachable
10: ; preds = %4
%11 = tail call i64 @test1u(i32 %5)
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 (...) @abort()
unreachable
15: ; preds = %10
%16 = tail call i32 @test2(i32 %5)
%17 = icmp eq i32 %16, 1
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 (...) @abort()
unreachable
20: ; preds = %15
%21 = tail call i32 @test2u(i32 %5)
%22 = icmp eq i32 %21, 1
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 (...) @abort()
unreachable
25: ; preds = %20
%26 = tail call i32 @test3(i32 %5)
%27 = icmp eq i32 %26, 1
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 (...) @abort()
unreachable
30: ; preds = %25
%31 = tail call i32 @test3u(i32 %5)
%32 = icmp eq i32 %31, 1
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32 (...) @abort()
unreachable
35: ; preds = %30
%36 = tail call i32 @test4(i32 %5)
%37 = icmp eq i32 %36, 1
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 (...) @abort()
unreachable
40: ; preds = %35
%41 = tail call i32 @test4u(i32 %5)
%42 = icmp eq i32 %41, 1
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = tail call i32 (...) @abort()
unreachable
45: ; preds = %40
%46 = tail call i64 @test5(i32 %5)
%47 = icmp eq i64 %46, 0
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = tail call i32 (...) @abort()
unreachable
50: ; preds = %45
%51 = tail call i64 @test5u(i32 %5)
%52 = icmp eq i64 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = tail call i32 (...) @abort()
unreachable
55: ; preds = %50
%56 = tail call i64 @test6(i32 %5)
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = tail call i32 (...) @abort()
unreachable
60: ; preds = %55
%61 = tail call i64 @test6u(i32 %5)
%62 = icmp eq i64 %61, 0
br i1 %62, label %1, label %63
63: ; preds = %60
%64 = tail call i32 (...) @abort()
unreachable
65: ; preds = %1
ret i32 0
}