#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 */
typedef int /*<<< orphan*/ str5;
typedef int /*<<< orphan*/ str4;
typedef int /*<<< orphan*/ str3;
typedef int /*<<< orphan*/ str2;
typedef int /*<<< orphan*/ str1;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, ...);
void check_nul() {
  int i, has_nul;
  char str1[5] = {'h', 'e', 'l', 'l', 'o'};
  char str2[6] = {'h', 'e', 'l', 'l', 'o', '\0'};
  char str3[6] = {'h', 'e', 'l', 'l', 'o', 0};
  char str4[11] = {'h', 'e', 'l', 'l', 'o', '\0', 'w', 'o', 'r', 'l', 'd'};
  char str5[99] = {'h', 'e', 'l', 'l', 'o'};
  has_nul = 0;
  for (i = 0; i < sizeof(str1); i++) {
    printf("%d:%c\n", i, str1[i]);
    if (!str1[i]) {
      has_nul = 1;
      break;
    }
  }
  printf("has_nul:%d\n", has_nul);
  has_nul = 0;
  for (i = 0; i < sizeof(str2); i++) {
    printf("%d:%c\n", i, str2[i]);
    if (!str2[i]) {
      has_nul = 1;
      break;
    }
  }
  printf("has_nul:%d\n", has_nul);
  has_nul = 0;
  for (i = 0; i < sizeof(str3); i++) {
    printf("%d:%c\n", i, str3[i]);
    if (!str3[i]) {
      has_nul = 1;
      break;
    }
  }
  printf("has_nul:%d\n", has_nul);
  has_nul = 0;
  for (i = 0; i < sizeof(str4); i++) {
    printf("%d:%c\n", i, str4[i]);
    if (!str4[i]) {
      has_nul = 1;
      break;
    }
  }
  printf("has_nul:%d\n", has_nul);
  has_nul = 0;
  for (i = 0; i < sizeof(str5); i++) {
    printf("%d:%c\n", i, str5[i]);
    if (!str5[i]) {
      has_nul = 1;
      break;
    }
  }
  printf("has_nul:%d\n", has_nul);
}


