void GetAC3DString(struct _IO_FILE$link6 *dfile, char *str) {
  char c;
  signed int i = 0;
  signed int return_value_feof$1;
  signed int return_value_fgetc$2;
  do {
    return_value_feof$1 = feof(dfile);
    if (return_value_feof$1 != 0)
      goto __CPROVER_DUMP_L2;
    return_value_fgetc$2 = fgetc(dfile);
    c = (char)return_value_fgetc$2;
    if ((signed int)c == 34)
      goto __CPROVER_DUMP_L2;
  } while ((_Bool)1);
  signed int return_value_feof$3;
  signed int return_value_fgetc$4;
  do {
  __CPROVER_DUMP_L2:;
    return_value_feof$3 = feof(dfile);
    if (return_value_feof$3 != 0)
      goto __CPROVER_DUMP_L3;
    return_value_fgetc$4 = fgetc(dfile);
    c = (char)return_value_fgetc$4;
    if ((signed int)c == 34)
      goto __CPROVER_DUMP_L3;
    str[(signed long int)i] = c;
    i = i + 1;
  } while ((_Bool)1);
__CPROVER_DUMP_L3:;
  str[(signed long int)i] = (char)0;
}


x86 assembly (clang, -O0):
<GetAC3DString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <feof@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1154 <GetAC3DString+0x34>
jmp    1198 <GetAC3DString+0x78>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <fgetc@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x22,%eax
jne    117a <GetAC3DString+0x5a>
jmp    1198 <GetAC3DString+0x78>
jmp    117f <GetAC3DString+0x5f>
mov    $0x1,%al
test   $0x1,%al
jne    1137 <GetAC3DString+0x17>
jmp    118e <GetAC3DString+0x6e>
jmp    1193 <GetAC3DString+0x73>
jmp    1198 <GetAC3DString+0x78>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <feof@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     11b5 <GetAC3DString+0x95>
jmp    1206 <GetAC3DString+0xe6>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <fgetc@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x22,%eax
jne    11db <GetAC3DString+0xbb>
jmp    1206 <GetAC3DString+0xe6>
mov    -0x11(%rbp),%dl
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    $0x1,%al
test   $0x1,%al
jne    1193 <GetAC3DString+0x73>
jmp    1201 <GetAC3DString+0xe1>
jmp    1206 <GetAC3DString+0xe6>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetAC3DString>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <feof@plt>
test   %eax,%eax
jne    114c <GetAC3DString+0x2c>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <fgetc@plt>
cmp    $0x22,%al
jne    1130 <GetAC3DString+0x10>
xor    %ebx,%ebx
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <feof@plt>
test   %eax,%eax
jne    1184 <GetAC3DString+0x64>
xor    %ebx,%ebx
xchg   %ax,%ax
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <fgetc@plt>
cmp    $0x22,%al
je     1184 <GetAC3DString+0x64>
mov    %al,(%r14,%rbx,1)
add    $0x1,%rbx
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <feof@plt>
test   %eax,%eax
je     1160 <GetAC3DString+0x40>
movslq %ebx,%rax
movb   $0x0,(%r14,%rax,1)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%"struct._IO_FILE$link6" = type opaque
define void @GetAC3DString(%"struct._IO_FILE$link6"* %0, i8* %1) {
%3 = alloca %"struct._IO_FILE$link6"*
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store %"struct._IO_FILE$link6"* %0, %"struct._IO_FILE$link6"** %3
store i8* %1, i8** %4
store i32 0, i32* %6
br label %11
11: ; preds = %27, %2
%12 = load %"struct._IO_FILE$link6"*, %"struct._IO_FILE$link6"** %3
%13 = call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @feof to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %12)
store i32 %13, i32* %7
%14 = load i32, i32* %7
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %11
br label %30
17: ; preds = %11
%18 = load %"struct._IO_FILE$link6"*, %"struct._IO_FILE$link6"** %3
%19 = call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @fgetc to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %18)
store i32 %19, i32* %8
%20 = load i32, i32* %8
%21 = trunc i32 %20 to i8
store i8 %21, i8* %5
%22 = load i8, i8* %5
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 34
br i1 %24, label %25, label %26
25: ; preds = %17
br label %30
26: ; preds = %17
br label %27
27: ; preds = %26
br i1 true, label %11, label %28
28: ; preds = %27
br label %29
29: ; preds = %53, %28
br label %30
30: ; preds = %29, %25, %16
%31 = load %"struct._IO_FILE$link6"*, %"struct._IO_FILE$link6"** %3
%32 = call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @feof to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %31)
store i32 %32, i32* %9
%33 = load i32, i32* %9
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %30
br label %55
36: ; preds = %30
%37 = load %"struct._IO_FILE$link6"*, %"struct._IO_FILE$link6"** %3
%38 = call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @fgetc to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %37)
store i32 %38, i32* %10
%39 = load i32, i32* %10
%40 = trunc i32 %39 to i8
store i8 %40, i8* %5
%41 = load i8, i8* %5
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 34
br i1 %43, label %44, label %45
44: ; preds = %36
br label %55
45: ; preds = %36
%46 = load i8, i8* %5
%47 = load i8*, i8** %4
%48 = load i32, i32* %6
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, i8* %47, i64 %49
store i8 %46, i8* %50
%51 = load i32, i32* %6
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
br label %53
53: ; preds = %45
br i1 true, label %29, label %54
54: ; preds = %53
br label %55
55: ; preds = %54, %44, %35
%56 = load i8*, i8** %4
%57 = load i32, i32* %6
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, i8* %56, i64 %58
store i8 0, i8* %59
ret void
}

LLVM IR (-O2):
%"struct._IO_FILE$link6" = type opaque
define void @GetAC3DString(%"struct._IO_FILE$link6"* %0, i8* nocapture writeonly %1) {
br label %3
3: ; preds = %6, %2
%4 = tail call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @feof to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %0)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = tail call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @fgetc to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %0)
%8 = and i32 %7, 255
%9 = icmp eq i32 %8, 34
br i1 %9, label %10, label %3
10: ; preds = %3, %6
%11 = tail call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @feof to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %0)
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %24
13: ; preds = %10, %18
%14 = phi i64 [ %21, %18 ], [ 0, %10 ]
%15 = tail call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @fgetc to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %0)
%16 = and i32 %15, 255
%17 = icmp eq i32 %16, 34
br i1 %17, label %24, label %18
18: ; preds = %13
%19 = trunc i32 %15 to i8
%20 = getelementptr inbounds i8, i8* %1, i64 %14
store i8 %19, i8* %20
%21 = add nuw i64 %14, 1
%22 = tail call i32 (%"struct._IO_FILE$link6"*, ...) bitcast (i32 (...)* @feof to i32 (%"struct._IO_FILE$link6"*, ...)*)(%"struct._IO_FILE$link6"* %0)
%23 = icmp eq i32 %22, 0
br i1 %23, label %13, label %24
24: ; preds = %18, %13, %10
%25 = phi i64 [ 0, %10 ], [ %14, %13 ], [ %21, %18 ]
%26 = shl i64 %25, 32
%27 = ashr exact i64 %26, 32
%28 = getelementptr inbounds i8, i8* %1, i64 %27
store i8 0, i8* %28
ret void
}