#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 atoi(char *);
long lcm(long, long);
int /*<<< orphan*/ printf(char *, long);
int main(int argc, char *argv[]) {
  int rep = 10000;
  if (argc >= 2) {
    rep = atoi(argv[1]);
  }
  int n = 40;
  long residual[n];
  long divisor[n];
  int i;
  for (i = 0; i < n; i++) {
    residual[i] = i + 1;
    divisor[i] = i + 2;
  }
  long a, r;
  int iter;
  for (iter = 0; iter < rep; iter++) {
    a = divisor[0];
    r = residual[0];
    for (i = 1; i < n; i++) {
      while (r % divisor[i] != residual[i]) {
        r = r + a;
      }
      a = lcm(a, divisor[i]);
    }
  }
  printf("%ld\n", r);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x2710,-0x14(%rbp)
cmpl   $0x2,-0x8(%rbp)
jl     1167 <main+0x37>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x14(%rbp)
movl   $0x28,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1200 <main+0xd0>
mov    -0x58(%rbp),%rax
mov    -0x60(%rbp),%rcx
mov    -0x34(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rsi
movslq -0x34(%rbp),%rdx
mov    %rsi,(%rcx,%rdx,8)
mov    -0x34(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
movslq -0x34(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11bc <main+0x8c>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12b0 <main+0x180>
mov    -0x60(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rcx),%rcx
mov    %rcx,-0x40(%rbp)
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    129d <main+0x16d>
jmp    1241 <main+0x111>
mov    -0x58(%rbp),%rcx
mov    -0x48(%rbp),%rax
movslq -0x34(%rbp),%rsi
cqto
idivq  (%rcx,%rsi,8)
mov    -0x60(%rbp),%rax
movslq -0x34(%rbp),%rcx
cmp    (%rax,%rcx,8),%rdx
je     1276 <main+0x146>
mov    -0x48(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    1241 <main+0x111>
mov    -0x58(%rbp),%rax
mov    -0x40(%rbp),%rdi
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1040 <lcm@plt>
mov    %rax,-0x40(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1230 <main+0x100>
jmp    12a2 <main+0x172>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1207 <main+0xd7>
mov    -0x48(%rbp),%rsi
lea    0xd45(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x2710,-0x2c(%rbp)
cmp    $0x2,%edi
jl     1159 <main+0x29>
mov    0x8(%rsi),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x2c(%rbp)
mov    %rsp,%rax
lea    -0x140(%rax),%r12
mov    %r12,%rsp
mov    %rsp,%rcx
lea    -0x140(%rcx),%r13
mov    %r13,%rsp
movaps 0xe86(%rip),%xmm0
movaps %xmm0,-0x140(%rax)
movaps 0xe88(%rip),%xmm0
movaps %xmm0,-0x140(%rcx)
movaps 0xe8a(%rip),%xmm0
movaps %xmm0,-0x130(%rax)
movaps 0xe8c(%rip),%xmm0
movaps %xmm0,-0x130(%rcx)
movaps 0xe8e(%rip),%xmm0
movaps %xmm0,-0x120(%rax)
movaps 0xe90(%rip),%xmm0
movaps %xmm0,-0x120(%rcx)
movaps 0xe92(%rip),%xmm0
movaps %xmm0,-0x110(%rax)
movaps 0xe94(%rip),%xmm0
movaps %xmm0,-0x110(%rcx)
movaps 0xe96(%rip),%xmm0
movaps %xmm0,-0x100(%rax)
movaps 0xe98(%rip),%xmm0
movaps %xmm0,-0x100(%rcx)
movaps 0xe9a(%rip),%xmm0
movaps %xmm0,-0xf0(%rax)
movaps 0xe9c(%rip),%xmm0
movaps %xmm0,-0xf0(%rcx)
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,-0xe0(%rax)
movaps 0xea0(%rip),%xmm0
movaps %xmm0,-0xe0(%rcx)
movaps 0xea2(%rip),%xmm0
movaps %xmm0,-0xd0(%rax)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,-0xd0(%rcx)
movaps 0xea6(%rip),%xmm0
movaps %xmm0,-0xc0(%rax)
movaps 0xea8(%rip),%xmm0
movaps %xmm0,-0xc0(%rcx)
movaps 0xeaa(%rip),%xmm0
movaps %xmm0,-0xb0(%rax)
movaps 0xeac(%rip),%xmm0
movaps %xmm0,-0xb0(%rcx)
movaps 0xeae(%rip),%xmm0
movaps %xmm0,-0xa0(%rax)
movaps 0xeb0(%rip),%xmm0
movaps %xmm0,-0xa0(%rcx)
movaps 0xeb2(%rip),%xmm0
movaps %xmm0,-0x90(%rax)
movaps 0xeb4(%rip),%xmm0
movaps %xmm0,-0x90(%rcx)
movaps 0xeb6(%rip),%xmm0
movaps %xmm0,-0x80(%rax)
movaps 0xebb(%rip),%xmm0
movaps %xmm0,-0x80(%rcx)
movaps 0xec0(%rip),%xmm0
movaps %xmm0,-0x70(%rax)
movaps 0xec5(%rip),%xmm0
movaps %xmm0,-0x70(%rcx)
movaps 0xeca(%rip),%xmm0
movaps %xmm0,-0x60(%rax)
movaps 0xecf(%rip),%xmm0
movaps %xmm0,-0x60(%rcx)
movaps 0xed4(%rip),%xmm0
movaps %xmm0,-0x50(%rax)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,-0x50(%rcx)
movaps 0xede(%rip),%xmm0
movaps %xmm0,-0x40(%rax)
movaps 0xee3(%rip),%xmm0
movaps %xmm0,-0x40(%rcx)
movaps 0xee8(%rip),%xmm0
movaps %xmm0,-0x30(%rax)
movaps 0xeed(%rip),%xmm0
movaps %xmm0,-0x30(%rcx)
movaps 0xef2(%rip),%xmm0
movaps %xmm0,-0x20(%rax)
movaps 0xef7(%rip),%xmm0
movaps %xmm0,-0x20(%rcx)
movaps 0xefc(%rip),%xmm0
movaps %xmm0,-0x10(%rax)
movaps 0xf01(%rip),%xmm0
movaps %xmm0,-0x10(%rcx)
mov    -0x140(%rcx),%rcx
mov    %rcx,-0x40(%rbp)
mov    -0x140(%rax),%rax
mov    %rax,-0x38(%rbp)
xor    %eax,%eax
jmp    139b <main+0x26b>
nopl   (%rax)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
cmp    -0x2c(%rbp),%eax
je     1404 <main+0x2d4>
mov    %eax,-0x30(%rbp)
mov    $0x1,%r14d
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rax
jmp    13c8 <main+0x298>
xchg   %ax,%ax
mov    %r15,%rdi
call   1040 <lcm@plt>
add    $0x1,%r14
mov    %rbx,%rdx
sub    %r15,%rdx
cmp    $0x28,%r14
je     1390 <main+0x260>
mov    %rax,%r15
mov    0x0(%r13,%r14,8),%rsi
mov    (%r12,%r14,8),%rcx
mov    %rdx,%rbx
jmp    13f0 <main+0x2c0>
nopl   0x0(%rax)
mov    %rbx,%rax
cqto
idiv   %rsi
add    %r15,%rbx
cmp    %rcx,%rdx
je     13b0 <main+0x280>
mov    %rbx,%rax
or     %rsi,%rax
shr    $0x20,%rax
jne    13e0 <main+0x2b0>
mov    %ebx,%eax
xor    %edx,%edx
div    %esi
jmp    13e8 <main+0x2b8>
sub    %r15,%rbx
lea    0xe72(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%ld\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 i8*
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
%12 = alloca i64
%13 = alloca i64
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 10000, i32* %6
%15 = load i32, i32* %4
%16 = icmp sge i32 %15, 2
br i1 %16, label %17, label %22
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @atoi(i8* %20)
store i32 %21, i32* %6
br label %22
22: ; preds = %17, %2
store i32 40, i32* %7
%23 = load i32, i32* %7
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %8
%26 = alloca i64, i64 %24
store i64 %24, i64* %9
%27 = load i32, i32* %7
%28 = zext i32 %27 to i64
%29 = alloca i64, i64 %28
store i64 %28, i64* %10
store i32 0, i32* %11
br label %30
30: ; preds = %47, %22
%31 = load i32, i32* %11
%32 = load i32, i32* %7
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %50
34: ; preds = %30
%35 = load i32, i32* %11
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = load i32, i32* %11
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i64, i64* %26, i64 %39
store i64 %37, i64* %40
%41 = load i32, i32* %11
%42 = add nsw i32 %41, 2
%43 = sext i32 %42 to i64
%44 = load i32, i32* %11
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i64, i64* %29, i64 %45
store i64 %43, i64* %46
br label %47
47: ; preds = %34
%48 = load i32, i32* %11
%49 = add nsw i32 %48, 1
store i32 %49, i32* %11
br label %30
50: ; preds = %30
store i32 0, i32* %14
br label %51
51: ; preds = %92, %50
%52 = load i32, i32* %14
%53 = load i32, i32* %6
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %95
55: ; preds = %51
%56 = getelementptr inbounds i64, i64* %29, i64 0
%57 = load i64, i64* %56
store i64 %57, i64* %12
%58 = getelementptr inbounds i64, i64* %26, i64 0
%59 = load i64, i64* %58
store i64 %59, i64* %13
store i32 1, i32* %11
br label %60
60: ; preds = %88, %55
%61 = load i32, i32* %11
%62 = load i32, i32* %7
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %91
64: ; preds = %60
br label %65
65: ; preds = %77, %64
%66 = load i64, i64* %13
%67 = load i32, i32* %11
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i64, i64* %29, i64 %68
%70 = load i64, i64* %69
%71 = srem i64 %66, %70
%72 = load i32, i32* %11
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i64, i64* %26, i64 %73
%75 = load i64, i64* %74
%76 = icmp ne i64 %71, %75
br i1 %76, label %77, label %81
77: ; preds = %65
%78 = load i64, i64* %13
%79 = load i64, i64* %12
%80 = add nsw i64 %78, %79
store i64 %80, i64* %13
br label %65
81: ; preds = %65
%82 = load i64, i64* %12
%83 = load i32, i32* %11
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i64, i64* %29, i64 %84
%86 = load i64, i64* %85
%87 = call i64 @lcm(i64 %82, i64 %86)
store i64 %87, i64* %12
br label %88
88: ; preds = %81
%89 = load i32, i32* %11
%90 = add nsw i32 %89, 1
store i32 %90, i32* %11
br label %60
91: ; preds = %60
br label %92
92: ; preds = %91
%93 = load i32, i32* %14
%94 = add nsw i32 %93, 1
store i32 %94, i32* %14
br label %51
95: ; preds = %51
%96 = load i64, i64* %13
%97 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %96)
store i32 0, i32* %3
%98 = load i8*, i8** %8
%99 = load i32, i32* %3
ret i32 %99
}

LLVM IR (-O2):
@.str = [5 x i8] c"%ld\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @atoi(i8* %6)
br label %8
8: ; preds = %4, %2
%9 = phi i32 [ %7, %4 ], [ 10000, %2 ]
%10 = alloca [40 x i64]
%11 = alloca [40 x i64]
%12 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 0
%13 = bitcast [40 x i64]* %10 to <2 x i64>*
store <2 x i64> <i64 1, i64 2>, <2 x i64>* %13
%14 = bitcast [40 x i64]* %11 to <2 x i64>*
store <2 x i64> <i64 2, i64 3>, <2 x i64>* %14
%15 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 2
%16 = bitcast i64* %15 to <2 x i64>*
store <2 x i64> <i64 3, i64 4>, <2 x i64>* %16
%17 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 2
%18 = bitcast i64* %17 to <2 x i64>*
store <2 x i64> <i64 4, i64 5>, <2 x i64>* %18
%19 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 4
%20 = bitcast i64* %19 to <2 x i64>*
store <2 x i64> <i64 5, i64 6>, <2 x i64>* %20
%21 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 4
%22 = bitcast i64* %21 to <2 x i64>*
store <2 x i64> <i64 6, i64 7>, <2 x i64>* %22
%23 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 6
%24 = bitcast i64* %23 to <2 x i64>*
store <2 x i64> <i64 7, i64 8>, <2 x i64>* %24
%25 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 6
%26 = bitcast i64* %25 to <2 x i64>*
store <2 x i64> <i64 8, i64 9>, <2 x i64>* %26
%27 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 8
%28 = bitcast i64* %27 to <2 x i64>*
store <2 x i64> <i64 9, i64 10>, <2 x i64>* %28
%29 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 8
%30 = bitcast i64* %29 to <2 x i64>*
store <2 x i64> <i64 10, i64 11>, <2 x i64>* %30
%31 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 10
%32 = bitcast i64* %31 to <2 x i64>*
store <2 x i64> <i64 11, i64 12>, <2 x i64>* %32
%33 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 10
%34 = bitcast i64* %33 to <2 x i64>*
store <2 x i64> <i64 12, i64 13>, <2 x i64>* %34
%35 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 12
%36 = bitcast i64* %35 to <2 x i64>*
store <2 x i64> <i64 13, i64 14>, <2 x i64>* %36
%37 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 12
%38 = bitcast i64* %37 to <2 x i64>*
store <2 x i64> <i64 14, i64 15>, <2 x i64>* %38
%39 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 14
%40 = bitcast i64* %39 to <2 x i64>*
store <2 x i64> <i64 15, i64 16>, <2 x i64>* %40
%41 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 14
%42 = bitcast i64* %41 to <2 x i64>*
store <2 x i64> <i64 16, i64 17>, <2 x i64>* %42
%43 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 16
%44 = bitcast i64* %43 to <2 x i64>*
store <2 x i64> <i64 17, i64 18>, <2 x i64>* %44
%45 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 16
%46 = bitcast i64* %45 to <2 x i64>*
store <2 x i64> <i64 18, i64 19>, <2 x i64>* %46
%47 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 18
%48 = bitcast i64* %47 to <2 x i64>*
store <2 x i64> <i64 19, i64 20>, <2 x i64>* %48
%49 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 18
%50 = bitcast i64* %49 to <2 x i64>*
store <2 x i64> <i64 20, i64 21>, <2 x i64>* %50
%51 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 20
%52 = bitcast i64* %51 to <2 x i64>*
store <2 x i64> <i64 21, i64 22>, <2 x i64>* %52
%53 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 20
%54 = bitcast i64* %53 to <2 x i64>*
store <2 x i64> <i64 22, i64 23>, <2 x i64>* %54
%55 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 22
%56 = bitcast i64* %55 to <2 x i64>*
store <2 x i64> <i64 23, i64 24>, <2 x i64>* %56
%57 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 22
%58 = bitcast i64* %57 to <2 x i64>*
store <2 x i64> <i64 24, i64 25>, <2 x i64>* %58
%59 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 24
%60 = bitcast i64* %59 to <2 x i64>*
store <2 x i64> <i64 25, i64 26>, <2 x i64>* %60
%61 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 24
%62 = bitcast i64* %61 to <2 x i64>*
store <2 x i64> <i64 26, i64 27>, <2 x i64>* %62
%63 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 26
%64 = bitcast i64* %63 to <2 x i64>*
store <2 x i64> <i64 27, i64 28>, <2 x i64>* %64
%65 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 26
%66 = bitcast i64* %65 to <2 x i64>*
store <2 x i64> <i64 28, i64 29>, <2 x i64>* %66
%67 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 28
%68 = bitcast i64* %67 to <2 x i64>*
store <2 x i64> <i64 29, i64 30>, <2 x i64>* %68
%69 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 28
%70 = bitcast i64* %69 to <2 x i64>*
store <2 x i64> <i64 30, i64 31>, <2 x i64>* %70
%71 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 30
%72 = bitcast i64* %71 to <2 x i64>*
store <2 x i64> <i64 31, i64 32>, <2 x i64>* %72
%73 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 30
%74 = bitcast i64* %73 to <2 x i64>*
store <2 x i64> <i64 32, i64 33>, <2 x i64>* %74
%75 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 32
%76 = bitcast i64* %75 to <2 x i64>*
store <2 x i64> <i64 33, i64 34>, <2 x i64>* %76
%77 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 32
%78 = bitcast i64* %77 to <2 x i64>*
store <2 x i64> <i64 34, i64 35>, <2 x i64>* %78
%79 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 34
%80 = bitcast i64* %79 to <2 x i64>*
store <2 x i64> <i64 35, i64 36>, <2 x i64>* %80
%81 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 34
%82 = bitcast i64* %81 to <2 x i64>*
store <2 x i64> <i64 36, i64 37>, <2 x i64>* %82
%83 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 36
%84 = bitcast i64* %83 to <2 x i64>*
store <2 x i64> <i64 37, i64 38>, <2 x i64>* %84
%85 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 36
%86 = bitcast i64* %85 to <2 x i64>*
store <2 x i64> <i64 38, i64 39>, <2 x i64>* %86
%87 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 38
%88 = bitcast i64* %87 to <2 x i64>*
store <2 x i64> <i64 39, i64 40>, <2 x i64>* %88
%89 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 38
%90 = bitcast i64* %89 to <2 x i64>*
store <2 x i64> <i64 40, i64 41>, <2 x i64>* %90
%91 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 0
%92 = icmp sgt i32 %9, 0
%93 = load i64, i64* %12
%94 = load i64, i64* %91
br label %95
95: ; preds = %8, %114
%96 = phi i32 [ 0, %8 ], [ %115, %114 ]
br label %97
97: ; preds = %95, %110
%98 = phi i64 [ 1, %95 ], [ %112, %110 ]
%99 = phi i64 [ %94, %95 ], [ %106, %110 ]
%100 = phi i64 [ %93, %95 ], [ %111, %110 ]
%101 = getelementptr inbounds [40 x i64], [40 x i64]* %11, i64 0, i64 %98
%102 = load i64, i64* %101
%103 = getelementptr inbounds [40 x i64], [40 x i64]* %10, i64 0, i64 %98
%104 = load i64, i64* %103
br label %105
105: ; preds = %105, %97
%106 = phi i64 [ %109, %105 ], [ %99, %97 ]
%107 = srem i64 %106, %102
%108 = icmp eq i64 %107, %104
%109 = add nsw i64 %106, %100
br i1 %108, label %110, label %105
110: ; preds = %105
%111 = tail call i64 @lcm(i64 %100, i64 %102)
%112 = add nuw nsw i64 %98, 1
%113 = icmp eq i64 %112, 40
br i1 %113, label %114, label %97
114: ; preds = %110
%115 = add nuw i32 %96, 1
%116 = icmp eq i32 %115, %9
br i1 %116, label %117, label %95
117: ; preds = %114
%118 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %106)
ret i32 0
}