#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 rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  srand(time(NULL));
  printf("<?xml version=\"1.0\" standalone=\"no\"?>\n");
  printf("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" "
         "\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n");
  printf("<svg width=\"510\" height=\"510\" version=\"1.1\" "
         "xmlns=\"http://www.w3.org/2000/svg\">\n");
  printf("<rect width=\"510\" height=\"510\" "
         "style=\"fill:rgb(255,255,255);\"/>\n");
  printf("<line x1=\"0\" y1=\"0\" x2=\"510\" y2=\"0\" "
         "style=\"stroke:rgb(0,0,0);stroke-width:3\"/>\n");
  printf("<line x1=\"0\" y1=\"510\" x2=\"510\" y2=\"510\" "
         "style=\"stroke:rgb(0,0,0);stroke-width:3\"/>\n");
  printf("<line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"510\" "
         "style=\"stroke:rgb(0,0,0);stroke-width:3\"/>\n");
  printf("<line x1=\"510\" y1=\"0\" x2=\"510\" y2=\"510\" "
         "style=\"stroke:rgb(0,0,0);stroke-width:3\"/>\n");
  int i, j;
  for (i = 0; i <= 4; i++) {
    for (j = 0; j < 4; j++) {
      int startOffsetX = 30 + j * (10 + 40 * 2 + 20);
      int startOffsetY = 30 + i * (10 + 40 * 2 + 20) + 5;
      printf("<line x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" "
             "style=\"stroke:rgb(0,0,0);stroke-width:10\"/>\n",
             startOffsetX, startOffsetY, startOffsetX + 10 + 40, startOffsetY);
      if (rand() % 3 == 0) {
        printf("<line x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" "
               "style=\"stroke:rgb(0,0,0);stroke-width:10\"/>\n",
               startOffsetX + 10 + 40, startOffsetY,
               startOffsetX + 10 + 40 + 20, startOffsetY);
      }
      printf("<line x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" "
             "style=\"stroke:rgb(0,0,0);stroke-width:10\"/>\n",
             startOffsetX + 10 + 40 + 20, startOffsetY,
             startOffsetX + 10 + 20 + 2 * 40, startOffsetY);
    }
  }
  for (i = 0; i < 4; i++) {
    for (j = 0; j <= 4; j++) {
      int startOffsetX = 30 + j * (10 + 40 * 2 + 20) + 5;
      int startOffsetY = 30 + i * (10 + 40 * 2 + 20);
      printf("<line x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" "
             "style=\"stroke:rgb(0,0,0);stroke-width:10\"/>\n",
             startOffsetX, startOffsetY, startOffsetX, startOffsetY + 10 + 40);
      if (rand() % 3 == 0) {
        printf("<line x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" "
               "style=\"stroke:rgb(0,0,0);stroke-width:10\"/>\n",
               startOffsetX, startOffsetY + 10 + 40, startOffsetX,
               startOffsetY + 10 + 40 + 20);
      }
      printf("<line x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" "
             "style=\"stroke:rgb(0,0,0);stroke-width:10\"/>\n",
             startOffsetX, startOffsetY + 10 + 40 + 20, startOffsetX,
             startOffsetY + 2 * 10 + 20 + 2 * 40);
    }
  }
  printf("</svg>\n");
  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>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1007(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1049(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jg     12b9 <main+0x179>
movl   $0x0,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
jge    12a6 <main+0x166>
imul   $0x6e,-0xc(%rbp),%eax
add    $0x1e,%eax
mov    %eax,-0x10(%rbp)
imul   $0x6e,-0x8(%rbp),%eax
add    $0x1e,%eax
add    $0x5,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
add    $0xa,%ecx
add    $0x28,%ecx
mov    -0x14(%rbp),%r8d
lea    0x1043(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    126b <main+0x12b>
mov    -0x10(%rbp),%esi
add    $0xa,%esi
add    $0x28,%esi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
add    $0xa,%ecx
add    $0x28,%ecx
add    $0x14,%ecx
mov    -0x14(%rbp),%r8d
lea    0x1001(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
add    $0xa,%esi
add    $0x28,%esi
add    $0x14,%esi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
add    $0xa,%ecx
add    $0x14,%ecx
add    $0x50,%ecx
mov    -0x14(%rbp),%r8d
lea    0xfd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11e7 <main+0xa7>
jmp    12ab <main+0x16b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11d6 <main+0x96>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    13ab <main+0x26b>
movl   $0x0,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
jg     1398 <main+0x258>
imul   $0x6e,-0xc(%rbp),%eax
add    $0x1e,%eax
add    $0x5,%eax
mov    %eax,-0x18(%rbp)
imul   $0x6e,-0x8(%rbp),%eax
add    $0x1e,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
add    $0xa,%r8d
add    $0x28,%r8d
lea    0xf57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    135a <main+0x21a>
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
add    $0xa,%edx
add    $0x28,%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
add    $0xa,%r8d
add    $0x28,%r8d
add    $0x14,%r8d
lea    0xf12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
add    $0xa,%edx
add    $0x28,%edx
add    $0x14,%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
add    $0x14,%r8d
add    $0x14,%r8d
add    $0x50,%r8d
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12d1 <main+0x191>
jmp    139d <main+0x25d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12c0 <main+0x180>
lea    0xf06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1030 <puts@plt>
lea    0x1012(%rip),%rdi
call   1030 <puts@plt>
lea    0x1059(%rip),%rdi
call   1030 <puts@plt>
lea    0x109c(%rip),%rdi
call   1030 <puts@plt>
mov    $0x23,%ebx
lea    0xe2e(%rip),%rbp
jmp    1208 <main+0xb8>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rdi
mov    $0x1ae,%esi
mov    %ebx,%edx
mov    $0x1d6,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x6e,%ebx
cmp    $0x249,%ebx
je     1388 <main+0x238>
mov    %rbp,%rdi
mov    $0x1e,%esi
mov    %ebx,%edx
mov    $0x50,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     1253 <main+0x103>
mov    %rbp,%rdi
mov    $0x50,%esi
mov    %ebx,%edx
mov    $0x64,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0x64,%esi
mov    %ebx,%edx
mov    $0x8c,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0x8c,%esi
mov    %ebx,%edx
mov    $0xbe,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     12b7 <main+0x167>
mov    %rbp,%rdi
mov    $0xbe,%esi
mov    %ebx,%edx
mov    $0xd2,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0xd2,%esi
mov    %ebx,%edx
mov    $0xfa,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0xfa,%esi
mov    %ebx,%edx
mov    $0x12c,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     131b <main+0x1cb>
mov    %rbp,%rdi
mov    $0x12c,%esi
mov    %ebx,%edx
mov    $0x140,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0x140,%esi
mov    %ebx,%edx
mov    $0x168,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0x168,%esi
mov    %ebx,%edx
mov    $0x19a,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     11e0 <main+0x90>
mov    %rbp,%rdi
mov    $0x19a,%esi
mov    %ebx,%edx
mov    $0x1ae,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11e0 <main+0x90>
mov    $0x96,%ebx
lea    0xc6c(%rip),%r14
jmp    13c9 <main+0x279>
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    $0x1db,%esi
mov    %r15d,%edx
mov    $0x1db,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x6e,%ebx
cmp    $0x24e,%ebx
je     15c1 <main+0x471>
lea    -0x78(%rbx),%r12d
lea    -0x46(%rbx),%ebp
lea    -0x32(%rbx),%r15d
mov    %r14,%rdi
mov    $0x23,%esi
mov    %r12d,%edx
mov    $0x23,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     1420 <main+0x2d0>
mov    %r14,%rdi
mov    $0x23,%esi
mov    %ebp,%edx
mov    $0x23,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x23,%esi
mov    %r15d,%edx
mov    $0x23,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x91,%esi
mov    %r12d,%edx
mov    $0x91,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     1486 <main+0x336>
mov    %r14,%rdi
mov    $0x91,%esi
mov    %ebp,%edx
mov    $0x91,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x91,%esi
mov    %r15d,%edx
mov    $0x91,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0xff,%esi
mov    %r12d,%edx
mov    $0xff,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     14ec <main+0x39c>
mov    %r14,%rdi
mov    $0xff,%esi
mov    %ebp,%edx
mov    $0xff,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0xff,%esi
mov    %r15d,%edx
mov    $0xff,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x16d,%esi
mov    %r12d,%edx
mov    $0x16d,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     1552 <main+0x402>
mov    %r14,%rdi
mov    $0x16d,%esi
mov    %ebp,%edx
mov    $0x16d,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x16d,%esi
mov    %r15d,%edx
mov    $0x16d,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x1db,%esi
mov    %r12d,%edx
mov    $0x1db,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555554,%eax
ja     13a0 <main+0x250>
mov    %r14,%rdi
mov    $0x1db,%esi
mov    %ebp,%edx
mov    $0x1db,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
jmp    13a0 <main+0x250>
lea    0xce8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [39 x i8] c"<?xml version=\221.0\22 standalone=\22no\22?>\0A\00"
@.str.1 = [100 x i8] c"<!DOCTYPE svg PUBLIC \22-//W3C//DTD SVG 1.1//EN\22 \22http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\22>\0A\00"
@.str.2 = [81 x i8] c"<svg width=\22510\22 height=\22510\22 version=\221.1\22 xmlns=\22http://www.w3.org/2000/svg\22>\0A\00"
@.str.3 = [65 x i8] c"<rect width=\22510\22 height=\22510\22 style=\22fill:rgb(255,255,255);\22/>\0A\00"
@.str.4 = [80 x i8] c"<line x1=\220\22 y1=\220\22 x2=\22510\22 y2=\220\22 style=\22stroke:rgb(0,0,0);stroke-width:3\22/>\0A\00"
@.str.5 = [84 x i8] c"<line x1=\220\22 y1=\22510\22 x2=\22510\22 y2=\22510\22 style=\22stroke:rgb(0,0,0);stroke-width:3\22/>\0A\00"
@.str.6 = [80 x i8] c"<line x1=\220\22 y1=\220\22 x2=\220\22 y2=\22510\22 style=\22stroke:rgb(0,0,0);stroke-width:3\22/>\0A\00"
@.str.7 = [84 x i8] c"<line x1=\22510\22 y1=\220\22 x2=\22510\22 y2=\22510\22 style=\22stroke:rgb(0,0,0);stroke-width:3\22/>\0A\00"
@.str.8 = [83 x i8] c"<line x1=\22%d\22 y1=\22%d\22 x2=\22%d\22 y2=\22%d\22 style=\22stroke:rgb(0,0,0);stroke-width:10\22/>\0A\00"
@.str.9 = [8 x i8] c"</svg>\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 @time(i32* null)
%9 = call i32 @srand(i32 %8)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.6, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %18
18: ; preds = %70, %0
%19 = load i32, i32* %2
%20 = icmp sle i32 %19, 4
br i1 %20, label %21, label %73
21: ; preds = %18
store i32 0, i32* %3
br label %22
22: ; preds = %66, %21
%23 = load i32, i32* %3
%24 = icmp slt i32 %23, 4
br i1 %24, label %25, label %69
25: ; preds = %22
%26 = load i32, i32* %3
%27 = mul nsw i32 %26, 110
%28 = add nsw i32 30, %27
store i32 %28, i32* %4
%29 = load i32, i32* %2
%30 = mul nsw i32 %29, 110
%31 = add nsw i32 30, %30
%32 = add nsw i32 %31, 5
store i32 %32, i32* %5
%33 = load i32, i32* %4
%34 = load i32, i32* %5
%35 = load i32, i32* %4
%36 = add nsw i32 %35, 10
%37 = add nsw i32 %36, 40
%38 = load i32, i32* %5
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 %33, i32 %34, i32 %37, i32 %38)
%40 = call i32 (...) @rand()
%41 = srem i32 %40, 3
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %54
43: ; preds = %25
%44 = load i32, i32* %4
%45 = add nsw i32 %44, 10
%46 = add nsw i32 %45, 40
%47 = load i32, i32* %5
%48 = load i32, i32* %4
%49 = add nsw i32 %48, 10
%50 = add nsw i32 %49, 40
%51 = add nsw i32 %50, 20
%52 = load i32, i32* %5
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 %46, i32 %47, i32 %51, i32 %52)
br label %54
54: ; preds = %43, %25
%55 = load i32, i32* %4
%56 = add nsw i32 %55, 10
%57 = add nsw i32 %56, 40
%58 = add nsw i32 %57, 20
%59 = load i32, i32* %5
%60 = load i32, i32* %4
%61 = add nsw i32 %60, 10
%62 = add nsw i32 %61, 20
%63 = add nsw i32 %62, 80
%64 = load i32, i32* %5
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 %58, i32 %59, i32 %63, i32 %64)
br label %66
66: ; preds = %54
%67 = load i32, i32* %3
%68 = add nsw i32 %67, 1
store i32 %68, i32* %3
br label %22
69: ; preds = %22
br label %70
70: ; preds = %69
%71 = load i32, i32* %2
%72 = add nsw i32 %71, 1
store i32 %72, i32* %2
br label %18
73: ; preds = %18
store i32 0, i32* %2
br label %74
74: ; preds = %126, %73
%75 = load i32, i32* %2
%76 = icmp slt i32 %75, 4
br i1 %76, label %77, label %129
77: ; preds = %74
store i32 0, i32* %3
br label %78
78: ; preds = %122, %77
%79 = load i32, i32* %3
%80 = icmp sle i32 %79, 4
br i1 %80, label %81, label %125
81: ; preds = %78
%82 = load i32, i32* %3
%83 = mul nsw i32 %82, 110
%84 = add nsw i32 30, %83
%85 = add nsw i32 %84, 5
store i32 %85, i32* %6
%86 = load i32, i32* %2
%87 = mul nsw i32 %86, 110
%88 = add nsw i32 30, %87
store i32 %88, i32* %7
%89 = load i32, i32* %6
%90 = load i32, i32* %7
%91 = load i32, i32* %6
%92 = load i32, i32* %7
%93 = add nsw i32 %92, 10
%94 = add nsw i32 %93, 40
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 %89, i32 %90, i32 %91, i32 %94)
%96 = call i32 (...) @rand()
%97 = srem i32 %96, 3
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %110
99: ; preds = %81
%100 = load i32, i32* %6
%101 = load i32, i32* %7
%102 = add nsw i32 %101, 10
%103 = add nsw i32 %102, 40
%104 = load i32, i32* %6
%105 = load i32, i32* %7
%106 = add nsw i32 %105, 10
%107 = add nsw i32 %106, 40
%108 = add nsw i32 %107, 20
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 %100, i32 %103, i32 %104, i32 %108)
br label %110
110: ; preds = %99, %81
%111 = load i32, i32* %6
%112 = load i32, i32* %7
%113 = add nsw i32 %112, 10
%114 = add nsw i32 %113, 40
%115 = add nsw i32 %114, 20
%116 = load i32, i32* %6
%117 = load i32, i32* %7
%118 = add nsw i32 %117, 20
%119 = add nsw i32 %118, 20
%120 = add nsw i32 %119, 80
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 %111, i32 %115, i32 %116, i32 %120)
br label %122
122: ; preds = %110
%123 = load i32, i32* %3
%124 = add nsw i32 %123, 1
store i32 %124, i32* %3
br label %78
125: ; preds = %78
br label %126
126: ; preds = %125
%127 = load i32, i32* %2
%128 = add nsw i32 %127, 1
store i32 %128, i32* %2
br label %74
129: ; preds = %74
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.8 = [83 x i8] c"<line x1=\22%d\22 y1=\22%d\22 x2=\22%d\22 y2=\22%d\22 style=\22stroke:rgb(0,0,0);stroke-width:10\22/>\0A\00"
@str = [38 x i8] c"<?xml version=\221.0\22 standalone=\22no\22?>\00"
@str.10 = [99 x i8] c"<!DOCTYPE svg PUBLIC \22-//W3C//DTD SVG 1.1//EN\22 \22http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\22>\00"
@str.11 = [80 x i8] c"<svg width=\22510\22 height=\22510\22 version=\221.1\22 xmlns=\22http://www.w3.org/2000/svg\22>\00"
@str.12 = [64 x i8] c"<rect width=\22510\22 height=\22510\22 style=\22fill:rgb(255,255,255);\22/>\00"
@str.13 = [79 x i8] c"<line x1=\220\22 y1=\220\22 x2=\22510\22 y2=\220\22 style=\22stroke:rgb(0,0,0);stroke-width:3\22/>\00"
@str.14 = [83 x i8] c"<line x1=\220\22 y1=\22510\22 x2=\22510\22 y2=\22510\22 style=\22stroke:rgb(0,0,0);stroke-width:3\22/>\00"
@str.15 = [79 x i8] c"<line x1=\220\22 y1=\220\22 x2=\220\22 y2=\22510\22 style=\22stroke:rgb(0,0,0);stroke-width:3\22/>\00"
@str.16 = [83 x i8] c"<line x1=\22510\22 y1=\220\22 x2=\22510\22 y2=\22510\22 style=\22stroke:rgb(0,0,0);stroke-width:3\22/>\00"
@str.17 = [7 x i8] c"</svg>\00"
define i32 @main() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srand(i32 %1)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.14, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.15, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.16, i64 0, i64 0))
br label %11
11: ; preds = %0, %45
%12 = phi i32 [ 0, %0 ], [ %47, %45 ]
%13 = mul nuw nsw i32 %12, 110
%14 = add nuw nsw i32 %13, 35
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 30, i32 %14, i32 80, i32 %14)
%16 = tail call i32 (...) @rand()
%17 = srem i32 %16, 3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %11
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 80, i32 %14, i32 100, i32 %14)
br label %21
21: ; preds = %19, %11
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 100, i32 %14, i32 140, i32 %14)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 140, i32 %14, i32 190, i32 %14)
%24 = tail call i32 (...) @rand()
%25 = srem i32 %24, 3
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 190, i32 %14, i32 210, i32 %14)
br label %29
29: ; preds = %27, %21
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 210, i32 %14, i32 250, i32 %14)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 250, i32 %14, i32 300, i32 %14)
%32 = tail call i32 (...) @rand()
%33 = srem i32 %32, 3
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 300, i32 %14, i32 320, i32 %14)
br label %37
37: ; preds = %35, %29
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 320, i32 %14, i32 360, i32 %14)
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 360, i32 %14, i32 410, i32 %14)
%40 = tail call i32 (...) @rand()
%41 = srem i32 %40, 3
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %37
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 410, i32 %14, i32 430, i32 %14)
br label %45
45: ; preds = %43, %37
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 430, i32 %14, i32 470, i32 %14)
%47 = add nuw nsw i32 %12, 1
%48 = icmp eq i32 %47, 5
br i1 %48, label %49, label %11
49: ; preds = %45, %94
%50 = phi i32 [ %96, %94 ], [ 0, %45 ]
%51 = mul nuw nsw i32 %50, 110
%52 = add nuw nsw i32 %51, 30
%53 = add nuw nsw i32 %51, 80
%54 = add nuw nsw i32 %51, 100
%55 = add nuw nsw i32 %51, 150
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 35, i32 %52, i32 35, i32 %53)
%57 = tail call i32 (...) @rand()
%58 = srem i32 %57, 3
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %49
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 35, i32 %53, i32 35, i32 %54)
br label %62
62: ; preds = %60, %49
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 35, i32 %54, i32 35, i32 %55)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 145, i32 %52, i32 145, i32 %53)
%65 = tail call i32 (...) @rand()
%66 = srem i32 %65, 3
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %62
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 145, i32 %53, i32 145, i32 %54)
br label %70
70: ; preds = %68, %62
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 145, i32 %54, i32 145, i32 %55)
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 255, i32 %52, i32 255, i32 %53)
%73 = tail call i32 (...) @rand()
%74 = srem i32 %73, 3
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %70
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 255, i32 %53, i32 255, i32 %54)
br label %78
78: ; preds = %76, %70
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 255, i32 %54, i32 255, i32 %55)
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 365, i32 %52, i32 365, i32 %53)
%81 = tail call i32 (...) @rand()
%82 = srem i32 %81, 3
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %78
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 365, i32 %53, i32 365, i32 %54)
br label %86
86: ; preds = %84, %78
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 365, i32 %54, i32 365, i32 %55)
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 475, i32 %52, i32 475, i32 %53)
%89 = tail call i32 (...) @rand()
%90 = srem i32 %89, 3
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %86
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 475, i32 %53, i32 475, i32 %54)
br label %94
94: ; preds = %92, %86
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0), i32 475, i32 %54, i32 475, i32 %55)
%96 = add nuw nsw i32 %50, 1
%97 = icmp eq i32 %96, 4
br i1 %97, label %98, label %49
98: ; preds = %94
%99 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.17, i64 0, i64 0))
ret i32 0
}