#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*/ assert(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int snprintf(char *, int, char *);
int sprintf(char *, char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int main() {
  char buf[1000];
  sprintf(buf, "%d", 23);
  assert(!strcmp(buf, "23"));
  sprintf(buf, "%d", 5);
  assert(!strcmp(buf, "5"));
  sprintf(buf, "%.2f", 0.05);
  assert(!strcmp(buf, "0.05"));
  sprintf(buf, "%f", 9e-6);
  assert(!strcmp(buf, "0.000009"));
  sprintf(buf, "%f", 1e-2);
  assert(!strcmp(buf, "0.010000"));
  sprintf(buf, "%6d", -1);
  assert(!strcmp(buf, "    -1"));
  strcpy(buf, "foo ");
  sprintf(buf + strlen(buf), "%s", "bar ");
  strcat(buf, "baz.");
  assert(!strcmp(buf, "foo bar baz."));
  memset(buf, 0, 100);
  assert(snprintf(buf, 1, "x") == 1);
  assert(!strcmp(buf, ""));
  assert(snprintf(buf, 0, "x") == 1);
  assert(!strcmp(buf, ""));
  assert(sprintf(buf, "%03o", 10) == 3);
  assert(!strcmp(buf, "012"));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x400,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x3f0(%rbp),%rdi
lea    0xe78(%rip),%rsi
mov    $0x17,%edx
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xe61(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xe39(%rip),%rsi
mov    $0x5,%edx
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xe2d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xe00(%rip),%rsi
movsd  0xdea(%rip),%xmm0
mov    $0x1,%al
call   10a0 <sprintf@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xde8(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xdc8(%rip),%rsi
movsd  0xda0(%rip),%xmm0
mov    $0x1,%al
call   10a0 <sprintf@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xdae(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xd86(%rip),%rsi
movsd  0xd56(%rip),%xmm0
mov    $0x1,%al
call   10a0 <sprintf@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xd75(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xd59(%rip),%rsi
mov    $0xffffffff,%edx
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xd43(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xd25(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x3f0(%rbp),%rax
mov    %rax,-0x3f8(%rbp)
lea    -0x3f0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x3f8(%rbp),%rdi
cltq
add    %rax,%rdi
lea    0xcf8(%rip),%rsi
lea    0xcf4(%rip),%rdx
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xcec(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xcd1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1060 <memset@plt>
lea    -0x3f0(%rbp),%rdi
mov    $0x1,%esi
lea    0xca1(%rip),%rdx
call   1050 <snprintf@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xc68(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
xor    %esi,%esi
lea    0xc57(%rip),%rdx
call   1050 <snprintf@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xc1e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xc11(%rip),%rsi
mov    $0xa,%edx
mov    $0x0,%al
call   10a0 <sprintf@plt>
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xbec(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
xor    %eax,%eax
add    $0x400,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x3e8,%rsp
lea    0xe97(%rip),%rbx
mov    %rsp,%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x17,%edx
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    $0x3332,%eax
xor    (%rsp),%eax
movzbl 0x2(%rsp),%ecx
xor    %edi,%edi
or     %ax,%cx
sete   %dil
call   1070 <assert@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x5,%edx
xor    %eax,%eax
call   1090 <sprintf@plt>
xor    %edi,%edi
cmpw   $0x35,(%rsp)
sete   %dil
call   1070 <assert@plt>
lea    0xe44(%rip),%rsi
movsd  0xe1e(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1090 <sprintf@plt>
mov    $0x35302e30,%eax
xor    (%rsp),%eax
movzbl 0x4(%rsp),%ecx
xor    %edi,%edi
or     %eax,%ecx
sete   %dil
call   1070 <assert@plt>
lea    0xe1b(%rip),%rbx
movsd  0xdf3(%rip),%xmm0
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1090 <sprintf@plt>
movabs $0x3930303030302e30,%rax
30 30 39
xor    (%rsp),%rax
movzbl 0x8(%rsp),%ecx
xor    %edi,%edi
or     %rax,%rcx
sete   %dil
call   1070 <assert@plt>
movsd  0xdc5(%rip),%xmm0
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1090 <sprintf@plt>
movabs $0x3030303031302e30,%rax
30 30 30
xor    (%rsp),%rax
movzbl 0x8(%rsp),%ecx
xor    %edi,%edi
or     %rax,%rcx
sete   %dil
call   1070 <assert@plt>
lea    0xdbd(%rip),%rsi
mov    %r14,%rdi
mov    $0xffffffff,%edx
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    $0x20202020,%eax
xor    (%rsp),%eax
mov    $0x312d20,%ecx
xor    0x3(%rsp),%ecx
xor    %edi,%edi
or     %eax,%ecx
sete   %dil
call   1070 <assert@plt>
lea    0xd94(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcpy@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
cltq
lea    (%rsp,%rax,1),%rdi
lea    0xd7c(%rip),%rsi
call   1030 <strcpy@plt>
lea    0xd7d(%rip),%rsi
mov    %r14,%rdi
call   1080 <strcat@plt>
movabs $0x20726162206f6f66,%rax
61 72 20
xor    (%rsp),%rax
movabs $0x2e7a6162207261,%rcx
xor    0x5(%rsp),%rcx
xor    %edi,%edi
or     %rax,%rcx
sete   %dil
call   1070 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1060 <memset@plt>
lea    0xd39(%rip),%rbx
mov    %r14,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
call   1050 <snprintf@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
sete   %dil
call   1070 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1050 <snprintf@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
sete   %dil
call   1070 <assert@plt>
lea    0xcdd(%rip),%rsi
mov    %r14,%rdi
mov    $0xa,%edx
xor    %eax,%eax
call   1090 <sprintf@plt>
xor    %edi,%edi
cmp    $0x3,%eax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
cmpl   $0x323130,(%rsp)
sete   %dil
call   1070 <assert@plt>
xor    %eax,%eax
add    $0x3e8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"23\00"
@.str.2 = [2 x i8] c"5\00"
@.str.3 = [5 x i8] c"%.2f\00"
@.str.4 = [5 x i8] c"0.05\00"
@.str.5 = [3 x i8] c"%f\00"
@.str.6 = [9 x i8] c"0.000009\00"
@.str.7 = [9 x i8] c"0.010000\00"
@.str.8 = [4 x i8] c"%6d\00"
@.str.9 = [7 x i8] c" -1\00"
@.str.10 = [5 x i8] c"foo \00"
@.str.11 = [3 x i8] c"%s\00"
@.str.12 = [5 x i8] c"bar \00"
@.str.13 = [5 x i8] c"baz.\00"
@.str.14 = [13 x i8] c"foo bar baz.\00"
@.str.15 = [2 x i8] c"x\00"
@.str.16 = [1 x i8] zeroinitializer
@.str.17 = [5 x i8] c"%03o\00"
@.str.18 = [4 x i8] c"012\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1000 x i8]
store i32 0, i32* %1
%3 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%4 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 23)
%5 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%6 = call i32 @strcmp(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%12 = call i32 (i8*, i8*, ...) @sprintf(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 5)
%13 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%20 = call i32 (i8*, i8*, ...) @sprintf(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double 5.000000e-02)
%21 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%22 = call i32 @strcmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%23 = icmp ne i32 %22, 0
%24 = xor i1 %23, true
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%28 = call i32 (i8*, i8*, ...) @sprintf(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), double 9.000000e-06)
%29 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%30 = call i32 @strcmp(i8* %29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%36 = call i32 (i8*, i8*, ...) @sprintf(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), double 1.000000e-02)
%37 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%38 = call i32 @strcmp(i8* %37, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%39 = icmp ne i32 %38, 0
%40 = xor i1 %39, true
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%44 = call i32 (i8*, i8*, ...) @sprintf(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -1)
%45 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%46 = call i32 @strcmp(i8* %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%47 = icmp ne i32 %46, 0
%48 = xor i1 %47, true
%49 = zext i1 %48 to i32
%50 = call i32 @assert(i32 %49)
%51 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%52 = call i32 @strcpy(i8* %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%53 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%54 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%55 = call i32 @strlen(i8* %54)
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, i8* %53, i64 %56
%58 = call i32 (i8*, i8*, ...) @sprintf(i8* %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%59 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%60 = call i32 @strcat(i8* %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%61 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%62 = call i32 @strcmp(i8* %61, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%63 = icmp ne i32 %62, 0
%64 = xor i1 %63, true
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
%67 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%68 = call i32 @memset(i8* %67, i32 0, i32 100)
%69 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%70 = call i32 @snprintf(i8* %69, i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%71 = icmp eq i32 %70, 1
%72 = zext i1 %71 to i32
%73 = call i32 @assert(i32 %72)
%74 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%75 = call i32 @strcmp(i8* %74, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.16, i64 0, i64 0))
%76 = icmp ne i32 %75, 0
%77 = xor i1 %76, true
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%81 = call i32 @snprintf(i8* %80, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%82 = icmp eq i32 %81, 1
%83 = zext i1 %82 to i32
%84 = call i32 @assert(i32 %83)
%85 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%86 = call i32 @strcmp(i8* %85, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.16, i64 0, i64 0))
%87 = icmp ne i32 %86, 0
%88 = xor i1 %87, true
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 %89)
%91 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%92 = call i32 (i8*, i8*, ...) @sprintf(i8* %91, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 10)
%93 = icmp eq i32 %92, 3
%94 = zext i1 %93 to i32
%95 = call i32 @assert(i32 %94)
%96 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%97 = call i32 @strcmp(i8* %96, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%98 = icmp ne i32 %97, 0
%99 = xor i1 %98, true
%100 = zext i1 %99 to i32
%101 = call i32 @assert(i32 %100)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"23\00"
@.str.3 = [5 x i8] c"%.2f\00"
@.str.4 = [5 x i8] c"0.05\00"
@.str.5 = [3 x i8] c"%f\00"
@.str.6 = [9 x i8] c"0.000009\00"
@.str.7 = [9 x i8] c"0.010000\00"
@.str.8 = [4 x i8] c"%6d\00"
@.str.9 = [7 x i8] c" -1\00"
@.str.10 = [5 x i8] c"foo \00"
@.str.12 = [5 x i8] c"bar \00"
@.str.13 = [5 x i8] c"baz.\00"
@.str.14 = [13 x i8] c"foo bar baz.\00"
@.str.15 = [2 x i8] c"x\00"
@.str.17 = [5 x i8] c"%03o\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%3 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 23)
%4 = call i32 @bcmp(i8* dereferenceable(3) %2, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i64 3)
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
%8 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 5)
%9 = bitcast [1000 x i8]* %1 to i16*
%10 = load i16, i16* %9
%11 = icmp eq i16 %10, 53
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 %12)
%14 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double 5.000000e-02)
%15 = call i32 @bcmp(i8* dereferenceable(5) %2, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 5)
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = tail call i32 @assert(i32 %17)
%19 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), double 9.000000e-06)
%20 = call i32 @bcmp(i8* dereferenceable(9) %2, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i64 9)
%21 = icmp eq i32 %20, 0
%22 = zext i1 %21 to i32
%23 = tail call i32 @assert(i32 %22)
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), double 1.000000e-02)
%25 = call i32 @bcmp(i8* dereferenceable(9) %2, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i64 9)
%26 = icmp eq i32 %25, 0
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -1)
%30 = call i32 @bcmp(i8* dereferenceable(7) %2, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i64 7)
%31 = icmp eq i32 %30, 0
%32 = zext i1 %31 to i32
%33 = tail call i32 @assert(i32 %32)
%34 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%35 = call i32 @strlen(i8* %2)
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 %36
%38 = call i8* bitcast (i32 (i8*, i8*)* @strcpy to i8* (i8*, i8*)*)(i8* %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%39 = call i32 @strcat(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%40 = call i32 @bcmp(i8* dereferenceable(13) %2, i8* dereferenceable(13) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i64 13)
%41 = icmp eq i32 %40, 0
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = call i32 @memset(i8* %2, i32 0, i32 100)
%45 = call i32 @snprintf(i8* %2, i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%46 = icmp eq i32 %45, 1
%47 = zext i1 %46 to i32
%48 = call i32 @assert(i32 %47)
%49 = load i8, i8* %2
%50 = icmp eq i8 %49, 0
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = call i32 @snprintf(i8* %2, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%54 = icmp eq i32 %53, 1
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 %55)
%57 = load i8, i8* %2
%58 = icmp eq i8 %57, 0
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 10)
%62 = icmp eq i32 %61, 3
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = bitcast [1000 x i8]* %1 to i32*
%66 = load i32, i32* %65
%67 = icmp eq i32 %66, 3289392
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
ret i32 0
}