#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
char *pr_line(int /*<<< orphan*/ *, char *, int);
int strlen(char *);
void pr_description(FILE *f, char *op_str, char *s) {
  int t;
  char *p;
  t = strlen(op_str);
  fprintf(f, "%s", op_str);
  p = pr_line(f, s, 79 - t);
  while (p != NULL) {
    for (t = 0; t < 4; t++)
      fputc(' ', f);
    p = pr_line(f, p, 79 - 4);
  }
}


x86 assembly (clang, -O0):
<pr_description>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xe91(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x4f,%edx
sub    -0x1c(%rbp),%edx
call   1040 <pr_line@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     11e0 <pr_description+0xa0>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    11c5 <pr_description+0x85>
mov    -0x8(%rbp),%rsi
mov    $0x20,%edi
call   1050 <fputc@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    119f <pr_description+0x5f>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0x4b,%edx
call   1040 <pr_line@plt>
mov    %rax,-0x28(%rbp)
jmp    118d <pr_description+0x4d>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pr_description>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <fputs@plt>
mov    $0x4f,%edx
sub    %ebp,%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <pr_line@plt>
test   %rax,%rax
je     11cc <pr_description+0x8c>
mov    %rax,%rbx
nop
mov    $0x20,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
mov    $0x20,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
mov    $0x20,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
mov    $0x20,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x4b,%edx
call   1050 <pr_line@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1180 <pr_description+0x40>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
define void @pr_description(i32* %0, i8* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
store i32* %0, i32** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%9 = load i8*, i8** %5
%10 = call i32 @strlen(i8* %9)
store i32 %10, i32* %7
%11 = load i32*, i32** %4
%12 = load i8*, i8** %5
%13 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = load i32*, i32** %4
%15 = load i8*, i8** %6
%16 = load i32, i32* %7
%17 = sub nsw i32 79, %16
%18 = call i8* @pr_line(i32* %14, i8* %15, i32 %17)
store i8* %18, i8** %8
br label %19
19: ; preds = %32, %3
%20 = load i8*, i8** %8
%21 = icmp ne i8* %20, null
br i1 %21, label %22, label %36
22: ; preds = %19
store i32 0, i32* %7
br label %23
23: ; preds = %29, %22
%24 = load i32, i32* %7
%25 = icmp slt i32 %24, 4
br i1 %25, label %26, label %32
26: ; preds = %23
%27 = load i32*, i32** %4
%28 = call i32 @fputc(i8 signext 32, i32* %27)
br label %29
29: ; preds = %26
%30 = load i32, i32* %7
%31 = add nsw i32 %30, 1
store i32 %31, i32* %7
br label %23
32: ; preds = %23
%33 = load i32*, i32** %4
%34 = load i8*, i8** %8
%35 = call i8* @pr_line(i32* %33, i8* %34, i32 75)
store i8* %35, i8** %8
br label %19
36: ; preds = %19
ret void
}

LLVM IR (-O2):
define void @pr_description(i32* %0, i8* %1, i8* %2) {
%4 = tail call i32 @strlen(i8* %1)
%5 = tail call i32 @fputs(i8* %1, i32* %0)
%6 = sub nsw i32 79, %4
%7 = tail call i8* @pr_line(i32* %0, i8* %2, i32 %6)
%8 = icmp eq i8* %7, null
br i1 %8, label %17, label %9
9: ; preds = %3, %9
%10 = phi i8* [ %15, %9 ], [ %7, %3 ]
%11 = tail call i32 @fputc(i8 signext 32, i32* %0)
%12 = tail call i32 @fputc(i8 signext 32, i32* %0)
%13 = tail call i32 @fputc(i8 signext 32, i32* %0)
%14 = tail call i32 @fputc(i8 signext 32, i32* %0)
%15 = tail call i8* @pr_line(i32* %0, i8* %10, i32 75)
%16 = icmp eq i8* %15, null
br i1 %16, label %17, label %9
17: ; preds = %9, %3
ret void
}