x86 assembly (clang, -O0):
<check_nul>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0xecf(%rip),%eax
mov    %eax,-0xd(%rbp)
mov    0xeca(%rip),%al
mov    %al,-0x9(%rbp)
mov    0xecd(%rip),%eax
mov    %eax,-0x13(%rbp)
mov    0xec7(%rip),%ax
mov    %ax,-0xf(%rbp)
mov    0xeb9(%rip),%eax
mov    %eax,-0x19(%rbp)
mov    0xeb3(%rip),%ax
mov    %ax,-0x15(%rbp)
mov    0xe99(%rip),%rax
mov    %rax,-0x24(%rbp)
mov    0xe96(%rip),%ax
mov    %ax,-0x1c(%rbp)
mov    0xe8e(%rip),%al
mov    %al,-0x1a(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1040 <memset@plt>
movb   $0x68,-0x90(%rbp)
movb   $0x65,-0x8f(%rbp)
movb   $0x6c,-0x8e(%rbp)
movb   $0x6c,-0x8d(%rbp)
movb   $0x6f,-0x8c(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rax
cmp    $0x5,%rax
jae    121e <check_nul+0xfe>
mov    -0x4(%rbp),%esi
movslq -0x4(%rbp),%rax
movsbl -0xd(%rbp,%rax,1),%edx
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
cmpb   $0x0,-0xd(%rbp,%rax,1)
jne    120b <check_nul+0xeb>
movl   $0x1,-0x8(%rbp)
jmp    121e <check_nul+0xfe>
jmp    1210 <check_nul+0xf0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c8 <check_nul+0xa8>
mov    -0x8(%rbp),%esi
lea    0xdf5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rax
cmp    $0x6,%rax
jae    1293 <check_nul+0x173>
mov    -0x4(%rbp),%esi
movslq -0x4(%rbp),%rax
movsbl -0x13(%rbp,%rax,1),%edx
lea    0xdb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
cmpb   $0x0,-0x13(%rbp,%rax,1)
jne    1280 <check_nul+0x160>
movl   $0x1,-0x8(%rbp)
jmp    1293 <check_nul+0x173>
jmp    1285 <check_nul+0x165>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    123d <check_nul+0x11d>
mov    -0x8(%rbp),%esi
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rax
cmp    $0x6,%rax
jae    1308 <check_nul+0x1e8>
mov    -0x4(%rbp),%esi
movslq -0x4(%rbp),%rax
movsbl -0x19(%rbp,%rax,1),%edx
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
cmpb   $0x0,-0x19(%rbp,%rax,1)
jne    12f5 <check_nul+0x1d5>
movl   $0x1,-0x8(%rbp)
jmp    1308 <check_nul+0x1e8>
jmp    12fa <check_nul+0x1da>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    12b2 <check_nul+0x192>
mov    -0x8(%rbp),%esi
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rax
cmp    $0xb,%rax
jae    137d <check_nul+0x25d>
mov    -0x4(%rbp),%esi
movslq -0x4(%rbp),%rax
movsbl -0x24(%rbp,%rax,1),%edx
lea    0xcce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
cmpb   $0x0,-0x24(%rbp,%rax,1)
jne    136a <check_nul+0x24a>
movl   $0x1,-0x8(%rbp)
jmp    137d <check_nul+0x25d>
jmp    136f <check_nul+0x24f>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1327 <check_nul+0x207>
mov    -0x8(%rbp),%esi
lea    0xc96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rax
cmp    $0x63,%rax
jae    13f8 <check_nul+0x2d8>
mov    -0x4(%rbp),%esi
movslq -0x4(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%edx
ff
lea    0xc56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
cmpb   $0x0,-0x90(%rbp,%rax,1)
jne    13e5 <check_nul+0x2c5>
movl   $0x1,-0x8(%rbp)
jmp    13f8 <check_nul+0x2d8>
jmp    13ea <check_nul+0x2ca>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    139c <check_nul+0x27c>
mov    -0x8(%rbp),%esi
lea    0xc1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_nul>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movl   $0x0,0x5f(%rsp)
movl   $0x6c6c6568,(%rsp)
movb   $0x6f,0x4(%rsp)
lea    0xeab(%rip),%r15
xor    %r14d,%r14d
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x68,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x65,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x4,%esi
mov    $0x6f,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe47(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x68,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x65,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x4,%esi
mov    $0x6f,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x5,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x68,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x65,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x4,%esi
mov    $0x6f,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x5,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x68,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x65,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x4,%esi
mov    $0x6f,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x5,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x68,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0x63,%rbp
je     1396 <check_nul+0x286>
movsbl (%rsp,%rbp,1),%ebx
mov    %r15,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x1,%rbp
test   %ebx,%ebx
jne    1370 <check_nul+0x260>
mov    $0x1,%r14d
lea    0xc6a(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@__const.check_nul.str1 = [5 x i8] c"hello"
@__const.check_nul.str2 = [6 x i8] c"hello\00"
@__const.check_nul.str3 = [6 x i8] c"hello\00"
@__const.check_nul.str4 = [11 x i8] c"hello\00world"
@.str = [7 x i8] c"%d:%c\0A\00"
@.str.1 = [12 x i8] c"has_nul:%d\0A\00"
define void @check_nul() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [5 x i8]
%4 = alloca [6 x i8]
%5 = alloca [6 x i8]
%6 = alloca [11 x i8]
%7 = alloca [99 x i8]
%8 = bitcast [5 x i8]* %3 to i8*
%9 = bitcast [6 x i8]* %4 to i8*
%10 = bitcast [6 x i8]* %5 to i8*
%11 = bitcast [11 x i8]* %6 to i8*
%12 = bitcast [99 x i8]* %7 to i8*
%13 = bitcast i8* %12 to <{ i8, i8, i8, i8, i8, [94 x i8] }>*
%14 = getelementptr inbounds <{ i8, i8, i8, i8, i8, [94 x i8] }>, <{ i8, i8, i8, i8, i8, [94 x i8] }>* %13, i32 0, i32 0
store i8 104, i8* %14
%15 = getelementptr inbounds <{ i8, i8, i8, i8, i8, [94 x i8] }>, <{ i8, i8, i8, i8, i8, [94 x i8] }>* %13, i32 0, i32 1
store i8 101, i8* %15
%16 = getelementptr inbounds <{ i8, i8, i8, i8, i8, [94 x i8] }>, <{ i8, i8, i8, i8, i8, [94 x i8] }>* %13, i32 0, i32 2
store i8 108, i8* %16
%17 = getelementptr inbounds <{ i8, i8, i8, i8, i8, [94 x i8] }>, <{ i8, i8, i8, i8, i8, [94 x i8] }>* %13, i32 0, i32 3
store i8 108, i8* %17
%18 = getelementptr inbounds <{ i8, i8, i8, i8, i8, [94 x i8] }>, <{ i8, i8, i8, i8, i8, [94 x i8] }>* %13, i32 0, i32 4
store i8 111, i8* %18
store i32 0, i32* %2
store i32 0, i32* %1
br label %19
19: ; preds = %38, %0
%20 = load i32, i32* %1
%21 = sext i32 %20 to i64
%22 = icmp ult i64 %21, 5
br i1 %22, label %23, label %41
23: ; preds = %19
%24 = load i32, i32* %1
%25 = load i32, i32* %1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 %26
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %24, i32 %29)
%31 = load i32, i32* %1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = icmp ne i8 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %23
store i32 1, i32* %2
br label %41
37: ; preds = %23
br label %38
38: ; preds = %37
%39 = load i32, i32* %1
%40 = add nsw i32 %39, 1
store i32 %40, i32* %1
br label %19
41: ; preds = %36, %19
%42 = load i32, i32* %2
%43 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %42)
store i32 0, i32* %2
store i32 0, i32* %1
br label %44
44: ; preds = %63, %41
%45 = load i32, i32* %1
%46 = sext i32 %45 to i64
%47 = icmp ult i64 %46, 6
br i1 %47, label %48, label %66
48: ; preds = %44
%49 = load i32, i32* %1
%50 = load i32, i32* %1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 %51
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %49, i32 %54)
%56 = load i32, i32* %1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 %57
%59 = load i8, i8* %58
%60 = icmp ne i8 %59, 0
br i1 %60, label %62, label %61
61: ; preds = %48
store i32 1, i32* %2
br label %66
62: ; preds = %48
br label %63
63: ; preds = %62
%64 = load i32, i32* %1
%65 = add nsw i32 %64, 1
store i32 %65, i32* %1
br label %44
66: ; preds = %61, %44
%67 = load i32, i32* %2
%68 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %67)
store i32 0, i32* %2
store i32 0, i32* %1
br label %69
69: ; preds = %88, %66
%70 = load i32, i32* %1
%71 = sext i32 %70 to i64
%72 = icmp ult i64 %71, 6
br i1 %72, label %73, label %91
73: ; preds = %69
%74 = load i32, i32* %1
%75 = load i32, i32* %1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 %76
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %74, i32 %79)
%81 = load i32, i32* %1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 %82
%84 = load i8, i8* %83
%85 = icmp ne i8 %84, 0
br i1 %85, label %87, label %86
86: ; preds = %73
store i32 1, i32* %2
br label %91
87: ; preds = %73
br label %88
88: ; preds = %87
%89 = load i32, i32* %1
%90 = add nsw i32 %89, 1
store i32 %90, i32* %1
br label %69
91: ; preds = %86, %69
%92 = load i32, i32* %2
%93 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %92)
store i32 0, i32* %2
store i32 0, i32* %1
br label %94
94: ; preds = %113, %91
%95 = load i32, i32* %1
%96 = sext i32 %95 to i64
%97 = icmp ult i64 %96, 11
br i1 %97, label %98, label %116
98: ; preds = %94
%99 = load i32, i32* %1
%100 = load i32, i32* %1
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 %101
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %99, i32 %104)
%106 = load i32, i32* %1
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 %107
%109 = load i8, i8* %108
%110 = icmp ne i8 %109, 0
br i1 %110, label %112, label %111
111: ; preds = %98
store i32 1, i32* %2
br label %116
112: ; preds = %98
br label %113
113: ; preds = %112
%114 = load i32, i32* %1
%115 = add nsw i32 %114, 1
store i32 %115, i32* %1
br label %94
116: ; preds = %111, %94
%117 = load i32, i32* %2
%118 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %117)
store i32 0, i32* %2
store i32 0, i32* %1
br label %119
119: ; preds = %138, %116
%120 = load i32, i32* %1
%121 = sext i32 %120 to i64
%122 = icmp ult i64 %121, 99
br i1 %122, label %123, label %141
123: ; preds = %119
%124 = load i32, i32* %1
%125 = load i32, i32* %1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [99 x i8], [99 x i8]* %7, i64 0, i64 %126
%128 = load i8, i8* %127
%129 = sext i8 %128 to i32
%130 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %124, i32 %129)
%131 = load i32, i32* %1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [99 x i8], [99 x i8]* %7, i64 0, i64 %132
%134 = load i8, i8* %133
%135 = icmp ne i8 %134, 0
br i1 %135, label %137, label %136
136: ; preds = %123
store i32 1, i32* %2
br label %141
137: ; preds = %123
br label %138
138: ; preds = %137
%139 = load i32, i32* %1
%140 = add nsw i32 %139, 1
store i32 %140, i32* %1
br label %119
141: ; preds = %136, %119
%142 = load i32, i32* %2
%143 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %142)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d:%c\0A\00"
@.str.1 = [12 x i8] c"has_nul:%d\0A\00"
define void @check_nul() {
%1 = alloca [99 x i8]
%2 = getelementptr inbounds [99 x i8], [99 x i8]* %1, i64 0, i64 0
store i8 104, i8* %2
%3 = getelementptr inbounds [99 x i8], [99 x i8]* %1, i64 0, i64 1
store i8 101, i8* %3
%4 = getelementptr inbounds [99 x i8], [99 x i8]* %1, i64 0, i64 2
store i8 108, i8* %4
%5 = getelementptr inbounds [99 x i8], [99 x i8]* %1, i64 0, i64 3
store i8 108, i8* %5
%6 = getelementptr inbounds [99 x i8], [99 x i8]* %1, i64 0, i64 4
store i8 111, i8* %6
%7 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 0, i32 104)
%8 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1, i32 101)
%9 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 2, i32 108)
%10 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 3, i32 108)
%11 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 4, i32 111)
%12 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 0)
%13 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 0, i32 104)
%14 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1, i32 101)
%15 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 2, i32 108)
%16 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 3, i32 108)
%17 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 4, i32 111)
%18 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 5, i32 0)
%19 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 1)
%20 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 0, i32 104)
%21 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1, i32 101)
%22 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 2, i32 108)
%23 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 3, i32 108)
%24 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 4, i32 111)
%25 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 5, i32 0)
%26 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 1)
%27 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 0, i32 104)
%28 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1, i32 101)
%29 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 2, i32 108)
%30 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 3, i32 108)
%31 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 4, i32 111)
%32 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 5, i32 0)
%33 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 1)
%34 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 0, i32 104)
br label %35
35: ; preds = %0, %39
%36 = phi i64 [ 0, %0 ], [ %37, %39 ]
%37 = add nuw nsw i64 %36, 1
%38 = icmp eq i64 %37, 99
br i1 %38, label %46, label %39
39: ; preds = %35
%40 = getelementptr inbounds [99 x i8], [99 x i8]* %1, i64 0, i64 %37
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = trunc i64 %37 to i32
%44 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %43, i32 %42)
%45 = icmp eq i8 %41, 0
br i1 %45, label %46, label %35
46: ; preds = %39, %35
%47 = phi i32 [ 0, %35 ], [ 1, %39 ]
%48 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %47)
ret void
}