#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 */
struct timespec {
  scalar_t__ tv_nsec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_REALTIME;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
int /*<<< orphan*/ free(char *);
char *malloc(size_t);
int /*<<< orphan*/ memset(char *, long long, size_t);
int /*<<< orphan*/ printf(char *, ...);
long strtol(char *, int /*<<< orphan*/ *, int);
long long strtoll(char *, int /*<<< orphan*/ *, int);
int main(int argc, char **argv) {
  struct timespec tbegin, tfinish;
  size_t thismuch;
  long long int thismany;
  if (argc != 3) {
    printf("I want two int parms.\n");
    return 1;
  }
  long me = strtol(argv[1], NULL, 10);
  if (me <= 0) {
    printf("Noooo %ld isn't right.\n", me);
    return 1;
  }
  thismuch = (size_t)me;
  thismuch <<= 10;
  thismany = strtoll(argv[2], NULL, 10);
  if (thismany <= 0) {
    printf("Noooo %lld isn't bigger than 0.\n", thismany);
    return 1;
  }
  size_t longlong_bits = 8 * sizeof(long long);
  if ((size_t)thismany >= longlong_bits - 1) {
    printf("%lld is too many, I can't count to 1 << %zd.\n", thismany,
           longlong_bits - 1);
    return 1;
  }
  thismany = 1LL << thismany;
  char *thesebytes = malloc(thismuch);
  if (thesebytes == NULL) {
    printf("No, can't allocate that %zu bytes.\n", thismuch);
  }
  printf("allocated %zd bytes at %p.\n", thismuch, (void *)thesebytes);
  printf("will walk %lld times.\n", thismany);
  memset(thesebytes, 0, thismuch);
  clock_gettime(CLOCK_REALTIME, &tbegin);
  for (long long l = 0; l < thismany; l++) {
    memset(thesebytes, l & 0xFF, thismuch);
  }
  clock_gettime(CLOCK_REALTIME, &tfinish);
  long diff_sec = (long)tfinish.tv_sec - (long)tbegin.tv_sec;
  long diff_nsec = (long)tfinish.tv_nsec - (long)tbegin.tv_nsec;
  double nanos = 1.0e9 * (double)diff_sec + (double)diff_nsec;
  double ops = (double)thismuch * (double)thismany;
  printf("%f ns/byte\n", nanos / ops);
  free(thesebytes);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11ad <main+0x3d>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13fd <main+0x28d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jg     11f0 <main+0x80>
mov    -0x48(%rbp),%rsi
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13fd <main+0x28d>
mov    -0x48(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
shl    $0xa,%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1070 <strtoll@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jg     1247 <main+0xd7>
mov    -0x40(%rbp),%rsi
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13fd <main+0x28d>
movq   $0x40,-0x50(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x50(%rbp),%rcx
sub    $0x1,%rcx
cmp    %rcx,%rax
jb     128a <main+0x11a>
mov    -0x40(%rbp),%rsi
mov    -0x50(%rbp),%rdx
sub    $0x1,%rdx
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13fd <main+0x28d>
mov    -0x40(%rbp),%rcx
mov    $0x1,%eax
shl    %cl,%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rdi
call   1090 <malloc@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    12c4 <main+0x154>
mov    -0x38(%rbp),%rsi
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%rsi
mov    -0x58(%rbp),%rdx
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%rsi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x58(%rbp),%rdi
mov    -0x38(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%esi
call   1060 <memset@plt>
mov    0x2cdc(%rip),%rax
mov    (%rax),%edi
lea    -0x20(%rbp),%rsi
call   1040 <clock_gettime@plt>
movq   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%rax
cmp    -0x40(%rbp),%rax
jge    134e <main+0x1de>
mov    -0x58(%rbp),%rdi
mov    -0x60(%rbp),%rsi
and    $0xff,%rsi
mov    -0x38(%rbp),%rdx
call   1060 <memset@plt>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    1317 <main+0x1a7>
mov    0x2c8b(%rip),%rax
mov    (%rax),%edi
lea    -0x30(%rbp),%rsi
call   1040 <clock_gettime@plt>
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x30(%rbp),%rax
mov    -0x20(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x70(%rbp)
cvtsi2sdq -0x68(%rbp),%xmm0
cvtsi2sdq -0x70(%rbp),%xmm1
movsd  0xc6e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movaps 0xc6a(%rip),%xmm1
movq   -0x38(%rbp),%xmm0
punpckldq %xmm1,%xmm0
movapd 0xc69(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdq -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
divsd  -0x80(%rbp),%xmm0
lea    0xd1f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x20,%rsp
cmp    $0x3,%edi
jne    11e8 <main+0x68>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %rax,%r12
test   %rax,%rax
jle    11fe <main+0x7e>
mov    0x10(%rbx),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1080 <strtoll@plt>
test   %rax,%rax
jle    120a <main+0x8a>
cmp    $0x3f,%rax
jb     1225 <main+0xa5>
lea    0xe9a(%rip),%rdi
mov    $0x3f,%edx
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%eax
jmp    1335 <main+0x1b5>
lea    0xf0b(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%eax
jmp    1335 <main+0x1b5>
lea    0xe2b(%rip),%rdi
mov    %r12,%rsi
jmp    1214 <main+0x94>
lea    0xe37(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%eax
jmp    1335 <main+0x1b5>
shl    $0xa,%r12
mov    $0x1,%r15d
mov    %eax,%ecx
shl    %cl,%r15
mov    %r12,%rdi
call   10a0 <malloc@plt>
mov    %rax,%r14
test   %rax,%rax
jne    1255 <main+0xd5>
lea    0xe4c(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe5f(%rip),%rdi
xor    %ebx,%ebx
mov    %r12,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe65(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1070 <memset@plt>
mov    0x2d50(%rip),%r13
mov    0x0(%r13),%edi
lea    0x10(%rsp),%rsi
call   1050 <clock_gettime@plt>
xchg   %ax,%ax
movzbl %bl,%esi
mov    %r14,%rdi
mov    %r12,%rdx
call   1070 <memset@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    12a0 <main+0x120>
mov    0x0(%r13),%edi
mov    %rsp,%rsi
call   1050 <clock_gettime@plt>
mov    (%rsp),%rax
mov    0x8(%rsp),%rcx
sub    0x18(%rsp),%rcx
sub    0x10(%rsp),%rax
cvtsi2sd %rcx,%xmm0
cvtsi2sd %rax,%xmm1
mulsd  0xd18(%rip),%xmm0
addsd  %xmm1,%xmm0
movq   %r12,%xmm1
punpckldq 0xd17(%rip),%xmm1
subpd  0xd1f(%rip),%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
addsd  %xmm1,%xmm2
xorps  %xmm1,%xmm1
cvtsi2sd %r15,%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
lea    0xdca(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.timespec = type { i64, i64 }
@.str = [23 x i8] c"I want two int parms.\0A\00"
@.str.1 = [24 x i8] c"Noooo %ld isn't right.\0A\00"
@.str.2 = [33 x i8] c"Noooo %lld isn't bigger than 0.\0A\00"
@.str.3 = [46 x i8] c"%lld is too many, I can't count to 1 << %zd.\0A\00"
@.str.4 = [36 x i8] c"No, can't allocate that %zu bytes.\0A\00"
@.str.5 = [28 x i8] c"allocated %zd bytes at %p.\0A\00"
@.str.6 = [23 x i8] c"will walk %lld times.\0A\00"
@CLOCK_REALTIME = global i32 0
@.str.7 = [12 x i8] c"%f ns/byte\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.timespec
%7 = alloca %struct.timespec
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca double
%17 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = load i32, i32* %4
%19 = icmp ne i32 %18, 3
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %118
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i64 @strtol(i8* %25, i32* null, i32 10)
store i64 %26, i64* %10
%27 = load i64, i64* %10
%28 = icmp sle i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %22
%30 = load i64, i64* %10
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i64 %30)
store i32 1, i32* %3
br label %118
32: ; preds = %22
%33 = load i64, i64* %10
store i64 %33, i64* %8
%34 = load i64, i64* %8
%35 = shl i64 %34, 10
store i64 %35, i64* %8
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 2
%38 = load i8*, i8** %37
%39 = call i64 @strtoll(i8* %38, i32* null, i32 10)
store i64 %39, i64* %9
%40 = load i64, i64* %9
%41 = icmp sle i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %32
%43 = load i64, i64* %9
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i64 %43)
store i32 1, i32* %3
br label %118
45: ; preds = %32
store i64 64, i64* %11
%46 = load i64, i64* %9
%47 = load i64, i64* %11
%48 = sub i64 %47, 1
%49 = icmp uge i64 %46, %48
br i1 %49, label %50, label %55
50: ; preds = %45
%51 = load i64, i64* %9
%52 = load i64, i64* %11
%53 = sub i64 %52, 1
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), i64 %51, i64 %53)
store i32 1, i32* %3
br label %118
55: ; preds = %45
%56 = load i64, i64* %9
%57 = shl i64 1, %56
store i64 %57, i64* %9
%58 = load i64, i64* %8
%59 = call i8* @malloc(i64 %58)
store i8* %59, i8** %12
%60 = load i8*, i8** %12
%61 = icmp eq i8* %60, null
br i1 %61, label %62, label %65
62: ; preds = %55
%63 = load i64, i64* %8
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i64 %63)
br label %65
65: ; preds = %62, %55
%66 = load i64, i64* %8
%67 = load i8*, i8** %12
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i64 %66, i8* %67)
%69 = load i64, i64* %9
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i64 %69)
%71 = load i8*, i8** %12
%72 = load i64, i64* %8
%73 = call i32 @memset(i8* %71, i64 0, i64 %72)
%74 = load i32, i32* @CLOCK_REALTIME
%75 = call i32 @clock_gettime(i32 %74, %struct.timespec* %6)
store i64 0, i64* %13
br label %76
76: ; preds = %86, %65
%77 = load i64, i64* %13
%78 = load i64, i64* %9
%79 = icmp slt i64 %77, %78
br i1 %79, label %80, label %89
80: ; preds = %76
%81 = load i8*, i8** %12
%82 = load i64, i64* %13
%83 = and i64 %82, 255
%84 = load i64, i64* %8
%85 = call i32 @memset(i8* %81, i64 %83, i64 %84)
br label %86
86: ; preds = %80
%87 = load i64, i64* %13
%88 = add nsw i64 %87, 1
store i64 %88, i64* %13
br label %76
89: ; preds = %76
%90 = load i32, i32* @CLOCK_REALTIME
%91 = call i32 @clock_gettime(i32 %90, %struct.timespec* %7)
%92 = getelementptr inbounds %struct.timespec, %struct.timespec* %7, i32 0, i32 1
%93 = load i64, i64* %92
%94 = getelementptr inbounds %struct.timespec, %struct.timespec* %6, i32 0, i32 1
%95 = load i64, i64* %94
%96 = sub nsw i64 %93, %95
store i64 %96, i64* %14
%97 = getelementptr inbounds %struct.timespec, %struct.timespec* %7, i32 0, i32 0
%98 = load i64, i64* %97
%99 = getelementptr inbounds %struct.timespec, %struct.timespec* %6, i32 0, i32 0
%100 = load i64, i64* %99
%101 = sub nsw i64 %98, %100
store i64 %101, i64* %15
%102 = load i64, i64* %14
%103 = sitofp i64 %102 to double
%104 = load i64, i64* %15
%105 = sitofp i64 %104 to double
%106 = call double @llvm.fmuladd.f64(double 1.000000e+09, double %103, double %105)
store double %106, double* %16
%107 = load i64, i64* %8
%108 = uitofp i64 %107 to double
%109 = load i64, i64* %9
%110 = sitofp i64 %109 to double
%111 = fmul double %108, %110
store double %111, double* %17
%112 = load double, double* %16
%113 = load double, double* %17
%114 = fdiv double %112, %113
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), double %114)
%116 = load i8*, i8** %12
%117 = call i32 @free(i8* %116)
store i32 0, i32* %3
br label %118
118: ; preds = %89, %50, %42, %29, %20
%119 = load i32, i32* %3
ret i32 %119
}

LLVM IR (-O2):
%struct.timespec = type { i64, i64 }
@.str.1 = [24 x i8] c"Noooo %ld isn't right.\0A\00"
@.str.2 = [33 x i8] c"Noooo %lld isn't bigger than 0.\0A\00"
@.str.3 = [46 x i8] c"%lld is too many, I can't count to 1 << %zd.\0A\00"
@.str.4 = [36 x i8] c"No, can't allocate that %zu bytes.\0A\00"
@.str.5 = [28 x i8] c"allocated %zd bytes at %p.\0A\00"
@.str.6 = [23 x i8] c"will walk %lld times.\0A\00"
@CLOCK_REALTIME = global i32 0
@.str.7 = [12 x i8] c"%f ns/byte\0A\00"
@str = [22 x i8] c"I want two int parms.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.timespec
%4 = alloca %struct.timespec
%5 = bitcast %struct.timespec* %3 to i8*
%6 = bitcast %struct.timespec* %4 to i8*
%7 = icmp eq i32 %0, 3
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
br label %69
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i64 @strtol(i8* nocapture %12, i32* null, i32 10)
%14 = icmp slt i64 %13, 1
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i64 %13)
br label %69
17: ; preds = %10
%18 = shl i64 %13, 10
%19 = getelementptr inbounds i8*, i8** %1, i64 2
%20 = load i8*, i8** %19
%21 = tail call i64 @strtoll(i8* nocapture %20, i32* null, i32 10)
%22 = icmp slt i64 %21, 1
br i1 %22, label %23, label %25
23: ; preds = %17
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i64 %21)
br label %69
25: ; preds = %17
%26 = icmp ugt i64 %21, 62
br i1 %26, label %27, label %29
27: ; preds = %25
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), i64 %21, i64 63)
br label %69
29: ; preds = %25
%30 = shl nuw nsw i64 1, %21
%31 = tail call i8* @malloc(i64 %18)
%32 = icmp eq i8* %31, null
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i64 %18)
br label %35
35: ; preds = %29, %33
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i64 %18, i8* %31)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i64 %30)
%38 = tail call i32 @memset(i8* %31, i64 0, i64 %18)
%39 = load i32, i32* @CLOCK_REALTIME
%40 = call i32 @clock_gettime(i32 %39, %struct.timespec* %3)
br label %63
41: ; preds = %63
%42 = load i32, i32* @CLOCK_REALTIME
%43 = call i32 @clock_gettime(i32 %42, %struct.timespec* %4)
%44 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i64 0, i32 1
%45 = load i64, i64* %44
%46 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i64 0, i32 1
%47 = load i64, i64* %46
%48 = sub nsw i64 %45, %47
%49 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i64 0, i32 0
%50 = load i64, i64* %49
%51 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i64 0, i32 0
%52 = load i64, i64* %51
%53 = sub nsw i64 %50, %52
%54 = sitofp i64 %48 to double
%55 = sitofp i64 %53 to double
%56 = call double @llvm.fmuladd.f64(double %54, double 1.000000e+09, double %55)
%57 = uitofp i64 %18 to double
%58 = sitofp i64 %30 to double
%59 = fmul double %57, %58
%60 = fdiv double %56, %59
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), double %60)
%62 = call i32 @free(i8* %31)
br label %69
63: ; preds = %35, %63
%64 = phi i64 [ %67, %63 ], [ 0, %35 ]
%65 = and i64 %64, 255
%66 = call i32 @memset(i8* %31, i64 %65, i64 %18)
%67 = add nuw nsw i64 %64, 1
%68 = icmp eq i64 %67, %30
br i1 %68, label %41, label %63
69: ; preds = %15, %23, %41, %27, %8
%70 = phi i32 [ 1, %8 ], [ 1, %15 ], [ 1, %23 ], [ 1, %27 ], [ 0, %41 ]
ret i32 %70
}