#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*/ f();
int /*<<< orphan*/ g();
int /*<<< orphan*/ x();
int /*<<< orphan*/ y();
int main() {
  long a, b, t, gcd, lcm;
  a = 10;
  b = -1300900;
  a++;
  while (b != 0) {
    t = b;
    g();
    f();
    b = a / b;
    a = t;
  }
  f();
  f();
  gcd = a;
  lcm = (100) / (a - b);
  t = a + b + t;
  x();
  y();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0xa,-0x10(%rbp)
movq   $0xffffffffffec265c,-0x18(%rbp)
ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     11a7 <main+0x67>
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1050 <g@plt>
mov    $0x0,%al
call   1040 <f@plt>
mov    -0x10(%rbp),%rax
cqto
idivq  -0x18(%rbp)
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    116b <main+0x2b>
mov    $0x0,%al
call   1040 <f@plt>
mov    $0x0,%al
call   1040 <f@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rcx
sub    -0x18(%rbp),%rcx
mov    $0x64,%eax
cqto
idiv   %rcx
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
add    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1030 <x@plt>
mov    $0x0,%al
call   1060 <y@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <g@plt>
xor    %eax,%eax
call   1040 <f@plt>
xor    %eax,%eax
call   1040 <f@plt>
xor    %eax,%eax
call   1040 <f@plt>
xor    %eax,%eax
call   1030 <x@plt>
xor    %eax,%eax
call   1060 <y@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i32 0, i32* %1
store i64 10, i64* %2
store i64 -1300900, i64* %3
%7 = load i64, i64* %2
%8 = add nsw i64 %7, 1
store i64 %8, i64* %2
br label %9
9: ; preds = %12, %0
%10 = load i64, i64* %3
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = load i64, i64* %3
store i64 %13, i64* %4
%14 = call i32 (...) @g()
%15 = call i32 (...) @f()
%16 = load i64, i64* %2
%17 = load i64, i64* %3
%18 = sdiv i64 %16, %17
store i64 %18, i64* %3
%19 = load i64, i64* %4
store i64 %19, i64* %2
br label %9
20: ; preds = %9
%21 = call i32 (...) @f()
%22 = call i32 (...) @f()
%23 = load i64, i64* %2
store i64 %23, i64* %5
%24 = load i64, i64* %2
%25 = load i64, i64* %3
%26 = sub nsw i64 %24, %25
%27 = sdiv i64 100, %26
store i64 %27, i64* %6
%28 = load i64, i64* %2
%29 = load i64, i64* %3
%30 = add nsw i64 %28, %29
%31 = load i64, i64* %4
%32 = add nsw i64 %30, %31
store i64 %32, i64* %4
%33 = call i32 (...) @x()
%34 = call i32 (...) @y()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @g()
%2 = tail call i32 (...) @f()
%3 = tail call i32 (...) @f()
%4 = tail call i32 (...) @f()
%5 = tail call i32 (...) @x()
%6 = tail call i32 (...) @y()
ret i32 0
}