#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 */
typedef int uint64_t;
typedef int uint32_t;
typedef int uint16_t;
typedef int /*<<< orphan*/ q;
typedef int /*<<< orphan*/ l;
typedef int /*<<< orphan*/ h;

/* Variables and functions */
int DBL_DIG;
double DBL_EPSILON;
int DBL_MANT_DIG;
double DBL_MAX;
int DBL_MAX_EXP;
double DBL_MIN;
int DBL_MIN_10_EXP;
int DBL_MIN_EXP;
int FLT_DIG;
double FLT_EPSILON;
int FLT_MANT_DIG;
double FLT_MAX;
int FLT_MAX_EXP;
double FLT_MIN;
int FLT_MIN_10_EXP;
int FLT_MIN_EXP;
int FLT_RADIX;
int FLT_ROUNDS;
int LDBL_DIG;
int LDBL_EPSILON;
int LDBL_MANT_DIG;
int LDBL_MAX;
int LDBL_MAX_EXP;
int LDBL_MIN;
int LDBL_MIN_10_EXP;
int LDBL_MIN_EXP;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ show_endian(char *, int *, int, int);
scalar_t__ stack_grows_down();
int main() {
  uint16_t h = 0x1234;
  show_endian("uint16_t", &h, sizeof(h), h);
  uint32_t l = 0x12345678L;
  show_endian("uint32_t", &l, sizeof(l), l);
  uint64_t q = 0x1234567890abcdef;
  show_endian("uint64_t", &q, sizeof(q), q);
  printf("stack grows %s\n", stack_grows_down() ? "down (to lower addresses)"
                                                : "up (to higher addresses)");
  char c = ~0;
  int i = c;
  printf("char is %s\n", i < 0 ? "signed" : "unsigned");
  size_t bits_per_char = 0;
  while (c != 0) {
    c &= c - 1;
    ++bits_per_char;
  }
  do {
    struct {
      char a;
      char b;
    } x;
    printf("%s is %zu bits with %td-byte alignment\n", "char",
           sizeof(char) * bits_per_char, (char *)&x.b - &x.a);
  } while (0);
  do {
    struct {
      char a;
      short b;
    } x;
    printf("%s is %zu bits with %td-byte alignment\n", "short",
           sizeof(short) * bits_per_char, (char *)&x.b - &x.a);
  } while (0);
  do {
    struct {
      char a;
      int b;
    } x;
    printf("%s is %zu bits with %td-byte alignment\n", "int",
           sizeof(int) * bits_per_char, (char *)&x.b - &x.a);
  } while (0);
  do {
    struct {
      char a;
      long b;
    } x;
    printf("%s is %zu bits with %td-byte alignment\n", "long",
           sizeof(long) * bits_per_char, (char *)&x.b - &x.a);
  } while (0);
  do {
    struct {
      char a;
      long long b;
    } x;
    printf("%s is %zu bits with %td-byte alignment\n", "long long",
           sizeof(long long) * bits_per_char, (char *)&x.b - &x.a);
  } while (0);
  do {
    struct {
      char a;
      float b;
    } x;
    printf("%s is %zu bits with %td-byte alignment\n", "float",
           sizeof(float) * bits_per_char, (char *)&x.b - &x.a);
  } while (0);
  do {
    struct {
      char a;
      double b;
    } x;
    printf("%s is %zu bits with %td-byte alignment\n", "double",
           sizeof(double) * bits_per_char, (char *)&x.b - &x.a);
  } while (0);
  do {
    struct {
      char a;
      long double b;
    } x;
    printf("%s is %zu bits with %td-byte alignment\n", "long double",
           sizeof(long double) * bits_per_char, (char *)&x.b - &x.a);
  } while (0);
  printf("sizeof(size_t)=%zu\n", sizeof(size_t));
  printf("FLT_ROUNDS %d\n", FLT_ROUNDS);
  printf("FLT_RADIX %d\n", FLT_RADIX);
  printf("MANT_DIG   %6d %6d %6d\n", FLT_MANT_DIG, DBL_MANT_DIG, LDBL_MANT_DIG);
  printf("DIG        %6d %6d %6d\n", FLT_DIG, DBL_DIG, LDBL_DIG);
  printf("MIN_EXP    %6d %6d %6d\n", FLT_MIN_EXP, DBL_MIN_EXP, LDBL_MIN_EXP);
  printf("MIN_10_EXP %6d %6d %6d\n", FLT_MIN_10_EXP, DBL_MIN_10_EXP,
         LDBL_MIN_10_EXP);
  printf("MAX_EXP    %6d %6d %6d\n", FLT_MAX_EXP, DBL_MAX_EXP, LDBL_MAX_EXP);
  printf("MIN        %g %g %Lg\n", FLT_MIN, DBL_MIN, LDBL_MIN);
  printf("MAX        %g %g %Lg\n", FLT_MAX, DBL_MAX, LDBL_MAX);
  printf("EPSILON    %g %g %Lg\n", FLT_EPSILON, DBL_EPSILON, LDBL_EPSILON);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1234,-0x8(%rbp)
mov    -0x8(%rbp),%ecx
lea    0xead(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1030 <show_endian@plt>
movl   $0x12345678,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
lea    0xe97(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x4,%edx
call   1030 <show_endian@plt>
movl   $0x90abcdef,-0x10(%rbp)
mov    -0x10(%rbp),%ecx
lea    0xe81(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1030 <show_endian@plt>
mov    $0x0,%al
call   1040 <stack_grows_down@plt>
mov    %rax,%rcx
lea    0xe95(%rip),%rsi
lea    0xe74(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movb   $0xff,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%ecx
lea    0xe88(%rip),%rsi
lea    0xe83(%rip),%rax
cmp    $0x0,%ecx
cmovl  %rax,%rsi
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x20(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x0,%eax
je     1234 <main+0x104>
movsbl -0x11(%rbp),%ecx
sub    $0x1,%ecx
movsbl -0x11(%rbp),%eax
and    %ecx,%eax
mov    %al,-0x11(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1206 <main+0xd6>
jmp    1239 <main+0x109>
mov    -0x20(%rbp),%rdx
shl    $0x0,%rdx
lea    -0x28(%rbp),%rcx
add    $0x1,%rcx
lea    -0x28(%rbp),%rax
sub    %rax,%rcx
lea    0xe1c(%rip),%rdi
lea    0xe3d(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    126a <main+0x13a>
mov    -0x20(%rbp),%rdx
shl    $0x1,%rdx
lea    -0x30(%rbp),%rcx
add    $0x2,%rcx
lea    -0x30(%rbp),%rax
sub    %rax,%rcx
lea    0xdeb(%rip),%rdi
lea    0xe11(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    129b <main+0x16b>
mov    -0x20(%rbp),%rdx
shl    $0x2,%rdx
lea    -0x38(%rbp),%rcx
add    $0x4,%rcx
lea    -0x38(%rbp),%rax
sub    %rax,%rcx
lea    0xdba(%rip),%rdi
lea    0xde6(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12cc <main+0x19c>
mov    -0x20(%rbp),%rdx
shl    $0x3,%rdx
lea    -0x48(%rbp),%rcx
add    $0x8,%rcx
lea    -0x48(%rbp),%rax
sub    %rax,%rcx
lea    0xd89(%rip),%rdi
lea    0xdbe(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12fd <main+0x1cd>
mov    -0x20(%rbp),%rdx
shl    $0x3,%rdx
lea    -0x58(%rbp),%rcx
add    $0x8,%rcx
lea    -0x58(%rbp),%rax
sub    %rax,%rcx
lea    0xd58(%rip),%rdi
lea    0xd88(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    132e <main+0x1fe>
mov    -0x20(%rbp),%rdx
shl    $0x2,%rdx
lea    -0x60(%rbp),%rcx
add    $0x4,%rcx
lea    -0x60(%rbp),%rax
sub    %rax,%rcx
lea    0xd27(%rip),%rdi
lea    0xd61(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    135f <main+0x22f>
mov    -0x20(%rbp),%rdx
shl    $0x3,%rdx
lea    -0x70(%rbp),%rcx
add    $0x8,%rcx
lea    -0x70(%rbp),%rax
sub    %rax,%rcx
lea    0xcf6(%rip),%rdi
lea    0xd3b(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1390 <main+0x260>
mov    -0x20(%rbp),%rdx
shl    $0x4,%rdx
lea    -0x90(%rbp),%rcx
add    $0x10,%rcx
lea    -0x90(%rbp),%rax
sub    %rax,%rcx
lea    0xcbf(%rip),%rdi
lea    0xcff(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcfd(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2bf4(%rip),%rax
mov    (%rax),%esi
lea    0xcf5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2be5(%rip),%rax
mov    (%rax),%esi
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2b3e(%rip),%rax
mov    (%rax),%esi
mov    0x2b9d(%rip),%rax
mov    (%rax),%edx
mov    0x2b14(%rip),%rax
mov    (%rax),%ecx
lea    0xcd2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2bc5(%rip),%rax
mov    (%rax),%esi
mov    0x2b54(%rip),%rax
mov    (%rax),%edx
mov    0x2b0b(%rip),%rax
mov    (%rax),%ecx
lea    0xcc1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2b2c(%rip),%rax
mov    (%rax),%esi
mov    0x2b63(%rip),%rax
mov    (%rax),%edx
mov    0x2aca(%rip),%rax
mov    (%rax),%ecx
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2afb(%rip),%rax
mov    (%rax),%esi
mov    0x2b5a(%rip),%rax
mov    (%rax),%edx
mov    0x2b21(%rip),%rax
mov    (%rax),%ecx
lea    0xc9f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2aea(%rip),%rax
mov    (%rax),%esi
mov    0x2b09(%rip),%rax
mov    (%rax),%edx
mov    0x2a98(%rip),%rax
mov    (%rax),%ecx
lea    0xc8e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2ac9(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2a46(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2a53(%rip),%rax
mov    (%rax),%esi
lea    0xc79(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x2a74(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2a11(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2a46(%rip),%rax
mov    (%rax),%esi
lea    0xc62(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x2a37(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2a6c(%rip),%rax
movsd  (%rax),%xmm1
mov    0x29c9(%rip),%rax
mov    (%rax),%esi
lea    0xc4b(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x1234,0xc(%rsp)
lea    0xebc(%rip),%rdi
lea    0xc(%rsp),%rsi
mov    $0x4,%edx
mov    $0x1234,%ecx
call   1030 <show_endian@plt>
movl   $0x12345678,0x8(%rsp)
12
lea    0xea2(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    $0x4,%edx
mov    $0x12345678,%ecx
call   1030 <show_endian@plt>
movl   $0x90abcdef,0x4(%rsp)
90
lea    0xe88(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
mov    $0x90abcdef,%ecx
call   1030 <show_endian@plt>
xor    %eax,%eax
call   1040 <stack_grows_down@plt>
test   %rax,%rax
lea    0xe96(%rip),%rax
lea    0xe75(%rip),%rsi
cmove  %rax,%rsi
lea    0xe5a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe8f(%rip),%rdi
lea    0xe94(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe8d(%rip),%rbx
lea    0xeae(%rip),%rsi
mov    $0x8,%edx
mov    $0x1,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe98(%rip),%rsi
mov    $0x10,%edx
mov    $0x2,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe83(%rip),%rsi
mov    $0x20,%edx
mov    $0x4,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe71(%rip),%rsi
mov    $0x40,%edx
mov    $0x8,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe51(%rip),%rsi
mov    $0x40,%edx
mov    $0x8,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe40(%rip),%rsi
mov    $0x20,%edx
mov    $0x4,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe30(%rip),%rsi
mov    $0x40,%edx
mov    $0x8,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe10(%rip),%rsi
mov    $0x80,%edx
mov    $0x10,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe01(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cfa(%rip),%rax
mov    (%rax),%esi
lea    0xdf9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2ceb(%rip),%rax
mov    (%rax),%esi
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c44(%rip),%rax
mov    (%rax),%esi
mov    0x2ca3(%rip),%rax
mov    (%rax),%edx
mov    0x2c1a(%rip),%rax
mov    (%rax),%ecx
lea    0xdd6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2ccb(%rip),%rax
mov    (%rax),%esi
mov    0x2c5a(%rip),%rax
mov    (%rax),%edx
mov    0x2c11(%rip),%rax
mov    (%rax),%ecx
lea    0xdc5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c32(%rip),%rax
mov    (%rax),%esi
mov    0x2c69(%rip),%rax
mov    (%rax),%edx
mov    0x2bd0(%rip),%rax
mov    (%rax),%ecx
lea    0xdb4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c01(%rip),%rax
mov    (%rax),%esi
mov    0x2c60(%rip),%rax
mov    (%rax),%edx
mov    0x2c27(%rip),%rax
mov    (%rax),%ecx
lea    0xda3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2bf0(%rip),%rax
mov    (%rax),%esi
mov    0x2c0f(%rip),%rax
mov    (%rax),%edx
mov    0x2b9e(%rip),%rax
mov    (%rax),%ecx
lea    0xd92(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2bcf(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2b4c(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2b59(%rip),%rax
mov    (%rax),%esi
lea    0xd7d(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x2b7a(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2b17(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2b4c(%rip),%rax
mov    (%rax),%esi
lea    0xd66(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x2b3d(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2b72(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2acf(%rip),%rax
mov    (%rax),%esi
lea    0xd4f(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.anon = type { i8, i8 }
%struct.anon.0 = type { i8, i16 }
%struct.anon.1 = type { i8, i32 }
%struct.anon.2 = type { i8, i64 }
%struct.anon.3 = type { i8, i64 }
%struct.anon.4 = type { i8, float }
%struct.anon.5 = type { i8, double }
%struct.anon.6 = type { i8, x86_fp80 }
@.str = [9 x i8] c"uint16_t\00"
@.str.1 = [9 x i8] c"uint32_t\00"
@.str.2 = [9 x i8] c"uint64_t\00"
@.str.3 = [16 x i8] c"stack grows %s\0A\00"
@.str.4 = [26 x i8] c"down (to lower addresses)\00"
@.str.5 = [25 x i8] c"up (to higher addresses)\00"
@.str.6 = [12 x i8] c"char is %s\0A\00"
@.str.7 = [7 x i8] c"signed\00"
@.str.8 = [9 x i8] c"unsigned\00"
@.str.9 = [40 x i8] c"%s is %zu bits with %td-byte alignment\0A\00"
@.str.10 = [5 x i8] c"char\00"
@.str.11 = [6 x i8] c"short\00"
@.str.12 = [4 x i8] c"int\00"
@.str.13 = [5 x i8] c"long\00"
@.str.14 = [10 x i8] c"long long\00"
@.str.15 = [6 x i8] c"float\00"
@.str.16 = [7 x i8] c"double\00"
@.str.17 = [12 x i8] c"long double\00"
@.str.18 = [20 x i8] c"sizeof(size_t)=%zu\0A\00"
@.str.19 = [15 x i8] c"FLT_ROUNDS %d\0A\00"
@FLT_ROUNDS = global i32 0
@.str.20 = [14 x i8] c"FLT_RADIX %d\0A\00"
@FLT_RADIX = global i32 0
@.str.21 = [24 x i8] c"MANT_DIG %6d %6d %6d\0A\00"
@FLT_MANT_DIG = global i32 0
@DBL_MANT_DIG = global i32 0
@LDBL_MANT_DIG = global i32 0
@.str.22 = [24 x i8] c"DIG %6d %6d %6d\0A\00"
@FLT_DIG = global i32 0
@DBL_DIG = global i32 0
@LDBL_DIG = global i32 0
@.str.23 = [24 x i8] c"MIN_EXP %6d %6d %6d\0A\00"
@FLT_MIN_EXP = global i32 0
@DBL_MIN_EXP = global i32 0
@LDBL_MIN_EXP = global i32 0
@.str.24 = [24 x i8] c"MIN_10_EXP %6d %6d %6d\0A\00"
@FLT_MIN_10_EXP = global i32 0
@DBL_MIN_10_EXP = global i32 0
@LDBL_MIN_10_EXP = global i32 0
@.str.25 = [24 x i8] c"MAX_EXP %6d %6d %6d\0A\00"
@FLT_MAX_EXP = global i32 0
@DBL_MAX_EXP = global i32 0
@LDBL_MAX_EXP = global i32 0
@.str.26 = [22 x i8] c"MIN %g %g %Lg\0A\00"
@FLT_MIN = global double 0.000000e+00
@DBL_MIN = global double 0.000000e+00
@LDBL_MIN = global i32 0
@.str.27 = [22 x i8] c"MAX %g %g %Lg\0A\00"
@FLT_MAX = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@LDBL_MAX = global i32 0
@.str.28 = [22 x i8] c"EPSILON %g %g %Lg\0A\00"
@FLT_EPSILON = global double 0.000000e+00
@DBL_EPSILON = global double 0.000000e+00
@LDBL_EPSILON = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i32
%7 = alloca i64
%8 = alloca %struct.anon
%9 = alloca %struct.anon.0
%10 = alloca %struct.anon.1
%11 = alloca %struct.anon.2
%12 = alloca %struct.anon.3
%13 = alloca %struct.anon.4
%14 = alloca %struct.anon.5
%15 = alloca %struct.anon.6
store i32 0, i32* %1
store i32 4660, i32* %2
%16 = load i32, i32* %2
%17 = call i32 @show_endian(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32 4, i32 %16)
store i32 305419896, i32* %3
%18 = load i32, i32* %3
%19 = call i32 @show_endian(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32 4, i32 %18)
store i32 -1867788817, i32* %4
%20 = load i32, i32* %4
%21 = call i32 @show_endian(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %4, i32 4, i32 %20)
%22 = call i64 (...) @stack_grows_down()
%23 = icmp ne i64 %22, 0
%24 = zext i1 %23 to i64
%25 = select i1 %23, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* %25)
store i8 -1, i8* %5
%27 = load i8, i8* %5
%28 = sext i8 %27 to i32
store i32 %28, i32* %6
%29 = load i32, i32* %6
%30 = icmp slt i32 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %32)
store i64 0, i64* %7
br label %34
34: ; preds = %38, %0
%35 = load i8, i8* %5
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %48
38: ; preds = %34
%39 = load i8, i8* %5
%40 = sext i8 %39 to i32
%41 = sub nsw i32 %40, 1
%42 = load i8, i8* %5
%43 = sext i8 %42 to i32
%44 = and i32 %43, %41
%45 = trunc i32 %44 to i8
store i8 %45, i8* %5
%46 = load i64, i64* %7
%47 = add i64 %46, 1
store i64 %47, i64* %7
br label %34
48: ; preds = %34
br label %49
49: ; preds = %48
%50 = load i64, i64* %7
%51 = mul i64 1, %50
%52 = getelementptr inbounds %struct.anon, %struct.anon* %8, i32 0, i32 1
%53 = getelementptr inbounds %struct.anon, %struct.anon* %8, i32 0, i32 0
%54 = ptrtoint i8* %52 to i64
%55 = ptrtoint i8* %53 to i64
%56 = sub i64 %54, %55
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i64 %51, i64 %56)
br label %58
58: ; preds = %49
br label %59
59: ; preds = %58
%60 = load i64, i64* %7
%61 = mul i64 2, %60
%62 = getelementptr inbounds %struct.anon.0, %struct.anon.0* %9, i32 0, i32 1
%63 = bitcast i16* %62 to i8*
%64 = getelementptr inbounds %struct.anon.0, %struct.anon.0* %9, i32 0, i32 0
%65 = ptrtoint i8* %63 to i64
%66 = ptrtoint i8* %64 to i64
%67 = sub i64 %65, %66
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i64 %61, i64 %67)
br label %69
69: ; preds = %59
br label %70
70: ; preds = %69
%71 = load i64, i64* %7
%72 = mul i64 4, %71
%73 = getelementptr inbounds %struct.anon.1, %struct.anon.1* %10, i32 0, i32 1
%74 = bitcast i32* %73 to i8*
%75 = getelementptr inbounds %struct.anon.1, %struct.anon.1* %10, i32 0, i32 0
%76 = ptrtoint i8* %74 to i64
%77 = ptrtoint i8* %75 to i64
%78 = sub i64 %76, %77
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i64 %72, i64 %78)
br label %80
80: ; preds = %70
br label %81
81: ; preds = %80
%82 = load i64, i64* %7
%83 = mul i64 8, %82
%84 = getelementptr inbounds %struct.anon.2, %struct.anon.2* %11, i32 0, i32 1
%85 = bitcast i64* %84 to i8*
%86 = getelementptr inbounds %struct.anon.2, %struct.anon.2* %11, i32 0, i32 0
%87 = ptrtoint i8* %85 to i64
%88 = ptrtoint i8* %86 to i64
%89 = sub i64 %87, %88
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i64 %83, i64 %89)
br label %91
91: ; preds = %81
br label %92
92: ; preds = %91
%93 = load i64, i64* %7
%94 = mul i64 8, %93
%95 = getelementptr inbounds %struct.anon.3, %struct.anon.3* %12, i32 0, i32 1
%96 = bitcast i64* %95 to i8*
%97 = getelementptr inbounds %struct.anon.3, %struct.anon.3* %12, i32 0, i32 0
%98 = ptrtoint i8* %96 to i64
%99 = ptrtoint i8* %97 to i64
%100 = sub i64 %98, %99
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i64 %94, i64 %100)
br label %102
102: ; preds = %92
br label %103
103: ; preds = %102
%104 = load i64, i64* %7
%105 = mul i64 4, %104
%106 = getelementptr inbounds %struct.anon.4, %struct.anon.4* %13, i32 0, i32 1
%107 = bitcast float* %106 to i8*
%108 = getelementptr inbounds %struct.anon.4, %struct.anon.4* %13, i32 0, i32 0
%109 = ptrtoint i8* %107 to i64
%110 = ptrtoint i8* %108 to i64
%111 = sub i64 %109, %110
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i64 %105, i64 %111)
br label %113
113: ; preds = %103
br label %114
114: ; preds = %113
%115 = load i64, i64* %7
%116 = mul i64 8, %115
%117 = getelementptr inbounds %struct.anon.5, %struct.anon.5* %14, i32 0, i32 1
%118 = bitcast double* %117 to i8*
%119 = getelementptr inbounds %struct.anon.5, %struct.anon.5* %14, i32 0, i32 0
%120 = ptrtoint i8* %118 to i64
%121 = ptrtoint i8* %119 to i64
%122 = sub i64 %120, %121
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0), i64 %116, i64 %122)
br label %124
124: ; preds = %114
br label %125
125: ; preds = %124
%126 = load i64, i64* %7
%127 = mul i64 16, %126
%128 = getelementptr inbounds %struct.anon.6, %struct.anon.6* %15, i32 0, i32 1
%129 = bitcast x86_fp80* %128 to i8*
%130 = getelementptr inbounds %struct.anon.6, %struct.anon.6* %15, i32 0, i32 0
%131 = ptrtoint i8* %129 to i64
%132 = ptrtoint i8* %130 to i64
%133 = sub i64 %131, %132
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i64 %127, i64 %133)
br label %135
135: ; preds = %125
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i64 8)
%137 = load i32, i32* @FLT_ROUNDS
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0), i32 %137)
%139 = load i32, i32* @FLT_RADIX
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0), i32 %139)
%141 = load i32, i32* @FLT_MANT_DIG
%142 = load i32, i32* @DBL_MANT_DIG
%143 = load i32, i32* @LDBL_MANT_DIG
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.21, i64 0, i64 0), i32 %141, i32 %142, i32 %143)
%145 = load i32, i32* @FLT_DIG
%146 = load i32, i32* @DBL_DIG
%147 = load i32, i32* @LDBL_DIG
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.22, i64 0, i64 0), i32 %145, i32 %146, i32 %147)
%149 = load i32, i32* @FLT_MIN_EXP
%150 = load i32, i32* @DBL_MIN_EXP
%151 = load i32, i32* @LDBL_MIN_EXP
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.23, i64 0, i64 0), i32 %149, i32 %150, i32 %151)
%153 = load i32, i32* @FLT_MIN_10_EXP
%154 = load i32, i32* @DBL_MIN_10_EXP
%155 = load i32, i32* @LDBL_MIN_10_EXP
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0), i32 %153, i32 %154, i32 %155)
%157 = load i32, i32* @FLT_MAX_EXP
%158 = load i32, i32* @DBL_MAX_EXP
%159 = load i32, i32* @LDBL_MAX_EXP
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i64 0, i64 0), i32 %157, i32 %158, i32 %159)
%161 = load double, double* @FLT_MIN
%162 = load double, double* @DBL_MIN
%163 = load i32, i32* @LDBL_MIN
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.26, i64 0, i64 0), double %161, double %162, i32 %163)
%165 = load double, double* @FLT_MAX
%166 = load double, double* @DBL_MAX
%167 = load i32, i32* @LDBL_MAX
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0), double %165, double %166, i32 %167)
%169 = load double, double* @FLT_EPSILON
%170 = load double, double* @DBL_EPSILON
%171 = load i32, i32* @LDBL_EPSILON
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0), double %169, double %170, i32 %171)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"uint16_t\00"
@.str.1 = [9 x i8] c"uint32_t\00"
@.str.2 = [9 x i8] c"uint64_t\00"
@.str.3 = [16 x i8] c"stack grows %s\0A\00"
@.str.4 = [26 x i8] c"down (to lower addresses)\00"
@.str.5 = [25 x i8] c"up (to higher addresses)\00"
@.str.6 = [12 x i8] c"char is %s\0A\00"
@.str.7 = [7 x i8] c"signed\00"
@.str.9 = [40 x i8] c"%s is %zu bits with %td-byte alignment\0A\00"
@.str.10 = [5 x i8] c"char\00"
@.str.11 = [6 x i8] c"short\00"
@.str.12 = [4 x i8] c"int\00"
@.str.13 = [5 x i8] c"long\00"
@.str.14 = [10 x i8] c"long long\00"
@.str.15 = [6 x i8] c"float\00"
@.str.16 = [7 x i8] c"double\00"
@.str.17 = [12 x i8] c"long double\00"
@.str.18 = [20 x i8] c"sizeof(size_t)=%zu\0A\00"
@.str.19 = [15 x i8] c"FLT_ROUNDS %d\0A\00"
@FLT_ROUNDS = global i32 0
@.str.20 = [14 x i8] c"FLT_RADIX %d\0A\00"
@FLT_RADIX = global i32 0
@.str.21 = [24 x i8] c"MANT_DIG %6d %6d %6d\0A\00"
@FLT_MANT_DIG = global i32 0
@DBL_MANT_DIG = global i32 0
@LDBL_MANT_DIG = global i32 0
@.str.22 = [24 x i8] c"DIG %6d %6d %6d\0A\00"
@FLT_DIG = global i32 0
@DBL_DIG = global i32 0
@LDBL_DIG = global i32 0
@.str.23 = [24 x i8] c"MIN_EXP %6d %6d %6d\0A\00"
@FLT_MIN_EXP = global i32 0
@DBL_MIN_EXP = global i32 0
@LDBL_MIN_EXP = global i32 0
@.str.24 = [24 x i8] c"MIN_10_EXP %6d %6d %6d\0A\00"
@FLT_MIN_10_EXP = global i32 0
@DBL_MIN_10_EXP = global i32 0
@LDBL_MIN_10_EXP = global i32 0
@.str.25 = [24 x i8] c"MAX_EXP %6d %6d %6d\0A\00"
@FLT_MAX_EXP = global i32 0
@DBL_MAX_EXP = global i32 0
@LDBL_MAX_EXP = global i32 0
@.str.26 = [22 x i8] c"MIN %g %g %Lg\0A\00"
@FLT_MIN = global double 0.000000e+00
@DBL_MIN = global double 0.000000e+00
@LDBL_MIN = global i32 0
@.str.27 = [22 x i8] c"MAX %g %g %Lg\0A\00"
@FLT_MAX = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@LDBL_MAX = global i32 0
@.str.28 = [22 x i8] c"EPSILON %g %g %Lg\0A\00"
@FLT_EPSILON = global double 0.000000e+00
@DBL_EPSILON = global double 0.000000e+00
@LDBL_EPSILON = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
store i32 4660, i32* %1
%5 = call i32 @show_endian(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32 4, i32 4660)
%6 = bitcast i32* %2 to i8*
store i32 305419896, i32* %2
%7 = call i32 @show_endian(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32 4, i32 305419896)
%8 = bitcast i32* %3 to i8*
store i32 -1867788817, i32* %3
%9 = call i32 @show_endian(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %3, i32 4, i32 -1867788817)
%10 = call i64 (...) @stack_grows_down()
%11 = icmp eq i64 %10, 0
%12 = select i1 %11, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* %12)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i64 8, i64 1)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i64 16, i64 2)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i64 32, i64 4)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i64 64, i64 8)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i64 64, i64 8)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i64 32, i64 4)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0), i64 64, i64 8)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i64 128, i64 16)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i64 8)
%24 = load i32, i32* @FLT_ROUNDS
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0), i32 %24)
%26 = load i32, i32* @FLT_RADIX
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0), i32 %26)
%28 = load i32, i32* @FLT_MANT_DIG
%29 = load i32, i32* @DBL_MANT_DIG
%30 = load i32, i32* @LDBL_MANT_DIG
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.21, i64 0, i64 0), i32 %28, i32 %29, i32 %30)
%32 = load i32, i32* @FLT_DIG
%33 = load i32, i32* @DBL_DIG
%34 = load i32, i32* @LDBL_DIG
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.22, i64 0, i64 0), i32 %32, i32 %33, i32 %34)
%36 = load i32, i32* @FLT_MIN_EXP
%37 = load i32, i32* @DBL_MIN_EXP
%38 = load i32, i32* @LDBL_MIN_EXP
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.23, i64 0, i64 0), i32 %36, i32 %37, i32 %38)
%40 = load i32, i32* @FLT_MIN_10_EXP
%41 = load i32, i32* @DBL_MIN_10_EXP
%42 = load i32, i32* @LDBL_MIN_10_EXP
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0), i32 %40, i32 %41, i32 %42)
%44 = load i32, i32* @FLT_MAX_EXP
%45 = load i32, i32* @DBL_MAX_EXP
%46 = load i32, i32* @LDBL_MAX_EXP
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i64 0, i64 0), i32 %44, i32 %45, i32 %46)
%48 = load double, double* @FLT_MIN
%49 = load double, double* @DBL_MIN
%50 = load i32, i32* @LDBL_MIN
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.26, i64 0, i64 0), double %48, double %49, i32 %50)
%52 = load double, double* @FLT_MAX
%53 = load double, double* @DBL_MAX
%54 = load i32, i32* @LDBL_MAX
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0), double %52, double %53, i32 %54)
%56 = load double, double* @FLT_EPSILON
%57 = load double, double* @DBL_EPSILON
%58 = load i32, i32* @LDBL_EPSILON
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0), double %56, double %57, i32 %58)
ret i32 0
}