int ciCmdTestFxn(int argc, char **argv) {
  int x;
  {
    if ((argc == 2) && (strncmp(argv[1], "-h", 2) == 0)) {
      printf("Usage:  %-10s ", argv[0]);
      printf("%s\n", "parm1, parm2, ....\n");
      return (0);
    }
  };
  if (argc == 1) {
    printf("Maybe try entering some parameters...\n");
    return (0);
  }
  printf("%s: parameter dump:\n", __FUNCTION__);
  for (x = 0; x < argc; x++) {
    printf("  %d:   %s\n", x, argv[x]);
  }
  return (0);
}


x86 assembly (clang, -O0):
<ciCmdTestFxn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1191 <ciCmdTestFxn+0x71>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xeb8(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1191 <ciCmdTestFxn+0x71>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf00(%rip),%rdi
lea    0xe94(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    120f <ciCmdTestFxn+0xef>
cmpl   $0x1,-0x8(%rbp)
jne    11b5 <ciCmdTestFxn+0x95>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    120f <ciCmdTestFxn+0xef>
lea    0xe91(%rip),%rdi
lea    0xe9f(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1208 <ciCmdTestFxn+0xe8>
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d1 <ciCmdTestFxn+0xb1>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ciCmdTestFxn>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
cmp    $0x1,%edi
je     1176 <ciCmdTestFxn+0x46>
mov    %rsi,%r14
mov    %edi,%ebp
cmp    $0x2,%edi
jne    117f <ciCmdTestFxn+0x4f>
mov    0x8(%r14),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     11cb <ciCmdTestFxn+0x9b>
lea    0xec0(%rip),%rdi
lea    0xece(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1198 <ciCmdTestFxn+0x68>
lea    0xed7(%rip),%rdi
jmp    11e3 <ciCmdTestFxn+0xb3>
lea    0xea0(%rip),%rdi
lea    0xeae(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
test   %ebp,%ebp
jle    11e8 <ciCmdTestFxn+0xb8>
mov    %ebp,%ebp
lea    0xea7(%rip),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%r14,%rbx,8),%rdx
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    11b0 <ciCmdTestFxn+0x80>
jmp    11e8 <ciCmdTestFxn+0xb8>
mov    (%r14),%rsi
lea    0xe2e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe2f(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"-h\00"
@.str.1 = [15 x i8] c"Usage: %-10s \00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [20 x i8] c"parm1, parm2, ....\0A\00"
@.str.4 = [39 x i8] c"Maybe try entering some parameters...\0A\00"
@.str.5 = [21 x i8] c"%s: parameter dump:\0A\00"
@__FUNCTION__.ciCmdTestFxn = [13 x i8] c"ciCmdTestFxn\00"
@.str.6 = [12 x i8] c" %d: %s\0A\00"
define i32 @ciCmdTestFxn(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 2
br i1 %8, label %9, label %21
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 2)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %9
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %44
21: ; preds = %9, %2
%22 = load i32, i32* %4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %3
br label %44
26: ; preds = %21
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.ciCmdTestFxn, i64 0, i64 0))
store i32 0, i32* %6
br label %28
28: ; preds = %40, %26
%29 = load i32, i32* %6
%30 = load i32, i32* %4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %43
32: ; preds = %28
%33 = load i32, i32* %6
%34 = load i8**, i8*** %5
%35 = load i32, i32* %6
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8*, i8** %34, i64 %36
%38 = load i8*, i8** %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %33, i8* %38)
br label %40
40: ; preds = %32
%41 = load i32, i32* %6
%42 = add nsw i32 %41, 1
store i32 %42, i32* %6
br label %28
43: ; preds = %28
store i32 0, i32* %3
br label %44
44: ; preds = %43, %24, %15
%45 = load i32, i32* %3
ret i32 %45
}

LLVM IR (-O2):
@.str = [3 x i8] c"-h\00"
@.str.1 = [15 x i8] c"Usage: %-10s \00"
@.str.3 = [20 x i8] c"parm1, parm2, ....\0A\00"
@.str.5 = [21 x i8] c"%s: parameter dump:\0A\00"
@__FUNCTION__.ciCmdTestFxn = [13 x i8] c"ciCmdTestFxn\00"
@.str.6 = [12 x i8] c" %d: %s\0A\00"
@str = [38 x i8] c"Maybe try entering some parameters...\00"
define i32 @ciCmdTestFxn(i32 %0, i8** nocapture %1) {
switch i32 %0, label %13 [
i32 2, label %3
i32 1, label %26
]
3: ; preds = %2
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
%6 = tail call i32 @strncmp(i8* dereferenceable(1) %5, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 2)
%7 = icmp eq i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.ciCmdTestFxn, i64 0, i64 0))
br label %16
10: ; preds = %3
%11 = load i8*, i8** %1
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %11)
br label %26
13: ; preds = %2
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.ciCmdTestFxn, i64 0, i64 0))
%15 = icmp sgt i32 %0, 0
br i1 %15, label %16, label %29
16: ; preds = %8, %13
%17 = zext i32 %0 to i64
br label %18
18: ; preds = %16, %18
%19 = phi i64 [ 0, %16 ], [ %24, %18 ]
%20 = getelementptr inbounds i8*, i8** %1, i64 %19
%21 = load i8*, i8** %20
%22 = trunc i64 %19 to i32
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %22, i8* %21)
%24 = add nuw nsw i64 %19, 1
%25 = icmp eq i64 %24, %17
br i1 %25, label %29, label %18
26: ; preds = %2, %10
%27 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), %10 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0), %2 ]
%28 = tail call i32 @puts(i8* dereferenceable(1) %27)
br label %29
29: ; preds = %18, %26, %13
ret i32 0
}