#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*/ BNCIO(int);
int /*<<< orphan*/ BNCPulse();
int /*<<< orphan*/ PulseF1();
int /*<<< orphan*/ PulseF2(long);
int /*<<< orphan*/ PulseF3(int);
int /*<<< orphan*/ PulseF4(double);
int /*<<< orphan*/ PulseF5(char *);
long atoi(char *);
scalar_t__ isdigit(char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int GrowDecay() {
  int stat = 99;
  long int ii, jj, kk, mm, iduty, igrow, idecay, msec, clockfreq;
  double duty, freq;
  char com1, data, grow[128], decay[128];
  char posonly = 'Y';
  int trig = 1;
  char mvolt[128] = "5000";
  for (ii = 0; ii < 127; ii++) {
    grow[ii] = 0;
    decay[ii] = 0;
  }
  printf("Integer input  - actual time may be slightly different due to "
         "hardware\n");
  printf("   Fixed hardware setup:\n");
  printf("     - power supply amplifier is x1000 \n");
  printf("     - Positive only signals \n");
  printf("     - Voltage (mV) set to half that shown on LCD  \n");
  printf("     - Self-triggered mode   \n");
  printf("Time for grow-in (ms) \n");
  scanf("%s", grow);
  printf("Time for decay-out (ms) \n");
  scanf("%s", decay);
  jj = 0;
  kk = 0;
  for (ii = 0; ii < 20; ii++) {
    if (isdigit(grow[ii]))
      jj++;
    if (isdigit(decay[ii]))
      kk++;
  }
  igrow = atoi(grow);
  idecay = atoi(decay);
  printf(" igrow = %s = %i, jj = %i \n", grow, igrow, jj);
  printf("idecay = %s = %i, kk = %i \n", decay, idecay, kk);
  msec = igrow + idecay;
  iduty = idecay * 100 / msec;
  freq = 1000. / (double)msec;
  clockfreq = msec * 16;
  printf("    Cycle time = %.2lf Hz\n", freq);
  printf(" Beam  on time = %i ms\n", msec);
  printf(" Beam off time = %i \% \n", iduty);
  printf("    Clock time = %i per 16000 points\n", clockfreq);
  BNCPulse();
  PulseF1();
  PulseF2(iduty);
  PulseF3(trig);
  PulseF5(mvolt);
  PulseF4(freq);
  BNCIO(46);
  BNCIO(0);
  return (stat);
}


x86 assembly (clang, -O0):
<GrowDecay>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%rsp
movl   $0x63,-0x4(%rbp)
movb   $0x59,-0x171(%rbp)
movl   $0x1,-0x178(%rbp)
lea    -0x200(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1080 <memset@plt>
movb   $0x35,-0x200(%rbp)
movb   $0x30,-0x1ff(%rbp)
movb   $0x30,-0x1fe(%rbp)
movb   $0x30,-0x1fd(%rbp)
movq   $0x0,-0x10(%rbp)
cmpq   $0x7f,-0x10(%rbp)
jge    124e <GrowDecay+0x8e>
mov    -0x10(%rbp),%rax
movb   $0x0,-0xf0(%rbp,%rax,1)
mov    -0x10(%rbp),%rax
movb   $0x0,-0x170(%rbp,%rax,1)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    121a <GrowDecay+0x5a>
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xdf9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0xf0(%rbp),%rsi
lea    0xe60(%rip),%rdi
call   10c0 <scanf@plt>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x170(%rbp),%rsi
lea    0xe3f(%rip),%rdi
call   10c0 <scanf@plt>
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x10(%rbp)
cmpq   $0x14,-0x10(%rbp)
jge    136b <GrowDecay+0x1ab>
mov    -0x10(%rbp),%rax
movsbl -0xf0(%rbp,%rax,1),%edi
ff
call   1050 <isdigit@plt>
cmp    $0x0,%rax
je     132e <GrowDecay+0x16e>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsbl -0x170(%rbp,%rax,1),%edi
ff
call   1050 <isdigit@plt>
cmp    $0x0,%rax
je     1355 <GrowDecay+0x195>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    135a <GrowDecay+0x19a>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    12fc <GrowDecay+0x13c>
lea    -0xf0(%rbp),%rdi
call   10e0 <atoi@plt>
mov    %rax,-0x38(%rbp)
lea    -0x170(%rbp),%rdi
call   10e0 <atoi@plt>
mov    %rax,-0x40(%rbp)
lea    -0xf0(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x170(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
imul   $0x64,-0x40(%rbp),%rax
cqto
idivq  -0x48(%rbp)
mov    %rax,-0x30(%rbp)
cvtsi2sdq -0x48(%rbp),%xmm1
movsd  0xc12(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x48(%rbp),%rax
shl    $0x4,%rax
mov    %rax,-0x50(%rbp)
movsd  -0x60(%rbp),%xmm0
lea    0xd64(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    -0x48(%rbp),%rsi
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x50(%rbp),%rsi
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1060 <BNCPulse@plt>
mov    $0x0,%al
call   10a0 <PulseF1@plt>
mov    -0x30(%rbp),%rdi
call   1030 <PulseF2@plt>
mov    -0x178(%rbp),%edi
call   1090 <PulseF3@plt>
lea    -0x200(%rbp),%rdi
call   10b0 <PulseF5@plt>
movsd  -0x60(%rbp),%xmm0
call   1040 <PulseF4@plt>
mov    $0x2e,%edi
call   10d0 <BNCIO@plt>
xor    %edi,%edi
call   10d0 <BNCIO@plt>
mov    -0x4(%rbp),%eax
add    $0x200,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GrowDecay>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x198,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x180(%rsp)
movaps %xmm0,0x170(%rsp)
movaps %xmm0,0x160(%rsp)
movaps %xmm0,0x150(%rsp)
movaps %xmm0,0x140(%rsp)
movaps %xmm0,0x130(%rsp)
movaps %xmm0,0x120(%rsp)
movl   $0x30303035,0x110(%rsp)
35 30 30 30
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xf0(%rsp)
movups %xmm0,0xff(%rsp)
movups %xmm0,0x7f(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
lea    0xe26(%rip),%rdi
call   1060 <puts@plt>
lea    0xe61(%rip),%rdi
call   1060 <puts@plt>
lea    0xe6e(%rip),%rdi
call   1060 <puts@plt>
lea    0xe8a(%rip),%rdi
call   1060 <puts@plt>
lea    0xe9c(%rip),%rdi
call   1060 <puts@plt>
lea    0xec4(%rip),%rdi
call   1060 <puts@plt>
lea    0xed6(%rip),%rdi
call   1060 <puts@plt>
lea    0xd26(%rip),%rbx
lea    0x90(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xeca(%rip),%rdi
call   1060 <puts@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
xor    %ebp,%ebp
xor    %ebx,%ebx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl 0x90(%rsp,%rbp,1),%edi
call   1050 <isdigit@plt>
cmp    $0x1,%rax
sbb    $0xffffffffffffffff,%rbx
movsbl 0x10(%rsp,%rbp,1),%edi
call   1050 <isdigit@plt>
cmp    $0x1,%rax
sbb    $0xffffffffffffffff,%r15
add    $0x1,%rbp
cmp    $0x14,%rbp
jne    1320 <GrowDecay+0x160>
lea    0x90(%rsp),%r12
mov    %r12,%rdi
call   10e0 <atoi@plt>
mov    %rax,%r14
lea    0x10(%rsp),%r13
mov    %r13,%rdi
call   10e0 <atoi@plt>
mov    %rax,%rbp
lea    0xc90(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xc95(%rip),%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   1080 <printf@plt>
add    %rbp,%r14
imul   $0x64,%rbp,%rax
mov    %rax,%rcx
or     %r14,%rcx
shr    $0x20,%rcx
je     13bf <GrowDecay+0x1ff>
cqto
idiv   %r14
mov    %rax,%rbx
jmp    13c6 <GrowDecay+0x206>
xor    %edx,%edx
div    %r14d
mov    %eax,%ebx
cvtsi2sd %r14,%xmm1
movsd  0xc2d(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r14,%rbp
shl    $0x4,%rbp
lea    0xc58(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xc65(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xc6c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xc73(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1070 <BNCPulse@plt>
xor    %eax,%eax
call   10a0 <PulseF1@plt>
mov    %rbx,%rdi
call   1030 <PulseF2@plt>
mov    $0x1,%edi
call   1090 <PulseF3@plt>
lea    0x110(%rsp),%rdi
call   10b0 <PulseF5@plt>
movsd  0x8(%rsp),%xmm0
call   1040 <PulseF4@plt>
mov    $0x2e,%edi
call   10d0 <BNCIO@plt>
xor    %edi,%edi
call   10d0 <BNCIO@plt>
mov    $0x63,%eax
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [72 x i8] c"Integer input - actual time may be slightly different due to hardware\0A\00"
@.str.1 = [26 x i8] c" Fixed hardware setup:\0A\00"
@.str.2 = [41 x i8] c" - power supply amplifier is x1000 \0A\00"
@.str.3 = [31 x i8] c" - Positive only signals \0A\00"
@.str.4 = [53 x i8] c" - Voltage (mV) set to half that shown on LCD \0A\00"
@.str.5 = [31 x i8] c" - Self-triggered mode \0A\00"
@.str.6 = [24 x i8] c"Time for grow-in (ms) \0A\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [26 x i8] c"Time for decay-out (ms) \0A\00"
@.str.9 = [28 x i8] c" igrow = %s = %i, jj = %i \0A\00"
@.str.10 = [28 x i8] c"idecay = %s = %i, kk = %i \0A\00"
@.str.11 = [27 x i8] c" Cycle time = %.2lf Hz\0A\00"
@.str.12 = [24 x i8] c" Beam on time = %i ms\0A\00"
@.str.13 = [24 x i8] c" Beam off time = %i % \0A\00"
@.str.14 = [38 x i8] c" Clock time = %i per 16000 points\0A\00"
define i32 @GrowDecay() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca double
%12 = alloca double
%13 = alloca i8
%14 = alloca i8
%15 = alloca [128 x i8]
%16 = alloca [128 x i8]
%17 = alloca i8
%18 = alloca i32
%19 = alloca [128 x i8]
store i32 99, i32* %1
store i8 89, i8* %17
store i32 1, i32* %18
%20 = bitcast [128 x i8]* %19 to i8*
%21 = bitcast i8* %20 to [128 x i8]*
%22 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i32 0, i32 0
store i8 53, i8* %22
%23 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i32 0, i32 1
store i8 48, i8* %23
%24 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i32 0, i32 2
store i8 48, i8* %24
%25 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i32 0, i32 3
store i8 48, i8* %25
store i64 0, i64* %2
br label %26
26: ; preds = %34, %0
%27 = load i64, i64* %2
%28 = icmp slt i64 %27, 127
br i1 %28, label %29, label %37
29: ; preds = %26
%30 = load i64, i64* %2
%31 = getelementptr inbounds [128 x i8], [128 x i8]* %15, i64 0, i64 %30
store i8 0, i8* %31
%32 = load i64, i64* %2
%33 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %32
store i8 0, i8* %33
br label %34
34: ; preds = %29
%35 = load i64, i64* %2
%36 = add nsw i64 %35, 1
store i64 %36, i64* %2
br label %26
37: ; preds = %26
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%45 = getelementptr inbounds [128 x i8], [128 x i8]* %15, i64 0, i64 0
%46 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
%48 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %48)
store i64 0, i64* %3
store i64 0, i64* %4
store i64 0, i64* %2
br label %50
50: ; preds = %72, %37
%51 = load i64, i64* %2
%52 = icmp slt i64 %51, 20
br i1 %52, label %53, label %75
53: ; preds = %50
%54 = load i64, i64* %2
%55 = getelementptr inbounds [128 x i8], [128 x i8]* %15, i64 0, i64 %54
%56 = load i8, i8* %55
%57 = call i64 @isdigit(i8 signext %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %53
%60 = load i64, i64* %3
%61 = add nsw i64 %60, 1
store i64 %61, i64* %3
br label %62
62: ; preds = %59, %53
%63 = load i64, i64* %2
%64 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %63
%65 = load i8, i8* %64
%66 = call i64 @isdigit(i8 signext %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %62
%69 = load i64, i64* %4
%70 = add nsw i64 %69, 1
store i64 %70, i64* %4
br label %71
71: ; preds = %68, %62
br label %72
72: ; preds = %71
%73 = load i64, i64* %2
%74 = add nsw i64 %73, 1
store i64 %74, i64* %2
br label %50
75: ; preds = %50
%76 = getelementptr inbounds [128 x i8], [128 x i8]* %15, i64 0, i64 0
%77 = call i64 @atoi(i8* %76)
store i64 %77, i64* %7
%78 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%79 = call i64 @atoi(i8* %78)
store i64 %79, i64* %8
%80 = getelementptr inbounds [128 x i8], [128 x i8]* %15, i64 0, i64 0
%81 = load i64, i64* %7
%82 = load i64, i64* %3
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* %80, i64 %81, i64 %82)
%84 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%85 = load i64, i64* %8
%86 = load i64, i64* %4
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i8* %84, i64 %85, i64 %86)
%88 = load i64, i64* %7
%89 = load i64, i64* %8
%90 = add nsw i64 %88, %89
store i64 %90, i64* %9
%91 = load i64, i64* %8
%92 = mul nsw i64 %91, 100
%93 = load i64, i64* %9
%94 = sdiv i64 %92, %93
store i64 %94, i64* %6
%95 = load i64, i64* %9
%96 = sitofp i64 %95 to double
%97 = fdiv double 1.000000e+03, %96
store double %97, double* %12
%98 = load i64, i64* %9
%99 = mul nsw i64 %98, 16
store i64 %99, i64* %10
%100 = load double, double* %12
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), double %100)
%102 = load i64, i64* %9
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i64 %102)
%104 = load i64, i64* %6
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i64 %104)
%106 = load i64, i64* %10
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i64 %106)
%108 = call i32 (...) @BNCPulse()
%109 = call i32 (...) @PulseF1()
%110 = load i64, i64* %6
%111 = call i32 @PulseF2(i64 %110)
%112 = load i32, i32* %18
%113 = call i32 @PulseF3(i32 %112)
%114 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
%115 = call i32 @PulseF5(i8* %114)
%116 = load double, double* %12
%117 = call i32 @PulseF4(double %116)
%118 = call i32 @BNCIO(i32 46)
%119 = call i32 @BNCIO(i32 0)
%120 = load i32, i32* %1
ret i32 %120
}

LLVM IR (-O2):
@.str.7 = [3 x i8] c"%s\00"
@.str.9 = [28 x i8] c" igrow = %s = %i, jj = %i \0A\00"
@.str.10 = [28 x i8] c"idecay = %s = %i, kk = %i \0A\00"
@.str.11 = [27 x i8] c" Cycle time = %.2lf Hz\0A\00"
@.str.12 = [24 x i8] c" Beam on time = %i ms\0A\00"
@.str.13 = [24 x i8] c" Beam off time = %i % \0A\00"
@.str.14 = [38 x i8] c" Clock time = %i per 16000 points\0A\00"
@str = [71 x i8] c"Integer input - actual time may be slightly different due to hardware\00"
@str.15 = [25 x i8] c" Fixed hardware setup:\00"
@str.16 = [40 x i8] c" - power supply amplifier is x1000 \00"
@str.17 = [30 x i8] c" - Positive only signals \00"
@str.18 = [52 x i8] c" - Voltage (mV) set to half that shown on LCD \00"
@str.19 = [30 x i8] c" - Self-triggered mode \00"
@str.20 = [23 x i8] c"Time for grow-in (ms) \00"
@str.21 = [25 x i8] c"Time for decay-out (ms) \00"
define i32 @GrowDecay() {
%1 = alloca [128 x i8]
%2 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 0
%3 = alloca [128 x i8]
%4 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%5 = alloca [128 x i8]
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
store i8 53, i8* %8
%9 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 1
store i8 48, i8* %9
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 2
store i8 48, i8* %10
%11 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 3
store i8 48, i8* %11
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.15, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.17, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.18, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.19, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.20, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %6)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.21, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %7)
br label %22
22: ; preds = %0, %22
%23 = phi i64 [ 0, %0 ], [ %38, %22 ]
%24 = phi i64 [ 0, %0 ], [ %31, %22 ]
%25 = phi i64 [ 0, %0 ], [ %37, %22 ]
%26 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 %23
%27 = load i8, i8* %26
%28 = call i64 @isdigit(i8 signext %27)
%29 = icmp ne i64 %28, 0
%30 = zext i1 %29 to i64
%31 = add nuw nsw i64 %24, %30
%32 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %23
%33 = load i8, i8* %32
%34 = call i64 @isdigit(i8 signext %33)
%35 = icmp ne i64 %34, 0
%36 = zext i1 %35 to i64
%37 = add nuw nsw i64 %25, %36
%38 = add nuw nsw i64 %23, 1
%39 = icmp eq i64 %38, 20
br i1 %39, label %40, label %22
40: ; preds = %22
%41 = call i64 @atoi(i8* %6)
%42 = call i64 @atoi(i8* %7)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* %6, i64 %41, i64 %31)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i8* %7, i64 %42, i64 %37)
%45 = add nsw i64 %42, %41
%46 = mul nsw i64 %42, 100
%47 = sdiv i64 %46, %45
%48 = sitofp i64 %45 to double
%49 = fdiv double 1.000000e+03, %48
%50 = shl nsw i64 %45, 4
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), double %49)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i64 %45)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i64 %47)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i64 %50)
%55 = call i32 (...) @BNCPulse()
%56 = call i32 (...) @PulseF1()
%57 = call i32 @PulseF2(i64 %47)
%58 = call i32 @PulseF3(i32 1)
%59 = call i32 @PulseF5(i8* %8)
%60 = call i32 @PulseF4(double %49)
%61 = call i32 @BNCIO(i32 46)
%62 = call i32 @BNCIO(i32 0)
ret i32 99
}