const char *interval_string(unsigned int secs) {
  static char buf[256], tmp[80];
  int hr, min, num;
  buf[0] = 0;
  if (secs == 0)
    return "<none>";
  if (secs >= (86400 * 30)) {
    num = secs / (86400 * 30);
    secs -= num * (86400 * 30);
    sprintf(buf, "%d month%s", num, (num > 1) ? "s" : "");
  }
  if (secs >= (86400 * 7)) {
    num = secs / (86400 * 7);
    secs -= num * (86400 * 7);
    sprintf(tmp, "%s%d week%s", buf[0] ? ", " : "", num, (num > 1) ? "s" : "");
    strcat(buf, tmp);
  }
  if (secs >= (86400)) {
    num = secs / (86400);
    secs -= num * (86400);
    sprintf(tmp, "%s%d day%s", buf[0] ? ", " : "", num, (num > 1) ? "s" : "");
    strcat(buf, tmp);
  }
  if (secs > 0) {
    hr = secs / (60 * 60);
    secs -= hr * (60 * 60);
    min = secs / (60);
    secs -= min * (60);
    sprintf(tmp, "%s%d:%02d:%02d", buf[0] ? ", " : "", hr, min, secs);
    strcat(buf, tmp);
  }
  return buf;
}


x86 assembly (clang, -O0):
<interval_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
movb   $0x0,0x2f0e(%rip)
cmpl   $0x0,-0xc(%rbp)
jne    114c <interval_string+0x2c>
lea    0xebd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <interval_string+0x238>
cmpl   $0x278d00,-0xc(%rbp)
jb     11a7 <interval_string+0x87>
mov    -0xc(%rbp),%eax
mov    $0x278d00,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x18(%rbp)
imul   $0x278d00,-0x18(%rbp),%ecx
mov    -0xc(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x18(%rbp),%edx
mov    -0x18(%rbp),%esi
lea    0xe9c(%rip),%rcx
lea    0xe85(%rip),%rax
cmp    $0x1,%esi
cmovg  %rax,%rcx
lea    0x2ea7(%rip),%rdi
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
cmpl   $0x93a80,-0xc(%rbp)
jb     1231 <interval_string+0x111>
mov    -0xc(%rbp),%eax
mov    $0x93a80,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x18(%rbp)
imul   $0x93a80,-0x18(%rbp),%ecx
mov    -0xc(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
movsbl 0x2e67(%rip),%ecx
lea    0xe40(%rip),%rdx
lea    0xe37(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%esi
lea    0xe25(%rip),%r8
lea    0xe0e(%rip),%rax
cmp    $0x1,%esi
cmovg  %rax,%r8
lea    0x2f30(%rip),%rdi
lea    0xdfb(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    0x2e1b(%rip),%rdi
lea    0x2f14(%rip),%rsi
call   1030 <strcat@plt>
cmpl   $0x15180,-0xc(%rbp)
jb     12bb <interval_string+0x19b>
mov    -0xc(%rbp),%eax
mov    $0x15180,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x18(%rbp)
imul   $0x15180,-0x18(%rbp),%ecx
mov    -0xc(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
movsbl 0x2ddd(%rip),%ecx
lea    0xdb6(%rip),%rdx
lea    0xdad(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%esi
lea    0xd9b(%rip),%r8
lea    0xd84(%rip),%rax
cmp    $0x1,%esi
cmovg  %rax,%r8
lea    0x2ea6(%rip),%rdi
lea    0xd80(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    0x2d91(%rip),%rdi
lea    0x2e8a(%rip),%rsi
call   1030 <strcat@plt>
cmpl   $0x0,-0xc(%rbp)
jbe    134d <interval_string+0x22d>
mov    -0xc(%rbp),%eax
mov    $0xe10,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x10(%rbp)
imul   $0xe10,-0x10(%rbp),%ecx
mov    -0xc(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x3c,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x14(%rbp)
imul   $0x3c,-0x14(%rbp),%ecx
mov    -0xc(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
movsbl 0x2d3b(%rip),%ecx
lea    0xd14(%rip),%rdx
lea    0xd0b(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0xc(%rbp),%r9d
lea    0x2e14(%rip),%rdi
lea    0xcf9(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    0x2cff(%rip),%rdi
lea    0x2df8(%rip),%rsi
call   1030 <strcat@plt>
lea    0x2cec(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interval_string>:
push   %rbp
push   %r14
push   %rbx
movb   $0x0,0x2f15(%rip)
test   %edi,%edi
je     11d3 <interval_string+0xb3>
cmp    $0x278d00,%edi
jae    11df <interval_string+0xbf>
cmp    $0x93a80,%edi
jae    1231 <interval_string+0x111>
cmp    $0x15180,%edi
jae    12a8 <interval_string+0x188>
test   %edi,%edi
je     131d <interval_string+0x1fd>
mov    %edi,%eax
mov    $0x91a2b3c5,%ecx
imul   %rax,%rcx
shr    $0x2b,%rcx
imul   $0xfffff1f0,%ecx,%eax
add    %edi,%eax
mov    $0x88888889,%r8d
imul   %rax,%r8
shr    $0x25,%r8
imul   $0xffffffc4,%r8d,%r9d
add    %eax,%r9d
lea    0x2eae(%rip),%rbx
cmpb   $0x0,0x2ea7(%rip)
lea    0xe80(%rip),%rax
lea    0xe77(%rip),%rdx
cmove  %rax,%rdx
lea    0x2f8e(%rip),%r14
lea    0xe73(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcat@plt>
jmp    1324 <interval_string+0x204>
lea    0xe26(%rip),%rbx
jmp    1324 <interval_string+0x204>
mov    %edi,%eax
mov    $0xcf2049a1,%edx
imul   %rax,%rdx
shr    $0x35,%rdx
imul   $0xffd87300,%edx,%ebx
add    %edi,%ebx
cmp    $0x4f1a00,%edi
lea    0xe0d(%rip),%rax
lea    0xe16(%rip),%rcx
cmovae %rax,%rcx
lea    0x2e2b(%rip),%rdi
lea    0xdeb(%rip),%rsi
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    %ebx,%edi
cmp    $0x93a80,%edi
jb     114b <interval_string+0x2b>
mov    %edi,%eax
imul   $0x6ef5de4d,%rax,%rcx
shr    $0x32,%rcx
imul   $0xfff6c580,%ecx,%ebp
add    %edi,%ebp
lea    0x2df3(%rip),%r14
cmpb   $0x0,0x2dec(%rip)
lea    0xdc5(%rip),%rax
lea    0xdbc(%rip),%rdx
cmove  %rax,%rdx
cmp    $0x127500,%edi
lea    0xd9d(%rip),%r8
cmovb  %rax,%r8
lea    0x2ec2(%rip),%rbx
lea    0xd8d(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strcat@plt>
mov    %ebp,%edi
cmp    $0x15180,%edi
jb     1157 <interval_string+0x37>
mov    %edi,%eax
mov    $0xc22e4507,%ecx
imul   %rax,%rcx
shr    $0x30,%rcx
imul   $0xfffeae80,%ecx,%ebp
add    %edi,%ebp
lea    0x2d7a(%rip),%r14
cmpb   $0x0,0x2d73(%rip)
lea    0xd4c(%rip),%rax
lea    0xd43(%rip),%rdx
cmove  %rax,%rdx
cmp    $0x2a300,%edi
lea    0xd24(%rip),%r8
cmovb  %rax,%r8
lea    0x2e49(%rip),%rbx
lea    0xd23(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strcat@plt>
mov    %ebp,%edi
test   %edi,%edi
jne    115f <interval_string+0x3f>
lea    0x2d1c(%rip),%rbx
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@interval_string.buf = internal global [256 x i8] zeroinitializer
@interval_string.tmp = internal global [80 x i8] zeroinitializer
@.str = [7 x i8] c"<none>\00"
@.str.1 = [11 x i8] c"%d month%s\00"
@.str.2 = [2 x i8] c"s\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [12 x i8] c"%s%d week%s\00"
@.str.5 = [3 x i8] c", \00"
@.str.6 = [11 x i8] c"%s%d day%s\00"
@.str.7 = [15 x i8] c"%s%d:%02d:%02d\00"
define i8* @interval_string(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i8 0, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0)
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %2
br label %97
10: ; preds = %1
%11 = load i32, i32* %3
%12 = icmp uge i32 %11, 2592000
br i1 %12, label %13, label %26
13: ; preds = %10
%14 = load i32, i32* %3
%15 = udiv i32 %14, 2592000
store i32 %15, i32* %6
%16 = load i32, i32* %6
%17 = mul nsw i32 %16, 2592000
%18 = load i32, i32* %3
%19 = sub i32 %18, %17
store i32 %19, i32* %3
%20 = load i32, i32* %6
%21 = load i32, i32* %6
%22 = icmp sgt i32 %21, 1
%23 = zext i1 %22 to i64
%24 = select i1 %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%25 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %20, i8* %24)
br label %26
26: ; preds = %13, %10
%27 = load i32, i32* %3
%28 = icmp uge i32 %27, 604800
br i1 %28, label %29, label %48
29: ; preds = %26
%30 = load i32, i32* %3
%31 = udiv i32 %30, 604800
store i32 %31, i32* %6
%32 = load i32, i32* %6
%33 = mul nsw i32 %32, 604800
%34 = load i32, i32* %3
%35 = sub i32 %34, %33
store i32 %35, i32* %3
%36 = load i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0)
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
%39 = zext i1 %38 to i64
%40 = select i1 %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%41 = load i32, i32* %6
%42 = load i32, i32* %6
%43 = icmp sgt i32 %42, 1
%44 = zext i1 %43 to i64
%45 = select i1 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%46 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* %40, i32 %41, i8* %45)
%47 = call i8* @strcat(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0))
br label %48
48: ; preds = %29, %26
%49 = load i32, i32* %3
%50 = icmp uge i32 %49, 86400
br i1 %50, label %51, label %70
51: ; preds = %48
%52 = load i32, i32* %3
%53 = udiv i32 %52, 86400
store i32 %53, i32* %6
%54 = load i32, i32* %6
%55 = mul nsw i32 %54, 86400
%56 = load i32, i32* %3
%57 = sub i32 %56, %55
store i32 %57, i32* %3
%58 = load i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0)
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 0
%61 = zext i1 %60 to i64
%62 = select i1 %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%63 = load i32, i32* %6
%64 = load i32, i32* %6
%65 = icmp sgt i32 %64, 1
%66 = zext i1 %65 to i64
%67 = select i1 %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%68 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %62, i32 %63, i8* %67)
%69 = call i8* @strcat(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0))
br label %70
70: ; preds = %51, %48
%71 = load i32, i32* %3
%72 = icmp ugt i32 %71, 0
br i1 %72, label %73, label %96
73: ; preds = %70
%74 = load i32, i32* %3
%75 = udiv i32 %74, 3600
store i32 %75, i32* %4
%76 = load i32, i32* %4
%77 = mul nsw i32 %76, 3600
%78 = load i32, i32* %3
%79 = sub i32 %78, %77
store i32 %79, i32* %3
%80 = load i32, i32* %3
%81 = udiv i32 %80, 60
store i32 %81, i32* %5
%82 = load i32, i32* %5
%83 = mul nsw i32 %82, 60
%84 = load i32, i32* %3
%85 = sub i32 %84, %83
store i32 %85, i32* %3
%86 = load i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0)
%87 = sext i8 %86 to i32
%88 = icmp ne i32 %87, 0
%89 = zext i1 %88 to i64
%90 = select i1 %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%91 = load i32, i32* %4
%92 = load i32, i32* %5
%93 = load i32, i32* %3
%94 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %90, i32 %91, i32 %92, i32 %93)
%95 = call i8* @strcat(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0))
br label %96
96: ; preds = %73, %70
store i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8** %2
br label %97
97: ; preds = %96, %9
%98 = load i8*, i8** %2
ret i8* %98
}

LLVM IR (-O2):
@interval_string.buf = internal global [256 x i8] zeroinitializer
@interval_string.tmp = internal global [80 x i8] zeroinitializer
@.str = [7 x i8] c"<none>\00"
@.str.1 = [11 x i8] c"%d month%s\00"
@.str.2 = [2 x i8] c"s\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [12 x i8] c"%s%d week%s\00"
@.str.5 = [3 x i8] c", \00"
@.str.6 = [11 x i8] c"%s%d day%s\00"
@.str.7 = [15 x i8] c"%s%d:%02d:%02d\00"
define i8* @interval_string(i32 %0) {
store i8 0, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0)
%2 = icmp eq i32 %0, 0
br i1 %2, label %55, label %3
3: ; preds = %1
%4 = icmp ugt i32 %0, 2591999
br i1 %4, label %5, label %12
5: ; preds = %3
%6 = udiv i32 %0, 2592000
%7 = mul i32 %6, -2592000
%8 = add i32 %7, %0
%9 = icmp ugt i32 %0, 5183999
%10 = select i1 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%11 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %6, i8* %10)
br label %12
12: ; preds = %5, %3
%13 = phi i32 [ %8, %5 ], [ %0, %3 ]
%14 = icmp ugt i32 %13, 604799
br i1 %14, label %15, label %26
15: ; preds = %12
%16 = udiv i32 %13, 604800
%17 = mul i32 %16, -604800
%18 = add i32 %17, %13
%19 = load i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0)
%20 = icmp eq i8 %19, 0
%21 = select i1 %20, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0)
%22 = icmp ugt i32 %13, 1209599
%23 = select i1 %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%24 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* %21, i32 %16, i8* %23)
%25 = tail call i8* @strcat(i8* dereferenceable(1) getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0))
br label %26
26: ; preds = %15, %12
%27 = phi i32 [ %18, %15 ], [ %13, %12 ]
%28 = icmp ugt i32 %27, 86399
br i1 %28, label %29, label %40
29: ; preds = %26
%30 = udiv i32 %27, 86400
%31 = mul i32 %30, -86400
%32 = add i32 %31, %27
%33 = load i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0)
%34 = icmp eq i8 %33, 0
%35 = select i1 %34, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0)
%36 = icmp ugt i32 %27, 172799
%37 = select i1 %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%38 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %35, i32 %30, i8* %37)
%39 = tail call i8* @strcat(i8* dereferenceable(1) getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0))
br label %40
40: ; preds = %29, %26
%41 = phi i32 [ %32, %29 ], [ %27, %26 ]
%42 = icmp eq i32 %41, 0
br i1 %42, label %55, label %43
43: ; preds = %40
%44 = udiv i32 %41, 3600
%45 = mul i32 %44, -3600
%46 = add i32 %45, %41
%47 = udiv i32 %46, 60
%48 = mul i32 %47, -60
%49 = add i32 %48, %46
%50 = load i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0)
%51 = icmp eq i8 %50, 0
%52 = select i1 %51, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0)
%53 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %52, i32 %44, i32 %47, i32 %49)
%54 = tail call i8* @strcat(i8* dereferenceable(1) getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @interval_string.tmp, i64 0, i64 0))
br label %55
55: ; preds = %40, %43, %1
%56 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), %43 ], [ getelementptr inbounds ([256 x i8], [256 x i8]* @interval_string.buf, i64 0, i64 0), %40 ]
ret i8* %56
}