#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, ...);
scalar_t__ satisfies(int);
int main(void) {
  int x;
  for (x = 1; 1; ++x) {
    if (satisfies(x)) {
      printf(" x: %d\n"
             "2x: %d\n"
             "3x: %d\n"
             "4x: %d\n"
             "5x: %d\n"
             "6x: %d\n",
             x, x * 2, x * 3, x * 4, x * 5, x * 6);
      printf("ans: %d\n", x);
      return 0;
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
mov    $0x1,%al
test   $0x1,%al
jne    1145 <main+0x25>
jmp    11b6 <main+0x96>
mov    -0x8(%rbp),%edi
call   1040 <satisfies@plt>
cmp    $0x0,%rax
je     11a3 <main+0x83>
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
shl    $0x1,%edx
imul   $0x3,-0x8(%rbp),%ecx
mov    -0x8(%rbp),%r8d
shl    $0x2,%r8d
imul   $0x5,-0x8(%rbp),%r9d
imul   $0x6,-0x8(%rbp),%eax
lea    0xe84(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11b6 <main+0x96>
jmp    11a8 <main+0x88>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %r15d,%r15d
xor    %r14d,%r14d
xor    %ebp,%ebp
xor    %ebx,%ebx
xor    %r13d,%r13d
xor    %r12d,%r12d
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebx
mov    %ebx,%edi
call   1040 <satisfies@plt>
add    $0x4,%r12d
add    $0x2,%r13d
add    $0x6,%ebp
add    $0x5,%r14d
add    $0x3,%r15d
test   %rax,%rax
je     1140 <main+0x20>
mov    %ebp,(%rsp)
lea    0xe94(%rip),%rdi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %r15d,%ecx
mov    %r12d,%r8d
mov    %r14d,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xea3(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [43 x i8] c" x: %d\0A2x: %d\0A3x: %d\0A4x: %d\0A5x: %d\0A6x: %d\0A\00"
@.str.1 = [9 x i8] c"ans: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %3
3: ; preds = %24, %0
br i1 true, label %4, label %27
4: ; preds = %3
%5 = load i32, i32* %2
%6 = call i64 @satisfies(i32 %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %23
8: ; preds = %4
%9 = load i32, i32* %2
%10 = load i32, i32* %2
%11 = mul nsw i32 %10, 2
%12 = load i32, i32* %2
%13 = mul nsw i32 %12, 3
%14 = load i32, i32* %2
%15 = mul nsw i32 %14, 4
%16 = load i32, i32* %2
%17 = mul nsw i32 %16, 5
%18 = load i32, i32* %2
%19 = mul nsw i32 %18, 6
%20 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %9, i32 %11, i32 %13, i32 %15, i32 %17, i32 %19)
%21 = load i32, i32* %2
%22 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %21)
store i32 0, i32* %1
br label %27
23: ; preds = %4
br label %24
24: ; preds = %23
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %3
27: ; preds = %8, %3
%28 = load i32, i32* %1
ret i32 %28
}

LLVM IR (-O2):
@.str = [43 x i8] c" x: %d\0A2x: %d\0A3x: %d\0A4x: %d\0A5x: %d\0A6x: %d\0A\00"
@.str.1 = [9 x i8] c"ans: %d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 1, %0 ], [ %5, %1 ]
%3 = tail call i64 @satisfies(i32 %2)
%4 = icmp eq i64 %3, 0
%5 = add nuw nsw i32 %2, 1
br i1 %4, label %1, label %6
6: ; preds = %1
%7 = shl nuw nsw i32 %2, 1
%8 = mul nsw i32 %2, 3
%9 = shl nsw i32 %2, 2
%10 = mul nsw i32 %2, 5
%11 = mul nsw i32 %2, 6
%12 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11)
%13 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %2)
ret i32 0
}