#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*/ generate_winding_numbers(int, int *);
int numbtrop_quaddobl_clear();
int numbtrop_quaddobl_dimension(int *);
int numbtrop_quaddobl_initialize(int, int, int *, double *, double *);
int numbtrop_quaddobl_retrieve_tropism(int, int, int *, double *, double *);
int numbtrop_quaddobl_size(int *);
int numbtrop_store_quaddobl_tropism(int, int, int, double *, double *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ random_doubles(int, double *);
int /*<<< orphan*/ scanf(char *, int *);
void quaddobl_operate(int nbt, int dim, int *wind, double *dir, double *err) {
  int fail, size, k, idx, wnd, retdim;
  fail = numbtrop_quaddobl_initialize(nbt, dim, wind, dir, err);
  fail = numbtrop_quaddobl_size(&size);
  printf("The number of tropisms : %d\n", size);
  fail = numbtrop_quaddobl_dimension(&retdim);
  printf("The retrieved dimension : %d\n", retdim);
  do {
    double diridx[4 * dim];
    double erridx[4];
    printf("Give an index (<= 0 to exit): ");
    scanf("%d", &idx);
    if (idx <= 0)
      break;
    fail = numbtrop_quaddobl_retrieve_tropism(dim, idx, &wnd, diridx, erridx);
    printf("The tropism %d has winding number %d,\n", idx, wnd);
    printf("with coordinates :");
    for (k = 0; k < 4 * dim; k++)
      printf(" %.3e", diridx[k]);
    printf("\nand error : %.3e %.3e %.3e %.3e\n", erridx[0], erridx[1],
           erridx[2], erridx[3]);
    generate_winding_numbers(1, &wnd);
    random_doubles(4 * dim, diridx);
    random_doubles(4, erridx);
    printf("Changing tropism %d to winding number %d,\n", idx, wnd);
    printf("with coordinates :");
    for (k = 0; k < 4 * dim; k++)
      printf(" %.3e", diridx[k]);
    printf("\nand error : %.3e %.3e %.3e %.3e\n", erridx[0], erridx[1],
           erridx[2], erridx[3]);
    fail = numbtrop_store_quaddobl_tropism(dim, idx, wnd, diridx, erridx);
  } while (idx > 0);
  fail = numbtrop_quaddobl_clear();
}


x86 assembly (clang, -O0):
<quaddobl_operate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   10c0 <numbtrop_quaddobl_initialize@plt>
mov    %eax,-0x24(%rbp)
lea    -0x28(%rbp),%rdi
call   1040 <numbtrop_quaddobl_size@plt>
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%esi
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    -0x38(%rbp),%rdi
call   1030 <numbtrop_quaddobl_dimension@plt>
mov    %eax,-0x24(%rbp)
mov    -0x38(%rbp),%esi
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x8(%rbp),%eax
shl    $0x2,%eax
mov    %rsp,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rax,%rdx
shl    $0x3,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x80(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0xe0f(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   10b0 <scanf@plt>
cmpl   $0x0,-0x30(%rbp)
jg     126a <quaddobl_operate+0xca>
movl   $0x2,-0x74(%rbp)
jmp    13d9 <quaddobl_operate+0x239>
mov    -0x80(%rbp),%rcx
mov    -0x8(%rbp),%edi
mov    -0x30(%rbp),%esi
lea    -0x70(%rbp),%r8
lea    -0x34(%rbp),%rdx
call   1050 <numbtrop_quaddobl_retrieve_tropism@plt>
mov    %eax,-0x24(%rbp)
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x2,%ecx
cmp    %ecx,%eax
jge    12e7 <quaddobl_operate+0x147>
mov    -0x80(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xdc5(%rip),%rdi
mov    $0x1,%al
call   1090 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12ad <quaddobl_operate+0x10d>
movsd  -0x70(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm3
lea    0xd9b(%rip),%rdi
mov    $0x4,%al
call   1090 <printf@plt>
mov    $0x1,%edi
lea    -0x34(%rbp),%rsi
call   10a0 <generate_winding_numbers@plt>
mov    -0x80(%rbp),%rsi
mov    -0x8(%rbp),%edi
shl    $0x2,%edi
call   1070 <random_doubles@plt>
lea    -0x70(%rbp),%rsi
mov    $0x4,%edi
call   1070 <random_doubles@plt>
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x2,%ecx
cmp    %ecx,%eax
jge    1397 <quaddobl_operate+0x1f7>
mov    -0x80(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xd15(%rip),%rdi
mov    $0x1,%al
call   1090 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    135d <quaddobl_operate+0x1bd>
movsd  -0x70(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm3
lea    0xceb(%rip),%rdi
mov    $0x4,%al
call   1090 <printf@plt>
mov    -0x80(%rbp),%rcx
mov    -0x8(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    -0x70(%rbp),%r8
call   1060 <numbtrop_store_quaddobl_tropism@plt>
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x74(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
mov    -0x74(%rbp),%eax
test   %eax,%eax
je     13f5 <quaddobl_operate+0x255>
jmp    13f0 <quaddobl_operate+0x250>
jmp    1404 <quaddobl_operate+0x264>
jmp    13fa <quaddobl_operate+0x25a>
cmpl   $0x0,-0x30(%rbp)
jg     1211 <quaddobl_operate+0x71>
mov    $0x0,%al
call   1080 <numbtrop_quaddobl_clear@plt>
mov    %eax,-0x24(%rbp)
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quaddobl_operate>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %esi,%ebx
call   10c0 <numbtrop_quaddobl_initialize@plt>
lea    -0x40(%rbp),%rdi
call   1040 <numbtrop_quaddobl_size@plt>
mov    -0x40(%rbp),%esi
lea    0xe35(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    -0x3c(%rbp),%rdi
call   1030 <numbtrop_quaddobl_dimension@plt>
mov    -0x3c(%rbp),%esi
lea    0xe38(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %rbx,-0x38(%rbp)
lea    0x0(,%rbx,4),%ecx
cmp    $0x2,%ecx
mov    $0x1,%eax
mov    %ecx,%r14d
cmovl  %eax,%r14d
mov    %rcx,-0x68(%rbp)
lea    0xf(,%rcx,8),%rax
and    $0xfffffffffffffff0,%rax
mov    %rax,-0x70(%rbp)
lea    0xe76(%rip),%r15
jmp    1275 <quaddobl_operate+0xd5>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
lea    0xe52(%rip),%rdi
mov    $0x4,%al
call   1090 <printf@plt>
mov    -0x2c(%rbp),%esi
mov    -0x30(%rbp),%edx
mov    -0x38(%rbp),%rdi
mov    %r13,%rcx
lea    -0x60(%rbp),%r8
call   1060 <numbtrop_store_quaddobl_tropism@plt>
mov    %r12,%rsp
cmpl   $0x0,-0x2c(%rbp)
jle    13b2 <quaddobl_operate+0x212>
mov    %rsp,%r12
mov    %rsp,%r13
sub    -0x70(%rbp),%r13
mov    %r13,%rsp
lea    0xdb2(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xdc3(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   10b0 <scanf@plt>
mov    -0x2c(%rbp),%esi
test   %esi,%esi
jle    13af <quaddobl_operate+0x20f>
mov    -0x38(%rbp),%rbx
mov    %ebx,%edi
lea    -0x30(%rbp),%rdx
mov    %r13,%rcx
lea    -0x60(%rbp),%r8
call   1050 <numbtrop_quaddobl_retrieve_tropism@plt>
mov    -0x2c(%rbp),%esi
mov    -0x30(%rbp),%edx
lea    0xd8f(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xda8(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
test   %ebx,%ebx
jle    130a <quaddobl_operate+0x16a>
xor    %ebx,%ebx
nopl   0x0(%rax)
movsd  0x0(%r13,%rbx,8),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    12f0 <quaddobl_operate+0x150>
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
lea    0xd78(%rip),%rdi
mov    $0x4,%al
call   1090 <printf@plt>
mov    $0x1,%edi
lea    -0x30(%rbp),%rsi
call   10a0 <generate_winding_numbers@plt>
mov    -0x68(%rbp),%rdi
mov    %r13,%rsi
call   1070 <random_doubles@plt>
mov    $0x4,%edi
lea    -0x60(%rbp),%rsi
call   1070 <random_doubles@plt>
mov    -0x2c(%rbp),%esi
mov    -0x30(%rbp),%edx
lea    0xd5e(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xd15(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
cmpl   $0x0,-0x38(%rbp)
jle    1230 <quaddobl_operate+0x90>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x0(%r13,%rbx,8),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1390 <quaddobl_operate+0x1f0>
jmp    1230 <quaddobl_operate+0x90>
mov    %r12,%rsp
xor    %eax,%eax
call   1080 <numbtrop_quaddobl_clear@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [29 x i8] c"The number of tropisms : %d\0A\00"
@.str.1 = [30 x i8] c"The retrieved dimension : %d\0A\00"
@.str.2 = [31 x i8] c"Give an index (<= 0 to exit): \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [39 x i8] c"The tropism %d has winding number %d,\0A\00"
@.str.5 = [19 x i8] c"with coordinates :\00"
@.str.6 = [6 x i8] c" %.3e\00"
@.str.7 = [34 x i8] c"\0Aand error : %.3e %.3e %.3e %.3e\0A\00"
@.str.8 = [43 x i8] c"Changing tropism %d to winding number %d,\0A\00"
define void @quaddobl_operate(i32 %0, i32 %1, i32* %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i8*
%18 = alloca i64
%19 = alloca [4 x double]
%20 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32* %2, i32** %8
store double* %3, double** %9
store double* %4, double** %10
%21 = load i32, i32* %6
%22 = load i32, i32* %7
%23 = load i32*, i32** %8
%24 = load double*, double** %9
%25 = load double*, double** %10
%26 = call i32 @numbtrop_quaddobl_initialize(i32 %21, i32 %22, i32* %23, double* %24, double* %25)
store i32 %26, i32* %11
%27 = call i32 @numbtrop_quaddobl_size(i32* %12)
store i32 %27, i32* %11
%28 = load i32, i32* %12
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = call i32 @numbtrop_quaddobl_dimension(i32* %16)
store i32 %30, i32* %11
%31 = load i32, i32* %16
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %31)
br label %33
33: ; preds = %120, %5
%34 = load i32, i32* %7
%35 = mul nsw i32 4, %34
%36 = zext i32 %35 to i64
%37 = call i8* @llvm.stacksave()
store i8* %37, i8** %17
%38 = alloca double, i64 %36
store i64 %36, i64* %18
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %14)
%41 = load i32, i32* %14
%42 = icmp sle i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %33
store i32 2, i32* %20
br label %116
44: ; preds = %33
%45 = load i32, i32* %7
%46 = load i32, i32* %14
%47 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 0
%48 = call i32 @numbtrop_quaddobl_retrieve_tropism(i32 %45, i32 %46, i32* %15, double* %38, double* %47)
store i32 %48, i32* %11
%49 = load i32, i32* %14
%50 = load i32, i32* %15
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %49, i32 %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %13
br label %53
53: ; preds = %64, %44
%54 = load i32, i32* %13
%55 = load i32, i32* %7
%56 = mul nsw i32 4, %55
%57 = icmp slt i32 %54, %56
br i1 %57, label %58, label %67
58: ; preds = %53
%59 = load i32, i32* %13
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %38, i64 %60
%62 = load double, double* %61
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %62)
br label %64
64: ; preds = %58
%65 = load i32, i32* %13
%66 = add nsw i32 %65, 1
store i32 %66, i32* %13
br label %53
67: ; preds = %53
%68 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 0
%69 = load double, double* %68
%70 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 1
%71 = load double, double* %70
%72 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 2
%73 = load double, double* %72
%74 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 3
%75 = load double, double* %74
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), double %69, double %71, double %73, double %75)
%77 = call i32 @generate_winding_numbers(i32 1, i32* %15)
%78 = load i32, i32* %7
%79 = mul nsw i32 4, %78
%80 = call i32 @random_doubles(i32 %79, double* %38)
%81 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 0
%82 = call i32 @random_doubles(i32 4, double* %81)
%83 = load i32, i32* %14
%84 = load i32, i32* %15
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i32 %83, i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %13
br label %87
87: ; preds = %98, %67
%88 = load i32, i32* %13
%89 = load i32, i32* %7
%90 = mul nsw i32 4, %89
%91 = icmp slt i32 %88, %90
br i1 %91, label %92, label %101
92: ; preds = %87
%93 = load i32, i32* %13
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %38, i64 %94
%96 = load double, double* %95
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %96)
br label %98
98: ; preds = %92
%99 = load i32, i32* %13
%100 = add nsw i32 %99, 1
store i32 %100, i32* %13
br label %87
101: ; preds = %87
%102 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 0
%103 = load double, double* %102
%104 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 1
%105 = load double, double* %104
%106 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 2
%107 = load double, double* %106
%108 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 3
%109 = load double, double* %108
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), double %103, double %105, double %107, double %109)
%111 = load i32, i32* %7
%112 = load i32, i32* %14
%113 = load i32, i32* %15
%114 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 0
%115 = call i32 @numbtrop_store_quaddobl_tropism(i32 %111, i32 %112, i32 %113, double* %38, double* %114)
store i32 %115, i32* %11
store i32 0, i32* %20
br label %116
116: ; preds = %101, %43
%117 = load i8*, i8** %17
%118 = load i32, i32* %20
switch i32 %118, label %125 [
i32 0, label %119
i32 2, label %123
]
119: ; preds = %116
br label %120
120: ; preds = %119
%121 = load i32, i32* %14
%122 = icmp sgt i32 %121, 0
br i1 %122, label %33, label %123
123: ; preds = %120, %116
%124 = call i32 (...) @numbtrop_quaddobl_clear()
store i32 %124, i32* %11
ret void
125: ; preds = %116
unreachable
}

LLVM IR (-O2):
@.str = [29 x i8] c"The number of tropisms : %d\0A\00"
@.str.1 = [30 x i8] c"The retrieved dimension : %d\0A\00"
@.str.2 = [31 x i8] c"Give an index (<= 0 to exit): \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [39 x i8] c"The tropism %d has winding number %d,\0A\00"
@.str.5 = [19 x i8] c"with coordinates :\00"
@.str.6 = [6 x i8] c" %.3e\00"
@.str.7 = [34 x i8] c"\0Aand error : %.3e %.3e %.3e %.3e\0A\00"
@.str.8 = [43 x i8] c"Changing tropism %d to winding number %d,\0A\00"
define void @quaddobl_operate(i32 %0, i32 %1, i32* %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [4 x double]
%11 = bitcast i32* %6 to i8*
%12 = bitcast i32* %7 to i8*
%13 = bitcast i32* %8 to i8*
%14 = bitcast i32* %9 to i8*
%15 = tail call i32 @numbtrop_quaddobl_initialize(i32 %0, i32 %1, i32* %2, double* %3, double* %4)
%16 = call i32 @numbtrop_quaddobl_size(i32* %6)
%17 = load i32, i32* %6
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = call i32 @numbtrop_quaddobl_dimension(i32* %9)
%20 = load i32, i32* %9
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = shl i32 %1, 2
%23 = zext i32 %22 to i64
%24 = bitcast [4 x double]* %10 to i8*
%25 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%26 = icmp sgt i32 %1, 0
%27 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%28 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%29 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%30 = call i32 @llvm.smax.i32(i32 %22, i32 1)
%31 = zext i32 %30 to i64
%32 = zext i32 %30 to i64
br label %33
33: ; preds = %74, %5
%34 = call i8* @llvm.stacksave()
%35 = alloca double, i64 %23
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %7)
%38 = load i32, i32* %7
%39 = icmp slt i32 %38, 1
br i1 %39, label %40, label %41
40: ; preds = %33
br label %85
41: ; preds = %33
%42 = call i32 @numbtrop_quaddobl_retrieve_tropism(i32 %1, i32 %38, i32* %8, double* %35, double* %25)
%43 = load i32, i32* %7
%44 = load i32, i32* %8
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %43, i32 %44)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br i1 %26, label %47, label %54
47: ; preds = %41, %47
%48 = phi i64 [ %52, %47 ], [ 0, %41 ]
%49 = getelementptr inbounds double, double* %35, i64 %48
%50 = load double, double* %49
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %50)
%52 = add nuw nsw i64 %48, 1
%53 = icmp eq i64 %52, %31
br i1 %53, label %54, label %47
54: ; preds = %47, %41
%55 = load double, double* %25
%56 = load double, double* %27
%57 = load double, double* %28
%58 = load double, double* %29
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), double %55, double %56, double %57, double %58)
%60 = call i32 @generate_winding_numbers(i32 1, i32* %8)
%61 = call i32 @random_doubles(i32 %22, double* %35)
%62 = call i32 @random_doubles(i32 4, double* %25)
%63 = load i32, i32* %7
%64 = load i32, i32* %8
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i32 %63, i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br i1 %26, label %67, label %74
67: ; preds = %54, %67
%68 = phi i64 [ %72, %67 ], [ 0, %54 ]
%69 = getelementptr inbounds double, double* %35, i64 %68
%70 = load double, double* %69
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %70)
%72 = add nuw nsw i64 %68, 1
%73 = icmp eq i64 %72, %32
br i1 %73, label %74, label %67
74: ; preds = %67, %54
%75 = load double, double* %25
%76 = load double, double* %27
%77 = load double, double* %28
%78 = load double, double* %29
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), double %75, double %76, double %77, double %78)
%80 = load i32, i32* %7
%81 = load i32, i32* %8
%82 = call i32 @numbtrop_store_quaddobl_tropism(i32 %1, i32 %80, i32 %81, double* %35, double* %25)
%83 = load i32, i32* %7
%84 = icmp sgt i32 %83, 0
br i1 %84, label %33, label %85
85: ; preds = %74, %40
%86 = call i32 (...) @numbtrop_quaddobl_clear()
ret void
}