#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 *, char *, int);
int snprintf(char *, int, char *, int);
int /*<<< orphan*/ strcmp(char *, char *);
int test_snprintf(void) {
  char out[0x100];
  int n;
  n = snprintf(out, 1, "%d", 100);
  do {
    if (!(!strcmp("", out))) {
      printf("expression '%s' untrue at %d\n", "!strcmp(\"\", out)", 162);
      return 0;
    }
  } while (0);
  do {
    if (!(n == 3)) {
      printf("expression '%s' untrue at %d\n", "n == 3", 163);
      return 0;
    }
  } while (0);
  n = snprintf(out, 2, "%d", 100);
  do {
    if (!(!strcmp("1", out))) {
      printf("expression '%s' untrue at %d\n", "!strcmp(\"1\", out)", 166);
      return 0;
    }
  } while (0);
  do {
    if (!(n == 3)) {
      printf("expression '%s' untrue at %d\n", "n == 3", 167);
      return 0;
    }
  } while (0);
  n = snprintf(out, 3, "%d", 100);
  do {
    if (!(!strcmp("10", out))) {
      printf("expression '%s' untrue at %d\n", "!strcmp(\"10\", out)", 170);
      return 0;
    }
  } while (0);
  do {
    if (!(n == 3)) {
      printf("expression '%s' untrue at %d\n", "n == 3", 171);
      return 0;
    }
  } while (0);
  n = snprintf(out, 4, "%d", 100);
  do {
    if (!(!strcmp("100", out))) {
      printf("expression '%s' untrue at %d\n", "!strcmp(\"100\", out)", 174);
      return 0;
    }
  } while (0);
  do {
    if (!(n == 3)) {
      printf("expression '%s' untrue at %d\n", "n == 3", 175);
      return 0;
    }
  } while (0);
  out[0] = 0;
  n = snprintf(out, 0, "%d", 100);
  do {
    if (!(out[0] == 0)) {
      printf("expression '%s' untrue at %d\n", "out[0] == 0", 179);
      return 0;
    }
  } while (0);
  do {
    if (!(n == 3)) {
      printf("expression '%s' untrue at %d\n", "n == 3", 180);
      return 0;
    }
  } while (0);
  return 1;
}


