#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*/ printf(char *, long);
int main() {
  int i = 0;
  long result = 1;
  for (i = 0; i < 7830457; i++) {
    result <<= 1;
    result %= 10000000000;
  }
  result *= 28433;
  result %= 10000000000;
  result += 1;
  printf("%ld\n", result);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movq   $0x1,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x777bb9,-0x8(%rbp)
jge    1173 <main+0x63>
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movabs $0x2540be400,%rcx
cqto
idiv   %rcx
mov    %rdx,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1135 <main+0x25>
imul   $0x6f11,-0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movabs $0x2540be400,%rcx
cqto
idiv   %rcx
mov    %rdx,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    $0x1,%ecx
mov    $0x777bb8,%esi
movabs $0x36f9bfb3af7b757,%rdi
9b 6f 03
movabs $0x2540be400,%r8
xchg   %ax,%ax
add    %rcx,%rcx
mov    %rcx,%rax
imul   %rdi
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x1b,%rdx
add    %rax,%rdx
imul   %r8,%rdx
sub    %rdx,%rcx
test   %esi,%esi
je     11b4 <main+0xa4>
add    %rcx,%rcx
mov    %rcx,%rax
imul   %rdi
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x1b,%rdx
add    %rax,%rdx
imul   %r8,%rdx
sub    %rdx,%rcx
add    %rcx,%rcx
mov    %rcx,%rax
imul   %rdi
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x1b,%rdx
add    %rax,%rdx
imul   %r8,%rdx
sub    %rdx,%rcx
add    %rcx,%rcx
mov    %rcx,%rax
imul   %rdi
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x1b,%rdx
add    %rax,%rdx
imul   %r8,%rdx
sub    %rdx,%rcx
add    $0xfffffffc,%esi
jmp    1130 <main+0x20>
push   %rax
imul   $0x6f11,%rcx,%rcx
mov    %rcx,%rax
imul   %rdi
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x1b,%rdx
add    %rax,%rdx
imul   %r8,%rdx
neg    %rdx
lea    (%rcx,%rdx,1),%rsi
add    $0x1,%rsi
lea    0xe1a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%ld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
store i32 0, i32* %1
store i32 0, i32* %2
store i64 1, i64* %3
store i32 0, i32* %2
br label %4
4: ; preds = %12, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 7830457
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i64, i64* %3
%9 = shl i64 %8, 1
store i64 %9, i64* %3
%10 = load i64, i64* %3
%11 = srem i64 %10, 10000000000
store i64 %11, i64* %3
br label %12
12: ; preds = %7
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 1
store i32 %14, i32* %2
br label %4
15: ; preds = %4
%16 = load i64, i64* %3
%17 = mul nsw i64 %16, 28433
store i64 %17, i64* %3
%18 = load i64, i64* %3
%19 = srem i64 %18, 10000000000
store i64 %19, i64* %3
%20 = load i64, i64* %3
%21 = add nsw i64 %20, 1
store i64 %21, i64* %3
%22 = load i64, i64* %3
%23 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %22)
%24 = load i32, i32* %1
ret i32 %24
}

LLVM IR (-O2):
@.str = [5 x i8] c"%ld\0A\00"
define i32 @main() {
br label %1
1: ; preds = %7, %0
%2 = phi i64 [ 1, %0 ], [ %13, %7 ]
%3 = phi i32 [ 0, %0 ], [ %14, %7 ]
%4 = shl nsw i64 %2, 1
%5 = srem i64 %4, 10000000000
%6 = icmp eq i32 %3, 7830456
br i1 %6, label %15, label %7
7: ; preds = %1
%8 = shl nsw i64 %5, 1
%9 = srem i64 %8, 10000000000
%10 = shl nsw i64 %9, 1
%11 = srem i64 %10, 10000000000
%12 = shl nsw i64 %11, 1
%13 = srem i64 %12, 10000000000
%14 = add nuw nsw i32 %3, 4
br label %1
15: ; preds = %1
%16 = mul nsw i64 %5, 28433
%17 = srem i64 %16, 10000000000
%18 = add nsw i64 %17, 1
%19 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %18)
ret i32 0
}