pr_call(call) char *call;
{
  char c;
  printf("{");
  if (strncmp("text", call, 4) == 0 && isdigit(*(call + 4)))
    printf("cur_pos += %d;", *(call + 4) - '0');
  else if (strncmp("reloc", call, 5) == 0 && isdigit(*(call + 5)))
    printf("cur_pos += %d;", *(call + 5) - '0');
  pr_text_with_conversions(call);
  printf("fprint( outfile, \";\");");
  printf("}");
  for (; (c = getchar()) != ';'; putchar(c))
    ;
}


x86 assembly (clang, -O0):
<pr_call>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xe7d(%rip),%rdi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    11cc <pr_call+0x6c>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%edi
call   1050 <isdigit@plt>
cmp    $0x0,%eax
je     11cc <pr_call+0x6c>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%esi
sub    $0x30,%esi
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    121e <pr_call+0xbe>
mov    -0x10(%rbp),%rsi
lea    0xe3f(%rip),%rdi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    1219 <pr_call+0xb9>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%edi
call   1050 <isdigit@plt>
cmp    $0x0,%eax
je     1219 <pr_call+0xb9>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%esi
sub    $0x30,%esi
lea    0xdf5(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    121e <pr_call+0xbe>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <pr_text_with_conversions@plt>
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xdf5(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1080 <getchar@plt>
mov    %al,-0x11(%rbp)
movsbl %al,%eax
cmp    $0x3b,%eax
je     1270 <pr_call+0x110>
jmp    1260 <pr_call+0x100>
movsbl -0x11(%rbp),%edi
mov    $0x0,%al
call   1030 <putchar@plt>
jmp    1245 <pr_call+0xe5>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pr_call>:
push   %rbx
mov    %rdi,%rbx
mov    $0x7b,%edi
call   1030 <putchar@plt>
lea    0xe9b(%rip),%rdi
mov    $0x4,%edx
mov    %rbx,%rsi
call   1040 <strncmp@plt>
test   %eax,%eax
jne    1182 <pr_call+0x32>
movsbl 0x4(%rbx),%esi
add    $0xffffffd0,%esi
cmp    $0xa,%esi
jb     11a6 <pr_call+0x56>
lea    0xe8b(%rip),%rdi
mov    $0x5,%edx
mov    %rbx,%rsi
call   1040 <strncmp@plt>
test   %eax,%eax
jne    11b4 <pr_call+0x64>
movsbl 0x5(%rbx),%esi
add    $0xffffffd0,%esi
cmp    $0x9,%esi
ja     11b4 <pr_call+0x64>
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <pr_text_with_conversions@plt>
lea    0xe55(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x7d,%edi
call   1030 <putchar@plt>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <getchar@plt>
shl    $0x18,%eax
cmp    $0x3b000000,%eax
je     11ff <pr_call+0xaf>
sar    $0x18,%eax
mov    %eax,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
jmp    11e0 <pr_call+0x90>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"{\00"
@.str.1 = [5 x i8] c"text\00"
@.str.2 = [15 x i8] c"cur_pos += %d;\00"
@.str.3 = [6 x i8] c"reloc\00"
@.str.4 = [23 x i8] c"fprint( outfile, \22;\22);\00"
@.str.5 = [2 x i8] c"}\00"
define i32 @pr_call(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8
store i8* %0, i8** %3
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = load i8*, i8** %3
%7 = call i32 @strncmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %6, i64 4)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %23
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i64 4
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = call i32 @isdigit(i32 %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %9
%17 = load i8*, i8** %3
%18 = getelementptr inbounds i8, i8* %17, i64 4
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = sub nsw i32 %20, 48
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %21)
br label %42
23: ; preds = %9, %1
%24 = load i8*, i8** %3
%25 = call i32 @strncmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %24, i64 5)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %41
27: ; preds = %23
%28 = load i8*, i8** %3
%29 = getelementptr inbounds i8, i8* %28, i64 5
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = call i32 @isdigit(i32 %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %41
34: ; preds = %27
%35 = load i8*, i8** %3
%36 = getelementptr inbounds i8, i8* %35, i64 5
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = sub nsw i32 %38, 48
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %39)
br label %41
41: ; preds = %34, %27, %23
br label %42
42: ; preds = %41, %16
%43 = load i8*, i8** %3
%44 = call i32 (i8*, ...) bitcast (i32 (...)* @pr_text_with_conversions to i32 (i8*, ...)*)(i8* %43)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %47
47: ; preds = %53, %42
%48 = call i32 (...) @getchar()
%49 = trunc i32 %48 to i8
store i8 %49, i8* %4
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 59
br i1 %51, label %52, label %57
52: ; preds = %47
br label %53
53: ; preds = %52
%54 = load i8, i8* %4
%55 = sext i8 %54 to i32
%56 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 %55)
br label %47
57: ; preds = %47
%58 = load i32, i32* %2
ret i32 %58
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"text\00"
@.str.2 = [15 x i8] c"cur_pos += %d;\00"
@.str.3 = [6 x i8] c"reloc\00"
@.str.4 = [23 x i8] c"fprint( outfile, \22;\22);\00"
define i32 @pr_call(i8* %0) {
%2 = tail call i32 bitcast (i32 (...)* @putchar to i32 (i32)*)(i32 123)
%3 = tail call i32 @strncmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* dereferenceable(1) %0, i64 4)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %11
5: ; preds = %1
%6 = getelementptr inbounds i8, i8* %0, i64 4
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = add nsw i32 %8, -48
%10 = icmp ult i32 %9, 10
br i1 %10, label %20, label %11
11: ; preds = %5, %1
%12 = tail call i32 @strncmp(i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* dereferenceable(1) %0, i64 5)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = getelementptr inbounds i8, i8* %0, i64 5
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = add nsw i32 %17, -48
%19 = icmp ult i32 %18, 10
br i1 %19, label %20, label %23
20: ; preds = %14, %5
%21 = phi i32 [ %9, %5 ], [ %18, %14 ]
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %21)
br label %23
23: ; preds = %20, %11, %14
%24 = tail call i32 (i8*, ...) bitcast (i32 (...)* @pr_text_with_conversions to i32 (i8*, ...)*)(i8* %0)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%26 = tail call i32 bitcast (i32 (...)* @putchar to i32 (i32)*)(i32 125)
%27 = tail call i32 (...) @getchar()
%28 = shl i32 %27, 24
%29 = icmp eq i32 %28, 989855744
br i1 %29, label %37, label %30
30: ; preds = %23, %30
%31 = phi i32 [ %35, %30 ], [ %28, %23 ]
%32 = ashr exact i32 %31, 24
%33 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 %32)
%34 = tail call i32 (...) @getchar()
%35 = shl i32 %34, 24
%36 = icmp eq i32 %35, 989855744
br i1 %36, label %37, label %30
37: ; preds = %30, %23
ret i32 undef
}