#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 pow(int, int);
int /*<<< orphan*/ printf(char *, int, ...);
void main() {
  char a[1000];
  int i = -20;
  unsigned j = 10;
  unsigned k = pow(2, 32) - 1;
  int n = -pow(2, 31);
  int h = pow(2, 31) - 1;
  unsigned m;
  float fTestVal = 0;
  double dTestVal = 0;
  double dCom1 = 10000000000.00;
  double dCom2 = 0.00000000001;
  printf("i+j = %d,i+j = %u\n", i + j, i + j);
  printf("n = %d,n = %u\n", n, n);
  printf("h = %d,h = %u\n", h, h);
  printf("k = %d,k = %u\n", k, k);
  if (fTestVal == 0.00)
    printf("%f true\n", fTestVal);
  if (dTestVal == 0.00)
    printf("%lf true\n", dTestVal);
  printf("%lf %lf\n", 10000000000.00 + 0.00000000001, dCom1 + dCom2);
  for (i = 9; i >= 0; i--)
    printf("%u\n", i);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
movl   $0xffffffec,-0x3f4(%rbp)
ff ff ff
movl   $0xa,-0x3f8(%rbp)
mov    $0x2,%edi
mov    $0x20,%esi
call   1040 <pow@plt>
sub    $0x1,%eax
mov    %eax,-0x3fc(%rbp)
mov    $0x2,%edi
mov    $0x1f,%esi
call   1040 <pow@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x400(%rbp)
mov    $0x2,%edi
mov    $0x1f,%esi
call   1040 <pow@plt>
sub    $0x1,%eax
mov    %eax,-0x404(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40c(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x418(%rbp)
ff
movsd  0xe60(%rip),%xmm0
movsd  %xmm0,-0x420(%rbp)
ff
movsd  0xe48(%rip),%xmm0
movsd  %xmm0,-0x428(%rbp)
ff
mov    -0x3f4(%rbp),%esi
add    -0x3f8(%rbp),%esi
mov    -0x3f4(%rbp),%edx
add    -0x3f8(%rbp),%edx
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x400(%rbp),%esi
mov    -0x400(%rbp),%edx
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x404(%rbp),%esi
mov    -0x404(%rbp),%edx
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3fc(%rbp),%esi
mov    -0x3fc(%rbp),%edx
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x40c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1269 <main+0x149>
jp     1269 <main+0x149>
cvttss2si -0x40c(%rbp),%esi
ff
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x418(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    129a <main+0x17a>
jp     129a <main+0x17a>
cvttsd2si -0x418(%rbp),%esi
ff
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x420(%rbp),%xmm0
ff
addsd  -0x428(%rbp),%xmm0
ff
lea    0xdb2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x9,-0x3f4(%rbp)
cmpl   $0x0,-0x3f4(%rbp)
jl     12f7 <main+0x1d7>
mov    -0x3f4(%rbp),%esi
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3f4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x3f4(%rbp)
jmp    12c2 <main+0x1a2>
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0x2,%edi
mov    $0x20,%esi
call   1040 <pow@plt>
lea    -0x1(%rax),%r14d
mov    $0x2,%edi
mov    $0x1f,%esi
call   1040 <pow@plt>
mov    %eax,%ebp
neg    %ebp
mov    $0x2,%edi
mov    $0x1f,%esi
call   1040 <pow@plt>
lea    -0x1(%rax),%ebx
lea    0xea5(%rip),%rdi
mov    $0xfffffff6,%esi
mov    $0xfffffff6,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
mov    %ebp,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe9d(%rip),%rdi
mov    %ebx,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    %r14d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe95(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe88(%rip),%rdi
movsd  0xe25(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe4c(%rip),%rbx
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"i+j = %d,i+j = %u\0A\00"
@.str.1 = [15 x i8] c"n = %d,n = %u\0A\00"
@.str.2 = [15 x i8] c"h = %d,h = %u\0A\00"
@.str.3 = [15 x i8] c"k = %d,k = %u\0A\00"
@.str.4 = [9 x i8] c"%f true\0A\00"
@.str.5 = [10 x i8] c"%lf true\0A\00"
@.str.6 = [9 x i8] c"%lf %lf\0A\00"
@.str.7 = [4 x i8] c"%u\0A\00"
define void @main() {
%1 = alloca [1000 x i8]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca float
%9 = alloca double
%10 = alloca double
%11 = alloca double
store i32 -20, i32* %2
store i32 10, i32* %3
%12 = call i32 @pow(i32 2, i32 32)
%13 = sub nsw i32 %12, 1
store i32 %13, i32* %4
%14 = call i32 @pow(i32 2, i32 31)
%15 = sub nsw i32 0, %14
store i32 %15, i32* %5
%16 = call i32 @pow(i32 2, i32 31)
%17 = sub nsw i32 %16, 1
store i32 %17, i32* %6
store float 0.000000e+00, float* %8
store double 0.000000e+00, double* %9
store double 1.000000e+10, double* %10
store double 0x3DA5FD7FE1796495, double* %11
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = add i32 %18, %19
%21 = load i32, i32* %2
%22 = load i32, i32* %3
%23 = add i32 %21, %22
%24 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %20, i32 %23)
%25 = load i32, i32* %5
%26 = load i32, i32* %5
%27 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %25, i32 %26)
%28 = load i32, i32* %6
%29 = load i32, i32* %6
%30 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %28, i32 %29)
%31 = load i32, i32* %4
%32 = load i32, i32* %4
%33 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %31, i32 %32)
%34 = load float, float* %8
%35 = fpext float %34 to double
%36 = fcmp oeq double %35, 0.000000e+00
br i1 %36, label %37, label %41
37: ; preds = %0
%38 = load float, float* %8
%39 = fptosi float %38 to i32
%40 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %39)
br label %41
41: ; preds = %37, %0
%42 = load double, double* %9
%43 = fcmp oeq double %42, 0.000000e+00
br i1 %43, label %44, label %48
44: ; preds = %41
%45 = load double, double* %9
%46 = fptosi double %45 to i32
%47 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 %46)
br label %48
48: ; preds = %44, %41
%49 = load double, double* %10
%50 = load double, double* %11
%51 = fadd double %49, %50
%52 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 poison, double %51)
store i32 9, i32* %2
br label %53
53: ; preds = %59, %48
%54 = load i32, i32* %2
%55 = icmp sge i32 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %53
%57 = load i32, i32* %2
%58 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %57)
br label %59
59: ; preds = %56
%60 = load i32, i32* %2
%61 = add nsw i32 %60, -1
store i32 %61, i32* %2
br label %53
62: ; preds = %53
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"i+j = %d,i+j = %u\0A\00"
@.str.1 = [15 x i8] c"n = %d,n = %u\0A\00"
@.str.2 = [15 x i8] c"h = %d,h = %u\0A\00"
@.str.3 = [15 x i8] c"k = %d,k = %u\0A\00"
@.str.4 = [9 x i8] c"%f true\0A\00"
@.str.5 = [10 x i8] c"%lf true\0A\00"
@.str.6 = [9 x i8] c"%lf %lf\0A\00"
@.str.7 = [4 x i8] c"%u\0A\00"
define void @main() {
%1 = tail call i32 @pow(i32 2, i32 32)
%2 = add nsw i32 %1, -1
%3 = tail call i32 @pow(i32 2, i32 31)
%4 = sub nsw i32 0, %3
%5 = tail call i32 @pow(i32 2, i32 31)
%6 = add nsw i32 %5, -1
%7 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 -10, i32 -10)
%8 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %4, i32 %4)
%9 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %6)
%10 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %2, i32 %2)
%11 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 0)
%12 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 0)
%13 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 poison, double 1.000000e+10)
%14 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 9)
%15 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 8)
%16 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 7)
%17 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 6)
%18 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 5)
%19 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 4)
%20 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 3)
%21 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 2)
%22 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 1)
%23 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 0)
ret void
}