void dailyWeather2(int nSites, double latitudes[], double longitudes[],
                   int year, int month, int type) {
  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);
  callSystem(systemCall);
}


x86 assembly (clang, -O0):
<dailyWeather2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9060,%rsp
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    1178 <dailyWeather2+0x48>
lea    -0x1035(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xe94(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    1190 <dailyWeather2+0x60>
lea    -0x1035(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xe78(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
cmpl   $0x0,-0x24(%rbp)
jne    11cd <dailyWeather2+0x9d>
lea    -0x1030(%rbp),%rdi
mov    -0x1c(%rbp),%r8d
lea    -0x1035(%rbp),%r9
lea    0xe51(%rip),%rsi
lea    0xe58(%rip),%rdx
lea    0xe5f(%rip),%rcx
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    124c <dailyWeather2+0x11c>
cmpl   $0x1,-0x24(%rbp)
jne    120a <dailyWeather2+0xda>
lea    -0x1030(%rbp),%rdi
mov    -0x1c(%rbp),%r8d
lea    -0x1035(%rbp),%r9
lea    0xe14(%rip),%rsi
lea    0xe1b(%rip),%rdx
lea    0xe33(%rip),%rcx
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    1247 <dailyWeather2+0x117>
cmpl   $0x2,-0x24(%rbp)
jne    1242 <dailyWeather2+0x112>
lea    -0x1030(%rbp),%rdi
mov    -0x1c(%rbp),%r8d
lea    -0x1035(%rbp),%r9
lea    0xdd7(%rip),%rsi
lea    0xdde(%rip),%rdx
lea    0xe07(%rip),%rcx
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    1247 <dailyWeather2+0x117>
jmp    124c <dailyWeather2+0x11c>
lea    -0x9050(%rbp),%rax
mov    %rax,-0x9060(%rbp)
lea    -0x1030(%rbp),%rdi
call   1050 <strdup@plt>
mov    -0x9060(%rbp),%rdi
mov    %rax,%rdx
lea    0xddc(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
movl   $0x0,-0x9054(%rbp)
mov    -0x9054(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12e7 <dailyWeather2+0x1b7>
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    0xd93(%rip),%rsi
mov    $0x2,%al
call   1040 <sprintf@plt>
mov    -0x9054(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9054(%rbp)
jmp    1288 <dailyWeather2+0x158>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
lea    0xd77(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
cmpl   $0x0,-0x24(%rbp)
jne    1338 <dailyWeather2+0x208>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    -0x1035(%rbp),%r8
lea    0xd7f(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    13a7 <dailyWeather2+0x277>
cmpl   $0x1,-0x24(%rbp)
jne    136d <dailyWeather2+0x23d>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    -0x1035(%rbp),%r8
lea    0xd71(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    13a2 <dailyWeather2+0x272>
cmpl   $0x2,-0x24(%rbp)
jne    139d <dailyWeather2+0x26d>
lea    -0x9050(%rbp),%rdi
lea    -0x9050(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    -0x1035(%rbp),%r8
lea    0xd63(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
jmp    13a2 <dailyWeather2+0x272>
jmp    13a7 <dailyWeather2+0x277>
lea    -0x9050(%rbp),%rdi
mov    $0x0,%al
call   1030 <callSystem@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 <callSystem@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) {
%7 = alloca i32
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [4096 x i8]
%14 = alloca [5 x i8]
%15 = alloca [32784 x i8]
%16 = alloca i32
store i32 %0, i32* %7
store double* %1, double** %8
store double* %2, double** %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%17 = load i32, i32* %11
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %23
19: ; preds = %6
%20 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%21 = load i32, i32* %11
%22 = call i32 (i8*, i8*, ...) @sprintf(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %21)
br label %27
23: ; preds = %6
%24 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%25 = load i32, i32* %11
%26 = call i32 (i8*, i8*, ...) @sprintf(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %25)
br label %27
27: ; preds = %23, %19
%28 = load i32, i32* %12
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = getelementptr inbounds [4096 x i8], [4096 x i8]* %13, i64 0, i64 0
%32 = load i32, i32* %10
%33 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%34 = call i32 (i8*, i8*, ...) @sprintf(i8* %31, 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 %32, i8* %33)
br label %53
35: ; preds = %27
%36 = load i32, i32* %12
%37 = icmp eq i32 %36, 1
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = getelementptr inbounds [4096 x i8], [4096 x i8]* %13, i64 0, i64 0
%40 = load i32, i32* %10
%41 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%42 = call i32 (i8*, i8*, ...) @sprintf(i8* %39, 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 %40, i8* %41)
br label %52
43: ; preds = %35
%44 = load i32, i32* %12
%45 = icmp eq i32 %44, 2
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = getelementptr inbounds [4096 x i8], [4096 x i8]* %13, i64 0, i64 0
%48 = load i32, i32* %10
%49 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%50 = call i32 (i8*, i8*, ...) @sprintf(i8* %47, 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 %48, i8* %49)
br label %51
51: ; preds = %46, %43
br label %52
52: ; preds = %51, %38
br label %53
53: ; preds = %52, %30
%54 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%55 = getelementptr inbounds [4096 x i8], [4096 x i8]* %13, i64 0, i64 0
%56 = call i8* @strdup(i8* %55)
%57 = call i32 (i8*, i8*, ...) @sprintf(i8* %54, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %56)
store i32 0, i32* %16
br label %58
58: ; preds = %76, %53
%59 = load i32, i32* %16
%60 = load i32, i32* %7
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %79
62: ; preds = %58
%63 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%64 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%65 = load double*, double** %9
%66 = load i32, i32* %16
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
%69 = load double, double* %68
%70 = load double*, double** %8
%71 = load i32, i32* %16
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %70, i64 %72
%74 = load double, double* %73
%75 = call i32 (i8*, i8*, ...) @sprintf(i8* %63, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* %64, double %69, double %74)
br label %76
76: ; preds = %62
%77 = load i32, i32* %16
%78 = add nsw i32 %77, 1
store i32 %78, i32* %16
br label %58
79: ; preds = %58
%80 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%81 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%82 = call i32 (i8*, i8*, ...) @sprintf(i8* %80, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0), i8* %81)
%83 = load i32, i32* %12
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %91
85: ; preds = %79
%86 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%87 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%88 = load i32, i32* %10
%89 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%90 = call i32 (i8*, i8*, ...) @sprintf(i8* %86, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), i8* %87, i32 %88, i8* %89)
br label %111
91: ; preds = %79
%92 = load i32, i32* %12
%93 = icmp eq i32 %92, 1
br i1 %93, label %94, label %100
94: ; preds = %91
%95 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%96 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%97 = load i32, i32* %10
%98 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%99 = call i32 (i8*, i8*, ...) @sprintf(i8* %95, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.11, i64 0, i64 0), i8* %96, i32 %97, i8* %98)
br label %110
100: ; preds = %91
%101 = load i32, i32* %12
%102 = icmp eq i32 %101, 2
br i1 %102, label %103, label %109
103: ; preds = %100
%104 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%105 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%106 = load i32, i32* %10
%107 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%108 = call i32 (i8*, i8*, ...) @sprintf(i8* %104, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i8* %105, i32 %106, i8* %107)
br label %109
109: ; preds = %103, %100
br label %110
110: ; preds = %109, %94
br label %111
111: ; preds = %110, %85
%112 = getelementptr inbounds [32784 x i8], [32784 x i8]* %15, i64 0, i64 0
%113 = call i32 (i8*, ...) bitcast (i32 (...)* @callSystem to i32 (i8*, ...)*)(i8* %112)
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) {
%7 = alloca [4096 x i8]
%8 = alloca [5 x i8]
%9 = alloca [32784 x i8]
%10 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%12 = getelementptr inbounds [32784 x i8], [32784 x i8]* %9, i64 0, i64 0
%13 = icmp slt i32 %4, 10
%14 = select i1 %13, 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)
%15 = call i32 (i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) %14, i32 %4)
%16 = icmp eq i32 %5, 0
br i1 %16, label %19, label %17
17: ; preds = %6
switch i32 %5, label %22 [
i32 1, label %19
i32 2, label %18
]
18: ; preds = %17
br label %19
19: ; preds = %17, %6, %18
%20 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), %18 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), %6 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), %17 ]
%21 = call i32 (i8*, i8*, ...) @sprintf(i8* %10, 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* %20, i32 %3, i8* %11)
br label %22
22: ; preds = %19, %17
%23 = call i8* @strdup(i8* %10)
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %23)
%25 = icmp sgt i32 %0, 0
br i1 %25, label %26, label %37
26: ; preds = %22
%27 = zext i32 %0 to i64
br label %28
28: ; preds = %26, %28
%29 = phi i64 [ 0, %26 ], [ %35, %28 ]
%30 = getelementptr inbounds double, double* %2, i64 %29
%31 = load double, double* %30
%32 = getelementptr inbounds double, double* %1, i64 %29
%33 = load double, double* %32
%34 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* %12, double %31, double %33)
%35 = add nuw nsw i64 %29, 1
%36 = icmp eq i64 %35, %27
br i1 %36, label %37, label %28
37: ; preds = %28, %22
%38 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0), i8* %12)
br i1 %16, label %41, label %39
39: ; preds = %37
switch i32 %5, label %44 [
i32 1, label %41
i32 2, label %40
]
40: ; preds = %39
br label %41
41: ; preds = %39, %37, %40
%42 = phi i8* [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), %40 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), %37 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.11, i64 0, i64 0), %39 ]
%43 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* dereferenceable(1) %42, i8* %12, i32 %3, i8* %11)
br label %44
44: ; preds = %41, %39
%45 = call i32 (i8*, ...) bitcast (i32 (...)* @callSystem to i32 (i8*, ...)*)(i8* %12)
ret void
}