#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 */
double frexp(double, int *);
float frexpf(float, int *);
long double frexpl(long double, int *);
int /*<<< orphan*/ printf(char *, int, int, int);
int main(int argc, char *argv[]) {
  int ef, e, el;
  float sigf = frexpf(100.0f, &ef);
  double sig = frexp(100.0, &e);
  long double sigl = frexpl(100.0l, &el);
  printf("exponents: %d, %d, %d.\n", ef, e, el);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  0xea2(%rip),%xmm0
lea    -0x14(%rbp),%rdi
call   1060 <frexpf@plt>
movss  %xmm0,-0x20(%rbp)
movsd  0xe94(%rip),%xmm0
lea    -0x18(%rbp),%rdi
call   1040 <frexp@plt>
movsd  %xmm0,-0x28(%rbp)
mov    %rsp,%rax
flds   0xe75(%rip)
fstpt  (%rax)
lea    -0x1c(%rbp),%rdi
call   1050 <frexpl@plt>
fstpt  -0x40(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movss  0xeb4(%rip),%xmm0
lea    0x24(%rsp),%rdi
call   1060 <frexpf@plt>
movsd  0xeaa(%rip),%xmm0
lea    0x20(%rsp),%rdi
call   1040 <frexp@plt>
flds   0xe92(%rip)
fstpt  (%rsp)
lea    0x1c(%rsp),%rdi
call   1050 <frexpl@plt>
fstp   %st(0)
mov    0x24(%rsp),%esi
mov    0x20(%rsp),%edx
mov    0x1c(%rsp),%ecx
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"exponents: %d, %d, %d.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca float
%10 = alloca double
%11 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = call float @frexpf(float 1.000000e+02, i32* %6)
store float %12, float* %9
%13 = call double @frexp(double 1.000000e+02, i32* %7)
store double %13, double* %10
%14 = call x86_fp80 @frexpl(x86_fp80 0xK4005C800000000000000, i32* %8)
store x86_fp80 %14, x86_fp80* %11
%15 = load i32, i32* %6
%16 = load i32, i32* %7
%17 = load i32, i32* %8
%18 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %15, i32 %16, i32 %17)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"exponents: %d, %d, %d.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = bitcast i32* %5 to i8*
%9 = call float @frexpf(float 1.000000e+02, i32* %3)
%10 = call double @frexp(double 1.000000e+02, i32* %4)
%11 = call x86_fp80 @frexpl(x86_fp80 0xK4005C800000000000000, i32* %5)
%12 = load i32, i32* %3
%13 = load i32, i32* %4
%14 = load i32, i32* %5
%15 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13, i32 %14)
ret i32 0
}