#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, float);
int /*<<< orphan*/ printf(char *, int, float);
void exibe_polinomio(float **polinomio, FILE **saida) {
  int i = 0;
  for (i = 0; i < 10; i++) {
    printf("%d = %f\n", i, *(*polinomio + i));
    fprintf(*saida, "%d = %f\n", i, *(*polinomio + i));
  }
}


x86 assembly (clang, -O0):
<exibe_polinomio>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    119b <exibe_polinomio+0x7b>
mov    -0x14(%rbp),%esi
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x14(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    -0x14(%rbp),%edx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x14(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
lea    0xe78(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113e <exibe_polinomio+0x1e>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exibe_polinomio>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r15
xor    %ebx,%ebx
lea    0xec9(%rip),%r12
nopw   0x0(%rax,%rax,1)
mov    (%r15),%rax
movss  (%rax,%rbx,4),%xmm0
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    (%r14),%rdi
mov    (%r15),%rax
movss  (%rax,%rbx,4),%xmm0
mov    %r12,%rsi
mov    %ebx,%edx
call   1040 <fprintf@plt>
add    $0x1,%rbx
cmp    $0xa,%rbx
jne    1140 <exibe_polinomio+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"%d = %f\0A\00"
define void @exibe_polinomio(float** nocapture %0, i32** nocapture %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 0, %2 ], [ %15, %3 ]
%5 = load float*, float** %0
%6 = getelementptr inbounds float, float* %5, i64 %4
%7 = load float, float* %6
%8 = trunc i64 %4 to i32
%9 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %8, float %7)
%10 = load i32*, i32** %1
%11 = load float*, float** %0
%12 = getelementptr inbounds float, float* %11, i64 %4
%13 = load float, float* %12
%14 = tail call i32 @fprintf(i32* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %8, float %13)
%15 = add nuw nsw i64 %4, 1
%16 = icmp eq i64 %15, 10
br i1 %16, label %17, label %3
17: ; preds = %3
ret void
}