#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*/ diagnostics(int, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ isalpha(int);
scalar_t__ malloc(int);
int /*<<< orphan*/ my_strcpy(char *, char *);
char *scanahead(char *);
char *scanback(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, size_t);
char *strstr(char *, char *);
void ConvertOverToFrac(char **equation) {
  char cNext, *eq, *mid, *first, *last, *s, *p, *t;
  eq = *equation;
  p = eq;
  diagnostics(4, "ConvertOverToFrac before <%s>", p);
  while ((mid = strstr(p, "\\over")) != NULL) {
    diagnostics(5, "Matched at <%s>", mid);
    cNext = *(mid + 5);
    diagnostics(5, "Next char is <%c>", cNext);
    if (!isalpha((int)cNext)) {
      first = scanback(eq, mid);
      diagnostics(6, "first = <%s>", first);
      last = scanahead(mid);
      diagnostics(6, "last = <%s>", last);
      strncpy(mid, "  }{ ", 5);
      diagnostics(6, "mid = <%s>", mid);
      s = (char *)malloc(strlen(eq) + sizeof("\\frac{}") + 1);
      t = s;
      strncpy(t, eq, (size_t)(first - eq));
      t += first - eq;
      strncpy(t, "\\frac", 5);
      t += 5;
      if (*first != '{') {
        *t = '{';
        t++;
      }
      strncpy(t, first, (size_t)(last - first));
      t += last - first;
      if (*last != '}') {
        *t = '}';
        t++;
      }
      my_strcpy(t, last);
      free(eq);
      eq = s;
      p = eq;
    } else
      p = mid + 5;
    diagnostics(6, "ConvertOverToFrac current <%s>", eq);
  }
  *equation = eq;
  diagnostics(4, "ConvertOverToFrac after <%s>", eq);
}


