#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*/ O_RDONLY;
int /*<<< orphan*/ close(int);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int read(int, unsigned char *, int);
scalar_t__ sprintf(unsigned char *, char *, ...);
int main() {
  int fd = 0;
  int counter = 0;
  unsigned char cmos[80];
  unsigned char buf[100];
  if ((fd = open("/dev/cmos0", O_RDONLY)) < 0) {
    printf("fopen failed!\n");
    return 0;
  }
  if (read(fd, cmos, 80) != 80) {
    printf("read error\n");
    return 0;
  }
  counter += sprintf(buf + counter, "Time now: ");
  counter += sprintf(buf + counter, "Year: 20%d ",
                     ((cmos[9] & 0xF0) >> 4) * 10 + (cmos[9] & 0x0F));
  counter += sprintf(buf + counter, "month: %d ",
                     ((cmos[8] & 0xF0) >> 4) * 10 + (cmos[8] & 0x0F));
  counter += sprintf(buf + counter, "day: %d ",
                     ((cmos[7] & 0xF0) >> 4) * 10 + (cmos[7] & 0x0F));
  counter += sprintf(buf + counter, "hour: %d ",
                     ((cmos[4] & 0xF0) >> 4) * 10 + (cmos[4] & 0x0F));
  counter += sprintf(buf + counter, "minute: %d ",
                     ((cmos[2] & 0xF0) >> 4) * 10 + (cmos[2] & 0x0F));
  counter += sprintf(buf + counter, "second: %d \n",
                     ((cmos[0] & 0xF0) >> 4) * 10 + (cmos[0] & 0x0F));
  printf("%s", buf);
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xe80(%rip),%rdi
call   1060 <open@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jge    11ab <main+0x5b>
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13b2 <main+0x262>
mov    -0x8(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x50,%edx
call   1050 <read@plt>
cmp    $0x50,%eax
je     11df <main+0x8f>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13b2 <main+0x262>
lea    -0xd0(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
lea    0xe32(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
lea    -0xd0(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
movzbl -0x57(%rbp),%eax
and    $0xf0,%eax
sar    $0x4,%eax
imul   $0xa,%eax,%edx
movzbl -0x57(%rbp),%eax
and    $0xf,%eax
add    %eax,%edx
lea    0xdfc(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
lea    -0xd0(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
movzbl -0x58(%rbp),%eax
and    $0xf0,%eax
sar    $0x4,%eax
imul   $0xa,%eax,%edx
movzbl -0x58(%rbp),%eax
and    $0xf,%eax
add    %eax,%edx
lea    0xdc7(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
lea    -0xd0(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
movzbl -0x59(%rbp),%eax
and    $0xf0,%eax
sar    $0x4,%eax
imul   $0xa,%eax,%edx
movzbl -0x59(%rbp),%eax
and    $0xf,%eax
add    %eax,%edx
lea    0xd91(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
lea    -0xd0(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
movzbl -0x5c(%rbp),%eax
and    $0xf0,%eax
sar    $0x4,%eax
imul   $0xa,%eax,%edx
movzbl -0x5c(%rbp),%eax
and    $0xf,%eax
add    %eax,%edx
lea    0xd59(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
lea    -0xd0(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
movzbl -0x5e(%rbp),%eax
and    $0xf0,%eax
sar    $0x4,%eax
imul   $0xa,%eax,%edx
movzbl -0x5e(%rbp),%eax
and    $0xf,%eax
add    %eax,%edx
lea    0xd22(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
lea    -0xd0(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
movzbl -0x60(%rbp),%eax
and    $0xf0,%eax
sar    $0x4,%eax
imul   $0xa,%eax,%edx
movzbl -0x60(%rbp),%eax
and    $0xf,%eax
add    %eax,%edx
lea    0xced(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
lea    -0xd0(%rbp),%rsi
lea    0xcd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
call   1040 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0xb8,%rsp
mov    0x2e74(%rip),%rax
mov    (%rax),%esi
lea    0xe83(%rip),%rdi
call   1070 <open@plt>
test   %eax,%eax
js     12f7 <main+0x197>
mov    %eax,%r15d
mov    %rsp,%rsi
mov    %eax,%edi
mov    $0x50,%edx
call   1060 <read@plt>
cmp    $0x50,%eax
jne    1300 <main+0x1a0>
lea    0xe5f(%rip),%rsi
lea    0x50(%rsp),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %rax,%rbx
movslq %ebx,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x50,%rdi
movzbl 0x9(%rsp),%eax
mov    %eax,%ecx
shr    $0x4,%ecx
lea    (%rcx,%rcx,4),%ecx
and    $0xf,%eax
lea    (%rax,%rcx,2),%edx
lea    0xe33(%rip),%rsi
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %rax,%rbp
add    %rbx,%rbp
movslq %ebp,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x50,%rdi
movzbl 0x8(%rsp),%eax
mov    %eax,%ecx
shr    $0x4,%ecx
lea    (%rcx,%rcx,4),%ecx
and    $0xf,%eax
lea    (%rax,%rcx,2),%edx
lea    0xe0d(%rip),%rsi
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %rax,%rbx
add    %rbp,%rbx
movslq %ebx,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x50,%rdi
movzbl 0x7(%rsp),%eax
mov    %eax,%ecx
shr    $0x4,%ecx
lea    (%rcx,%rcx,4),%ecx
and    $0xf,%eax
lea    (%rax,%rcx,2),%edx
lea    0xde6(%rip),%rsi
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %rax,%rbp
add    %rbx,%rbp
movslq %ebp,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x50,%rdi
movzbl 0x4(%rsp),%eax
mov    %eax,%ecx
shr    $0x4,%ecx
lea    (%rcx,%rcx,4),%ecx
and    $0xf,%eax
lea    (%rax,%rcx,2),%edx
lea    0xdbd(%rip),%rsi
xor    %eax,%eax
call   1080 <sprintf@plt>
add    %rbp,%rax
movslq %eax,%rbx
lea    (%rsp,%rbx,1),%rdi
add    $0x50,%rdi
movzbl 0x2(%rsp),%eax
mov    %eax,%ecx
shr    $0x4,%ecx
lea    (%rcx,%rcx,4),%ecx
and    $0xf,%eax
lea    (%rax,%rcx,2),%edx
lea    0xd98(%rip),%rsi
xor    %eax,%eax
call   1080 <sprintf@plt>
add    %eax,%ebx
movslq %ebx,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x50,%rdi
movzbl (%rsp),%eax
mov    %eax,%ecx
shr    $0x4,%ecx
lea    (%rcx,%rcx,4),%ecx
and    $0xf,%eax
lea    (%rax,%rcx,2),%edx
lea    0xd77(%rip),%rsi
xor    %eax,%eax
call   1080 <sprintf@plt>
lea    0xd76(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15d,%edi
call   1050 <close@plt>
jmp    130c <main+0x1ac>
lea    0xd69(%rip),%rdi
jmp    1307 <main+0x1a7>
lea    0xd55(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"/dev/cmos0\00"
@O_RDONLY = global i32 0
@.str.1 = [15 x i8] c"fopen failed!\0A\00"
@.str.2 = [12 x i8] c"read error\0A\00"
@.str.3 = [11 x i8] c"Time now: \00"
@.str.4 = [12 x i8] c"Year: 20%d \00"
@.str.5 = [11 x i8] c"month: %d \00"
@.str.6 = [9 x i8] c"day: %d \00"
@.str.7 = [10 x i8] c"hour: %d \00"
@.str.8 = [12 x i8] c"minute: %d \00"
@.str.9 = [13 x i8] c"second: %d \0A\00"
@.str.10 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [80 x i8]
%5 = alloca [100 x i8]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
%6 = load i32, i32* @O_RDONLY
%7 = call i32 @open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %6)
store i32 %7, i32* %2
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %152
11: ; preds = %0
%12 = load i32, i32* %2
%13 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%14 = call i32 @read(i32 %12, i8* %13, i32 80)
%15 = icmp ne i32 %14, 80
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %152
18: ; preds = %11
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, i8* %19, i64 %21
%23 = call i64 (i8*, i8*, ...) @sprintf(i8* %22, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = add nsw i64 %25, %23
%27 = trunc i64 %26 to i32
store i32 %27, i32* %3
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%29 = load i32, i32* %3
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, i8* %28, i64 %30
%32 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 9
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
%35 = and i32 %34, 240
%36 = ashr i32 %35, 4
%37 = mul nsw i32 %36, 10
%38 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 9
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = and i32 %40, 15
%42 = add nsw i32 %37, %41
%43 = call i64 (i8*, i8*, ...) @sprintf(i8* %31, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %3
%45 = sext i32 %44 to i64
%46 = add nsw i64 %45, %43
%47 = trunc i64 %46 to i32
store i32 %47, i32* %3
%48 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%49 = load i32, i32* %3
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, i8* %48, i64 %50
%52 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 8
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = and i32 %54, 240
%56 = ashr i32 %55, 4
%57 = mul nsw i32 %56, 10
%58 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 8
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = and i32 %60, 15
%62 = add nsw i32 %57, %61
%63 = call i64 (i8*, i8*, ...) @sprintf(i8* %51, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %62)
%64 = load i32, i32* %3
%65 = sext i32 %64 to i64
%66 = add nsw i64 %65, %63
%67 = trunc i64 %66 to i32
store i32 %67, i32* %3
%68 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%69 = load i32, i32* %3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %68, i64 %70
%72 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 7
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = and i32 %74, 240
%76 = ashr i32 %75, 4
%77 = mul nsw i32 %76, 10
%78 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 7
%79 = load i8, i8* %78
%80 = zext i8 %79 to i32
%81 = and i32 %80, 15
%82 = add nsw i32 %77, %81
%83 = call i64 (i8*, i8*, ...) @sprintf(i8* %71, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %82)
%84 = load i32, i32* %3
%85 = sext i32 %84 to i64
%86 = add nsw i64 %85, %83
%87 = trunc i64 %86 to i32
store i32 %87, i32* %3
%88 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%89 = load i32, i32* %3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, i8* %88, i64 %90
%92 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 4
%93 = load i8, i8* %92
%94 = zext i8 %93 to i32
%95 = and i32 %94, 240
%96 = ashr i32 %95, 4
%97 = mul nsw i32 %96, 10
%98 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 4
%99 = load i8, i8* %98
%100 = zext i8 %99 to i32
%101 = and i32 %100, 15
%102 = add nsw i32 %97, %101
%103 = call i64 (i8*, i8*, ...) @sprintf(i8* %91, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %102)
%104 = load i32, i32* %3
%105 = sext i32 %104 to i64
%106 = add nsw i64 %105, %103
%107 = trunc i64 %106 to i32
store i32 %107, i32* %3
%108 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%109 = load i32, i32* %3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %108, i64 %110
%112 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 2
%113 = load i8, i8* %112
%114 = zext i8 %113 to i32
%115 = and i32 %114, 240
%116 = ashr i32 %115, 4
%117 = mul nsw i32 %116, 10
%118 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 2
%119 = load i8, i8* %118
%120 = zext i8 %119 to i32
%121 = and i32 %120, 15
%122 = add nsw i32 %117, %121
%123 = call i64 (i8*, i8*, ...) @sprintf(i8* %111, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %122)
%124 = load i32, i32* %3
%125 = sext i32 %124 to i64
%126 = add nsw i64 %125, %123
%127 = trunc i64 %126 to i32
store i32 %127, i32* %3
%128 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%129 = load i32, i32* %3
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, i8* %128, i64 %130
%132 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%133 = load i8, i8* %132
%134 = zext i8 %133 to i32
%135 = and i32 %134, 240
%136 = ashr i32 %135, 4
%137 = mul nsw i32 %136, 10
%138 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%139 = load i8, i8* %138
%140 = zext i8 %139 to i32
%141 = and i32 %140, 15
%142 = add nsw i32 %137, %141
%143 = call i64 (i8*, i8*, ...) @sprintf(i8* %131, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %142)
%144 = load i32, i32* %3
%145 = sext i32 %144 to i64
%146 = add nsw i64 %145, %143
%147 = trunc i64 %146 to i32
store i32 %147, i32* %3
%148 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %148)
%150 = load i32, i32* %2
%151 = call i32 @close(i32 %150)
store i32 0, i32* %1
br label %152
152: ; preds = %18, %16, %9
%153 = load i32, i32* %1
ret i32 %153
}

LLVM IR (-O2):
@.str = [11 x i8] c"/dev/cmos0\00"
@O_RDONLY = global i32 0
@.str.3 = [11 x i8] c"Time now: \00"
@.str.4 = [12 x i8] c"Year: 20%d \00"
@.str.5 = [11 x i8] c"month: %d \00"
@.str.6 = [9 x i8] c"day: %d \00"
@.str.7 = [10 x i8] c"hour: %d \00"
@.str.8 = [12 x i8] c"minute: %d \00"
@.str.9 = [13 x i8] c"second: %d \0A\00"
@.str.10 = [3 x i8] c"%s\00"
@str = [11 x i8] c"read error\00"
@str.11 = [14 x i8] c"fopen failed!\00"
define i32 @main() {
%1 = alloca [80 x i8]
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%5 = load i32, i32* @O_RDONLY
%6 = tail call i32 @open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.11, i64 0, i64 0))
br label %89
10: ; preds = %0
%11 = call i32 @read(i32 %6, i8* %3, i32 80)
%12 = icmp eq i32 %11, 80
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
br label %89
15: ; preds = %10
%16 = call i64 (i8*, i8*, ...) @sprintf(i8* %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%17 = shl i64 %16, 32
%18 = ashr exact i64 %17, 32
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %18
%20 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 9
%21 = load i8, i8* %20
%22 = zext i8 %21 to i32
%23 = lshr i32 %22, 4
%24 = mul nuw nsw i32 %23, 10
%25 = and i32 %22, 15
%26 = add nuw nsw i32 %24, %25
%27 = call i64 (i8*, i8*, ...) @sprintf(i8* %19, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = add i64 %27, %16
%29 = shl i64 %28, 32
%30 = ashr exact i64 %29, 32
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %30
%32 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 8
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
%35 = lshr i32 %34, 4
%36 = mul nuw nsw i32 %35, 10
%37 = and i32 %34, 15
%38 = add nuw nsw i32 %36, %37
%39 = call i64 (i8*, i8*, ...) @sprintf(i8* %31, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %38)
%40 = add i64 %39, %28
%41 = shl i64 %40, 32
%42 = ashr exact i64 %41, 32
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %42
%44 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 7
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = lshr i32 %46, 4
%48 = mul nuw nsw i32 %47, 10
%49 = and i32 %46, 15
%50 = add nuw nsw i32 %48, %49
%51 = call i64 (i8*, i8*, ...) @sprintf(i8* %43, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %50)
%52 = add i64 %51, %40
%53 = shl i64 %52, 32
%54 = ashr exact i64 %53, 32
%55 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %54
%56 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 4
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = lshr i32 %58, 4
%60 = mul nuw nsw i32 %59, 10
%61 = and i32 %58, 15
%62 = add nuw nsw i32 %60, %61
%63 = call i64 (i8*, i8*, ...) @sprintf(i8* %55, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %62)
%64 = add i64 %63, %52
%65 = shl i64 %64, 32
%66 = ashr exact i64 %65, 32
%67 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %66
%68 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 2
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = lshr i32 %70, 4
%72 = mul nuw nsw i32 %71, 10
%73 = and i32 %70, 15
%74 = add nuw nsw i32 %72, %73
%75 = call i64 (i8*, i8*, ...) @sprintf(i8* %67, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %74)
%76 = add i64 %75, %64
%77 = shl i64 %76, 32
%78 = ashr exact i64 %77, 32
%79 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %78
%80 = load i8, i8* %3
%81 = zext i8 %80 to i32
%82 = lshr i32 %81, 4
%83 = mul nuw nsw i32 %82, 10
%84 = and i32 %81, 15
%85 = add nuw nsw i32 %83, %84
%86 = call i64 (i8*, i8*, ...) @sprintf(i8* %79, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %85)
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %4)
%88 = call i32 @close(i32 %6)
br label %89
89: ; preds = %15, %13, %8
ret i32 0
}