#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*/ chaine_rayon_max(float, float);
int /*<<< orphan*/ chaine_rayon_min(float, float);
int /*<<< orphan*/ graphic_draw_circle(int, int, int /*<<< orphan*/, int);
int /*<<< orphan*/ graphic_set_color3f(double, double, double);
void chaine_dessine_limites(float l1, float l2) {
  graphic_set_color3f(0.1, 0.1, 0.1);
  graphic_draw_circle(0., 0., chaine_rayon_max(l1, l2), 1);
  graphic_set_color3f(0., 0., 0.);
  graphic_draw_circle(0., 0., chaine_rayon_min(l1, l2), 1);
  graphic_set_color3f(0.8, 0.8, 0.8);
  graphic_draw_circle(0., 0., chaine_rayon_min(l1, l2), 0);
  graphic_draw_circle(0., 0., chaine_rayon_max(l1, l2), 0);
}


x86 assembly (clang, -O0):
<chaine_dessine_limites>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movsd  0xeae(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1030 <graphic_set_color3f@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1040 <chaine_rayon_max@plt>
mov    %eax,%edx
xor    %esi,%esi
mov    $0x1,%ecx
mov    %esi,%edi
call   1050 <graphic_draw_circle@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1030 <graphic_set_color3f@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1060 <chaine_rayon_min@plt>
mov    %eax,%edx
xor    %esi,%esi
mov    $0x1,%ecx
mov    %esi,%edi
call   1050 <graphic_draw_circle@plt>
movsd  0xe47(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1030 <graphic_set_color3f@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1060 <chaine_rayon_min@plt>
mov    %eax,%edx
xor    %ecx,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
call   1050 <graphic_draw_circle@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1040 <chaine_rayon_max@plt>
mov    %eax,%edx
xor    %ecx,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
call   1050 <graphic_draw_circle@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chaine_dessine_limites>:
push   %rax
movss  %xmm1,0x4(%rsp)
movss  %xmm0,(%rsp)
movsd  0xeac(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1030 <graphic_set_color3f@plt>
movss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
call   1040 <chaine_rayon_max@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %eax,%edx
mov    $0x1,%ecx
call   1050 <graphic_draw_circle@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1030 <graphic_set_color3f@plt>
movss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
call   1060 <chaine_rayon_min@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %eax,%edx
mov    $0x1,%ecx
call   1050 <graphic_draw_circle@plt>
movsd  0xe53(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1030 <graphic_set_color3f@plt>
movss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
call   1060 <chaine_rayon_min@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %eax,%edx
xor    %ecx,%ecx
call   1050 <graphic_draw_circle@plt>
movss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
call   1040 <chaine_rayon_max@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %eax,%edx
xor    %ecx,%ecx
pop    %rax
jmp    1050 <graphic_draw_circle@plt>

LLVM IR (-O0):
define void @chaine_dessine_limites(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = call i32 @graphic_set_color3f(double 1.000000e-01, double 1.000000e-01, double 1.000000e-01)
%6 = load float, float* %3
%7 = load float, float* %4
%8 = call i32 @chaine_rayon_max(float %6, float %7)
%9 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %8, i32 1)
%10 = call i32 @graphic_set_color3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%11 = load float, float* %3
%12 = load float, float* %4
%13 = call i32 @chaine_rayon_min(float %11, float %12)
%14 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %13, i32 1)
%15 = call i32 @graphic_set_color3f(double 8.000000e-01, double 8.000000e-01, double 8.000000e-01)
%16 = load float, float* %3
%17 = load float, float* %4
%18 = call i32 @chaine_rayon_min(float %16, float %17)
%19 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %18, i32 0)
%20 = load float, float* %3
%21 = load float, float* %4
%22 = call i32 @chaine_rayon_max(float %20, float %21)
%23 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %22, i32 0)
ret void
}

LLVM IR (-O2):
define void @chaine_dessine_limites(float %0, float %1) {
%3 = tail call i32 @graphic_set_color3f(double 1.000000e-01, double 1.000000e-01, double 1.000000e-01)
%4 = tail call i32 @chaine_rayon_max(float %0, float %1)
%5 = tail call i32 @graphic_draw_circle(i32 0, i32 0, i32 %4, i32 1)
%6 = tail call i32 @graphic_set_color3f(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = tail call i32 @chaine_rayon_min(float %0, float %1)
%8 = tail call i32 @graphic_draw_circle(i32 0, i32 0, i32 %7, i32 1)
%9 = tail call i32 @graphic_set_color3f(double 8.000000e-01, double 8.000000e-01, double 8.000000e-01)
%10 = tail call i32 @chaine_rayon_min(float %0, float %1)
%11 = tail call i32 @graphic_draw_circle(i32 0, i32 0, i32 %10, i32 0)
%12 = tail call i32 @chaine_rayon_max(float %0, float %1)
%13 = tail call i32 @graphic_draw_circle(i32 0, i32 0, i32 %12, i32 0)
ret void
}