void dailyWeather2(int nSites, double latitudes[], double longitudes[],
                   int year, int month, int type, int printdebug) {
  char temp[4096], tempMo[5], systemCall[32784];
  int i;
  if (month < 10)
    sprintf(tempMo, "0%d", month);
  else
    sprintf(tempMo, "%d", month);
  if (type == 0)
    sprintf(temp, "%s%s%d%s.grb2", "griblargeC2//", "tmax//tmax.gdas.", year,
            tempMo);
  else if (type == 1)
    sprintf(temp, "%s%s%d%s.grb2", "griblargeC2//", "tmin//tmin.gdas.", year,
            tempMo);
  else if (type == 2)
    sprintf(temp, "%s%s%d%s.grb2", "griblargeC2//", "ppt//prate.gdas.", year,
            tempMo);
  sprintf(systemCall, "./wgrib2 %s", strdup(temp));
  for (i = 0; i < nSites; i++)
    sprintf(systemCall, "%s -lon %5.4f %5.4f", systemCall, longitudes[i],
            latitudes[i]);
  sprintf(systemCall,
          "%s | grep -o ',val=[\\-]*[0-9.0-9]\\{1,\\}[e]*[\\-]*[0-9]*'",
          systemCall);
  if (type == 0)
    sprintf(systemCall, "%s > temporary_dy//tmax//tmax_%d%s.txt", systemCall,
            year, tempMo);
  else if (type == 1)
    sprintf(systemCall, "%s > temporary_dy//tmin//tmin_%d%s.txt", systemCall,
            year, tempMo);
  else if (type == 2)
    sprintf(systemCall, "%s > temporary_dy//ppt//ppt_%d%s.txt", systemCall,
            year, tempMo);
  system(systemCall);
}


