#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;
  char *letter, *course[3], **marker;
  course[0] = "Numerical Methods";
  course[1] = "and programming";
  marker = &course[1];
  printf("%s %s\n", course[0], *marker);
  marker--;
  printf("%s %s\n", course[0], *marker);
  marker++;
  for (i = 0; i < 13; i++) {
    printf("%ld %c\n", i, *(*marker)++);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xee1(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rax
mov    (%rax),%rdx
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rax
mov    (%rax),%rdx
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
movq   $0x0,-0x18(%rbp)
cmpq   $0xd,-0x18(%rbp)
jge    11d5 <main+0xc5>
mov    -0x18(%rbp),%rsi
mov    -0x48(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,(%rcx)
movsbl (%rax),%edx
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1193 <main+0x83>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xf07(%rip),%r14
lea    0xede(%rip),%rbx
lea    0xee9(%rip),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedc(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x61,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%esi
mov    %rbx,%rdi
mov    $0x6e,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x2,%esi
mov    %rbx,%rdi
mov    $0x64,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x3,%esi
mov    %rbx,%rdi
mov    $0x20,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x4,%esi
mov    %rbx,%rdi
mov    $0x70,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x5,%esi
mov    %rbx,%rdi
mov    $0x72,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x6,%esi
mov    %rbx,%rdi
mov    $0x6f,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x7,%esi
mov    %rbx,%rdi
mov    $0x67,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x8,%esi
mov    %rbx,%rdi
mov    $0x72,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x9,%esi
mov    %rbx,%rdi
mov    $0x61,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xa,%esi
mov    %rbx,%rdi
mov    $0x6d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xb,%esi
mov    %rbx,%rdi
mov    $0x6d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xc,%esi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.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 = [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 i8*
%7 = alloca [3 x i8*]
%8 = alloca i8**
store i32 0, i32* %1
%9 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 0
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 1
store i8** %11, i8*** %8
%12 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 0
%13 = load i8*, i8** %12
%14 = load i8**, i8*** %8
%15 = load i8*, i8** %14
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %13, i8* %15)
%17 = load i8**, i8*** %8
%18 = getelementptr inbounds i8*, i8** %17, i32 -1
store i8** %18, i8*** %8
%19 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 0
%20 = load i8*, i8** %19
%21 = load i8**, i8*** %8
%22 = load i8*, i8** %21
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %20, i8* %22)
%24 = load i8**, i8*** %8
%25 = getelementptr inbounds i8*, i8** %24, i32 1
store i8** %25, i8*** %8
store i64 0, i64* %4
br label %26
26: ; preds = %37, %0
%27 = load i64, i64* %4
%28 = icmp slt i64 %27, 13
br i1 %28, label %29, label %40
29: ; preds = %26
%30 = load i64, i64* %4
%31 = load i8**, i8*** %8
%32 = load i8*, i8** %31
%33 = getelementptr inbounds i8, i8* %32, i32 1
store i8* %33, i8** %31
%34 = load i8, i8* %32
%35 = sext i8 %34 to i32
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 %30, i32 %35)
br label %37
37: ; preds = %29
%38 = load i64, i64* %4
%39 = add nsw i64 %38, 1
store i64 %39, i64* %4
br label %26
40: ; preds = %26
%41 = load i32, i32* %1
ret i32 %41
}

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 = [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 ([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 ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 0, i32 97)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 1, i32 110)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 2, i32 100)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 3, i32 32)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 4, i32 112)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 5, i32 114)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 6, i32 111)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 7, i32 103)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 8, i32 114)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 9, i32 97)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 10, i32 109)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 11, i32 109)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 12, i32 105)
ret i32 0
}