#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 */
typedef scalar_t__ GLint;

/* Variables and functions */
int /*<<< orphan*/ parallelepiped(scalar_t__, scalar_t__, scalar_t__,
                                  scalar_t__, scalar_t__, scalar_t__);
void parallelepiped_draw() {
  int x1 = 200, x2 = 300, y1 = 100, y2 = 175, y3 = 100, y4 = 175;
  GLint i, n = 40;
  for (i = 0; i < n; i += 2) {
    parallelepiped(x1 + i, x2 + i, y1 + i, y2 + i, y3 + i, y4 + i);
  }
}


x86 assembly (clang, -O0):
<parallelepiped_draw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0xc8,-0x4(%rbp)
movl   $0x12c,-0x8(%rbp)
movl   $0x64,-0xc(%rbp)
movl   $0xaf,-0x10(%rbp)
movl   $0x64,-0x14(%rbp)
movl   $0xaf,-0x18(%rbp)
movq   $0x28,-0x28(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    11a6 <parallelepiped_draw+0x96>
movslq -0x4(%rbp),%rdi
add    -0x20(%rbp),%rdi
movslq -0x8(%rbp),%rsi
add    -0x20(%rbp),%rsi
movslq -0xc(%rbp),%rdx
add    -0x20(%rbp),%rdx
movslq -0x10(%rbp),%rcx
add    -0x20(%rbp),%rcx
movslq -0x14(%rbp),%r8
add    -0x20(%rbp),%r8
movslq -0x18(%rbp),%r9
add    -0x20(%rbp),%r9
call   1030 <parallelepiped@plt>
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
jmp    1152 <parallelepiped_draw+0x42>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parallelepiped_draw>:
push   %rbx
mov    $0xfffffffffffffffe,%rbx
nopl   0x0(%rax,%rax,1)
lea    0xca(%rbx),%rdi
lea    0x12e(%rbx),%rsi
lea    0x66(%rbx),%rdx
lea    0xb1(%rbx),%rcx
mov    %rdx,%r8
mov    %rcx,%r9
call   1030 <parallelepiped@plt>
add    $0x2,%rbx
cmp    $0x26,%rbx
jb     1120 <parallelepiped_draw+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @parallelepiped_draw() {
br label %1
1: ; preds = %0, %1
%2 = phi i64 [ 0, %0 ], [ %8, %1 ]
%3 = add nuw nsw i64 %2, 200
%4 = add nuw nsw i64 %2, 300
%5 = add nuw nsw i64 %2, 100
%6 = add nuw nsw i64 %2, 175
%7 = tail call i32 @parallelepiped(i64 %3, i64 %4, i64 %5, i64 %6, i64 %5, i64 %6)
%8 = add nuw nsw i64 %2, 2
%9 = icmp ult i64 %2, 38
br i1 %9, label %1, label %10
10: ; preds = %1
ret void
}