#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 padcon_set_homotopy_continuation_parameter(int, double *);
int /*<<< orphan*/ padcon_write_homotopy_continuation_parameters();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, ...);
void padcon_tune_homotopy_continuation_parameters(void) {
  int choice, intpar, fail;
  double fltpar;
  double gamma[2];
  do {
    padcon_write_homotopy_continuation_parameters();
    printf("Type a number to change a value, or 0 to exit : ");
    scanf("%d", &choice);
    if (choice == 1) {
      printf("-> give the real part of the new gamma : ");
      scanf("%lf", &gamma[0]);
      printf("-> give the imaginary part of the new gamma : ");
      scanf("%lf", &gamma[1]);
      fail = padcon_set_homotopy_continuation_parameter(1, gamma);
    } else if (choice == 2) {
      printf("-> give a new numerator degree for the Pade approximant : ");
      scanf("%d", &intpar);
      fltpar = (double)intpar;
    } else if (choice == 3) {
      printf("-> give a new denominator degree for the Pade approximant : ");
      scanf("%d", &intpar);
      fltpar = (double)intpar;
    } else if (choice == 4) {
      printf("-> give a new value for the maximum step size : ");
      scanf("%lf", &fltpar);
    } else if (choice == 5) {
      printf("-> give a new value for the minimum step size  : ");
      scanf("%lf", &fltpar);
    } else if (choice == 6) {
      printf("-> give a new multiplication factor for the pole radius : ");
      scanf("%lf", &fltpar);
    } else if (choice == 7) {
      printf("-> give a new multiplication factor for the curvature : ");
      scanf("%lf", &fltpar);
    } else if (choice == 8) {
      printf("-> give a new tolerance on the predictor residual : ");
      scanf("%lf", &fltpar);
    } else if (choice == 9) {
      printf("-> give a new tolerance on the corrector residual : ");
      scanf("%lf", &fltpar);
    } else if (choice == 10) {
      printf("-> give a new tolerance on a zero series coefficient : ");
      scanf("%lf", &fltpar);
    } else if (choice == 11) {
      printf("-> give a new maximum number of corrector steps : ");
      scanf("%d", &intpar);
      fltpar = (double)intpar;
    } else if (choice == 12) {
      printf("-> give a new maximum number of steps on a path : ");
      scanf("%d", &intpar);
      fltpar = (double)intpar;
    }
    if ((choice > 1) && (choice < 13)) {
      fail = padcon_set_homotopy_continuation_parameter(choice, &fltpar);
    }
  } while (choice != 0);
}


