#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 *, ...);
int /*<<< orphan*/ sleep(int);
int main() {
  int h = 567;
  int l = 43;
  while (1) {
    for (int i = h / l; i > 0; i--) {
      if (h % 13 == 0 || h % 70 == 0 || h % 7 == 0) {
        h--;
      }
      h--;
    }
    l--;
    printf("%d,%d\n", l, h);
    sleep(0.2);
    if (l == 0) {
      printf("Done!\n");
      sleep(120);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x237,-0x8(%rbp)
movl   $0x2b,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jle    11ad <main+0x8d>
mov    -0x8(%rbp),%eax
mov    $0xd,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     118d <main+0x6d>
mov    -0x8(%rbp),%eax
mov    $0x46,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     118d <main+0x6d>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1196 <main+0x76>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    1147 <main+0x27>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <sleep@plt>
cmpl   $0x0,-0xc(%rbp)
jne    11f3 <main+0xd3>
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x78,%edi
call   1040 <sleep@plt>
jmp    113d <main+0x1d>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    $0x2b,%r12d
mov    $0x237,%ebp
lea    0xeb6(%rip),%r15
lea    0xeb6(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %ebp,%eax
cltd
idiv   %r12d
test   %eax,%eax
jle    11c8 <main+0x98>
add    $0x1,%eax
mov    %ebp,%ecx
nop
imul   $0xc4ec4ec5,%ecx,%edx
add    $0x9d89d89,%edx
cmp    $0x13b13b13,%edx
setb   %dil
imul   $0x8af8af8b,%ecx,%esi
add    $0x3a83a82,%esi
ror    %esi
cmp    $0x3a83a83,%esi
setb   %bl
imul   $0xb6db6db7,%ecx,%esi
add    $0x12492492,%esi
cmp    $0x24924925,%esi
setb   %dl
or     %dil,%dl
or     %bl,%dl
movzbl %dl,%ebp
not    %ebp
add    %ecx,%ebp
add    $0xffffffff,%eax
mov    %ebp,%ecx
cmp    $0x1,%eax
ja     1170 <main+0x40>
lea    -0x1(%r12),%esi
mov    %r15,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1050 <sleep@plt>
add    $0xffffffff,%r12d
jne    1160 <main+0x30>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    $0x78,%edi
call   1050 <sleep@plt>
jmp    1160 <main+0x30>

LLVM IR (-O0):
@.str = [7 x i8] c"%d,%d\0A\00"
@.str.1 = [7 x i8] c"Done!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 567, i32* %2
store i32 43, i32* %3
br label %5
5: ; preds = %0, %45
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = sdiv i32 %6, %7
store i32 %8, i32* %4
br label %9
9: ; preds = %30, %5
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %33
12: ; preds = %9
%13 = load i32, i32* %2
%14 = srem i32 %13, 13
%15 = icmp eq i32 %14, 0
br i1 %15, label %24, label %16
16: ; preds = %12
%17 = load i32, i32* %2
%18 = srem i32 %17, 70
%19 = icmp eq i32 %18, 0
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = load i32, i32* %2
%22 = srem i32 %21, 7
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20, %16, %12
%25 = load i32, i32* %2
%26 = add nsw i32 %25, -1
store i32 %26, i32* %2
br label %27
27: ; preds = %24, %20
%28 = load i32, i32* %2
%29 = add nsw i32 %28, -1
store i32 %29, i32* %2
br label %30
30: ; preds = %27
%31 = load i32, i32* %4
%32 = add nsw i32 %31, -1
store i32 %32, i32* %4
br label %9
33: ; preds = %9
%34 = load i32, i32* %3
%35 = add nsw i32 %34, -1
store i32 %35, i32* %3
%36 = load i32, i32* %3
%37 = load i32, i32* %2
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %36, i32 %37)
%39 = call i32 @sleep(i32 0)
%40 = load i32, i32* %3
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %33
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%44 = call i32 @sleep(i32 120)
br label %45
45: ; preds = %42, %33
br label %5
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d,%d\0A\00"
@str = [6 x i8] c"Done!\00"
define i32 @main() {
br label %1
1: ; preds = %31, %0
%2 = phi i32 [ 567, %0 ], [ %7, %31 ]
%3 = phi i32 [ 43, %0 ], [ %8, %31 ]
%4 = sdiv i32 %2, %3
%5 = icmp sgt i32 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %12, %1
%7 = phi i32 [ %2, %1 ], [ %25, %12 ]
%8 = add nsw i32 %3, -1
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %8, i32 %7)
%10 = tail call i32 @sleep(i32 0)
%11 = icmp eq i32 %8, 0
br i1 %11, label %28, label %31
12: ; preds = %1, %12
%13 = phi i32 [ %26, %12 ], [ %4, %1 ]
%14 = phi i32 [ %25, %12 ], [ %2, %1 ]
%15 = srem i32 %14, 13
%16 = icmp eq i32 %15, 0
%17 = srem i32 %14, 70
%18 = icmp eq i32 %17, 0
%19 = or i1 %16, %18
%20 = srem i32 %14, 7
%21 = icmp eq i32 %20, 0
%22 = select i1 %19, i1 true, i1 %21
%23 = sext i1 %22 to i32
%24 = add i32 %14, -1
%25 = add i32 %24, %23
%26 = add nsw i32 %13, -1
%27 = icmp ugt i32 %13, 1
br i1 %27, label %12, label %6
28: ; preds = %6
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%30 = tail call i32 @sleep(i32 120)
br label %31
31: ; preds = %28, %6
br label %1
}