#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;
  int k;
  print("j  10");
  printid(j);
  print("i  0");
  printid(i);
  k = (10 >= 9);
  print("k  1");
  printid(k);
  {
    int l = 11 * 3 - j;
    int m[3] = {1, 2, 3};
    print("l  23");
    printid(l);
    i = m[2];
    print("i  3");
    printid(i);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0xa,-0xc(%rbp)
lea    0xebc(%rip),%rdi
call   1030 <print@plt>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
lea    0xeae(%rip),%rdi
call   1030 <print@plt>
mov    -0x8(%rbp),%edi
call   1040 <printid@plt>
movl   $0x1,-0x10(%rbp)
lea    0xe98(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
mov    $0x21,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    0xe8a(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe88(%rip),%eax
mov    %eax,-0x18(%rbp)
lea    0xe6a(%rip),%rdi
call   1030 <print@plt>
mov    -0x14(%rbp),%edi
call   1040 <printid@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x8(%rbp)
lea    0xe56(%rip),%rdi
call   1030 <print@plt>
mov    -0x8(%rbp),%edi
call   1040 <printid@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <print@plt>
mov    $0xa,%edi
call   1040 <printid@plt>
lea    0xec8(%rip),%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
lea    0xeba(%rip),%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
lea    0xea9(%rip),%rdi
call   1030 <print@plt>
mov    $0x17,%edi
call   1040 <printid@plt>
lea    0xe99(%rip),%rdi
call   1030 <print@plt>
mov    $0x3,%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 0\00"
@.str.2 = [5 x i8] c"k 1\00"
@__const.main.m = [3 x i32] [i32 1, i32 2, i32 3]
@.str.3 = [6 x i8] c"l 23\00"
@.str.4 = [5 x i8] c"i 3\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [3 x i32]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 10, i32* %3
%7 = call i32 @print(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* %3
%9 = call i32 @printid(i32 %8)
%10 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = call i32 @printid(i32 %11)
store i32 1, i32* %4
%13 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* %4
%15 = call i32 @printid(i32 %14)
%16 = load i32, i32* %3
%17 = sub nsw i32 33, %16
store i32 %17, i32* %5
%18 = bitcast [3 x i32]* %6 to i8*
%19 = call i32 @print(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%20 = load i32, i32* %5
%21 = call i32 @printid(i32 %20)
%22 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
%23 = load i32, i32* %22
store i32 %23, i32* %2
%24 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%25 = load i32, i32* %2
%26 = call i32 @printid(i32 %25)
ret i32 0
}

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