#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 *, ...);
int main() {
  const char NEWLINE = '\n';
  const char delim = '=';
  const char tab = '\t';
  printf("Program to print area of rectangle");
  printf("%c", NEWLINE);
  printf("%c %c %c %c %c %c %c %c %c %c", delim, tab, delim, tab, delim, tab,
         delim, tab, delim, tab);
  printf("%c", NEWLINE);
  printf("Area is %d", 50 * 50);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0xa,-0x5(%rbp)
movb   $0x3d,-0x6(%rbp)
movb   $0x9,-0x7(%rbp)
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x3d,%r9d
mov    $0x9,%r8d
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
movl   $0x9,(%rsp)
movl   $0x3d,0x8(%rsp)
movl   $0x9,0x10(%rsp)
movl   $0x3d,0x18(%rsp)
movl   $0x9,0x20(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea1(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe91(%rip),%rdi
mov    $0x9c4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
sub    $0x8,%rsp
lea    0xedf(%rip),%rdi
mov    $0x3d,%esi
mov    $0x9,%edx
mov    $0x3d,%ecx
mov    $0x9,%r8d
mov    $0x3d,%r9d
xor    %eax,%eax
push   $0x9
push   $0x3d
push   $0x9
push   $0x3d
push   $0x9
call   1040 <printf@plt>
add    $0x30,%rsp
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xebc(%rip),%rdi
mov    $0x9c4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Program to print area of rectangle\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [30 x i8] c"%c %c %c %c %c %c %c %c %c %c\00"
@.str.3 = [11 x i8] c"Area is %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
store i32 0, i32* %1
store i8 10, i8* %2
store i8 61, i8* %3
store i8 9, i8* %4
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 10)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 61, i32 9, i32 61, i32 9, i32 61, i32 9, i32 61, i32 9, i32 61, i32 9)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 10)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 2500)
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"Program to print area of rectangle\00"
@.str.2 = [30 x i8] c"%c %c %c %c %c %c %c %c %c %c\00"
@.str.3 = [11 x i8] c"Area is %d\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 61, i32 9, i32 61, i32 9, i32 61, i32 9, i32 61, i32 9, i32 61, i32 9)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 2500)
ret i32 0
}