input stringlengths 18 318k | output stringlengths 26 172k | repo_name stringclasses 23
values | decompiler stringclasses 5
values | ged int64 0 1.77k |
|---|---|---|---|---|
void estimate_file_age_success_rate() { return; } | static float estimate_file_age_success_rate(float num_days) {
if (num_days < 0.1f) {
return 0.01f;
} else if (num_days < 1.0f) {
return 0.3f;
} else if (num_days > 100.0f) {
return 0.3f;
} else {
return 0.39f;
}
} | findutils | angr_dream | 20 |
long send_status_errmsg(unsigned int a1, unsigned int a2, char *a3) {
char *v3;
long v4;
char *v5;
long v6;
unsigned int v9;
unsigned int v10;
long v11;
sshlog("sftp-server.c", "send_status_errmsg", 554LL, 0LL, 7LL, 0LL,
"request %u: sent status %u", a1, a2);
if (log_level > 4 || a2 >= 2) {
... | static void send_status_errmsg(u_int32_t id, u_int32_t status,
const char *errmsg) {
struct sshbuf *msg;
int r;
sshlog("sftp-server.c", __func__, 554, 0, SYSLOG_LEVEL_DEBUG3, ((void *)0),
"request %u: sent status %u", id, status);
if (log_level > SYSLOG_LEVEL_VERBOSE || ... | openssh-portable | ida | 5 |
long long crypto_sign_ed25519_ref_sc25519_window3(unsigned long a0,
unsigned int *a1) {
char v0[85];
char v1;
unsigned int v2;
unsigned int v4;
unsigned int v5;
unsigned long long v6;
unsigned int v7;
unsigned int v8;
unsigned int v9;
unsigned int v1... | void crypto_sign_ed25519_ref_sc25519_window3(
signed char r[85], const crypto_sign_ed25519_ref_sc25519 *s) {
char carry;
int i;
for (i = 0; i < 10; i++) {
r[8 * i + 0] = s->v[3 * i + 0] & 7;
r[8 * i + 1] = (s->v[3 * i + 0] >> 3) & 7;
r[8 * i + 2] = (s->v[3 * i + 0] >> 6) & 7;
r[8 * i + 2] ^= (... | openssh-portable | angr_sailr | 0 |
void send_mesg_to_tty(unsigned long a0) {
char v0;
char v1;
unsigned int v2;
void *v3;
void *v4;
char v5;
char v6;
char v7;
char v8;
char v9;
char v10;
char v11;
char v12;
unsigned long long v13;
unsigned int v14;
unsigned long long v15;
unsigned long long v16;
unsigned long long v17... | static void send_mesg_to_tty(int tty_fd) {
struct termios oldt, newt;
FILE *mesg_file, *tty_file;
_Bool is_tty;
tty_file = fdopen(tty_fd, "w");
if (((void *)0) == tty_file) {
return;
}
is_tty = (tcgetattr(tty_fd, &oldt) == 0);
if (is_tty) {
newt = oldt;
newt.c_oflag |= 0000001;
tcset... | shadow | angr_sailr | 9 |
long long hsr_print_help(unsigned long a0, unsigned long a1, unsigned long a2,
void *a3) {
unsigned long v0;
unsigned int v1;
unsigned long v2;
v2 = a0;
v1 = a1;
v0 = a2;
return print_usage(a3);
} | static void hsr_print_help(struct link_util *lu, int argc, char **argv,
FILE *f) {
print_usage(f);
} | iproute2-6.0.0 | angr_phoenix | 0 |
void load_lsyntax() {
unsigned long long v1;
addcstr("()<>;&|", 0x1);
addcstr("()<>;&| \t\n", 0x2);
addcchar(0x60, 0x4);
addcstr("\"`\'", 0x8);
addcchar(0x1, 0x10);
addcchar(0x7f, 0x10);
addcstr("$<>", 0x20);
addcstr("\\`$\"\n", 0x40);
addcstr("\\`$", 0x80);
addcstr("*?[]^", 0x100);
addcstr("@*... | static void load_lsyntax() {
addcstr("()<>;&|", 0x0001);
addcstr("()<>;&| \t\n", 0x0002);
addcchar('`', 0x0004);
addcstr("\"`'", 0x0008);
addcchar('\001', 0x0010);
addcchar('\177', 0x0010);
addcstr("$<>", 0x0020);
addcstr("\\`$\"\n", 0x0040);
addcstr("\\`$", 0x0080);
addcstr("*?[]^", 0x0100)... | bash | angr_phoenix | 0 |
long long bond_parse_opt(unsigned long a0, unsigned long a1, unsigned long a2,
unsigned long long a3) {
unsigned long long *v0;
unsigned int v1;
unsigned long v2;
char v3;
char v4;
char v5;
char v6;
char v7;
char v8;
char v9;
char v10;
char v11;
char v12;
char v13;
... | static int bond_parse_opt(struct link_util *lu, int argc, char **argv,
struct nlmsghdr *n) {
__u8 mode, use_carrier, primary_reselect, fail_over_mac;
__u8 xmit_hash_policy, num_peer_notif, all_slaves_active;
__u8 lacp_active, lacp_rate, ad_select, tlb_dynamic_lb;
__u16 ad_user_port_key... | iproute2-6.0.0 | angr_phoenix | 136 |
long long terminal_deletechars(struct_0 *a0, unsigned long a1) {
unsigned int v0;
int tmp_9;
char *v2;
v0 = a1;
if (v0 > 0) {
v2 = a0->field_98 & 2;
if ((a0->field_98 & 2)) {
v2 = a0->field_90;
if (v0 <= a0->field_90) {
if (a0->field_b0->field_f0 && *(a0->field_b0->field_f0)) {
... | terminal_deletechars(EditLine *el, int num) {
if (num <= 0)
return;
if (!((el)->el_terminal.t_flags & 0x002)) {
return;
}
if (num > el->el_terminal.t_size.h) {
return;
}
if ((el->el_terminal.t_str[30] != ((void *)0) &&
el->el_terminal.t_str[30][0] != '\0'))
if ((num > 1) || !(el->e... | libedit | angr_phoenix | 20 |
long save_route_prep() {
if (isatty(1)) {
fprintf(stderr, "Not sending a binary stream to stdout\n");
return 0xFFFFFFFFLL;
} else if ((unsigned int)write(1, &route_dump_magic, 4uLL) == 4) {
return 0LL;
} else {
fprintf(stderr, "Can't write magic to dump file\n");
return 0xFFFFFFFFLL;
}
} | static int save_route_prep(void) {
int ret;
if (isatty(1)) {
fprintf(stderr, "Not sending a binary stream to stdout\n");
return -1;
}
ret = write(1, &route_dump_magic, sizeof(route_dump_magic));
if (ret != sizeof(route_dump_magic)) {
fprintf(stderr, "Can't write magic to dump file\n");
retur... | iproute2-6.0.0 | ida | 0 |
unsigned long add_hierarchy_to_namelist(long a1, long a2) {
long v2;
long v3;
int v4;
int fd;
int v7;
unsigned long v8;
long v9;
long v10;
unsigned long v11;
char *dest;
char *s;
char *v14;
size_t v15;
long v16;
long v17[11];
struct stat v18[2];
long v19;
int v20;
unsigned long v21... | static void add_hierarchy_to_namelist(struct tar_stat_info *st,
struct name *name) {
const char *buffer;
name->directory = scan_directory(st);
buffer = directory_contents(name->directory);
if (buffer) {
struct name *child_head = ((void *)0), *child_tail = ((void *)0);
... | tar | ida | 13 |
long long function_handler(unsigned int a0, unsigned long a1, char *a2,
unsigned int a3) {
unsigned long long v1[2];
v1 = current_builtin(a0, a1, a1, a3);
if (!v1) {
line_error(a1, "syntax error: no current builtin for $FUNCTION directive",
a2, a3);
exit(0x1);
... | int function_handler(self, defs, arg)
char *self;
DEF_FILE *defs;
char *arg;
{
register BUILTIN_DESC *builtin;
builtin = current_builtin(self, defs);
if (builtin == 0) {
line_error(defs,
"syntax error: no current builtin for $FUNCTION directive");
exit(1);
}
if (builtin->function)
... | bash | angr_phoenix | 0 |
long *hash_search(char *a1, long a2, char a3) {
long *result;
long *v4;
int v6;
int v7;
long *i;
if (!a2 || (a3 & 2) == 0 && !*(_DWORD *)(a2 + 12))
return 0LL;
v7 = hash_string(a1);
v6 = v7 & (*(_DWORD *)(a2 + 8) - 1);
if (*(_QWORD *)a2)
v4 = *(long **)(8LL * v6 + *(_QWORD *)a2);
else
v... | BUCKET_CONTENTS *hash_search(string, table, flags) const char *string;
HASH_TABLE *table;
int flags;
{
BUCKET_CONTENTS *list;
int bucket;
unsigned int hv;
if (table == 0 ||
((flags & 0x02) == 0 && ((table) ? (table)->nentries : 0) == 0))
return (BUCKET_CONTENTS *)((void *)0);
bucket = (((hv) = has... | bash | ida | 4 |
void acexec(long param_1, undefined8 param_2, undefined8 param_3,
undefined8 param_4, undefined param_5)
{
if (*(long *)(param_1 + 0x980) == 0) {
acexec_trans(param_1, param_2, param_3, param_4, param_5);
} else {
acexec_trans(param_1, param_2, param_3, param_4, param_5);
}
return;
} | static ptrdiff_t acexec(kwset_t kwset, char const *text, idx_t size,
struct kwsmatch *kwsmatch, _Bool longest) {
((0 <= size) ? (void)0 : __builtin_unreachable());
return (({
kwset->trans ? acexec_trans(kwset, text, size, kwsmatch, longest)
: acexec_trans(kwset, text, s... | grep | ghidra | 11 |
char *fmtulong(ulong param_1, int param_2, char *param_3, long param_4,
uint param_5)
{
char cVar1;
char *pcVar2;
int *piVar3;
int local_44;
ulong local_40;
int local_2c;
char *local_28;
ulong local_20;
local_44 = param_2;
if (param_2 == 0) {
local_44 = 10;
}
if ((local_44 <... | char *fmtulong(ui, base, buf, len, flags)
unsigned long ui;
int base;
char *buf;
size_t len;
int flags;
{
char *p;
int sign;
long si;
if (base == 0)
base = 10;
if (base < 2 || base > 64) {
strncpy(buf, gettext("invalid base"), len - 1);
buf[len - 1] = '\0';
(*__errno_location()) = 22;
... | bash | ghidra | 40 |
long long mux_master_session_cleanup_cb(unsigned long long a0, unsigned long a1,
unsigned long a2) {
unsigned long v0;
unsigned long v1;
unsigned long long v2;
unsigned int v3[18];
unsigned int v4[4];
char v5;
v2 = a0;
v1 = a2;
*(&v3[0]) = channel_by_id(v2, a1,... | static void mux_master_session_cleanup_cb(struct ssh *ssh, int cid,
void *unused) {
Channel *cc, *c = channel_by_id(ssh, cid);
sshlog("mux.c", __func__, 195, 1, SYSLOG_LEVEL_DEBUG3, ((void *)0),
"entering for channel %d", cid);
if (c == ((void *)0))
sshfatal... | openssh-portable | angr_sailr | 6 |
void rl_get_next_history(unsigned long a0, unsigned long a1) {
unsigned int v0;
void *v1;
unsigned long long v3;
void *v4;
unsigned int v5;
void *v6;
v0 = a0;
if (v0 < 0) {
v3 = rl_get_previous_history(-(v0), a1);
} else if (!v0) {
v4 = 0;
} else {
rl_maybe_replace_line();
if (_rl_h... | int rl_get_next_history(int count, int key) {
HIST_ENTRY *temp;
if (count < 0)
return (rl_get_previous_history(-count, key));
if (count == 0)
return 0;
rl_maybe_replace_line();
if (_rl_history_saved_point == -1 && (rl_point || rl_end))
_rl_history_saved_point = (rl_point == rl_end) ? -1 : rl_p... | bash | angr_dream | 10 |
long long assoc_replace(unsigned long long a0, unsigned long long a1,
char *a2) {
unsigned long long v0[3];
unsigned long long v1;
void *v3;
void *v4;
v0[0] = hash_search(a1, a0, 0x2, a0);
if (!v0) {
v3 = 0;
return v3;
}
if (a1 != v0[1])
sh_xfree(a1, "assoc.c", 0x6b)... | void *assoc_replace(hash, key, value)
HASH_TABLE *hash;
char *key;
char *value;
{
BUCKET_CONTENTS *b;
void *t;
b = hash_search(key, hash, 0x02);
if (b == 0)
return (void *)0;
if (b->key != key)
sh_xfree((key), "assoc.c", 107);
t = b->data;
b->data =
value ? (char *)strcpy(sh_xmalloc((1 + s... | bash | angr_sailr | 0 |
long telinit(const char *a1, int a2, char *const *a3) {
_BYTE *v3;
int *v4;
int *v5;
char *v6;
int v9;
int fd;
int v11;
int *dest;
size_t n;
int *buf;
ssize_t v15;
struct sigaction v16;
int s[96];
_QWORD v18[3];
v18[1] = __readfsqword(0x28u);
dest = 0LL;
memset(s, 0, sizeof(s));
s[0... | static int telinit(char *progname, int argc, char **argv) {
struct init_request request;
struct sigaction sa;
int f, fd, l;
char *env = ((void *)0);
memset(&request, 0, sizeof(request));
request.magic = 0x03091969;
while ((f = getopt(argc, argv, "t:e:")) != (-1))
switch (f) {
case 't':
sl... | sysvinit | ida | 6 |
void print_ndtparams(unsigned long long a0[16], unsigned long long a1,
unsigned long long a2, unsigned long long a3,
unsigned long long a4, unsigned long long a5) {
unsigned int v0;
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned int v4;
unsigned int v5;... | static void print_ndtparams(struct rtattr *tpb[]) {
if (tpb[NDTPA_IFINDEX]) {
__u32 ifindex = rta_getattr_u32(tpb[NDTPA_IFINDEX]);
print_string(PRINT_FP, ((void *)0), " dev ", ((void *)0));
print_color_string(PRINT_ANY, COLOR_IFNAME, "dev", "%s ",
ll_index_to_name(ifindex));
... | iproute2-6.0.0 | angr_dream | 0 |
long long find_procsub_child(unsigned long a0) {
unsigned int v0;
unsigned long long v2;
if (!nfds) {
v2 = 4294967295;
} else {
v0 = 0;
while (true) {
if (v0 >= totfds) {
v2 = 4294967295;
break;
} else if (a0 != *((dev_fd_list + (v0 << 2)))) {
v0 += 1;
} el... | int find_procsub_child(pid)
pid_t pid;
{
int i;
if (nfds == 0)
return -1;
for (i = 0; i < totfds; i++)
if (dev_fd_list[i] == pid)
return i;
return -1;
} | bash | angr_phoenix | 12 |
ulong pred_writable(void)
{
int iVar1;
undefined4 extraout_var;
iVar1 = faccessat(___errno_location, _strcmp, 2, 0);
return CONCAT44(extraout_var, iVar1) & 0xffffffffffffff00 |
(ulong)(iVar1 == 0);
} | _Bool
pred_writable (const char *pathname, struct stat *stat_buf, struct predicate *pred_ptr)
{
(void)pathname;
(void)stat_buf;
(void)pred_ptr;
return 0 == faccessat(state.cwd_dir_fd, state.rel_pathname, 2, 0);
} | findutils | ghidra | 0 |
long long seed_rng(unsigned long long a0, unsigned long long a1,
unsigned long long a2, unsigned long long a3,
unsigned long long a4, unsigned long long a5) {
unsigned long v0;
char v1;
unsigned long long v2;
char v3;
unsigned long long v4;
ssh_libcrypto_init();
if (... | void seed_rng(void) {
unsigned char buf[48];
ssh_libcrypto_init();
if (!ssh_compatible_openssl(((3 << 28) | (0 << 20) | (2 << 4) | 0x0L),
OpenSSL_version_num()))
sshfatal("entropy.c", __func__, 105, 0, SYSLOG_LEVEL_FATAL, ((void *)0),
"OpenSSL version mismatch. Bui... | openssh-portable | angr_dream | 0 |
void pkcs11_provider_finalize(struct_1 *a0) {
unsigned long v0;
unsigned long v1;
void *v2;
unsigned long v3;
unsigned long long v5;
unsigned long long v6;
v1 = a0->field_88;
v0 = a0->field_0;
sshlog("ssh-pkcs11.c", "pkcs11_provider_finalize", 0x72, 0x1, 0x5, 0x0,
"provider \"%s\" refcount %... | static void pkcs11_provider_finalize(struct pkcs11_provider *p) {
CK_RV rv;
CK_ULONG i;
sshlog("ssh-pkcs11.c", __func__, 114, 1, SYSLOG_LEVEL_DEBUG1, ((void *)0),
"provider \"%s\" refcount %d valid %d", p->name, p->refcount,
p->valid);
if (!p->valid)
return;
for (i = 0; i < p->nslots; i... | openssh-portable | angr_phoenix | 11 |
void *forcetype_str(unsigned int a1) {
if (a1 == 2)
return &unk_758;
if (a1 > 2)
return (void *)do_internerr("force.c", 60LL, "forcetype_str",
"unknown force type '%d'", a1);
if (a1)
return &unk_754;
return &unk_750;
} | static const char *forcetype_str(enum forcetype type) {
switch (type) {
case FORCETYPE_DISABLED:
return " ";
case FORCETYPE_ENABLED:
return "[*]";
case FORCETYPE_DAMAGE:
return "[!]";
default:
do_internerr("force.c", 60, __func__, "unknown force type '%d'", type);
}
} | dpkg | ida | 10 |
int dir_read(struct_0 *a0, unsigned long long a1[3]) {
unsigned int v0;
void *v1;
void *v2;
unsigned long long v3;
void *v4;
char v5[3];
unsigned int v6;
void *v7;
unsigned long long v9;
unsigned int v10;
void *v11;
a1[1] = 0;
a1[2] = 0;
v1 = 0;
v2 = 0;
if (a0->field_0 != -1) {
v9 =... | static _Bool
dir_read(struct file_data const *dir, struct dirdata *dirdata) {
register struct dirent *next;
register size_t i;
char const **names;
size_t nnames;
char *data;
size_t data_alloc, data_used;
dirdata->names = 0;
dirdata->data = 0;
nnames = 0;
data = 0;
if (dir->desc != -1) {
... | diffutils | angr_phoenix | 14 |
long long search_for_command(char *a0, unsigned long a1) {
unsigned int v0;
unsigned int v1;
void *v2;
void *v3;
void *v4;
struct_0 *v5;
unsigned int v7;
v3 = 0;
v2 = v3;
v5 = find_variable_tempenv("PATH");
if (!v5 || !(v5->field_28 & 0x100000))
v7 = 0;
else
v7 = 1;
v1 = v7;
if (!v1... | char *search_for_command(pathname, flags) const char *pathname;
int flags;
{
char *hashed_file, *command, *path_list;
int temp_path, st;
SHELL_VAR *path;
hashed_file = command = (char *)((void *)0);
path = find_variable_tempenv("PATH");
temp_path = path && ((((path)->attributes) & (0x0100000)));
if (te... | bash | angr_sailr | 17 |
long long ssh_get_app_data(struct_0 *a0) { return a0->field_870; } | void *ssh_get_app_data(struct ssh *ssh) { return ssh->app_data; } | openssh-portable | angr_sailr | 0 |
void cleanup() {
unsigned long long *v0;
unsigned long long v2;
unsigned long long v3;
v2 = temphead;
for (v0 = temphead; v0; v0 = *(v0)) {
unlink(&v0[1] + 5);
v3 = *(v0);
}
temphead = 0;
return;
} | static void cleanup(void) {
struct tempnode const *node;
for (node = temphead; node; node = node->next)
unlink(node->name);
temphead = ((void *)0);
} | coreutils | angr_dream | 0 |
long long utf8_mbsnlen(void *a0, unsigned long a1, unsigned long a2) {
unsigned long v0;
void *v2;
void *v3;
v0 = a1;
v2 = 0;
for (v3 = 0; *((a0 + v3)); v3 = v3 + 1) {
if (v3 > a2)
break;
if (v3 <= a2 && (*((a0 + v3)) & 192) != 128)
v2 = v2 + 1;
}
return v2;
} | int utf8_mbsnlen(src, srclen, maxlen) const char *src;
size_t srclen;
int maxlen;
{
register int sind, count;
for (sind = count = 0; src[sind] && sind <= maxlen; sind++) {
if ((src[sind] & 0xc0) != 0x80)
count++;
}
return (count);
} | bash | angr_dream | 5 |
long long rijndaelEncrypt(unsigned long a0, unsigned long a1, char a2[16],
char a3[16]) {
unsigned int v0[8];
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned int v4;
unsigned int v5;
unsigned int v6;
unsigned int v7;
unsigned int v8;
unsigned int v9;
*(&v0[0]... | void rijndaelEncrypt(const u32 rk[], int Nr, const u8 pt[16], u8 ct[16]) {
u32 s0, s1, s2, s3, t0, t1, t2, t3;
int r;
s0 = (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^
((u32)(pt)[3])) ^
rk[0];
s1 = (((u32)(pt + 4)[0] << 24) ^ ((u32)(pt + 4)[1] << 16) ^
((u32)(pt ... | openssh-portable | angr_sailr | 5 |
int get_user_hz() {
if (!__iproute2_user_hz_internal) {
__iproute2_user_hz_internal = __get_user_hz();
return __iproute2_user_hz_internal;
}
return __iproute2_user_hz_internal;
} | static __inline__ int get_user_hz(void) {
if (__iproute2_user_hz_internal == 0)
__iproute2_user_hz_internal = __get_user_hz();
return __iproute2_user_hz_internal;
} | iproute2-6.0.0 | angr_sailr | 6 |
long long do_mvis(unsigned long long a0, unsigned long a1, unsigned long a2,
unsigned long a3, unsigned short *a4) {
unsigned long v0;
int tmp_35;
int tmp_68;
int tmp_101;
v0 = a0;
if (a1 == 10) {
LABEL_4001e6:
v0 = do_svis(v0, a1, a2, a3, a4);
} else {
if (iswspace(a1)) {
... | static wchar_t *do_mvis(wchar_t *dst, wint_t c, int flags, wint_t nextc,
const wchar_t *extra) {
if ((c != L'\n') &&
((iswspace(c) && (nextc == L'\r' || nextc == L'\n')) ||
(!iswspace(c) && (c < 33 || (c > 60 && c < 62) || c > 126)) ||
wcschr(L"#$@[\\]^`{|}~", c) != ((vo... | libedit | angr_phoenix | 32 |
char *session_get_remote_name_or_ip(undefined8 param_1, uint param_2,
undefined4 param_3)
{
char *pcVar1;
size_t sVar2;
if (param_2 != 0) {
pcVar1 = (char *)auth_get_canonical_hostname(param_1, param_3);
sVar2 = strlen(pcVar1);
if (sVar2 <= param_2) {
return... | const char *session_get_remote_name_or_ip(struct ssh *ssh, u_int utmp_size,
int use_dns) {
const char *remote = "";
if (utmp_size > 0)
remote = auth_get_canonical_hostname(ssh, use_dns);
if (utmp_size == 0 || strlen(remote) > utmp_size)
remote = ssh_remote_ipaddr... | openssh-portable | ghidra | 13 |
unsigned long trigproc(long a1, int a2) {
const char *v2;
const char *v3;
const char *v4;
long v5;
char *v6;
char *v7;
long v8;
char *v9;
long v10;
long v11;
char *v12;
size_t v13;
int v15;
long **i;
long v17[3];
unsigned long v18;
v18 = __readfsqword(0x28u);
memset(v17, 0, sizeof(v... | void trigproc(struct pkginfo *pkg, enum trigproc_type type) {
static struct varbuf namesarg;
struct varbuf depwhynot = {0, 0, ((void *)0)};
struct trigpend *tp;
struct pkginfo *gaveup;
debug(dbg_triggers, "trigproc %s", pkg_name(pkg, pnaw_always));
ensure_package_clientdata(pkg);
if (pkg->clientdata->t... | dpkg | ida | 15 |
int copy_command(struct_0 *a0) {
struct_2 *v0;
int tmp_36;
int tmp_46;
struct_3 *v1;
struct_1 *v2;
unsigned int v4;
v0 = &a0->field_0;
if (!a0) {
v4 = a0;
} else {
v1 = sh_xmalloc(0x20, "copy_cmd.c", 0x176);
tmp_36 = *(&a0->field_8);
v1->field_0 = *(&a0->field_0);
*(&v1->field_4) ... | COMMAND *copy_command(command)
COMMAND *command;
{
COMMAND *new_command;
if (command == ((void *)0))
return (command);
new_command = (COMMAND *)sh_xmalloc((sizeof(COMMAND)), "copy_cmd.c", 374);
__builtin_memcpy(((char *)new_command), ((char *)command), (sizeof(COMMAND)));
new_command->flags = command->f... | bash | angr_dream | 5 |
void rl_initialize_funmap() {
unsigned long long v1;
void *v2;
unsigned long long v3;
v1 = funmap_initialized;
if (!funmap_initialized) {
v2 = 0;
while (true) {
v3 = *((0x10 * v2 + &default_funmap[0]));
if (!*((0x10 * v2 + &default_funmap[0])))
break;
rl_add_funmap_entry(*((... | void rl_initialize_funmap(void) {
register int i;
if (funmap_initialized)
return;
for (i = 0; default_funmap[i].name; i++)
rl_add_funmap_entry(default_funmap[i].name, default_funmap[i].function);
funmap_initialized = 1;
funmap_program_specific_entry_start = i;
} | bash | angr_dream | 7 |
void ext2fs_test_changed(void)
{
halt_baddata();
} | inline int ext2fs_test_changed(ext2_filsys fs) { return (fs->flags & 0x02); } | e2fsprogs-1.46.5 | ghidra | 0 |
int parse_integer(char *a0, unsigned int *a1, unsigned long a2,
unsigned long a3, unsigned long a4, unsigned int a5) {
unsigned int v0;
unsigned int v1;
unsigned int v2;
unsigned long v3;
char *v4;
unsigned long long v5;
char v6;
unsigned long v8;
v1 = 0;
v3 = v1;
v0 = xstrtouma... | static intmax_t parse_integer(char const *str, strtol_error *invalid) {
int indeterminate = 0;
uintmax_t n = indeterminate;
char *suffix;
static char const suffixes[] = "bcEGkKMPTwYZ0";
strtol_error e = xstrtoumax(str, &suffix, 10, &n, suffixes);
intmax_t result;
if ((e & ~LONGINT_OVERFLOW) == LONGINT_I... | coreutils | angr_sailr | 13 |
long long rl_delete_text(unsigned long a0, unsigned long a1) {
if (h && e)
return el_deletestr1(e, a0, a1, a0);
rl_initialize();
return el_deletestr1(e, a0, a1, a0);
} | int rl_delete_text(int start, int end) {
if (h == ((void *)0) || e == ((void *)0))
rl_initialize();
return el_deletestr1(e, start, end);
} | libedit | angr_sailr | 10 |
void check_duparg(unsigned long long *a0, unsigned long a1,
unsigned long long a2, unsigned long long a3) {
unsigned long long v1;
unsigned long long *v2;
if (!(1 << (a1 & 63) & *(a0))) {
v2 = a0;
*(a0) = *(a0) | 1 << (a1 & 63);
} else {
v1 = duparg2(a2, a3, a3);
}
return;
} | static void check_duparg(__u64 *attrs, int type, const char *key,
const char *argv) {
if (!(((*attrs) & (1L << (type))) != 0)) {
*attrs |= (1L << type);
return;
}
duparg2(key, argv);
} | iproute2-6.0.0 | angr_dream | 5 |
int is_pid(unsigned long a0) {
char *v0;
unsigned int v1;
unsigned int v4;
unsigned int v5;
v0 = a0;
while (true) {
v1 = *(v0);
if (!v1) {
v5 = 1;
break;
} else {
v4 = *((*(__ctype_b_loc()) + v1 * 2)) & 0x800;
if (v4) {
v0 += 1;
} else {
v5 = 0;
... | static int is_pid(const char *str) {
int ch;
for (; (ch = *str); str++) {
if (!((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISdigit))
return 0;
}
return 1;
} | iproute2-6.0.0 | angr_phoenix | 10 |
void ipstats_set_do(unsigned long a0, unsigned long a1, unsigned long a2) {
unsigned int v0;
unsigned int v1;
unsigned short v2;
unsigned short v3;
unsigned int v4;
unsigned long long v6;
void *v7;
unsigned long v8;
unsigned long v9;
v0 = a0;
v6 = 19;
for (v7 = &v1; v6; v7 += v8 * 8) {
v6 -... | static int ipstats_set_do(int ifindex, int at, _Bool enable) {
struct ipstats_req req = {
.nlh.nlmsg_len =
((sizeof(struct if_stats_msg)) +
((int)(((sizeof(struct nlmsghdr)) + 4U - 1) & ~(4U - 1)))),
.nlh.nlmsg_flags = 0x01,
.nlh.nlmsg_type = RTM_SETSTATS,
.ifsm.family = 0... | iproute2-6.0.0 | angr_sailr | 7 |
void archive_write_error(unsigned long long a0) {
unsigned int v0;
if (totals_option) {
v0 = *(__errno_location());
print_total_stats();
*(__errno_location()) = v0;
}
write_fatal_details(*(archive_name_cursor), a0, record_size, a0);
} | void archive_write_error(ssize_t status) {
if (totals_option) {
int e = (*__errno_location());
print_total_stats();
(*__errno_location()) = e;
}
write_fatal_details(*archive_name_cursor, status, record_size);
} | tar | angr_sailr | 0 |
void ed_insert(struct_0 *a0, unsigned long a1) {
struct_2 *v0;
int tmp_9;
int tmp_15;
unsigned int v1;
unsigned long long v3;
unsigned long long v4;
unsigned int *v5;
void *v6;
unsigned long long v7;
v0 = &a0->padding_0;
v1 = a0->field_78;
if (!a1) {
v3 = 6;
} else {
if (a0->field_60 ... | ed_insert(EditLine *el, wint_t c) {
int count = el->el_state.argument;
if (c == '\0')
return 6;
if (el->el_line.lastchar + el->el_state.argument >= el->el_line.limit) {
if (!ch_enlargebufs(el, (size_t)count))
return 6;
}
if (count == 1) {
if (el->el_state.inputmode == 0 ||
el->el... | libedit | angr_phoenix | 16 |
undefined8 add_undo_close_redirect(undefined4 param_1)
{
undefined8 *puVar1;
undefined4 uStack20;
rd._0_4_ = 0;
puVar1 = (undefined8 *)make_redirection(CONCAT44(uStack20, param_1), 9,
(ulong)rd._4_4_ << 0x20, 0);
*(uint *)((long)puVar1 + 0x14) = *(uint *)((long)puVa... | static int add_undo_close_redirect(fd)
int fd;
{
REDIRECT *closer;
REDIRECTEE sd;
sd.dest = fd;
rd.dest = 0;
closer = make_redirection(sd, r_close_this, rd, 0);
closer->flags |= 0x08;
closer->next = redirection_undo_list;
redirection_undo_list = closer;
return 0;
} | bash | ghidra | 0 |
int valid_options(struct_0 *a0) {
if (a0->field_0 > 3)
__assert_fail();
if (a0->field_c != 1 && a0->field_c != 2 && a0->field_c != 3)
__assert_fail();
if (a0->field_44 && a0->field_44 != 1 && a0->field_44 != 2)
__assert_fail();
if (!(a0->field_17 ^ 1) && !(a0->field_3a ^ 1))
__assert_fail();
i... | static _Bool
valid_options(const struct cp_options *co) {
((void)sizeof((((unsigned int)(co->backup_type) <= numbered_backups)) ? 1
: 0),
__extension__({
if (((unsigned int)(co->backup_type) <= numbered_backups))
;
else
... | coreutils | angr_phoenix | 48 |
int not_a_crontab(struct_0 *a0) {
unsigned long v0;
unsigned int v2;
if (a0->field_13 == 46) {
v2 = 1;
} else if (a0->field_13 == 35) {
v2 = 1;
} else {
v2 = strcmp(&a0->field_13, ".cron.hostname");
if (!v2) {
v2 = 1;
} else {
v0 = strlen(&a0->field_13);
if (v0 <= 254 &&... | static int not_a_crontab(struct dirent *dp) {
size_t len;
if (dp->d_name[0] == '.')
return (1);
if (dp->d_name[0] == '#')
return (1);
if (0 == strcmp(dp->d_name, ".cron.hostname"))
return (1);
len = strlen(dp->d_name);
if (len >= 255 || len == 0)
return (1);
if (dp->d_name[len - 1] =... | cronie | angr_dream | 30 |
int private2_uudecode(unsigned long long a0, unsigned long long *a1) {
char v0;
unsigned int v1;
char *v2;
unsigned long v3;
void *v4;
void *v5;
unsigned int v7;
v5 = 0;
v4 = 0;
if (!a0) {
LABEL_40a314:
v7 = -10;
} else {
if (!a1)
goto LABEL_40a314;
*(a1) = 0;
v5 = sshbuf_... | static int private2_uudecode(struct sshbuf *blob, struct sshbuf **decodedp) {
const u_char *cp;
size_t encoded_len;
int r;
u_char last;
struct sshbuf *encoded = ((void *)0), *decoded = ((void *)0);
if (blob == ((void *)0) || decodedp == ((void *)0))
return -10;
*decodedp = ((void *)0);
if ((encod... | openssh-portable | angr_phoenix | 21 |
undefined1 *get_noop(void)
{
int local_c;
if (noop == (undefined1 *)0x0) {
local_c = 0;
while (*(long *)(parse_table + (long)local_c * 0x20 + 8) != 0) {
if (*(int *)(parse_table + (long)local_c * 0x20) == 1) {
noop = parse_table + (long)local_c * 0x20;
return parse_table + (long)loca... | static const struct parser_table *get_noop(void) {
int i;
if (((void *)0) == noop) {
for (i = 0; parse_table[i].parser_name != ((void *)0); i++) {
if (ARG_NOOP == parse_table[i].type) {
noop = &(parse_table[i]);
break;
}
}
}
return noop;
} | findutils | ghidra | 8 |
long run_decompress_program() {
char *v0;
int *v1;
char *v2;
long v3;
char *v4;
char *v5;
char v7[4];
unsigned int v8;
long i;
long v10;
long v11;
void *dest;
long v13;
char **v14;
unsigned long v15;
v15 = __readfsqword(0x28u);
v10 = 0LL;
v8 = 34082310;
v14 = environ;
v13 = 1LL;... | static void run_decompress_program(void) {
int i;
const char *p, *prog = ((void *)0);
struct wordsplit ws;
int wsflags = ((0x00000040 | 0x00000004 | (0x00000200 | 0x00000400) |
0x00000800 | 0x02000000) |
0x00080000 | 0x00000002) &
~0x00000040;
ws.ws_env = (c... | tar | ida | 16 |
char **kex_alg_by_name(char *param_1)
{
int iVar1;
undefined1 *local_10;
local_10 = kexalgs;
while (true) {
if (*(char **)local_10 == (char *)0x0) {
return (char **)0x0;
}
iVar1 = strcmp(*(char **)local_10, param_1);
if (iVar1 == 0)
break;
local_10 = (undefined1 *)((long)local_... | static const struct kexalg *kex_alg_by_name(const char *name) {
const struct kexalg *k;
for (k = kexalgs; k->name != ((void *)0); k++) {
if (strcmp(k->name, name) == 0)
return k;
}
return ((void *)0);
} | openssh-portable | ghidra | 5 |
int avx2_supported() {
char v0;
char v1;
unsigned int v2;
unsigned int v3;
unsigned int v4;
unsigned int v5;
unsigned int v7;
v2 = 0;
v3 = 0;
v4 = 0;
v5 = 0;
v0 = 0;
v1 = 0;
if (__get_cpuid(0x1, &v2, &v3, &v4, &v5)) {
v0 = 1;
if ((v4 & 0x8000000))
v1 = 1;
}
if (v1) {
v... | static _Bool
avx2_supported(void) {
unsigned int eax = 0;
unsigned int ebx = 0;
unsigned int ecx = 0;
unsigned int edx = 0;
_Bool getcpuid_ok = 0;
_Bool avx_enabled = 0;
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx)) {
getcpuid_ok = 1;
if (ecx & (1 << 27))
avx_enabled = 1;
}
if (avx_en... | coreutils | angr_phoenix | 7 |
void get_stat_atime(void)
{
halt_baddata();
} | get_stat_atime(struct stat const *st) { return ((st)->st_atim); } | coreutils | ghidra | 0 |
long check_members(long a1, long a2, const char *a3, const char *a4,
const char *a5, _DWORD *a6) {
int i;
unsigned int v12;
char *locale;
const char *s;
v12 = 0;
for (i = 0; *(_QWORD *)(8LL * i + a2); ++i) {
if (!getpwnam(*(const char **)(8LL * i + a2))) {
++*a6;
printf(a... | static int check_members(const char *groupname, char **members,
const char *fmt_info, const char *fmt_prompt,
const char *fmt_syslog, int *errors) {
int i;
int members_changed = 0;
for (i = 0; ((void *)0) != members[i]; i++) {
if (getpwnam(members[i]) != ((v... | shadow | ida | 4 |
void constrain_rate() {
unsigned int v1;
if ((((BinaryOp CmpF & 69) | ((BinaryOp CmpF & 69) >> 6)) & 1) != 1) {
return;
} else if ((((BinaryOp CmpF & 69) | ((BinaryOp CmpF & 69) >> 6)) & 1) == 1) {
return;
} else {
return;
}
} | static float constrain_rate(float rate) {
if (rate > 1.0f)
return 1.0;
else if (rate < 0.0)
return 0.0;
else
return rate;
} | findutils | angr_sailr | 0 |
int copy_to_temp(unsigned long long *a0, unsigned long long *a1,
unsigned long a2, unsigned long long a3) {
char v0;
char v1;
void *v2;
unsigned int v3;
unsigned int v6;
unsigned long long v7;
unsigned long long v8;
unsigned long long v9;
v2 = 0;
if ((temp_stream(&v0, &v1) ^ 1)) {
... | static off_t copy_to_temp(FILE **g_tmp, char **g_tempfile, int input_fd,
char const *file) {
FILE *fp;
char *file_name;
uintmax_t bytes_copied = 0;
if (!temp_stream(&fp, &file_name))
return -1;
while (1) {
size_t bytes_read = safe_read(input_fd, G_buffer, read_size);
if ... | coreutils | angr_phoenix | 18 |
void parseRFCField(unsigned long long *a0, unsigned long a1, unsigned int *a2) {
char *v0;
int tmp_15;
int tmp_23;
unsigned int v1;
char *v2;
unsigned long long v4;
v0 = a1;
v1 = 0;
v2 = *(a0);
while (true) {
if (*(a2) <= 0)
break;
if (*(v2) == 32)
break;
tmp_15 = v2;
v2... | static int parseRFCField(uchar **pp2parse, uchar *pResult, int *pLenStr) {
uchar *p2parse;
int iRet = 0;
((void)(0));
((void)(0));
((void)(0));
p2parse = *pp2parse;
while (*pLenStr > 0 && *p2parse != ' ') {
*pResult++ = *p2parse++;
--(*pLenStr);
}
if (*pLenStr > 0 && *p2parse == ' ') {
... | rsyslog-8.2210.0 | angr_phoenix | 2 |
long long __b64_pton(unsigned long a0, char *a1, unsigned long a2) {
char *v0;
int tmp_11;
int tmp_7;
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned long long v4;
unsigned int v6;
unsigned int v7;
unsigned long long v8;
unsigned int v9;
unsigned int v11;
unsigned int v12;
v0 = ... | int
__b64_pton
(char const *src,u_char *target,size_t targsize)
{
u_int tarindex, state;
int ch;
char *pos;
state = 0;
tarindex = 0;
while ((ch = *src++) != '\0') {
if (((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISspace))
continue;
if (ch == Pad64)
break;
pos = strc... | openssh-portable | angr_phoenix | 82 |
void get_stat_mtime(void)
{
halt_baddata();
} | get_stat_mtime(struct stat const *st) { return ((st)->st_mtim); } | findutils | ghidra | 0 |
void emit_size_note() {
unsigned long long v1;
v1 = fputs_unlocked(
gettext("\nThe SIZE argument is an integer and optional unit (example: "
"10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) or "
"KB,MB,... (powers of 1000).\nBinary prefixes can be used, too: "
... | static inline void emit_size_note(void) {
fputs_unlocked(
gettext("\nThe SIZE argument is an integer and optional unit (example: "
"10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) or "
"KB,MB,... (powers of 1000).\nBinary prefixes can be used, too: "
"KiB=K... | coreutils | angr_dream | 0 |
long long nh_dump_bucket_filter(unsigned long long a0, unsigned long a1) {
unsigned int v0;
struct_0 *v1;
unsigned long long v3;
v0 = 0;
v0 = nh_dump_filter(a0, a1);
if (v0) {
v3 = v0;
} else {
if (g_403a18) {
v0 = addattr32(a0, a1, 0x1, g_403a18);
if (v0)
v3 = v0;
}
i... | static int nh_dump_bucket_filter(struct nlmsghdr *nlh, int reqlen) {
struct rtattr *nest;
int err = 0;
err = nh_dump_filter(nlh, reqlen);
if (err)
return err;
if (filter.id) {
err = addattr32(nlh, reqlen, NHA_ID, filter.id);
if (err)
return err;
}
if (filter.nhid) {
nest = addattr... | iproute2-6.0.0 | angr_dream | 35 |
long long list_append(unsigned long long a0, unsigned long long a1) {
unsigned long long v1;
unsigned long long *v2;
if (!a0) {
v1 = a1;
} else {
for (v2 = a0; *(v2); v2 = *(v2))
;
*(v2) = a1;
v1 = a0;
}
return v1;
} | GENERIC_LIST *list_append(head, tail)
GENERIC_LIST *head, *tail;
{
register GENERIC_LIST *t_head;
if (head == 0)
return (tail);
for (t_head = head; t_head->next; t_head = t_head->next)
;
t_head->next = tail;
return (head);
} | bash | angr_phoenix | 5 |
long long filename_completion_ignore(unsigned long long a0) {
setup_ignore_patterns(&fignore);
if (g_40a6f0)
_ignore_completion_names(a0, name_is_acceptable);
return 0;
} | static int filename_completion_ignore(names)
char **names;
{
setup_ignore_patterns(&fignore);
if (fignore.num_ignores == 0)
return 0;
_ignore_completion_names(names, name_is_acceptable);
return 0;
} | bash | angr_phoenix | 6 |
void usage(int a1) {
long v1;
char *v2;
long v3;
char *v4;
FILE *v5;
char *v6;
char *v7;
FILE *v8;
char *v9;
FILE *v10;
char *v11;
const char *v12;
if (a1) {
v1 = program_name;
v2 = gettext("Try '%s --help' for more information.\n");
fprintf(stderr, v2, v1);
} else {
v3 = pr... | void usage(int status) {
if (status != 0)
do {
fprintf(stderr, gettext("Try '%s --help' for more information.\n"),
program_name);
} while (0);
else {
printf(gettext("Usage: %s [OPTION]...\n"), program_name);
if (uname_mode == 1) {
fputs_unlocked(
gettext("Print c... | coreutils | ida | 9 |
int consider_arm_swap(struct_0 *a0) {
char v0;
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned int v4;
unsigned long long v5;
struct struct_2 **v6;
struct struct_2 **v7;
unsigned int v9;
unsigned int v10;
unsigned int v11;
v5 = 0;
if (a0->field_10 != 3)
v5 = "Not a binary oper... | static _Bool
consider_arm_swap(struct predicate *p) {
int left_cost, right_cost;
const char *reason = ((void *)0);
struct predicate **pl, **pr;
if (BI_OP != p->p_type)
reason = "Not a binary operation";
if (!reason) {
if (((void *)0) == p->pred_left || ((void *)0) == p->pred_right)
reason = "... | findutils | angr_sailr | 18 |
long long EGexecute(struct_0 *a0, void *a1, unsigned long a2,
unsigned long long *a3, void *a4) {
unsigned long v0;
char v1;
char v2;
char v3;
char v4;
unsigned int v5;
unsigned int v6;
unsigned long long v7;
void *v8;
void *v9;
void *v10;
void *v11;
unsigned long long v12;... | ptrdiff_t EGexecute(void *vdc, char const *buf, idx_t size, idx_t *match_size,
char const *start_ptr) {
char const *buflim, *beg, *end, *ptr, *match, *best_match, *mb_start;
char eol = eolbyte;
regoff_t start;
idx_t len, best_len;
struct kwsmatch kwsm;
idx_t i;
struct dfa_comp *dc = vd... | grep | angr_phoenix | 22 |
void print_af_spec(unsigned long a0, unsigned short *a1) {
unsigned long v0;
char v1;
unsigned short *v2;
char v3;
char v4;
char v5;
char v6;
unsigned long long *v8;
unsigned long long v9;
v0 = a0;
v2 = parse_rtattr_one(0xa, a1 + 2, *(a1)-4);
if (v2) {
parse_rtattr_flags(&v3, 0x9, v2 + 2, *... | static void print_af_spec(FILE *fp, struct rtattr *af_spec_attr) {
struct rtattr *inet6_attr;
struct rtattr *tb[(__IFLA_INET6_MAX - 1) + 1];
inet6_attr = (parse_rtattr_one(
10,
((void *)(((char *)(af_spec_attr)) +
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U - 1)) + (0)))),
((int... | iproute2-6.0.0 | angr_dream | 77 |
void do_modify_rxsci(unsigned long a0, unsigned long a1, unsigned long a2,
unsigned long a3) {
unsigned int v0;
unsigned long v1;
unsigned int v2;
unsigned int v3;
char v4;
unsigned int v5;
unsigned int v6;
void *v7;
void *v8;
char v9;
char v10;
unsigned long long v12;
uns... | static int do_modify_rxsci(enum cmd c, int argc, char **argv, int ifindex) {
struct rxsc_desc rxsc = {0};
struct sa_desc rxsa = {0};
_Bool sa_set;
enum macsec_nl_commands cmd;
rxsc.ifindex = ifindex;
rxsc.active = 0xff;
rxsa.an = 0xff;
rxsa.active = 0xff;
sa_set = parse_rxsci(&argc, &argv, &rxsc, &... | iproute2-6.0.0 | angr_sailr | 15 |
long long platform_disable_tracing(unsigned long a0) {
unsigned long v0;
unsigned long long v2;
v2 = prctl(0x4, 0x0);
if (v2 && a0) {
v0 = strerror(*(__errno_location()));
v2 = sshfatal("platform-tracing.c", "platform_disable_tracing", 0x34, 0x0,
0x1, 0x0, "unable to make the process ... | void platform_disable_tracing(int strict) {
if (prctl(4, 0) != 0 && strict)
sshfatal("platform-tracing.c", __func__, 52, 0, SYSLOG_LEVEL_FATAL,
((void *)0), "unable to make the process undumpable: %s",
strerror((*__errno_location())));
} | openssh-portable | angr_dream | 5 |
long long star_sparse_member_p(unsigned long a0) {
unsigned long v0;
v0 = a0;
return *((current_header + 156)) == 83;
} | static _Bool
star_sparse_member_p(struct tar_sparse_file *file __attribute__((unused))) {
return current_header->header.typeflag == 'S';
} | tar | angr_dream | 0 |
void malloc_trace_bin(void)
{
return;
} | void malloc_trace_bin(n) int n;
{
} | bash | ghidra | 0 |
void save_line_to_file(unsigned long long a0[2]) {
unsigned long v0;
unsigned long long v2;
unsigned long long v3;
v0 = fwrite_unlocked(a0[1], 0x1, a0[0], output_stream);
if (v0 != a0[0]) {
v3 = quotearg_style(0x4, output_filename);
error(0x0, *(__errno_location()), gettext("write error for %s"));
... | static void save_line_to_file(const struct cstring *line) {
idx_t l = fwrite_unlocked(line->str, sizeof(char), line->len, output_stream);
if (l != line->len) {
error(0, (*__errno_location()), gettext("write error for %s"),
quotearg_style(shell_escape_always_quoting_style, output_filename));
output... | coreutils | angr_dream | 0 |
long jbd2_journal_init_revoke_record_cache() {
if (jbd2_revoke_record_cache) {
printf("Assertion failure in %s() at %s line %d: \"%s\"\n",
"jbd2_journal_init_revoke_record_cache", "revoke.c", 195LL,
"!jbd2_revoke_record_cache");
fatal_error(e2fsck_global_ctx, 0LL);
}
jbd2_revoke_reco... | int jbd2_journal_init_revoke_record_cache(void) {
do {
if (!(!jbd2_revoke_record_cache)) {
printf("Assertion failure in %s() at %s line %d: "
"\"%s\"\n",
__func__, "revoke.c", 195, "!jbd2_revoke_record_cache");
fatal_error(e2fsck_global_ctx, 0);
}
} while (0);
jbd2_re... | e2fsprogs-1.46.5 | ida | 9 |
int ipnh_cache_get(unsigned long a0) {
unsigned long long *v0;
unsigned long long *v1;
unsigned long long *v2;
struct_0 *v3;
unsigned int v5;
v1 = ipnh_cache_head(a0);
v0 = *(v1);
while (true) {
if (v0) {
v2 = v0;
v3 = &v2;
if (a0 == v3->field_10) {
v5 = v3;
return... | static struct nh_entry *ipnh_cache_get(__u32 nh_id) {
struct hlist_head *head = ipnh_cache_head(nh_id);
struct nh_entry *nhe;
struct hlist_node *n;
for (n = (head)->first; n; n = n->next) {
nhe = ({
const typeof(((struct nh_entry *)0)->nh_hash) *__mptr = (n);
(struct nh_entry *)((char *)__mptr ... | iproute2-6.0.0 | angr_sailr | 5 |
long long mux_tty_alloc_failed(unsigned long long a0, unsigned int a1[18]) {
unsigned long v0;
unsigned long v1;
unsigned int v2;
struct_0 *v3;
unsigned long long v4;
char v5;
unsigned long long v7;
unsigned long long v8;
v1 = a1[1];
sshlog("mux.c", "mux_tty_alloc_failed", 0x4d9, 0x1, 0x7, 0x0,
... | void mux_tty_alloc_failed(struct ssh *ssh, Channel *c) {
struct sshbuf *m;
Channel *mux_chan;
int r;
sshlog("mux.c", __func__, 1241, 1, SYSLOG_LEVEL_DEBUG3, ((void *)0),
"channel %d: TTY alloc failed", c->self);
if ((mux_chan = channel_by_id(ssh, c->ctl_chan)) == ((void *)0))
sshfatal("mux.c", ... | openssh-portable | angr_phoenix | 10 |
long long make_case_command(unsigned long a0, unsigned long long *a1,
unsigned long a2) {
struct_0 *v0;
unsigned long long *v2;
v0 = sh_xmalloc(0x18, "make_cmd.c", 0x169);
v0->field_0 = 0;
v0->field_4 = a2;
v0->field_8 = a0;
if (!a1 || !*(a1))
v2 = a1;
else
v2 = list... | COMMAND *make_case_command(word, clauses, lineno)
WORD_DESC *word;
PATTERN_LIST *clauses;
int lineno;
{
CASE_COM *temp;
temp = (CASE_COM *)sh_xmalloc((sizeof(CASE_COM)), "make_cmd.c", 361);
temp->flags = 0;
temp->line = lineno;
temp->word = word;
temp->clauses = ((clauses && clauses->next)
... | bash | angr_sailr | 0 |
int remove_cmd_completions(unsigned long a0) {
unsigned int v0;
struct_0 *v1;
v0 = 0;
for (v1 = a0; v1; v1 = v1->field_0) {
if (!progcomp_remove(v1->field_8->field_0)) {
builtin_error(gettext("%s: no completion specification"),
v1->field_8->field_0);
v0 = 1;
}
}
retu... | static int remove_cmd_completions(list)
WORD_LIST *list;
{
WORD_LIST *l;
int ret;
for (ret = 0, l = list; l; l = l->next) {
if (progcomp_remove(l->word->word) == 0) {
builtin_error(gettext("%s: no completion specification"), l->word->word);
ret = 1;
}
}
return ret;
} | bash | angr_sailr | 0 |
undefined8 smack_set_label_for_self(void)
{
return 0xffffffff;
} | static inline int smack_set_label_for_self(char const *label) { return -1; } | coreutils | ghidra | 0 |
long freestdout() {
long result;
result = *((_QWORD *)&output + 2);
output = result;
*((_DWORD *)&output + 9) = 0;
return result;
} | static inline void freestdout() {
output.nextc = output.buf;
output.flags = 0;
} | dash-0.5.11+git20210903+057cd650a4ed | ida | 0 |
long long _rl_prep_non_filename_text() {
unsigned long long v1;
if (strcpy) {
v1 = _rl_put_indicator(xmalloc);
} else {
_rl_put_indicator(&_rl_color_indicator);
_rl_put_indicator(lstat);
v1 = _rl_put_indicator(strlen);
}
return v1;
} | void _rl_prep_non_filename_text(void) {
if (_rl_color_indicator[C_END].string != ((void *)0))
_rl_put_indicator(&_rl_color_indicator[C_END]);
else {
_rl_put_indicator(&_rl_color_indicator[C_LEFT]);
_rl_put_indicator(&_rl_color_indicator[C_RESET]);
_rl_put_indicator(&_rl_color_indicator[C_RIGHT]);
... | bash | angr_dream | 5 |
undefined *mk_msgstr(char *param_1, undefined4 *param_2)
{
char *pcVar1;
char cVar2;
int iVar3;
undefined *puVar4;
int iVar5;
char *local_30;
char *local_28;
iVar5 = 0;
for (local_28 = param_1; (local_28 != (char *)0x0 && (*local_28 != '\0'));
local_28 = local_28 + 1) {
if ((*local_28 == ... | char *mk_msgstr(string, foundnlp)
char *string;
int *foundnlp;
{
register int c, len;
char *result, *r, *s;
for (len = 0, s = string; s && *s; s++) {
len++;
if (*s == '"' || *s == '\\')
len++;
else if (*s == '\n')
len += 5;
}
r = result = (char *)sh_xmalloc((len + 3), "locale.c", 483... | bash | ghidra | 14 |
int authmethods_get(void *a0) {
unsigned long long v0;
unsigned int v1;
unsigned int v2;
unsigned long long v3;
unsigned long v4;
unsigned long long v5;
unsigned long long v7;
v3 = sshbuf_new();
if (!v3) {
v0 = "sshbuf_new failed";
sshfatal("auth2.c", "authmethods_get", 0x1eb, 0x1, 0x1, 0x0);... | static char *authmethods_get(Authctxt *authctxt) {
struct sshbuf *b;
char *list;
int i, r;
if ((b = sshbuf_new()) == ((void *)0))
sshfatal("auth2.c", __func__, 491, 1, SYSLOG_LEVEL_FATAL, ((void *)0),
"sshbuf_new failed");
for (i = 0; authmethods[i] != ((void *)0); i++) {
if (strcmp(auth... | openssh-portable | angr_phoenix | 16 |
int rangecmp(unsigned long a0, unsigned long a1, unsigned long a2) {
unsigned int v0;
unsigned int v2;
v0 = charcmp(a0, a1, a2);
if (v0)
v2 = v0;
else
v2 = a0 - a1;
return v2;
} | static int rangecmp(c1, c2, forcecoll)
int c1, c2;
int forcecoll;
{
int r;
r = charcmp(c1, c2, forcecoll);
if (r != 0)
return r;
return (c1 - c2);
} | bash | angr_phoenix | 5 |
int pstrcmp(const char **a1, const char **a2) { return strcmp(*a1, *a2); } | int pstrcmp(const void *a, const void *b) {
return strcmp(*(const char *const *)a, *(const char *const *)b);
} | dash-0.5.11+git20210903+057cd650a4ed | ida | 0 |
void el_beep(undefined8 param_1)
{
terminal_beep(param_1);
return;
} | void el_beep(EditLine *el) { terminal_beep(el); } | libedit | ghidra | 0 |
void _rs_init(unsigned int a0, unsigned long a1) {
unsigned long long v1;
if (a1 > 39) {
if (!rs && _rs_allocate(&rs, &rsx) == -1)
_exit(0x1);
chacha_keysetup(rsx, a0, 0x100);
v1 = chacha_ivsetup(rsx, a0 + 32);
}
return;
} | static __inline void _rs_init(unsigned char *buf, size_t n) {
if (n < 32 + 8)
return;
if (rs == ((void *)0)) {
if (_rs_allocate(&rs, &rsx) == -1)
_exit(1);
}
chacha_keysetup(&rsx->rs_chacha, buf, 32 * 8);
chacha_ivsetup(&rsx->rs_chacha, buf + 32);
} | libbsd-0.11.7 | angr_phoenix | 7 |
undefined4 download_dir(undefined8 param_1, undefined8 param_2,
undefined8 param_3, undefined8 param_4,
undefined4 param_5, undefined4 param_6,
undefined4 param_7, undefined4 param_8,
undefined4 param_9, undefined4 param_10)... | int download_dir(struct sftp_conn *conn, const char *src, const char *dst,
Attrib *dirattrib, int preserve_flag, int print_flag,
int resume_flag, int fsync_flag, int follow_link_flag,
int inplace_flag) {
char *src_canon;
int ret;
if ((src_canon = do_realpath(con... | openssh-portable | ghidra | 5 |
void give_help() {
unsigned long long v1;
v1 = fprintf(
stderr, "%s",
gettext("ed:\tEdit then use both versions, each decorated with a "
"header.\neb:\tEdit then use both versions.\nel or e1:\tEdit "
"then use the left version.\ner or e2:\tEdit then use the right "
... | static void give_help(void) {
fprintf(stderr, "%s",
gettext("ed:\tEdit then use both versions, each decorated with a "
"header.\neb:\tEdit then use both versions.\nel or e1:\tEdit "
"then use the left version.\ner or e2:\tEdit then use the "
"right versi... | diffutils | angr_phoenix | 0 |
long long search_end(struct_0 *a0) {
free(a0->field_498);
a0->field_498 = 0;
return a0;
} | search_end(EditLine *el) {
free(el->el_search.patbuf);
el->el_search.patbuf = ((void *)0);
} | libedit | angr_sailr | 0 |
int rmmod_do_remove_module(undefined8 param_1)
{
char *pcVar1;
long in_FS_OFFSET;
uint local_40;
int local_3c;
long local_38;
long local_30;
long local_28;
undefined8 local_20;
undefined8 local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_20 = kmod_module_get_name(param_... | static int rmmod_do_remove_module(struct kmod_module *mod) {
const char *modname = kmod_module_get_name(mod);
unsigned long long interval_msec = 0, t0_msec = 0, tend_msec = 0;
int flags = 0, err;
_show("rmmod %s\n", modname);
if (dry_run)
return 0;
if (force)
flags |= KMOD_REMOVE_FORCE;
if (wa... | kmod | ghidra | 24 |
_BOOL8 src_to_dest_compare(_QWORD *a1, _QWORD *a2) {
return *a1 == *a2 && a1[1] == a2[1];
} | static _Bool
src_to_dest_compare(void const *x, void const *y) {
struct Src_to_dest const *a = x;
struct Src_to_dest const *b = y;
return ((*a).st_ino == (*b).st_ino && (*a).st_dev == (*b).st_dev) ? 1 : 0;
} | coreutils | ida | 0 |
_BOOL8 valid_length_expression(long a1) {
return !*(_BYTE *)(a1 + 1) ||
(sh_syntaxtab[*(unsigned char *)(a1 + 1)] & 0x800) != 0 &&
!*(_BYTE *)(a1 + 2) ||
*(char *)(a1 + 1) > 47 && *(char *)(a1 + 1) <= 57 &&
(unsigned int)all_digits(a1 + 1) ||
(unsigned int)valid_ar... | static int valid_length_expression(name)
char *name;
{
return (
name[1] == '\0' ||
((sh_syntaxtab[(unsigned char)name[1]] & 0x0800) && name[2] == '\0') ||
(((name[1]) >= '0' && (name[1]) <= '9') && all_digits(name + 1)) ||
valid_array_reference(name + 1, 0) ||
legal_identifier(name + 1... | bash | ida | 0 |
int tar_sparse_init(struct_0 *a0) {
unsigned int v2;
memset(a0, 0x0, 0x30);
if ((sparse_select_optab(a0) ^ 1)) {
v2 = 0;
} else if (!a0->field_20->field_0) {
v2 = 1;
} else {
v2 = a0->field_20->field_0(a0);
}
return v2;
} | static _Bool
tar_sparse_init(struct tar_sparse_file *file) {
memset(file, 0, sizeof *file);
if (!sparse_select_optab(file))
return 0;
if (file->optab->init)
return file->optab->init(file);
return 1;
} | tar | angr_phoenix | 7 |
void is_localvar_builtin(undefined8 param_1)
{
_find_in_table(param_1, localvar_builtins);
return;
} | static int is_localvar_builtin(name)
char *name;
{
return (_find_in_table(name, localvar_builtins));
} | bash | ghidra | 0 |
int main(int argc, const char **argv, const char **envp) {
char *v3;
const char **v4;
long v5;
char *v6;
unsigned char v7;
int *v8;
unsigned char v10;
int v11;
int v12;
char *v13;
v13 = "\t";
set_program_name(*argv, argv, envp);
setlocale(6, locale);
bindtextdomain("coreutils", "/usr/local/... | int main(int argc, char **argv) {
int optc;
char const *delim_arg = "\t";
;
set_program_name(argv[0]);
setlocale(6, "");
bindtextdomain("coreutils", "/usr/local/share/locale");
textdomain("coreutils");
atexit(close_stdout);
have_read_stdin = 0;
serial_merge = 0;
while ((optc = getopt_long(argc... | coreutils | ida | 33 |
void print_select_list(long param_1, int param_2, int param_3,
undefined4 param_4)
{
int iVar1;
undefined4 uVar2;
undefined4 uVar3;
int local_28;
int local_24;
int local_20;
int local_1c;
int local_18;
if (param_1 == 0) {
putc(10, stderr);
} else {
if (param_3 == 0) ... | static void print_select_list(list, list_len, max_elem_len,
indices_len) WORD_LIST *list;
int list_len, max_elem_len, indices_len;
{
int ind, row, elem_len, pos, cols, rows;
int first_column_indices_len, other_indices_len;
if (list == 0) {
putc('\n', stderr);
return;
}
... | bash | ghidra | 39 |
long change_timestamps(long a1, long a2, int a3, const char *a4) {
__syscall_slong_t v4;
long v5;
long v6;
char *v7;
int *v8;
struct timespec times;
long stat_mtime;
long v14;
unsigned long v15;
v15 = __readfsqword(0x28u);
times.tv_sec = get_stat_atime(a1);
times.tv_nsec = v4;
stat_mtime = ge... | static _Bool
change_timestamps(struct stat const *src_sb, char const *dest, int dirfd,
char const *relname) {
struct timespec timespec[2];
timespec[0] = get_stat_atime(src_sb);
timespec[1] = get_stat_mtime(src_sb);
if (utimensat(dirfd, relname, timespec, 0)) {
error(0, (*__errno_location... | coreutils | ida | 0 |
int parse_revoked_certs(unsigned long long a0, unsigned long long a1) {
unsigned long v0;
char v1;
unsigned int v2;
char v3;
char v4;
void *v5;
void *v6;
char v7;
char v8;
void *v9;
void *v10;
void *v11;
unsigned long v12;
unsigned long long v14;
v2 = -1;
v5 = 0;
v11 = 0;
v9 = 0;
... | static int parse_revoked_certs(struct sshbuf *buf, struct ssh_krl *krl) {
int r = -1;
u_char type;
const u_char *blob;
size_t blen, nbits;
struct sshbuf *subsect = ((void *)0);
u_int64_t serial, serial_lo, serial_hi;
struct bitmap *bitmap = ((void *)0);
char *key_id = ((void *)0);
struct sshkey *ca_ke... | openssh-portable | angr_dream | 493 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.