#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 *, long, ...);
int main() {
  float x, y;
  long int i, j, k[5];
  char letter, course[] = "Numerical Methods";
  printf("%c %s\n", course[6], course);
  printf("%c %s\n", course[6], &course[0]);
  for (i = 0; i < 5; i++) {
    k[i] = 3 * i;
  }
  j = *(k + 2);
  printf("%ld, %ld\n", k[2], j);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xed4(%rip),%ax
mov    %ax,-0x60(%rbp)
movsbq -0x6a(%rbp),%rsi
lea    -0x70(%rbp),%rdx
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbq -0x6a(%rbp),%rsi
lea    -0x70(%rbp),%rdx
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x0,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
jge    11a0 <main+0x90>
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    1176 <main+0x66>
mov    -0x40(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x40(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,(%rsp)
movw   $0x73,0x10(%rsp)
lea    0xee2(%rip),%r14
mov    %rsp,%rbx
mov    $0x63,%esi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
movsbq 0x6(%rsp),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x6,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.course = [18 x i8] c"Numerical Methods\00"
@.str = [7 x i8] c"%c %s\0A\00"
@.str.1 = [10 x i8] c"%ld, %ld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca i64
%5 = alloca i64
%6 = alloca [5 x i64]
%7 = alloca i8
%8 = alloca [18 x i8]
store i32 0, i32* %1
%9 = bitcast [18 x i8]* %8 to i8*
%10 = getelementptr inbounds [18 x i8], [18 x i8]* %8, i64 0, i64 6
%11 = load i8, i8* %10
%12 = sext i8 %11 to i64
%13 = getelementptr inbounds [18 x i8], [18 x i8]* %8, i64 0, i64 0
%14 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i64 %12, i8* %13)
%15 = getelementptr inbounds [18 x i8], [18 x i8]* %8, i64 0, i64 6
%16 = load i8, i8* %15
%17 = sext i8 %16 to i64
%18 = getelementptr inbounds [18 x i8], [18 x i8]* %8, i64 0, i64 0
%19 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i64 %17, i8* %18)
store i64 0, i64* %4
br label %20
20: ; preds = %28, %0
%21 = load i64, i64* %4
%22 = icmp slt i64 %21, 5
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = load i64, i64* %4
%25 = mul nsw i64 3, %24
%26 = load i64, i64* %4
%27 = getelementptr inbounds [5 x i64], [5 x i64]* %6, i64 0, i64 %26
store i64 %25, i64* %27
br label %28
28: ; preds = %23
%29 = load i64, i64* %4
%30 = add nsw i64 %29, 1
store i64 %30, i64* %4
br label %20
31: ; preds = %20
%32 = getelementptr inbounds [5 x i64], [5 x i64]* %6, i64 0, i64 0
%33 = getelementptr inbounds i64, i64* %32, i64 2
%34 = load i64, i64* %33
store i64 %34, i64* %5
%35 = getelementptr inbounds [5 x i64], [5 x i64]* %6, i64 0, i64 2
%36 = load i64, i64* %35
%37 = load i64, i64* %5
%38 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i64 %36, i64 %37)
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
@__const.main.course = [18 x i8] c"Numerical Methods\00"
@.str = [7 x i8] c"%c %s\0A\00"
@.str.1 = [10 x i8] c"%ld, %ld\0A\00"
define i32 @main() {
%1 = alloca [18 x i8]
%2 = getelementptr inbounds [18 x i8], [18 x i8]* %1, i64 0, i64 0
%3 = getelementptr inbounds [18 x i8], [18 x i8]* %1, i64 0, i64 6
%4 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i64 99, i8* %2)
%5 = load i8, i8* %3
%6 = sext i8 %5 to i64
%7 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i64 %6, i8* %2)
%8 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i64 6, i64 6)
ret i32 0
}