#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 */
char EOF;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
char getopt(int, char **, char *);
char *optarg;
scalar_t__ optind;
int /*<<< orphan*/ printf(char *, float);
int /*<<< orphan*/ puts(char *);
int sscanf(char *, char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  int extra_long_total = 0;
  char ch;
  while ((ch = getopt(argc, argv, "l")) != EOF)
    switch (ch) {
    case 'l':
      extra_long_total = 1;
      break;
    default:
      fprintf(stderr, "Unknown option: '%s'\n", optarg);
      return 1;
    }
  argc -= optind;
  argv += optind;
  if (extra_long_total) {
    puts("You have an extra long total\n");
    double total;
    short tip_percent;
    double tip;
    puts("Total: ");
    if (sscanf(argv[0], "%lf", &total) != 1) {
      fprintf(stderr,
              "error - please provide a total that is a floating point number");
    }
    if (sscanf(argv[1], "%hi", &tip_percent) != 1) {
      fprintf(stderr,
              "error - please provide a total that is a floating point number");
    }
    tip = ((float)tip_percent / 100.0) * total;
    printf("Total: %lf\n", total);
    printf("Tip: %lf\n", tip);
  } else {
    puts("You have an normal length total\n");
    float total;
    short tip_percent;
    float tip;
    if (sscanf(argv[0], "%f", &total) != 1) {
      fprintf(stderr,
              "error - please provide a total that is a floating point number");
    }
    if (sscanf(argv[1], "%hi", &tip_percent) != 1) {
      fprintf(stderr,
              "error - please provide a total that is a floating point number");
    }
    tip = ((float)tip_percent / 100.0) * total;
    printf("Total: %f\n", total);
    printf("Tip: %f\n", tip);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe8d(%rip),%rdx
call   1070 <getopt@plt>
mov    %al,-0x15(%rbp)
movsbl %al,%eax
mov    0x2e53(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     11e6 <main+0x96>
mov    -0x15(%rbp),%al
sub    $0x6c,%al
jne    11b4 <main+0x64>
jmp    11a8 <main+0x58>
movl   $0x1,-0x14(%rbp)
jmp    11e1 <main+0x91>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
mov    0x2e34(%rip),%rax
mov    (%rax),%rdx
lea    0xe3c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13c5 <main+0x275>
jmp    116d <main+0x1d>
mov    0x2deb(%rip),%rax
mov    (%rax),%rcx
movslq -0x8(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    0x2dd7(%rip),%rax
mov    (%rax),%rax
shl    $0x3,%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     12f6 <main+0x1a6>
lea    0xdff(%rip),%rdi
call   1030 <puts@plt>
lea    0xe11(%rip),%rdi
call   1030 <puts@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe06(%rip),%rsi
lea    -0x20(%rbp),%rdx
mov    $0x0,%al
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     126b <main+0x11b>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
lea    0xde6(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe0f(%rip),%rsi
lea    -0x22(%rbp),%rdx
mov    $0x0,%al
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     12a5 <main+0x155>
mov    0x2d33(%rip),%rax
mov    (%rax),%edi
lea    0xdac(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movswl -0x22(%rbp),%eax
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd47(%rip),%xmm1
divsd  %xmm1,%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
lea    0xdb6(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x30(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
lea    0xdad(%rip),%rdi
call   1040 <printf@plt>
jmp    13c5 <main+0x275>
lea    0xda6(%rip),%rdi
call   1030 <puts@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xdb4(%rip),%rsi
lea    -0x34(%rbp),%rdx
mov    $0x0,%al
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     133b <main+0x1eb>
mov    0x2c9d(%rip),%rax
mov    (%rax),%edi
lea    0xd16(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd3f(%rip),%rsi
lea    -0x36(%rbp),%rdx
mov    $0x0,%al
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     1375 <main+0x225>
mov    0x2c63(%rip),%rax
mov    (%rax),%edi
lea    0xcdc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movswl -0x36(%rbp),%eax
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc77(%rip),%xmm1
divsd  %xmm1,%xmm0
movss  -0x34(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x34(%rbp),%xmm0
lea    0xd18(%rip),%rdi
call   1040 <printf@plt>
movss  -0x3c(%rbp),%xmm0
lea    0xd12(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe9e(%rip),%rdx
call   1070 <getopt@plt>
mov    0x2e6a(%rip),%r13
mov    0x0(%r13),%r12b
cmp    %r12b,%al
jne    1253 <main+0x103>
mov    0x2e4e(%rip),%rax
mov    (%rax),%rax
lea    (%rbx,%rax,8),%rbx
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%rdi
lea    0xf1d(%rip),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     11cf <main+0x7f>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
lea    0xe82(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x8(%rbx),%rdi
lea    0xeaf(%rip),%rsi
xor    %ebx,%ebx
lea    0x6(%rsp),%rdx
xor    %eax,%eax
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     1204 <main+0xb4>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
lea    0xe4d(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
movswl 0x6(%rsp),%eax
cvtsi2sd %eax,%xmm1
divsd  0xdeb(%rip),%xmm1
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm2
mulsd  %xmm1,%xmm2
xorps  %xmm1,%xmm1
cvtsd2ss %xmm2,%xmm1
movss  %xmm1,0x8(%rsp)
lea    0xe90(%rip),%rdi
call   1040 <printf@plt>
lea    0xe8f(%rip),%rdi
movss  0x8(%rsp),%xmm0
call   1040 <printf@plt>
jmp    137e <main+0x22e>
mov    %eax,%r14d
lea    0xdab(%rip),%r15
nopl   (%rax)
cmp    $0x6c,%al
jne    1358 <main+0x208>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1070 <getopt@plt>
cmp    0x0(%r13),%al
jne    1260 <main+0x110>
mov    0x2d56(%rip),%rax
mov    (%rax),%rax
lea    (%rbx,%rax,8),%rbx
cmp    %r12b,%r14b
je     1191 <main+0x41>
lea    0xd87(%rip),%rdi
call   1030 <puts@plt>
lea    0xd99(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%rdi
lea    0xd92(%rip),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     12dc <main+0x18c>
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
lea    0xd75(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x8(%rbx),%rdi
lea    0xda2(%rip),%rsi
xor    %ebx,%ebx
lea    0x6(%rsp),%rdx
xor    %eax,%eax
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     1311 <main+0x1c1>
mov    0x2cc7(%rip),%rax
mov    (%rax),%edi
lea    0xd40(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
movswl 0x6(%rsp),%eax
cvtsi2sd %eax,%xmm1
divsd  0xcde(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
cvtsd2ss %xmm0,%xmm0
lea    0xd50(%rip),%rdi
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
lea    0xd46(%rip),%rdi
jmp    1249 <main+0xf9>
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
mov    0x2c90(%rip),%rax
mov    (%rax),%rdx
lea    0xc98(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"l\00"
@EOF = global i8 0
@stderr = global i32 0
@.str.1 = [22 x i8] c"Unknown option: '%s'\0A\00"
@optarg = global i8* null
@optind = global i64 0
@.str.2 = [30 x i8] c"You have an extra long total\0A\00"
@.str.3 = [8 x i8] c"Total: \00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [63 x i8] c"error - please provide a total that is a floating point number\00"
@.str.6 = [4 x i8] c"%hi\00"
@.str.7 = [12 x i8] c"Total: %lf\0A\00"
@.str.8 = [10 x i8] c"Tip: %lf\0A\00"
@.str.9 = [33 x i8] c"You have an normal length total\0A\00"
@.str.10 = [3 x i8] c"%f\00"
@.str.11 = [11 x i8] c"Total: %f\0A\00"
@.str.12 = [9 x i8] c"Tip: %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8
%8 = alloca double
%9 = alloca i16
%10 = alloca double
%11 = alloca float
%12 = alloca i16
%13 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %14
14: ; preds = %30, %2
%15 = load i32, i32* %4
%16 = load i8**, i8*** %5
%17 = call signext i8 @getopt(i32 %15, i8** %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8 %17, i8* %7
%18 = sext i8 %17 to i32
%19 = load i8, i8* @EOF
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %18, %20
br i1 %21, label %22, label %31
22: ; preds = %14
%23 = load i8, i8* %7
%24 = sext i8 %23 to i32
switch i32 %24, label %26 [
i32 108, label %25
]
25: ; preds = %22
store i32 1, i32* %6
br label %30
26: ; preds = %22
%27 = load i32, i32* @stderr
%28 = load i8*, i8** @optarg
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %28)
store i32 1, i32* %3
br label %107
30: ; preds = %25
br label %14
31: ; preds = %14
%32 = load i64, i64* @optind
%33 = load i32, i32* %4
%34 = sext i32 %33 to i64
%35 = sub nsw i64 %34, %32
%36 = trunc i64 %35 to i32
store i32 %36, i32* %4
%37 = load i64, i64* @optind
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 %37
store i8** %39, i8*** %5
%40 = load i32, i32* %6
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %75
42: ; preds = %31
%43 = call i32 @puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%44 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 0
%47 = load i8*, i8** %46
%48 = call i32 (i8*, i8*, ...) @sscanf(i8* %47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %8)
%49 = icmp ne i32 %48, 1
br i1 %49, label %50, label %53
50: ; preds = %42
%51 = load i32, i32* @stderr
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %53
53: ; preds = %50, %42
%54 = load i8**, i8*** %5
%55 = getelementptr inbounds i8*, i8** %54, i64 1
%56 = load i8*, i8** %55
%57 = call i32 (i8*, i8*, ...) @sscanf(i8* %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i16* %9)
%58 = icmp ne i32 %57, 1
br i1 %58, label %59, label %62
59: ; preds = %53
%60 = load i32, i32* @stderr
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %62
62: ; preds = %59, %53
%63 = load i16, i16* %9
%64 = sitofp i16 %63 to float
%65 = fpext float %64 to double
%66 = fdiv double %65, 1.000000e+02
%67 = load double, double* %8
%68 = fmul double %66, %67
store double %68, double* %10
%69 = load double, double* %8
%70 = fptrunc double %69 to float
%71 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), float %70)
%72 = load double, double* %10
%73 = fptrunc double %72 to float
%74 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), float %73)
br label %107
75: ; preds = %31
%76 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 0
%79 = load i8*, i8** %78
%80 = call i32 (i8*, i8*, ...) @sscanf(i8* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %11)
%81 = icmp ne i32 %80, 1
br i1 %81, label %82, label %85
82: ; preds = %75
%83 = load i32, i32* @stderr
%84 = call i32 (i32, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %85
85: ; preds = %82, %75
%86 = load i8**, i8*** %5
%87 = getelementptr inbounds i8*, i8** %86, i64 1
%88 = load i8*, i8** %87
%89 = call i32 (i8*, i8*, ...) @sscanf(i8* %88, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i16* %12)
%90 = icmp ne i32 %89, 1
br i1 %90, label %91, label %94
91: ; preds = %85
%92 = load i32, i32* @stderr
%93 = call i32 (i32, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %94
94: ; preds = %91, %85
%95 = load i16, i16* %12
%96 = sitofp i16 %95 to float
%97 = fpext float %96 to double
%98 = fdiv double %97, 1.000000e+02
%99 = load float, float* %11
%100 = fpext float %99 to double
%101 = fmul double %98, %100
%102 = fptrunc double %101 to float
store float %102, float* %13
%103 = load float, float* %11
%104 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), float %103)
%105 = load float, float* %13
%106 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), float %105)
br label %107
107: ; preds = %26, %94, %62
%108 = load i32, i32* %3
ret i32 %108
}

LLVM IR (-O2):
@.str = [2 x i8] c"l\00"
@EOF = global i8 0
@stderr = global i32 0
@.str.1 = [22 x i8] c"Unknown option: '%s'\0A\00"
@optarg = global i8* null
@optind = global i64 0
@.str.2 = [30 x i8] c"You have an extra long total\0A\00"
@.str.3 = [8 x i8] c"Total: \00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [63 x i8] c"error - please provide a total that is a floating point number\00"
@.str.6 = [4 x i8] c"%hi\00"
@.str.7 = [12 x i8] c"Total: %lf\0A\00"
@.str.8 = [10 x i8] c"Tip: %lf\0A\00"
@.str.9 = [33 x i8] c"You have an normal length total\0A\00"
@.str.10 = [3 x i8] c"%f\00"
@.str.11 = [11 x i8] c"Total: %f\0A\00"
@.str.12 = [9 x i8] c"Tip: %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca double
%4 = alloca i16
%5 = alloca float
%6 = alloca i16
%7 = tail call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = load i8, i8* @EOF
%9 = icmp eq i8 %7, %8
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load i64, i64* @optind
%12 = getelementptr inbounds i8*, i8** %1, i64 %11
br label %56
13: ; preds = %17
%14 = tail call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = load i8, i8* @EOF
%16 = icmp eq i8 %14, %15
br i1 %16, label %24, label %17
17: ; preds = %2, %13
%18 = phi i8 [ %14, %13 ], [ %7, %2 ]
%19 = icmp eq i8 %18, 108
br i1 %19, label %13, label %20
20: ; preds = %17
%21 = load i32, i32* @stderr
%22 = load i8*, i8** @optarg
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %22)
br label %85
24: ; preds = %13
%25 = load i64, i64* @optind
%26 = getelementptr inbounds i8*, i8** %1, i64 %25
br i1 %9, label %56, label %27
27: ; preds = %24
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%29 = bitcast double* %3 to i8*
%30 = bitcast i16* %4 to i8*
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%32 = load i8*, i8** %26
%33 = call i32 (i8*, i8*, ...) @sscanf(i8* %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %3)
%34 = icmp eq i32 %33, 1
br i1 %34, label %38, label %35
35: ; preds = %27
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %38
38: ; preds = %35, %27
%39 = getelementptr inbounds i8*, i8** %26, i64 1
%40 = load i8*, i8** %39
%41 = call i32 (i8*, i8*, ...) @sscanf(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i16* %4)
%42 = icmp eq i32 %41, 1
br i1 %42, label %46, label %43
43: ; preds = %38
%44 = load i32, i32* @stderr
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %46
46: ; preds = %43, %38
%47 = load i16, i16* %4
%48 = sitofp i16 %47 to double
%49 = fdiv double %48, 1.000000e+02
%50 = load double, double* %3
%51 = fmul double %50, %49
%52 = fptrunc double %50 to float
%53 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), float %52)
%54 = fptrunc double %51 to float
%55 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), float %54)
br label %85
56: ; preds = %10, %24
%57 = phi i8** [ %12, %10 ], [ %26, %24 ]
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%59 = bitcast float* %5 to i8*
%60 = bitcast i16* %6 to i8*
%61 = load i8*, i8** %57
%62 = call i32 (i8*, i8*, ...) @sscanf(i8* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %5)
%63 = icmp eq i32 %62, 1
br i1 %63, label %67, label %64
64: ; preds = %56
%65 = load i32, i32* @stderr
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %67
67: ; preds = %64, %56
%68 = getelementptr inbounds i8*, i8** %57, i64 1
%69 = load i8*, i8** %68
%70 = call i32 (i8*, i8*, ...) @sscanf(i8* %69, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i16* %6)
%71 = icmp eq i32 %70, 1
br i1 %71, label %75, label %72
72: ; preds = %67
%73 = load i32, i32* @stderr
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %75
75: ; preds = %72, %67
%76 = load i16, i16* %6
%77 = sitofp i16 %76 to double
%78 = fdiv double %77, 1.000000e+02
%79 = load float, float* %5
%80 = fpext float %79 to double
%81 = fmul double %78, %80
%82 = fptrunc double %81 to float
%83 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), float %79)
%84 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), float %82)
br label %85
85: ; preds = %46, %75, %20
%86 = phi i32 [ 1, %20 ], [ 0, %75 ], [ 0, %46 ]
ret i32 %86
}