#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*/ printf(char *, ...);
void printSquares() {
  int x = 7 * 7;
  int y = 8 * 8;
  int z = 9 * 9;
  int aa = 10 * 10;
  printf("1\t\t\t1\n");
  printf("2\t\t\t4\n");
  printf("3\t\t\t9\n");
  printf("4\t\t\t16\n");
  printf("5\t\t\t25\n");
  printf("6\t\t\t\36\n");
  printf("7\t\t\t\%d\n", x);
  printf("8\t\t\t\%d\n", y);
  printf("9\t\t\t\%d\n", z);
  printf("10\t\t\t\%d\n", aa);
}


x86 assembly (clang, -O0):
<printSquares>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x31,-0x4(%rbp)
movl   $0x40,-0x8(%rbp)
movl   $0x51,-0xc(%rbp)
movl   $0x64,-0x10(%rbp)
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printSquares>:
push   %rax
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%rdi
call   1030 <puts@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xe90(%rip),%rdi
mov    $0x31,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe85(%rip),%rdi
mov    $0x40,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7a(%rip),%rdi
mov    $0x51,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe6f(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"1\09\09\091\0A\00"
@.str.1 = [7 x i8] c"2\09\09\094\0A\00"
@.str.2 = [7 x i8] c"3\09\09\099\0A\00"
@.str.3 = [8 x i8] c"4\09\09\0916\0A\00"
@.str.4 = [8 x i8] c"5\09\09\0925\0A\00"
@.str.5 = [7 x i8] c"6\09\09\09\1E\0A\00"
@.str.6 = [8 x i8] c"7\09\09\09%d\0A\00"
@.str.7 = [8 x i8] c"8\09\09\09%d\0A\00"
@.str.8 = [8 x i8] c"9\09\09\09%d\0A\00"
@.str.9 = [9 x i8] c"10\09\09\09%d\0A\00"
define void @printSquares() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 49, i32* %1
store i32 64, i32* %2
store i32 81, i32* %3
store i32 100, i32* %4
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %3
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %15)
%17 = load i32, i32* %4
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %17)
ret void
}

LLVM IR (-O2):
@.str.6 = [8 x i8] c"7\09\09\09%d\0A\00"
@.str.7 = [8 x i8] c"8\09\09\09%d\0A\00"
@.str.8 = [8 x i8] c"9\09\09\09%d\0A\00"
@.str.9 = [9 x i8] c"10\09\09\09%d\0A\00"
@str = [6 x i8] c"1\09\09\091\00"
@str.10 = [6 x i8] c"2\09\09\094\00"
@str.11 = [6 x i8] c"3\09\09\099\00"
@str.12 = [7 x i8] c"4\09\09\0916\00"
@str.13 = [7 x i8] c"5\09\09\0925\00"
@str.14 = [6 x i8] c"6\09\09\09\1E\00"
define void @printSquares() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 49)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 64)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 81)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 100)
ret void
}