#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 */
scalar_t__ EOF;
int /*<<< orphan*/ printf(char *, int);
scalar_t__ scanf(char *, int *, int *);
int main() {
  int a, b, tmp;
  while (scanf("%d%d", &a, &b) != EOF) {
    if (a > b)
      tmp = a;
    else
      tmp = b;
    while (tmp % a != 0 || tmp % b != 0)
      tmp++;
    printf("%d\n", tmp);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    0x2e9e(%rip),%rcx
cmp    (%rcx),%rax
je     11cc <main+0xac>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    116a <main+0x4a>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1170 <main+0x50>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1175 <main+0x55>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x11(%rbp)
jne    119a <main+0x7a>
mov    -0x10(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    11aa <main+0x8a>
jmp    11b8 <main+0x98>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1175 <main+0x55>
mov    -0x10(%rbp),%esi
lea    0xe43(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xecc(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
mov    0x2e9e(%rip),%r13
cmp    0x0(%r13),%rax
je     11c1 <main+0xa1>
lea    0xeae(%rip),%r14
lea    0xea2(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    0xc(%rsp),%ecx
mov    0x8(%rsp),%edi
cmp    %edi,%ecx
mov    %edi,%esi
cmovg  %ecx,%esi
jmp    1193 <main+0x73>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%esi
mov    %esi,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    1190 <main+0x70>
mov    %esi,%eax
cltd
idiv   %edi
test   %edx,%edx
jne    1190 <main+0x70>
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1040 <scanf@plt>
cmp    0x0(%r13),%rax
jne    1170 <main+0x50>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i64, i64* @EOF
%7 = icmp eq i64 %5, %6
br i1 %7, label %27, label %8
8: ; preds = %0, %22
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = icmp sgt i32 %9, %10
%12 = select i1 %11, i32 %9, i32 %10
br label %13
13: ; preds = %20, %8
%14 = phi i32 [ %12, %8 ], [ %21, %20 ]
%15 = srem i32 %14, %9
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = srem i32 %14, %10
%19 = icmp eq i32 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %13, %17
%21 = add nsw i32 %14, 1
br label %13
22: ; preds = %17
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%24 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%25 = load i64, i64* @EOF
%26 = icmp eq i64 %24, %25
br i1 %26, label %27, label %8
27: ; preds = %22, %0
ret i32 0
}