#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*/ f(int);
int g(int *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a, b, c, d, h;
  scanf("%d", &h);
  printf("%d", h);
  if (h != 0) {
    while (a < 50) {
      if (b < c)
        d = 100;
      else
        d = 50;
    }
    f(d);
    f(g(&d));
  } else {
    while (a < 50) {
      if (b >= c)
        d = 200;
      else
        d = 150;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x18(%rbp),%esi
lea    0xe97(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,-0x18(%rbp)
je     11c8 <main+0x88>
jmp    117d <main+0x3d>
cmpl   $0x32,-0x8(%rbp)
jge    11ab <main+0x6b>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    119f <main+0x5f>
movl   $0x64,-0x14(%rbp)
jmp    11a6 <main+0x66>
movl   $0x32,-0x14(%rbp)
jmp    117d <main+0x3d>
mov    -0x14(%rbp),%edi
call   1030 <f@plt>
lea    -0x14(%rbp),%rdi
call   1050 <g@plt>
mov    %eax,%edi
call   1030 <f@plt>
jmp    1200 <main+0xc0>
jmp    11cd <main+0x8d>
cmpl   $0x32,-0x8(%rbp)
jge    11fb <main+0xbb>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jl     11ef <main+0xaf>
movl   $0xc8,-0x14(%rbp)
jmp    11f6 <main+0xb6>
movl   $0x96,-0x14(%rbp)
jmp    11cd <main+0x8d>
jmp    1200 <main+0xc0>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xeb4(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
call   1040 <printf@plt>
cmpl   $0x0,0x8(%rsp)
je     1182 <main+0x42>
call   1030 <f@plt>
lea    0xc(%rsp),%rdi
call   1050 <g@plt>
mov    %eax,%edi
call   1030 <f@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
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
store i32 0, i32* %1
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%8 = load i32, i32* %6
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = load i32, i32* %6
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %28
12: ; preds = %0
br label %13
13: ; preds = %22, %12
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, 50
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i32, i32* %3
%18 = load i32, i32* %4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %16
store i32 100, i32* %5
br label %22
21: ; preds = %16
store i32 50, i32* %5
br label %22
22: ; preds = %21, %20
br label %13
23: ; preds = %13
%24 = load i32, i32* %5
%25 = call i32 @f(i32 %24)
%26 = call i32 @g(i32* %5)
%27 = call i32 @f(i32 %26)
br label %40
28: ; preds = %0
br label %29
29: ; preds = %38, %28
%30 = load i32, i32* %2
%31 = icmp slt i32 %30, 50
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = load i32, i32* %3
%34 = load i32, i32* %4
%35 = icmp sge i32 %33, %34
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 200, i32* %5
br label %38
37: ; preds = %32
store i32 150, i32* %5
br label %38
38: ; preds = %37, %36
br label %29
39: ; preds = %29
br label %40
40: ; preds = %39, %23
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %0
%11 = call i32 @f(i32 undef)
%12 = call i32 @g(i32* %1)
%13 = call i32 @f(i32 %12)
br label %14
14: ; preds = %0, %10
ret i32 0
}