#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*/ getFloatAsTwoInts(char **);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  char num1[2][7];
  printf("Enter float string (MAX 13 CHARS) > ");
  getFloatAsTwoInts(num1);
  printf("lhs = %6s\n", num1[0]);
  printf("rhs = %6s\n", num1[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x12(%rbp),%rdi
call   1040 <getFloatAsTwoInts@plt>
lea    -0x12(%rbp),%rsi
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x12(%rbp),%rsi
add    $0x7,%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x2(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <getFloatAsTwoInts@plt>
lea    0xede(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x9(%rsp),%rsi
lea    0xed3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [37 x i8] c"Enter float string (MAX 13 CHARS) > \00"
@.str.1 = [11 x i8] c"lhs = %6s\0A\00"
@.str.2 = [11 x i8] c"rhs = %6s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x [7 x i8]]
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [2 x [7 x i8]], [2 x [7 x i8]]* %2, i64 0, i64 0
%5 = bitcast [7 x i8]* %4 to i8**
%6 = call i32 @getFloatAsTwoInts(i8** %5)
%7 = getelementptr inbounds [2 x [7 x i8]], [2 x [7 x i8]]* %2, i64 0, i64 0
%8 = getelementptr inbounds [7 x i8], [7 x i8]* %7, i64 0, i64 0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [2 x [7 x i8]], [2 x [7 x i8]]* %2, i64 0, i64 1
%11 = getelementptr inbounds [7 x i8], [7 x i8]* %10, i64 0, i64 0
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [37 x i8] c"Enter float string (MAX 13 CHARS) > \00"
@.str.1 = [11 x i8] c"lhs = %6s\0A\00"
@.str.2 = [11 x i8] c"rhs = %6s\0A\00"
define i32 @main() {
%1 = alloca [2 x [7 x i8]]
%2 = getelementptr inbounds [2 x [7 x i8]], [2 x [7 x i8]]* %1, i64 0, i64 0, i64 0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%4 = bitcast [2 x [7 x i8]]* %1 to i8**
%5 = call i32 @getFloatAsTwoInts(i8** %4)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%7 = getelementptr inbounds [2 x [7 x i8]], [2 x [7 x i8]]* %1, i64 0, i64 1, i64 0
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %7)
ret i32 0
}