#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 *, ...);
void PrintOutput(unsigned char *flag, unsigned char *f1, unsigned char *f2,
                 unsigned char *f3, unsigned char *a1, unsigned char *a2,
                 unsigned char *a3, unsigned char *p) {
  printf("===========================================\n");
  printf("Final data for speech output:\n\n");
  int i = 0;
  printf(" flags ampl1 freq1 ampl2 freq2 ampl3 freq3 pitch\n");
  printf("------------------------------------------------\n");
  while (i < 255) {
    printf("%5i %5i %5i %5i %5i %5i %5i %5i\n", flag[i], a1[i], f1[i], a2[i],
           f2[i], a3[i], f3[i], p[i]);
    i++;
  }
  printf("===========================================\n");
}


x86 assembly (clang, -O0):
<PrintOutput>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0xff,-0x34(%rbp)
jge    1211 <PrintOutput+0x101>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%ecx
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rdi
movzbl (%rax,%rdi,1),%r8d
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rdi
movzbl (%rax,%rdi,1),%r9d
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rdi
movzbl (%rax,%rdi,1),%r11d
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rdi
movzbl (%rax,%rdi,1),%r10d
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rdi
movzbl (%rax,%rdi,1),%eax
lea    0xec2(%rip),%rdi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1177 <PrintOutput+0x67>
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintOutput>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x20(%rsp)
mov    %r8,0x18(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,0x8(%rsp)
mov    %rsi,(%rsp)
mov    %rdi,%r13
mov    0x68(%rsp),%r14
mov    0x60(%rsp),%r15
lea    0xf48(%rip),%rdi
call   1030 <puts@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%rdi
call   1030 <puts@plt>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
movzbl 0x0(%r13,%r12,1),%esi
mov    0x18(%rsp),%rax
movzbl (%rax,%r12,1),%edx
mov    (%rsp),%rax
movzbl (%rax,%r12,1),%ecx
mov    0x20(%rsp),%rax
movzbl (%rax,%r12,1),%r8d
mov    0x8(%rsp),%rax
movzbl (%rax,%r12,1),%r9d
movzbl (%r15,%r12,1),%r10d
mov    0x10(%rsp),%rax
movzbl (%rax,%r12,1),%ebp
movzbl (%r14,%r12,1),%ebx
sub    $0x8,%rsp
lea    0xe24(%rip),%rdi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r10
call   1040 <printf@plt>
add    $0x20,%rsp
add    $0x1,%r12
cmp    $0xff,%r12
jne    1190 <PrintOutput+0x70>
lea    0xea3(%rip),%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"===========================================\0A\00"
@.str.1 = [32 x i8] c"Final data for speech output:\0A\0A\00"
@.str.2 = [50 x i8] c" flags ampl1 freq1 ampl2 freq2 ampl3 freq3 pitch\0A\00"
@.str.3 = [50 x i8] c"------------------------------------------------\0A\00"
@.str.4 = [33 x i8] c"%5i %5i %5i %5i %5i %5i %5i %5i\0A\00"
define void @PrintOutput(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i32
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i8* %7, i8** %16
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %17
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
br label %22
22: ; preds = %25, %8
%23 = load i32, i32* %17
%24 = icmp slt i32 %23, 255
br i1 %24, label %25, label %77
25: ; preds = %22
%26 = load i8*, i8** %9
%27 = load i32, i32* %17
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
%30 = load i8, i8* %29
%31 = zext i8 %30 to i32
%32 = load i8*, i8** %13
%33 = load i32, i32* %17
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, i8* %32, i64 %34
%36 = load i8, i8* %35
%37 = zext i8 %36 to i32
%38 = load i8*, i8** %10
%39 = load i32, i32* %17
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %38, i64 %40
%42 = load i8, i8* %41
%43 = zext i8 %42 to i32
%44 = load i8*, i8** %14
%45 = load i32, i32* %17
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, i8* %44, i64 %46
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = load i8*, i8** %11
%51 = load i32, i32* %17
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, i8* %50, i64 %52
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = load i8*, i8** %15
%57 = load i32, i32* %17
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, i8* %56, i64 %58
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = load i8*, i8** %12
%63 = load i32, i32* %17
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, i8* %62, i64 %64
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = load i8*, i8** %16
%69 = load i32, i32* %17
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %68, i64 %70
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %31, i32 %37, i32 %43, i32 %49, i32 %55, i32 %61, i32 %67, i32 %73)
%75 = load i32, i32* %17
%76 = add nsw i32 %75, 1
store i32 %76, i32* %17
br label %22
77: ; preds = %22
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.4 = [33 x i8] c"%5i %5i %5i %5i %5i %5i %5i %5i\0A\00"
@str.5 = [31 x i8] c"Final data for speech output:\0A\00"
@str.6 = [49 x i8] c" flags ampl1 freq1 ampl2 freq2 ampl3 freq3 pitch\00"
@str.7 = [49 x i8] c"------------------------------------------------\00"
@str.8 = [44 x i8] c"===========================================\00"
define void @PrintOutput(i8* nocapture %0, i8* nocapture %1, i8* nocapture %2, i8* nocapture %3, i8* nocapture %4, i8* nocapture %5, i8* nocapture %6, i8* nocapture %7) {
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.5, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.6, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.7, i64 0, i64 0))
br label %13
13: ; preds = %8, %13
%14 = phi i64 [ 0, %8 ], [ %40, %13 ]
%15 = getelementptr inbounds i8, i8* %0, i64 %14
%16 = load i8, i8* %15
%17 = zext i8 %16 to i32
%18 = getelementptr inbounds i8, i8* %4, i64 %14
%19 = load i8, i8* %18
%20 = zext i8 %19 to i32
%21 = getelementptr inbounds i8, i8* %1, i64 %14
%22 = load i8, i8* %21
%23 = zext i8 %22 to i32
%24 = getelementptr inbounds i8, i8* %5, i64 %14
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = getelementptr inbounds i8, i8* %2, i64 %14
%28 = load i8, i8* %27
%29 = zext i8 %28 to i32
%30 = getelementptr inbounds i8, i8* %6, i64 %14
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = getelementptr inbounds i8, i8* %3, i64 %14
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = getelementptr inbounds i8, i8* %7, i64 %14
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %17, i32 %20, i32 %23, i32 %26, i32 %29, i32 %32, i32 %35, i32 %38)
%40 = add nuw nsw i64 %14, 1
%41 = icmp eq i64 %40, 255
br i1 %41, label %42, label %13
42: ; preds = %13
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.8, i64 0, i64 0))
ret void
}