#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*/ circle(int, int, int, int);
int /*<<< orphan*/ eset(int);
int Mcircle(int nargs, int *args) {
  if (nargs < 4) {
    eset(24);
    return -1;
  }
  int xCenter = args[0];
  int yCenter = args[1];
  int radius = args[2];
  int npts = args[3];
  circle(xCenter, yCenter, radius, npts);
}


x86 assembly (clang, -O0):
<Mcircle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    114f <Mcircle+0x2f>
mov    $0x18,%edi
call   1030 <eset@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1187 <Mcircle+0x67>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
call   1040 <circle@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Mcircle>:
push   %rax
cmp    $0x3,%edi
jg     1132 <Mcircle+0x12>
mov    $0x18,%edi
call   1030 <eset@plt>
jmp    1144 <Mcircle+0x24>
mov    (%rsi),%edi
mov    0x4(%rsi),%eax
mov    0x8(%rsi),%edx
mov    0xc(%rsi),%ecx
mov    %eax,%esi
call   1040 <circle@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @Mcircle(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %4
store i32* %1, i32** %5
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @eset(i32 24)
store i32 -1, i32* %3
br label %32
14: ; preds = %2
%15 = load i32*, i32** %5
%16 = getelementptr inbounds i32, i32* %15, i64 0
%17 = load i32, i32* %16
store i32 %17, i32* %6
%18 = load i32*, i32** %5
%19 = getelementptr inbounds i32, i32* %18, i64 1
%20 = load i32, i32* %19
store i32 %20, i32* %7
%21 = load i32*, i32** %5
%22 = getelementptr inbounds i32, i32* %21, i64 2
%23 = load i32, i32* %22
store i32 %23, i32* %8
%24 = load i32*, i32** %5
%25 = getelementptr inbounds i32, i32* %24, i64 3
%26 = load i32, i32* %25
store i32 %26, i32* %9
%27 = load i32, i32* %6
%28 = load i32, i32* %7
%29 = load i32, i32* %8
%30 = load i32, i32* %9
%31 = call i32 @circle(i32 %27, i32 %28, i32 %29, i32 %30)
br label %32
32: ; preds = %14, %12
%33 = load i32, i32* %3
ret i32 %33
}

LLVM IR (-O2):
define i32 @Mcircle(i32 %0, i32* nocapture %1) {
%3 = icmp slt i32 %0, 4
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @eset(i32 24)
br label %15
6: ; preds = %2
%7 = load i32, i32* %1
%8 = getelementptr inbounds i32, i32* %1, i64 1
%9 = load i32, i32* %8
%10 = getelementptr inbounds i32, i32* %1, i64 2
%11 = load i32, i32* %10
%12 = getelementptr inbounds i32, i32* %1, i64 3
%13 = load i32, i32* %12
%14 = tail call i32 @circle(i32 %7, i32 %9, i32 %11, i32 %13)
br label %15
15: ; preds = %6, %4
ret i32 -1
}