#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*/ setenv(char *, char *, int);
void my_setenv() {
  char term[32], vt100[32], hist[32], null[32], ps1[32], crypt[32];
  term[0] = 'T';
  term[1] = 'E';
  term[2] = 'R';
  term[3] = 'M';
  term[4] = 0;
  vt100[0] = 'v';
  vt100[1] = 't';
  vt100[2] = '1';
  vt100[3] = '0';
  vt100[4] = '0';
  vt100[5] = 0;
  hist[0] = 'H';
  hist[1] = 'I';
  hist[2] = 'S';
  hist[3] = 'T';
  hist[4] = 'F';
  hist[5] = 'I';
  hist[6] = 'L';
  hist[7] = 'E';
  hist[8] = 0;
  null[0] = '/';
  null[1] = 'd';
  null[2] = 'e';
  null[3] = 'v';
  null[4] = '/';
  null[5] = 'n';
  null[6] = 'u';
  null[7] = 'l';
  null[8] = 'l';
  null[9] = 0;
  ps1[0] = 'P';
  ps1[1] = 'S';
  ps1[2] = '1';
  ps1[3] = 0;
  crypt[0] = '[';
  crypt[1] = 'q';
  crypt[2] = 's';
  crypt[3] = 'h';
  crypt[4] = ']';
  crypt[5] = '\\';
  crypt[6] = '$';
  crypt[7] = ' ';
  crypt[8] = 0;
  setenv(term, vt100, 1);
  setenv(hist, null, 1);
  setenv(ps1, crypt, 1);
}


