#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct stat {
  int dummy;
};
struct TYPE_2__ {
  int *sa_data;
};
struct ifreq {
  TYPE_1__ ifr_hwaddr;
  int /*<<< orphan*/ ifr_name;
};

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SIOCGIFHWADDR;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ feof(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, unsigned int);
scalar_t__ fread(unsigned int *, int, int, int /*<<< orphan*/);
scalar_t__ ioctl(int, int /*<<< orphan*/, struct ifreq *);
int /*<<< orphan*/ rsa_encypher(unsigned int *, unsigned int *);
int /*<<< orphan*/ snprintf(char *, int, char *, int, int, int, int, int, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(int /*<<< orphan*/, char *);
int main(int argc, char **argv) {
  int size = 0;
  int index = 0;
  unsigned int data[2048] = {0};
  int skfd;
  struct ifreq ifr;
  char a[] = "00ffffffc034ffffff9f7749";
  char b[128] = {0};
  struct stat sbuf;
  char *hostname = NULL;
  skfd = socket(AF_INET, SOCK_DGRAM, 0);
  if (skfd >= 0) {
    strcpy(ifr.ifr_name, "eth0");
    if (ioctl(skfd, SIOCGIFHWADDR, &ifr) >= 0) {
      snprintf(b, 127, "%02x%02x%02x%02x%02x%02x", ifr.ifr_hwaddr.sa_data[0],
               ifr.ifr_hwaddr.sa_data[1], ifr.ifr_hwaddr.sa_data[3],
               ifr.ifr_hwaddr.sa_data[2], ifr.ifr_hwaddr.sa_data[4],
               ifr.ifr_hwaddr.sa_data[5]);
    }
    close(skfd);
  }
  if (0 != strcmp(a, b)) {
    while (654321 / 123456)
      ;
    exit(0);
  }
  while (!feof(stdin)) {
    size += fread(data + index, 8, 1, stdin);
    index += 2;
  }
  index = 0;
  while (index < size * 2) {
    rsa_encypher(data + index, data + index + 1);
    index += 2;
  }
  for (index = 0; index < size * 2; index++) {
    fprintf(stdout, "%08lx", *(data + index));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2110,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    -0x2020(%rbp),%rdi
xor    %esi,%esi
mov    $0x2000,%edx
call   1060 <memset@plt>
mov    0xe0f(%rip),%rax
mov    %rax,-0x2060(%rbp)
mov    0xe09(%rip),%rax
mov    %rax,-0x2058(%rbp)
mov    0xe03(%rip),%rax
mov    %rax,-0x2050(%rbp)
mov    0xdfe(%rip),%al
mov    %al,-0x2048(%rbp)
lea    -0x20e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1060 <memset@plt>
movq   $0x0,-0x20f0(%rbp)
mov    0x2da3(%rip),%rax
mov    (%rax),%edi
mov    0x2d8a(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
mov    %eax,-0x2024(%rbp)
cmpl   $0x0,-0x2024(%rbp)
jl     1310 <main+0x160>
mov    -0x2030(%rbp),%edi
lea    0xda2(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x2024(%rbp),%edi
mov    0x2d3f(%rip),%rax
mov    (%rax),%esi
lea    -0x2038(%rbp),%rdx
call   1080 <ioctl@plt>
cmp    $0x0,%rax
jl     1305 <main+0x155>
lea    -0x20e0(%rbp),%rdi
mov    -0x2038(%rbp),%rax
mov    (%rax),%ecx
mov    -0x2038(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x2038(%rbp),%rax
mov    0xc(%rax),%r9d
mov    -0x2038(%rbp),%rax
mov    0x8(%rax),%r11d
mov    -0x2038(%rbp),%rax
mov    0x10(%rax),%r10d
mov    -0x2038(%rbp),%rax
mov    0x14(%rax),%eax
mov    $0x7f,%esi
lea    0xd2b(%rip),%rdx
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <snprintf@plt>
mov    -0x2024(%rbp),%edi
call   1090 <close@plt>
lea    -0x2060(%rbp),%rdi
lea    -0x20e0(%rbp),%rsi
call   10a0 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     133b <main+0x18b>
jmp    1336 <main+0x186>
jmp    1336 <main+0x186>
jmp    1340 <main+0x190>
mov    0x2c99(%rip),%rax
mov    (%rax),%edi
call   10c0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1363 <main+0x1b3>
jmp    13a8 <main+0x1f8>
lea    -0x2020(%rbp),%rdi
movslq -0x18(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    0x2c64(%rip),%rax
mov    (%rax),%ecx
mov    $0x8,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    1340 <main+0x190>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jge    13fb <main+0x24b>
lea    -0x2020(%rbp),%rdi
movslq -0x18(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
lea    -0x2020(%rbp),%rsi
movslq -0x18(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
add    $0x4,%rsi
call   1070 <rsa_encypher@plt>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    13af <main+0x1ff>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jge    1441 <main+0x291>
mov    0x2ba6(%rip),%rax
mov    (%rax),%edi
movslq -0x18(%rbp),%rax
mov    -0x2020(%rbp,%rax,4),%edx
lea    0xc09(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1402 <main+0x252>
xor    %eax,%eax
add    $0x2110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20b0,%rsp
lea    0xb0(%rsp),%rbx
mov    $0x2000,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
movups 0xe2c(%rip),%xmm0
movups %xmm0,0x19(%rsp)
movaps 0xe17(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
mov    0x2da6(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
test   %eax,%eax
js     12a8 <main+0xf8>
mov    %eax,%ebp
lea    0xdd1(%rip),%rsi
call   1030 <strcpy@plt>
mov    0x2d74(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
mov    %ebp,%edi
call   1080 <ioctl@plt>
test   %rax,%rax
js     12a1 <main+0xf1>
mov    (%rsp),%rax
mov    (%rax),%ecx
mov    0x4(%rax),%r8d
mov    0xc(%rax),%r9d
mov    0x8(%rax),%r10d
mov    0x10(%rax),%r11d
mov    0x14(%rax),%eax
sub    $0x8,%rsp
lea    0xd95(%rip),%rdx
lea    0x38(%rsp),%rdi
mov    $0x7f,%esi
push   %rax
push   %r11
push   %r10
call   1050 <snprintf@plt>
add    $0x20,%rsp
mov    %ebp,%edi
call   1090 <close@plt>
lea    0x10(%rsp),%rdi
lea    0x30(%rsp),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     12c2 <main+0x112>
nopl   0x0(%rax)
jmp    12c0 <main+0x110>
mov    0x2d17(%rip),%r14
mov    (%r14),%edi
call   10c0 <feof@plt>
test   %eax,%eax
je     12e7 <main+0x137>
xor    %eax,%eax
add    $0x20b0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r12d,%r12d
nopw   0x0(%rax,%rax,1)
mov    (%r14),%ecx
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
add    %eax,%r12d
mov    (%r14),%edi
call   10c0 <feof@plt>
add    $0x8,%rbx
test   %eax,%eax
je     12f0 <main+0x140>
test   %r12d,%r12d
jle    12d5 <main+0x125>
lea    (%r12,%r12,1),%r14d
movslq %r14d,%r15
lea    0xb0(%rsp),%rbx
xor    %ebp,%ebp
xchg   %ax,%ax
lea    0x4(%rbx),%rsi
mov    %rbx,%rdi
call   1070 <rsa_encypher@plt>
add    $0x2,%rbp
add    $0x8,%rbx
cmp    %r15,%rbp
jl     1330 <main+0x180>
test   %r12d,%r12d
jle    12d5 <main+0x125>
cmp    $0x2,%r14d
mov    $0x1,%ebp
cmovge %r14d,%ebp
xor    %ebx,%ebx
mov    0x2c5c(%rip),%r15
lea    0xccc(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    (%r15),%edi
mov    0xb0(%rsp,%rbx,4),%edx
mov    %r14,%rsi
call   10b0 <fprintf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1370 <main+0x1c0>
jmp    12d5 <main+0x125>

LLVM IR (-O0):
%struct.ifreq = type { %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32* }
%struct.stat = type { i32 }
@__const.main.a = [25 x i8] c"00ffffffc034ffffff9f7749\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str = [5 x i8] c"eth0\00"
@SIOCGIFHWADDR = global i32 0
@.str.1 = [25 x i8] c"%02x%02x%02x%02x%02x%02x\00"
@stdin = global i32 0
@stdout = global i32 0
@.str.2 = [6 x i8] c"%08lx\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [2048 x i32]
%9 = alloca i32
%10 = alloca %struct.ifreq
%11 = alloca [25 x i8]
%12 = alloca [128 x i8]
%13 = alloca %struct.stat
%14 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
%15 = bitcast [2048 x i32]* %8 to i8*
%16 = bitcast [25 x i8]* %11 to i8*
%17 = bitcast [128 x i8]* %12 to i8*
store i8* null, i8** %14
%18 = load i32, i32* @AF_INET
%19 = load i32, i32* @SOCK_DGRAM
%20 = call i32 @socket(i32 %18, i32 %19, i32 0)
store i32 %20, i32* %9
%21 = load i32, i32* %9
%22 = icmp sge i32 %21, 0
br i1 %22, label %23, label %67
23: ; preds = %2
%24 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 1
%25 = load i32, i32* %24
%26 = call i32 @strcpy(i32 %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%27 = load i32, i32* %9
%28 = load i32, i32* @SIOCGIFHWADDR
%29 = call i64 @ioctl(i32 %27, i32 %28, %struct.ifreq* %10)
%30 = icmp sge i64 %29, 0
br i1 %30, label %31, label %64
31: ; preds = %23
%32 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%33 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 0
%34 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %33, i32 0, i32 0
%35 = load i32*, i32** %34
%36 = getelementptr inbounds i32, i32* %35, i64 0
%37 = load i32, i32* %36
%38 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 0
%39 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %38, i32 0, i32 0
%40 = load i32*, i32** %39
%41 = getelementptr inbounds i32, i32* %40, i64 1
%42 = load i32, i32* %41
%43 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 0
%44 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %43, i32 0, i32 0
%45 = load i32*, i32** %44
%46 = getelementptr inbounds i32, i32* %45, i64 3
%47 = load i32, i32* %46
%48 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 0
%49 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %48, i32 0, i32 0
%50 = load i32*, i32** %49
%51 = getelementptr inbounds i32, i32* %50, i64 2
%52 = load i32, i32* %51
%53 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 0
%54 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %53, i32 0, i32 0
%55 = load i32*, i32** %54
%56 = getelementptr inbounds i32, i32* %55, i64 4
%57 = load i32, i32* %56
%58 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 0
%59 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %58, i32 0, i32 0
%60 = load i32*, i32** %59
%61 = getelementptr inbounds i32, i32* %60, i64 5
%62 = load i32, i32* %61
%63 = call i32 @snprintf(i8* %32, i32 127, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %37, i32 %42, i32 %47, i32 %52, i32 %57, i32 %62)
br label %64
64: ; preds = %31, %23
%65 = load i32, i32* %9
%66 = call i32 @close(i32 %65)
br label %67
67: ; preds = %64, %2
%68 = getelementptr inbounds [25 x i8], [25 x i8]* %11, i64 0, i64 0
%69 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%70 = call i64 @strcmp(i8* %68, i8* %69)
%71 = icmp ne i64 0, %70
br i1 %71, label %72, label %74
72: ; preds = %67
br label %73
73: ; preds = %72, %73
br label %73
74: ; preds = %67
br label %75
75: ; preds = %80, %74
%76 = load i32, i32* @stdin
%77 = call i32 @feof(i32 %76)
%78 = icmp ne i32 %77, 0
%79 = xor i1 %78, true
br i1 %79, label %80, label %93
80: ; preds = %75
%81 = getelementptr inbounds [2048 x i32], [2048 x i32]* %8, i64 0, i64 0
%82 = load i32, i32* %7
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, i32* %81, i64 %83
%85 = load i32, i32* @stdin
%86 = call i64 @fread(i32* %84, i32 8, i32 1, i32 %85)
%87 = load i32, i32* %6
%88 = sext i32 %87 to i64
%89 = add nsw i64 %88, %86
%90 = trunc i64 %89 to i32
store i32 %90, i32* %6
%91 = load i32, i32* %7
%92 = add nsw i32 %91, 2
store i32 %92, i32* %7
br label %75
93: ; preds = %75
store i32 0, i32* %7
br label %94
94: ; preds = %99, %93
%95 = load i32, i32* %7
%96 = load i32, i32* %6
%97 = mul nsw i32 %96, 2
%98 = icmp slt i32 %95, %97
br i1 %98, label %99, label %112
99: ; preds = %94
%100 = getelementptr inbounds [2048 x i32], [2048 x i32]* %8, i64 0, i64 0
%101 = load i32, i32* %7
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, i32* %100, i64 %102
%104 = getelementptr inbounds [2048 x i32], [2048 x i32]* %8, i64 0, i64 0
%105 = load i32, i32* %7
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, i32* %104, i64 %106
%108 = getelementptr inbounds i32, i32* %107, i64 1
%109 = call i32 @rsa_encypher(i32* %103, i32* %108)
%110 = load i32, i32* %7
%111 = add nsw i32 %110, 2
store i32 %111, i32* %7
br label %94
112: ; preds = %94
store i32 0, i32* %7
br label %113
113: ; preds = %126, %112
%114 = load i32, i32* %7
%115 = load i32, i32* %6
%116 = mul nsw i32 %115, 2
%117 = icmp slt i32 %114, %116
br i1 %117, label %118, label %129
118: ; preds = %113
%119 = load i32, i32* @stdout
%120 = getelementptr inbounds [2048 x i32], [2048 x i32]* %8, i64 0, i64 0
%121 = load i32, i32* %7
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, i32* %120, i64 %122
%124 = load i32, i32* %123
%125 = call i32 @fprintf(i32 %119, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %124)
br label %126
126: ; preds = %118
%127 = load i32, i32* %7
%128 = add nsw i32 %127, 1
store i32 %128, i32* %7
br label %113
129: ; preds = %113
ret i32 0
}

LLVM IR (-O2):
%struct.ifreq = type { %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32* }
@__const.main.a = [25 x i8] c"00ffffffc034ffffff9f7749\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str = [5 x i8] c"eth0\00"
@SIOCGIFHWADDR = global i32 0
@.str.1 = [25 x i8] c"%02x%02x%02x%02x%02x%02x\00"
@stdin = global i32 0
@stdout = global i32 0
@.str.2 = [6 x i8] c"%08lx\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2048 x i32]
%4 = alloca %struct.ifreq
%5 = alloca [25 x i8]
%6 = alloca [128 x i8]
%7 = bitcast [2048 x i32]* %3 to i8*
%8 = bitcast %struct.ifreq* %4 to i8*
%9 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%11 = load i32, i32* @AF_INET
%12 = load i32, i32* @SOCK_DGRAM
%13 = tail call i32 @socket(i32 %11, i32 %12, i32 0)
%14 = icmp sgt i32 %13, -1
br i1 %14, label %15, label %37
15: ; preds = %2
%16 = tail call i32 @strcpy(i32 undef, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* @SIOCGIFHWADDR
%18 = call i64 @ioctl(i32 %13, i32 %17, %struct.ifreq* %4)
%19 = icmp sgt i64 %18, -1
br i1 %19, label %20, label %35
20: ; preds = %15
%21 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %4, i64 0, i32 0, i32 0
%22 = load i32*, i32** %21
%23 = load i32, i32* %22
%24 = getelementptr inbounds i32, i32* %22, i64 1
%25 = load i32, i32* %24
%26 = getelementptr inbounds i32, i32* %22, i64 3
%27 = load i32, i32* %26
%28 = getelementptr inbounds i32, i32* %22, i64 2
%29 = load i32, i32* %28
%30 = getelementptr inbounds i32, i32* %22, i64 4
%31 = load i32, i32* %30
%32 = getelementptr inbounds i32, i32* %22, i64 5
%33 = load i32, i32* %32
%34 = call i32 @snprintf(i8* %10, i32 127, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %23, i32 %25, i32 %27, i32 %29, i32 %31, i32 %33)
br label %35
35: ; preds = %20, %15
%36 = call i32 @close(i32 %13)
br label %37
37: ; preds = %35, %2
%38 = call i64 @strcmp(i8* %9, i8* %10)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %37
%41 = load i32, i32* @stdin
%42 = call i32 @feof(i32 %41)
%43 = icmp eq i32 %42, 0
br i1 %43, label %50, label %81
44: ; preds = %37, %44
br label %44
45: ; preds = %50
%46 = shl i32 %57, 1
%47 = icmp sgt i32 %57, 0
br i1 %47, label %48, label %81
48: ; preds = %45
%49 = sext i32 %46 to i64
br label %66
50: ; preds = %40, %50
%51 = phi i64 [ %58, %50 ], [ 0, %40 ]
%52 = phi i32 [ %57, %50 ], [ 0, %40 ]
%53 = getelementptr inbounds [2048 x i32], [2048 x i32]* %3, i64 0, i64 %51
%54 = load i32, i32* @stdin
%55 = call i64 @fread(i32* %53, i32 8, i32 1, i32 %54)
%56 = trunc i64 %55 to i32
%57 = add i32 %52, %56
%58 = add nuw i64 %51, 2
%59 = load i32, i32* @stdin
%60 = call i32 @feof(i32 %59)
%61 = icmp eq i32 %60, 0
br i1 %61, label %50, label %45
62: ; preds = %66
br i1 %47, label %63, label %81
63: ; preds = %62
%64 = call i32 @llvm.smax.i32(i32 %46, i32 1)
%65 = zext i32 %64 to i64
br label %73
66: ; preds = %48, %66
%67 = phi i64 [ 0, %48 ], [ %71, %66 ]
%68 = getelementptr inbounds [2048 x i32], [2048 x i32]* %3, i64 0, i64 %67
%69 = getelementptr inbounds i32, i32* %68, i64 1
%70 = call i32 @rsa_encypher(i32* %68, i32* %69)
%71 = add nuw nsw i64 %67, 2
%72 = icmp slt i64 %71, %49
br i1 %72, label %66, label %62
73: ; preds = %63, %73
%74 = phi i64 [ 0, %63 ], [ %79, %73 ]
%75 = load i32, i32* @stdout
%76 = getelementptr inbounds [2048 x i32], [2048 x i32]* %3, i64 0, i64 %74
%77 = load i32, i32* %76
%78 = call i32 @fprintf(i32 %75, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %77)
%79 = add nuw nsw i64 %74, 1
%80 = icmp eq i64 %79, %65
br i1 %80, label %81, label %73
81: ; preds = %73, %40, %45, %62
ret i32 0
}