#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*/ PrintMultipliers(int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  int i;
  printf("// This file was automatically generated.  Do not edit!\n\n");
  for (i = 1; i <= 36; i++) {
    printf("static const UInt64 _realMultipliers%d[] = {", i);
    if (i > 1) {
      PrintMultipliers(i);
    } else {
      printf("\n\t0\n");
    }
    printf("};\n\n");
  }
  printf("static const Real64 *_realMultipliersByBase[37] = {\n\tNULL,\n");
  for (i = 1; i <= 36; i += 4) {
    printf("\t(Real64 *)_realMultipliers%d, (Real64 *)_realMultipliers%d, "
           "(Real64 *)_realMultipliers%d, (Real64 *)_realMultipliers%d,\n",
           i, i + 1, i + 2, i + 3);
  }
  printf("};\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0x24,-0x14(%rbp)
jg     11a7 <main+0x87>
mov    -0x14(%rbp),%esi
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x14(%rbp)
jle    117d <main+0x5d>
mov    -0x14(%rbp),%edi
call   1030 <PrintMultipliers@plt>
jmp    118b <main+0x6b>
lea    0xee3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114b <main+0x2b>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0x24,-0x14(%rbp)
jg     11f9 <main+0xd9>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
add    $0x1,%edx
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
mov    -0x14(%rbp),%r8d
add    $0x3,%r8d
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x14(%rbp)
jmp    11bc <main+0x9c>
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xf6c(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb9(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb9(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x2,%ebp
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebp,%edi
call   1030 <PrintMultipliers@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
add    $0x1,%ebp
cmp    $0x25,%ebp
jne    1180 <main+0x50>
lea    0xf36(%rip),%rdi
call   1040 <puts@plt>
lea    0xe77(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x6,%edx
mov    $0x7,%ecx
mov    $0x8,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0xa,%edx
mov    $0xb,%ecx
mov    $0xc,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    $0xe,%edx
mov    $0xf,%ecx
mov    $0x10,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x11,%esi
mov    $0x12,%edx
mov    $0x13,%ecx
mov    $0x14,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x15,%esi
mov    $0x16,%edx
mov    $0x17,%ecx
mov    $0x18,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x19,%esi
mov    $0x1a,%edx
mov    $0x1b,%ecx
mov    $0x1c,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1d,%esi
mov    $0x1e,%edx
mov    $0x1f,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x21,%esi
mov    $0x22,%edx
mov    $0x23,%ecx
mov    $0x24,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe47(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [58 x i8] c"// This file was automatically generated. Do not edit!\0A\0A\00"
@.str.1 = [45 x i8] c"static const UInt64 _realMultipliers%d[] = {\00"
@.str.2 = [5 x i8] c"\0A\090\0A\00"
@.str.3 = [5 x i8] c"};\0A\0A\00"
@.str.4 = [60 x i8] c"static const Real64 *_realMultipliersByBase[37] = {\0A\09NULL,\0A\00"
@.str.5 = [122 x i8] c"\09(Real64 *)_realMultipliers%d, (Real64 *)_realMultipliers%d, (Real64 *)_realMultipliers%d, (Real64 *)_realMultipliers%d,\0A\00"
@.str.6 = [4 x i8] c"};\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %6
br label %8
8: ; preds = %23, %2
%9 = load i32, i32* %6
%10 = icmp sle i32 %9, 36
br i1 %10, label %11, label %26
11: ; preds = %8
%12 = load i32, i32* %6
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %6
%15 = icmp sgt i32 %14, 1
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = load i32, i32* %6
%18 = call i32 @PrintMultipliers(i32 %17)
br label %21
19: ; preds = %11
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %19, %16
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %23
23: ; preds = %21
%24 = load i32, i32* %6
%25 = add nsw i32 %24, 1
store i32 %25, i32* %6
br label %8
26: ; preds = %8
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %6
br label %28
28: ; preds = %40, %26
%29 = load i32, i32* %6
%30 = icmp sle i32 %29, 36
br i1 %30, label %31, label %43
31: ; preds = %28
%32 = load i32, i32* %6
%33 = load i32, i32* %6
%34 = add nsw i32 %33, 1
%35 = load i32, i32* %6
%36 = add nsw i32 %35, 2
%37 = load i32, i32* %6
%38 = add nsw i32 %37, 3
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 %32, i32 %34, i32 %36, i32 %38)
br label %40
40: ; preds = %31
%41 = load i32, i32* %6
%42 = add nsw i32 %41, 4
store i32 %42, i32* %6
br label %28
43: ; preds = %28
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [45 x i8] c"static const UInt64 _realMultipliers%d[] = {\00"
@.str.5 = [122 x i8] c"\09(Real64 *)_realMultipliers%d, (Real64 *)_realMultipliers%d, (Real64 *)_realMultipliers%d, (Real64 *)_realMultipliers%d,\0A\00"
@str = [57 x i8] c"// This file was automatically generated. Do not edit!\0A\00"
@str.7 = [59 x i8] c"static const Real64 *_realMultipliersByBase[37] = {\0A\09NULL,\00"
@str.8 = [3 x i8] c"};\00"
@str.9 = [4 x i8] c"\0A\090\00"
@str.10 = [4 x i8] c"};\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 1)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.10, i64 0, i64 0))
br label %7
7: ; preds = %2, %7
%8 = phi i32 [ 2, %2 ], [ %12, %7 ]
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = tail call i32 @PrintMultipliers(i32 %8)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.10, i64 0, i64 0))
%12 = add nuw nsw i32 %8, 1
%13 = icmp eq i32 %12, 37
br i1 %13, label %14, label %7
14: ; preds = %7
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.7, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 1, i32 2, i32 3, i32 4)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 5, i32 6, i32 7, i32 8)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 9, i32 10, i32 11, i32 12)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 13, i32 14, i32 15, i32 16)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 17, i32 18, i32 19, i32 20)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 21, i32 22, i32 23, i32 24)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 25, i32 26, i32 27, i32 28)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 29, i32 30, i32 31, i32 32)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.5, i64 0, i64 0), i32 33, i32 34, i32 35, i32 36)
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.8, i64 0, i64 0))
ret i32 0
}