#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[], char *env[]) {
  printf("êîëè÷åñòâî àðãóìåíòîâ êîìàíäíîé ñòðîêè:%d\n", argc);
  int i = 0;
  printf("ìàññèâ óêàçàòåëåé ñîáñòâåííî íà àðãóìåíòû:");
  for (i; i < argc; i++)
    printf("%s\n", argv[i]);
  i = 0;
  printf("ìàññèâ óêàçàòåëåé íà öåïî÷êè ñèìâîëîâ èç îêðóæàþùåé ñðåäû:");
  while (env[i] != NULL) {
    printf("%s\n", env[i]);
    i++;
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%esi
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1194 <main+0x74>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xf1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1160 <main+0x40>
movl   $0x0,-0x1c(%rbp)
lea    0xf00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     11e4 <main+0xc4>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a9 <main+0x89>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xeba(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %ebp,%ebp
jle    1182 <main+0x52>
mov    %ebp,%r15d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
mov    (%r14,%rbp,8),%rdi
call   1030 <puts@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1170 <main+0x40>
lea    0xf15(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rdi
test   %rdi,%rdi
je     11b1 <main+0x81>
add    $0x8,%rbx
nopl   0x0(%rax)
call   1030 <puts@plt>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    11a0 <main+0x70>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [78 x i8] c"\C3\AA\C3\AE\C3\AB\C3\A8\C3\B7\C3\A5\C3\B1\C3\B2\C3\A2\C3\AE \C3\A0\C3\B0\C3\A3\C3\B3\C3\AC\C3\A5\C3\AD\C3\B2\C3\AE\C3\A2 \C3\AA\C3\AE\C3\AC\C3\A0\C3\AD\C3\A4\C3\AD\C3\AE\C3\A9 \C3\B1\C3\B2\C3\B0\C3\AE\C3\AA\C3\A8:%d\0A\00"
@.str.1 = [80 x i8] c"\C3\AC\C3\A0\C3\B1\C3\B1\C3\A8\C3\A2 \C3\B3\C3\AA\C3\A0\C3\A7\C3\A0\C3\B2\C3\A5\C3\AB\C3\A5\C3\A9 \C3\B1\C3\AE\C3\A1\C3\B1\C3\B2\C3\A2\C3\A5\C3\AD\C3\AD\C3\AE \C3\AD\C3\A0 \C3\A0\C3\B0\C3\A3\C3\B3\C3\AC\C3\A5\C3\AD\C3\B2\C3\BB:\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [109 x i8] c"\C3\AC\C3\A0\C3\B1\C3\B1\C3\A8\C3\A2 \C3\B3\C3\AA\C3\A0\C3\A7\C3\A0\C3\B2\C3\A5\C3\AB\C3\A5\C3\A9 \C3\AD\C3\A0 \C3\B6\C3\A5\C3\AF\C3\AE\C3\B7\C3\AA\C3\A8 \C3\B1\C3\A8\C3\AC\C3\A2\C3\AE\C3\AB\C3\AE\C3\A2 \C3\A8\C3\A7 \C3\AE\C3\AA\C3\B0\C3\B3\C3\A6\C3\A0\C3\BE\C3\B9\C3\A5\C3\A9 \C3\B1\C3\B0\C3\A5\C3\A4\C3\BB:\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%9 = load i32, i32* %5
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i32 %9)
store i32 0, i32* %8
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* %8
br label %13
13: ; preds = %24, %3
%14 = load i32, i32* %8
%15 = load i32, i32* %5
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %27
17: ; preds = %13
%18 = load i8**, i8*** %6
%19 = load i32, i32* %8
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8*, i8** %18, i64 %20
%22 = load i8*, i8** %21
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %22)
br label %24
24: ; preds = %17
%25 = load i32, i32* %8
%26 = add nsw i32 %25, 1
store i32 %26, i32* %8
br label %13
27: ; preds = %13
store i32 0, i32* %8
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.3, i64 0, i64 0))
br label %29
29: ; preds = %36, %27
%30 = load i8**, i8*** %7
%31 = load i32, i32* %8
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8*, i8** %30, i64 %32
%34 = load i8*, i8** %33
%35 = icmp ne i8* %34, null
br i1 %35, label %36, label %45
36: ; preds = %29
%37 = load i8**, i8*** %7
%38 = load i32, i32* %8
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8*, i8** %37, i64 %39
%41 = load i8*, i8** %40
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %41)
%43 = load i32, i32* %8
%44 = add nsw i32 %43, 1
store i32 %44, i32* %8
br label %29
45: ; preds = %29
%46 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [78 x i8] c"\C3\AA\C3\AE\C3\AB\C3\A8\C3\B7\C3\A5\C3\B1\C3\B2\C3\A2\C3\AE \C3\A0\C3\B0\C3\A3\C3\B3\C3\AC\C3\A5\C3\AD\C3\B2\C3\AE\C3\A2 \C3\AA\C3\AE\C3\AC\C3\A0\C3\AD\C3\A4\C3\AD\C3\AE\C3\A9 \C3\B1\C3\B2\C3\B0\C3\AE\C3\AA\C3\A8:%d\0A\00"
@.str.1 = [80 x i8] c"\C3\AC\C3\A0\C3\B1\C3\B1\C3\A8\C3\A2 \C3\B3\C3\AA\C3\A0\C3\A7\C3\A0\C3\B2\C3\A5\C3\AB\C3\A5\C3\A9 \C3\B1\C3\AE\C3\A1\C3\B1\C3\B2\C3\A2\C3\A5\C3\AD\C3\AD\C3\AE \C3\AD\C3\A0 \C3\A0\C3\B0\C3\A3\C3\B3\C3\AC\C3\A5\C3\AD\C3\B2\C3\BB:\00"
@.str.3 = [109 x i8] c"\C3\AC\C3\A0\C3\B1\C3\B1\C3\A8\C3\A2 \C3\B3\C3\AA\C3\A0\C3\A7\C3\A0\C3\B2\C3\A5\C3\AB\C3\A5\C3\A9 \C3\AD\C3\A0 \C3\B6\C3\A5\C3\AF\C3\AE\C3\B7\C3\AA\C3\A8 \C3\B1\C3\A8\C3\AC\C3\A2\C3\AE\C3\AB\C3\AE\C3\A2 \C3\A8\C3\A7 \C3\AE\C3\AA\C3\B0\C3\B3\C3\A6\C3\A0\C3\BE\C3\B9\C3\A5\C3\A9 \C3\B1\C3\B0\C3\A5\C3\A4\C3\BB:\00"
define i32 @main(i32 %0, i8** nocapture %1, i8** nocapture %2) {
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i32 %0)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp sgt i32 %0, 0
br i1 %6, label %7, label %16
7: ; preds = %3
%8 = zext i32 %0 to i64
br label %9
9: ; preds = %7, %9
%10 = phi i64 [ 0, %7 ], [ %14, %9 ]
%11 = getelementptr inbounds i8*, i8** %1, i64 %10
%12 = load i8*, i8** %11
%13 = tail call i32 @puts(i8* dereferenceable(1) %12)
%14 = add nuw nsw i64 %10, 1
%15 = icmp eq i64 %14, %8
br i1 %15, label %16, label %9
16: ; preds = %9, %3
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @.str.3, i64 0, i64 0))
%18 = load i8*, i8** %2
%19 = icmp eq i8* %18, null
br i1 %19, label %28, label %20
20: ; preds = %16, %20
%21 = phi i64 [ %24, %20 ], [ 0, %16 ]
%22 = phi i8* [ %26, %20 ], [ %18, %16 ]
%23 = tail call i32 @puts(i8* %22)
%24 = add nuw i64 %21, 1
%25 = getelementptr inbounds i8*, i8** %2, i64 %24
%26 = load i8*, i8** %25
%27 = icmp eq i8* %26, null
br i1 %27, label %28, label %20
28: ; preds = %20, %16
%29 = tail call i32 @exit(i32 0)
unreachable
}