#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() {
  float x, y;
  long int i, j, m[6], *k[6];
  char *letter, *course[3], name[] = "I I T Madras";
  course[0] = "Numerical Methods";
  course[1] = "and programming";
  printf("%s %s\n", course[0], course[1]);
  for (i = 0; i < 5; i++) {
    m[i] = 3 * i;
  }
  k[0] = &m[1];
  k[3] = &m[4];
  j = k[3] - k[0];
  printf("%ld %ld %ld\n", j, *(k[0] + 1), *k[3]);
  letter = course[0];
  for (i = 0; i < 5; i++) {
    j = letter - course[0];
    printf("%ld %c\n", j, *letter);
    letter++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0xad(%rbp)
mov    0xed2(%rip),%eax
mov    %eax,-0xa5(%rbp)
mov    0xeca(%rip),%al
mov    %al,-0xa1(%rbp)
lea    0xebe(%rip),%rax
mov    %rax,-0xa0(%rbp)
lea    0xec2(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    -0xa0(%rbp),%rsi
mov    -0x98(%rbp),%rdx
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x0,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
jge    11b2 <main+0xa2>
imul   $0x3,-0x18(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,-0x50(%rbp,%rax,8)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1188 <main+0x78>
lea    -0x50(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x80(%rbp)
lea    -0x50(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    -0x80(%rbp),%rcx
sub    %rcx,%rax
sar    $0x3,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x80(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x68(%rbp),%rax
mov    (%rax),%rcx
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xa0(%rbp),%rax
mov    %rax,-0x88(%rbp)
movq   $0x0,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
jge    1273 <main+0x163>
mov    -0x88(%rbp),%rax
mov    -0xa0(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x88(%rbp),%rax
movsbl (%rax),%edx
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x88(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1214 <main+0x104>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf0a(%rip),%rdi
lea    0xee1(%rip),%rsi
lea    0xeec(%rip),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x3,%esi
mov    $0x6,%edx
mov    $0xc,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee5(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x4e,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%esi
mov    %rbx,%rdi
mov    $0x75,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x2,%esi
mov    %rbx,%rdi
mov    $0x6d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x3,%esi
mov    %rbx,%rdi
mov    $0x65,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x4,%esi
mov    %rbx,%rdi
mov    $0x72,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.name = [13 x i8] c"I I T Madras\00"
@.str = [18 x i8] c"Numerical Methods\00"
@.str.1 = [16 x i8] c"and programming\00"
@.str.2 = [7 x i8] c"%s %s\0A\00"
@.str.3 = [13 x i8] c"%ld %ld %ld\0A\00"
@.str.4 = [8 x i8] c"%ld %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca i64
%5 = alloca i64
%6 = alloca [6 x i64]
%7 = alloca [6 x i64*]
%8 = alloca i8*
%9 = alloca [3 x i8*]
%10 = alloca [13 x i8]
store i32 0, i32* %1
%11 = bitcast [13 x i8]* %10 to i8*
%12 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 0
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 0
%15 = load i8*, i8** %14
%16 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 1
%17 = load i8*, i8** %16
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %15, i8* %17)
store i64 0, i64* %4
br label %19
19: ; preds = %27, %0
%20 = load i64, i64* %4
%21 = icmp slt i64 %20, 5
br i1 %21, label %22, label %30
22: ; preds = %19
%23 = load i64, i64* %4
%24 = mul nsw i64 3, %23
%25 = load i64, i64* %4
%26 = getelementptr inbounds [6 x i64], [6 x i64]* %6, i64 0, i64 %25
store i64 %24, i64* %26
br label %27
27: ; preds = %22
%28 = load i64, i64* %4
%29 = add nsw i64 %28, 1
store i64 %29, i64* %4
br label %19
30: ; preds = %19
%31 = getelementptr inbounds [6 x i64], [6 x i64]* %6, i64 0, i64 1
%32 = getelementptr inbounds [6 x i64*], [6 x i64*]* %7, i64 0, i64 0
store i64* %31, i64** %32
%33 = getelementptr inbounds [6 x i64], [6 x i64]* %6, i64 0, i64 4
%34 = getelementptr inbounds [6 x i64*], [6 x i64*]* %7, i64 0, i64 3
store i64* %33, i64** %34
%35 = getelementptr inbounds [6 x i64*], [6 x i64*]* %7, i64 0, i64 3
%36 = load i64*, i64** %35
%37 = getelementptr inbounds [6 x i64*], [6 x i64*]* %7, i64 0, i64 0
%38 = load i64*, i64** %37
%39 = ptrtoint i64* %36 to i64
%40 = ptrtoint i64* %38 to i64
%41 = sub i64 %39, %40
%42 = sdiv exact i64 %41, 8
store i64 %42, i64* %5
%43 = load i64, i64* %5
%44 = getelementptr inbounds [6 x i64*], [6 x i64*]* %7, i64 0, i64 0
%45 = load i64*, i64** %44
%46 = getelementptr inbounds i64, i64* %45, i64 1
%47 = load i64, i64* %46
%48 = getelementptr inbounds [6 x i64*], [6 x i64*]* %7, i64 0, i64 3
%49 = load i64*, i64** %48
%50 = load i64, i64* %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i64 %43, i64 %47, i64 %50)
%52 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 0
%53 = load i8*, i8** %52
store i8* %53, i8** %8
store i64 0, i64* %4
br label %54
54: ; preds = %71, %30
%55 = load i64, i64* %4
%56 = icmp slt i64 %55, 5
br i1 %56, label %57, label %74
57: ; preds = %54
%58 = load i8*, i8** %8
%59 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 0
%60 = load i8*, i8** %59
%61 = ptrtoint i8* %58 to i64
%62 = ptrtoint i8* %60 to i64
%63 = sub i64 %61, %62
store i64 %63, i64* %5
%64 = load i64, i64* %5
%65 = load i8*, i8** %8
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i64 %64, i32 %67)
%69 = load i8*, i8** %8
%70 = getelementptr inbounds i8, i8* %69, i32 1
store i8* %70, i8** %8
br label %71
71: ; preds = %57
%72 = load i64, i64* %4
%73 = add nsw i64 %72, 1
store i64 %73, i64* %4
br label %54
74: ; preds = %54
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"Numerical Methods\00"
@.str.1 = [16 x i8] c"and programming\00"
@.str.2 = [7 x i8] c"%s %s\0A\00"
@.str.3 = [13 x i8] c"%ld %ld %ld\0A\00"
@.str.4 = [8 x i8] c"%ld %c\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i64 3, i64 6, i64 12)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i64 0, i32 78)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i64 1, i32 117)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i64 2, i32 109)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i64 3, i32 101)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i64 4, i32 114)
ret i32 0
}