#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*/ printf(char *, int, char *, int);
int sprintf(char *, char *, int);
int main(void) {
  int res = 0;
  char buf[100];
  if (sprintf(buf, "%d", -1) != 2) {
    printf("test %d failed (\"%s\",  %d)\n", 1, buf, 2);
    res = 1;
  };
  if (sprintf(buf, "% 2d", 1) != 2) {
    printf("test %d failed (\"%s\",  %d)\n", 2, buf, 2);
    res = 1;
  };
  if (sprintf(buf, "%#x", 1) != 3) {
    printf("test %d failed (\"%s\",  %d)\n", 3, buf, 3);
    res = 1;
  };
  if (sprintf(buf, "%+d", 1) != 2) {
    printf("test %d failed (\"%s\",  %d)\n", 4, buf, 2);
    res = 1;
  };
  if (sprintf(buf, "% d", 1) != 2) {
    printf("test %d failed (\"%s\",  %d)\n", 5, buf, 2);
    res = 1;
  };
  if (sprintf(buf, "%-d", -1) != 2) {
    printf("test %d failed (\"%s\",  %d)\n", 6, buf, 2);
    res = 1;
  };
  if (sprintf(buf, "%- 2d", 1) != 2) {
    printf("test %d failed (\"%s\",  %d)\n", 7, buf, 2);
    res = 1;
  };
  if (sprintf(buf, "%-#x", 1) != 3) {
    printf("test %d failed (\"%s\",  %d)\n", 8, buf, 3);
    res = 1;
  };
  if (sprintf(buf, "%-+d", 1) != 2) {
    printf("test %d failed (\"%s\",  %d)\n", 9, buf, 2);
    res = 1;
  };
  if (sprintf(buf, "%- d", 1) != 2) {
    printf("test %d failed (\"%s\",  %d)\n", 10, buf, 2);
    res = 1;
  };
  return res;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xebf(%rip),%rsi
mov    $0xffffffff,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     1175 <main+0x55>
lea    -0x70(%rbp),%rdx
lea    0xea4(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xe9f(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     11b1 <main+0x91>
lea    -0x70(%rbp),%rdx
lea    0xe65(%rip),%rdi
mov    $0x2,%ecx
mov    %ecx,%esi
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xe68(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x3,%eax
je     11ed <main+0xcd>
lea    -0x70(%rbp),%rdx
lea    0xe29(%rip),%rdi
mov    $0x3,%ecx
mov    %ecx,%esi
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xe30(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     122c <main+0x10c>
lea    -0x70(%rbp),%rdx
lea    0xded(%rip),%rdi
mov    $0x4,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xdf5(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     126b <main+0x14b>
lea    -0x70(%rbp),%rdx
lea    0xdae(%rip),%rdi
mov    $0x5,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xdba(%rip),%rsi
mov    $0xffffffff,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     12aa <main+0x18a>
lea    -0x70(%rbp),%rdx
lea    0xd6f(%rip),%rdi
mov    $0x6,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xd7f(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     12e9 <main+0x1c9>
lea    -0x70(%rbp),%rdx
lea    0xd30(%rip),%rdi
mov    $0x7,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xd46(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x3,%eax
je     1328 <main+0x208>
lea    -0x70(%rbp),%rdx
lea    0xcf1(%rip),%rdi
mov    $0x8,%esi
mov    $0x3,%ecx
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xd0c(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     1367 <main+0x247>
lea    -0x70(%rbp),%rdx
lea    0xcb2(%rip),%rdi
mov    $0x9,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xcd2(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     13a6 <main+0x286>
lea    -0x70(%rbp),%rdx
lea    0xc73(%rip),%rdi
mov    $0xa,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x70,%rsp
lea    0xed4(%rip),%rsi
mov    %rsp,%rdi
mov    $0xffffffff,%edx
call   1040 <sprintf@plt>
xor    %ebx,%ebx
cmp    $0x2,%eax
je     115e <main+0x3e>
lea    0xebc(%rip),%rdi
mov    $0x1,%ebx
mov    %rsp,%rdx
mov    $0x1,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
lea    0xeba(%rip),%rsi
mov    %rsp,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     1195 <main+0x75>
lea    0xe85(%rip),%rdi
mov    %rsp,%rdx
mov    $0x2,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xe88(%rip),%rsi
mov    %rsp,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x3,%eax
je     11cc <main+0xac>
lea    0xe4e(%rip),%rdi
mov    %rsp,%rdx
mov    $0x3,%esi
mov    $0x3,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xe55(%rip),%rsi
mov    %rsp,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     1203 <main+0xe3>
lea    0xe17(%rip),%rdi
mov    %rsp,%rdx
mov    $0x4,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xe22(%rip),%rsi
mov    %rsp,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     123a <main+0x11a>
lea    0xde0(%rip),%rdi
mov    %rsp,%rdx
mov    $0x5,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xdef(%rip),%rsi
mov    %rsp,%rdi
mov    $0xffffffff,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     1271 <main+0x151>
lea    0xda9(%rip),%rdi
mov    %rsp,%rdx
mov    $0x6,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xdbc(%rip),%rsi
mov    %rsp,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     12a8 <main+0x188>
lea    0xd72(%rip),%rdi
mov    %rsp,%rdx
mov    $0x7,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xd8b(%rip),%rsi
mov    %rsp,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x3,%eax
je     12df <main+0x1bf>
lea    0xd3b(%rip),%rdi
mov    %rsp,%rdx
mov    $0x8,%esi
mov    $0x3,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xd59(%rip),%rsi
mov    %rsp,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     1316 <main+0x1f6>
lea    0xd04(%rip),%rdi
mov    %rsp,%rdx
mov    $0x9,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xd27(%rip),%rsi
mov    %rsp,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
cmp    $0x2,%eax
je     134d <main+0x22d>
lea    0xccd(%rip),%rdi
mov    %rsp,%rdx
mov    $0xa,%esi
mov    $0x2,%ecx
call   1030 <printf@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x70,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [28 x i8] c"test %d failed (\22%s\22, %d)\0A\00"
@.str.2 = [5 x i8] c"% 2d\00"
@.str.3 = [4 x i8] c"%#x\00"
@.str.4 = [4 x i8] c"%+d\00"
@.str.5 = [4 x i8] c"% d\00"
@.str.6 = [4 x i8] c"%-d\00"
@.str.7 = [6 x i8] c"%- 2d\00"
@.str.8 = [5 x i8] c"%-#x\00"
@.str.9 = [5 x i8] c"%-+d\00"
@.str.10 = [5 x i8] c"%- d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [100 x i8]
store i32 0, i32* %1
store i32 0, i32* %2
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%5 = call i32 @sprintf(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 -1)
%6 = icmp ne i32 %5, 2
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%9 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 1, i8* %8, i32 2)
store i32 1, i32* %2
br label %10
10: ; preds = %7, %0
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%12 = call i32 @sprintf(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 1)
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 2, i8* %15, i32 2)
store i32 1, i32* %2
br label %17
17: ; preds = %14, %10
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%19 = call i32 @sprintf(i8* %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 1)
%20 = icmp ne i32 %19, 3
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%23 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 3, i8* %22, i32 3)
store i32 1, i32* %2
br label %24
24: ; preds = %21, %17
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%26 = call i32 @sprintf(i8* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 1)
%27 = icmp ne i32 %26, 2
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%30 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 4, i8* %29, i32 2)
store i32 1, i32* %2
br label %31
31: ; preds = %28, %24
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%33 = call i32 @sprintf(i8* %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 1)
%34 = icmp ne i32 %33, 2
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%37 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 5, i8* %36, i32 2)
store i32 1, i32* %2
br label %38
38: ; preds = %35, %31
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%40 = call i32 @sprintf(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 -1)
%41 = icmp ne i32 %40, 2
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%44 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 6, i8* %43, i32 2)
store i32 1, i32* %2
br label %45
45: ; preds = %42, %38
%46 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%47 = call i32 @sprintf(i8* %46, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 1)
%48 = icmp ne i32 %47, 2
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%51 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 7, i8* %50, i32 2)
store i32 1, i32* %2
br label %52
52: ; preds = %49, %45
%53 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%54 = call i32 @sprintf(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 1)
%55 = icmp ne i32 %54, 3
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%58 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 8, i8* %57, i32 3)
store i32 1, i32* %2
br label %59
59: ; preds = %56, %52
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%61 = call i32 @sprintf(i8* %60, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 1)
%62 = icmp ne i32 %61, 2
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%65 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 9, i8* %64, i32 2)
store i32 1, i32* %2
br label %66
66: ; preds = %63, %59
%67 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%68 = call i32 @sprintf(i8* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 1)
%69 = icmp ne i32 %68, 2
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%72 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 10, i8* %71, i32 2)
store i32 1, i32* %2
br label %73
73: ; preds = %70, %66
%74 = load i32, i32* %2
ret i32 %74
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [28 x i8] c"test %d failed (\22%s\22, %d)\0A\00"
@.str.2 = [5 x i8] c"% 2d\00"
@.str.3 = [4 x i8] c"%#x\00"
@.str.4 = [4 x i8] c"%+d\00"
@.str.5 = [4 x i8] c"% d\00"
@.str.6 = [4 x i8] c"%-d\00"
@.str.7 = [6 x i8] c"%- 2d\00"
@.str.8 = [5 x i8] c"%-#x\00"
@.str.9 = [5 x i8] c"%-+d\00"
@.str.10 = [5 x i8] c"%- d\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 -1)
%4 = icmp eq i32 %3, 2
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 1, i8* %2, i32 2)
br label %7
7: ; preds = %5, %0
%8 = phi i32 [ 1, %5 ], [ 0, %0 ]
%9 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 1)
%10 = icmp eq i32 %9, 2
br i1 %10, label %13, label %11
11: ; preds = %7
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 2, i8* %2, i32 2)
br label %13
13: ; preds = %11, %7
%14 = phi i32 [ 1, %11 ], [ %8, %7 ]
%15 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 1)
%16 = icmp eq i32 %15, 3
br i1 %16, label %19, label %17
17: ; preds = %13
%18 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 3, i8* %2, i32 3)
br label %19
19: ; preds = %17, %13
%20 = phi i32 [ 1, %17 ], [ %14, %13 ]
%21 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 1)
%22 = icmp eq i32 %21, 2
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 4, i8* %2, i32 2)
br label %25
25: ; preds = %23, %19
%26 = phi i32 [ 1, %23 ], [ %20, %19 ]
%27 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 1)
%28 = icmp eq i32 %27, 2
br i1 %28, label %31, label %29
29: ; preds = %25
%30 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 5, i8* %2, i32 2)
br label %31
31: ; preds = %29, %25
%32 = phi i32 [ 1, %29 ], [ %26, %25 ]
%33 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 -1)
%34 = icmp eq i32 %33, 2
br i1 %34, label %37, label %35
35: ; preds = %31
%36 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 6, i8* %2, i32 2)
br label %37
37: ; preds = %35, %31
%38 = phi i32 [ 1, %35 ], [ %32, %31 ]
%39 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 1)
%40 = icmp eq i32 %39, 2
br i1 %40, label %43, label %41
41: ; preds = %37
%42 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 7, i8* %2, i32 2)
br label %43
43: ; preds = %41, %37
%44 = phi i32 [ 1, %41 ], [ %38, %37 ]
%45 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 1)
%46 = icmp eq i32 %45, 3
br i1 %46, label %49, label %47
47: ; preds = %43
%48 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 8, i8* %2, i32 3)
br label %49
49: ; preds = %47, %43
%50 = phi i32 [ 1, %47 ], [ %44, %43 ]
%51 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 1)
%52 = icmp eq i32 %51, 2
br i1 %52, label %55, label %53
53: ; preds = %49
%54 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 9, i8* %2, i32 2)
br label %55
55: ; preds = %53, %49
%56 = phi i32 [ 1, %53 ], [ %50, %49 ]
%57 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 1)
%58 = icmp eq i32 %57, 2
br i1 %58, label %61, label %59
59: ; preds = %55
%60 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 10, i8* %2, i32 2)
br label %61
61: ; preds = %59, %55
%62 = phi i32 [ 1, %59 ], [ %56, %55 ]
ret i32 %62
}