#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_color3fv(float *);
void chaine_dessine_limites(float l1, float l2) {
  float grey_col[] = {0.1, 0.1, 0.1}, black_col[] = {0, 0., 0.},
        border_col[] = {0.8, 0.8, 0.8};
  graphic_set_color3fv(grey_col);
  graphic_draw_circle(0., 0., chaine_rayon_max(l1, l2), 1);
  graphic_set_color3fv(black_col);
  graphic_draw_circle(0., 0., chaine_rayon_min(l1, l2), 1);
  graphic_set_color3fv(border_col);
  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    $0x30,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
mov    0xe97(%rip),%rax
mov    %rax,-0x14(%rbp)
mov    0xe95(%rip),%eax
mov    %eax,-0xc(%rbp)
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    0xe7f(%rip),%rax
mov    %rax,-0x2c(%rbp)
mov    0xe7d(%rip),%eax
mov    %eax,-0x24(%rbp)
lea    -0x14(%rbp),%rdi
call   1030 <graphic_set_color3fv@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   1060 <graphic_draw_circle@plt>
lea    -0x20(%rbp),%rdi
call   1030 <graphic_set_color3fv@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1070 <chaine_rayon_min@plt>
mov    %eax,%edx
xor    %esi,%esi
mov    $0x1,%ecx
mov    %esi,%edi
call   1060 <graphic_draw_circle@plt>
lea    -0x2c(%rbp),%rdi
call   1030 <graphic_set_color3fv@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1070 <chaine_rayon_min@plt>
mov    %eax,%edx
xor    %ecx,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
call   1060 <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   1060 <graphic_draw_circle@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chaine_dessine_limites>:
sub    $0x38,%rsp
movss  %xmm1,0x4(%rsp)
movss  %xmm0,(%rsp)
mov    0xeb3(%rip),%eax
mov    %eax,0x30(%rsp)
mov    0xea0(%rip),%rax
mov    %rax,0x28(%rsp)
movl   $0x0,0x20(%rsp)
movq   $0x0,0x18(%rsp)
mov    0xe98(%rip),%eax
mov    %eax,0x10(%rsp)
mov    0xe85(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0x28(%rsp),%rdi
call   1030 <graphic_set_color3fv@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>
lea    0x18(%rsp),%rdi
call   1030 <graphic_set_color3fv@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>
lea    0x8(%rsp),%rdi
call   1030 <graphic_set_color3fv@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
call   1050 <graphic_draw_circle@plt>
add    $0x38,%rsp
ret

LLVM IR (-O0):
@__const.chaine_dessine_limites.grey_col = [3 x float] [float 0x3FB99999A0000000, float 0x3FB99999A0000000, float 0x3FB99999A0000000]
@__const.chaine_dessine_limites.border_col = [3 x float] [float 0x3FE99999A0000000, float 0x3FE99999A0000000, float 0x3FE99999A0000000]
define void @chaine_dessine_limites(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca [3 x float]
%6 = alloca [3 x float]
%7 = alloca [3 x float]
store float %0, float* %3
store float %1, float* %4
%8 = bitcast [3 x float]* %5 to i8*
%9 = bitcast [3 x float]* %6 to i8*
%10 = bitcast [3 x float]* %7 to i8*
%11 = getelementptr inbounds [3 x float], [3 x float]* %5, i64 0, i64 0
%12 = call i32 @graphic_set_color3fv(float* %11)
%13 = load float, float* %3
%14 = load float, float* %4
%15 = call i32 @chaine_rayon_max(float %13, float %14)
%16 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %15, i32 1)
%17 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 0
%18 = call i32 @graphic_set_color3fv(float* %17)
%19 = load float, float* %3
%20 = load float, float* %4
%21 = call i32 @chaine_rayon_min(float %19, float %20)
%22 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %21, i32 1)
%23 = getelementptr inbounds [3 x float], [3 x float]* %7, i64 0, i64 0
%24 = call i32 @graphic_set_color3fv(float* %23)
%25 = load float, float* %3
%26 = load float, float* %4
%27 = call i32 @chaine_rayon_min(float %25, float %26)
%28 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %27, i32 0)
%29 = load float, float* %3
%30 = load float, float* %4
%31 = call i32 @chaine_rayon_max(float %29, float %30)
%32 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %31, i32 0)
ret void
}

LLVM IR (-O2):
@__const.chaine_dessine_limites.grey_col = [3 x float] [float 0x3FB99999A0000000, float 0x3FB99999A0000000, float 0x3FB99999A0000000]
@__const.chaine_dessine_limites.border_col = [3 x float] [float 0x3FE99999A0000000, float 0x3FE99999A0000000, float 0x3FE99999A0000000]
define void @chaine_dessine_limites(float %0, float %1) {
%3 = alloca [3 x float]
%4 = alloca [3 x float]
%5 = alloca [3 x float]
%6 = bitcast [3 x float]* %3 to i8*
%7 = bitcast [3 x float]* %4 to i8*
%8 = bitcast [3 x float]* %5 to i8*
%9 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 0
%10 = call i32 @graphic_set_color3fv(float* %9)
%11 = call i32 @chaine_rayon_max(float %0, float %1)
%12 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %11, i32 1)
%13 = getelementptr inbounds [3 x float], [3 x float]* %4, i64 0, i64 0
%14 = call i32 @graphic_set_color3fv(float* %13)
%15 = call i32 @chaine_rayon_min(float %0, float %1)
%16 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %15, i32 1)
%17 = getelementptr inbounds [3 x float], [3 x float]* %5, i64 0, i64 0
%18 = call i32 @graphic_set_color3fv(float* %17)
%19 = call i32 @chaine_rayon_min(float %0, float %1)
%20 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %19, i32 0)
%21 = call i32 @chaine_rayon_max(float %0, float %1)
%22 = call i32 @graphic_draw_circle(i32 0, i32 0, i32 %21, i32 0)
ret void
}