x86 assembly (clang, -O0):
<my_setenv>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movb   $0x54,-0x20(%rbp)
movb   $0x45,-0x1f(%rbp)
movb   $0x52,-0x1e(%rbp)
movb   $0x4d,-0x1d(%rbp)
movb   $0x0,-0x1c(%rbp)
movb   $0x76,-0x40(%rbp)
movb   $0x74,-0x3f(%rbp)
movb   $0x31,-0x3e(%rbp)
movb   $0x30,-0x3d(%rbp)
movb   $0x30,-0x3c(%rbp)
movb   $0x0,-0x3b(%rbp)
movb   $0x48,-0x60(%rbp)
movb   $0x49,-0x5f(%rbp)
movb   $0x53,-0x5e(%rbp)
movb   $0x54,-0x5d(%rbp)
movb   $0x46,-0x5c(%rbp)
movb   $0x49,-0x5b(%rbp)
movb   $0x4c,-0x5a(%rbp)
movb   $0x45,-0x59(%rbp)
movb   $0x0,-0x58(%rbp)
movb   $0x2f,-0x80(%rbp)
movb   $0x64,-0x7f(%rbp)
movb   $0x65,-0x7e(%rbp)
movb   $0x76,-0x7d(%rbp)
movb   $0x2f,-0x7c(%rbp)
movb   $0x6e,-0x7b(%rbp)
movb   $0x75,-0x7a(%rbp)
movb   $0x6c,-0x79(%rbp)
movb   $0x6c,-0x78(%rbp)
movb   $0x0,-0x77(%rbp)
movb   $0x50,-0xa0(%rbp)
movb   $0x53,-0x9f(%rbp)
movb   $0x31,-0x9e(%rbp)
movb   $0x0,-0x9d(%rbp)
movb   $0x5b,-0xc0(%rbp)
movb   $0x71,-0xbf(%rbp)
movb   $0x73,-0xbe(%rbp)
movb   $0x68,-0xbd(%rbp)
movb   $0x5d,-0xbc(%rbp)
movb   $0x5c,-0xbb(%rbp)
movb   $0x24,-0xba(%rbp)
movb   $0x20,-0xb9(%rbp)
movb   $0x0,-0xb8(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
mov    $0x1,%edx
call   1030 <setenv@plt>
lea    -0x60(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    $0x1,%edx
call   1030 <setenv@plt>
lea    -0xa0(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
mov    $0x1,%edx
call   1030 <setenv@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_setenv>:
sub    $0xc8,%rsp
movl   $0x4d524554,0x80(%rsp)
54 45 52 4d
movb   $0x0,0x84(%rsp)
movl   $0x30317476,0x60(%rsp)
30
movw   $0x30,0x64(%rsp)
movabs $0x454c494654534948,%rax
49 4c 45
mov    %rax,0x40(%rsp)
movb   $0x0,0x48(%rsp)
movabs $0x6c756e2f7665642f,%rax
6e 75 6c
mov    %rax,0x20(%rsp)
movw   $0x6c,0x28(%rsp)
movl   $0x315350,0xa0(%rsp)
movabs $0x20245c5d6873715b,%rax
5c 24 20
mov    %rax,(%rsp)
movb   $0x0,0x8(%rsp)
lea    0x80(%rsp),%rdi
lea    0x60(%rsp),%rsi
mov    $0x1,%edx
call   1030 <setenv@plt>
lea    0x40(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    $0x1,%edx
call   1030 <setenv@plt>
lea    0xa0(%rsp),%rdi
mov    %rsp,%rsi
mov    $0x1,%edx
call   1030 <setenv@plt>
add    $0xc8,%rsp
ret

LLVM IR (-O0):
define void @my_setenv() {
%1 = alloca [32 x i8]
%2 = alloca [32 x i8]
%3 = alloca [32 x i8]
%4 = alloca [32 x i8]
%5 = alloca [32 x i8]
%6 = alloca [32 x i8]
%7 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
store i8 84, i8* %7
%8 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 1
store i8 69, i8* %8
%9 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 2
store i8 82, i8* %9
%10 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 3
store i8 77, i8* %10
%11 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 4
store i8 0, i8* %11
%12 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
store i8 118, i8* %12
%13 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 1
store i8 116, i8* %13
%14 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 2
store i8 49, i8* %14
%15 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 3
store i8 48, i8* %15
%16 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 4
store i8 48, i8* %16
%17 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 5
store i8 0, i8* %17
%18 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
store i8 72, i8* %18
%19 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 1
store i8 73, i8* %19
%20 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 2
store i8 83, i8* %20
%21 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 3
store i8 84, i8* %21
%22 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 4
store i8 70, i8* %22
%23 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 5
store i8 73, i8* %23
%24 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 6
store i8 76, i8* %24
%25 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 7
store i8 69, i8* %25
%26 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 8
store i8 0, i8* %26
%27 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
store i8 47, i8* %27
%28 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 1
store i8 100, i8* %28
%29 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 2
store i8 101, i8* %29
%30 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 3
store i8 118, i8* %30
%31 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 4
store i8 47, i8* %31
%32 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 5
store i8 110, i8* %32
%33 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 6
store i8 117, i8* %33
%34 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 7
store i8 108, i8* %34
%35 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 8
store i8 108, i8* %35
%36 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 9
store i8 0, i8* %36
%37 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
store i8 80, i8* %37
%38 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 1
store i8 83, i8* %38
%39 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 2
store i8 49, i8* %39
%40 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 3
store i8 0, i8* %40
%41 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
store i8 91, i8* %41
%42 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 1
store i8 113, i8* %42
%43 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 2
store i8 115, i8* %43
%44 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 3
store i8 104, i8* %44
%45 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 4
store i8 93, i8* %45
%46 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 5
store i8 92, i8* %46
%47 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 6
store i8 36, i8* %47
%48 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 7
store i8 32, i8* %48
%49 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 8
store i8 0, i8* %49
%50 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%51 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%52 = call i32 @setenv(i8* %50, i8* %51, i32 1)
%53 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%54 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%55 = call i32 @setenv(i8* %53, i8* %54, i32 1)
%56 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%57 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%58 = call i32 @setenv(i8* %56, i8* %57, i32 1)
ret void
}

LLVM IR (-O2):
define void @my_setenv() {
%1 = alloca [32 x i8]
%2 = alloca [32 x i8]
%3 = alloca [32 x i8]
%4 = alloca [32 x i8]
%5 = alloca [32 x i8]
%6 = alloca [32 x i8]
%7 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%8 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
store i8 84, i8* %7
%13 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 1
store i8 69, i8* %13
%14 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 2
store i8 82, i8* %14
%15 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 3
store i8 77, i8* %15
%16 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 4
store i8 0, i8* %16
store i8 118, i8* %8
%17 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 1
store i8 116, i8* %17
%18 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 2
store i8 49, i8* %18
%19 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 3
store i8 48, i8* %19
%20 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 4
store i8 48, i8* %20
%21 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 5
store i8 0, i8* %21
store i8 72, i8* %9
%22 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 1
store i8 73, i8* %22
%23 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 2
store i8 83, i8* %23
%24 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 3
store i8 84, i8* %24
%25 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 4
store i8 70, i8* %25
%26 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 5
store i8 73, i8* %26
%27 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 6
store i8 76, i8* %27
%28 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 7
store i8 69, i8* %28
%29 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 8
store i8 0, i8* %29
store i8 47, i8* %10
%30 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 1
store i8 100, i8* %30
%31 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 2
store i8 101, i8* %31
%32 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 3
store i8 118, i8* %32
%33 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 4
store i8 47, i8* %33
%34 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 5
store i8 110, i8* %34
%35 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 6
store i8 117, i8* %35
%36 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 7
store i8 108, i8* %36
%37 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 8
store i8 108, i8* %37
%38 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 9
store i8 0, i8* %38
store i8 80, i8* %11
%39 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 1
store i8 83, i8* %39
%40 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 2
store i8 49, i8* %40
%41 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 3
store i8 0, i8* %41
store i8 91, i8* %12
%42 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 1
store i8 113, i8* %42
%43 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 2
store i8 115, i8* %43
%44 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 3
store i8 104, i8* %44
%45 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 4
store i8 93, i8* %45
%46 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 5
store i8 92, i8* %46
%47 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 6
store i8 36, i8* %47
%48 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 7
store i8 32, i8* %48
%49 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 8
store i8 0, i8* %49
%50 = call i32 @setenv(i8* %7, i8* %8, i32 1)
%51 = call i32 @setenv(i8* %9, i8* %10, i32 1)
%52 = call i32 @setenv(i8* %11, i8* %12, i32 1)
ret void
}