#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*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ removeNewLine(char *);
int /*<<< orphan*/ stdin;
int main() {
  char companyName[100], companyAddress[100], phoneNumber[100], faxNumber[100],
      webSite[100], managerFirstName[100], managerLastName[100],
      managerAge[100], managerPhone[100];
  printf("Please enter the following information about the firm!\n");
  printf("Company name: ");
  fgets(companyName, 100, stdin);
  removeNewLine(companyName);
  printf("Company address: ");
  fgets(companyAddress, 100, stdin);
  removeNewLine(companyAddress);
  printf("Phone number: ");
  fgets(phoneNumber, 100, stdin);
  removeNewLine(phoneNumber);
  printf("Fax number: ");
  fgets(faxNumber, 100, stdin);
  removeNewLine(faxNumber);
  printf("Web site: ");
  fgets(webSite, 100, stdin);
  removeNewLine(webSite);
  printf("Manager first name: ");
  fgets(managerFirstName, 100, stdin);
  removeNewLine(managerFirstName);
  printf("Manager last name: ");
  fgets(managerLastName, 100, stdin);
  removeNewLine(managerLastName);
  printf("Manager age: ");
  fgets(managerAge, 100, stdin);
  removeNewLine(managerAge);
  printf("Manager phone: ");
  fgets(managerPhone, 100, stdin);
  removeNewLine(managerPhone);
  printf("%s\nAddress: %s\nTel. %s\nFax: %s\nWeb site: %s\nManager: %s %s "
         "(age: %s, tel. %s\n",
         (companyName[0] != '\0' ? companyName : "(no company name)"),
         (companyAddress[0] != '\0' ? companyAddress : "(no company address)"),
         (phoneNumber[0] != '\0' ? phoneNumber : "(no phone number)"),
         (faxNumber[0] != '\0' ? faxNumber : "(no fax)"),
         (webSite[0] != '\0' ? webSite : "(no web site)"),
         (managerFirstName[0] != '\0' ? managerFirstName : "(no first name)"),
         (managerLastName[0] != '\0' ? managerLastName : "(no last name)"),
         (managerAge[0] != '\0' ? managerAge : "(no age entered)"),
         (managerPhone[0] != '\0' ? managerPhone : "(no phone)"));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x498,%rsp
movl   $0x0,-0xc(%rbp)
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x70(%rbp),%rdi
mov    0x2e7e(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x70(%rbp),%rdi
call   1050 <removeNewLine@plt>
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xe0(%rbp),%rdi
mov    0x2e4d(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0xe0(%rbp),%rdi
call   1050 <removeNewLine@plt>
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x150(%rbp),%rdi
mov    0x2e19(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x150(%rbp),%rdi
call   1050 <removeNewLine@plt>
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x1c0(%rbp),%rdi
mov    0x2de5(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x1c0(%rbp),%rdi
call   1050 <removeNewLine@plt>
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x230(%rbp),%rdi
mov    0x2db1(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x230(%rbp),%rdi
call   1050 <removeNewLine@plt>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x2a0(%rbp),%rdi
mov    0x2d7d(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x2a0(%rbp),%rdi
call   1050 <removeNewLine@plt>
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x310(%rbp),%rdi
mov    0x2d49(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x310(%rbp),%rdi
call   1050 <removeNewLine@plt>
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x380(%rbp),%rdi
mov    0x2d15(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x380(%rbp),%rdi
call   1050 <removeNewLine@plt>
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x3f0(%rbp),%rdi
mov    0x2ce1(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x3f0(%rbp),%rdi
call   1050 <removeNewLine@plt>
movsbl -0x70(%rbp),%eax
cmp    $0x0,%eax
je     133c <main+0x20c>
lea    -0x70(%rbp),%rax
mov    %rax,-0x3f8(%rbp)
jmp    134f <main+0x21f>
lea    0xdd2(%rip),%rax
mov    %rax,-0x3f8(%rbp)
jmp    134f <main+0x21f>
mov    -0x3f8(%rbp),%rax
mov    %rax,-0x400(%rbp)
movsbl -0xe0(%rbp),%eax
cmp    $0x0,%eax
je     1380 <main+0x250>
lea    -0xe0(%rbp),%rax
mov    %rax,-0x408(%rbp)
jmp    1393 <main+0x263>
lea    0xda0(%rip),%rax
mov    %rax,-0x408(%rbp)
jmp    1393 <main+0x263>
mov    -0x408(%rbp),%rax
mov    %rax,-0x410(%rbp)
movsbl -0x150(%rbp),%eax
cmp    $0x0,%eax
je     13c4 <main+0x294>
lea    -0x150(%rbp),%rax
mov    %rax,-0x418(%rbp)
jmp    13d7 <main+0x2a7>
lea    0xd71(%rip),%rax
mov    %rax,-0x418(%rbp)
jmp    13d7 <main+0x2a7>
mov    -0x418(%rbp),%rax
mov    %rax,-0x420(%rbp)
movsbl -0x1c0(%rbp),%eax
cmp    $0x0,%eax
je     1408 <main+0x2d8>
lea    -0x1c0(%rbp),%rax
mov    %rax,-0x428(%rbp)
jmp    141b <main+0x2eb>
lea    0xd3f(%rip),%rax
mov    %rax,-0x428(%rbp)
jmp    141b <main+0x2eb>
mov    -0x428(%rbp),%rax
mov    %rax,-0x430(%rbp)
movsbl -0x230(%rbp),%eax
cmp    $0x0,%eax
je     144c <main+0x31c>
lea    -0x230(%rbp),%rax
mov    %rax,-0x438(%rbp)
jmp    145f <main+0x32f>
lea    0xd04(%rip),%rax
mov    %rax,-0x438(%rbp)
jmp    145f <main+0x32f>
mov    -0x438(%rbp),%rax
mov    %rax,-0x440(%rbp)
movsbl -0x2a0(%rbp),%eax
cmp    $0x0,%eax
je     1490 <main+0x360>
lea    -0x2a0(%rbp),%rax
mov    %rax,-0x448(%rbp)
jmp    14a3 <main+0x373>
lea    0xcce(%rip),%rax
mov    %rax,-0x448(%rbp)
jmp    14a3 <main+0x373>
mov    -0x448(%rbp),%rax
mov    %rax,-0x450(%rbp)
movsbl -0x310(%rbp),%eax
cmp    $0x0,%eax
je     14d4 <main+0x3a4>
lea    -0x310(%rbp),%rax
mov    %rax,-0x458(%rbp)
jmp    14e7 <main+0x3b7>
lea    0xc9a(%rip),%rax
mov    %rax,-0x458(%rbp)
jmp    14e7 <main+0x3b7>
mov    -0x458(%rbp),%rax
mov    %rax,-0x460(%rbp)
movsbl -0x380(%rbp),%eax
cmp    $0x0,%eax
je     1518 <main+0x3e8>
lea    -0x380(%rbp),%rax
mov    %rax,-0x468(%rbp)
jmp    152b <main+0x3fb>
lea    0xc65(%rip),%rax
mov    %rax,-0x468(%rbp)
jmp    152b <main+0x3fb>
mov    -0x468(%rbp),%rax
mov    %rax,-0x470(%rbp)
movsbl -0x3f0(%rbp),%eax
cmp    $0x0,%eax
je     155c <main+0x42c>
lea    -0x3f0(%rbp),%rax
mov    %rax,-0x478(%rbp)
jmp    156f <main+0x43f>
lea    0xc32(%rip),%rax
mov    %rax,-0x478(%rbp)
jmp    156f <main+0x43f>
mov    -0x470(%rbp),%r10
mov    -0x460(%rbp),%r11
mov    -0x450(%rbp),%rbx
mov    -0x440(%rbp),%r9
mov    -0x430(%rbp),%r8
mov    -0x420(%rbp),%rcx
mov    -0x410(%rbp),%rdx
mov    -0x400(%rbp),%rsi
mov    -0x478(%rbp),%rax
lea    0xb12(%rip),%rdi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x498,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3e8,%rsp
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e76(%rip),%rbx
mov    (%rbx),%edx
lea    0x150(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %rbp,%rdi
call   1060 <removeNewLine@plt>
lea    0xe77(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%edx
lea    0xe0(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %rbp,%rdi
call   1060 <removeNewLine@plt>
lea    0xe5c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%edx
lea    0x70(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %rbp,%rdi
call   1060 <removeNewLine@plt>
lea    0xe41(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%edx
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %rbp,%rdi
call   1060 <removeNewLine@plt>
lea    0xe26(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%edx
lea    0x380(%rsp),%r13
mov    %r13,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %r13,%rdi
call   1060 <removeNewLine@plt>
lea    0xe04(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%edx
lea    0x310(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %rbp,%rdi
call   1060 <removeNewLine@plt>
lea    0xdec(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%edx
lea    0x2a0(%rsp),%r14
mov    %r14,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %r14,%rdi
call   1060 <removeNewLine@plt>
lea    0xdd3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%edx
lea    0x230(%rsp),%r15
mov    %r15,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %r15,%rdi
call   1060 <removeNewLine@plt>
lea    0xdb4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%edx
lea    0x1c0(%rsp),%r12
mov    %r12,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %r12,%rdi
call   1060 <removeNewLine@plt>
cmpb   $0x0,0x150(%rsp)
lea    0xddd(%rip),%rsi
lea    0x150(%rsp),%rax
cmovne %rax,%rsi
cmpb   $0x0,0xe0(%rsp)
lea    0xdd4(%rip),%rdx
lea    0xe0(%rsp),%rax
cmovne %rax,%rdx
cmpb   $0x0,0x70(%rsp)
lea    0xdd1(%rip),%rcx
lea    0x70(%rsp),%rax
cmovne %rax,%rcx
cmpb   $0x0,(%rsp)
lea    0xdcf(%rip),%r8
mov    %rsp,%rax
cmovne %rax,%r8
cmpb   $0x0,0x380(%rsp)
lea    0xdc2(%rip),%r9
cmovne %r13,%r9
cmpb   $0x0,0x310(%rsp)
lea    0xdbd(%rip),%r10
cmovne %rbp,%r10
cmpb   $0x0,0x2a0(%rsp)
lea    0xdba(%rip),%r11
cmovne %r14,%r11
cmpb   $0x0,0x230(%rsp)
lea    0xdb6(%rip),%rbx
cmovne %r15,%rbx
cmpb   $0x0,0x1c0(%rsp)
lea    0xdb4(%rip),%rbp
cmovne %r12,%rbp
lea    0xcdb(%rip),%rdi
xor    %eax,%eax
push   %rbp
push   %rbx
push   %r11
push   %r10
call   1040 <printf@plt>
add    $0x20,%rsp
xor    %eax,%eax
add    $0x3e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [56 x i8] c"Please enter the following information about the firm!\0A\00"
@.str.1 = [15 x i8] c"Company name: \00"
@stdin = global i32 0
@.str.2 = [18 x i8] c"Company address: \00"
@.str.3 = [15 x i8] c"Phone number: \00"
@.str.4 = [13 x i8] c"Fax number: \00"
@.str.5 = [11 x i8] c"Web site: \00"
@.str.6 = [21 x i8] c"Manager first name: \00"
@.str.7 = [20 x i8] c"Manager last name: \00"
@.str.8 = [14 x i8] c"Manager age: \00"
@.str.9 = [16 x i8] c"Manager phone: \00"
@.str.10 = [78 x i8] c"%s\0AAddress: %s\0ATel. %s\0AFax: %s\0AWeb site: %s\0AManager: %s %s (age: %s, tel. %s\0A\00"
@.str.11 = [18 x i8] c"(no company name)\00"
@.str.12 = [21 x i8] c"(no company address)\00"
@.str.13 = [18 x i8] c"(no phone number)\00"
@.str.14 = [9 x i8] c"(no fax)\00"
@.str.15 = [14 x i8] c"(no web site)\00"
@.str.16 = [16 x i8] c"(no first name)\00"
@.str.17 = [15 x i8] c"(no last name)\00"
@.str.18 = [17 x i8] c"(no age entered)\00"
@.str.19 = [11 x i8] c"(no phone)\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = alloca [100 x i8]
%7 = alloca [100 x i8]
%8 = alloca [100 x i8]
%9 = alloca [100 x i8]
%10 = alloca [100 x i8]
store i32 0, i32* %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%14 = load i32, i32* @stdin
%15 = call i32 @fgets(i8* %13, i32 100, i32 %14)
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%17 = call i32 @removeNewLine(i8* %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%20 = load i32, i32* @stdin
%21 = call i32 @fgets(i8* %19, i32 100, i32 %20)
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%23 = call i32 @removeNewLine(i8* %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%26 = load i32, i32* @stdin
%27 = call i32 @fgets(i8* %25, i32 100, i32 %26)
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%29 = call i32 @removeNewLine(i8* %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%32 = load i32, i32* @stdin
%33 = call i32 @fgets(i8* %31, i32 100, i32 %32)
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%35 = call i32 @removeNewLine(i8* %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%37 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%38 = load i32, i32* @stdin
%39 = call i32 @fgets(i8* %37, i32 100, i32 %38)
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%41 = call i32 @removeNewLine(i8* %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%44 = load i32, i32* @stdin
%45 = call i32 @fgets(i8* %43, i32 100, i32 %44)
%46 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%47 = call i32 @removeNewLine(i8* %46)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%49 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%50 = load i32, i32* @stdin
%51 = call i32 @fgets(i8* %49, i32 100, i32 %50)
%52 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%53 = call i32 @removeNewLine(i8* %52)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%55 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%56 = load i32, i32* @stdin
%57 = call i32 @fgets(i8* %55, i32 100, i32 %56)
%58 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%59 = call i32 @removeNewLine(i8* %58)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%61 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%62 = load i32, i32* @stdin
%63 = call i32 @fgets(i8* %61, i32 100, i32 %62)
%64 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%65 = call i32 @removeNewLine(i8* %64)
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %0
%71 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
br label %73
72: ; preds = %0
br label %73
73: ; preds = %72, %70
%74 = phi i8* [ %71, %70 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), %72 ]
%75 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %73
%80 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
br label %82
81: ; preds = %73
br label %82
82: ; preds = %81, %79
%83 = phi i8* [ %80, %79 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), %81 ]
%84 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %82
%89 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
br label %91
90: ; preds = %82
br label %91
91: ; preds = %90, %88
%92 = phi i8* [ %89, %88 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), %90 ]
%93 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %91
%98 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
br label %100
99: ; preds = %91
br label %100
100: ; preds = %99, %97
%101 = phi i8* [ %98, %97 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), %99 ]
%102 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %100
%107 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
br label %109
108: ; preds = %100
br label %109
109: ; preds = %108, %106
%110 = phi i8* [ %107, %106 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), %108 ]
%111 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp ne i32 %113, 0
br i1 %114, label %115, label %117
115: ; preds = %109
%116 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
br label %118
117: ; preds = %109
br label %118
118: ; preds = %117, %115
%119 = phi i8* [ %116, %115 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), %117 ]
%120 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %126
124: ; preds = %118
%125 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
br label %127
126: ; preds = %118
br label %127
127: ; preds = %126, %124
%128 = phi i8* [ %125, %124 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), %126 ]
%129 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%130 = load i8, i8* %129
%131 = sext i8 %130 to i32
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %127
%134 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
br label %136
135: ; preds = %127
br label %136
136: ; preds = %135, %133
%137 = phi i8* [ %134, %133 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), %135 ]
%138 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %144
142: ; preds = %136
%143 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
br label %145
144: ; preds = %136
br label %145
145: ; preds = %144, %142
%146 = phi i8* [ %143, %142 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), %144 ]
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.10, i64 0, i64 0), i8* %74, i8* %83, i8* %92, i8* %101, i8* %110, i8* %119, i8* %128, i8* %137, i8* %146)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [15 x i8] c"Company name: \00"
@stdin = global i32 0
@.str.2 = [18 x i8] c"Company address: \00"
@.str.3 = [15 x i8] c"Phone number: \00"
@.str.4 = [13 x i8] c"Fax number: \00"
@.str.5 = [11 x i8] c"Web site: \00"
@.str.6 = [21 x i8] c"Manager first name: \00"
@.str.7 = [20 x i8] c"Manager last name: \00"
@.str.8 = [14 x i8] c"Manager age: \00"
@.str.9 = [16 x i8] c"Manager phone: \00"
@.str.10 = [78 x i8] c"%s\0AAddress: %s\0ATel. %s\0AFax: %s\0AWeb site: %s\0AManager: %s %s (age: %s, tel. %s\0A\00"
@.str.11 = [18 x i8] c"(no company name)\00"
@.str.12 = [21 x i8] c"(no company address)\00"
@.str.13 = [18 x i8] c"(no phone number)\00"
@.str.14 = [9 x i8] c"(no fax)\00"
@.str.15 = [14 x i8] c"(no web site)\00"
@.str.16 = [16 x i8] c"(no first name)\00"
@.str.17 = [15 x i8] c"(no last name)\00"
@.str.18 = [17 x i8] c"(no age entered)\00"
@.str.19 = [11 x i8] c"(no phone)\00"
@str = [55 x i8] c"Please enter the following information about the firm!\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = alloca [100 x i8]
%7 = alloca [100 x i8]
%8 = alloca [100 x i8]
%9 = alloca [100 x i8]
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%21 = load i32, i32* @stdin
%22 = call i32 @fgets(i8* %10, i32 100, i32 %21)
%23 = call i32 @removeNewLine(i8* %10)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%25 = load i32, i32* @stdin
%26 = call i32 @fgets(i8* %11, i32 100, i32 %25)
%27 = call i32 @removeNewLine(i8* %11)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%29 = load i32, i32* @stdin
%30 = call i32 @fgets(i8* %12, i32 100, i32 %29)
%31 = call i32 @removeNewLine(i8* %12)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%33 = load i32, i32* @stdin
%34 = call i32 @fgets(i8* %13, i32 100, i32 %33)
%35 = call i32 @removeNewLine(i8* %13)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%37 = load i32, i32* @stdin
%38 = call i32 @fgets(i8* %14, i32 100, i32 %37)
%39 = call i32 @removeNewLine(i8* %14)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%41 = load i32, i32* @stdin
%42 = call i32 @fgets(i8* %15, i32 100, i32 %41)
%43 = call i32 @removeNewLine(i8* %15)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%45 = load i32, i32* @stdin
%46 = call i32 @fgets(i8* %16, i32 100, i32 %45)
%47 = call i32 @removeNewLine(i8* %16)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%49 = load i32, i32* @stdin
%50 = call i32 @fgets(i8* %17, i32 100, i32 %49)
%51 = call i32 @removeNewLine(i8* %17)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%53 = load i32, i32* @stdin
%54 = call i32 @fgets(i8* %18, i32 100, i32 %53)
%55 = call i32 @removeNewLine(i8* %18)
%56 = load i8, i8* %10
%57 = icmp eq i8 %56, 0
%58 = select i1 %57, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* %10
%59 = load i8, i8* %11
%60 = icmp eq i8 %59, 0
%61 = select i1 %60, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i8* %11
%62 = load i8, i8* %12
%63 = icmp eq i8 %62, 0
%64 = select i1 %63, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i8* %12
%65 = load i8, i8* %13
%66 = icmp eq i8 %65, 0
%67 = select i1 %66, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8* %13
%68 = load i8, i8* %14
%69 = icmp eq i8 %68, 0
%70 = select i1 %69, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i8* %14
%71 = load i8, i8* %15
%72 = icmp eq i8 %71, 0
%73 = select i1 %72, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i8* %15
%74 = load i8, i8* %16
%75 = icmp eq i8 %74, 0
%76 = select i1 %75, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i8* %16
%77 = load i8, i8* %17
%78 = icmp eq i8 %77, 0
%79 = select i1 %78, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), i8* %17
%80 = load i8, i8* %18
%81 = icmp eq i8 %80, 0
%82 = select i1 %81, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), i8* %18
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.10, i64 0, i64 0), i8* %58, i8* %61, i8* %64, i8* %67, i8* %70, i8* %73, i8* %76, i8* %79, i8* %82)
ret i32 0
}