#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 *format_data_after_int(char *);
char *format_data_after_float(char *_buffer) {
  int stop = 0;
  _buffer = format_data_after_int(_buffer);
  if (*_buffer == '.')
    _buffer++;
  if (*_buffer == '-')
    return _buffer;
  _buffer = format_data_after_int(_buffer);
  return _buffer;
}


x86 assembly (clang, -O0):
<format_data_after_float>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <format_data_after_int@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    114c <format_data_after_float+0x3c>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1169 <format_data_after_float+0x59>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    117e <format_data_after_float+0x6e>
mov    -0x10(%rbp),%rdi
call   1030 <format_data_after_int@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<format_data_after_float>:
push   %rax
call   1030 <format_data_after_int@plt>
mov    %rax,%rcx
xor    %edx,%edx
cmpb   $0x2e,(%rax)
sete   %dl
add    %rdx,%rax
cmpb   $0x2d,(%rcx,%rdx,1)
jne    112c <format_data_after_float+0x1c>
pop    %rcx
ret
mov    %rax,%rdi
pop    %rax
jmp    1030 <format_data_after_int@plt>

LLVM IR (-O0):
define i8* @format_data_after_float(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %4
%5 = load i8*, i8** %3
%6 = call i8* @format_data_after_int(i8* %5)
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 46
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i32 1
store i8* %13, i8** %3
br label %14
14: ; preds = %11, %1
%15 = load i8*, i8** %3
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 45
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = load i8*, i8** %3
store i8* %20, i8** %2
br label %25
21: ; preds = %14
%22 = load i8*, i8** %3
%23 = call i8* @format_data_after_int(i8* %22)
store i8* %23, i8** %3
%24 = load i8*, i8** %3
store i8* %24, i8** %2
br label %25
25: ; preds = %21, %19
%26 = load i8*, i8** %2
ret i8* %26
}

LLVM IR (-O2):
define i8* @format_data_after_float(i8* %0) {
%2 = tail call i8* @format_data_after_int(i8* %0)
%3 = load i8, i8* %2
%4 = icmp eq i8 %3, 46
%5 = zext i1 %4 to i64
%6 = getelementptr i8, i8* %2, i64 %5
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 45
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = tail call i8* @format_data_after_int(i8* %6)
br label %11
11: ; preds = %1, %9
%12 = phi i8* [ %10, %9 ], [ %6, %1 ]
ret i8* %12
}