#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*/ f1(double *, double *, int);
int /*<<< orphan*/ tisk(double *, int);
int main() {
  double pole1[19];
  double pole2[19];
  unsigned index = 0;
  for (double d = 0; d <= 180; d += 10) {
    pole1[index++] = d;
  }
  f1(pole1, pole2, 19);
  tisk(pole2, 19);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x144(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
movsd  0xeb1(%rip),%xmm0
ucomisd -0x150(%rbp),%xmm0
ff
jb     119e <main+0x7e>
movsd  -0x150(%rbp),%xmm0
ff
mov    -0x144(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x144(%rbp)
mov    %eax,%eax
movsd  %xmm0,-0xa0(%rbp,%rax,8)
ff ff
movsd  0xe7f(%rip),%xmm0
addsd  -0x150(%rbp),%xmm0
ff
movsd  %xmm0,-0x150(%rbp)
ff
jmp    1147 <main+0x27>
lea    -0xa0(%rbp),%rdi
lea    -0x140(%rbp),%rsi
mov    $0x13,%edx
call   1030 <f1@plt>
lea    -0x140(%rbp),%rdi
mov    $0x13,%esi
call   1040 <tisk@plt>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x140,%rsp
xorps  %xmm0,%xmm0
movhps 0xece(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xed3(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xed7(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xedf(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xee3(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xee7(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeeb(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xeef(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movabs $0x4066800000000000,%rax
80 66 40
mov    %rax,0x90(%rsp)
mov    %rsp,%rdi
lea    0xa0(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x13,%edx
call   1030 <f1@plt>
mov    %rbx,%rdi
mov    $0x13,%esi
call   1040 <tisk@plt>
xor    %eax,%eax
add    $0x140,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [19 x double]
%3 = alloca [19 x double]
%4 = alloca i32
%5 = alloca double
store i32 0, i32* %1
store i32 0, i32* %4
store double 0.000000e+00, double* %5
br label %6
6: ; preds = %15, %0
%7 = load double, double* %5
%8 = fcmp ole double %7, 1.800000e+02
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load double, double* %5
%11 = load i32, i32* %4
%12 = add i32 %11, 1
store i32 %12, i32* %4
%13 = zext i32 %11 to i64
%14 = getelementptr inbounds [19 x double], [19 x double]* %2, i64 0, i64 %13
store double %10, double* %14
br label %15
15: ; preds = %9
%16 = load double, double* %5
%17 = fadd double %16, 1.000000e+01
store double %17, double* %5
br label %6
18: ; preds = %6
%19 = getelementptr inbounds [19 x double], [19 x double]* %2, i64 0, i64 0
%20 = getelementptr inbounds [19 x double], [19 x double]* %3, i64 0, i64 0
%21 = call i32 @f1(double* %19, double* %20, i32 19)
%22 = getelementptr inbounds [19 x double], [19 x double]* %3, i64 0, i64 0
%23 = call i32 @tisk(double* %22, i32 19)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [19 x double]
%2 = alloca [19 x double]
%3 = bitcast [19 x double]* %1 to i8*
%4 = bitcast [19 x double]* %2 to i8*
%5 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 0
%6 = bitcast [19 x double]* %1 to <2 x double>*
store <2 x double> <double 0.000000e+00, double 1.000000e+01>, <2 x double>* %6
%7 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 2
%8 = bitcast double* %7 to <2 x double>*
store <2 x double> <double 2.000000e+01, double 3.000000e+01>, <2 x double>* %8
%9 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 4
%10 = bitcast double* %9 to <2 x double>*
store <2 x double> <double 4.000000e+01, double 5.000000e+01>, <2 x double>* %10
%11 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 6
%12 = bitcast double* %11 to <2 x double>*
store <2 x double> <double 6.000000e+01, double 7.000000e+01>, <2 x double>* %12
%13 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 8
%14 = bitcast double* %13 to <2 x double>*
store <2 x double> <double 8.000000e+01, double 9.000000e+01>, <2 x double>* %14
%15 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 10
%16 = bitcast double* %15 to <2 x double>*
store <2 x double> <double 1.000000e+02, double 1.100000e+02>, <2 x double>* %16
%17 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 12
%18 = bitcast double* %17 to <2 x double>*
store <2 x double> <double 1.200000e+02, double 1.300000e+02>, <2 x double>* %18
%19 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 14
%20 = bitcast double* %19 to <2 x double>*
store <2 x double> <double 1.400000e+02, double 1.500000e+02>, <2 x double>* %20
%21 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 16
%22 = bitcast double* %21 to <2 x double>*
store <2 x double> <double 1.600000e+02, double 1.700000e+02>, <2 x double>* %22
%23 = getelementptr inbounds [19 x double], [19 x double]* %1, i64 0, i64 18
store double 1.800000e+02, double* %23
%24 = getelementptr inbounds [19 x double], [19 x double]* %2, i64 0, i64 0
%25 = call i32 @f1(double* %5, double* %24, i32 19)
%26 = call i32 @tisk(double* %24, i32 19)
ret i32 0
}