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


x86 assembly (clang, -O0):
<dobldobl_operate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%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   10a0 <numbtrop_dobldobl_initialize@plt>
mov    %eax,-0x24(%rbp)
lea    -0x28(%rbp),%rdi
call   1060 <numbtrop_dobldobl_size@plt>
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x38(%rbp),%rdi
call   1030 <numbtrop_dobldobl_dimension@plt>
mov    %eax,-0x24(%rbp)
mov    -0x38(%rbp),%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%eax
add    %eax,%eax
mov    %rsp,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rax,%rdx
shl    $0x3,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe13(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   10c0 <scanf@plt>
cmpl   $0x0,-0x30(%rbp)
jg     1266 <dobldobl_operate+0xc6>
movl   $0x2,-0x64(%rbp)
jmp    13c1 <dobldobl_operate+0x221>
mov    -0x70(%rbp),%rcx
mov    -0x8(%rbp),%edi
mov    -0x30(%rbp),%esi
lea    -0x60(%rbp),%r8
lea    -0x34(%rbp),%rdx
call   1080 <numbtrop_dobldobl_retrieve_tropism@plt>
mov    %eax,-0x24(%rbp)
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xde9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jge    12e3 <dobldobl_operate+0x143>
mov    -0x70(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xdc9(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12a9 <dobldobl_operate+0x109>
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
lea    0xda9(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    $0x1,%edi
lea    -0x34(%rbp),%rsi
call   1070 <generate_winding_numbers@plt>
mov    -0x70(%rbp),%rsi
mov    -0x8(%rbp),%edi
shl    $0x1,%edi
call   1040 <random_doubles@plt>
lea    -0x60(%rbp),%rsi
mov    $0x2,%edi
call   1040 <random_doubles@plt>
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jge    1389 <dobldobl_operate+0x1e9>
mov    -0x70(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xd23(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    134f <dobldobl_operate+0x1af>
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
lea    0xd03(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rcx
mov    -0x8(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    -0x60(%rbp),%r8
call   1090 <numbtrop_store_dobldobl_tropism@plt>
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
mov    -0x64(%rbp),%eax
test   %eax,%eax
je     13dd <dobldobl_operate+0x23d>
jmp    13d8 <dobldobl_operate+0x238>
jmp    13ec <dobldobl_operate+0x24c>
jmp    13e2 <dobldobl_operate+0x242>
cmpl   $0x0,-0x30(%rbp)
jg     120e <dobldobl_operate+0x6e>
mov    $0x0,%al
call   10b0 <numbtrop_dobldobl_clear@plt>
mov    %eax,-0x24(%rbp)
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dobldobl_operate>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %esi,%ebx
call   10a0 <numbtrop_dobldobl_initialize@plt>
lea    -0x50(%rbp),%rdi
call   1060 <numbtrop_dobldobl_size@plt>
mov    -0x50(%rbp),%esi
lea    0xe35(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    -0x4c(%rbp),%rdi
call   1030 <numbtrop_dobldobl_dimension@plt>
mov    -0x4c(%rbp),%esi
lea    0xe38(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,-0x48(%rbp)
lea    (%rbx,%rbx,1),%ecx
cmp    $0x2,%ecx
mov    $0x1,%eax
mov    %ecx,%r14d
cmovl  %eax,%r14d
mov    %rcx,-0x58(%rbp)
lea    0xf(,%rcx,8),%rax
and    $0xfffffffffffffff0,%rax
mov    %rax,-0x68(%rbp)
lea    -0x2c(%rbp),%r12
lea    0xe63(%rip),%rbx
lea    0xe6f(%rip),%r15
jmp    12db <dobldobl_operate+0x13b>
nopl   (%rax)
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
lea    0xe5c(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    $0x1,%edi
lea    -0x2c(%rbp),%rsi
call   1070 <generate_winding_numbers@plt>
mov    -0x58(%rbp),%rdi
mov    %r13,%rsi
call   1040 <random_doubles@plt>
mov    $0x2,%edi
lea    -0x40(%rbp),%r12
mov    %r12,%rsi
call   1040 <random_doubles@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xe35(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdf6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
lea    0xdf7(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x48(%rbp),%rdi
mov    %r13,%rcx
mov    %r12,%r8
call   1090 <numbtrop_store_dobldobl_tropism@plt>
mov    -0x60(%rbp),%rsp
cmpl   $0x0,-0x30(%rbp)
lea    -0x2c(%rbp),%r12
lea    0xdaf(%rip),%rbx
jle    1413 <dobldobl_operate+0x273>
mov    %rsp,-0x60(%rbp)
mov    %rsp,%r13
sub    -0x68(%rbp),%r13
mov    %r13,%rsp
lea    0xd4b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd5c(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   10c0 <scanf@plt>
mov    -0x30(%rbp),%esi
test   %esi,%esi
jle    140f <dobldobl_operate+0x26f>
mov    %r12,%rdx
mov    -0x48(%rbp),%r12
mov    %r12d,%edi
mov    %r13,%rcx
lea    -0x40(%rbp),%r8
call   1080 <numbtrop_dobldobl_retrieve_tropism@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xd28(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r12d,%r12d
jle    1230 <dobldobl_operate+0x90>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x0(%r13,%rbx,8),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1360 <dobldobl_operate+0x1c0>
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
lea    0xd12(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    $0x1,%edi
lea    -0x2c(%rbp),%rsi
call   1070 <generate_winding_numbers@plt>
mov    -0x58(%rbp),%rdi
mov    %r13,%rsi
call   1040 <random_doubles@plt>
mov    $0x2,%edi
lea    -0x40(%rbp),%r12
mov    %r12,%rsi
call   1040 <random_doubles@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xceb(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcac(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,-0x48(%rbp)
jle    1295 <dobldobl_operate+0xf5>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movsd  0x0(%r13,%rbx,8),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    13f0 <dobldobl_operate+0x250>
jmp    1295 <dobldobl_operate+0xf5>
mov    -0x60(%rbp),%rsp
xor    %eax,%eax
call   10b0 <numbtrop_dobldobl_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 = [24 x i8] c"\0Aand error : %.3e %.3e\0A\00"
@.str.8 = [43 x i8] c"Changing tropism %d to winding number %d,\0A\00"
define void @dobldobl_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 [2 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_dobldobl_initialize(i32 %21, i32 %22, i32* %23, double* %24, double* %25)
store i32 %26, i32* %11
%27 = call i32 @numbtrop_dobldobl_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_dobldobl_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 = %112, %5
%34 = load i32, i32* %7
%35 = mul nsw i32 2, %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 %108
44: ; preds = %33
%45 = load i32, i32* %7
%46 = load i32, i32* %14
%47 = getelementptr inbounds [2 x double], [2 x double]* %19, i64 0, i64 0
%48 = call i32 @numbtrop_dobldobl_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 2, %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 [2 x double], [2 x double]* %19, i64 0, i64 0
%69 = load double, double* %68
%70 = getelementptr inbounds [2 x double], [2 x double]* %19, i64 0, i64 1
%71 = load double, double* %70
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), double %69, double %71)
%73 = call i32 @generate_winding_numbers(i32 1, i32* %15)
%74 = load i32, i32* %7
%75 = mul nsw i32 2, %74
%76 = call i32 @random_doubles(i32 %75, double* %38)
%77 = getelementptr inbounds [2 x double], [2 x double]* %19, i64 0, i64 0
%78 = call i32 @random_doubles(i32 2, double* %77)
%79 = load i32, i32* %14
%80 = load i32, i32* %15
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i32 %79, i32 %80)
%82 = 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 %83
83: ; preds = %94, %67
%84 = load i32, i32* %13
%85 = load i32, i32* %7
%86 = mul nsw i32 2, %85
%87 = icmp slt i32 %84, %86
br i1 %87, label %88, label %97
88: ; preds = %83
%89 = load i32, i32* %13
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, double* %38, i64 %90
%92 = load double, double* %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %92)
br label %94
94: ; preds = %88
%95 = load i32, i32* %13
%96 = add nsw i32 %95, 1
store i32 %96, i32* %13
br label %83
97: ; preds = %83
%98 = getelementptr inbounds [2 x double], [2 x double]* %19, i64 0, i64 0
%99 = load double, double* %98
%100 = getelementptr inbounds [2 x double], [2 x double]* %19, i64 0, i64 1
%101 = load double, double* %100
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), double %99, double %101)
%103 = load i32, i32* %7
%104 = load i32, i32* %14
%105 = load i32, i32* %15
%106 = getelementptr inbounds [2 x double], [2 x double]* %19, i64 0, i64 0
%107 = call i32 @numbtrop_store_dobldobl_tropism(i32 %103, i32 %104, i32 %105, double* %38, double* %106)
store i32 %107, i32* %11
store i32 0, i32* %20
br label %108
108: ; preds = %97, %43
%109 = load i8*, i8** %17
%110 = load i32, i32* %20
switch i32 %110, label %117 [
i32 0, label %111
i32 2, label %115
]
111: ; preds = %108
br label %112
112: ; preds = %111
%113 = load i32, i32* %14
%114 = icmp sgt i32 %113, 0
br i1 %114, label %33, label %115
115: ; preds = %112, %108
%116 = call i32 (...) @numbtrop_dobldobl_clear()
store i32 %116, i32* %11
ret void
117: ; preds = %108
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 = [24 x i8] c"\0Aand error : %.3e %.3e\0A\00"
@.str.8 = [43 x i8] c"Changing tropism %d to winding number %d,\0A\00"
define void @dobldobl_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 [2 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_dobldobl_initialize(i32 %0, i32 %1, i32* %2, double* %3, double* %4)
%16 = call i32 @numbtrop_dobldobl_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_dobldobl_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, 1
%23 = zext i32 %22 to i64
%24 = bitcast [2 x double]* %10 to i8*
%25 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%26 = icmp sgt i32 %1, 0
%27 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 1
%28 = call i32 @llvm.smax.i32(i32 %22, i32 1)
%29 = zext i32 %28 to i64
%30 = zext i32 %28 to i64
br label %31
31: ; preds = %81, %5
%32 = call i8* @llvm.stacksave()
%33 = alloca double, i64 %23
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %7)
%36 = load i32, i32* %7
%37 = icmp slt i32 %36, 1
br i1 %37, label %38, label %39
38: ; preds = %31
br label %90
39: ; preds = %31
%40 = call i32 @numbtrop_dobldobl_retrieve_tropism(i32 %1, i32 %36, i32* %8, double* %33, double* %25)
%41 = load i32, i32* %7
%42 = load i32, i32* %8
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %41, i32 %42)
%44 = 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 %45, label %70
45: ; preds = %39, %45
%46 = phi i64 [ %50, %45 ], [ 0, %39 ]
%47 = getelementptr inbounds double, double* %33, i64 %46
%48 = load double, double* %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %48)
%50 = add nuw nsw i64 %46, 1
%51 = icmp eq i64 %50, %29
br i1 %51, label %52, label %45
52: ; preds = %45
%53 = load double, double* %25
%54 = load double, double* %27
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), double %53, double %54)
%56 = call i32 @generate_winding_numbers(i32 1, i32* %8)
%57 = call i32 @random_doubles(i32 %22, double* %33)
%58 = call i32 @random_doubles(i32 2, double* %25)
%59 = load i32, i32* %7
%60 = load i32, i32* %8
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i32 %59, i32 %60)
%62 = 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 %63, label %81
63: ; preds = %52, %63
%64 = phi i64 [ %68, %63 ], [ 0, %52 ]
%65 = getelementptr inbounds double, double* %33, i64 %64
%66 = load double, double* %65
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %66)
%68 = add nuw nsw i64 %64, 1
%69 = icmp eq i64 %68, %30
br i1 %69, label %81, label %63
70: ; preds = %39
%71 = load double, double* %25
%72 = load double, double* %27
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), double %71, double %72)
%74 = call i32 @generate_winding_numbers(i32 1, i32* %8)
%75 = call i32 @random_doubles(i32 %22, double* %33)
%76 = call i32 @random_doubles(i32 2, double* %25)
%77 = load i32, i32* %7
%78 = load i32, i32* %8
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i32 %77, i32 %78)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %81
81: ; preds = %63, %70, %52
%82 = load double, double* %25
%83 = load double, double* %27
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), double %82, double %83)
%85 = load i32, i32* %7
%86 = load i32, i32* %8
%87 = call i32 @numbtrop_store_dobldobl_tropism(i32 %1, i32 %85, i32 %86, double* %33, double* %25)
%88 = load i32, i32* %7
%89 = icmp sgt i32 %88, 0
br i1 %89, label %31, label %90
90: ; preds = %81, %38
%91 = call i32 (...) @numbtrop_dobldobl_clear()
ret void
}