#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*/ print(char *);
int /*<<< orphan*/ printid(int);
int main() {
  int i = 0, j = 10;
  if (i > j)
    printid(i);
  else
    printid(j);
  print("j  10");
  if (11 != 10) {
    i = 1;
  }
  print("i  1");
  printid(i);
  j = 9;
  if (14 > 15)
    j = 15;
  print("j  9");
  printid(j);
  if (11 == 11)
    j = 2;
  else {
    i = 2 + 1;
    j = i;
  }
  print("j  2");
  printid(j);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0xa,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1156 <main+0x36>
mov    -0x8(%rbp),%edi
call   1040 <printid@plt>
jmp    115e <main+0x3e>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
lea    0xe9b(%rip),%rdi
call   1030 <print@plt>
movl   $0x1,-0x8(%rbp)
lea    0xe8e(%rip),%rdi
call   1030 <print@plt>
mov    -0x8(%rbp),%edi
call   1040 <printid@plt>
movl   $0x9,-0xc(%rbp)
lea    0xe78(%rip),%rdi
call   1030 <print@plt>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
movl   $0x2,-0xc(%rbp)
lea    0xe62(%rip),%rdi
call   1030 <print@plt>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xa,%edi
call   1040 <printid@plt>
lea    0xece(%rip),%rdi
call   1030 <print@plt>
lea    0xec8(%rip),%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
lea    0xeb7(%rip),%rdi
call   1030 <print@plt>
mov    $0x9,%edi
call   1040 <printid@plt>
lea    0xea6(%rip),%rdi
call   1030 <print@plt>
mov    $0x2,%edi
call   1040 <printid@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"j 10\00"
@.str.1 = [5 x i8] c"i 1\00"
@.str.2 = [5 x i8] c"j 9\00"
@.str.3 = [5 x i8] c"j 2\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 10, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = icmp sgt i32 %4, %5
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i32, i32* %2
%9 = call i32 @printid(i32 %8)
br label %13
10: ; preds = %0
%11 = load i32, i32* %3
%12 = call i32 @printid(i32 %11)
br label %13
13: ; preds = %10, %7
%14 = call i32 @print(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %2
%15 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* %2
%17 = call i32 @printid(i32 %16)
store i32 9, i32* %3
%18 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32, i32* %3
%20 = call i32 @printid(i32 %19)
store i32 2, i32* %3
%21 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%22 = load i32, i32* %3
%23 = call i32 @printid(i32 %22)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"j 10\00"
@.str.1 = [5 x i8] c"i 1\00"
@.str.2 = [5 x i8] c"j 9\00"
@.str.3 = [5 x i8] c"j 2\00"
define i32 @main() {
%1 = tail call i32 @printid(i32 10)
%2 = tail call i32 @print(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printid(i32 1)
%5 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printid(i32 9)
%7 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @printid(i32 2)
ret i32 0
}