#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 *, float, float, char *);
int scanf(char *, float *, float *, char *);
int bermuda() {
  float latitude;
  float longitude;
  char info[80];
  while (scanf("%f,%f,%79[^\n]", &latitude, &longitude, info) == 3) {
    if (latitude > 26 && latitude < 34) {
      if (longitude > -76 && longitude < -64) {
        printf("%f,%f,%s\n", latitude, longitude, info);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<bermuda>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    -0x60(%rbp),%rcx
lea    0xedd(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11bd <bermuda+0x9d>
movss  -0x4(%rbp),%xmm0
movss  0xeaa(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11b8 <bermuda+0x98>
movss  0xe9d(%rip),%xmm0
ucomiss -0x4(%rbp),%xmm0
jbe    11b8 <bermuda+0x98>
movss  -0x8(%rbp),%xmm0
movss  0xe8a(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11b3 <bermuda+0x93>
movss  0xe7d(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11b3 <bermuda+0x93>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
lea    -0x60(%rbp),%rsi
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
jmp    11b8 <bermuda+0x98>
jmp    1128 <bermuda+0x8>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bermuda>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x60,%rsp
lea    0xedc(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11cb <bermuda+0xab>
lea    0xeca(%rip),%r14
lea    0x10(%rsp),%rbx
lea    0xeb0(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%r13
jmp    1186 <bermuda+0x66>
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11cb <bermuda+0xab>
movss  0xc(%rsp),%xmm0
ucomiss 0xe6d(%rip),%xmm0
jbe    1170 <bermuda+0x50>
movss  0xe67(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1170 <bermuda+0x50>
movss  0x8(%rsp),%xmm1
ucomiss 0xe59(%rip),%xmm1
jbe    1170 <bermuda+0x50>
movss  0xe53(%rip),%xmm2
ucomiss %xmm1,%xmm2
jbe    1170 <bermuda+0x50>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
jmp    1170 <bermuda+0x50>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [14 x i8] c"%f,%f,%79[^\0A]\00"
@.str.1 = [10 x i8] c"%f,%f,%s\0A\00"
define i32 @bermuda() {
%1 = alloca float
%2 = alloca float
%3 = alloca [80 x i8]
br label %4
4: ; preds = %26, %0
%5 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%6 = call i32 @scanf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, i8* %5)
%7 = icmp eq i32 %6, 3
br i1 %7, label %8, label %27
8: ; preds = %4
%9 = load float, float* %1
%10 = fcmp ogt float %9, 2.600000e+01
br i1 %10, label %11, label %26
11: ; preds = %8
%12 = load float, float* %1
%13 = fcmp olt float %12, 3.400000e+01
br i1 %13, label %14, label %26
14: ; preds = %11
%15 = load float, float* %2
%16 = fcmp ogt float %15, -7.600000e+01
br i1 %16, label %17, label %25
17: ; preds = %14
%18 = load float, float* %2
%19 = fcmp olt float %18, -6.400000e+01
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load float, float* %1
%22 = load float, float* %2
%23 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%24 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), float %21, float %22, i8* %23)
br label %25
25: ; preds = %20, %17, %14
br label %26
26: ; preds = %25, %11, %8
br label %4
27: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"%f,%f,%79[^\0A]\00"
@.str.1 = [10 x i8] c"%f,%f,%s\0A\00"
define i32 @bermuda() {
%1 = alloca float
%2 = alloca float
%3 = alloca [80 x i8]
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, i8* %6)
%8 = icmp eq i32 %7, 3
br i1 %8, label %9, label %24
9: ; preds = %0, %21
%10 = load float, float* %1
%11 = fcmp ogt float %10, 2.600000e+01
%12 = fcmp olt float %10, 3.400000e+01
%13 = and i1 %11, %12
br i1 %13, label %14, label %21
14: ; preds = %9
%15 = load float, float* %2
%16 = fcmp ogt float %15, -7.600000e+01
%17 = fcmp olt float %15, -6.400000e+01
%18 = and i1 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), float %10, float %15, i8* %6)
br label %21
21: ; preds = %14, %19, %9
%22 = call i32 @scanf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, i8* %6)
%23 = icmp eq i32 %22, 3
br i1 %23, label %9, label %24
24: ; preds = %21, %0
ret i32 0
}