#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*/ scanf(char *, int *);
int main() {
  int a, b, c, d, h, i, j;
  scanf("%d", &h);
  while (h--) {
    if (h != 0) {
      while (a < 50) {
        if (b < c)
          d = 100;
        else
          d = 50;
      }
    } else {
      for (i = 0; i < d; i++) {
        j = j + i;
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <scanf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x18(%rbp)
cmp    $0x0,%eax
je     11b9 <main+0xa9>
cmpl   $0x0,-0x18(%rbp)
je     1185 <main+0x75>
jmp    1152 <main+0x42>
cmpl   $0x32,-0x8(%rbp)
jge    1180 <main+0x70>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1174 <main+0x64>
movl   $0x64,-0x14(%rbp)
jmp    117b <main+0x6b>
movl   $0x32,-0x14(%rbp)
jmp    1152 <main+0x42>
jmp    11b4 <main+0xa4>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11af <main+0x9f>
mov    -0x20(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    118c <main+0x7c>
jmp    11b4 <main+0xa4>
jmp    112f <main+0x1f>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1030 <scanf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
br label %10
10: ; preds = %42, %0
%11 = load i32, i32* %6
%12 = add nsw i32 %11, -1
store i32 %12, i32* %6
%13 = icmp ne i32 %11, 0
br i1 %13, label %14, label %43
14: ; preds = %10
%15 = load i32, i32* %6
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %29
17: ; preds = %14
br label %18
18: ; preds = %27, %17
%19 = load i32, i32* %2
%20 = icmp slt i32 %19, 50
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = load i32, i32* %3
%23 = load i32, i32* %4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %21
store i32 100, i32* %5
br label %27
26: ; preds = %21
store i32 50, i32* %5
br label %27
27: ; preds = %26, %25
br label %18
28: ; preds = %18
br label %42
29: ; preds = %14
store i32 0, i32* %7
br label %30
30: ; preds = %38, %29
%31 = load i32, i32* %7
%32 = load i32, i32* %5
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %41
34: ; preds = %30
%35 = load i32, i32* %8
%36 = load i32, i32* %7
%37 = add nsw i32 %35, %36
store i32 %37, i32* %8
br label %38
38: ; preds = %34
%39 = load i32, i32* %7
%40 = add nsw i32 %39, 1
store i32 %40, i32* %7
br label %30
41: ; preds = %30
br label %42
42: ; preds = %41, %28
br label %10
43: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
ret i32 0
}