x86 assembly (clang, -O0):
<padcon_tune_homotopy_continuation_parameters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    $0x0,%al
call   1050 <padcon_write_homotopy_continuation_parameters@plt>
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x1,-0x4(%rbp)
jne    11cd <padcon_tune_homotopy_continuation_parameters+0x8d>
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x8,%rsi
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0x30(%rbp),%rsi
mov    $0x1,%edi
call   1060 <padcon_set_homotopy_continuation_parameter@plt>
mov    %eax,-0xc(%rbp)
jmp    1416 <padcon_tune_homotopy_continuation_parameters+0x2d6>
cmpl   $0x2,-0x4(%rbp)
jne    1204 <padcon_tune_homotopy_continuation_parameters+0xc4>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
lea    0xe47(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1411 <padcon_tune_homotopy_continuation_parameters+0x2d1>
cmpl   $0x3,-0x4(%rbp)
jne    123b <padcon_tune_homotopy_continuation_parameters+0xfb>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xe10(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    140c <padcon_tune_homotopy_continuation_parameters+0x2cc>
cmpl   $0x4,-0x4(%rbp)
jne    1268 <padcon_tune_homotopy_continuation_parameters+0x128>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
lea    0xe06(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1407 <padcon_tune_homotopy_continuation_parameters+0x2c7>
cmpl   $0x5,-0x4(%rbp)
jne    1295 <padcon_tune_homotopy_continuation_parameters+0x155>
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
lea    0xdd9(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1402 <padcon_tune_homotopy_continuation_parameters+0x2c2>
cmpl   $0x6,-0x4(%rbp)
jne    12c2 <padcon_tune_homotopy_continuation_parameters+0x182>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
lea    0xdac(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    13fd <padcon_tune_homotopy_continuation_parameters+0x2bd>
cmpl   $0x7,-0x4(%rbp)
jne    12ef <padcon_tune_homotopy_continuation_parameters+0x1af>
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
lea    0xd7f(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    13f8 <padcon_tune_homotopy_continuation_parameters+0x2b8>
cmpl   $0x8,-0x4(%rbp)
jne    131c <padcon_tune_homotopy_continuation_parameters+0x1dc>
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
lea    0xd52(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    13f3 <padcon_tune_homotopy_continuation_parameters+0x2b3>
cmpl   $0x9,-0x4(%rbp)
jne    1349 <padcon_tune_homotopy_continuation_parameters+0x209>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xd25(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    13ee <padcon_tune_homotopy_continuation_parameters+0x2ae>
cmpl   $0xa,-0x4(%rbp)
jne    1376 <padcon_tune_homotopy_continuation_parameters+0x236>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
lea    0xcf8(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    13e9 <padcon_tune_homotopy_continuation_parameters+0x2a9>
cmpl   $0xb,-0x4(%rbp)
jne    13ad <padcon_tune_homotopy_continuation_parameters+0x26d>
lea    0xefb(%rip),%rdi
call   1030 <printf@plt>
lea    0xc9e(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    13e4 <padcon_tune_homotopy_continuation_parameters+0x2a4>
cmpl   $0xc,-0x4(%rbp)
jne    13df <padcon_tune_homotopy_continuation_parameters+0x29f>
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
lea    0xc67(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    13e4 <padcon_tune_homotopy_continuation_parameters+0x2a4>
jmp    13e9 <padcon_tune_homotopy_continuation_parameters+0x2a9>
jmp    13ee <padcon_tune_homotopy_continuation_parameters+0x2ae>
jmp    13f3 <padcon_tune_homotopy_continuation_parameters+0x2b3>
jmp    13f8 <padcon_tune_homotopy_continuation_parameters+0x2b8>
jmp    13fd <padcon_tune_homotopy_continuation_parameters+0x2bd>
jmp    1402 <padcon_tune_homotopy_continuation_parameters+0x2c2>
jmp    1407 <padcon_tune_homotopy_continuation_parameters+0x2c7>
jmp    140c <padcon_tune_homotopy_continuation_parameters+0x2cc>
jmp    1411 <padcon_tune_homotopy_continuation_parameters+0x2d1>
jmp    1416 <padcon_tune_homotopy_continuation_parameters+0x2d6>
cmpl   $0x1,-0x4(%rbp)
jle    1439 <padcon_tune_homotopy_continuation_parameters+0x2f9>
cmpl   $0xd,-0x4(%rbp)
jge    1439 <padcon_tune_homotopy_continuation_parameters+0x2f9>
mov    -0x4(%rbp),%edi
lea    -0x18(%rbp),%rsi
call   1060 <padcon_set_homotopy_continuation_parameter@plt>
mov    %eax,-0xc(%rbp)
jmp    143e <padcon_tune_homotopy_continuation_parameters+0x2fe>
cmpl   $0x0,-0x4(%rbp)
jne    1148 <padcon_tune_homotopy_continuation_parameters+0x8>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<padcon_tune_homotopy_continuation_parameters>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xedb(%rip),%rbp
lea    0xf05(%rip),%r12
lea    0x4(%rsp),%r14
lea    0x8(%rsp),%r13
lea    0xe93(%rip),%rbx
lea    0xf1a(%rip),%r15
jmp    1188 <padcon_tune_homotopy_continuation_parameters+0x48>
cs nopw 0x0(%rax,%rax,1)
test   %edi,%edi
je     12d5 <padcon_tune_homotopy_continuation_parameters+0x195>
xor    %eax,%eax
call   1050 <padcon_write_homotopy_continuation_parameters@plt>
mov    %rbp,%rdi
call   1030 <printf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0xb,%eax
ja     12b4 <padcon_tune_homotopy_continuation_parameters+0x174>
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r13,%rbx
mov    %r14,%r13
lea    0x10(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r13,%r14
mov    %rbx,%r13
lea    0xdef(%rip),%rbx
call   1060 <padcon_set_homotopy_continuation_parameter@plt>
jmp    12b4 <padcon_tune_homotopy_continuation_parameters+0x174>
lea    0xe9f(%rip),%rdi
jmp    1294 <padcon_tune_homotopy_continuation_parameters+0x154>
lea    0xed1(%rip),%rdi
jmp    1294 <padcon_tune_homotopy_continuation_parameters+0x154>
lea    0xf05(%rip),%rdi
jmp    1270 <padcon_tune_homotopy_continuation_parameters+0x130>
lea    0xf2d(%rip),%rdi
jmp    1270 <padcon_tune_homotopy_continuation_parameters+0x130>
lea    0xf56(%rip),%rdi
jmp    1270 <padcon_tune_homotopy_continuation_parameters+0x130>
lea    0xf88(%rip),%rdi
jmp    1270 <padcon_tune_homotopy_continuation_parameters+0x130>
lea    0xfb8(%rip),%rdi
jmp    1270 <padcon_tune_homotopy_continuation_parameters+0x130>
lea    0xfe4(%rip),%rdi
jmp    1270 <padcon_tune_homotopy_continuation_parameters+0x130>
lea    0x1010(%rip),%rdi
nopw   0x0(%rax,%rax,1)
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
jmp    12b4 <padcon_tune_homotopy_continuation_parameters+0x174>
lea    0x1027(%rip),%rdi
jmp    1294 <padcon_tune_homotopy_continuation_parameters+0x154>
lea    0x1051(%rip),%rdi
call   1030 <printf@plt>
mov    %r12,%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
xorps  %xmm0,%xmm0
cvtsi2sdl (%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    0x4(%rsp),%edi
lea    -0x2(%rdi),%eax
cmp    $0xa,%eax
ja     1180 <padcon_tune_homotopy_continuation_parameters+0x40>
mov    %r13,%rsi
call   1060 <padcon_set_homotopy_continuation_parameter@plt>
mov    0x4(%rsp),%edi
jmp    1180 <padcon_tune_homotopy_continuation_parameters+0x40>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [49 x i8] c"Type a number to change a value, or 0 to exit : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [42 x i8] c"-> give the real part of the new gamma : \00"
@.str.3 = [4 x i8] c"%lf\00"
@.str.4 = [47 x i8] c"-> give the imaginary part of the new gamma : \00"
@.str.5 = [59 x i8] c"-> give a new numerator degree for the Pade approximant : \00"
@.str.6 = [61 x i8] c"-> give a new denominator degree for the Pade approximant : \00"
@.str.7 = [49 x i8] c"-> give a new value for the maximum step size : \00"
@.str.8 = [50 x i8] c"-> give a new value for the minimum step size : \00"
@.str.9 = [59 x i8] c"-> give a new multiplication factor for the pole radius : \00"
@.str.10 = [57 x i8] c"-> give a new multiplication factor for the curvature : \00"
@.str.11 = [53 x i8] c"-> give a new tolerance on the predictor residual : \00"
@.str.12 = [53 x i8] c"-> give a new tolerance on the corrector residual : \00"
@.str.13 = [56 x i8] c"-> give a new tolerance on a zero series coefficient : \00"
@.str.14 = [51 x i8] c"-> give a new maximum number of corrector steps : \00"
@.str.15 = [51 x i8] c"-> give a new maximum number of steps on a path : \00"
define void @padcon_tune_homotopy_continuation_parameters() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca [2 x double]
br label %6
6: ; preds = %116, %0
%7 = call i32 (...) @padcon_write_homotopy_continuation_parameters()
%8 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %21
12: ; preds = %6
%13 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%14 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 0
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%17 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 1
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %17)
%19 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 0
%20 = call i32 @padcon_set_homotopy_continuation_parameter(i32 1, double* %19)
store i32 %20, i32* %3
br label %106
21: ; preds = %6
%22 = load i32, i32* %1
%23 = icmp eq i32 %22, 2
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%26 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%27 = load i32, i32* %2
%28 = sitofp i32 %27 to double
store double %28, double* %4
br label %105
29: ; preds = %21
%30 = load i32, i32* %1
%31 = icmp eq i32 %30, 3
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%35 = load i32, i32* %2
%36 = sitofp i32 %35 to double
store double %36, double* %4
br label %104
37: ; preds = %29
%38 = load i32, i32* %1
%39 = icmp eq i32 %38, 4
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0))
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %4)
br label %103
43: ; preds = %37
%44 = load i32, i32* %1
%45 = icmp eq i32 %44, 5
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%48 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %4)
br label %102
49: ; preds = %43
%50 = load i32, i32* %1
%51 = icmp eq i32 %50, 6
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%54 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %4)
br label %101
55: ; preds = %49
%56 = load i32, i32* %1
%57 = icmp eq i32 %56, 7
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0))
%60 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %4)
br label %100
61: ; preds = %55
%62 = load i32, i32* %1
%63 = icmp eq i32 %62, 8
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%66 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %4)
br label %99
67: ; preds = %61
%68 = load i32, i32* %1
%69 = icmp eq i32 %68, 9
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.12, i64 0, i64 0))
%72 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %4)
br label %98
73: ; preds = %67
%74 = load i32, i32* %1
%75 = icmp eq i32 %74, 10
br i1 %75, label %76, label %79
76: ; preds = %73
%77 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%78 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %4)
br label %97
79: ; preds = %73
%80 = load i32, i32* %1
%81 = icmp eq i32 %80, 11
br i1 %81, label %82, label %87
82: ; preds = %79
%83 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0))
%84 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%85 = load i32, i32* %2
%86 = sitofp i32 %85 to double
store double %86, double* %4
br label %96
87: ; preds = %79
%88 = load i32, i32* %1
%89 = icmp eq i32 %88, 12
br i1 %89, label %90, label %95
90: ; preds = %87
%91 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0))
%92 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%93 = load i32, i32* %2
%94 = sitofp i32 %93 to double
store double %94, double* %4
br label %95
95: ; preds = %90, %87
br label %96
96: ; preds = %95, %82
br label %97
97: ; preds = %96, %76
br label %98
98: ; preds = %97, %70
br label %99
99: ; preds = %98, %64
br label %100
100: ; preds = %99, %58
br label %101
101: ; preds = %100, %52
br label %102
102: ; preds = %101, %46
br label %103
103: ; preds = %102, %40
br label %104
104: ; preds = %103, %32
br label %105
105: ; preds = %104, %24
br label %106
106: ; preds = %105, %12
%107 = load i32, i32* %1
%108 = icmp sgt i32 %107, 1
br i1 %108, label %109, label %115
109: ; preds = %106
%110 = load i32, i32* %1
%111 = icmp slt i32 %110, 13
br i1 %111, label %112, label %115
112: ; preds = %109
%113 = load i32, i32* %1
%114 = call i32 @padcon_set_homotopy_continuation_parameter(i32 %113, double* %4)
store i32 %114, i32* %3
br label %115
115: ; preds = %112, %109, %106
br label %116
116: ; preds = %115
%117 = load i32, i32* %1
%118 = icmp ne i32 %117, 0
br i1 %118, label %6, label %119
119: ; preds = %116
ret void
}

