#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 */
typedef scalar_t__ int32_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, scalar_t__);
int main(void) {
__asmb_line_1:;
  int32_t __asmb_reg_a = 0;
__asmb_line_2:;
  int32_t __asmb_reg_b = 0;
__asmb_line_3:;
  int32_t __asmb_reg_c = 100;
__asmb_line_4:;
  ++__asmb_reg_b;
__asmb_line_5:;
  --__asmb_reg_c;
__asmb_line_6:;
  if (__asmb_reg_c != 0)
    goto __asmb_line_4;
__asmb_line_7:;
  printf("%d\n", __asmb_reg_c);
__asmb_line_8:;
  printf("%d\n", __asmb_reg_b);
__asmb_line_9:;
  __asmb_reg_b = 0;
__asmb_line_10:;
  __asmb_reg_c = 0;
__asmb_line_11:;
  __asmb_reg_a = -20;
__asmb_line_12:;
  --__asmb_reg_b;
__asmb_line_13:;
  ++__asmb_reg_a;
__asmb_line_14:;
  if (__asmb_reg_a != 0)
    goto __asmb_line_12;
__asmb_line_15:;
  printf("%d\n", __asmb_reg_a);
__asmb_line_16:;
  printf("%d\n", __asmb_reg_b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x64,-0x20(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     115f <main+0x4f>
jmp    1137 <main+0x27>
jmp    1164 <main+0x54>
mov    -0x20(%rbp),%rsi
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0xffffffffffffffec,-0x10(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11c4 <main+0xb4>
jmp    119c <main+0x8c>
jmp    11c9 <main+0xb9>
mov    -0x10(%rbp),%rsi
lea    0xe2c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    $0x64,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xffffffffffffffec,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 100)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 -20)
ret i32 0
}