#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 *, char *);
char *timlib_latitude_longitude_degrees_decimal_to_minutes(char *);
char *timlib_latitude_longitude_degrees_minutes_to_decimal(char *);
void test_latitude_longitude(void) {
  printf("Latitude to decimal: should be 25.55233 is %.5lf\n",
         timlib_latitude_longitude_degrees_minutes_to_decimal("25 33.14"));
  printf("Longitude to decimal: should be -81.21017 is %.5lf\n",
         timlib_latitude_longitude_degrees_minutes_to_decimal("-81 12.61"));
  printf("Latitude to minutes: should be 25 33.14 is %s\n",
         timlib_latitude_longitude_degrees_decimal_to_minutes("25.55233"));
  printf("Latitude to minutes: should be -81 12.61 is %s\n",
         timlib_latitude_longitude_degrees_decimal_to_minutes("-81.21017"));
}


x86 assembly (clang, -O0):
<test_latitude_longitude>:
push   %rbp
mov    %rsp,%rbp
lea    0xef7(%rip),%rdi
call   1050 <timlib_latitude_longitude_degrees_minutes_to_decimal@plt>
mov    %rax,%rsi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1050 <timlib_latitude_longitude_degrees_minutes_to_decimal@plt>
mov    %rax,%rsi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
call   1040 <timlib_latitude_longitude_degrees_decimal_to_minutes@plt>
mov    %rax,%rsi
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
call   1040 <timlib_latitude_longitude_degrees_decimal_to_minutes@plt>
mov    %rax,%rsi
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_latitude_longitude>:
push   %rax
lea    0xefa(%rip),%rdi
call   1050 <timlib_latitude_longitude_degrees_minutes_to_decimal@plt>
lea    0xebc(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1050 <timlib_latitude_longitude_degrees_minutes_to_decimal@plt>
lea    0xedc(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1040 <timlib_latitude_longitude_degrees_decimal_to_minutes@plt>
lea    0xeff(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
call   1040 <timlib_latitude_longitude_degrees_decimal_to_minutes@plt>
lea    0xf1c(%rip),%rdi
mov    %rax,%rsi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [50 x i8] c"Latitude to decimal: should be 25.55233 is %.5lf\0A\00"
@.str.1 = [9 x i8] c"25 33.14\00"
@.str.2 = [52 x i8] c"Longitude to decimal: should be -81.21017 is %.5lf\0A\00"
@.str.3 = [10 x i8] c"-81 12.61\00"
@.str.4 = [47 x i8] c"Latitude to minutes: should be 25 33.14 is %s\0A\00"
@.str.5 = [9 x i8] c"25.55233\00"
@.str.6 = [48 x i8] c"Latitude to minutes: should be -81 12.61 is %s\0A\00"
@.str.7 = [10 x i8] c"-81.21017\00"
define void @test_latitude_longitude() {
%1 = call i8* @timlib_latitude_longitude_degrees_minutes_to_decimal(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = call i8* @timlib_latitude_longitude_degrees_minutes_to_decimal(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%5 = call i8* @timlib_latitude_longitude_degrees_decimal_to_minutes(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%7 = call i8* @timlib_latitude_longitude_degrees_decimal_to_minutes(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i8* %7)
ret void
}

LLVM IR (-O2):
@.str = [50 x i8] c"Latitude to decimal: should be 25.55233 is %.5lf\0A\00"
@.str.1 = [9 x i8] c"25 33.14\00"
@.str.2 = [52 x i8] c"Longitude to decimal: should be -81.21017 is %.5lf\0A\00"
@.str.3 = [10 x i8] c"-81 12.61\00"
@.str.4 = [47 x i8] c"Latitude to minutes: should be 25 33.14 is %s\0A\00"
@.str.5 = [9 x i8] c"25.55233\00"
@.str.6 = [48 x i8] c"Latitude to minutes: should be -81 12.61 is %s\0A\00"
@.str.7 = [10 x i8] c"-81.21017\00"
define void @test_latitude_longitude() {
%1 = tail call i8* @timlib_latitude_longitude_degrees_minutes_to_decimal(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i8* @timlib_latitude_longitude_degrees_minutes_to_decimal(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%5 = tail call i8* @timlib_latitude_longitude_degrees_decimal_to_minutes(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%7 = tail call i8* @timlib_latitude_longitude_degrees_decimal_to_minutes(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i8* %7)
ret void
}