#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 */
long LONG_MAX;
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf("CS 350 Lab 2 for %s\n\n", "Jamal Kharrat Section 1");
  char ch1 = (char)0x7f;
  printf("type char takes %ld byte(s), ", sizeof(char));
  printf("has max value of %d = %#hhx\n", ch1, ch1);
  ch1++;
  printf("Adding 1 yields %d = %#hhx\n", ch1, ch1);
  printf("\n");
  unsigned char ch2 = (unsigned char)0xff;
  printf("type unsigned char takes %ld byte(s)", sizeof(unsigned char));
  printf("has max value of %d = %#hhx\n", ch2, ch2);
  ch2++;
  printf("Adding 1 yields %d = %#hhx\n", ch2, ch2);
  printf("\n");
  short int shrtInt = 32767;
  printf("the type short int takes %ld byte(s)", sizeof(short int));
  printf("has the maximum value of %d = %#hx\n", shrtInt, shrtInt);
  shrtInt++;
  printf("Adding 1 yields %d = %#hx\n", shrtInt, shrtInt);
  printf("\n");
  unsigned short unsignedShort = 65535;
  printf("The type unsigned short takes %ld byte(s)", sizeof(unsigned short));
  printf("Has the maximum value of %d= %#hx\n", unsignedShort, unsignedShort);
  unsignedShort++;
  printf("Adding 1 yields %d = %#hx\n", unsignedShort, unsignedShort);
  printf("\n");
  int integer = 2147483647;
  printf("the type int takes %ld byte(s)", sizeof(int));
  printf("has the maximum value of %d = %#x\n", integer, integer);
  integer++;
  printf("Adding 1 yields %d = %#x \n", integer, integer);
  printf("\n");
  unsigned int unsignedInt = (unsigned int)0xffffffff;
  printf("the type unsigned int takes %ld byte(s)", sizeof(unsigned int));
  printf("has the maximum value of %u = %#x\n", unsignedInt, unsignedInt);
  unsignedInt++;
  printf("Adding 1 yields %d = %#x \n", unsignedInt, unsignedInt);
  printf("\n");
  long int longInt = LONG_MAX;
  printf("the type long takes %ld byte(s)", sizeof(long int));
  printf("has the maximum value of %lu = %#lx\n", longInt, longInt);
  longInt++;
  printf("Adding 1 yields %lu = %#lx \n", longInt, longInt);
  printf("\n");
  unsigned long int unsignedLongInt = (unsigned long int)0xffffffffffffffff;
  printf("the type unsigned long takes %ld byte(s)", sizeof(unsigned long));
  printf("has the maximum value of %lu = %#lx\n", unsignedLongInt,
         unsignedLongInt);
  unsignedLongInt++;
  printf("Adding 1 yields %lu = %#lx \n", unsignedLongInt, unsignedLongInt);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    0xee9(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x7f,-0x5(%rbp)
lea    0xeef(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xff,-0x6(%rbp)
lea    0xeed(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x6(%rbp),%al
add    $0x1,%al
mov    %al,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movw   $0x7fff,-0x8(%rbp)
lea    0xeb7(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movswl -0x8(%rbp),%esi
movswl -0x8(%rbp),%edx
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x8(%rbp)
movswl -0x8(%rbp),%esi
movswl -0x8(%rbp),%edx
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movw   $0xffff,-0xa(%rbp)
lea    0xebc(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movzwl -0xa(%rbp),%esi
movzwl -0xa(%rbp),%edx
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xa(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0xa(%rbp)
movzwl -0xa(%rbp),%esi
movzwl -0xa(%rbp),%edx
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x7fffffff,-0x10(%rbp)
lea    0xea9(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xffffffff,-0x14(%rbp)
lea    0xead(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c83(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
lea    0xe98(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0xffffffffffffffff,-0x28(%rbp)
ff
lea    0xe99(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbfd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0xed4(%rip),%rdi
lea    0xee3(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef8(%rip),%r14
mov    %r14,%rdi
mov    $0x7f,%esi
mov    $0x7f,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefa(%rip),%rbx
mov    %rbx,%rdi
mov    $0xffffff80,%esi
mov    $0xffffff80,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xef1(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0xff,%esi
mov    $0xff,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed7(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee9(%rip),%rdi
mov    $0x7fff,%esi
mov    $0x7fff,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef5(%rip),%rbx
mov    %rbx,%rdi
mov    $0xffff8000,%esi
mov    $0xffff8000,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeeb(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0xffff,%esi
mov    $0xffff,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xef5(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x7fffffff,%esi
mov    $0x7fffffff,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0c(%rip),%rbx
mov    %rbx,%rdi
mov    $0x80000000,%esi
mov    $0x80000000,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf02(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2ce7(%rip),%rax
mov    (%rax),%rbx
lea    0xf00(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0d(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
lea    0xf17(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf13(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0xffffffffffffffff,%rsi
mov    $0xffffffffffffffff,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [22 x i8] c"CS 350 Lab 2 for %s\0A\0A\00"
@.str.1 = [24 x i8] c"Jamal Kharrat Section 1\00"
@.str.2 = [30 x i8] c"type char takes %ld byte(s), \00"
@.str.3 = [29 x i8] c"has max value of %d = %#hhx\0A\00"
@.str.4 = [28 x i8] c"Adding 1 yields %d = %#hhx\0A\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [37 x i8] c"type unsigned char takes %ld byte(s)\00"
@.str.7 = [37 x i8] c"the type short int takes %ld byte(s)\00"
@.str.8 = [36 x i8] c"has the maximum value of %d = %#hx\0A\00"
@.str.9 = [27 x i8] c"Adding 1 yields %d = %#hx\0A\00"
@.str.10 = [42 x i8] c"The type unsigned short takes %ld byte(s)\00"
@.str.11 = [35 x i8] c"Has the maximum value of %d= %#hx\0A\00"
@.str.12 = [31 x i8] c"the type int takes %ld byte(s)\00"
@.str.13 = [35 x i8] c"has the maximum value of %d = %#x\0A\00"
@.str.14 = [27 x i8] c"Adding 1 yields %d = %#x \0A\00"
@.str.15 = [40 x i8] c"the type unsigned int takes %ld byte(s)\00"
@.str.16 = [35 x i8] c"has the maximum value of %u = %#x\0A\00"
@LONG_MAX = global i64 0
@.str.17 = [32 x i8] c"the type long takes %ld byte(s)\00"
@.str.18 = [37 x i8] c"has the maximum value of %lu = %#lx\0A\00"
@.str.19 = [29 x i8] c"Adding 1 yields %lu = %#lx \0A\00"
@.str.20 = [41 x i8] c"the type unsigned long takes %ld byte(s)\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i16
%5 = alloca i16
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
%9 = alloca i64
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
store i8 127, i8* %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i64 1)
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %13, i32 %15)
%17 = load i8, i8* %2
%18 = add i8 %17, 1
store i8 %18, i8* %2
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = load i8, i8* %2
%22 = sext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 %20, i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8 -1, i8* %3
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i64 1)
%26 = load i8, i8* %3
%27 = zext i8 %26 to i32
%28 = load i8, i8* %3
%29 = zext i8 %28 to i32
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %27, i32 %29)
%31 = load i8, i8* %3
%32 = add i8 %31, 1
store i8 %32, i8* %3
%33 = load i8, i8* %3
%34 = zext i8 %33 to i32
%35 = load i8, i8* %3
%36 = zext i8 %35 to i32
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 %34, i32 %36)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i16 32767, i16* %4
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i64 2)
%40 = load i16, i16* %4
%41 = sext i16 %40 to i32
%42 = load i16, i16* %4
%43 = sext i16 %42 to i32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 %41, i32 %43)
%45 = load i16, i16* %4
%46 = add i16 %45, 1
store i16 %46, i16* %4
%47 = load i16, i16* %4
%48 = sext i16 %47 to i32
%49 = load i16, i16* %4
%50 = sext i16 %49 to i32
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i32 %48, i32 %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i16 -1, i16* %5
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i64 2)
%54 = load i16, i16* %5
%55 = zext i16 %54 to i32
%56 = load i16, i16* %5
%57 = zext i16 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i32 %55, i32 %57)
%59 = load i16, i16* %5
%60 = add i16 %59, 1
store i16 %60, i16* %5
%61 = load i16, i16* %5
%62 = zext i16 %61 to i32
%63 = load i16, i16* %5
%64 = zext i16 %63 to i32
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i32 %62, i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32 2147483647, i32* %6
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i64 4)
%68 = load i32, i32* %6
%69 = load i32, i32* %6
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), i32 %68, i32 %69)
%71 = load i32, i32* %6
%72 = add nsw i32 %71, 1
store i32 %72, i32* %6
%73 = load i32, i32* %6
%74 = load i32, i32* %6
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i32 %73, i32 %74)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %7
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.15, i64 0, i64 0), i64 4)
%78 = load i32, i32* %7
%79 = load i32, i32* %7
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.16, i64 0, i64 0), i32 %78, i32 %79)
%81 = load i32, i32* %7
%82 = add i32 %81, 1
store i32 %82, i32* %7
%83 = load i32, i32* %7
%84 = load i32, i32* %7
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i32 %83, i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%87 = load i64, i64* @LONG_MAX
store i64 %87, i64* %8
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i64 8)
%89 = load i64, i64* %8
%90 = load i64, i64* %8
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i64 %89, i64 %90)
%92 = load i64, i64* %8
%93 = add nsw i64 %92, 1
store i64 %93, i64* %8
%94 = load i64, i64* %8
%95 = load i64, i64* %8
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0), i64 %94, i64 %95)
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i64 -1, i64* %9
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.20, i64 0, i64 0), i64 8)
%99 = load i64, i64* %9
%100 = load i64, i64* %9
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i64 %99, i64 %100)
%102 = load i64, i64* %9
%103 = add i64 %102, 1
store i64 %103, i64* %9
%104 = load i64, i64* %9
%105 = load i64, i64* %9
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0), i64 %104, i64 %105)
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"CS 350 Lab 2 for %s\0A\0A\00"
@.str.1 = [24 x i8] c"Jamal Kharrat Section 1\00"
@.str.2 = [30 x i8] c"type char takes %ld byte(s), \00"
@.str.3 = [29 x i8] c"has max value of %d = %#hhx\0A\00"
@.str.4 = [28 x i8] c"Adding 1 yields %d = %#hhx\0A\00"
@.str.6 = [37 x i8] c"type unsigned char takes %ld byte(s)\00"
@.str.7 = [37 x i8] c"the type short int takes %ld byte(s)\00"
@.str.8 = [36 x i8] c"has the maximum value of %d = %#hx\0A\00"
@.str.9 = [27 x i8] c"Adding 1 yields %d = %#hx\0A\00"
@.str.10 = [42 x i8] c"The type unsigned short takes %ld byte(s)\00"
@.str.11 = [35 x i8] c"Has the maximum value of %d= %#hx\0A\00"
@.str.12 = [31 x i8] c"the type int takes %ld byte(s)\00"
@.str.13 = [35 x i8] c"has the maximum value of %d = %#x\0A\00"
@.str.14 = [27 x i8] c"Adding 1 yields %d = %#x \0A\00"
@.str.15 = [40 x i8] c"the type unsigned int takes %ld byte(s)\00"
@.str.16 = [35 x i8] c"has the maximum value of %u = %#x\0A\00"
@LONG_MAX = global i64 0
@.str.17 = [32 x i8] c"the type long takes %ld byte(s)\00"
@.str.18 = [37 x i8] c"has the maximum value of %lu = %#lx\0A\00"
@.str.19 = [29 x i8] c"Adding 1 yields %lu = %#lx \0A\00"
@.str.20 = [41 x i8] c"the type unsigned long takes %ld byte(s)\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i64 1)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 127, i32 127)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 -128, i32 -128)
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i64 1)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 255, i32 255)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 0)
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i64 2)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 32767, i32 32767)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i32 -32768, i32 -32768)
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i64 2)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i32 65535, i32 65535)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 0)
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i64 4)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), i32 2147483647, i32 2147483647)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i32 -2147483648, i32 -2147483648)
%21 = tail call i32 @putchar(i32 10)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.15, i64 0, i64 0), i64 4)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.16, i64 0, i64 0), i32 -1, i32 -1)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i32 0, i32 0)
%25 = tail call i32 @putchar(i32 10)
%26 = load i64, i64* @LONG_MAX
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i64 8)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i64 %26, i64 %26)
%29 = add nsw i64 %26, 1
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0), i64 %29, i64 %29)
%31 = tail call i32 @putchar(i32 10)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.20, i64 0, i64 0), i64 8)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i64 -1, i64 -1)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0), i64 0, i64 0)
%35 = tail call i32 @putchar(i32 10)
ret i32 0
}