x86 assembly (clang, -O0):
<ConvertOverToFrac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdx
mov    $0x4,%edi
lea    0xe31(%rip),%rsi
mov    $0x0,%al
call   1090 <diagnostics@plt>
mov    -0x40(%rbp),%rdi
lea    0xe3d(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     13ec <ConvertOverToFrac+0x24c>
mov    -0x20(%rbp),%rdx
mov    $0x5,%edi
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1090 <diagnostics@plt>
mov    -0x20(%rbp),%rax
mov    0x5(%rax),%al
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%edx
mov    $0x5,%edi
lea    0xe0f(%rip),%rsi
mov    $0x0,%al
call   1090 <diagnostics@plt>
movsbl -0x9(%rbp),%edi
call   10b0 <isalpha@plt>
cmp    $0x0,%eax
jne    13c4 <ConvertOverToFrac+0x224>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1070 <scanback@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdx
mov    $0x6,%edi
lea    0xde7(%rip),%rsi
mov    $0x0,%al
call   1090 <diagnostics@plt>
mov    -0x20(%rbp),%rdi
call   1060 <scanahead@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdx
mov    $0x6,%edi
lea    0xdd0(%rip),%rsi
mov    $0x0,%al
call   1090 <diagnostics@plt>
mov    -0x20(%rbp),%rdi
lea    0xdca(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncpy@plt>
mov    -0x20(%rbp),%rdx
mov    $0x6,%edi
lea    0xdb6(%rip),%rsi
mov    $0x0,%al
call   1090 <diagnostics@plt>
mov    -0x18(%rbp),%rdi
call   1080 <strlen@plt>
cltq
add    $0x8,%rax
add    $0x1,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x18(%rbp),%rax
sub    %rax,%rdx
call   1040 <strncpy@plt>
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%rcx
sub    %rcx,%rax
add    -0x48(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xd5e(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncpy@plt>
mov    -0x48(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7b,%eax
je     134b <ConvertOverToFrac+0x1ab>
mov    -0x48(%rbp),%rax
movb   $0x7b,(%rax)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x28(%rbp),%rax
sub    %rax,%rdx
call   1040 <strncpy@plt>
mov    -0x30(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    %rcx,%rax
add    -0x48(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7d,%eax
je     1399 <ConvertOverToFrac+0x1f9>
mov    -0x48(%rbp),%rax
movb   $0x7d,(%rax)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1050 <my_strcpy@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
jmp    13d0 <ConvertOverToFrac+0x230>
mov    -0x20(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rdx
mov    $0x6,%edi
lea    0xc96(%rip),%rsi
mov    $0x0,%al
call   1090 <diagnostics@plt>
jmp    11d6 <ConvertOverToFrac+0x36>
mov    -0x18(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rdx
mov    $0x4,%edi
lea    0xc8e(%rip),%rsi
mov    $0x0,%al
call   1090 <diagnostics@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ConvertOverToFrac>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,(%rsp)
mov    (%rdi),%r15
lea    0xe47(%rip),%rsi
mov    $0x4,%edi
mov    %r15,%rdx
xor    %eax,%eax
call   1090 <diagnostics@plt>
lea    0xe4f(%rip),%rsi
mov    %r15,%rdi
call   10c0 <strstr@plt>
test   %rax,%rax
je     1383 <ConvertOverToFrac+0x1e3>
mov    %rax,%rbx
lea    0xe3a(%rip),%r12
lea    0xe43(%rip),%r13
lea    0xe7e(%rip),%r14
jmp    1231 <ConvertOverToFrac+0x91>
nopw   0x0(%rax,%rax,1)
add    $0x5,%rbx
mov    $0x6,%edi
mov    %r14,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1090 <diagnostics@plt>
mov    %rbx,%rdi
lea    0xdfe(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1383 <ConvertOverToFrac+0x1e3>
mov    $0x5,%edi
mov    %r12,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <diagnostics@plt>
movsbl 0x5(%rbx),%ebp
mov    $0x5,%edi
mov    %r13,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1090 <diagnostics@plt>
mov    %ebp,%edi
call   10b0 <isalpha@plt>
test   %eax,%eax
jne    1200 <ConvertOverToFrac+0x60>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <scanback@plt>
mov    %rax,%r12
mov    $0x6,%edi
lea    0xdc9(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1090 <diagnostics@plt>
mov    %rbx,%rdi
call   1060 <scanahead@plt>
mov    %rax,%r14
mov    $0x6,%edi
lea    0xdb5(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1090 <diagnostics@plt>
mov    $0x5,%edx
mov    %rbx,%rdi
lea    0xda8(%rip),%rsi
call   1040 <strncpy@plt>
mov    $0x6,%edi
lea    0xd9d(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <diagnostics@plt>
mov    %r15,%rdi
call   1080 <strlen@plt>
lea    0x9(%rax),%edi
call   10a0 <malloc@plt>
mov    %rax,%rbx
mov    %r12,%rbp
sub    %r15,%rbp
mov    %rax,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
call   1040 <strncpy@plt>
lea    (%rbx,%rbp,1),%rdi
mov    $0x5,%edx
lea    0xd67(%rip),%rsi
call   1040 <strncpy@plt>
lea    (%rbx,%rbp,1),%r13
add    $0x5,%r13
cmpb   $0x7b,(%r12)
jne    1322 <ConvertOverToFrac+0x182>
mov    %r15,%rbp
jmp    132e <ConvertOverToFrac+0x18e>
mov    %r15,%rbp
movb   $0x7b,0x0(%r13)
add    $0x1,%r13
mov    %r14,%r15
sub    %r12,%r15
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1040 <strncpy@plt>
add    %r13,%r15
cmpb   $0x7d,(%r14)
je     1353 <ConvertOverToFrac+0x1b3>
movb   $0x7d,(%r15)
add    $0x1,%r15
lea    0xcca(%rip),%r12
lea    0xcd3(%rip),%r13
mov    %r15,%rdi
mov    %r14,%rsi
call   1050 <my_strcpy@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %rbx,%r15
lea    0xcf8(%rip),%r14
jmp    1204 <ConvertOverToFrac+0x64>
mov    (%rsp),%rax
mov    %r15,(%rax)
lea    0xd04(%rip),%rsi
mov    $0x4,%edi
mov    %r15,%rdx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1090 <diagnostics@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"ConvertOverToFrac before <%s>\00"
@.str.1 = [6 x i8] c"\\over\00"
@.str.2 = [16 x i8] c"Matched at <%s>\00"
@.str.3 = [18 x i8] c"Next char is <%c>\00"
@.str.4 = [13 x i8] c"first = <%s>\00"
@.str.5 = [12 x i8] c"last = <%s>\00"
@.str.6 = [6 x i8] c" }{ \00"
@.str.7 = [11 x i8] c"mid = <%s>\00"
@.str.8 = [6 x i8] c"\\frac\00"
@.str.9 = [31 x i8] c"ConvertOverToFrac current <%s>\00"
@.str.10 = [29 x i8] c"ConvertOverToFrac after <%s>\00"
define void @ConvertOverToFrac(i8** %0) {
%2 = alloca i8**
%3 = alloca i8
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i8** %0, i8*** %2
%11 = load i8**, i8*** %2
%12 = load i8*, i8** %11
store i8* %12, i8** %4
%13 = load i8*, i8** %4
store i8* %13, i8** %9
%14 = load i8*, i8** %9
%15 = call i32 (i32, i8*, ...) @diagnostics(i32 4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %14)
br label %16
16: ; preds = %118, %1
%17 = load i8*, i8** %9
%18 = call i8* @strstr(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i8* %18, i8** %5
%19 = icmp ne i8* %18, null
br i1 %19, label %20, label %121
20: ; preds = %16
%21 = load i8*, i8** %5
%22 = call i32 (i32, i8*, ...) @diagnostics(i32 5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %21)
%23 = load i8*, i8** %5
%24 = getelementptr inbounds i8, i8* %23, i64 5
%25 = load i8, i8* %24
store i8 %25, i8* %3
%26 = load i8, i8* %3
%27 = sext i8 %26 to i32
%28 = call i32 (i32, i8*, ...) @diagnostics(i32 5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %27)
%29 = load i8, i8* %3
%30 = sext i8 %29 to i32
%31 = call i32 @isalpha(i32 %30)
%32 = icmp ne i32 %31, 0
br i1 %32, label %115, label %33
33: ; preds = %20
%34 = load i8*, i8** %4
%35 = load i8*, i8** %5
%36 = call i8* @scanback(i8* %34, i8* %35)
store i8* %36, i8** %6
%37 = load i8*, i8** %6
%38 = call i32 (i32, i8*, ...) @diagnostics(i32 6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %37)
%39 = load i8*, i8** %5
%40 = call i8* @scanahead(i8* %39)
store i8* %40, i8** %7
%41 = load i8*, i8** %7
%42 = call i32 (i32, i8*, ...) @diagnostics(i32 6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %41)
%43 = load i8*, i8** %5
%44 = call i32 @strncpy(i8* %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i64 5)
%45 = load i8*, i8** %5
%46 = call i32 (i32, i8*, ...) @diagnostics(i32 6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %45)
%47 = load i8*, i8** %4
%48 = call i32 @strlen(i8* %47)
%49 = sext i32 %48 to i64
%50 = add i64 %49, 8
%51 = add i64 %50, 1
%52 = trunc i64 %51 to i32
%53 = call i64 @malloc(i32 %52)
%54 = inttoptr i64 %53 to i8*
store i8* %54, i8** %8
%55 = load i8*, i8** %8
store i8* %55, i8** %10
%56 = load i8*, i8** %10
%57 = load i8*, i8** %4
%58 = load i8*, i8** %6
%59 = load i8*, i8** %4
%60 = ptrtoint i8* %58 to i64
%61 = ptrtoint i8* %59 to i64
%62 = sub i64 %60, %61
%63 = call i32 @strncpy(i8* %56, i8* %57, i64 %62)
%64 = load i8*, i8** %6
%65 = load i8*, i8** %4
%66 = ptrtoint i8* %64 to i64
%67 = ptrtoint i8* %65 to i64
%68 = sub i64 %66, %67
%69 = load i8*, i8** %10
%70 = getelementptr inbounds i8, i8* %69, i64 %68
store i8* %70, i8** %10
%71 = load i8*, i8** %10
%72 = call i32 @strncpy(i8* %71, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i64 5)
%73 = load i8*, i8** %10
%74 = getelementptr inbounds i8, i8* %73, i64 5
store i8* %74, i8** %10
%75 = load i8*, i8** %6
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 123
br i1 %78, label %79, label %83
79: ; preds = %33
%80 = load i8*, i8** %10
store i8 123, i8* %80
%81 = load i8*, i8** %10
%82 = getelementptr inbounds i8, i8* %81, i32 1
store i8* %82, i8** %10
br label %83
83: ; preds = %79, %33
%84 = load i8*, i8** %10
%85 = load i8*, i8** %6
%86 = load i8*, i8** %7
%87 = load i8*, i8** %6
%88 = ptrtoint i8* %86 to i64
%89 = ptrtoint i8* %87 to i64
%90 = sub i64 %88, %89
%91 = call i32 @strncpy(i8* %84, i8* %85, i64 %90)
%92 = load i8*, i8** %7
%93 = load i8*, i8** %6
%94 = ptrtoint i8* %92 to i64
%95 = ptrtoint i8* %93 to i64
%96 = sub i64 %94, %95
%97 = load i8*, i8** %10
%98 = getelementptr inbounds i8, i8* %97, i64 %96
store i8* %98, i8** %10
%99 = load i8*, i8** %7
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 125
br i1 %102, label %103, label %107
103: ; preds = %83
%104 = load i8*, i8** %10
store i8 125, i8* %104
%105 = load i8*, i8** %10
%106 = getelementptr inbounds i8, i8* %105, i32 1
store i8* %106, i8** %10
br label %107
107: ; preds = %103, %83
%108 = load i8*, i8** %10
%109 = load i8*, i8** %7
%110 = call i32 @my_strcpy(i8* %108, i8* %109)
%111 = load i8*, i8** %4
%112 = call i32 @free(i8* %111)
%113 = load i8*, i8** %8
store i8* %113, i8** %4
%114 = load i8*, i8** %4
store i8* %114, i8** %9
br label %118
115: ; preds = %20
%116 = load i8*, i8** %5
%117 = getelementptr inbounds i8, i8* %116, i64 5
store i8* %117, i8** %9
br label %118
118: ; preds = %115, %107
%119 = load i8*, i8** %4
%120 = call i32 (i32, i8*, ...) @diagnostics(i32 6, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i8* %119)
br label %16
121: ; preds = %16
%122 = load i8*, i8** %4
%123 = load i8**, i8*** %2
store i8* %122, i8** %123
%124 = load i8*, i8** %4
%125 = call i32 (i32, i8*, ...) @diagnostics(i32 4, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* %124)
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"ConvertOverToFrac before <%s>\00"
@.str.1 = [6 x i8] c"\\over\00"
@.str.2 = [16 x i8] c"Matched at <%s>\00"
@.str.3 = [18 x i8] c"Next char is <%c>\00"
@.str.4 = [13 x i8] c"first = <%s>\00"
@.str.5 = [12 x i8] c"last = <%s>\00"
@.str.6 = [6 x i8] c" }{ \00"
@.str.7 = [11 x i8] c"mid = <%s>\00"
@.str.8 = [6 x i8] c"\\frac\00"
@.str.9 = [31 x i8] c"ConvertOverToFrac current <%s>\00"
@.str.10 = [29 x i8] c"ConvertOverToFrac after <%s>\00"
define void @ConvertOverToFrac(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 (i32, i8*, ...) @diagnostics(i32 4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i8* @strstr(i8* dereferenceable(1) %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i8* %4, null
br i1 %5, label %58, label %6
6: ; preds = %1, %52
%7 = phi i8* [ %56, %52 ], [ %4, %1 ]
%8 = phi i8* [ %53, %52 ], [ %2, %1 ]
%9 = tail call i32 (i32, i8*, ...) @diagnostics(i32 5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%10 = getelementptr inbounds i8, i8* %7, i64 5
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = tail call i32 (i32, i8*, ...) @diagnostics(i32 5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %12)
%14 = tail call i32 @isalpha(i32 %12)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %52
16: ; preds = %6
%17 = tail call i8* @scanback(i8* %8, i8* %7)
%18 = tail call i32 (i32, i8*, ...) @diagnostics(i32 6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %17)
%19 = tail call i8* @scanahead(i8* %7)
%20 = tail call i32 (i32, i8*, ...) @diagnostics(i32 6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %19)
%21 = tail call i32 @strncpy(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i64 5)
%22 = tail call i32 (i32, i8*, ...) @diagnostics(i32 6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %7)
%23 = tail call i32 @strlen(i8* %8)
%24 = add i32 %23, 9
%25 = tail call i64 @malloc(i32 %24)
%26 = inttoptr i64 %25 to i8*
%27 = ptrtoint i8* %17 to i64
%28 = ptrtoint i8* %8 to i64
%29 = sub i64 %27, %28
%30 = tail call i32 @strncpy(i8* %26, i8* %8, i64 %29)
%31 = getelementptr inbounds i8, i8* %26, i64 %29
%32 = tail call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i64 5)
%33 = getelementptr inbounds i8, i8* %31, i64 5
%34 = load i8, i8* %17
%35 = icmp eq i8 %34, 123
br i1 %35, label %38, label %36
36: ; preds = %16
store i8 123, i8* %33
%37 = getelementptr inbounds i8, i8* %33, i64 1
br label %38
38: ; preds = %36, %16
%39 = phi i8* [ %37, %36 ], [ %33, %16 ]
%40 = ptrtoint i8* %19 to i64
%41 = sub i64 %40, %27
%42 = tail call i32 @strncpy(i8* %39, i8* %17, i64 %41)
%43 = getelementptr inbounds i8, i8* %39, i64 %41
%44 = load i8, i8* %19
%45 = icmp eq i8 %44, 125
br i1 %45, label %48, label %46
46: ; preds = %38
store i8 125, i8* %43
%47 = getelementptr inbounds i8, i8* %43, i64 1
br label %48
48: ; preds = %46, %38
%49 = phi i8* [ %47, %46 ], [ %43, %38 ]
%50 = tail call i32 @my_strcpy(i8* %49, i8* %19)
%51 = tail call i32 @free(i8* %8)
br label %52
52: ; preds = %6, %48
%53 = phi i8* [ %26, %48 ], [ %8, %6 ]
%54 = phi i8* [ %26, %48 ], [ %10, %6 ]
%55 = tail call i32 (i32, i8*, ...) @diagnostics(i32 6, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i8* %53)
%56 = tail call i8* @strstr(i8* dereferenceable(1) %54, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%57 = icmp eq i8* %56, null
br i1 %57, label %58, label %6
58: ; preds = %52, %1
%59 = phi i8* [ %2, %1 ], [ %53, %52 ]
store i8* %59, i8** %0
%60 = tail call i32 (i32, i8*, ...) @diagnostics(i32 4, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* %59)
ret void
}