#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 timeval {
  double tv_sec;
  scalar_t__ tv_usec;
};
typedef int /*<<< orphan*/ rb;
typedef int /*<<< orphan*/ SHA_CTX;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ SHA1_Final(unsigned char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ SHA1_Update(int /*<<< orphan*/ *, unsigned char *, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double);
int /*<<< orphan*/ fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(unsigned char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
scalar_t__ fwrite(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(unsigned char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strlen(unsigned char *);
int Sha1Digest(const char *rf, const char *wf, SHA_CTX *c) {
  struct timeval st, ft;
  gettimeofday(&st, NULL);
  int r = 0, len = 0;
  unsigned char *wb, *rb;
  FILE *i = fopen(rf, "rb"), *o = fopen(wf, "wb"), *t = 0;
  if (i && o) {
    printf("Creating Sha1 Digest for in message %s to out message %s\n", rf,
           wf);
    fseek(i, 0, SEEK_END);
    len = ftell(i);
    fseek(i, 0, SEEK_SET);
    printf("Length: %i\n", len);
    rb = (unsigned char *)malloc(20);
    wb = (unsigned char *)malloc(20);
    int rbs = 0, wbs = 0, len = 0;
    while (feof(i) == 0) {
      memset(rb, 0, 20);
      memset(wb, 0, 20);
      fread(rb, 1, 20, i);
      rbs += strlen(rb);
      SHA1_Update(c, rb, sizeof(rb));
      SHA1_Final(wb, c);
      wbs += fwrite(wb, 1, 20, o);
    }
    free(rb);
    free(wb);
    fclose(i);
    fclose(o);
    gettimeofday(&ft, NULL);
    double us = ((ft.tv_sec - st.tv_sec) * 1000000.0) +
                ((double)(ft.tv_usec - st.tv_usec));
    t = fopen("../doc/sha_us.txt", "a");
    fprintf(t, "digest: %f us\n", us);
    fclose(t);
  } else {
    printf("I/O error\n");
    r = 1;
  }
  return r;
}


x86 assembly (clang, -O0):
<Sha1Digest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x28(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1080 <gettimeofday@plt>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdcb(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xdba(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     1443 <Sha1Digest+0x243>
cmpq   $0x0,-0x60(%rbp)
je     1443 <Sha1Digest+0x243>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xd87(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x58(%rbp),%rdi
mov    0x2d4f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10f0 <fseek@plt>
mov    -0x58(%rbp),%rdi
call   10b0 <ftell@plt>
mov    %eax,-0x40(%rbp)
mov    -0x58(%rbp),%rdi
mov    0x2d1f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10f0 <fseek@plt>
mov    -0x40(%rbp),%esi
lea    0xd7c(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x14,%edi
call   10d0 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    $0x14,%edi
call   10d0 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x0,-0x70(%rbp)
movl   $0x0,-0x74(%rbp)
mov    -0x58(%rbp),%rdi
call   10c0 <feof@plt>
cmp    $0x0,%rax
jne    13ac <Sha1Digest+0x1ac>
mov    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1090 <memset@plt>
mov    -0x48(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1090 <memset@plt>
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rcx
mov    $0x1,%esi
mov    $0x14,%edx
call   1040 <fread@plt>
mov    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    %rax,%rcx
movslq -0x6c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x6c(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    $0x8,%edx
call   10e0 <SHA1_Update@plt>
mov    -0x48(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1120 <SHA1_Final@plt>
mov    -0x48(%rbp),%rdi
mov    -0x60(%rbp),%rcx
mov    $0x1,%esi
mov    $0x14,%edx
call   1110 <fwrite@plt>
mov    %rax,%rcx
movslq -0x70(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x70(%rbp)
jmp    1304 <Sha1Digest+0x104>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x60(%rbp),%rdi
call   1050 <fclose@plt>
lea    -0x38(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1080 <gettimeofday@plt>
movsd  -0x38(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
mov    -0x30(%rbp),%rax
sub    -0x20(%rbp),%rax
cvtsi2sd %rax,%xmm1
movsd  0xc04(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
lea    0xc44(%rip),%rdi
lea    0xc4f(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
movsd  -0x80(%rbp),%xmm0
lea    0xc38(%rip),%rsi
call   10a0 <fprintf@plt>
mov    -0x68(%rbp),%rdi
call   1050 <fclose@plt>
jmp    1458 <Sha1Digest+0x258>
lea    0xc2d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Sha1Digest>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%rbp
lea    0x18(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
lea    0xdde(%rip),%rsi
mov    %rbp,%rdi
call   1100 <fopen@plt>
mov    %rax,%r13
lea    0xdcf(%rip),%rsi
mov    %rbx,%rdi
call   1100 <fopen@plt>
test   %r13,%r13
je     1342 <Sha1Digest+0x142>
mov    %rax,%r12
test   %rax,%rax
je     1342 <Sha1Digest+0x142>
lea    0xdae(%rip),%rdi
xor    %r14d,%r14d
mov    %rbp,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
xor    %esi,%esi
call   10f0 <fseek@plt>
mov    %r13,%rdi
call   10b0 <ftell@plt>
mov    %eax,%ebx
mov    0x2d44(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
xor    %esi,%esi
call   10f0 <fseek@plt>
lea    0xda1(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x14,%edi
call   10d0 <malloc@plt>
mov    %rax,%rbx
mov    $0x14,%edi
call   10d0 <malloc@plt>
mov    %rax,%rbp
nopw   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   10c0 <feof@plt>
test   %rax,%rax
jne    1359 <Sha1Digest+0x159>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1090 <memset@plt>
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1090 <memset@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    %r13,%rcx
call   1050 <fread@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x8,%edx
call   10e0 <SHA1_Update@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1120 <SHA1_Final@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    %r12,%rcx
call   1110 <fwrite@plt>
jmp    12d0 <Sha1Digest+0xd0>
lea    0xd2e(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%r14d
jmp    13e3 <Sha1Digest+0x1e3>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1060 <fclose@plt>
mov    %r12,%rdi
call   1060 <fclose@plt>
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
movsd  0x8(%rsp),%xmm1
subsd  0x18(%rsp),%xmm1
mov    0x10(%rsp),%rax
sub    0x20(%rsp),%rax
cvtsi2sd %rax,%xmm0
mulsd  0xc58(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
lea    0xc9c(%rip),%rdi
lea    0xca7(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,%rbx
lea    0xc9a(%rip),%rsi
mov    %rax,%rdi
movsd  (%rsp),%xmm0
call   10a0 <fprintf@plt>
mov    %rbx,%rdi
call   1060 <fclose@plt>
mov    %r14d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { double, i64 }
@.str = [3 x i8] c"rb\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [58 x i8] c"Creating Sha1 Digest for in message %s to out message %s\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.3 = [12 x i8] c"Length: %i\0A\00"
@.str.4 = [18 x i8] c"../doc/sha_us.txt\00"
@.str.5 = [2 x i8] c"a\00"
@.str.6 = [15 x i8] c"digest: %f us\0A\00"
@.str.7 = [11 x i8] c"I/O error\0A\00"
define i32 @Sha1Digest(i8* %0, i8* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca %struct.timeval
%8 = alloca %struct.timeval
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca double
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32* %2, i32** %6
%20 = call i32 @gettimeofday(%struct.timeval* %7, i32* null)
store i32 0, i32* %9
store i32 0, i32* %10
%21 = load i8*, i8** %4
%22 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %22, i32** %13
%23 = load i8*, i8** %5
%24 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %24, i32** %14
store i32* null, i32** %15
%25 = load i32*, i32** %13
%26 = icmp ne i32* %25, null
br i1 %26, label %27, label %107
27: ; preds = %3
%28 = load i32*, i32** %14
%29 = icmp ne i32* %28, null
br i1 %29, label %30, label %107
30: ; preds = %27
%31 = load i8*, i8** %4
%32 = load i8*, i8** %5
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i8* %31, i8* %32)
%34 = load i32*, i32** %13
%35 = load i32, i32* @SEEK_END
%36 = call i32 @fseek(i32* %34, i32 0, i32 %35)
%37 = load i32*, i32** %13
%38 = call i32 @ftell(i32* %37)
store i32 %38, i32* %10
%39 = load i32*, i32** %13
%40 = load i32, i32* @SEEK_SET
%41 = call i32 @fseek(i32* %39, i32 0, i32 %40)
%42 = load i32, i32* %10
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %42)
%44 = call i64 @malloc(i32 20)
%45 = inttoptr i64 %44 to i8*
store i8* %45, i8** %12
%46 = call i64 @malloc(i32 20)
%47 = inttoptr i64 %46 to i8*
store i8* %47, i8** %11
store i32 0, i32* %16
store i32 0, i32* %17
store i32 0, i32* %18
br label %48
48: ; preds = %52, %30
%49 = load i32*, i32** %13
%50 = call i64 @feof(i32* %49)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %79
52: ; preds = %48
%53 = load i8*, i8** %12
%54 = call i32 @memset(i8* %53, i32 0, i32 20)
%55 = load i8*, i8** %11
%56 = call i32 @memset(i8* %55, i32 0, i32 20)
%57 = load i8*, i8** %12
%58 = load i32*, i32** %13
%59 = call i32 @fread(i8* %57, i32 1, i32 20, i32* %58)
%60 = load i8*, i8** %12
%61 = call i64 @strlen(i8* %60)
%62 = load i32, i32* %16
%63 = sext i32 %62 to i64
%64 = add nsw i64 %63, %61
%65 = trunc i64 %64 to i32
store i32 %65, i32* %16
%66 = load i32*, i32** %6
%67 = load i8*, i8** %12
%68 = call i32 @SHA1_Update(i32* %66, i8* %67, i32 8)
%69 = load i8*, i8** %11
%70 = load i32*, i32** %6
%71 = call i32 @SHA1_Final(i8* %69, i32* %70)
%72 = load i8*, i8** %11
%73 = load i32*, i32** %14
%74 = call i64 @fwrite(i8* %72, i32 1, i32 20, i32* %73)
%75 = load i32, i32* %17
%76 = sext i32 %75 to i64
%77 = add nsw i64 %76, %74
%78 = trunc i64 %77 to i32
store i32 %78, i32* %17
br label %48
79: ; preds = %48
%80 = load i8*, i8** %12
%81 = call i32 @free(i8* %80)
%82 = load i8*, i8** %11
%83 = call i32 @free(i8* %82)
%84 = load i32*, i32** %13
%85 = call i32 @fclose(i32* %84)
%86 = load i32*, i32** %14
%87 = call i32 @fclose(i32* %86)
%88 = call i32 @gettimeofday(%struct.timeval* %8, i32* null)
%89 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i32 0, i32 0
%90 = load double, double* %89
%91 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i32 0, i32 0
%92 = load double, double* %91
%93 = fsub double %90, %92
%94 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i32 0, i32 1
%95 = load i64, i64* %94
%96 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i32 0, i32 1
%97 = load i64, i64* %96
%98 = sub nsw i64 %95, %97
%99 = sitofp i64 %98 to double
%100 = call double @llvm.fmuladd.f64(double %93, double 1.000000e+06, double %99)
store double %100, double* %19
%101 = call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %101, i32** %15
%102 = load i32*, i32** %15
%103 = load double, double* %19
%104 = call i32 @fprintf(i32* %102, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), double %103)
%105 = load i32*, i32** %15
%106 = call i32 @fclose(i32* %105)
br label %109
107: ; preds = %27, %3
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %9
br label %109
109: ; preds = %107, %79
%110 = load i32, i32* %9
ret i32 %110
}

LLVM IR (-O2):
%struct.timeval = type { double, i64 }
@.str = [3 x i8] c"rb\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [58 x i8] c"Creating Sha1 Digest for in message %s to out message %s\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.3 = [12 x i8] c"Length: %i\0A\00"
@.str.4 = [18 x i8] c"../doc/sha_us.txt\00"
@.str.5 = [2 x i8] c"a\00"
@.str.6 = [15 x i8] c"digest: %f us\0A\00"
@str = [10 x i8] c"I/O error\00"
define i32 @Sha1Digest(i8* %0, i8* %1, i32* %2) {
%4 = alloca %struct.timeval
%5 = alloca %struct.timeval
%6 = bitcast %struct.timeval* %4 to i8*
%7 = bitcast %struct.timeval* %5 to i8*
%8 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
%9 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp ne i32* %9, null
%12 = icmp ne i32* %10, null
%13 = and i1 %11, %12
br i1 %13, label %14, label %58
14: ; preds = %3
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %1)
%16 = load i32, i32* @SEEK_END
%17 = tail call i32 @fseek(i32* %9, i32 0, i32 %16)
%18 = tail call i32 @ftell(i32* %9)
%19 = load i32, i32* @SEEK_SET
%20 = tail call i32 @fseek(i32* %9, i32 0, i32 %19)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %18)
%22 = tail call i64 @malloc(i32 20)
%23 = inttoptr i64 %22 to i8*
%24 = tail call i64 @malloc(i32 20)
%25 = inttoptr i64 %24 to i8*
%26 = tail call i64 @feof(i32* %9)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %37
28: ; preds = %14, %28
%29 = tail call i32 @memset(i8* %23, i32 0, i32 20)
%30 = tail call i32 @memset(i8* %25, i32 0, i32 20)
%31 = tail call i32 @fread(i8* %23, i32 1, i32 20, i32* %9)
%32 = tail call i32 @SHA1_Update(i32* %2, i8* %23, i32 8)
%33 = tail call i32 @SHA1_Final(i8* %25, i32* %2)
%34 = tail call i64 @fwrite(i8* %25, i32 1, i32 20, i32* %10)
%35 = tail call i64 @feof(i32* %9)
%36 = icmp eq i64 %35, 0
br i1 %36, label %28, label %37
37: ; preds = %28, %14
%38 = tail call i32 @free(i8* %23)
%39 = tail call i32 @free(i8* %25)
%40 = tail call i32 @fclose(i32* %9)
%41 = tail call i32 @fclose(i32* %10)
%42 = call i32 @gettimeofday(%struct.timeval* %5, i32* null)
%43 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 0
%44 = load double, double* %43
%45 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%46 = load double, double* %45
%47 = fsub double %44, %46
%48 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 1
%49 = load i64, i64* %48
%50 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 1
%51 = load i64, i64* %50
%52 = sub nsw i64 %49, %51
%53 = sitofp i64 %52 to double
%54 = tail call double @llvm.fmuladd.f64(double %47, double 1.000000e+06, double %53)
%55 = tail call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%56 = tail call i32 @fprintf(i32* %55, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), double %54)
%57 = tail call i32 @fclose(i32* %55)
br label %60
58: ; preds = %3
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
br label %60
60: ; preds = %58, %37
%61 = phi i32 [ 0, %37 ], [ 1, %58 ]
ret i32 %61
}