#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 *, char *, char *);
void main_text_output(char *data[], char *data_names[]) {
  int i;
  for (i = 0; i < 17; i++)
    printf("%s %s\n", data_names[i], data[i]);
  return;
}


x86 assembly (clang, -O0):
<main_text_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x11,-0x14(%rbp)
jge    1163 <main_text_output+0x53>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1127 <main_text_output+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main_text_output>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rsi),%rsi
mov    (%rdi),%rdx
lea    0xed8(%rip),%r15
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x8(%r14),%rsi
mov    0x8(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x10(%r14),%rsi
mov    0x10(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x18(%r14),%rsi
mov    0x18(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x20(%r14),%rsi
mov    0x20(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x28(%r14),%rsi
mov    0x28(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x30(%r14),%rsi
mov    0x30(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x38(%r14),%rsi
mov    0x38(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x40(%r14),%rsi
mov    0x40(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x48(%r14),%rsi
mov    0x48(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x50(%r14),%rsi
mov    0x50(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x58(%r14),%rsi
mov    0x58(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x60(%r14),%rsi
mov    0x60(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x68(%r14),%rsi
mov    0x68(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x70(%r14),%rsi
mov    0x70(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x78(%r14),%rsi
mov    0x78(%rbx),%rdx
mov    %r15,%rdi
call   1030 <printf@plt>
mov    0x80(%r14),%rsi
mov    0x80(%rbx),%rdx
mov    %r15,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"%s %s\0A\00"
define void @main_text_output(i8** %0, i8** %1) {
%3 = alloca i8**
%4 = alloca i8**
%5 = alloca i32
store i8** %0, i8*** %3
store i8** %1, i8*** %4
store i32 0, i32* %5
br label %6
6: ; preds = %21, %2
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 17
br i1 %8, label %9, label %24
9: ; preds = %6
%10 = load i8**, i8*** %4
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8*, i8** %10, i64 %12
%14 = load i8*, i8** %13
%15 = load i8**, i8*** %3
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8*, i8** %15, i64 %17
%19 = load i8*, i8** %18
%20 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %14, i8* %19)
br label %21
21: ; preds = %9
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 1
store i32 %23, i32* %5
br label %6
24: ; preds = %6
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%s %s\0A\00"
define void @main_text_output(i8** nocapture %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = load i8*, i8** %0
%5 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4)
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = getelementptr inbounds i8*, i8** %0, i64 1
%9 = load i8*, i8** %8
%10 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %9)
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = load i8*, i8** %11
%13 = getelementptr inbounds i8*, i8** %0, i64 2
%14 = load i8*, i8** %13
%15 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %14)
%16 = getelementptr inbounds i8*, i8** %1, i64 3
%17 = load i8*, i8** %16
%18 = getelementptr inbounds i8*, i8** %0, i64 3
%19 = load i8*, i8** %18
%20 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %17, i8* %19)
%21 = getelementptr inbounds i8*, i8** %1, i64 4
%22 = load i8*, i8** %21
%23 = getelementptr inbounds i8*, i8** %0, i64 4
%24 = load i8*, i8** %23
%25 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %22, i8* %24)
%26 = getelementptr inbounds i8*, i8** %1, i64 5
%27 = load i8*, i8** %26
%28 = getelementptr inbounds i8*, i8** %0, i64 5
%29 = load i8*, i8** %28
%30 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %27, i8* %29)
%31 = getelementptr inbounds i8*, i8** %1, i64 6
%32 = load i8*, i8** %31
%33 = getelementptr inbounds i8*, i8** %0, i64 6
%34 = load i8*, i8** %33
%35 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %32, i8* %34)
%36 = getelementptr inbounds i8*, i8** %1, i64 7
%37 = load i8*, i8** %36
%38 = getelementptr inbounds i8*, i8** %0, i64 7
%39 = load i8*, i8** %38
%40 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %37, i8* %39)
%41 = getelementptr inbounds i8*, i8** %1, i64 8
%42 = load i8*, i8** %41
%43 = getelementptr inbounds i8*, i8** %0, i64 8
%44 = load i8*, i8** %43
%45 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %42, i8* %44)
%46 = getelementptr inbounds i8*, i8** %1, i64 9
%47 = load i8*, i8** %46
%48 = getelementptr inbounds i8*, i8** %0, i64 9
%49 = load i8*, i8** %48
%50 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %47, i8* %49)
%51 = getelementptr inbounds i8*, i8** %1, i64 10
%52 = load i8*, i8** %51
%53 = getelementptr inbounds i8*, i8** %0, i64 10
%54 = load i8*, i8** %53
%55 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %52, i8* %54)
%56 = getelementptr inbounds i8*, i8** %1, i64 11
%57 = load i8*, i8** %56
%58 = getelementptr inbounds i8*, i8** %0, i64 11
%59 = load i8*, i8** %58
%60 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %57, i8* %59)
%61 = getelementptr inbounds i8*, i8** %1, i64 12
%62 = load i8*, i8** %61
%63 = getelementptr inbounds i8*, i8** %0, i64 12
%64 = load i8*, i8** %63
%65 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %62, i8* %64)
%66 = getelementptr inbounds i8*, i8** %1, i64 13
%67 = load i8*, i8** %66
%68 = getelementptr inbounds i8*, i8** %0, i64 13
%69 = load i8*, i8** %68
%70 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %67, i8* %69)
%71 = getelementptr inbounds i8*, i8** %1, i64 14
%72 = load i8*, i8** %71
%73 = getelementptr inbounds i8*, i8** %0, i64 14
%74 = load i8*, i8** %73
%75 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %72, i8* %74)
%76 = getelementptr inbounds i8*, i8** %1, i64 15
%77 = load i8*, i8** %76
%78 = getelementptr inbounds i8*, i8** %0, i64 15
%79 = load i8*, i8** %78
%80 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %77, i8* %79)
%81 = getelementptr inbounds i8*, i8** %1, i64 16
%82 = load i8*, i8** %81
%83 = getelementptr inbounds i8*, i8** %0, i64 16
%84 = load i8*, i8** %83
%85 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %82, i8* %84)
ret void
}