x86 assembly (clang, -O0):
<test_snprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
lea    -0x110(%rbp),%rdi
mov    $0x1,%esi
lea    0xeb2(%rip),%rdx
mov    $0x64,%ecx
call   1040 <snprintf@plt>
mov    %eax,-0x114(%rbp)
lea    -0x110(%rbp),%rsi
lea    0xeb4(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     119e <test_snprintf+0x6e>
lea    0xe82(%rip),%rdi
lea    0xe99(%rip),%rsi
mov    $0xa2,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    11a3 <test_snprintf+0x73>
jmp    11a8 <test_snprintf+0x78>
cmpl   $0x3,-0x114(%rbp)
je     11d9 <test_snprintf+0xa9>
lea    0xe47(%rip),%rdi
lea    0xe6f(%rip),%rsi
mov    $0xa3,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    11de <test_snprintf+0xae>
lea    -0x110(%rbp),%rdi
mov    $0x2,%esi
lea    0xe0f(%rip),%rdx
mov    $0x64,%ecx
call   1040 <snprintf@plt>
mov    %eax,-0x114(%rbp)
lea    -0x110(%rbp),%rsi
lea    0xe2a(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     1241 <test_snprintf+0x111>
lea    0xddf(%rip),%rdi
lea    0xe10(%rip),%rsi
mov    $0xa6,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    1246 <test_snprintf+0x116>
jmp    124b <test_snprintf+0x11b>
cmpl   $0x3,-0x114(%rbp)
je     127c <test_snprintf+0x14c>
lea    0xda4(%rip),%rdi
lea    0xdcc(%rip),%rsi
mov    $0xa7,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    1281 <test_snprintf+0x151>
lea    -0x110(%rbp),%rdi
mov    $0x3,%esi
lea    0xd6c(%rip),%rdx
mov    $0x64,%ecx
call   1040 <snprintf@plt>
mov    %eax,-0x114(%rbp)
lea    -0x110(%rbp),%rsi
lea    0xd9b(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     12e4 <test_snprintf+0x1b4>
lea    0xd3c(%rip),%rdi
lea    0xd82(%rip),%rsi
mov    $0xaa,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    12e9 <test_snprintf+0x1b9>
jmp    12ee <test_snprintf+0x1be>
cmpl   $0x3,-0x114(%rbp)
je     131f <test_snprintf+0x1ef>
lea    0xd01(%rip),%rdi
lea    0xd29(%rip),%rsi
mov    $0xab,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    1324 <test_snprintf+0x1f4>
lea    -0x110(%rbp),%rdi
mov    $0x4,%esi
lea    0xcc9(%rip),%rdx
mov    $0x64,%ecx
call   1040 <snprintf@plt>
mov    %eax,-0x114(%rbp)
lea    -0x110(%rbp),%rsi
lea    0xd0e(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     1387 <test_snprintf+0x257>
lea    0xc99(%rip),%rdi
lea    0xcf6(%rip),%rsi
mov    $0xae,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    138c <test_snprintf+0x25c>
jmp    1391 <test_snprintf+0x261>
cmpl   $0x3,-0x114(%rbp)
je     13c2 <test_snprintf+0x292>
lea    0xc5e(%rip),%rdi
lea    0xc86(%rip),%rsi
mov    $0xaf,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    13c7 <test_snprintf+0x297>
movb   $0x0,-0x110(%rbp)
lea    -0x110(%rbp),%rdi
xor    %esi,%esi
lea    0xc22(%rip),%rdx
mov    $0x64,%ecx
call   1040 <snprintf@plt>
mov    %eax,-0x114(%rbp)
movsbl -0x110(%rbp),%eax
cmp    $0x0,%eax
je     1422 <test_snprintf+0x2f2>
lea    0xbfe(%rip),%rdi
lea    0xc6f(%rip),%rsi
mov    $0xb3,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    1427 <test_snprintf+0x2f7>
jmp    142c <test_snprintf+0x2fc>
cmpl   $0x3,-0x114(%rbp)
je     145d <test_snprintf+0x32d>
lea    0xbc3(%rip),%rdi
lea    0xbeb(%rip),%rsi
mov    $0xb4,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1469 <test_snprintf+0x339>
jmp    1462 <test_snprintf+0x332>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_snprintf>:
sub    $0x108,%rsp
lea    0xed2(%rip),%rdx
mov    %rsp,%rdi
mov    $0x1,%esi
mov    $0x64,%ecx
call   1040 <snprintf@plt>
cmpb   $0x0,(%rsp)
je     115e <test_snprintf+0x3e>
lea    0xeb6(%rip),%rdi
lea    0xecd(%rip),%rsi
mov    $0xa2,%edx
jmp    1205 <test_snprintf+0xe5>
cmp    $0x3,%eax
jne    11c8 <test_snprintf+0xa8>
lea    0xe96(%rip),%rdx
mov    %rsp,%rdi
mov    $0x2,%esi
mov    $0x64,%ecx
call   1040 <snprintf@plt>
cmpw   $0x31,(%rsp)
jne    11dd <test_snprintf+0xbd>
cmp    $0x3,%eax
jne    11f2 <test_snprintf+0xd2>
lea    0xe71(%rip),%rdx
mov    %rsp,%rdi
mov    $0x3,%esi
mov    $0x64,%ecx
call   1040 <snprintf@plt>
mov    $0x3031,%ecx
xor    (%rsp),%ecx
movzbl 0x2(%rsp),%edx
or     %cx,%dx
je     1214 <test_snprintf+0xf4>
lea    0xe49(%rip),%rdi
lea    0xe8d(%rip),%rsi
mov    $0xaa,%edx
jmp    1205 <test_snprintf+0xe5>
lea    0xe34(%rip),%rdi
lea    0xe5c(%rip),%rsi
mov    $0xa3,%edx
jmp    1205 <test_snprintf+0xe5>
lea    0xe1f(%rip),%rdi
lea    0xe4e(%rip),%rsi
mov    $0xa6,%edx
jmp    1205 <test_snprintf+0xe5>
lea    0xe0a(%rip),%rdi
lea    0xe32(%rip),%rsi
mov    $0xa7,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x108,%rsp
ret
cmp    $0x3,%eax
jne    1275 <test_snprintf+0x155>
lea    0xde0(%rip),%rdx
mov    %rsp,%rdi
mov    $0x4,%esi
mov    $0x64,%ecx
call   1040 <snprintf@plt>
cmpl   $0x303031,(%rsp)
jne    128d <test_snprintf+0x16d>
cmp    $0x3,%eax
jne    12a5 <test_snprintf+0x185>
movb   $0x0,(%rsp)
lea    0xdb5(%rip),%rdx
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x64,%ecx
call   1040 <snprintf@plt>
cmpb   $0x0,(%rsp)
je     12bd <test_snprintf+0x19d>
lea    0xd9c(%rip),%rdi
lea    0xe07(%rip),%rsi
mov    $0xb3,%edx
jmp    1205 <test_snprintf+0xe5>
lea    0xd87(%rip),%rdi
lea    0xdaf(%rip),%rsi
mov    $0xab,%edx
jmp    1205 <test_snprintf+0xe5>
lea    0xd6f(%rip),%rdi
lea    0xdc6(%rip),%rsi
mov    $0xae,%edx
jmp    1205 <test_snprintf+0xe5>
lea    0xd57(%rip),%rdi
lea    0xd7f(%rip),%rsi
mov    $0xaf,%edx
jmp    1205 <test_snprintf+0xe5>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    $0x3,%ecx
je     120c <test_snprintf+0xec>
lea    0xd2f(%rip),%rdi
lea    0xd57(%rip),%rsi
mov    $0xb4,%edx
jmp    1205 <test_snprintf+0xe5>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.3 = [17 x i8] c"!strcmp(\22\22, out)\00"
@.str.4 = [7 x i8] c"n == 3\00"
@.str.5 = [2 x i8] c"1\00"
@.str.6 = [18 x i8] c"!strcmp(\221\22, out)\00"
@.str.7 = [3 x i8] c"10\00"
@.str.8 = [19 x i8] c"!strcmp(\2210\22, out)\00"
@.str.9 = [4 x i8] c"100\00"
@.str.10 = [20 x i8] c"!strcmp(\22100\22, out)\00"
@.str.11 = [12 x i8] c"out[0] == 0\00"
define i32 @test_snprintf() {
%1 = alloca i32
%2 = alloca [256 x i8]
%3 = alloca i32
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%5 = call i32 @snprintf(i8* %4, i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
store i32 %5, i32* %3
br label %6
6: ; preds = %0
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%8 = call i32 @strcmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 162)
store i32 0, i32* %1
br label %91
12: ; preds = %6
br label %13
13: ; preds = %12
br label %14
14: ; preds = %13
%15 = load i32, i32* %3
%16 = icmp eq i32 %15, 3
br i1 %16, label %19, label %17
17: ; preds = %14
%18 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 163)
store i32 0, i32* %1
br label %91
19: ; preds = %14
br label %20
20: ; preds = %19
%21 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%22 = call i32 @snprintf(i8* %21, i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
store i32 %22, i32* %3
br label %23
23: ; preds = %20
%24 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%25 = call i32 @strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 166)
store i32 0, i32* %1
br label %91
29: ; preds = %23
br label %30
30: ; preds = %29
br label %31
31: ; preds = %30
%32 = load i32, i32* %3
%33 = icmp eq i32 %32, 3
br i1 %33, label %36, label %34
34: ; preds = %31
%35 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 167)
store i32 0, i32* %1
br label %91
36: ; preds = %31
br label %37
37: ; preds = %36
%38 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%39 = call i32 @snprintf(i8* %38, i32 3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
store i32 %39, i32* %3
br label %40
40: ; preds = %37
%41 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%42 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %41)
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 170)
store i32 0, i32* %1
br label %91
46: ; preds = %40
br label %47
47: ; preds = %46
br label %48
48: ; preds = %47
%49 = load i32, i32* %3
%50 = icmp eq i32 %49, 3
br i1 %50, label %53, label %51
51: ; preds = %48
%52 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 171)
store i32 0, i32* %1
br label %91
53: ; preds = %48
br label %54
54: ; preds = %53
%55 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%56 = call i32 @snprintf(i8* %55, i32 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
store i32 %56, i32* %3
br label %57
57: ; preds = %54
%58 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%59 = call i32 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* %58)
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i32 174)
store i32 0, i32* %1
br label %91
63: ; preds = %57
br label %64
64: ; preds = %63
br label %65
65: ; preds = %64
%66 = load i32, i32* %3
%67 = icmp eq i32 %66, 3
br i1 %67, label %70, label %68
68: ; preds = %65
%69 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 175)
store i32 0, i32* %1
br label %91
70: ; preds = %65
br label %71
71: ; preds = %70
%72 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
store i8 0, i8* %72
%73 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%74 = call i32 @snprintf(i8* %73, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
store i32 %74, i32* %3
br label %75
75: ; preds = %71
%76 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 0
br i1 %79, label %82, label %80
80: ; preds = %75
%81 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 179)
store i32 0, i32* %1
br label %91
82: ; preds = %75
br label %83
83: ; preds = %82
br label %84
84: ; preds = %83
%85 = load i32, i32* %3
%86 = icmp eq i32 %85, 3
br i1 %86, label %89, label %87
87: ; preds = %84
%88 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 180)
store i32 0, i32* %1
br label %91
89: ; preds = %84
br label %90
90: ; preds = %89
store i32 1, i32* %1
br label %91
91: ; preds = %90, %87, %80, %68, %61, %51, %44, %34, %27, %17, %10
%92 = load i32, i32* %1
ret i32 %92
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.2 = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.3 = [17 x i8] c"!strcmp(\22\22, out)\00"
@.str.4 = [7 x i8] c"n == 3\00"
@.str.6 = [18 x i8] c"!strcmp(\221\22, out)\00"
@.str.7 = [3 x i8] c"10\00"
@.str.8 = [19 x i8] c"!strcmp(\2210\22, out)\00"
@.str.10 = [20 x i8] c"!strcmp(\22100\22, out)\00"
@.str.11 = [12 x i8] c"out[0] == 0\00"
define i32 @test_snprintf() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = call i32 @snprintf(i8* %2, i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
%4 = load i8, i8* %2
%5 = icmp eq i8 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 162)
br label %54
8: ; preds = %0
%9 = icmp eq i32 %3, 3
br i1 %9, label %12, label %10
10: ; preds = %8
%11 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 163)
br label %54
12: ; preds = %8
%13 = call i32 @snprintf(i8* %2, i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
%14 = bitcast [256 x i8]* %1 to i16*
%15 = load i16, i16* %14
%16 = icmp eq i16 %15, 49
br i1 %16, label %19, label %17
17: ; preds = %12
%18 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 166)
br label %54
19: ; preds = %12
%20 = icmp eq i32 %13, 3
br i1 %20, label %23, label %21
21: ; preds = %19
%22 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 167)
br label %54
23: ; preds = %19
%24 = call i32 @snprintf(i8* %2, i32 3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
%25 = call i32 @bcmp(i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* dereferenceable(3) %2, i64 3)
%26 = icmp eq i32 %25, 0
br i1 %26, label %29, label %27
27: ; preds = %23
%28 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 170)
br label %54
29: ; preds = %23
%30 = icmp eq i32 %24, 3
br i1 %30, label %33, label %31
31: ; preds = %29
%32 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 171)
br label %54
33: ; preds = %29
%34 = call i32 @snprintf(i8* %2, i32 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
%35 = bitcast [256 x i8]* %1 to i32*
%36 = load i32, i32* %35
%37 = icmp eq i32 %36, 3158065
br i1 %37, label %40, label %38
38: ; preds = %33
%39 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i32 174)
br label %54
40: ; preds = %33
%41 = icmp eq i32 %34, 3
br i1 %41, label %44, label %42
42: ; preds = %40
%43 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 175)
br label %54
44: ; preds = %40
store i8 0, i8* %2
%45 = call i32 @snprintf(i8* %2, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 100)
%46 = load i8, i8* %2
%47 = icmp eq i8 %46, 0
br i1 %47, label %50, label %48
48: ; preds = %44
%49 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 179)
br label %54
50: ; preds = %44
%51 = icmp eq i32 %45, 3
br i1 %51, label %54, label %52
52: ; preds = %50
%53 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 180)
br label %54
54: ; preds = %50, %52, %48, %42, %38, %31, %27, %21, %17, %10, %6
%55 = phi i32 [ 0, %6 ], [ 0, %17 ], [ 0, %27 ], [ 0, %38 ], [ 0, %52 ], [ 0, %48 ], [ 0, %42 ], [ 0, %31 ], [ 0, %21 ], [ 0, %10 ], [ 1, %50 ]
ret i32 %55
}