void ncui_input_kbd_cb(struct ncui *ncui, const char *cmd) {
  if (strcmp(cmd, ":q") == 0 || strcmp(cmd, ":q!") == 0) {
    Warning("NOT_TESTED -- %s:%s:%u\n",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/jma127/bitc-rpc/refs/heads/master/apps/"
            "bitc-cli/ncui.c",
            __FUNCTION__, 1788);
    bitc_req_stop();
  } else if (strncmp(cmd, ":p ", 3) == 0) {
    Warning("NOT_TESTED -- %s:%s:%u\n",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/jma127/bitc-rpc/refs/heads/master/apps/"
            "bitc-cli/ncui.c",
            __FUNCTION__, 1791);
    bitcui_set_status("hash: %s", cmd + 3);
  } else if (strcmp(cmd, "testform") == 0) {
    ncui_tx_form_create(ncui);
  }
}


x86 assembly (clang, -O0):
<ncui_input_kbd_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe85(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     11a2 <ncui_input_kbd_cb+0x42>
mov    -0x10(%rbp),%rdi
lea    0xe6f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11cf <ncui_input_kbd_cb+0x6f>
lea    0xe5e(%rip),%rdi
lea    0xe6f(%rip),%rsi
lea    0xef9(%rip),%rdx
mov    $0x6fc,%ecx
mov    $0x0,%al
call   1050 <Warning@plt>
mov    $0x0,%al
call   1070 <bitc_req_stop@plt>
jmp    1257 <ncui_input_kbd_cb+0xf7>
mov    -0x10(%rbp),%rdi
lea    0xee8(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1229 <ncui_input_kbd_cb+0xc9>
lea    0xe13(%rip),%rdi
lea    0xe24(%rip),%rsi
lea    0xeae(%rip),%rdx
mov    $0x6ff,%ecx
mov    $0x0,%al
call   1050 <Warning@plt>
mov    -0x10(%rbp),%rsi
add    $0x3,%rsi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1060 <bitcui_set_status@plt>
jmp    1252 <ncui_input_kbd_cb+0xf2>
mov    -0x10(%rbp),%rdi
lea    0xe9b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    124d <ncui_input_kbd_cb+0xed>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1080 <ncui_tx_form_create@plt>
jmp    1252 <ncui_input_kbd_cb+0xf2>
jmp    1257 <ncui_input_kbd_cb+0xf7>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ncui_input_kbd_cb>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xe8f(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     11c3 <ncui_input_kbd_cb+0x63>
lea    0xe7f(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     11c3 <ncui_input_kbd_cb+0x63>
lea    0xf2b(%rip),%rsi
mov    $0x3,%edx
mov    %rbx,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
je     11f2 <ncui_input_kbd_cb+0x92>
lea    0xf20(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     122f <ncui_input_kbd_cb+0xcf>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe3d(%rip),%rdi
lea    0xe4e(%rip),%rsi
lea    0xed8(%rip),%rdx
mov    $0x6fc,%ecx
xor    %eax,%eax
call   1050 <Warning@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <bitc_req_stop@plt>
lea    0xe0e(%rip),%rdi
lea    0xe1f(%rip),%rsi
lea    0xea9(%rip),%rdx
mov    $0x6ff,%ecx
xor    %eax,%eax
call   1050 <Warning@plt>
add    $0x3,%rbx
lea    0xea8(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <bitcui_set_status@plt>
mov    %r14,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1080 <ncui_tx_form_create@plt>

LLVM IR (-O0):
%struct.ncui = type opaque
@.str = [3 x i8] c":q\00"
@.str.1 = [4 x i8] c":q!\00"
@.str.2 = [24 x i8] c"NOT_TESTED -- %s:%s:%u\0A\00"
@.str.3 = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jma127/bitc-rpc/refs/heads/master/apps/bitc-cli/ncui.c\00"
@__FUNCTION__.ncui_input_kbd_cb = [18 x i8] c"ncui_input_kbd_cb\00"
@.str.4 = [4 x i8] c":p \00"
@.str.5 = [9 x i8] c"hash: %s\00"
@.str.6 = [9 x i8] c"testform\00"
define void @ncui_input_kbd_cb(%struct.ncui* %0, i8* %1) {
%3 = alloca %struct.ncui*
%4 = alloca i8*
store %struct.ncui* %0, %struct.ncui** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i32 @strcmp(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i8*, i8** %4
%10 = call i32 @strcmp(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8, %2
%13 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @Warning to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.ncui_input_kbd_cb, i64 0, i64 0), i32 1788)
%14 = call i32 (...) @bitc_req_stop()
br label %33
15: ; preds = %8
%16 = load i8*, i8** %4
%17 = call i32 @strncmp(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64 3)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @Warning to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.ncui_input_kbd_cb, i64 0, i64 0), i32 1791)
%21 = load i8*, i8** %4
%22 = getelementptr inbounds i8, i8* %21, i64 3
%23 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @bitcui_set_status to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %22)
br label %32
24: ; preds = %15
%25 = load i8*, i8** %4
%26 = call i32 @strcmp(i8* %25, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load %struct.ncui*, %struct.ncui** %3
%30 = call i32 (%struct.ncui*, ...) bitcast (i32 (...)* @ncui_tx_form_create to i32 (%struct.ncui*, ...)*)(%struct.ncui* %29)
br label %31
31: ; preds = %28, %24
br label %32
32: ; preds = %31, %19
br label %33
33: ; preds = %32, %12
ret void
}

LLVM IR (-O2):
%struct.ncui = type opaque
@.str = [3 x i8] c":q\00"
@.str.1 = [4 x i8] c":q!\00"
@.str.2 = [24 x i8] c"NOT_TESTED -- %s:%s:%u\0A\00"
@.str.3 = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jma127/bitc-rpc/refs/heads/master/apps/bitc-cli/ncui.c\00"
@__FUNCTION__.ncui_input_kbd_cb = [18 x i8] c"ncui_input_kbd_cb\00"
@.str.4 = [4 x i8] c":p \00"
@.str.5 = [9 x i8] c"hash: %s\00"
@.str.6 = [9 x i8] c"testform\00"
define void @ncui_input_kbd_cb(%struct.ncui* %0, i8* %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %5, %2
%9 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @Warning to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.ncui_input_kbd_cb, i64 0, i64 0), i32 1788)
%10 = tail call i32 (...) @bitc_req_stop()
br label %23
11: ; preds = %5
%12 = tail call i32 @strncmp(i8* dereferenceable(1) %1, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64 3)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @Warning to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.ncui_input_kbd_cb, i64 0, i64 0), i32 1791)
%16 = getelementptr inbounds i8, i8* %1, i64 3
%17 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @bitcui_set_status to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %16)
br label %23
18: ; preds = %11
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 (%struct.ncui*, ...) bitcast (i32 (...)* @ncui_tx_form_create to i32 (%struct.ncui*, ...)*)(%struct.ncui* %0)
br label %23
23: ; preds = %14, %21, %18, %8
ret void
}