#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*/ execl(char *, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[], char *env[]) {
  printf("êîëè÷åñòâî àðãóìåíòîâ êîìàíäíîé ñòðîêè:%d\n", argc);
  execl("/home/sandron/INNA/Sandron/lab2.c",
        "/home/sandron/INNA/Sandron/lab2.c", NULL);
  printf("Îøèáî÷êà âûøëà!");
  exit(-1);
}


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    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeec(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
mov    %rsi,%rdi
call   1050 <execl@plt>
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    %edi,%esi
lea    0xec6(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    %rdi,%rsi
xor    %edx,%edx
call   1050 <execl@plt>
lea    0xf17(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <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 = [34 x i8] c"/home/sandron/INNA/Sandron/lab2.c\00"
@.str.2 = [29 x i8] c"\C3\8E\C3\B8\C3\A8\C3\A1\C3\AE\C3\B7\C3\AA\C3\A0 \C3\A2\C3\BB\C3\B8\C3\AB\C3\A0!\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%8 = load i32, i32* %5
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = call i32 @execl(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i32* null)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @exit(i32 -1)
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 = [34 x i8] c"/home/sandron/INNA/Sandron/lab2.c\00"
@.str.2 = [29 x i8] c"\C3\8E\C3\B8\C3\A8\C3\A1\C3\AE\C3\B7\C3\AA\C3\A0 \C3\A2\C3\BB\C3\B8\C3\AB\C3\A0!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %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 @execl(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i32* null)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @exit(i32 -1)
unreachable
}