#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*/ printf(char *, int, int, int);
int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  srand(time(NULL));
  int i;
  for (i = 0; i < 1000; i++) {
    int x = rand() % 510;
    while (x < 5 || x > 505 || (x > 25 && x < 45) || (x > 25 && x < 45) ||
           (x > 135 && x < 155) || (x > 245 && x < 265) ||
           (x > 355 && x < 375) || (x > 465 && x < 485)) {
      x = rand() % 510;
    }
    int y = rand() % 510;
    while (y < 5 || y > 505 || (y > 25 && y < 45) || (y > 25 && y < 45) ||
           (y > 135 && y < 155) || (y > 245 && y < 265) ||
           (y > 355 && y < 375) || (y > 465 && y < 485)) {
      y = rand() % 510;
    }
    int z = rand() % 360;
    printf("%3.3f %3.3f 0 %d.000\n", (x - 255) * 0.05, (y - 255) * 0.05,
           z - 180);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    13fc <main+0x2bc>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x1fe,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
mov    $0x1,%al
cmpl   $0x5,-0xc(%rbp)
mov    %al,-0x15(%rbp)
jl     125a <main+0x11a>
mov    $0x1,%al
cmpl   $0x1f9,-0xc(%rbp)
mov    %al,-0x15(%rbp)
jg     125a <main+0x11a>
cmpl   $0x19,-0xc(%rbp)
jle    11bf <main+0x7f>
mov    $0x1,%al
cmpl   $0x2d,-0xc(%rbp)
mov    %al,-0x15(%rbp)
jl     125a <main+0x11a>
cmpl   $0x19,-0xc(%rbp)
jle    11d8 <main+0x98>
mov    $0x1,%al
cmpl   $0x2d,-0xc(%rbp)
mov    %al,-0x15(%rbp)
jl     125a <main+0x11a>
cmpl   $0x87,-0xc(%rbp)
jle    11f7 <main+0xb7>
mov    $0x1,%al
cmpl   $0x9b,-0xc(%rbp)
mov    %al,-0x15(%rbp)
jl     125a <main+0x11a>
cmpl   $0xf5,-0xc(%rbp)
jle    1216 <main+0xd6>
mov    $0x1,%al
cmpl   $0x109,-0xc(%rbp)
mov    %al,-0x15(%rbp)
jl     125a <main+0x11a>
cmpl   $0x163,-0xc(%rbp)
jle    1235 <main+0xf5>
mov    $0x1,%al
cmpl   $0x177,-0xc(%rbp)
mov    %al,-0x15(%rbp)
jl     125a <main+0x11a>
xor    %eax,%eax
cmpl   $0x1d1,-0xc(%rbp)
mov    %al,-0x16(%rbp)
jle    1254 <main+0x114>
cmpl   $0x1e5,-0xc(%rbp)
setl   %al
mov    %al,-0x16(%rbp)
mov    -0x16(%rbp),%al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    126a <main+0x12a>
jmp    1281 <main+0x141>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x1fe,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
jmp    1185 <main+0x45>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x1fe,%ecx
cltd
idiv   %ecx
mov    %edx,-0x10(%rbp)
mov    $0x1,%al
cmpl   $0x5,-0x10(%rbp)
mov    %al,-0x17(%rbp)
jl     1368 <main+0x228>
mov    $0x1,%al
cmpl   $0x1f9,-0x10(%rbp)
mov    %al,-0x17(%rbp)
jg     1368 <main+0x228>
cmpl   $0x19,-0x10(%rbp)
jle    12cd <main+0x18d>
mov    $0x1,%al
cmpl   $0x2d,-0x10(%rbp)
mov    %al,-0x17(%rbp)
jl     1368 <main+0x228>
cmpl   $0x19,-0x10(%rbp)
jle    12e6 <main+0x1a6>
mov    $0x1,%al
cmpl   $0x2d,-0x10(%rbp)
mov    %al,-0x17(%rbp)
jl     1368 <main+0x228>
cmpl   $0x87,-0x10(%rbp)
jle    1305 <main+0x1c5>
mov    $0x1,%al
cmpl   $0x9b,-0x10(%rbp)
mov    %al,-0x17(%rbp)
jl     1368 <main+0x228>
cmpl   $0xf5,-0x10(%rbp)
jle    1324 <main+0x1e4>
mov    $0x1,%al
cmpl   $0x109,-0x10(%rbp)
mov    %al,-0x17(%rbp)
jl     1368 <main+0x228>
cmpl   $0x163,-0x10(%rbp)
jle    1343 <main+0x203>
mov    $0x1,%al
cmpl   $0x177,-0x10(%rbp)
mov    %al,-0x17(%rbp)
jl     1368 <main+0x228>
xor    %eax,%eax
cmpl   $0x1d1,-0x10(%rbp)
mov    %al,-0x18(%rbp)
jle    1362 <main+0x222>
cmpl   $0x1e5,-0x10(%rbp)
setl   %al
mov    %al,-0x18(%rbp)
mov    -0x18(%rbp),%al
mov    %al,-0x17(%rbp)
mov    -0x17(%rbp),%al
test   $0x1,%al
jne    1378 <main+0x238>
jmp    138f <main+0x24f>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x1fe,%ecx
cltd
idiv   %ecx
mov    %edx,-0x10(%rbp)
jmp    1293 <main+0x153>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x168,%ecx
cltd
idiv   %ecx
mov    %edx,-0x14(%rbp)
mov    -0xc(%rbp),%eax
sub    $0xff,%eax
cvtsi2sd %eax,%xmm0
movsd  0xc4b(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    -0x10(%rbp),%eax
sub    $0xff,%eax
cvtsi2sd %eax,%xmm0
movsd  0xc2f(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edx
mov    -0x14(%rbp),%ecx
sub    $0xb4,%ecx
lea    0xc1f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1166 <main+0x26>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
lea    0xedc(%rip),%r14
xor    %r15d,%r15d
nop
xor    %eax,%eax
call   1060 <rand@plt>
movslq %eax,%rcx
imul   $0xffffffff80808081,%rcx,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0x8,%edx
add    %ecx,%edx
mov    %edx,%esi
shl    $0x9,%esi
mov    %edx,%ecx
sub    %esi,%ecx
add    %edx,%ecx
lea    (%rax,%rcx,1),%ebx
movd   %ebx,%xmm0
pshufd $0x0,%xmm0,%xmm0
paddd  0xe60(%rip),%xmm0
pxor   0xe68(%rip),%xmm0
movdqa 0xe70(%rip),%xmm1
pcmpgtd %xmm0,%xmm1
movmskps %xmm1,%edx
test   %edx,%edx
jne    1160 <main+0x20>
lea    (%rax,%rcx,1),%edx
add    $0xfffffe9c,%edx
cmp    $0x13,%edx
jb     1160 <main+0x20>
add    %ecx,%eax
add    $0xfffffe2e,%eax
cmp    $0x13,%eax
jb     1160 <main+0x20>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1060 <rand@plt>
movslq %eax,%rcx
imul   $0xffffffff80808081,%rcx,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0x8,%edx
add    %ecx,%edx
mov    %edx,%esi
shl    $0x9,%esi
mov    %edx,%ecx
sub    %esi,%ecx
add    %edx,%ecx
lea    (%rax,%rcx,1),%ebp
movd   %ebp,%xmm0
pshufd $0x0,%xmm0,%xmm0
paddd  0xde0(%rip),%xmm0
pxor   0xde8(%rip),%xmm0
movdqa 0xdf0(%rip),%xmm1
pcmpgtd %xmm0,%xmm1
movmskps %xmm1,%edx
test   %edx,%edx
jne    11e0 <main+0xa0>
lea    (%rax,%rcx,1),%edx
add    $0xfffffe9c,%edx
cmp    $0x13,%edx
jb     11e0 <main+0xa0>
add    %ecx,%eax
add    $0xfffffe2e,%eax
cmp    $0x13,%eax
jb     11e0 <main+0xa0>
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0xffffffffb60b60b7,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x8,%ecx
add    %edx,%ecx
add    $0xffffff01,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
imul   $0x168,%ecx,%ecx
movsd  0xda0(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
add    $0xffffff01,%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edx
neg    %ecx
add    %eax,%ecx
add    $0xffffff4c,%ecx
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%r15d
cmp    $0x3e8,%r15d
jne    1160 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"%3.3f %3.3f 0 %d.000\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 @time(i32* null)
%7 = call i32 @srand(i32 %6)
store i32 0, i32* %2
br label %8
8: ; preds = %131, %0
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 1000
br i1 %10, label %11, label %134
11: ; preds = %8
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 510
store i32 %13, i32* %3
br label %14
14: ; preds = %60, %11
%15 = load i32, i32* %3
%16 = icmp slt i32 %15, 5
br i1 %16, label %58, label %17
17: ; preds = %14
%18 = load i32, i32* %3
%19 = icmp sgt i32 %18, 505
br i1 %19, label %58, label %20
20: ; preds = %17
%21 = load i32, i32* %3
%22 = icmp sgt i32 %21, 25
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, i32* %3
%25 = icmp slt i32 %24, 45
br i1 %25, label %58, label %26
26: ; preds = %23, %20
%27 = load i32, i32* %3
%28 = icmp sgt i32 %27, 25
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, i32* %3
%31 = icmp slt i32 %30, 45
br i1 %31, label %58, label %32
32: ; preds = %29, %26
%33 = load i32, i32* %3
%34 = icmp sgt i32 %33, 135
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load i32, i32* %3
%37 = icmp slt i32 %36, 155
br i1 %37, label %58, label %38
38: ; preds = %35, %32
%39 = load i32, i32* %3
%40 = icmp sgt i32 %39, 245
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, i32* %3
%43 = icmp slt i32 %42, 265
br i1 %43, label %58, label %44
44: ; preds = %41, %38
%45 = load i32, i32* %3
%46 = icmp sgt i32 %45, 355
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, i32* %3
%49 = icmp slt i32 %48, 375
br i1 %49, label %58, label %50
50: ; preds = %47, %44
%51 = load i32, i32* %3
%52 = icmp sgt i32 %51, 465
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, i32* %3
%55 = icmp slt i32 %54, 485
br label %56
56: ; preds = %53, %50
%57 = phi i1 [ false, %50 ], [ %55, %53 ]
br label %58
58: ; preds = %56, %47, %41, %35, %29, %23, %17, %14
%59 = phi i1 [ true, %47 ], [ true, %41 ], [ true, %35 ], [ true, %29 ], [ true, %23 ], [ true, %17 ], [ true, %14 ], [ %57, %56 ]
br i1 %59, label %60, label %63
60: ; preds = %58
%61 = call i32 (...) @rand()
%62 = srem i32 %61, 510
store i32 %62, i32* %3
br label %14
63: ; preds = %58
%64 = call i32 (...) @rand()
%65 = srem i32 %64, 510
store i32 %65, i32* %4
br label %66
66: ; preds = %112, %63
%67 = load i32, i32* %4
%68 = icmp slt i32 %67, 5
br i1 %68, label %110, label %69
69: ; preds = %66
%70 = load i32, i32* %4
%71 = icmp sgt i32 %70, 505
br i1 %71, label %110, label %72
72: ; preds = %69
%73 = load i32, i32* %4
%74 = icmp sgt i32 %73, 25
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = load i32, i32* %4
%77 = icmp slt i32 %76, 45
br i1 %77, label %110, label %78
78: ; preds = %75, %72
%79 = load i32, i32* %4
%80 = icmp sgt i32 %79, 25
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load i32, i32* %4
%83 = icmp slt i32 %82, 45
br i1 %83, label %110, label %84
84: ; preds = %81, %78
%85 = load i32, i32* %4
%86 = icmp sgt i32 %85, 135
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = load i32, i32* %4
%89 = icmp slt i32 %88, 155
br i1 %89, label %110, label %90
90: ; preds = %87, %84
%91 = load i32, i32* %4
%92 = icmp sgt i32 %91, 245
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = load i32, i32* %4
%95 = icmp slt i32 %94, 265
br i1 %95, label %110, label %96
96: ; preds = %93, %90
%97 = load i32, i32* %4
%98 = icmp sgt i32 %97, 355
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load i32, i32* %4
%101 = icmp slt i32 %100, 375
br i1 %101, label %110, label %102
102: ; preds = %99, %96
%103 = load i32, i32* %4
%104 = icmp sgt i32 %103, 465
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = load i32, i32* %4
%107 = icmp slt i32 %106, 485
br label %108
108: ; preds = %105, %102
%109 = phi i1 [ false, %102 ], [ %107, %105 ]
br label %110
110: ; preds = %108, %99, %93, %87, %81, %75, %69, %66
%111 = phi i1 [ true, %99 ], [ true, %93 ], [ true, %87 ], [ true, %81 ], [ true, %75 ], [ true, %69 ], [ true, %66 ], [ %109, %108 ]
br i1 %111, label %112, label %115
112: ; preds = %110
%113 = call i32 (...) @rand()
%114 = srem i32 %113, 510
store i32 %114, i32* %4
br label %66
115: ; preds = %110
%116 = call i32 (...) @rand()
%117 = srem i32 %116, 360
store i32 %117, i32* %5
%118 = load i32, i32* %3
%119 = sub nsw i32 %118, 255
%120 = sitofp i32 %119 to double
%121 = fmul double %120, 5.000000e-02
%122 = fptosi double %121 to i32
%123 = load i32, i32* %4
%124 = sub nsw i32 %123, 255
%125 = sitofp i32 %124 to double
%126 = fmul double %125, 5.000000e-02
%127 = fptosi double %126 to i32
%128 = load i32, i32* %5
%129 = sub nsw i32 %128, 180
%130 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %122, i32 %127, i32 %129)
br label %131
131: ; preds = %115
%132 = load i32, i32* %2
%133 = add nsw i32 %132, 1
store i32 %133, i32* %2
br label %8
134: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"%3.3f %3.3f 0 %d.000\0A\00"
define i32 @main() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srand(i32 %1)
br label %3
3: ; preds = %0, %37
%4 = phi i32 [ 0, %0 ], [ %50, %37 ]
br label %5
5: ; preds = %5, %3
%6 = tail call i32 (...) @rand()
%7 = srem i32 %6, 510
%8 = insertelement <4 x i32> poison, i32 %7, i64 0
%9 = shufflevector <4 x i32> %8, <4 x i32> poison, <4 x i32> zeroinitializer
%10 = freeze <4 x i32> %9
%11 = add <4 x i32> %10, <i32 -506, i32 -26, i32 -136, i32 -246>
%12 = icmp ult <4 x i32> %11, <i32 -501, i32 19, i32 19, i32 19>
%13 = bitcast <4 x i1> %12 to i4
%14 = icmp ne i4 %13, 0
%15 = add nsw i32 %7, -356
%16 = icmp ult i32 %15, 19
%17 = select i1 %14, i1 true, i1 %16
%18 = add nsw i32 %7, -466
%19 = icmp ult i32 %18, 19
%20 = select i1 %17, i1 true, i1 %19
br i1 %20, label %5, label %21
21: ; preds = %5, %21
%22 = tail call i32 (...) @rand()
%23 = srem i32 %22, 510
%24 = insertelement <4 x i32> poison, i32 %23, i64 0
%25 = shufflevector <4 x i32> %24, <4 x i32> poison, <4 x i32> zeroinitializer
%26 = freeze <4 x i32> %25
%27 = add <4 x i32> %26, <i32 -506, i32 -26, i32 -136, i32 -246>
%28 = icmp ult <4 x i32> %27, <i32 -501, i32 19, i32 19, i32 19>
%29 = bitcast <4 x i1> %28 to i4
%30 = icmp ne i4 %29, 0
%31 = add nsw i32 %23, -356
%32 = icmp ult i32 %31, 19
%33 = select i1 %30, i1 true, i1 %32
%34 = add nsw i32 %23, -466
%35 = icmp ult i32 %34, 19
%36 = select i1 %33, i1 true, i1 %35
br i1 %36, label %21, label %37
37: ; preds = %21
%38 = tail call i32 (...) @rand()
%39 = srem i32 %38, 360
%40 = add nsw i32 %7, -255
%41 = sitofp i32 %40 to double
%42 = fmul double %41, 5.000000e-02
%43 = fptosi double %42 to i32
%44 = add nsw i32 %23, -255
%45 = sitofp i32 %44 to double
%46 = fmul double %45, 5.000000e-02
%47 = fptosi double %46 to i32
%48 = add nsw i32 %39, -180
%49 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %43, i32 %47, i32 %48)
%50 = add nuw nsw i32 %4, 1
%51 = icmp eq i32 %50, 1000
br i1 %51, label %52, label %3
52: ; preds = %37
ret i32 0
}