#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 */
scalar_t__ feof(int /*<<< orphan*/);
unsigned int getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int main(int argc, char **argv) {
  unsigned int c1, c2, c3, c4;
  int i = 0;
  while (1) {
    c1 = getchar();
    if (feof(stdin))
      break;
    c2 = getchar();
    if (feof(stdin))
      break;
    c3 = getchar();
    if (feof(stdin))
      break;
    c4 = getchar();
    if (feof(stdin))
      break;
    unsigned int word = (c1 << 24) | (c2 << 16) | (c3 << 8) | c4;
    printf(" %8u, ", word);
    if ((++i & 7) == 0)
      printf("\n");
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x24(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x14(%rbp)
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
call   1050 <feof@plt>
cmp    $0x0,%rax
je     1174 <main+0x44>
jmp    123e <main+0x10e>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
mov    0x2e63(%rip),%rax
mov    (%rax),%edi
call   1050 <feof@plt>
cmp    $0x0,%rax
je     119b <main+0x6b>
jmp    123e <main+0x10e>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
call   1050 <feof@plt>
cmp    $0x0,%rax
je     11c2 <main+0x92>
jmp    123e <main+0x10e>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x20(%rbp)
mov    0x2e15(%rip),%rax
mov    (%rax),%edi
call   1050 <feof@plt>
cmp    $0x0,%rax
je     11e9 <main+0xb9>
jmp    123e <main+0x10e>
mov    -0x14(%rbp),%eax
shl    $0x18,%eax
mov    -0x18(%rbp),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x1c(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
and    $0x7,%eax
cmp    $0x0,%eax
jne    1239 <main+0x109>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    114d <main+0x1d>
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %eax,%r15d
mov    0x2e8c(%rip),%r13
mov    0x0(%r13),%edi
call   1060 <feof@plt>
test   %rax,%rax
je     1185 <main+0x45>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%r14d
jmp    11ac <main+0x6c>
nopl   (%rax)
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %eax,%r15d
mov    0x0(%r13),%edi
call   1060 <feof@plt>
add    $0x1,%r14d
test   %rax,%rax
jne    116a <main+0x2a>
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %eax,%ebx
mov    0x0(%r13),%edi
call   1060 <feof@plt>
test   %rax,%rax
jne    116a <main+0x2a>
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %eax,%ebp
mov    0x0(%r13),%edi
call   1060 <feof@plt>
test   %rax,%rax
jne    116a <main+0x2a>
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %eax,%r12d
mov    0x0(%r13),%edi
call   1060 <feof@plt>
test   %rax,%rax
jne    116a <main+0x2a>
shl    $0x18,%r15d
shl    $0x10,%ebx
or     %r15d,%ebx
shl    $0x8,%ebp
or     %ebx,%ebp
or     %r12d,%ebp
lea    0xdf1(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
test   $0x7,%r14b
jne    1190 <main+0x50>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1190 <main+0x50>

LLVM IR (-O0):
@stdin = global i32 0
@.str = [7 x i8] c" %8u, \00"
@.str.1 = [2 x i8] c"\0A\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 i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %10
br label %12
12: ; preds = %2, %55
%13 = call i32 (...) @getchar()
store i32 %13, i32* %6
%14 = load i32, i32* @stdin
%15 = call i64 @feof(i32 %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
br label %56
18: ; preds = %12
%19 = call i32 (...) @getchar()
store i32 %19, i32* %7
%20 = load i32, i32* @stdin
%21 = call i64 @feof(i32 %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
br label %56
24: ; preds = %18
%25 = call i32 (...) @getchar()
store i32 %25, i32* %8
%26 = load i32, i32* @stdin
%27 = call i64 @feof(i32 %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %24
br label %56
30: ; preds = %24
%31 = call i32 (...) @getchar()
store i32 %31, i32* %9
%32 = load i32, i32* @stdin
%33 = call i64 @feof(i32 %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %30
br label %56
36: ; preds = %30
%37 = load i32, i32* %6
%38 = shl i32 %37, 24
%39 = load i32, i32* %7
%40 = shl i32 %39, 16
%41 = or i32 %38, %40
%42 = load i32, i32* %8
%43 = shl i32 %42, 8
%44 = or i32 %41, %43
%45 = load i32, i32* %9
%46 = or i32 %44, %45
store i32 %46, i32* %11
%47 = load i32, i32* %11
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %47)
%49 = load i32, i32* %10
%50 = add nsw i32 %49, 1
store i32 %50, i32* %10
%51 = and i32 %50, 7
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %36
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %55
55: ; preds = %53, %36
br label %12
56: ; preds = %35, %29, %23, %17
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [7 x i8] c" %8u, \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @getchar()
%4 = load i32, i32* @stdin
%5 = tail call i64 @feof(i32 %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %42
7: ; preds = %2, %37
%8 = phi i32 [ %38, %37 ], [ %3, %2 ]
%9 = phi i32 [ %32, %37 ], [ 0, %2 ]
%10 = tail call i32 (...) @getchar()
%11 = load i32, i32* @stdin
%12 = tail call i64 @feof(i32 %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %42
14: ; preds = %7
%15 = tail call i32 (...) @getchar()
%16 = load i32, i32* @stdin
%17 = tail call i64 @feof(i32 %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %42
19: ; preds = %14
%20 = tail call i32 (...) @getchar()
%21 = load i32, i32* @stdin
%22 = tail call i64 @feof(i32 %21)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %42
24: ; preds = %19
%25 = shl i32 %8, 24
%26 = shl i32 %10, 16
%27 = or i32 %26, %25
%28 = shl i32 %15, 8
%29 = or i32 %27, %28
%30 = or i32 %29, %20
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %30)
%32 = add nuw nsw i32 %9, 1
%33 = and i32 %32, 7
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %24
%36 = tail call i32 @putchar(i32 10)
br label %37
37: ; preds = %35, %24
%38 = tail call i32 (...) @getchar()
%39 = load i32, i32* @stdin
%40 = tail call i64 @feof(i32 %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %7, label %42
42: ; preds = %37, %7, %14, %19, %2
%43 = tail call i32 @putchar(i32 10)
ret i32 0
}