int main() {
  long long int number = 0;
  _Bool success = 0;
  printf("\n\nThe program finds the smallest number evenly divisible by the "
         "numbers 1-20\n\n");
  while (!success) {
    number++;
    if (!(number % 1))
      if (!(number % 2))
        if (!(number % 3))
          if (!(number % 4))
            if (!(number % 5))
              if (!(number % 6))
                if (!(number % 7))
                  if (!(number % 8))
                    if (!(number % 9))
                      if (!(number % 10))
                        if (!(number % 11))
                          if (!(number % 12))
                            if (!(number % 13))
                              if (!(number % 14))
                                if (!(number % 15))
                                  if (!(number % 16))
                                    if (!(number % 17))
                                      if (!(number % 18))
                                        if (!(number % 19))
                                          if (!(number % 20))
                                            success = 1;
  }
  printf("\n%lld is divisible by:", number);
  printf("\n1: %lld", number % 1);
  printf("\n2: %lld", number % 2);
  printf("\n3: %lld", number % 3);
  printf("\n4: %lld", number % 4);
  printf("\n5: %lld", number % 5);
  printf("\n6: %lld", number % 6);
  printf("\n7: %lld", number % 7);
  printf("\n8: %lld", number % 8);
  printf("\n9: %lld", number % 9);
  printf("\n10: %lld", number % 10);
  printf("\n11: %lld", number % 11);
  printf("\n12: %lld", number % 12);
  printf("\n13: %lld", number % 13);
  printf("\n14: %lld", number % 14);
  printf("\n15: %lld", number % 15);
  printf("\n16: %lld", number % 16);
  printf("\n17: %lld", number % 17);
  printf("\n18: %lld", number % 18);
  printf("\n19: %lld", number % 19);
  printf("\n20: %lld", number % 20);
  printf("\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movb   $0x0,-0x11(%rbp)
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x11(%rbp),%al
xor    $0xff,%al
test   $0x1,%al
jne    114b <main+0x3b>
jmp    139f <main+0x28f>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    $0x1,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    139a <main+0x28a>
mov    -0x10(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1395 <main+0x285>
mov    -0x10(%rbp),%rax
mov    $0x3,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1390 <main+0x280>
mov    -0x10(%rbp),%rax
mov    $0x4,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    138b <main+0x27b>
mov    -0x10(%rbp),%rax
mov    $0x5,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1386 <main+0x276>
mov    -0x10(%rbp),%rax
mov    $0x6,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1381 <main+0x271>
mov    -0x10(%rbp),%rax
mov    $0x7,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    137c <main+0x26c>
mov    -0x10(%rbp),%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1377 <main+0x267>
mov    -0x10(%rbp),%rax
mov    $0x9,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1372 <main+0x262>
mov    -0x10(%rbp),%rax
mov    $0xa,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    136d <main+0x25d>
mov    -0x10(%rbp),%rax
mov    $0xb,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1368 <main+0x258>
mov    -0x10(%rbp),%rax
mov    $0xc,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1363 <main+0x253>
mov    -0x10(%rbp),%rax
mov    $0xd,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    135e <main+0x24e>
mov    -0x10(%rbp),%rax
mov    $0xe,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1359 <main+0x249>
mov    -0x10(%rbp),%rax
mov    $0xf,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1354 <main+0x244>
mov    -0x10(%rbp),%rax
mov    $0x10,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    134f <main+0x23f>
mov    -0x10(%rbp),%rax
mov    $0x11,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    134a <main+0x23a>
mov    -0x10(%rbp),%rax
mov    $0x12,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1345 <main+0x235>
mov    -0x10(%rbp),%rax
mov    $0x13,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1340 <main+0x230>
mov    -0x10(%rbp),%rax
mov    $0x14,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    133b <main+0x22b>
movb   $0x1,-0x11(%rbp)
jmp    1340 <main+0x230>
jmp    1345 <main+0x235>
jmp    134a <main+0x23a>
jmp    134f <main+0x23f>
jmp    1354 <main+0x244>
jmp    1359 <main+0x249>
jmp    135e <main+0x24e>
jmp    1363 <main+0x253>
jmp    1368 <main+0x258>
jmp    136d <main+0x25d>
jmp    1372 <main+0x262>
jmp    1377 <main+0x267>
jmp    137c <main+0x26c>
jmp    1381 <main+0x271>
jmp    1386 <main+0x276>
jmp    138b <main+0x27b>
jmp    1390 <main+0x280>
jmp    1395 <main+0x285>
jmp    139a <main+0x28a>
jmp    1139 <main+0x29>
mov    -0x10(%rbp),%rsi
lea    0xca5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x1,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xc9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xc87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x3,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xc71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x4,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xc5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x5,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xc45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x6,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xc2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x7,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xc03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x9,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xbed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0xa,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xbd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0xb,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xbc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0xc,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xbad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0xd,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xb98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0xe,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xb83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0xf,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xb6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x10,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xb59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x11,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xb44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x12,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xb2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x13,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xb1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    $0x14,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
lea    0xb05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0xfa1(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ecx
xor    %esi,%esi
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rsi,0x50(%rsp)
mov    %rcx,%rax
movabs $0xcccccccccccccccd,%rdx
cc cc cc
mul    %rdx
mov    %rdx,%rbp
mov    %rdx,%rax
shr    $0x4,%rax
lea    (%rax,%rax,4),%rax
lea    -0x1(,%rax,4),%rax
ff
mov    %rax,0x38(%rsp)
mov    %rcx,%rax
movabs $0xd79435e50d79435f,%rdx
35 94 d7
mul    %rdx
shr    $0x4,%rdx
lea    (%rdx,%rdx,8),%rax
lea    (%rdx,%rax,2),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,0x48(%rsp)
mov    %rcx,%rax
movabs $0xe38e38e38e38e38f,%rdx
38 8e e3
mul    %rdx
mov    %rdx,%r10
mov    %rdx,%rax
shr    $0x4,%rax
lea    (%rax,%rax,8),%rsi
mov    %rcx,%rax
movabs $0xf0f0f0f0f0f0f0f1,%rdx
f0 f0 f0
mul    %rdx
lea    (%rsi,%rsi,1),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,0x40(%rsp)
shr    $0x4,%rdx
mov    %rdx,%rax
shl    $0x4,%rax
add    %rdx,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,0x30(%rsp)
mov    %rcx,%rax
movabs $0x8888888888888889,%rdx
88 88 88
mul    %rdx
shr    $0x3,%rdx
lea    (%rdx,%rdx,4),%rax
lea    (%rax,%rax,2),%r13
add    $0xffffffffffffffff,%r13
mov    %rcx,%rax
shr    %rax
movabs $0x4924924924924925,%rdx
92 24 49
mul    %rdx
mov    %rdx,%rsi
shr    %rsi
mov    %rsi,%rax
shl    $0x4,%rax
sub    %rsi,%rax
not    %rsi
add    %rax,%rsi
mov    %rcx,%rax
movabs $0x4ec4ec4ec4ec4ec5,%rdx
ec c4 4e
mul    %rdx
shr    $0x2,%rdx
lea    (%rdx,%rdx,2),%rax
lea    (%rdx,%rax,4),%r9
add    $0xffffffffffffffff,%r9
mov    %rcx,%rax
movabs $0xaaaaaaaaaaaaaaab,%rdx
aa aa aa
mul    %rdx
mov    %rdx,%rbx
mov    %rdx,%rax
shr    $0x3,%rax
lea    (%rax,%rax,2),%rdi
mov    %rcx,%rax
movabs $0x2e8ba2e8ba2e8ba3,%rdx
a2 8b 2e
mul    %rdx
lea    -0x1(,%rdi,4),%r14
ff
shr    %rdx
lea    (%rdx,%rdx,4),%rax
lea    (%rdx,%rax,2),%r11
add    $0xffffffffffffffff,%r11
mov    %rcx,%rax
movabs $0x2492492492492493,%rdx
49 92 24
mul    %rdx
mov    %rcx,%rax
sub    %rdx,%rax
shr    %rax
add    %rdx,%rax
shr    $0x2,%rax
mov    %rax,%rdx
not    %rdx
lea    (%rdx,%rax,8),%rdx
mov    %rbp,%rax
shr    $0x3,%rax
lea    (%rax,%rax,4),%rax
lea    (%rax,%rax,1),%r8
add    $0xffffffffffffffff,%r8
shr    $0x3,%r10
lea    (%r10,%r10,8),%rax
add    $0xffffffffffffffff,%rax
mov    %rbx,%rdi
shr    $0x2,%rdi
lea    (%rdi,%rdi,2),%rdi
add    %rdi,%rdi
add    $0xffffffffffffffff,%rdi
shr    $0x2,%rbp
lea    -0x1(,%rbp,4),%r12
ff
add    %rbp,%r12
shr    %rbx
lea    (%rbx,%rbx,2),%rbx
neg    %rbx
lea    (%r15,%rbx,1),%rbp
add    $0x1,%rbp
mov    %rbp,0x28(%rsp)
xor    %r15,%r12
xor    %r15,%rdi
xor    %r15,%rdx
mov    %rdx,0x20(%rsp)
xor    %r15,%rax
xor    %r15,%r8
mov    %r8,0x18(%rsp)
xor    %r15,%r11
mov    %r11,0x10(%rsp)
xor    %r15,%r14
mov    %r14,0x8(%rsp)
xor    %r15,%r9
xor    %r15,%rsi
xor    %r15,%r13
mov    0x30(%rsp),%r8
xor    %r15,%r8
mov    0x40(%rsp),%r11
xor    %r15,%r11
mov    0x48(%rsp),%r10
xor    %r15,%r10
mov    0x38(%rsp),%rdx
xor    %r15,%rdx
add    $0x1,%r15
mov    %r15d,%r14d
and    $0x1,%r14d
mov    %r15d,%ebp
and    $0x3,%ebp
mov    %r14,%rbx
or     %rbp,%rbx
or     0x28(%rsp),%rbx
or     %r12,%rdi
or     0x8(%rsp),%r9
or     0x10(%rsp),%r9
or     0x18(%rsp),%r9
or     %r8,%r11
or     %r10,%rdx
or     %r11,%rdx
mov    %rdx,%r8
mov    %r15d,%edx
and    $0xf,%edx
or     %rdx,%r13
or     %rsi,%r13
mov    0x50(%rsp),%rsi
or     %r8,%r13
or     %r9,%r13
mov    %r15d,%r12d
and    $0x7,%r12d
or     %r12,%rax
or     0x20(%rsp),%rax
or     %r13,%rax
or     %rdi,%rax
or     %rbx,%rax
movzbl %sil,%esi
mov    $0x1,%eax
cmove  %eax,%esi
add    $0x1,%rcx
test   $0x1,%sil
je     1150 <main+0x30>
lea    0xbfe(%rip),%rdi
mov    %r15,%rbx
mov    %r15,%rsi
xor    %eax,%eax
mov    %rdx,%r13
call   1040 <printf@plt>
lea    0xbfe(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbf7(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rax
movabs $0xaaaaaaaaaaaaaaab,%rcx
aa aa aa
mul    %rcx
mov    %rdx,%r15
shr    %r15
lea    (%r15,%r15,2),%rax
mov    %rbx,%rsi
sub    %rax,%rsi
lea    0xbcf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbca(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
movabs $0xcccccccccccccccd,%rcx
cc cc cc
mul    %rcx
mov    %rdx,%rbp
shr    $0x2,%rbp
lea    0x0(,%rbp,4),%rax
add    %rbp,%rax
mov    %rbx,%rsi
sub    %rax,%rsi
lea    0xb9a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rax
and    $0xfffffffffffffffe,%rax
lea    (%rax,%rax,2),%rax
mov    %rbx,%rsi
sub    %rax,%rsi
lea    0xb84(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
movabs $0x2492492492492493,%rcx
49 92 24
mul    %rcx
mov    %rbx,%rsi
sub    %rdx,%rsi
shr    %rsi
add    %rdx,%rsi
shr    $0x2,%rsi
lea    0x0(,%rsi,8),%rax
sub    %rax,%rsi
add    %rbx,%rsi
lea    0xb51(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb4c(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
movabs $0xe38e38e38e38e38f,%rcx
38 8e e3
mul    %rcx
mov    %rdx,%r12
shr    $0x3,%r12
lea    (%r12,%r12,8),%rax
mov    %rbx,%rsi
sub    %rax,%rsi
lea    0xb23(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rax
and    $0xfffffffffffffffe,%rax
lea    (%rax,%rax,4),%rax
mov    %rbx,%rsi
sub    %rax,%rsi
lea    0xb0d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
movabs $0x2e8ba2e8ba2e8ba3,%rcx
a2 8b 2e
mul    %rcx
shr    %rdx
imul   $0xfffffffffffffff5,%rdx,%rsi
add    %rbx,%rsi
lea    0xaef(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
and    $0xfffffffffffffffc,%r15
lea    (%r15,%r15,2),%rax
mov    %rbx,%rsi
sub    %rax,%rsi
lea    0xadd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
movabs $0x4ec4ec4ec4ec4ec5,%rcx
ec c4 4e
mul    %rcx
shr    $0x2,%rdx
imul   $0xfffffffffffffff3,%rdx,%rsi
add    %rbx,%rsi
lea    0xabe(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
shr    %rax
movabs $0x4924924924924925,%rcx
92 24 49
mul    %rcx
shr    %rdx
imul   $0xfffffffffffffff2,%rdx,%rsi
add    %rbx,%rsi
lea    0xa9d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
movabs $0x8888888888888889,%rcx
88 88 88
mul    %rcx
shr    $0x3,%rdx
mov    %rdx,%rax
shl    $0x4,%rax
sub    %rax,%rdx
lea    (%rdx,%rbx,1),%rsi
lea    0xa77(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa73(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
movabs $0xf0f0f0f0f0f0f0f1,%rcx
f0 f0 f0
mul    %rcx
shr    $0x4,%rdx
mov    %rdx,%rax
shl    $0x4,%rax
add    %rdx,%rax
mov    %rbx,%rsi
sub    %rax,%rsi
lea    0xa48(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
and    $0xfffffffffffffffe,%r12
lea    (%r12,%r12,8),%rax
mov    %rbx,%rsi
sub    %rax,%rsi
lea    0xa36(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rax
movabs $0xd79435e50d79435f,%rcx
35 94 d7
mul    %rcx
shr    $0x4,%rdx
imul   $0xffffffffffffffed,%rdx,%rsi
add    %rbx,%rsi
lea    0xa17(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
and    $0xfffffffffffffffc,%rbp
lea    0x0(,%rbp,4),%rax
add    %rbp,%rax
sub    %rax,%rbx
lea    0xa01(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa46(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [79 x i8] c"\0A\0AThe program finds the smallest number evenly divisible by the numbers 1-20\0A\0A\00"
@.str.1 = [23 x i8] c"\0A%lld is divisible by:\00"
@.str.2 = [9 x i8] c"\0A1: %lld\00"
@.str.3 = [9 x i8] c"\0A2: %lld\00"
@.str.4 = [9 x i8] c"\0A3: %lld\00"
@.str.5 = [9 x i8] c"\0A4: %lld\00"
@.str.6 = [9 x i8] c"\0A5: %lld\00"
@.str.7 = [9 x i8] c"\0A6: %lld\00"
@.str.8 = [9 x i8] c"\0A7: %lld\00"
@.str.9 = [9 x i8] c"\0A8: %lld\00"
@.str.10 = [9 x i8] c"\0A9: %lld\00"
@.str.11 = [10 x i8] c"\0A10: %lld\00"
@.str.12 = [10 x i8] c"\0A11: %lld\00"
@.str.13 = [10 x i8] c"\0A12: %lld\00"
@.str.14 = [10 x i8] c"\0A13: %lld\00"
@.str.15 = [10 x i8] c"\0A14: %lld\00"
@.str.16 = [10 x i8] c"\0A15: %lld\00"
@.str.17 = [10 x i8] c"\0A16: %lld\00"
@.str.18 = [10 x i8] c"\0A17: %lld\00"
@.str.19 = [10 x i8] c"\0A18: %lld\00"
@.str.20 = [10 x i8] c"\0A19: %lld\00"
@.str.21 = [10 x i8] c"\0A20: %lld\00"
@.str.22 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i8
store i32 0, i32* %1
store i64 0, i64* %2
store i8 0, i8* %3
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %111, %0
%6 = load i8, i8* %3
%7 = trunc i8 %6 to i1
%8 = xor i1 %7, true
br i1 %8, label %9, label %112
9: ; preds = %5
%10 = load i64, i64* %2
%11 = add nsw i64 %10, 1
store i64 %11, i64* %2
%12 = load i64, i64* %2
%13 = srem i64 %12, 1
%14 = icmp ne i64 %13, 0
br i1 %14, label %111, label %15
15: ; preds = %9
%16 = load i64, i64* %2
%17 = srem i64 %16, 2
%18 = icmp ne i64 %17, 0
br i1 %18, label %110, label %19
19: ; preds = %15
%20 = load i64, i64* %2
%21 = srem i64 %20, 3
%22 = icmp ne i64 %21, 0
br i1 %22, label %109, label %23
23: ; preds = %19
%24 = load i64, i64* %2
%25 = srem i64 %24, 4
%26 = icmp ne i64 %25, 0
br i1 %26, label %108, label %27
27: ; preds = %23
%28 = load i64, i64* %2
%29 = srem i64 %28, 5
%30 = icmp ne i64 %29, 0
br i1 %30, label %107, label %31
31: ; preds = %27
%32 = load i64, i64* %2
%33 = srem i64 %32, 6
%34 = icmp ne i64 %33, 0
br i1 %34, label %106, label %35
35: ; preds = %31
%36 = load i64, i64* %2
%37 = srem i64 %36, 7
%38 = icmp ne i64 %37, 0
br i1 %38, label %105, label %39
39: ; preds = %35
%40 = load i64, i64* %2
%41 = srem i64 %40, 8
%42 = icmp ne i64 %41, 0
br i1 %42, label %104, label %43
43: ; preds = %39
%44 = load i64, i64* %2
%45 = srem i64 %44, 9
%46 = icmp ne i64 %45, 0
br i1 %46, label %103, label %47
47: ; preds = %43
%48 = load i64, i64* %2
%49 = srem i64 %48, 10
%50 = icmp ne i64 %49, 0
br i1 %50, label %102, label %51
51: ; preds = %47
%52 = load i64, i64* %2
%53 = srem i64 %52, 11
%54 = icmp ne i64 %53, 0
br i1 %54, label %101, label %55
55: ; preds = %51
%56 = load i64, i64* %2
%57 = srem i64 %56, 12
%58 = icmp ne i64 %57, 0
br i1 %58, label %100, label %59
59: ; preds = %55
%60 = load i64, i64* %2
%61 = srem i64 %60, 13
%62 = icmp ne i64 %61, 0
br i1 %62, label %99, label %63
63: ; preds = %59
%64 = load i64, i64* %2
%65 = srem i64 %64, 14
%66 = icmp ne i64 %65, 0
br i1 %66, label %98, label %67
67: ; preds = %63
%68 = load i64, i64* %2
%69 = srem i64 %68, 15
%70 = icmp ne i64 %69, 0
br i1 %70, label %97, label %71
71: ; preds = %67
%72 = load i64, i64* %2
%73 = srem i64 %72, 16
%74 = icmp ne i64 %73, 0
br i1 %74, label %96, label %75
75: ; preds = %71
%76 = load i64, i64* %2
%77 = srem i64 %76, 17
%78 = icmp ne i64 %77, 0
br i1 %78, label %95, label %79
79: ; preds = %75
%80 = load i64, i64* %2
%81 = srem i64 %80, 18
%82 = icmp ne i64 %81, 0
br i1 %82, label %94, label %83
83: ; preds = %79
%84 = load i64, i64* %2
%85 = srem i64 %84, 19
%86 = icmp ne i64 %85, 0
br i1 %86, label %93, label %87
87: ; preds = %83
%88 = load i64, i64* %2
%89 = srem i64 %88, 20
%90 = icmp ne i64 %89, 0
br i1 %90, label %92, label %91
91: ; preds = %87
store i8 1, i8* %3
br label %92
92: ; preds = %91, %87
br label %93
93: ; preds = %92, %83
br label %94
94: ; preds = %93, %79
br label %95
95: ; preds = %94, %75
br label %96
96: ; preds = %95, %71
br label %97
97: ; preds = %96, %67
br label %98
98: ; preds = %97, %63
br label %99
99: ; preds = %98, %59
br label %100
100: ; preds = %99, %55
br label %101
101: ; preds = %100, %51
br label %102
102: ; preds = %101, %47
br label %103
103: ; preds = %102, %43
br label %104
104: ; preds = %103, %39
br label %105
105: ; preds = %104, %35
br label %106
106: ; preds = %105, %31
br label %107
107: ; preds = %106, %27
br label %108
108: ; preds = %107, %23
br label %109
109: ; preds = %108, %19
br label %110
110: ; preds = %109, %15
br label %111
111: ; preds = %110, %9
br label %5
112: ; preds = %5
%113 = load i64, i64* %2
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i64 %113)
%115 = load i64, i64* %2
%116 = srem i64 %115, 1
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i64 %116)
%118 = load i64, i64* %2
%119 = srem i64 %118, 2
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %119)
%121 = load i64, i64* %2
%122 = srem i64 %121, 3
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i64 %122)
%124 = load i64, i64* %2
%125 = srem i64 %124, 4
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i64 %125)
%127 = load i64, i64* %2
%128 = srem i64 %127, 5
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i64 %128)
%130 = load i64, i64* %2
%131 = srem i64 %130, 6
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i64 %131)
%133 = load i64, i64* %2
%134 = srem i64 %133, 7
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 %134)
%136 = load i64, i64* %2
%137 = srem i64 %136, 8
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i64 %137)
%139 = load i64, i64* %2
%140 = srem i64 %139, 9
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i64 %140)
%142 = load i64, i64* %2
%143 = srem i64 %142, 10
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i64 %143)
%145 = load i64, i64* %2
%146 = srem i64 %145, 11
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i64 %146)
%148 = load i64, i64* %2
%149 = srem i64 %148, 12
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i64 %149)
%151 = load i64, i64* %2
%152 = srem i64 %151, 13
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i64 %152)
%154 = load i64, i64* %2
%155 = srem i64 %154, 14
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i64 %155)
%157 = load i64, i64* %2
%158 = srem i64 %157, 15
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i64 %158)
%160 = load i64, i64* %2
%161 = srem i64 %160, 16
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i64 %161)
%163 = load i64, i64* %2
%164 = srem i64 %163, 17
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i64 %164)
%166 = load i64, i64* %2
%167 = srem i64 %166, 18
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i64 %167)
%169 = load i64, i64* %2
%170 = srem i64 %169, 19
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), i64 %170)
%172 = load i64, i64* %2
%173 = srem i64 %172, 20
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0), i64 %173)
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [23 x i8] c"\0A%lld is divisible by:\00"
@.str.2 = [9 x i8] c"\0A1: %lld\00"
@.str.3 = [9 x i8] c"\0A2: %lld\00"
@.str.4 = [9 x i8] c"\0A3: %lld\00"
@.str.5 = [9 x i8] c"\0A4: %lld\00"
@.str.6 = [9 x i8] c"\0A5: %lld\00"
@.str.7 = [9 x i8] c"\0A6: %lld\00"
@.str.8 = [9 x i8] c"\0A7: %lld\00"
@.str.9 = [9 x i8] c"\0A8: %lld\00"
@.str.10 = [9 x i8] c"\0A9: %lld\00"
@.str.11 = [10 x i8] c"\0A10: %lld\00"
@.str.12 = [10 x i8] c"\0A11: %lld\00"
@.str.13 = [10 x i8] c"\0A12: %lld\00"
@.str.14 = [10 x i8] c"\0A13: %lld\00"
@.str.15 = [10 x i8] c"\0A14: %lld\00"
@.str.16 = [10 x i8] c"\0A15: %lld\00"
@.str.17 = [10 x i8] c"\0A16: %lld\00"
@.str.18 = [10 x i8] c"\0A17: %lld\00"
@.str.19 = [10 x i8] c"\0A18: %lld\00"
@.str.20 = [10 x i8] c"\0A19: %lld\00"
@.str.21 = [10 x i8] c"\0A20: %lld\00"
@str = [78 x i8] c"\0A\0AThe program finds the smallest number evenly divisible by the numbers 1-20\0A\00"
@str.23 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str, i64 0, i64 0))
br label %2
2: ; preds = %0, %2
%3 = phi i8 [ 0, %0 ], [ %61, %2 ]
%4 = phi i64 [ 0, %0 ], [ %5, %2 ]
%5 = add nuw nsw i64 %4, 1
%6 = and i64 %5, 1
%7 = urem i64 %5, 3
%8 = or i64 %6, %7
%9 = icmp eq i64 %8, 0
%10 = and i64 %5, 3
%11 = icmp eq i64 %10, 0
%12 = select i1 %9, i1 %11, i1 false
%13 = urem i64 %5, 5
%14 = icmp eq i64 %13, 0
%15 = select i1 %12, i1 %14, i1 false
%16 = urem i64 %5, 6
%17 = icmp eq i64 %16, 0
%18 = select i1 %15, i1 %17, i1 false
%19 = urem i64 %5, 7
%20 = icmp eq i64 %19, 0
%21 = select i1 %18, i1 %20, i1 false
%22 = and i64 %5, 7
%23 = icmp eq i64 %22, 0
%24 = select i1 %21, i1 %23, i1 false
%25 = urem i64 %5, 9
%26 = icmp eq i64 %25, 0
%27 = select i1 %24, i1 %26, i1 false
%28 = urem i64 %5, 10
%29 = icmp eq i64 %28, 0
%30 = select i1 %27, i1 %29, i1 false
%31 = urem i64 %5, 11
%32 = icmp eq i64 %31, 0
%33 = select i1 %30, i1 %32, i1 false
%34 = urem i64 %5, 12
%35 = icmp eq i64 %34, 0
%36 = select i1 %33, i1 %35, i1 false
%37 = urem i64 %5, 13
%38 = icmp eq i64 %37, 0
%39 = select i1 %36, i1 %38, i1 false
%40 = urem i64 %5, 14
%41 = icmp eq i64 %40, 0
%42 = select i1 %39, i1 %41, i1 false
%43 = urem i64 %5, 15
%44 = icmp eq i64 %43, 0
%45 = select i1 %42, i1 %44, i1 false
%46 = and i64 %5, 15
%47 = icmp eq i64 %46, 0
%48 = select i1 %45, i1 %47, i1 false
%49 = urem i64 %5, 17
%50 = icmp eq i64 %49, 0
%51 = select i1 %48, i1 %50, i1 false
%52 = urem i64 %5, 18
%53 = icmp eq i64 %52, 0
%54 = select i1 %51, i1 %53, i1 false
%55 = urem i64 %5, 19
%56 = icmp eq i64 %55, 0
%57 = select i1 %54, i1 %56, i1 false
%58 = urem i64 %5, 20
%59 = icmp eq i64 %58, 0
%60 = select i1 %57, i1 %59, i1 false
%61 = select i1 %60, i8 1, i8 %3
%62 = and i8 %61, 1
%63 = icmp eq i8 %62, 0
br i1 %63, label %2, label %64
64: ; preds = %2
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i64 %5)
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i64 0)
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %6)
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i64 %7)
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i64 %10)
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i64 %13)
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i64 %16)
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 %19)
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i64 %22)
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i64 %25)
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i64 %28)
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i64 %31)
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i64 %34)
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i64 %37)
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i64 %40)
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i64 %43)
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i64 %46)
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i64 %49)
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i64 %52)
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), i64 %55)
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0), i64 %58)
%86 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
ret i32 0
}