#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 */
double drand48();
int /*<<< orphan*/ printf(char *, double);
int main(int argc, char **argv) {
  int height = 20530;
  int width = 4000;
  int i, j;
  for (i = 0; i < height; i++) {
    for (j = 0; j < width - 1; j++) {
      printf("%.3f\t", drand48());
    }
    printf("%.3f\n", drand48());
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x5032,-0x14(%rbp)
movl   $0xfa0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11b1 <main+0x91>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1190 <main+0x70>
mov    $0x0,%al
call   1040 <drand48@plt>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    115e <main+0x3e>
mov    $0x0,%al
call   1040 <drand48@plt>
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    114b <main+0x2b>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xed2(%rip),%rbx
lea    0xed1(%rip),%r14
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
mov    $0xf9f,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1040 <drand48@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
add    $0xffffffff,%ebp
jne    1150 <main+0x30>
xor    %eax,%eax
call   1040 <drand48@plt>
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%r15d
cmp    $0x5032,%r15d
jne    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%.3f\09\00"
@.str.1 = [6 x i8] c"%.3f\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
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 20530, i32* %6
store i32 4000, i32* %7
store i32 0, i32* %8
br label %10
10: ; preds = %29, %2
%11 = load i32, i32* %8
%12 = load i32, i32* %6
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %32
14: ; preds = %10
store i32 0, i32* %9
br label %15
15: ; preds = %23, %14
%16 = load i32, i32* %9
%17 = load i32, i32* %7
%18 = sub nsw i32 %17, 1
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %26
20: ; preds = %15
%21 = call double (...) @drand48()
%22 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double %21)
br label %23
23: ; preds = %20
%24 = load i32, i32* %9
%25 = add nsw i32 %24, 1
store i32 %25, i32* %9
br label %15
26: ; preds = %15
%27 = call double (...) @drand48()
%28 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %27)
br label %29
29: ; preds = %26
%30 = load i32, i32* %8
%31 = add nsw i32 %30, 1
store i32 %31, i32* %8
br label %10
32: ; preds = %10
%33 = load i32, i32* %3
ret i32 %33
}

LLVM IR (-O2):
@.str = [6 x i8] c"%.3f\09\00"
@.str.1 = [6 x i8] c"%.3f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %11
%4 = phi i32 [ 0, %2 ], [ %14, %11 ]
br label %5
5: ; preds = %3, %5
%6 = phi i32 [ 0, %3 ], [ %9, %5 ]
%7 = tail call double (...) @drand48()
%8 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double %7)
%9 = add nuw nsw i32 %6, 1
%10 = icmp eq i32 %9, 3999
br i1 %10, label %11, label %5
11: ; preds = %5
%12 = tail call double (...) @drand48()
%13 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %12)
%14 = add nuw nsw i32 %4, 1
%15 = icmp eq i32 %14, 20530
br i1 %15, label %16, label %3
16: ; preds = %11
ret i32 0
}