#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 double GLfloat;

/* Variables and functions */
int /*<<< orphan*/ GL_BLEND;
int /*<<< orphan*/ GL_DIFFUSE;
int /*<<< orphan*/ GL_FRONT;
int /*<<< orphan*/ GL_ONE;
int /*<<< orphan*/ GL_SRC_ALPHA;
int /*<<< orphan*/ glBlendFunc(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glDisable(int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glMaterialfv(int /*<<< orphan*/, int /*<<< orphan*/,
                                double *);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(int, int /*<<< orphan*/, int, int /*<<< orphan*/);
int /*<<< orphan*/ glScaled(int, int, int);
int /*<<< orphan*/ glTranslated(double, int /*<<< orphan*/, double);
int /*<<< orphan*/ glutSolidCube(int);
void myDrawPicture1(void) {
  GLfloat diffSofa[] = {0.5, 0.5, 0.0, 1.0};
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffSofa);
  glEnable(GL_BLEND);
  glBlendFunc(GL_SRC_ALPHA, GL_ONE);
  glPushMatrix();
  glRotatef(90, 0, 1, 0);
  glScaled(1, 10, 10);
  glutSolidCube(1);
  glPopMatrix();
  glDisable(GL_BLEND);
  glPushMatrix();
  glTranslated(0.0, 0, -1.1);
  glRotatef(90, 0, 1, 0);
  glScaled(1, 10, 10);
  glutSolidCube(1);
  glPopMatrix();
}


x86 assembly (clang, -O0):
<myDrawPicture1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xe61(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe5e(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe5b(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xe58(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
mov    0x2ddc(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2dea(%rip),%rax
mov    (%rax),%edi
call   1040 <glEnable@plt>
mov    0x2dc4(%rip),%rax
mov    (%rax),%edi
mov    0x2dc3(%rip),%rax
mov    (%rax),%esi
call   1030 <glBlendFunc@plt>
mov    $0x0,%al
call   1080 <glPushMatrix@plt>
mov    $0x5a,%edi
xor    %ecx,%ecx
mov    $0x1,%edx
mov    %ecx,%esi
call   10c0 <glRotatef@plt>
mov    $0x1,%edi
mov    $0xa,%edx
mov    %edx,%esi
call   1070 <glScaled@plt>
mov    $0x1,%edi
call   1050 <glutSolidCube@plt>
mov    $0x0,%al
call   1060 <glPopMatrix@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%edi
call   10a0 <glDisable@plt>
mov    $0x0,%al
call   1080 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
xor    %edi,%edi
movsd  0xd8e(%rip),%xmm1
call   1090 <glTranslated@plt>
mov    $0x5a,%edi
xor    %ecx,%ecx
mov    $0x1,%edx
mov    %ecx,%esi
call   10c0 <glRotatef@plt>
mov    $0x1,%edi
mov    $0xa,%edx
mov    %edx,%esi
call   1070 <glScaled@plt>
mov    $0x1,%edi
call   1050 <glutSolidCube@plt>
mov    $0x0,%al
call   1060 <glPopMatrix@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDrawPicture1>:
push   %rbx
sub    $0x20,%rsp
movaps 0xe74(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe58(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2e25(%rip),%rax
mov    (%rax),%edi
mov    0x2df4(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
call   10b0 <glMaterialfv@plt>
mov    0x2e03(%rip),%rbx
mov    (%rbx),%edi
call   1040 <glEnable@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
mov    0x2ddc(%rip),%rax
mov    (%rax),%esi
call   1030 <glBlendFunc@plt>
xor    %eax,%eax
call   1080 <glPushMatrix@plt>
mov    $0x5a,%edi
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   10c0 <glRotatef@plt>
mov    $0x1,%edi
mov    $0xa,%esi
mov    $0xa,%edx
call   1070 <glScaled@plt>
mov    $0x1,%edi
call   1050 <glutSolidCube@plt>
xor    %eax,%eax
call   1060 <glPopMatrix@plt>
mov    (%rbx),%edi
call   10a0 <glDisable@plt>
xor    %eax,%eax
call   1080 <glPushMatrix@plt>
movsd  0xdb0(%rip),%xmm1
xorps  %xmm0,%xmm0
xor    %edi,%edi
call   1090 <glTranslated@plt>
mov    $0x5a,%edi
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   10c0 <glRotatef@plt>
mov    $0x1,%edi
mov    $0xa,%esi
mov    $0xa,%edx
call   1070 <glScaled@plt>
mov    $0x1,%edi
call   1050 <glutSolidCube@plt>
xor    %eax,%eax
call   1060 <glPopMatrix@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.myDrawPicture1.diffSofa = [4 x double] [double 5.000000e-01, double 5.000000e-01, double 0.000000e+00, double 1.000000e+00]
@GL_FRONT = global i32 0
@GL_DIFFUSE = global i32 0
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE = global i32 0
define void @myDrawPicture1() {
%1 = alloca [4 x double]
%2 = bitcast [4 x double]* %1 to i8*
%3 = load i32, i32* @GL_FRONT
%4 = load i32, i32* @GL_DIFFUSE
%5 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%6 = call i32 @glMaterialfv(i32 %3, i32 %4, double* %5)
%7 = load i32, i32* @GL_BLEND
%8 = call i32 @glEnable(i32 %7)
%9 = load i32, i32* @GL_SRC_ALPHA
%10 = load i32, i32* @GL_ONE
%11 = call i32 @glBlendFunc(i32 %9, i32 %10)
%12 = call i32 (...) @glPushMatrix()
%13 = call i32 @glRotatef(i32 90, i32 0, i32 1, i32 0)
%14 = call i32 @glScaled(i32 1, i32 10, i32 10)
%15 = call i32 @glutSolidCube(i32 1)
%16 = call i32 (...) @glPopMatrix()
%17 = load i32, i32* @GL_BLEND
%18 = call i32 @glDisable(i32 %17)
%19 = call i32 (...) @glPushMatrix()
%20 = call i32 @glTranslated(double 0.000000e+00, i32 0, double -1.100000e+00)
%21 = call i32 @glRotatef(i32 90, i32 0, i32 1, i32 0)
%22 = call i32 @glScaled(i32 1, i32 10, i32 10)
%23 = call i32 @glutSolidCube(i32 1)
%24 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
@__const.myDrawPicture1.diffSofa = [4 x double] [double 5.000000e-01, double 5.000000e-01, double 0.000000e+00, double 1.000000e+00]
@GL_FRONT = global i32 0
@GL_DIFFUSE = global i32 0
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE = global i32 0
define void @myDrawPicture1() {
%1 = alloca [4 x double]
%2 = bitcast [4 x double]* %1 to i8*
%3 = load i32, i32* @GL_FRONT
%4 = load i32, i32* @GL_DIFFUSE
%5 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%6 = call i32 @glMaterialfv(i32 %3, i32 %4, double* %5)
%7 = load i32, i32* @GL_BLEND
%8 = call i32 @glEnable(i32 %7)
%9 = load i32, i32* @GL_SRC_ALPHA
%10 = load i32, i32* @GL_ONE
%11 = call i32 @glBlendFunc(i32 %9, i32 %10)
%12 = call i32 (...) @glPushMatrix()
%13 = call i32 @glRotatef(i32 90, i32 0, i32 1, i32 0)
%14 = call i32 @glScaled(i32 1, i32 10, i32 10)
%15 = call i32 @glutSolidCube(i32 1)
%16 = call i32 (...) @glPopMatrix()
%17 = load i32, i32* @GL_BLEND
%18 = call i32 @glDisable(i32 %17)
%19 = call i32 (...) @glPushMatrix()
%20 = call i32 @glTranslated(double 0.000000e+00, i32 0, double -1.100000e+00)
%21 = call i32 @glRotatef(i32 90, i32 0, i32 1, i32 0)
%22 = call i32 @glScaled(i32 1, i32 10, i32 10)
%23 = call i32 @glutSolidCube(i32 1)
%24 = call i32 (...) @glPopMatrix()
ret void
}