#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 */
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  int /*<<< orphan*/ *info;
  int /*<<< orphan*/ *id;
  int /*<<< orphan*/ *v;
  int /*<<< orphan*/ *s;
  int /*<<< orphan*/ *g;
  int /*<<< orphan*/ *N;
};
typedef TYPE_1__ SRP_user_pwd;

/* Variables and functions */
TYPE_1__ *malloc(int);
SRP_user_pwd *SRP_user_pwd_new() {
  SRP_user_pwd *ret = malloc(sizeof(SRP_user_pwd));
  if (ret == NULL)
    return NULL;
  ret->N = NULL;
  ret->g = NULL;
  ret->s = NULL;
  ret->v = NULL;
  ret->id = NULL;
  ret->info = NULL;
  return ret;
}


x86 assembly (clang, -O0):
<SRP_user_pwd_new>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x30,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    113e <SRP_user_pwd_new+0x2e>
movq   $0x0,-0x8(%rbp)
jmp    118d <SRP_user_pwd_new+0x7d>
mov    -0x10(%rbp),%rax
movq   $0x0,0x28(%rax)
mov    -0x10(%rbp),%rax
movq   $0x0,0x20(%rax)
mov    -0x10(%rbp),%rax
movq   $0x0,0x18(%rax)
mov    -0x10(%rbp),%rax
movq   $0x0,0x10(%rax)
mov    -0x10(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    -0x10(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SRP_user_pwd_new>:
push   %rax
mov    $0x30,%edi
call   1030 <malloc@plt>
test   %rax,%rax
je     112e <SRP_user_pwd_new+0x1e>
xorps  %xmm0,%xmm0
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
pop    %rcx
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { i32*, i32*, i32*, i32*, i32*, i32* }
define %struct.TYPE_4__* @SRP_user_pwd_new() {
%1 = alloca %struct.TYPE_4__*
%2 = alloca %struct.TYPE_4__*
%3 = call %struct.TYPE_4__* @malloc(i32 48)
store %struct.TYPE_4__* %3, %struct.TYPE_4__** %2
%4 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%5 = icmp eq %struct.TYPE_4__* %4, null
br i1 %5, label %6, label %7
6: ; preds = %0
store %struct.TYPE_4__* null, %struct.TYPE_4__** %1
br label %21
7: ; preds = %0
%8 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%9 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %8, i32 0, i32 5
store i32* null, i32** %9
%10 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%11 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %10, i32 0, i32 4
store i32* null, i32** %11
%12 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%13 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %12, i32 0, i32 3
store i32* null, i32** %13
%14 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%15 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %14, i32 0, i32 2
store i32* null, i32** %15
%16 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%17 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %16, i32 0, i32 1
store i32* null, i32** %17
%18 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
%19 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %18, i32 0, i32 0
store i32* null, i32** %19
%20 = load %struct.TYPE_4__*, %struct.TYPE_4__** %2
store %struct.TYPE_4__* %20, %struct.TYPE_4__** %1
br label %21
21: ; preds = %7, %6
%22 = load %struct.TYPE_4__*, %struct.TYPE_4__** %1
ret %struct.TYPE_4__* %22
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { i32*, i32*, i32*, i32*, i32*, i32* }
define noalias %struct.TYPE_4__* @SRP_user_pwd_new() {
%1 = tail call %struct.TYPE_4__* @malloc(i32 48)
%2 = icmp eq %struct.TYPE_4__* %1, null
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = bitcast %struct.TYPE_4__* %1 to i8*
br label %5
5: ; preds = %0, %3
ret %struct.TYPE_4__* %1
}