#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 */
typedef int uint32_t;
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int int16_t;
typedef int /*<<< orphan*/ command;
typedef int /*<<< orphan*/ addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ MSG_NOSIGNAL;
int /*<<< orphan*/ MSG_WAITALL;
int /*<<< orphan*/ SOCK_STREAM;
int abs(int);
scalar_t__ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
int *malloc(int);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ recv(int, int *, int, int /*<<< orphan*/);
int /*<<< orphan*/ send(int, int *, int, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int main() {
  int i, sock;
  struct sockaddr_in addr;
  int16_t *data, d, dmax;
  uint32_t command[3];
  data = malloc(8 * 4194304);
  if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
    perror("socket");
    return 1;
  }
  memset(&addr, 0, sizeof(addr));
  addr.sin_family = AF_INET;
  addr.sin_addr.s_addr = inet_addr("192.168.1.100");
  addr.sin_port = htons(1001);
  if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
    perror("connect");
    return 1;
  }
  command[0] = 8;
  command[1] = (1 << 28) + 10000000;
  command[2] = (2 << 28) + 10000000;
  send(sock, command, sizeof(command), MSG_NOSIGNAL);
  while (1) {
    recv(sock, data, 8 * 4194304, MSG_WAITALL);
    dmax = 0;
    for (i = 4; i < 4194304; i += 4) {
      d = abs(data[i] - data[i - 4]);
      if (dmax < d)
        dmax = d;
    }
    if (dmax > 50)
      printf("%d\n", dmax);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x2000000,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
mov    0x2dfb(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jge    120a <main+0x5a>
lea    0xe07(%rip),%rdi
call   10b0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    133f <main+0x18f>
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2dc7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
lea    0xdda(%rip),%rdi
call   1090 <inet_addr@plt>
mov    %eax,-0x14(%rbp)
mov    $0x3e9,%edi
call   1050 <htons@plt>
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x18(%rbp),%rsi
mov    $0xc,%edx
call   10c0 <connect@plt>
cmp    $0x0,%rax
jge    1275 <main+0xc5>
lea    0xdb1(%rip),%rdi
call   10b0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    133f <main+0x18f>
movl   $0x8,-0x34(%rbp)
movl   $0x10989680,-0x30(%rbp)
movl   $0x20989680,-0x2c(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x34(%rbp),%rsi
mov    0x2d38(%rip),%rax
mov    (%rax),%ecx
mov    $0xc,%edx
call   1060 <send@plt>
mov    -0xc(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    0x2d0e(%rip),%rax
mov    (%rax),%ecx
mov    $0x2000000,%edx
call   1030 <recv@plt>
movl   $0x0,-0x28(%rbp)
movl   $0x4,-0x8(%rbp)
cmpl   $0x400000,-0x8(%rbp)
jge    1321 <main+0x171>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x20(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x4,%ecx
movslq %ecx,%rcx
sub    (%rax,%rcx,4),%edi
call   1040 <abs@plt>
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    130e <main+0x15e>
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    1313 <main+0x163>
mov    -0x8(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x8(%rbp)
jmp    12cc <main+0x11c>
cmpl   $0x32,-0x28(%rbp)
jle    133a <main+0x18a>
mov    -0x28(%rbp),%esi
lea    0xce8(%rip),%rdi
call   1070 <printf@plt>
jmp    12a4 <main+0xf4>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    $0x2000000,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
mov    0x2e2a(%rip),%r15
mov    (%r15),%edi
mov    0x2e10(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10c0 <socket@plt>
test   %eax,%eax
js     145f <main+0x2bf>
mov    %eax,%ebp
mov    %rsp,%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    (%r15),%eax
mov    %eax,0x8(%rsp)
lea    0xe0c(%rip),%rdi
call   1080 <inet_addr@plt>
mov    %eax,0x4(%rsp)
mov    $0x3e9,%edi
call   1040 <htons@plt>
mov    %eax,(%rsp)
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0xc,%edx
call   10b0 <connect@plt>
test   %rax,%rax
js     1468 <main+0x2c8>
movabs $0x1098968000000008,%rax
96 98 10
mov    %rax,0xc(%rsp)
movl   $0x20989680,0x14(%rsp)
20
mov    0x2d89(%rip),%rax
mov    (%rax),%ecx
lea    0xc(%rsp),%rsi
mov    %ebp,%edi
mov    $0xc,%edx
call   1050 <send@plt>
mov    0x2d5f(%rip),%r15
lea    0xdb5(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    (%r15),%ecx
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2000000,%edx
call   1030 <recv@plt>
movd   (%rbx),%xmm0
pshufd $0x0,%xmm0,%xmm4
pxor   %xmm0,%xmm0
mov    $0x80,%eax
pxor   %xmm1,%xmm1
nopl   0x0(%rax,%rax,1)
movss  -0x60(%rbx,%rax,1),%xmm2
movss  -0x70(%rbx,%rax,1),%xmm5
unpcklps %xmm2,%xmm5
movss  -0x50(%rbx,%rax,1),%xmm2
movlhps %xmm2,%xmm5
movss  -0x40(%rbx,%rax,1),%xmm3
movaps %xmm5,%xmm2
shufps $0x3,%xmm5,%xmm4
shufps $0x98,%xmm5,%xmm4
movsd  %xmm3,%xmm5
shufps $0x24,%xmm5,%xmm2
mov    (%rbx,%rax,1),%ecx
movss  -0x20(%rbx,%rax,1),%xmm6
movss  -0x30(%rbx,%rax,1),%xmm5
unpcklps %xmm6,%xmm5
movss  -0x10(%rbx,%rax,1),%xmm6
unpcklpd %xmm5,%xmm3
unpcklpd %xmm6,%xmm5
movd   %ecx,%xmm6
shufpd $0x2,%xmm5,%xmm6
psubd  %xmm4,%xmm2
shufps $0x98,%xmm5,%xmm3
shufps $0x24,%xmm6,%xmm5
movaps %xmm5,%xmm4
psubd  %xmm3,%xmm5
movdqa %xmm2,%xmm3
psrad  $0x1f,%xmm3
paddd  %xmm3,%xmm2
pxor   %xmm3,%xmm2
movdqa %xmm5,%xmm3
psrad  $0x1f,%xmm3
paddd  %xmm3,%xmm5
pxor   %xmm3,%xmm5
movdqa %xmm0,%xmm3
pcmpgtd %xmm2,%xmm0
pand   %xmm0,%xmm3
pandn  %xmm2,%xmm0
por    %xmm3,%xmm0
movdqa %xmm1,%xmm2
pcmpgtd %xmm5,%xmm1
pand   %xmm1,%xmm2
pandn  %xmm5,%xmm1
por    %xmm2,%xmm1
sub    $0xffffffffffffff80,%rax
cmp    $0x1000000,%rax
jne    12a0 <main+0x100>
movdqa %xmm0,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm0
pandn  %xmm1,%xmm2
por    %xmm0,%xmm2
pshufd $0xee,%xmm2,%xmm0
movdqa %xmm2,%xmm1
pcmpgtd %xmm0,%xmm1
pand   %xmm1,%xmm2
pandn  %xmm0,%xmm1
por    %xmm2,%xmm1
pshufd $0x55,%xmm1,%xmm0
movdqa %xmm1,%xmm2
pcmpgtd %xmm0,%xmm2
pand   %xmm2,%xmm1
pandn  %xmm0,%xmm2
por    %xmm1,%xmm2
movd   %xmm2,%eax
mov    0xffff90(%rbx),%edx
mov    %edx,%esi
sub    %ecx,%esi
mov    %esi,%ecx
neg    %ecx
cmovs  %esi,%ecx
mov    0xffffa0(%rbx),%esi
cmp    %ecx,%eax
cmovge %eax,%ecx
mov    %esi,%eax
sub    %edx,%eax
mov    %eax,%edx
neg    %edx
cmovs  %eax,%edx
cmp    %edx,%ecx
cmovge %ecx,%edx
mov    0xffffb0(%rbx),%eax
mov    %eax,%ecx
sub    %esi,%ecx
mov    %ecx,%esi
neg    %esi
cmovs  %ecx,%esi
cmp    %esi,%edx
cmovge %edx,%esi
mov    0xffffc0(%rbx),%ecx
mov    %ecx,%edx
sub    %eax,%edx
mov    %edx,%eax
neg    %eax
cmovs  %edx,%eax
cmp    %eax,%esi
cmovge %esi,%eax
mov    0xffffd0(%rbx),%edx
mov    %edx,%esi
sub    %ecx,%esi
mov    %esi,%ecx
neg    %ecx
cmovs  %esi,%ecx
cmp    %ecx,%eax
cmovge %eax,%ecx
mov    0xffffe0(%rbx),%eax
mov    %eax,%esi
sub    %edx,%esi
mov    %esi,%edx
neg    %edx
cmovs  %esi,%edx
cmp    %edx,%ecx
cmovge %ecx,%edx
mov    0xfffff0(%rbx),%ecx
sub    %eax,%ecx
mov    %ecx,%esi
neg    %esi
cmovs  %ecx,%esi
cmp    %esi,%edx
cmovge %edx,%esi
cmp    $0x33,%esi
jb     1270 <main+0xd0>
mov    %r14,%rdi
call   1060 <printf@plt>
jmp    1270 <main+0xd0>
lea    0xb9a(%rip),%rdi
jmp    146f <main+0x2cf>
lea    0xba6(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [14 x i8] c"192.168.1.100\00"
@.str.2 = [8 x i8] c"connect\00"
@MSG_NOSIGNAL = global i32 0
@MSG_WAITALL = global i32 0
@.str.3 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca [3 x i32]
store i32 0, i32* %1
%9 = call i32* @malloc(i32 33554432)
store i32* %9, i32** %5
%10 = load i32, i32* @AF_INET
%11 = load i32, i32* @SOCK_STREAM
%12 = call i32 @socket(i32 %10, i32 %11, i32 0)
store i32 %12, i32* %3
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
br label %77
16: ; preds = %0
%17 = call i32 @memset(%struct.sockaddr_in* %4, i32 0, i32 12)
%18 = load i32, i32* @AF_INET
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i32 0, i32 2
store i32 %18, i32* %19
%20 = call i32 @inet_addr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i32 0, i32 1
%22 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %21, i32 0, i32 0
store i32 %20, i32* %22
%23 = call i32 @htons(i32 1001)
%24 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i32 0, i32 0
store i32 %23, i32* %24
%25 = load i32, i32* %3
%26 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%27 = call i64 @connect(i32 %25, %struct.sockaddr* %26, i32 12)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %16
%30 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %77
31: ; preds = %16
%32 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 0
store i32 8, i32* %32
%33 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 1
store i32 278435456, i32* %33
%34 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 2
store i32 546870912, i32* %34
%35 = load i32, i32* %3
%36 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 0
%37 = load i32, i32* @MSG_NOSIGNAL
%38 = call i32 @send(i32 %35, i32* %36, i32 12, i32 %37)
br label %39
39: ; preds = %31, %76
%40 = load i32, i32* %3
%41 = load i32*, i32** %5
%42 = load i32, i32* @MSG_WAITALL
%43 = call i32 @recv(i32 %40, i32* %41, i32 33554432, i32 %42)
store i32 0, i32* %7
store i32 4, i32* %2
br label %44
44: ; preds = %67, %39
%45 = load i32, i32* %2
%46 = icmp slt i32 %45, 4194304
br i1 %46, label %47, label %70
47: ; preds = %44
%48 = load i32*, i32** %5
%49 = load i32, i32* %2
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, i32* %48, i64 %50
%52 = load i32, i32* %51
%53 = load i32*, i32** %5
%54 = load i32, i32* %2
%55 = sub nsw i32 %54, 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, i32* %53, i64 %56
%58 = load i32, i32* %57
%59 = sub nsw i32 %52, %58
%60 = call i32 @abs(i32 %59)
store i32 %60, i32* %6
%61 = load i32, i32* %7
%62 = load i32, i32* %6
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %66
64: ; preds = %47
%65 = load i32, i32* %6
store i32 %65, i32* %7
br label %66
66: ; preds = %64, %47
br label %67
67: ; preds = %66
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 4
store i32 %69, i32* %2
br label %44
70: ; preds = %44
%71 = load i32, i32* %7
%72 = icmp sgt i32 %71, 50
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load i32, i32* %7
%75 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %74)
br label %76
76: ; preds = %73, %70
br label %39
77: ; preds = %29, %14
%78 = load i32, i32* %1
ret i32 %78
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [14 x i8] c"192.168.1.100\00"
@.str.2 = [8 x i8] c"connect\00"
@MSG_NOSIGNAL = global i32 0
@MSG_WAITALL = global i32 0
@.str.3 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca %struct.sockaddr_in
%2 = alloca [3 x i32]
%3 = bitcast %struct.sockaddr_in* %1 to i8*
%4 = bitcast [3 x i32]* %2 to i8*
%5 = tail call i32* @malloc(i32 33554432)
%6 = load i32, i32* @AF_INET
%7 = load i32, i32* @SOCK_STREAM
%8 = tail call i32 @socket(i32 %6, i32 %7, i32 0)
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %136
12: ; preds = %0
%13 = call i32 @memset(%struct.sockaddr_in* %1, i32 0, i32 12)
%14 = load i32, i32* @AF_INET
%15 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 2
store i32 %14, i32* %15
%16 = call i32 @inet_addr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%17 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 1, i32 0
store i32 %16, i32* %17
%18 = call i32 @htons(i32 1001)
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 0
store i32 %18, i32* %19
%20 = bitcast %struct.sockaddr_in* %1 to %struct.sockaddr*
%21 = call i64 @connect(i32 %8, %struct.sockaddr* %20, i32 12)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %12
%24 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %136
25: ; preds = %12
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
store i32 8, i32* %26
%27 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 1
store i32 278435456, i32* %27
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
store i32 546870912, i32* %28
%29 = load i32, i32* @MSG_NOSIGNAL
%30 = call i32 @send(i32 %8, i32* %26, i32 12, i32 %29)
%31 = getelementptr inbounds i32, i32* %5, i64 4194276
%32 = getelementptr inbounds i32, i32* %5, i64 4194280
%33 = getelementptr inbounds i32, i32* %5, i64 4194284
%34 = getelementptr inbounds i32, i32* %5, i64 4194288
%35 = getelementptr inbounds i32, i32* %5, i64 4194292
%36 = getelementptr inbounds i32, i32* %5, i64 4194296
%37 = getelementptr inbounds i32, i32* %5, i64 4194300
br label %38
38: ; preds = %135, %25
%39 = load i32, i32* @MSG_WAITALL
%40 = call i32 @recv(i32 %8, i32* %5, i32 33554432, i32 %39)
%41 = load i32, i32* %5
%42 = insertelement <4 x i32> poison, i32 %41, i64 3
br label %43
43: ; preds = %43, %38
%44 = phi i64 [ 0, %38 ], [ %91, %43 ]
%45 = phi <4 x i32> [ %42, %38 ], [ %80, %43 ]
%46 = phi <4 x i32> [ zeroinitializer, %38 ], [ %89, %43 ]
%47 = phi <4 x i32> [ zeroinitializer, %38 ], [ %90, %43 ]
%48 = shl i64 %44, 2
%49 = or i64 %48, 4
%50 = or i64 %48, 8
%51 = or i64 %48, 12
%52 = or i64 %48, 16
%53 = or i64 %48, 20
%54 = or i64 %48, 24
%55 = or i64 %48, 28
%56 = add i64 %48, 32
%57 = getelementptr inbounds i32, i32* %5, i64 %49
%58 = getelementptr inbounds i32, i32* %5, i64 %50
%59 = getelementptr inbounds i32, i32* %5, i64 %51
%60 = getelementptr inbounds i32, i32* %5, i64 %52
%61 = getelementptr inbounds i32, i32* %5, i64 %53
%62 = getelementptr inbounds i32, i32* %5, i64 %54
%63 = getelementptr inbounds i32, i32* %5, i64 %55
%64 = getelementptr inbounds i32, i32* %5, i64 %56
%65 = load i32, i32* %57
%66 = load i32, i32* %58
%67 = load i32, i32* %59
%68 = load i32, i32* %60
%69 = insertelement <4 x i32> poison, i32 %65, i64 0
%70 = insertelement <4 x i32> %69, i32 %66, i64 1
%71 = insertelement <4 x i32> %70, i32 %67, i64 2
%72 = insertelement <4 x i32> %71, i32 %68, i64 3
%73 = load i32, i32* %61
%74 = load i32, i32* %62
%75 = load i32, i32* %63
%76 = load i32, i32* %64
%77 = insertelement <4 x i32> poison, i32 %73, i64 0
%78 = insertelement <4 x i32> %77, i32 %74, i64 1
%79 = insertelement <4 x i32> %78, i32 %75, i64 2
%80 = insertelement <4 x i32> %79, i32 %76, i64 3
%81 = shufflevector <4 x i32> %45, <4 x i32> %71, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
%82 = shufflevector <4 x i32> %72, <4 x i32> %79, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
%83 = sub nsw <4 x i32> %72, %81
%84 = sub nsw <4 x i32> %80, %82
%85 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %83, i1 true)
%86 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %84, i1 true)
%87 = icmp slt <4 x i32> %46, %85
%88 = icmp slt <4 x i32> %47, %86
%89 = select <4 x i1> %87, <4 x i32> %85, <4 x i32> %46
%90 = select <4 x i1> %88, <4 x i32> %86, <4 x i32> %47
%91 = add nuw i64 %44, 8
%92 = icmp eq i64 %91, 1048568
br i1 %92, label %93, label %43
93: ; preds = %43
%94 = icmp sgt <4 x i32> %89, %90
%95 = select <4 x i1> %94, <4 x i32> %89, <4 x i32> %90
%96 = call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %95)
%97 = load i32, i32* %31
%98 = sub nsw i32 %97, %76
%99 = call i32 @llvm.abs.i32(i32 %98, i1 true)
%100 = icmp slt i32 %96, %99
%101 = select i1 %100, i32 %99, i32 %96
%102 = load i32, i32* %32
%103 = sub nsw i32 %102, %97
%104 = call i32 @llvm.abs.i32(i32 %103, i1 true)
%105 = icmp slt i32 %101, %104
%106 = select i1 %105, i32 %104, i32 %101
%107 = load i32, i32* %33
%108 = sub nsw i32 %107, %102
%109 = call i32 @llvm.abs.i32(i32 %108, i1 true)
%110 = icmp slt i32 %106, %109
%111 = select i1 %110, i32 %109, i32 %106
%112 = load i32, i32* %34
%113 = sub nsw i32 %112, %107
%114 = call i32 @llvm.abs.i32(i32 %113, i1 true)
%115 = icmp slt i32 %111, %114
%116 = select i1 %115, i32 %114, i32 %111
%117 = load i32, i32* %35
%118 = sub nsw i32 %117, %112
%119 = call i32 @llvm.abs.i32(i32 %118, i1 true)
%120 = icmp slt i32 %116, %119
%121 = select i1 %120, i32 %119, i32 %116
%122 = load i32, i32* %36
%123 = sub nsw i32 %122, %117
%124 = call i32 @llvm.abs.i32(i32 %123, i1 true)
%125 = icmp slt i32 %121, %124
%126 = select i1 %125, i32 %124, i32 %121
%127 = load i32, i32* %37
%128 = sub nsw i32 %127, %122
%129 = call i32 @llvm.abs.i32(i32 %128, i1 true)
%130 = icmp slt i32 %126, %129
%131 = select i1 %130, i32 %129, i32 %126
%132 = icmp ugt i32 %131, 50
br i1 %132, label %133, label %135
133: ; preds = %93
%134 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %131)
br label %135
135: ; preds = %133, %93
br label %38
136: ; preds = %23, %10
ret i32 1
}