#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*/ PrintStr(char *);
int strcmp(char *, char *);
void PrintArray(const int argc, char **argv) {
  if (argc > 1) {
    for (int i = 0; i < argc; i++)
      if ((strcmp("./shuffle", argv[i]) & strcmp("shuffle", argv[i])) != 0) {
        PrintStr(argv[i]);
      }
  }
}


x86 assembly (clang, -O0):
<PrintArray>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x4(%rbp)
jle    11b8 <PrintArray+0x98>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11b3 <PrintArray+0x93>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xea1(%rip),%rdi
call   1030 <strcmp@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xe88(%rip),%rdi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
and    %ecx,%eax
cmp    $0x0,%eax
je     11a0 <PrintArray+0x80>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <PrintStr@plt>
jmp    11a5 <PrintArray+0x85>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1140 <PrintArray+0x20>
jmp    11b8 <PrintArray+0x98>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintArray>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jl     1187 <PrintArray+0x67>
mov    %rsi,%r12
mov    %edi,%r13d
xor    %r14d,%r14d
lea    0xec2(%rip),%r15
jmp    1159 <PrintArray+0x39>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r14
cmp    %r14,%r13
je     1187 <PrintArray+0x67>
mov    (%r12,%r14,8),%rbx
lea    0xe9c(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
mov    %eax,%ebp
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %ebp,%eax
je     1150 <PrintArray+0x30>
mov    %rbx,%rdi
call   1040 <PrintStr@plt>
jmp    1150 <PrintArray+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"./shuffle\00"
@.str.1 = [8 x i8] c"shuffle\00"
define void @PrintArray(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%6 = load i32, i32* %3
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %40
8: ; preds = %2
store i32 0, i32* %5
br label %9
9: ; preds = %36, %8
%10 = load i32, i32* %5
%11 = load i32, i32* %3
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %39
13: ; preds = %9
%14 = load i8**, i8*** %4
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8*, i8** %14, i64 %16
%18 = load i8*, i8** %17
%19 = call i32 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = load i8**, i8*** %4
%21 = load i32, i32* %5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8*, i8** %20, i64 %22
%24 = load i8*, i8** %23
%25 = call i32 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %24)
%26 = and i32 %19, %25
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %35
28: ; preds = %13
%29 = load i8**, i8*** %4
%30 = load i32, i32* %5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8*, i8** %29, i64 %31
%33 = load i8*, i8** %32
%34 = call i32 @PrintStr(i8* %33)
br label %35
35: ; preds = %28, %13
br label %36
36: ; preds = %35
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
store i32 %38, i32* %5
br label %9
39: ; preds = %9
br label %40
40: ; preds = %39, %2
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"./shuffle\00"
@.str.1 = [8 x i8] c"shuffle\00"
define void @PrintArray(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %19
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %16
%7 = phi i64 [ 0, %4 ], [ %17, %16 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = tail call i32 @strcmp(i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* dereferenceable(1) %9)
%11 = tail call i32 @strcmp(i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* dereferenceable(1) %9)
%12 = and i32 %11, %10
%13 = icmp eq i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %6
%15 = tail call i32 @PrintStr(i8* %9)
br label %16
16: ; preds = %6, %14
%17 = add nuw nsw i64 %7, 1
%18 = icmp eq i64 %17, %5
br i1 %18, label %19, label %6
19: ; preds = %16, %2
ret void
}