#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*/ RGB0255toRGB01(int, int, int, double *, double *, double *);
int /*<<< orphan*/ RGBtoHSVPat(double, double, double, double *, double *,
                               double *);
int /*<<< orphan*/ printf(char *, double, double, double);
void couleur_test2() {
  double H360, S1, V1, R1, G1, B1;
  printf("R255G255B255 %lf %lf %lf\n", 255., 12.0, 0.0);
  RGB0255toRGB01(255., 12., 0., &R1, &G1, &B1);
  RGBtoHSVPat(R1, G1, B1, &H360, &S1, &V1);
  printf("angle correspondant en degre %lf %lf %lf\n", H360, S1, V1);
}


x86 assembly (clang, -O0):
<couleur_test2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xed1(%rip),%rdi
movsd  0xeb9(%rip),%xmm0
movsd  0xeb9(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1030 <printf@plt>
mov    $0xff,%edi
mov    $0xc,%esi
xor    %edx,%edx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x30(%rbp),%r9
call   1050 <RGB0255toRGB01@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <RGBtoHSVPat@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<couleur_test2>:
sub    $0x38,%rsp
lea    0xed5(%rip),%rdi
movsd  0xebd(%rip),%xmm0
movsd  0xebd(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1030 <printf@plt>
lea    0x18(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0x8(%rsp),%r9
mov    $0xff,%edi
mov    $0xc,%esi
xor    %edx,%edx
call   1050 <RGB0255toRGB01@plt>
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
lea    0x30(%rsp),%rdi
lea    0x28(%rsp),%rsi
lea    0x20(%rsp),%rdx
call   1040 <RGBtoHSVPat@plt>
movsd  0x30(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
add    $0x38,%rsp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"R255G255B255 %lf %lf %lf\0A\00"
@.str.1 = [42 x i8] c"angle correspondant en degre %lf %lf %lf\0A\00"
define void @couleur_test2() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), double 2.550000e+02, double 1.200000e+01, double 0.000000e+00)
%8 = call i32 @RGB0255toRGB01(i32 255, i32 12, i32 0, double* %4, double* %5, double* %6)
%9 = load double, double* %4
%10 = load double, double* %5
%11 = load double, double* %6
%12 = call i32 @RGBtoHSVPat(double %9, double %10, double %11, double* %1, double* %2, double* %3)
%13 = load double, double* %1
%14 = load double, double* %2
%15 = load double, double* %3
%16 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), double %13, double %14, double %15)
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"R255G255B255 %lf %lf %lf\0A\00"
@.str.1 = [42 x i8] c"angle correspondant en degre %lf %lf %lf\0A\00"
define void @couleur_test2() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = bitcast double* %1 to i8*
%8 = bitcast double* %2 to i8*
%9 = bitcast double* %3 to i8*
%10 = bitcast double* %4 to i8*
%11 = bitcast double* %5 to i8*
%12 = bitcast double* %6 to i8*
%13 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), double 2.550000e+02, double 1.200000e+01, double 0.000000e+00)
%14 = call i32 @RGB0255toRGB01(i32 255, i32 12, i32 0, double* %4, double* %5, double* %6)
%15 = load double, double* %4
%16 = load double, double* %5
%17 = load double, double* %6
%18 = call i32 @RGBtoHSVPat(double %15, double %16, double %17, double* %1, double* %2, double* %3)
%19 = load double, double* %1
%20 = load double, double* %2
%21 = load double, double* %3
%22 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), double %19, double %20, double %21)
ret void
}