#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 */
char *calloc(int, int);
long long getms();
int /*<<< orphan*/ printf(char *, long long);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int main() {
  char *s = calloc(1024, sizeof(char));
  puts(". warmup");
  long long ms = getms();
  for (size_t i = 0; i < 10000000; i++) {
    sprintf(s, "%zu %i %s", i, 1234, "nada");
  }
  printf("took %llims\n\n", getms() - ms);
  puts(". strcpy");
  ms = getms();
  for (size_t i = 0; i < 10000000; i++) {
    strcpy(s, "1234567890abcdefghijklmnop");
  }
  printf("took %llims\n\n", getms() - ms);
  puts(". sprintf");
  ms = getms();
  for (size_t i = 0; i < 10000000; i++) {
    sprintf(s, "%zu %i %s", i, 1234, "nada");
  }
  printf("took %llims\n\n", getms() - ms);
  puts(". sprintf without formatting");
  ms = getms();
  for (size_t i = 0; i < 10000000; i++) {
    sprintf(s, "1234567890abcdefghijklmnop");
  }
  printf("took %llims\n\n", getms() - ms);
  puts(". sprintf with \"%s\"");
  ms = getms();
  for (size_t i = 0; i < 10000000; i++) {
    sprintf(s, "%s", "1234567890abcdefghijklmnop");
  }
  printf("took %llims\n\n", getms() - ms);
  puts(". sprintf with \"-%s-\"");
  ms = getms();
  for (size_t i = 0; i < 10000000; i++) {
    sprintf(s, "-%s-", "1234567890abcdefghijklmnop");
  }
  printf("took %llims\n\n", getms() - ms);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x400,%edi
mov    $0x1,%esi
call   1070 <calloc@plt>
mov    %rax,-0x10(%rbp)
lea    0xe77(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
cmpq   $0x989680,-0x20(%rbp)
jae    11e2 <main+0x82>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xe4b(%rip),%rsi
mov    $0x4d2,%ecx
lea    0xe49(%rip),%r8
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    11a1 <main+0x41>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,%rsi
sub    -0x18(%rbp),%rsi
lea    0xe21(%rip),%rdi
call   1050 <printf@plt>
lea    0xe23(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x989680,-0x28(%rbp)
jae    124a <main+0xea>
mov    -0x10(%rbp),%rdi
lea    0xdfb(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    121b <main+0xbb>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,%rsi
sub    -0x18(%rbp),%rsi
lea    0xdb9(%rip),%rdi
call   1050 <printf@plt>
lea    0xddf(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x30(%rbp)
cmpq   $0x989680,-0x30(%rbp)
jae    12c4 <main+0x164>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xd69(%rip),%rsi
mov    $0x4d2,%ecx
lea    0xd67(%rip),%r8
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1283 <main+0x123>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,%rsi
sub    -0x18(%rbp),%rsi
lea    0xd3f(%rip),%rdi
call   1050 <printf@plt>
lea    0xd6f(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x38(%rbp)
cmpq   $0x989680,-0x38(%rbp)
jae    132e <main+0x1ce>
mov    -0x10(%rbp),%rdi
lea    0xd19(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    12fd <main+0x19d>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,%rsi
sub    -0x18(%rbp),%rsi
lea    0xcd5(%rip),%rdi
call   1050 <printf@plt>
lea    0xd22(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x40(%rbp)
cmpq   $0x989680,-0x40(%rbp)
jae    139f <main+0x23f>
mov    -0x10(%rbp),%rdi
lea    0xc90(%rip),%rsi
lea    0xca8(%rip),%rdx
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1367 <main+0x207>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,%rsi
sub    -0x18(%rbp),%rsi
lea    0xc64(%rip),%rdi
call   1050 <printf@plt>
lea    0xcc5(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x48(%rbp)
cmpq   $0x989680,-0x48(%rbp)
jae    1410 <main+0x2b0>
mov    -0x10(%rbp),%rdi
lea    0xcaa(%rip),%rsi
lea    0xc37(%rip),%rdx
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    13d8 <main+0x278>
mov    $0x0,%al
call   1060 <getms@plt>
mov    %rax,%rsi
sub    -0x18(%rbp),%rsi
lea    0xbf3(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    $0x400,%edi
mov    $0x1,%esi
call   1070 <calloc@plt>
mov    %rax,%r13
lea    0xe7e(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <getms@plt>
mov    %rax,%r14
lea    0xe71(%rip),%r15
lea    0xe74(%rip),%r12
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    $0x4d2,%ecx
mov    %r12,%r8
xor    %eax,%eax
call   1080 <sprintf@plt>
add    $0x1,%rbx
cmp    $0x989680,%rbx
jne    11b0 <main+0x50>
xor    %eax,%eax
call   1060 <getms@plt>
sub    %r14,%rax
lea    0xe32(%rip),%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
lea    0xe31(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <getms@plt>
mov    %rax,%r14
mov    $0x989680,%ebx
lea    0xe1f(%rip),%r15
mov    %r13,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
add    $0xffffffffffffffff,%rbx
jne    1210 <main+0xb0>
xor    %eax,%eax
call   1060 <getms@plt>
sub    %r14,%rax
lea    0xde6(%rip),%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
lea    0xe09(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <getms@plt>
mov    %rax,%r14
lea    0xdb2(%rip),%r15
lea    0xdb5(%rip),%r12
xor    %ebx,%ebx
mov    %r13,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    $0x4d2,%ecx
mov    %r12,%r8
xor    %eax,%eax
call   1080 <sprintf@plt>
add    $0x1,%rbx
cmp    $0x989680,%rbx
jne    1260 <main+0x100>
xor    %eax,%eax
call   1060 <getms@plt>
sub    %r14,%rax
lea    0xd82(%rip),%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
lea    0xdaf(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <getms@plt>
mov    %rax,%r14
mov    $0x989680,%eax
movups 0xd7a(%rip),%xmm0
movups 0xd68(%rip),%xmm1
nopw   0x0(%rax,%rax,1)
movups %xmm0,0xb(%r13)
movups %xmm1,0x0(%r13)
movups %xmm0,0xb(%r13)
movups %xmm1,0x0(%r13)
movups %xmm0,0xb(%r13)
movups %xmm1,0x0(%r13)
movups %xmm0,0xb(%r13)
movups %xmm1,0x0(%r13)
movups %xmm0,0xb(%r13)
movups %xmm1,0x0(%r13)
add    $0xfffffffffffffffb,%rax
jne    12d0 <main+0x170>
xor    %eax,%eax
call   1060 <getms@plt>
sub    %r14,%rax
lea    0xcff(%rip),%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
lea    0xd49(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <getms@plt>
mov    %rax,%r14
mov    $0x989680,%ebx
lea    0xcec(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
add    $0xffffffffffffffff,%rbx
jne    1350 <main+0x1f0>
xor    %eax,%eax
call   1060 <getms@plt>
sub    %r14,%rax
lea    0xca6(%rip),%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
lea    0xd04(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <getms@plt>
mov    %rax,%r14
mov    $0x989680,%ebx
lea    0xcff(%rip),%r15
lea    0xc8c(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <sprintf@plt>
add    $0xffffffffffffffff,%rbx
jne    13b0 <main+0x250>
xor    %eax,%eax
call   1060 <getms@plt>
sub    %r14,%rax
lea    0xc41(%rip),%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c". warmup\00"
@.str.1 = [10 x i8] c"%zu %i %s\00"
@.str.2 = [5 x i8] c"nada\00"
@.str.3 = [14 x i8] c"took %llims\0A\0A\00"
@.str.4 = [9 x i8] c". strcpy\00"
@.str.5 = [27 x i8] c"1234567890abcdefghijklmnop\00"
@.str.6 = [10 x i8] c". sprintf\00"
@.str.7 = [29 x i8] c". sprintf without formatting\00"
@.str.8 = [20 x i8] c". sprintf with \22%s\22\00"
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [22 x i8] c". sprintf with \22-%s-\22\00"
@.str.11 = [5 x i8] c"-%s-\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
store i32 0, i32* %1
%10 = call i8* @calloc(i32 1024, i32 1)
store i8* %10, i8** %2
%11 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%12 = call i64 (...) @getms()
store i64 %12, i64* %3
store i64 0, i64* %4
br label %13
13: ; preds = %20, %0
%14 = load i64, i64* %4
%15 = icmp ult i64 %14, 10000000
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i8*, i8** %2
%18 = load i64, i64* %4
%19 = call i32 (i8*, i8*, ...) @sprintf(i8* %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i64 %18, i32 1234, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %16
%21 = load i64, i64* %4
%22 = add i64 %21, 1
store i64 %22, i64* %4
br label %13
23: ; preds = %13
%24 = call i64 (...) @getms()
%25 = load i64, i64* %3
%26 = sub nsw i64 %24, %25
%27 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %26)
%28 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%29 = call i64 (...) @getms()
store i64 %29, i64* %3
store i64 0, i64* %5
br label %30
30: ; preds = %36, %23
%31 = load i64, i64* %5
%32 = icmp ult i64 %31, 10000000
br i1 %32, label %33, label %39
33: ; preds = %30
%34 = load i8*, i8** %2
%35 = call i32 @strcpy(i8* %34, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
br label %36
36: ; preds = %33
%37 = load i64, i64* %5
%38 = add i64 %37, 1
store i64 %38, i64* %5
br label %30
39: ; preds = %30
%40 = call i64 (...) @getms()
%41 = load i64, i64* %3
%42 = sub nsw i64 %40, %41
%43 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %42)
%44 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%45 = call i64 (...) @getms()
store i64 %45, i64* %3
store i64 0, i64* %6
br label %46
46: ; preds = %53, %39
%47 = load i64, i64* %6
%48 = icmp ult i64 %47, 10000000
br i1 %48, label %49, label %56
49: ; preds = %46
%50 = load i8*, i8** %2
%51 = load i64, i64* %6
%52 = call i32 (i8*, i8*, ...) @sprintf(i8* %50, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i64 %51, i32 1234, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %53
53: ; preds = %49
%54 = load i64, i64* %6
%55 = add i64 %54, 1
store i64 %55, i64* %6
br label %46
56: ; preds = %46
%57 = call i64 (...) @getms()
%58 = load i64, i64* %3
%59 = sub nsw i64 %57, %58
%60 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %59)
%61 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%62 = call i64 (...) @getms()
store i64 %62, i64* %3
store i64 0, i64* %7
br label %63
63: ; preds = %69, %56
%64 = load i64, i64* %7
%65 = icmp ult i64 %64, 10000000
br i1 %65, label %66, label %72
66: ; preds = %63
%67 = load i8*, i8** %2
%68 = call i32 (i8*, i8*, ...) @sprintf(i8* %67, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
br label %69
69: ; preds = %66
%70 = load i64, i64* %7
%71 = add i64 %70, 1
store i64 %71, i64* %7
br label %63
72: ; preds = %63
%73 = call i64 (...) @getms()
%74 = load i64, i64* %3
%75 = sub nsw i64 %73, %74
%76 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %75)
%77 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%78 = call i64 (...) @getms()
store i64 %78, i64* %3
store i64 0, i64* %8
br label %79
79: ; preds = %85, %72
%80 = load i64, i64* %8
%81 = icmp ult i64 %80, 10000000
br i1 %81, label %82, label %88
82: ; preds = %79
%83 = load i8*, i8** %2
%84 = call i32 (i8*, i8*, ...) @sprintf(i8* %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
br label %85
85: ; preds = %82
%86 = load i64, i64* %8
%87 = add i64 %86, 1
store i64 %87, i64* %8
br label %79
88: ; preds = %79
%89 = call i64 (...) @getms()
%90 = load i64, i64* %3
%91 = sub nsw i64 %89, %90
%92 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %91)
%93 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%94 = call i64 (...) @getms()
store i64 %94, i64* %3
store i64 0, i64* %9
br label %95
95: ; preds = %101, %88
%96 = load i64, i64* %9
%97 = icmp ult i64 %96, 10000000
br i1 %97, label %98, label %104
98: ; preds = %95
%99 = load i8*, i8** %2
%100 = call i32 (i8*, i8*, ...) @sprintf(i8* %99, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
br label %101
101: ; preds = %98
%102 = load i64, i64* %9
%103 = add i64 %102, 1
store i64 %103, i64* %9
br label %95
104: ; preds = %95
%105 = call i64 (...) @getms()
%106 = load i64, i64* %3
%107 = sub nsw i64 %105, %106
%108 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %107)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c". warmup\00"
@.str.1 = [10 x i8] c"%zu %i %s\00"
@.str.2 = [5 x i8] c"nada\00"
@.str.3 = [14 x i8] c"took %llims\0A\0A\00"
@.str.4 = [9 x i8] c". strcpy\00"
@.str.5 = [27 x i8] c"1234567890abcdefghijklmnop\00"
@.str.6 = [10 x i8] c". sprintf\00"
@.str.7 = [29 x i8] c". sprintf without formatting\00"
@.str.8 = [20 x i8] c". sprintf with \22%s\22\00"
@.str.10 = [22 x i8] c". sprintf with \22-%s-\22\00"
@.str.11 = [5 x i8] c"-%s-\00"
define i32 @main() {
%1 = tail call dereferenceable_or_null(1024) i8* @calloc(i32 1024, i32 1)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = tail call i64 (...) @getms()
br label %10
4: ; preds = %10
%5 = tail call i64 (...) @getms()
%6 = sub nsw i64 %5, %3
%7 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %6)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i64 (...) @getms()
br label %21
10: ; preds = %0, %10
%11 = phi i64 [ 0, %0 ], [ %13, %10 ]
%12 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i64 %11, i32 1234, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%13 = add nuw nsw i64 %11, 1
%14 = icmp eq i64 %13, 10000000
br i1 %14, label %4, label %10
15: ; preds = %21
%16 = tail call i64 (...) @getms()
%17 = sub nsw i64 %16, %9
%18 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %17)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%20 = tail call i64 (...) @getms()
br label %32
21: ; preds = %4, %21
%22 = phi i64 [ 0, %4 ], [ %24, %21 ]
%23 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%24 = add nuw nsw i64 %22, 1
%25 = icmp eq i64 %24, 10000000
br i1 %25, label %15, label %21
26: ; preds = %32
%27 = tail call i64 (...) @getms()
%28 = sub nsw i64 %27, %20
%29 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %28)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%31 = tail call i64 (...) @getms()
br label %43
32: ; preds = %15, %32
%33 = phi i64 [ 0, %15 ], [ %35, %32 ]
%34 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i64 %33, i32 1234, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%35 = add nuw nsw i64 %33, 1
%36 = icmp eq i64 %35, 10000000
br i1 %36, label %26, label %32
37: ; preds = %43
%38 = tail call i64 (...) @getms()
%39 = sub nsw i64 %38, %31
%40 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %39)
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%42 = tail call i64 (...) @getms()
br label %53
43: ; preds = %43, %26
%44 = phi i64 [ 0, %26 ], [ %45, %43 ]
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(27) %1, i8* align 1 dereferenceable(27) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i64 27, i1 false)
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(27) %1, i8* align 1 dereferenceable(27) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i64 27, i1 false)
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(27) %1, i8* align 1 dereferenceable(27) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i64 27, i1 false)
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(27) %1, i8* align 1 dereferenceable(27) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i64 27, i1 false)
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(27) %1, i8* align 1 dereferenceable(27) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i64 27, i1 false)
%45 = add nuw nsw i64 %44, 5
%46 = icmp eq i64 %45, 10000000
br i1 %46, label %37, label %43
47: ; preds = %53
%48 = tail call i64 (...) @getms()
%49 = sub nsw i64 %48, %42
%50 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %49)
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%52 = tail call i64 (...) @getms()
br label %62
53: ; preds = %37, %53
%54 = phi i64 [ 0, %37 ], [ %56, %53 ]
%55 = tail call i8* bitcast (i32 (i8*, i8*)* @strcpy to i8* (i8*, i8*)*)(i8* %1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%56 = add nuw nsw i64 %54, 1
%57 = icmp eq i64 %56, 10000000
br i1 %57, label %47, label %53
58: ; preds = %62
%59 = tail call i64 (...) @getms()
%60 = sub nsw i64 %59, %52
%61 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %60)
ret i32 0
62: ; preds = %47, %62
%63 = phi i64 [ 0, %47 ], [ %65, %62 ]
%64 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%65 = add nuw nsw i64 %63, 1
%66 = icmp eq i64 %65, 10000000
br i1 %66, label %58, label %62
}