void print_number_range(sepchar, file, a, b) int sepchar;
struct file_data *file;
int a, b;
{
  int trans_a, trans_b;
  translate_range(file, a, b, &trans_a, &trans_b);
  if (trans_b > trans_a)
    printf_output("%d%c%d", trans_a, sepchar, trans_b);
  else
    printf_output("%d", trans_b);
}


x86 assembly (clang, -O0):
<print_number_range>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    -0x1c(%rbp),%rcx
lea    -0x20(%rbp),%r8
mov    $0x0,%al
call   1040 <translate_range@plt>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jle    1176 <print_number_range+0x56>
mov    -0x1c(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf_output@plt>
jmp    1187 <print_number_range+0x67>
mov    -0x20(%rbp),%esi
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf_output@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_number_range>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
lea    0xc(%rsp),%rax
lea    0x8(%rsp),%r8
mov    %rsi,%rdi
mov    %edx,%esi
mov    %ecx,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1040 <translate_range@plt>
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%esi
cmp    %esi,%ecx
jle    1160 <print_number_range+0x40>
lea    0xeab(%rip),%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf_output@plt>
jmp    1170 <print_number_range+0x50>
lea    0xe9d(%rip),%rdi
mov    %ecx,%esi
xor    %eax,%eax
call   1030 <printf_output@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.file_data = type opaque
@.str = [7 x i8] c"%d%c%d\00"
@.str.1 = [3 x i8] c"%d\00"
define void @print_number_range(i32 %0, %struct.file_data* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca %struct.file_data*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %5
store %struct.file_data* %1, %struct.file_data** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%11 = load %struct.file_data*, %struct.file_data** %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = call i32 (%struct.file_data*, i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @translate_range to i32 (%struct.file_data*, i32, i32, i32*, i32*, ...)*)(%struct.file_data* %11, i32 %12, i32 %13, i32* %9, i32* %10)
%15 = load i32, i32* %10
%16 = load i32, i32* %9
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %23
18: ; preds = %4
%19 = load i32, i32* %9
%20 = load i32, i32* %5
%21 = load i32, i32* %10
%22 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @printf_output to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %20, i32 %21)
br label %26
23: ; preds = %4
%24 = load i32, i32* %10
%25 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @printf_output to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %24)
br label %26
26: ; preds = %23, %18
ret void
}

LLVM IR (-O2):
%struct.file_data = type opaque
@.str = [7 x i8] c"%d%c%d\00"
@.str.1 = [3 x i8] c"%d\00"
define void @print_number_range(i32 %0, %struct.file_data* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %5 to i8*
%8 = bitcast i32* %6 to i8*
%9 = call i32 (%struct.file_data*, i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @translate_range to i32 (%struct.file_data*, i32, i32, i32*, i32*, ...)*)(%struct.file_data* %1, i32 %2, i32 %3, i32* %5, i32* %6)
%10 = load i32, i32* %6
%11 = load i32, i32* %5
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %4
%14 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @printf_output to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %0, i32 %10)
br label %17
15: ; preds = %4
%16 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @printf_output to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %10)
br label %17
17: ; preds = %15, %13
ret void
}