#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*/ connect_wireless(char *, char *, char *);
int main(int argc, char *argv[]) {
  if (argc > 1)
    connect_wireless("CARR_UDG", "192.168.1.55", "192.168.1.1");
  else
    connect_wireless("CARR_DLINK_DI624", "192.168.0.55", "192.168.0.1");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    114f <main+0x3f>
lea    0xec9(%rip),%rdi
lea    0xecb(%rip),%rsi
lea    0xed1(%rip),%rdx
call   1030 <connect_wireless@plt>
jmp    1169 <main+0x59>
lea    0xecc(%rip),%rdi
lea    0xed6(%rip),%rsi
lea    0xedc(%rip),%rdx
call   1030 <connect_wireless@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x2,%edi
jl     112d <main+0x1d>
lea    0xee3(%rip),%rdi
lea    0xee5(%rip),%rsi
lea    0xeeb(%rip),%rdx
jmp    1142 <main+0x32>
lea    0xeee(%rip),%rdi
lea    0xef8(%rip),%rsi
lea    0xefe(%rip),%rdx
call   1030 <connect_wireless@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"CARR_UDG\00"
@.str.1 = [13 x i8] c"192.168.1.55\00"
@.str.2 = [12 x i8] c"192.168.1.1\00"
@.str.3 = [17 x i8] c"CARR_DLINK_DI624\00"
@.str.4 = [13 x i8] c"192.168.0.55\00"
@.str.5 = [12 x i8] c"192.168.0.1\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @connect_wireless(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
br label %12
10: ; preds = %2
%11 = call i32 @connect_wireless(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %12
12: ; preds = %10, %8
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
@.str = [9 x i8] c"CARR_UDG\00"
@.str.1 = [13 x i8] c"192.168.1.55\00"
@.str.2 = [12 x i8] c"192.168.1.1\00"
@.str.3 = [17 x i8] c"CARR_DLINK_DI624\00"
@.str.4 = [13 x i8] c"192.168.0.55\00"
@.str.5 = [12 x i8] c"192.168.0.1\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @connect_wireless(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
br label %8
6: ; preds = %2
%7 = tail call i32 @connect_wireless(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %8
8: ; preds = %6, %4
ret i32 0
}