#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);
int scanf(char *, int *, int *);
int main() {
  int s, v, t;
  while (scanf("%d%d", &v, &t) == 2) {
    if (v >= -100 && v <= 100 && t >= 0 && t <= 200)
      s = 2 * v * t;
    printf("%d\n", s);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1040 <scanf@plt>
cmp    $0x2,%eax
jne    1198 <main+0x78>
cmpl   $0xffffff9c,-0xc(%rbp)
jl     1184 <main+0x64>
cmpl   $0x64,-0xc(%rbp)
jg     1184 <main+0x64>
cmpl   $0x0,-0x10(%rbp)
jl     1184 <main+0x64>
cmpl   $0xc8,-0x10(%rbp)
jg     1184 <main+0x64>
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
imul   -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%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>
cmp    $0x2,%eax
jne    11a5 <main+0x85>
lea    0xeb6(%rip),%r14
lea    0xeaa(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%r13
mov    0xc(%rsp),%ebx
lea    0x64(%rbx),%eax
mov    0x8(%rsp),%edx
imul   %edx,%ebx
add    %ebx,%ebx
cmp    $0xc9,%edx
cmovge %ecx,%ebx
test   %edx,%edx
cmovs  %ecx,%ebx
cmp    $0xc9,%eax
cmovae %ecx,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
call   1040 <scanf@plt>
mov    %ebx,%ecx
cmp    $0x2,%eax
je     1160 <main+0x40>
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"
@.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 = %25, %0
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4)
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %28
8: ; preds = %5
%9 = load i32, i32* %3
%10 = icmp sge i32 %9, -100
br i1 %10, label %11, label %25
11: ; preds = %8
%12 = load i32, i32* %3
%13 = icmp sle i32 %12, 100
br i1 %13, label %14, label %25
14: ; preds = %11
%15 = load i32, i32* %4
%16 = icmp sge i32 %15, 0
br i1 %16, label %17, label %25
17: ; preds = %14
%18 = load i32, i32* %4
%19 = icmp sle i32 %18, 200
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load i32, i32* %3
%22 = mul nsw i32 2, %21
%23 = load i32, i32* %4
%24 = mul nsw i32 %22, %23
store i32 %24, i32* %2
br label %25
25: ; preds = %20, %17, %14, %11, %8
%26 = load i32, i32* %2
%27 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %26)
br label %5
28: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.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 i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = icmp eq i32 %5, 2
br i1 %6, label %7, label %23
7: ; preds = %0, %7
%8 = phi i32 [ %19, %7 ], [ undef, %0 ]
%9 = load i32, i32* %1
%10 = add i32 %9, 100
%11 = icmp ult i32 %10, 201
%12 = load i32, i32* %2
%13 = icmp sgt i32 %12, -1
%14 = select i1 %11, i1 %13, i1 false
%15 = icmp slt i32 %12, 201
%16 = select i1 %14, i1 %15, i1 false
%17 = shl nsw i32 %9, 1
%18 = mul nsw i32 %17, %12
%19 = select i1 %16, i32 %18, i32 %8
%20 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%22 = icmp eq i32 %21, 2
br i1 %22, label %7, label %23
23: ; preds = %7, %0
ret i32 0
}