#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*/ freopen(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, long long);
int scanf(char *, long long *, unsigned long long *);
int /*<<< orphan*/ stdin;
int main() {
  long long int v;
  unsigned long long int t;
  v = t = 0;
  freopen("./sample.txt", "r", stdin);
  while (scanf("%lld %lld", &v, &t) == 2) {
    getchar();
    if ((t < 0) || (t > 200))
      continue;
    if ((v < -100) || (v > 100))
      continue;
    unsigned long long int t1 = t * 2;
    long long int d = v * t1;
    printf("%lld\n", d);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x10(%rbp)
mov    0x2e82(%rip),%rax
mov    (%rax),%edx
lea    0xe91(%rip),%rdi
lea    0xe97(%rip),%rsi
call   1040 <freopen@plt>
lea    0xe8d(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1060 <scanf@plt>
cmp    $0x2,%eax
jne    1206 <main+0xc6>
mov    $0x0,%al
call   1050 <getchar@plt>
cmpq   $0x0,-0x18(%rbp)
jb     11b8 <main+0x78>
cmpq   $0xc8,-0x18(%rbp)
jbe    11bd <main+0x7d>
jmp    117b <main+0x3b>
cmpq   $0xffffffffffffff9c,-0x10(%rbp)
jl     11d3 <main+0x93>
cmpq   $0x64,-0x10(%rbp)
jle    11d8 <main+0x98>
jmp    117b <main+0x3b>
mov    -0x18(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
imul   -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
jmp    117b <main+0x3b>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
mov    0x2e84(%rip),%rax
mov    (%rax),%edx
lea    0xe93(%rip),%rdi
lea    0xe99(%rip),%rsi
call   1040 <freopen@plt>
lea    0xe8f(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1060 <scanf@plt>
cmp    $0x2,%eax
jne    11fb <main+0xbb>
lea    0xe74(%rip),%r14
lea    0x10(%rsp),%r15
lea    0x8(%rsp),%rbx
lea    0xe6d(%rip),%r12
jmp    11c3 <main+0x83>
xchg   %ax,%ax
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1060 <scanf@plt>
cmp    $0x2,%eax
jne    11fb <main+0xbb>
xor    %eax,%eax
call   1050 <getchar@plt>
mov    0x8(%rsp),%rsi
cmp    $0xc8,%rsi
ja     11b0 <main+0x70>
mov    0x10(%rsp),%rax
lea    -0x65(%rax),%rcx
cmp    $0xffffffffffffff37,%rcx
jb     11b0 <main+0x70>
imul   %rax,%rsi
add    %rsi,%rsi
mov    %r12,%rdi
call   1030 <printf@plt>
jmp    11b0 <main+0x70>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c"./sample.txt\00"
@.str.1 = [2 x i8] c"r\00"
@stdin = global i32 0
@.str.2 = [10 x i8] c"%lld %lld\00"
@.str.3 = [6 x i8] c"%lld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i32 0, i32* %1
store i64 0, i64* %3
store i64 0, i64* %2
%6 = load i32, i32* @stdin
%7 = call i32 @freopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %6)
br label %8
8: ; preds = %26, %25, %18, %0
%9 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64* %2, i64* %3)
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %34
11: ; preds = %8
%12 = call i32 (...) @getchar()
%13 = load i64, i64* %3
%14 = icmp ult i64 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %11
%16 = load i64, i64* %3
%17 = icmp ugt i64 %16, 200
br i1 %17, label %18, label %19
18: ; preds = %15, %11
br label %8
19: ; preds = %15
%20 = load i64, i64* %2
%21 = icmp slt i64 %20, -100
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i64, i64* %2
%24 = icmp sgt i64 %23, 100
br i1 %24, label %25, label %26
25: ; preds = %22, %19
br label %8
26: ; preds = %22
%27 = load i64, i64* %3
%28 = mul i64 %27, 2
store i64 %28, i64* %4
%29 = load i64, i64* %2
%30 = load i64, i64* %4
%31 = mul i64 %29, %30
store i64 %31, i64* %5
%32 = load i64, i64* %5
%33 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i64 %32)
br label %8
34: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"./sample.txt\00"
@.str.1 = [2 x i8] c"r\00"
@stdin = global i32 0
@.str.2 = [10 x i8] c"%lld %lld\00"
@.str.3 = [6 x i8] c"%lld\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = alloca i64
%3 = bitcast i64* %1 to i8*
%4 = bitcast i64* %2 to i8*
store i64 0, i64* %2
store i64 0, i64* %1
%5 = load i32, i32* @stdin
%6 = tail call i32 @freopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64* %1, i64* %2)
%8 = icmp eq i32 %7, 2
br i1 %8, label %9, label %24
9: ; preds = %0, %21
%10 = call i32 (...) @getchar()
%11 = load i64, i64* %2
%12 = icmp ugt i64 %11, 200
br i1 %12, label %21, label %13
13: ; preds = %9
%14 = load i64, i64* %1
%15 = add i64 %14, -101
%16 = icmp ult i64 %15, -201
br i1 %16, label %21, label %17
17: ; preds = %13
%18 = shl nuw nsw i64 %11, 1
%19 = mul nsw i64 %18, %14
%20 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i64 %19)
br label %21
21: ; preds = %17, %9, %13
%22 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64* %1, i64* %2)
%23 = icmp eq i32 %22, 2
br i1 %23, label %9, label %24
24: ; preds = %21, %0
ret i32 0
}