x86 assembly (clang, -O0):
<dailyWeather2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9060,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
cmpl   $0xa,-0x20(%rbp)
jge    117b <dailyWeather2+0x4b>
lea    -0x1035(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xe91(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    1193 <dailyWeather2+0x63>
lea    -0x1035(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xe75(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
cmpl   $0x0,-0x24(%rbp)
jne    11d0 <dailyWeather2+0xa0>
lea    -0x1030(%rbp),%rdi
mov    -0x1c(%rbp),%r8d
lea    -0x1035(%rbp),%r9
lea    0xe4e(%rip),%rsi
lea    0xe55(%rip),%rdx
lea    0xe5c(%rip),%rcx
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    124f <dailyWeather2+0x11f>
cmpl   $0x1,-0x24(%rbp)
jne    120d <dailyWeather2+0xdd>
lea    -0x1030(%rbp),%rdi
mov    -0x1c(%rbp),%r8d
lea    -0x1035(%rbp),%r9
lea    0xe11(%rip),%rsi
lea    0xe18(%rip),%rdx
lea    0xe30(%rip),%rcx
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    124a <dailyWeather2+0x11a>
cmpl   $0x2,-0x24(%rbp)
jne    1245 <dailyWeather2+0x115>
lea    -0x1030(%rbp),%rdi
mov    -0x1c(%rbp),%r8d
lea    -0x1035(%rbp),%r9
lea    0xdd4(%rip),%rsi
lea    0xddb(%rip),%rdx
lea    0xe04(%rip),%rcx
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    124a <dailyWeather2+0x11a>
jmp    124f <dailyWeather2+0x11f>
lea    -0x9050(%rbp),%rax
mov    %rax,-0x9060(%rbp)
lea    -0x1030(%rbp),%rdi
call   1050 <strdup@plt>
mov    -0x9060(%rbp),%rdi
mov    %rax,%rdx
lea    0xdd9(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
movl   $0x0,-0x9054(%rbp)
mov    -0x9054(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12ea <dailyWeather2+0x1ba>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
mov    -0x18(%rbp),%rax
movslq -0x9054(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x9054(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
lea    0xd90(%rip),%rsi
mov    $0x2,%al
call   1040 <sprintf@plt>
mov    -0x9054(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9054(%rbp)
jmp    128b <dailyWeather2+0x15b>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
lea    0xd74(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
cmpl   $0x0,-0x24(%rbp)
jne    133b <dailyWeather2+0x20b>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    -0x1035(%rbp),%r8
lea    0xd7c(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    13aa <dailyWeather2+0x27a>
cmpl   $0x1,-0x24(%rbp)
jne    1370 <dailyWeather2+0x240>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    -0x1035(%rbp),%r8
lea    0xd6e(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    13a5 <dailyWeather2+0x275>
cmpl   $0x2,-0x24(%rbp)
jne    13a0 <dailyWeather2+0x270>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    -0x1035(%rbp),%r8
lea    0xd60(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    13a5 <dailyWeather2+0x275>
jmp    13aa <dailyWeather2+0x27a>
lea    -0x9050(%rbp),%rdi
mov    $0x0,%al
call   1030 <system@plt>
add    $0x9060,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dailyWeather2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x9028,%rsp
mov    %r9d,%ebp
mov    %ecx,%ebx
mov    %rdx,%r13
mov    %rsi,%r14
mov    %edi,%r12d
cmp    $0xa,%r8d
lea    0xea6(%rip),%rax
lea    0xea0(%rip),%rsi
cmovl  %rax,%rsi
lea    0x7(%rsp),%rdi
mov    %r8d,%edx
xor    %eax,%eax
call   1040 <sprintf@plt>
test   %ebp,%ebp
je     118b <dailyWeather2+0x5b>
cmp    $0x1,%ebp
je     1194 <dailyWeather2+0x64>
cmp    $0x2,%ebp
jne    11bd <dailyWeather2+0x8d>
lea    0xeb9(%rip),%rcx
jmp    119b <dailyWeather2+0x6b>
lea    0xe8e(%rip),%rcx
jmp    119b <dailyWeather2+0x6b>
lea    0xe96(%rip),%rcx
lea    0xe62(%rip),%rsi
lea    0xe69(%rip),%rdx
lea    0x10(%rsp),%rdi
lea    0x7(%rsp),%r9
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    %ebp,0xc(%rsp)
mov    %ebx,(%rsp)
lea    0x10(%rsp),%rdi
call   1050 <strdup@plt>
lea    0xe7e(%rip),%rsi
lea    0x1010(%rsp),%rdi
mov    %rax,%rdx
xor    %eax,%eax
call   1040 <sprintf@plt>
test   %r12d,%r12d
jle    1236 <dailyWeather2+0x106>
mov    %r12d,%ebx
xor    %r15d,%r15d
lea    0xe66(%rip),%r12
lea    0x1010(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x0(%r13,%r15,8),%xmm0
movsd  (%r14,%r15,8),%xmm1
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
mov    $0x2,%al
call   1040 <sprintf@plt>
add    $0x1,%r15
cmp    %r15,%rbx
jne    1210 <dailyWeather2+0xe0>
lea    0xe36(%rip),%rsi
lea    0x1010(%rsp),%rdi
mov    %rdi,%rdx
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
je     126d <dailyWeather2+0x13d>
cmp    $0x1,%eax
je     1276 <dailyWeather2+0x146>
cmp    $0x2,%eax
mov    (%rsp),%ecx
jne    1297 <dailyWeather2+0x167>
lea    0xe8e(%rip),%rsi
jmp    1280 <dailyWeather2+0x150>
lea    0xe37(%rip),%rsi
jmp    127d <dailyWeather2+0x14d>
lea    0xe55(%rip),%rsi
mov    (%rsp),%ecx
lea    0x1010(%rsp),%rdi
lea    0x7(%rsp),%r8
mov    %rdi,%rdx
xor    %eax,%eax
call   1040 <sprintf@plt>
lea    0x1010(%rsp),%rdi
xor    %eax,%eax
call   1030 <system@plt>
add    $0x9028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"0%d\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [14 x i8] c"%s%s%d%s.grb2\00"
@.str.3 = [14 x i8] c"griblargeC2//\00"
@.str.4 = [17 x i8] c"tmax//tmax.gdas.\00"
@.str.5 = [17 x i8] c"tmin//tmin.gdas.\00"
@.str.6 = [17 x i8] c"ppt//prate.gdas.\00"
@.str.7 = [12 x i8] c"./wgrib2 %s\00"
@.str.8 = [20 x i8] c"%s -lon %5.4f %5.4f\00"
@.str.9 = [56 x i8] c"%s | grep -o ',val=[\\-]*[0-9.0-9]\\{1,\\}[e]*[\\-]*[0-9]*'\00"
@.str.10 = [39 x i8] c"%s > temporary_dy//tmax//tmax_%d%s.txt\00"
@.str.11 = [39 x i8] c"%s > temporary_dy//tmin//tmin_%d%s.txt\00"
@.str.12 = [37 x i8] c"%s > temporary_dy//ppt//ppt_%d%s.txt\00"
define void @dailyWeather2(i32 %0, double* %1, double* %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [4096 x i8]
%16 = alloca [5 x i8]
%17 = alloca [32784 x i8]
%18 = alloca i32
store i32 %0, i32* %8
store double* %1, double** %9
store double* %2, double** %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%19 = load i32, i32* %12
%20 = icmp slt i32 %19, 10
br i1 %20, label %21, label %25
21: ; preds = %7
%22 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%23 = load i32, i32* %12
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %23)
br label %29
25: ; preds = %7
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%27 = load i32, i32* %12
%28 = call i32 (i8*, i8*, ...) @sprintf(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %27)
br label %29
29: ; preds = %25, %21
%30 = load i32, i32* %13
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = getelementptr inbounds [4096 x i8], [4096 x i8]* %15, i64 0, i64 0
%34 = load i32, i32* %11
%35 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%36 = call i32 (i8*, i8*, ...) @sprintf(i8* %33, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %34, i8* %35)
br label %55
37: ; preds = %29
%38 = load i32, i32* %13
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %45
40: ; preds = %37
%41 = getelementptr inbounds [4096 x i8], [4096 x i8]* %15, i64 0, i64 0
%42 = load i32, i32* %11
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%44 = call i32 (i8*, i8*, ...) @sprintf(i8* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %42, i8* %43)
br label %54
45: ; preds = %37
%46 = load i32, i32* %13
%47 = icmp eq i32 %46, 2
br i1 %47, label %48, label %53
48: ; preds = %45
%49 = getelementptr inbounds [4096 x i8], [4096 x i8]* %15, i64 0, i64 0
%50 = load i32, i32* %11
%51 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%52 = call i32 (i8*, i8*, ...) @sprintf(i8* %49, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %50, i8* %51)
br label %53
53: ; preds = %48, %45
br label %54
54: ; preds = %53, %40
br label %55
55: ; preds = %54, %32
%56 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%57 = getelementptr inbounds [4096 x i8], [4096 x i8]* %15, i64 0, i64 0
%58 = call i8* @strdup(i8* %57)
%59 = call i32 (i8*, i8*, ...) @sprintf(i8* %56, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %58)
store i32 0, i32* %18
br label %60
60: ; preds = %78, %55
%61 = load i32, i32* %18
%62 = load i32, i32* %8
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %81
64: ; preds = %60
%65 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%66 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%67 = load double*, double** %10
%68 = load i32, i32* %18
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %67, i64 %69
%71 = load double, double* %70
%72 = load double*, double** %9
%73 = load i32, i32* %18
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
%76 = load double, double* %75
%77 = call i32 (i8*, i8*, ...) @sprintf(i8* %65, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* %66, double %71, double %76)
br label %78
78: ; preds = %64
%79 = load i32, i32* %18
%80 = add nsw i32 %79, 1
store i32 %80, i32* %18
br label %60
81: ; preds = %60
%82 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%83 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%84 = call i32 (i8*, i8*, ...) @sprintf(i8* %82, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0), i8* %83)
%85 = load i32, i32* %13
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %93
87: ; preds = %81
%88 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%89 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%90 = load i32, i32* %11
%91 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%92 = call i32 (i8*, i8*, ...) @sprintf(i8* %88, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), i8* %89, i32 %90, i8* %91)
br label %113
93: ; preds = %81
%94 = load i32, i32* %13
%95 = icmp eq i32 %94, 1
br i1 %95, label %96, label %102
96: ; preds = %93
%97 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%98 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%99 = load i32, i32* %11
%100 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%101 = call i32 (i8*, i8*, ...) @sprintf(i8* %97, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.11, i64 0, i64 0), i8* %98, i32 %99, i8* %100)
br label %112
102: ; preds = %93
%103 = load i32, i32* %13
%104 = icmp eq i32 %103, 2
br i1 %104, label %105, label %111
105: ; preds = %102
%106 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%107 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%108 = load i32, i32* %11
%109 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%110 = call i32 (i8*, i8*, ...) @sprintf(i8* %106, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i8* %107, i32 %108, i8* %109)
br label %111
111: ; preds = %105, %102
br label %112
112: ; preds = %111, %96
br label %113
113: ; preds = %112, %87
%114 = getelementptr inbounds [32784 x i8], [32784 x i8]* %17, i64 0, i64 0
%115 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %114)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"0%d\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [14 x i8] c"%s%s%d%s.grb2\00"
@.str.3 = [14 x i8] c"griblargeC2//\00"
@.str.4 = [17 x i8] c"tmax//tmax.gdas.\00"
@.str.5 = [17 x i8] c"tmin//tmin.gdas.\00"
@.str.6 = [17 x i8] c"ppt//prate.gdas.\00"
@.str.7 = [12 x i8] c"./wgrib2 %s\00"
@.str.8 = [20 x i8] c"%s -lon %5.4f %5.4f\00"
@.str.9 = [56 x i8] c"%s | grep -o ',val=[\\-]*[0-9.0-9]\\{1,\\}[e]*[\\-]*[0-9]*'\00"
@.str.10 = [39 x i8] c"%s > temporary_dy//tmax//tmax_%d%s.txt\00"
@.str.11 = [39 x i8] c"%s > temporary_dy//tmin//tmin_%d%s.txt\00"
@.str.12 = [37 x i8] c"%s > temporary_dy//ppt//ppt_%d%s.txt\00"
define void @dailyWeather2(i32 %0, double* nocapture %1, double* nocapture %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca [4096 x i8]
%9 = alloca [5 x i8]
%10 = alloca [32784 x i8]
%11 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%12 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%13 = getelementptr inbounds [32784 x i8], [32784 x i8]* %10, i64 0, i64 0
%14 = icmp slt i32 %4, 10
%15 = select i1 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%16 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* dereferenceable(1) %15, i32 %4)
%17 = icmp eq i32 %5, 0
br i1 %17, label %20, label %18
18: ; preds = %7
switch i32 %5, label %23 [
i32 1, label %20
i32 2, label %19
]
19: ; preds = %18
br label %20
20: ; preds = %18, %7, %19
%21 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), %19 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), %7 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), %18 ]
%22 = call i32 (i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %21, i32 %3, i8* %12)
br label %23
23: ; preds = %20, %18
%24 = call i8* @strdup(i8* %11)
%25 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %24)
%26 = icmp sgt i32 %0, 0
br i1 %26, label %27, label %38
27: ; preds = %23
%28 = zext i32 %0 to i64
br label %29
29: ; preds = %27, %29
%30 = phi i64 [ 0, %27 ], [ %36, %29 ]
%31 = getelementptr inbounds double, double* %2, i64 %30
%32 = load double, double* %31
%33 = getelementptr inbounds double, double* %1, i64 %30
%34 = load double, double* %33
%35 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* %13, double %32, double %34)
%36 = add nuw nsw i64 %30, 1
%37 = icmp eq i64 %36, %28
br i1 %37, label %38, label %29
38: ; preds = %29, %23
%39 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0), i8* %13)
br i1 %17, label %42, label %40
40: ; preds = %38
switch i32 %5, label %45 [
i32 1, label %42
i32 2, label %41
]
41: ; preds = %40
br label %42
42: ; preds = %40, %38, %41
%43 = phi i8* [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), %41 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), %38 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.11, i64 0, i64 0), %40 ]
%44 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) %43, i8* %13, i32 %3, i8* %12)
br label %45
45: ; preds = %42, %40
%46 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %13)
ret void
}