#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 */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
int main(int argc, char *argv[]) {
  uint32_t op1;
  uint32_t op2;
  uint32_t i;
  op1 = 0;
  op2 = 0xfffffff0;
  i = 32;
  for (i = 0; i < 32; ++i) {
    printf("0x%08x,0x%08x,0x%08x\n", op1, op2, op1 + op2);
    op1++;
  }
  op1 = 0xfffffff0;
  op2 = 0;
  i = 32;
  for (i = 0; i < 32; ++i) {
    printf("0x%08x,0x%08x,0x%08x\n", op1, op2, op1 + op2);
    op2++;
  }
  op1 = 0x80000000;
  op2 = 0x80000000 - 0x10;
  i = 32;
  for (i = 0; i < 32; ++i) {
    printf("0x%08x,0x%08x,0x%08x\n", op1, op2, op1 + op2);
    op2++;
  }
  op1 = 0;
  op2 = 0xfffffff0;
  i = 32;
  for (i = 0; i < 32; ++i) {
    printf("%u,%u,%u\n", op1, op2, op1 + op2);
    op1++;
  }
  op1 = 0xfffffff0;
  op2 = 0;
  i = 32;
  for (i = 0; i < 32; ++i) {
    printf("%u,%u,%u\n", op1, op2, op1 + op2);
    op2++;
  }
  op1 = 0x80000000;
  op2 = 0x80000000 - 0x10;
  i = 32;
  for (i = 0; i < 32; ++i) {
    printf("%u,%u,%u\n", op1, op2, op1 + op2);
    op2++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0xfffffff0,-0x18(%rbp)
movl   $0x20,-0x1c(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jge    117b <main+0x6b>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1142 <main+0x32>
movl   $0xfffffff0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x20,-0x1c(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jge    11d0 <main+0xc0>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1197 <main+0x87>
movl   $0x80000000,-0x14(%rbp)
movl   $0x7ffffff0,-0x18(%rbp)
movl   $0x20,-0x1c(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jge    1225 <main+0x115>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
lea    0xdf7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ec <main+0xdc>
movl   $0x0,-0x14(%rbp)
movl   $0xfffffff0,-0x18(%rbp)
movl   $0x20,-0x1c(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jge    127a <main+0x16a>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
lea    0xdb8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1241 <main+0x131>
movl   $0xfffffff0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x20,-0x1c(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jge    12cf <main+0x1bf>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
lea    0xd63(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1296 <main+0x186>
movl   $0x80000000,-0x14(%rbp)
movl   $0x7ffffff0,-0x18(%rbp)
movl   $0x20,-0x1c(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jge    1324 <main+0x214>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
lea    0xd0e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12eb <main+0x1db>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xee3(%rip),%r14
nopl   (%rax)
lea    -0x10(%rbx),%ecx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0xfffffff0,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x20,%ebx
jne    1120 <main+0x10>
xor    %ebx,%ebx
lea    0xebd(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    -0x10(%rbx),%ecx
mov    %r14,%rdi
mov    $0xfffffff0,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x20,%ebx
jne    1150 <main+0x40>
mov    $0x7ffffff0,%ebx
lea    0xe8a(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%ecx
or     $0x80000000,%ecx
mov    %r14,%rdi
mov    $0x80000000,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x80000010,%ebx
jne    1180 <main+0x70>
xor    %ebx,%ebx
lea    0xe6b(%rip),%r14
nopl   0x0(%rax,%rax,1)
lea    -0x10(%rbx),%ecx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0xfffffff0,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x20,%ebx
jne    11b0 <main+0xa0>
xor    %ebx,%ebx
lea    0xe43(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    -0x10(%rbx),%ecx
mov    %r14,%rdi
mov    $0xfffffff0,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x20,%ebx
jne    11e0 <main+0xd0>
mov    $0x7ffffff0,%ebx
lea    0xe10(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%ecx
or     $0x80000000,%ecx
mov    %r14,%rdi
mov    $0x80000000,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x80000010,%ebx
jne    1210 <main+0x100>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [22 x i8] c"0x%08x,0x%08x,0x%08x\0A\00"
@.str.1 = [10 x i8] c"%u,%u,%u\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 -16, i32* %7
store i32 32, i32* %8
store i32 0, i32* %8
br label %9
9: ; preds = %21, %2
%10 = load i32, i32* %8
%11 = icmp slt i32 %10, 32
br i1 %11, label %12, label %24
12: ; preds = %9
%13 = load i32, i32* %6
%14 = load i32, i32* %7
%15 = load i32, i32* %6
%16 = load i32, i32* %7
%17 = add nsw i32 %15, %16
%18 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %13, i32 %14, i32 %17)
%19 = load i32, i32* %6
%20 = add nsw i32 %19, 1
store i32 %20, i32* %6
br label %21
21: ; preds = %12
%22 = load i32, i32* %8
%23 = add nsw i32 %22, 1
store i32 %23, i32* %8
br label %9
24: ; preds = %9
store i32 -16, i32* %6
store i32 0, i32* %7
store i32 32, i32* %8
store i32 0, i32* %8
br label %25
25: ; preds = %37, %24
%26 = load i32, i32* %8
%27 = icmp slt i32 %26, 32
br i1 %27, label %28, label %40
28: ; preds = %25
%29 = load i32, i32* %6
%30 = load i32, i32* %7
%31 = load i32, i32* %6
%32 = load i32, i32* %7
%33 = add nsw i32 %31, %32
%34 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %29, i32 %30, i32 %33)
%35 = load i32, i32* %7
%36 = add nsw i32 %35, 1
store i32 %36, i32* %7
br label %37
37: ; preds = %28
%38 = load i32, i32* %8
%39 = add nsw i32 %38, 1
store i32 %39, i32* %8
br label %25
40: ; preds = %25
store i32 -2147483648, i32* %6
store i32 2147483632, i32* %7
store i32 32, i32* %8
store i32 0, i32* %8
br label %41
41: ; preds = %53, %40
%42 = load i32, i32* %8
%43 = icmp slt i32 %42, 32
br i1 %43, label %44, label %56
44: ; preds = %41
%45 = load i32, i32* %6
%46 = load i32, i32* %7
%47 = load i32, i32* %6
%48 = load i32, i32* %7
%49 = add nsw i32 %47, %48
%50 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %45, i32 %46, i32 %49)
%51 = load i32, i32* %7
%52 = add nsw i32 %51, 1
store i32 %52, i32* %7
br label %53
53: ; preds = %44
%54 = load i32, i32* %8
%55 = add nsw i32 %54, 1
store i32 %55, i32* %8
br label %41
56: ; preds = %41
store i32 0, i32* %6
store i32 -16, i32* %7
store i32 32, i32* %8
store i32 0, i32* %8
br label %57
57: ; preds = %69, %56
%58 = load i32, i32* %8
%59 = icmp slt i32 %58, 32
br i1 %59, label %60, label %72
60: ; preds = %57
%61 = load i32, i32* %6
%62 = load i32, i32* %7
%63 = load i32, i32* %6
%64 = load i32, i32* %7
%65 = add nsw i32 %63, %64
%66 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %61, i32 %62, i32 %65)
%67 = load i32, i32* %6
%68 = add nsw i32 %67, 1
store i32 %68, i32* %6
br label %69
69: ; preds = %60
%70 = load i32, i32* %8
%71 = add nsw i32 %70, 1
store i32 %71, i32* %8
br label %57
72: ; preds = %57
store i32 -16, i32* %6
store i32 0, i32* %7
store i32 32, i32* %8
store i32 0, i32* %8
br label %73
73: ; preds = %85, %72
%74 = load i32, i32* %8
%75 = icmp slt i32 %74, 32
br i1 %75, label %76, label %88
76: ; preds = %73
%77 = load i32, i32* %6
%78 = load i32, i32* %7
%79 = load i32, i32* %6
%80 = load i32, i32* %7
%81 = add nsw i32 %79, %80
%82 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %77, i32 %78, i32 %81)
%83 = load i32, i32* %7
%84 = add nsw i32 %83, 1
store i32 %84, i32* %7
br label %85
85: ; preds = %76
%86 = load i32, i32* %8
%87 = add nsw i32 %86, 1
store i32 %87, i32* %8
br label %73
88: ; preds = %73
store i32 -2147483648, i32* %6
store i32 2147483632, i32* %7
store i32 32, i32* %8
store i32 0, i32* %8
br label %89
89: ; preds = %101, %88
%90 = load i32, i32* %8
%91 = icmp slt i32 %90, 32
br i1 %91, label %92, label %104
92: ; preds = %89
%93 = load i32, i32* %6
%94 = load i32, i32* %7
%95 = load i32, i32* %6
%96 = load i32, i32* %7
%97 = add nsw i32 %95, %96
%98 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %93, i32 %94, i32 %97)
%99 = load i32, i32* %7
%100 = add nsw i32 %99, 1
store i32 %100, i32* %7
br label %101
101: ; preds = %92
%102 = load i32, i32* %8
%103 = add nsw i32 %102, 1
store i32 %103, i32* %8
br label %89
104: ; preds = %89
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"0x%08x,0x%08x,0x%08x\0A\00"
@.str.1 = [10 x i8] c"%u,%u,%u\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i32 [ 0, %2 ], [ %7, %3 ]
%5 = add nsw i32 %4, -16
%6 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %4, i32 -16, i32 %5)
%7 = add nuw nsw i32 %4, 1
%8 = icmp eq i32 %7, 32
br i1 %8, label %9, label %3
9: ; preds = %3, %9
%10 = phi i32 [ %13, %9 ], [ 0, %3 ]
%11 = add nsw i32 %10, -16
%12 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 -16, i32 %10, i32 %11)
%13 = add nuw nsw i32 %10, 1
%14 = icmp eq i32 %13, 32
br i1 %14, label %15, label %9
15: ; preds = %9, %15
%16 = phi i32 [ %19, %15 ], [ 2147483632, %9 ]
%17 = or i32 %16, -2147483648
%18 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 -2147483648, i32 %16, i32 %17)
%19 = add nuw i32 %16, 1
%20 = icmp eq i32 %19, -2147483632
br i1 %20, label %21, label %15
21: ; preds = %15, %21
%22 = phi i32 [ %25, %21 ], [ 0, %15 ]
%23 = add nsw i32 %22, -16
%24 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %22, i32 -16, i32 %23)
%25 = add nuw nsw i32 %22, 1
%26 = icmp eq i32 %25, 32
br i1 %26, label %27, label %21
27: ; preds = %21, %27
%28 = phi i32 [ %31, %27 ], [ 0, %21 ]
%29 = add nsw i32 %28, -16
%30 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 -16, i32 %28, i32 %29)
%31 = add nuw nsw i32 %28, 1
%32 = icmp eq i32 %31, 32
br i1 %32, label %33, label %27
33: ; preds = %27, %33
%34 = phi i32 [ %37, %33 ], [ 2147483632, %27 ]
%35 = or i32 %34, -2147483648
%36 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 -2147483648, i32 %34, i32 %35)
%37 = add nuw i32 %34, 1
%38 = icmp eq i32 %37, -2147483632
br i1 %38, label %39, label %33
39: ; preds = %33
ret i32 0
}