#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*/ background(int, int, int);
int /*<<< orphan*/ circle(int, int, int);
int /*<<< orphan*/ fill(int, int, int);
int /*<<< orphan*/ pop();
int /*<<< orphan*/ push();
int /*<<< orphan*/ stroke(int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/);
int /*<<< orphan*/ strokeThickness(int);
void draw() {
  background(127, 127, 127);
  fill(255, 255, 255);
  circle(100, 100, 20);
  push();
  fill(255, 0, 0);
  stroke(0, 0, 0);
  strokeThickness(2);
  circle(140, 100, 20);
  pop();
  circle(180, 100, 20);
}


x86 assembly (clang, -O0):
<draw>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7f,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1070 <background@plt>
mov    $0xff,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1040 <fill@plt>
mov    $0x64,%esi
mov    $0x14,%edx
mov    %esi,%edi
call   1060 <circle@plt>
mov    $0x0,%al
call   1080 <push@plt>
mov    $0xff,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1040 <fill@plt>
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1050 <stroke@plt>
mov    $0x2,%edi
call   1090 <strokeThickness@plt>
mov    $0x8c,%edi
mov    $0x64,%esi
mov    $0x14,%edx
call   1060 <circle@plt>
mov    $0x0,%al
call   1030 <pop@plt>
mov    $0xb4,%edi
mov    $0x64,%esi
mov    $0x14,%edx
call   1060 <circle@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw>:
push   %rax
mov    $0x7f,%edi
mov    $0x7f,%esi
mov    $0x7f,%edx
call   1070 <background@plt>
mov    $0xff,%edi
mov    $0xff,%esi
mov    $0xff,%edx
call   1040 <fill@plt>
mov    $0x64,%edi
mov    $0x64,%esi
mov    $0x14,%edx
call   1060 <circle@plt>
xor    %eax,%eax
call   1080 <push@plt>
mov    $0xff,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1040 <fill@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <stroke@plt>
mov    $0x2,%edi
call   1090 <strokeThickness@plt>
mov    $0x8c,%edi
mov    $0x64,%esi
mov    $0x14,%edx
call   1060 <circle@plt>
xor    %eax,%eax
call   1030 <pop@plt>
mov    $0xb4,%edi
mov    $0x64,%esi
mov    $0x14,%edx
pop    %rax
jmp    1060 <circle@plt>

LLVM IR (-O0):
define void @draw() {
%1 = call i32 @background(i32 127, i32 127, i32 127)
%2 = call i32 @fill(i32 255, i32 255, i32 255)
%3 = call i32 @circle(i32 100, i32 100, i32 20)
%4 = call i32 (...) @push()
%5 = call i32 @fill(i32 255, i32 0, i32 0)
%6 = call i32 @stroke(i32 0, i32 0, i32 0)
%7 = call i32 @strokeThickness(i32 2)
%8 = call i32 @circle(i32 140, i32 100, i32 20)
%9 = call i32 (...) @pop()
%10 = call i32 @circle(i32 180, i32 100, i32 20)
ret void
}

LLVM IR (-O2):
define void @draw() {
%1 = tail call i32 @background(i32 127, i32 127, i32 127)
%2 = tail call i32 @fill(i32 255, i32 255, i32 255)
%3 = tail call i32 @circle(i32 100, i32 100, i32 20)
%4 = tail call i32 (...) @push()
%5 = tail call i32 @fill(i32 255, i32 0, i32 0)
%6 = tail call i32 @stroke(i32 0, i32 0, i32 0)
%7 = tail call i32 @strokeThickness(i32 2)
%8 = tail call i32 @circle(i32 140, i32 100, i32 20)
%9 = tail call i32 (...) @pop()
%10 = tail call i32 @circle(i32 180, i32 100, i32 20)
ret void
}