#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*/ write(int, ...);
void displayStream(char **list, const unsigned int size) {
  unsigned int word_iterator, char_iterator, eos = 0x20;
  for (word_iterator = 0; word_iterator < size; word_iterator++) {
    char_iterator = 0;
    while (list[word_iterator][char_iterator++] != 0x20)
      write(1, &list[word_iterator][char_iterator - 1], 1);
    write(1, &eos, 1);
  }
}


x86 assembly (clang, -O0):
<displayStream>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x20,-0x18(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jae    11ae <displayStream+0x9e>
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x14(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x14(%rbp)
mov    %ecx,%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
je     118e <displayStream+0x7e>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
mov    (%rax,%rcx,8),%rsi
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,%eax
add    %rax,%rsi
mov    $0x1,%edx
mov    %edx,%edi
mov    $0x0,%al
call   1030 <write@plt>
jmp    1140 <displayStream+0x30>
mov    $0x1,%edx
lea    -0x18(%rbp),%rsi
mov    %edx,%edi
mov    $0x0,%al
call   1030 <write@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    112d <displayStream+0x1d>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayStream>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
movl   $0x20,0xc(%rsp)
test   %esi,%esi
je     1196 <displayStream+0x86>
mov    %rdi,%r12
mov    %esi,%r15d
lea    0xc(%rsp),%r14
xor    %ebx,%ebx
jmp    115d <displayStream+0x4d>
nopw   0x0(%rax,%rax,1)
mov    $0x1,%edi
mov    %r14,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
add    $0x1,%rbx
cmp    %r15,%rbx
je     1196 <displayStream+0x86>
mov    (%r12,%rbx,8),%rsi
cmpb   $0x20,(%rsi)
je     1140 <displayStream+0x30>
mov    $0x1,%ebp
nopl   0x0(%rax,%rax,1)
mov    $0x1,%edi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    (%r12,%rbx,8),%rax
mov    %ebp,%ecx
lea    (%rax,%rcx,1),%rsi
add    $0x1,%ebp
cmpb   $0x20,(%rax,%rcx,1)
jne    1170 <displayStream+0x60>
jmp    1140 <displayStream+0x30>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @displayStream(i8** %0, i32 %1) {
%3 = alloca i8**
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8** %0, i8*** %3
store i32 %1, i32* %4
store i32 32, i32* %7
store i32 0, i32* %5
br label %8
8: ; preds = %39, %2
%9 = load i32, i32* %5
%10 = load i32, i32* %4
%11 = icmp ult i32 %9, %10
br i1 %11, label %12, label %42
12: ; preds = %8
store i32 0, i32* %6
br label %13
13: ; preds = %26, %12
%14 = load i8**, i8*** %3
%15 = load i32, i32* %5
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i8*, i8** %14, i64 %16
%18 = load i8*, i8** %17
%19 = load i32, i32* %6
%20 = add i32 %19, 1
store i32 %20, i32* %6
%21 = zext i32 %19 to i64
%22 = getelementptr inbounds i8, i8* %18, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 32
br i1 %25, label %26, label %37
26: ; preds = %13
%27 = load i8**, i8*** %3
%28 = load i32, i32* %5
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds i8*, i8** %27, i64 %29
%31 = load i8*, i8** %30
%32 = load i32, i32* %6
%33 = sub i32 %32, 1
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i8, i8* %31, i64 %34
%36 = call i32 (i32, ...) @write(i32 1, i8* %35, i32 1)
br label %13
37: ; preds = %13
%38 = call i32 (i32, ...) @write(i32 1, i32* %7, i32 1)
br label %39
39: ; preds = %37
%40 = load i32, i32* %5
%41 = add i32 %40, 1
store i32 %41, i32* %5
br label %8
42: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @displayStream(i8** nocapture %0, i32 %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 32, i32* %3
%5 = icmp eq i32 %1, 0
br i1 %5, label %28, label %6
6: ; preds = %2
%7 = zext i32 %1 to i64
br label %8
8: ; preds = %6, %24
%9 = phi i64 [ 0, %6 ], [ %26, %24 ]
%10 = getelementptr inbounds i8*, i8** %0, i64 %9
%11 = load i8*, i8** %10
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 32
br i1 %13, label %24, label %14
14: ; preds = %8, %14
%15 = phi i8* [ %21, %14 ], [ %11, %8 ]
%16 = phi i32 [ %17, %14 ], [ 0, %8 ]
%17 = add i32 %16, 1
%18 = call i32 (i32, ...) @write(i32 1, i8* %15, i32 1)
%19 = load i8*, i8** %10
%20 = zext i32 %17 to i64
%21 = getelementptr inbounds i8, i8* %19, i64 %20
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 32
br i1 %23, label %24, label %14
24: ; preds = %14, %8
%25 = call i32 (i32, ...) @write(i32 1, i32* %3, i32 1)
%26 = add nuw nsw i64 %9, 1
%27 = icmp eq i64 %26, %7
br i1 %27, label %28, label %8
28: ; preds = %24, %2
ret void
}