LLVM IR (-O2):
@.str = [49 x i8] c"Type a number to change a value, or 0 to exit : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [42 x i8] c"-> give the real part of the new gamma : \00"
@.str.3 = [4 x i8] c"%lf\00"
@.str.4 = [47 x i8] c"-> give the imaginary part of the new gamma : \00"
@.str.5 = [59 x i8] c"-> give a new numerator degree for the Pade approximant : \00"
@.str.6 = [61 x i8] c"-> give a new denominator degree for the Pade approximant : \00"
@.str.7 = [49 x i8] c"-> give a new value for the maximum step size : \00"
@.str.8 = [50 x i8] c"-> give a new value for the minimum step size : \00"
@.str.9 = [59 x i8] c"-> give a new multiplication factor for the pole radius : \00"
@.str.10 = [57 x i8] c"-> give a new multiplication factor for the curvature : \00"
@.str.11 = [53 x i8] c"-> give a new tolerance on the predictor residual : \00"
@.str.12 = [53 x i8] c"-> give a new tolerance on the corrector residual : \00"
@.str.13 = [56 x i8] c"-> give a new tolerance on a zero series coefficient : \00"
@.str.14 = [51 x i8] c"-> give a new maximum number of corrector steps : \00"
@.str.15 = [51 x i8] c"-> give a new maximum number of steps on a path : \00"
define void @padcon_tune_homotopy_continuation_parameters() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
%4 = alloca [2 x double]
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast double* %3 to i8*
%8 = bitcast [2 x double]* %4 to i8*
%9 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%10 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
br label %11
11: ; preds = %70, %0
%12 = call i32 (...) @padcon_write_homotopy_continuation_parameters()
%13 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%15 = load i32, i32* %1
switch i32 %15, label %63 [
i32 1, label %16
i32 2, label %22
i32 3, label %27
i32 4, label %32
i32 5, label %35
i32 6, label %38
i32 7, label %41
i32 8, label %44
i32 9, label %47
i32 10, label %50
i32 11, label %53
i32 12, label %58
]
16: ; preds = %11
%17 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %9)
%19 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %10)
%21 = call i32 @padcon_set_homotopy_continuation_parameter(i32 1, double* %9)
br label %63
22: ; preds = %11
%23 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%25 = load i32, i32* %2
%26 = sitofp i32 %25 to double
store double %26, double* %3
br label %63
27: ; preds = %11
%28 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%30 = load i32, i32* %2
%31 = sitofp i32 %30 to double
store double %31, double* %3
br label %63
32: ; preds = %11
%33 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %3)
br label %63
35: ; preds = %11
%36 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %3)
br label %63
38: ; preds = %11
%39 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%40 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %3)
br label %63
41: ; preds = %11
%42 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0))
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %3)
br label %63
44: ; preds = %11
%45 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%46 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %3)
br label %63
47: ; preds = %11
%48 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.12, i64 0, i64 0))
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %3)
br label %63
50: ; preds = %11
%51 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%52 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %3)
br label %63
53: ; preds = %11
%54 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0))
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%56 = load i32, i32* %2
%57 = sitofp i32 %56 to double
store double %57, double* %3
br label %63
58: ; preds = %11
%59 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0))
%60 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%61 = load i32, i32* %2
%62 = sitofp i32 %61 to double
store double %62, double* %3
br label %63
63: ; preds = %11, %22, %32, %38, %44, %50, %58, %53, %47, %41, %35, %27, %16
%64 = load i32, i32* %1
%65 = add i32 %64, -2
%66 = icmp ult i32 %65, 11
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = call i32 @padcon_set_homotopy_continuation_parameter(i32 %64, double* %3)
%69 = load i32, i32* %1
br label %70
70: ; preds = %63, %67
%71 = phi i32 [ %64, %63 ], [ %69, %67 ]
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %11
73: ; preds = %70
ret void
}