id stringlengths 21 132 | codebase stringclasses 57
values | c_file stringlengths 3 108 | function stringlengths 3 74 | sloc stringclasses 134
values | c_code stringlengths 25 52.1k | c_constructs dict |
|---|---|---|---|---|---|---|
heman#aabb2_prep#kmAABB2Sanitize.c | heman | aabb2.c | kmAABB2Sanitize | 18 | kmAABB2* kmAABB2Sanitize(kmAABB2* pOut, const kmAABB2* pIn)
{
if( pIn->min.x <= pIn->max.x ){
pOut->min.x = pIn->min.x;
pOut->max.x = pIn->max.x;
}else{
pOut->min.x = pIn->max.x;
pOut->max.x = pIn->min.x;
}
if( pIn->min.y <= pIn->max.y ){
pOut->min.y = pIn->min.y;... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlTextMerge.c | libxml2 | libxml2-py.c | libxml_xmlTextMerge | 16 | PyObject *
libxml_xmlTextMerge(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
xmlNodePtr c_retval;
xmlNodePtr first;
PyObject *pyobj_first;
xmlNodePtr second;
PyObject *pyobj_second;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"OO:xmlTextMerge", &pyobj_fir... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 3,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
mtools-4.0.43#unix2dos_prep#open_unix2dos.c | mtools-4.0.43 | unix2dos.c | open_unix2dos | 12 | Stream_t *open_unix2dos(Stream_t *Next, int convertCharset __attribute__ ((unused)))
{
Filter_t *This;
This = ((Filter_t*)(calloc(1,sizeof(Filter_t))));
if (!This)
return ((void *)0);
init_head(&This->head, &FilterClass, Next);
This->readBytes = This->bufPos = 0;
This->pendingNl = 0;
This->eof = 0;
return &Th... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#LONGEST_REPEATING_SUBSEQUENCE_prep#max.c | transcoder-set | LONGEST_REPEATING_SUBSEQUENCE.c | max | 1 | int max(int x, int y) { return (x > y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
wget-1.21.4#utils_prep#aprintf.c | wget-1.21.4 | utils.c | aprintf | 15 | char *
aprintf (const char *fmt, ...)
{
int ret;
va_list args;
char *str;
__builtin_va_start(args,fmt);
ret = vasprintf (&str, fmt, args);
__builtin_va_end(args);
if (ret < 0 && (*__errno_location ()) == 12)
memfatal ("aprintf", -3);
else if (ret < 0)
return ((void *)0);
return str;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
pexec-1.0rc8#numhash_prep#numhash_search.c | pexec-1.0rc8 | numhash.c | numhash_search | 20 | int numhash_search(numhashtable *nt,int value,void **ret)
{
int off,bit;
numhashnode *nh;
if ( nt==((void *)0) ) return(0);
off=0;
nh=&nt->table;
if ( nt->bitsize<sizeof(int)*8 )
value=value & ((1<<nt->bitsize)-1);
do
{
bit=(((value)>>((nt->depth)*((((nt->bitsize)-1)/(nt->depth))-(off))))&((1<<(nt->depth))-1... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
ed-1.19#regex_prep#get_pattern_for_s.c | ed-1.19 | regex.c | get_pattern_for_s | 15 | const char * get_pattern_for_s( const char ** const ibufpp )
{
const char delimiter = **ibufpp;
if( delimiter == ' ' || delimiter == '\n' )
{ set_error_msg( inv_pat_del ); return 0; }
if( *++*ibufpp == delimiter )
{
if( !last_regexp ) { set_error_msg( no_prev_pat ); return 0; }
return "";
}
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 6,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
nettle-3.9.1#gcm-aes128_prep#nettle_gcm_aes128_digest.c | nettle-3.9.1 | gcm-aes128.c | nettle_gcm_aes128_digest | 6 | void
nettle_gcm_aes128_digest(struct gcm_aes128_ctx *ctx,
size_t length, uint8_t *digest)
{
(0 ? (nettle_aes128_encrypt)(&(ctx)->cipher, ~(size_t) 0, (uint8_t *) 0, (const uint8_t *) 0) : nettle_gcm_digest(&(ctx)->gcm, &(ctx)->key, &(ctx)->cipher, (nettle_cipher_func *) (nettle_aes128_encrypt), (length), (digest)... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
mcsim-6.2.0#modd_prep#IsMathFunc.c | mcsim-6.2.0 | modd.c | IsMathFunc | 7 | BOOL IsMathFunc (PSTR sz)
{
int i = 0;
while (*vrgszMathFuncs[i] && strcmp (vrgszMathFuncs[i], sz))
i++;
return (*vrgszMathFuncs[i]);
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#test_prep#json_write_minified_get_object_size.c | json.h | test.c | json_write_minified_get_object_size | 18 | int json_write_minified_get_object_size(const struct json_object_s *object,
size_t *size) {
struct json_object_element_s *element;
*size += 2;
*size += object->length;
if (1 < object->length) {
*size += object->length - 1;
}
for (element = object->start; 0 != elem... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 0,... |
brotli-1.0.9#decode_prep#BrotliDecoderErrorString.c | brotli-1.0.9 | decode.c | BrotliDecoderErrorString | 6 | const char* BrotliDecoderErrorString(BrotliDecoderErrorCode c) {
switch (c) {
case BROTLI_DECODER_NO_ERROR: return "NO_ERROR"; case BROTLI_DECODER_SUCCESS: return "SUCCESS"; case BROTLI_DECODER_NEEDS_MORE_INPUT: return "NEEDS_MORE_INPUT"; case BROTLI_DECODER_NEEDS_MORE_OUTPUT: return "NEEDS_MORE_OUTPUT"; case BRO... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 0,... |
optipng-0.7.8#pngget_prep#png_get_y_offset_microns.c | optipng-0.7.8 | pngget.c | png_get_y_offset_microns | 7 | png_int_32
png_get_y_offset_microns(png_const_structrp png_ptr, png_const_inforp info_ptr)
{
(void)png_ptr;
(void)info_ptr;
return (0);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#MAXIMUM_VALUE_CHOICE_EITHER_DIVIDING_CONSIDERING_prep#main.c | transcoder-set | MAXIMUM_VALUE_CHOICE_EITHER_DIVIDING_CONSIDERING.c | main | 14 | int main(void) {
int n_success = 0;
int param0[] = {3,19,39,89,96,68,48,5,3,4};
for(int i = 0; i < len(param0); ++i)
{
if(f_filled(param0[i]) == f_gold(param0[i]))
{
n_success+=1;
}
break;
}
printf("#Results:", " ", n_success, ", ", len(param0));
return 0;
}... | {
"array_type": 1,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
pth-2.0.7#pth_ring_prep#__pth_ring_insert_after.c | pth-2.0.7 | pth_ring.c | __pth_ring_insert_after | 11 | void __pth_ring_insert_after(pth_ring_t *r, pth_ringnode_t *rn1, pth_ringnode_t *rn2)
{
if (r == ((void *)0) || rn1 == ((void *)0) || rn2 == ((void *)0))
return;
rn2->rn_prev = rn1;
rn2->rn_next = rn1->rn_next;
rn2->rn_prev->rn_next = rn2;
rn2->rn_next->rn_prev = rn2;
r->r_nodes++;
r... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gprolog-1.5.0#c_supp_prep#Pl_Mk_Compound.c | gprolog-1.5.0 | c_supp.c | Pl_Mk_Compound | 14 | WamWord
Pl_Mk_Compound(int func, int arity, WamWord *arg)
{
WamWord res_word;
int i;
if (arity == 0)
return Pl_Put_Atom(func);
if (arity == 2 && func == ((int) (unsigned char) ('.')))
return Pl_Mk_List(arg);
res_word = Pl_Put_Structure(func, arity);
for (i = 0; i < arity; i++)
Pl_Unify_Value(arg... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#SWAP_TWO_NIBBLES_BYTE_prep#sort.c | transcoder-set | SWAP_TWO_NIBBLES_BYTE.c | sort | 1 | void sort (int arr [ ], int n) {qsort (arr, n, sizeof(int), cmpfunc);}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tulipindicators-0.9.1#tiamalgamation_prep#ti_crossany_start.c | tulipindicators-0.9.1 | tiamalgamation.c | ti_crossany_start | 4 | int ti_crossany_start(double const *options) {
(void)options;
return 1;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#xpath_prep#xmlXPathNewCString.c | libxml2 | xpath.c | xmlXPathNewCString | 4 | xmlXPathObjectPtr
xmlXPathNewCString(const char *val) {
return(xmlXPathNewString((xmlChar *) val));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlmemory_prep#xmlReallocLoc.c | libxml2 | xmlmemory.c | xmlReallocLoc | 6 | void *
xmlReallocLoc(void *ptr, size_t size, const char *file __attribute__((unused)),
int line __attribute__((unused)))
{
return(xmlMemRealloc(ptr, size));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlschemas_prep#xmlSchemaValidCtxtGetParserCtxt.c | libxml2 | xmlschemas.c | xmlSchemaValidCtxtGetParserCtxt | 7 | xmlParserCtxtPtr
xmlSchemaValidCtxtGetParserCtxt(xmlSchemaValidCtxtPtr ctxt)
{
if (ctxt == ((void *)0))
return(((void *)0));
return (ctxt->parserCtxt);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#CHECK_OCCURRENCES_CHARACTER_APPEAR_TOGETHER_prep#f_filled.c | transcoder-set | CHECK_OCCURRENCES_CHARACTER_APPEAR_TOGETHER.c | f_filled | 1 | _Bool f_filled ( char s [], char c ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#CHECK_IF_A_NUMBER_IS_JUMBLED_OR_NOT_prep#f_filled.c | transcoder-set | CHECK_IF_A_NUMBER_IS_JUMBLED_OR_NOT.c | f_filled | 1 | _Bool f_filled ( int num ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
mcsim-6.2.0#mh_prep#TraverseLevels.c | mcsim-6.2.0 | mh.c | TraverseLevels | 17 | void TraverseLevels (PLEVEL plevel,
void (*routinePtr)(PLEVEL plevel, char **args), ...)
{
va_list ap;
static char *arg[25], **args = arg;
char *arg1;
long n, nargs = 0;
__builtin_va_start(ap,routinePtr);
if ((arg1 = __builtin_va_arg(ap,char*)) != ((void *)0)) {
arg[0] = arg1;
w... | {
"array_type": 2,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 1,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 3,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
transcoder-set#NON_REPEATING_ELEMENT_prep#f_filled.c | transcoder-set | NON_REPEATING_ELEMENT.c | f_filled | 1 | int f_filled ( int arr [ ], int n ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PROGRAM_CALCULATE_VOLUME_OCTAHEDRON_prep#sort.c | transcoder-set | PROGRAM_CALCULATE_VOLUME_OCTAHEDRON.c | sort | 1 | void sort (int arr [ ], int n) {qsort (arr, n, sizeof(int), cmpfunc);}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
nettle-3.9.1#nettle-meta-macs_prep#nettle_get_macs.c | nettle-3.9.1 | nettle-meta-macs.c | nettle_get_macs | 5 | const struct nettle_mac * const *
nettle_get_macs (void)
{
return _nettle_macs;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
uucp-1.07#escape_prep#cescape.c | uucp-1.07 | escape.c | cescape | 82 | size_t
cescape (z)
char *z;
{
char *zto, *zfrom;
zto = z;
zfrom = z;
while (*zfrom != '\0')
{
if (*zfrom != '\\')
{
*zto++ = *zfrom++;
continue;
}
++zfrom;
switch (*zfrom)
{
case '-':
*zto++ = '-';
break;
case 'b':
*zto++ = '\b';
break;
case 'n':
*zto++ = '\... | {
"array_type": 1,
"break_continue_statement": 12,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 6... |
transcoder-set#FIND_NUMBER_PAIRS_ARRAY_XOR_0_prep#min.c | transcoder-set | FIND_NUMBER_PAIRS_ARRAY_XOR_0.c | min | 1 | int min(int x, int y) { return (x < y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#DYNAMIC_PROGRAMMING_SET_10_0_1_KNAPSACK_PROBLEM_prep#f_filled.c | transcoder-set | DYNAMIC_PROGRAMMING_SET_10_0_1_KNAPSACK_PROBLEM.c | f_filled | 1 | int f_filled ( int W, int wt [ ], int val [ ], int n ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libosip2-5.3.1#osip_www_authenticate_prep#osip_www_authenticate_set_opaque.c | libosip2-5.3.1 | osip_www_authenticate.c | osip_www_authenticate_set_opaque | 3 | void osip_www_authenticate_set_opaque(osip_www_authenticate_t *www_authenticate, char *opaque) {
www_authenticate->opaque = (char *) opaque;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
less-633#xbuf_prep#xbuf_add_data.c | less-633 | xbuf.c | xbuf_add_data | 6 | void xbuf_add_data(struct xbuffer *xbuf, unsigned char *data, int len)
{
int i;
for (i = 0; i < len; i++)
xbuf_add_byte(xbuf, data[i]);
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#globals_prep#__xmlIndentTreeOutput.c | libxml2 | globals.c | __xmlIndentTreeOutput | 1 | int *__xmlIndentTreeOutput(void) { return (&xmlGetThreadLocalStorage(0)->gs_xmlIndentTreeOutput); }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tmux#format_prep#format_entry_tree_RB_INSERT.c | tmux | format.c | format_entry_tree_RB_INSERT | 1 | struct format_entry * format_entry_tree_RB_INSERT(struct format_entry_tree *head, struct format_entry *elm) { struct format_entry *tmp; struct format_entry *parent = ((void *)0); int comp = 0; tmp = (head)->rbh_root; while (tmp) { parent = tmp; comp = (format_entry_cmp)(elm, parent); if (comp < 0) tmp = (tmp)->entry.rb... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
indent-2.2.13#globs_prep#xrealloc.c | indent-2.2.13 | globs.c | xrealloc | 10 | extern void *xrealloc(void *ptr, unsigned int size)
{
void *val = realloc(ptr, size);
if (!val)
{
fprintf(stderr, gettext("indent: Virtual memory exhausted.\n"));
do_exit(system_error);
}
return val;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
mtools-4.0.43#direntry_prep#isRootEntry.c | mtools-4.0.43 | direntry.c | isRootEntry | 4 | int isRootEntry(direntry_t *entry)
{
return entry->entry == -3;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#BINARY_SEARCH_prep#max.c | transcoder-set | BINARY_SEARCH.c | max | 1 | int max(int x, int y) { return (x > y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlreader_prep#xmlTextReaderRead.c | libxml2 | xmlreader.c | xmlTextReaderRead | 286 | int
xmlTextReaderRead(xmlTextReaderPtr reader) {
int val, olddepth = 0;
xmlTextReaderState oldstate = XML_TEXTREADER_START;
xmlNodePtr oldnode = ((void *)0);
if (reader == ((void *)0))
return(-1);
if (reader->state == XML_TEXTREADER_ERROR)
return(-1);
reader->curnode = ((void *)0);
... | {
"array_type": 2,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 11,
"if_statement": 59,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 20,
"struct_type": 0,
"switch_statement": 0,
"type_casting":... |
libxml2#types_prep#libxml_xmlRelaxNGValidCtxtPtrWrap.c | libxml2 | types.c | libxml_xmlRelaxNGValidCtxtPtrWrap | 13 | PyObject *
libxml_xmlRelaxNGValidCtxtPtrWrap(xmlRelaxNGValidCtxtPtr valid)
{
PyObject *ret;
if (valid == ((void *)0)) {
_Py_INCREF(((PyObject*)((&_Py_NoneStruct))));
return ((&_Py_NoneStruct));
}
ret =
PyCapsule_New((void *) valid,
(char *) "x... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
screen-4.9.0#process_prep#IsNumColon.c | screen-4.9.0 | process.c | IsNumColon | 16 | int
IsNumColon(s, base, p, psize)
int base, psize;
char *s, *p;
{
char *q;
if ((q = rindex(s, ':')) != 0)
{
strncpy(p, q + 1, psize - 1);
p[psize - 1] = '\0';
*q = '\0';
}
else
*p = '\0';
return IsNum(s, base);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#DYNAMIC_PROGRAMMING_SET_8_MATRIX_CHAIN_MULTIPLICATION_prep#len.c | transcoder-set | DYNAMIC_PROGRAMMING_SET_8_MATRIX_CHAIN_MULTIPLICATION.c | len | 1 | int len (int arr [ ]) {return ((int) (sizeof (arr) / sizeof (arr)[0]));}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tmux#window_prep#window_pane_unset_palette.c | tmux | window.c | window_pane_unset_palette | 8 | void
window_pane_unset_palette(struct window_pane *wp, u_int n)
{
if (n > 0xff || wp->palette == ((void *)0))
return;
wp->palette[n] = 0;
wp->flags |= 0x1;
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
tar-1.34#quotearg_prep#quotearg_char_mem.c | tar-1.34 | quotearg.c | quotearg_char_mem | 8 | char *
quotearg_char_mem (char const *arg, size_t argsize, char ch)
{
struct quoting_options options;
options = default_quoting_options;
set_char_quoting (&options, ch, 1);
return quotearg_n_options (0, arg, argsize, &options);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
less-633#optfunc_prep#calc_jump_sline.c | less-633 | optfunc.c | calc_jump_sline | 6 | void calc_jump_sline(void)
{
if (jump_sline_fraction < 0)
return;
jump_sline = muldiv(sc_height, jump_sline_fraction, 1000000);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#SMALLEST_SUM_CONTIGUOUS_SUBARRAY_prep#main.c | transcoder-set | SMALLEST_SUM_CONTIGUOUS_SUBARRAY.c | main | 25 | int main(void) {
int n_success = 0;
int param0_0[] = {2,9,13,14,15,18,19,19,25,26,29,29,29,30,31,36,37,37,38,39,39,40,40,42,42,46,50,53,58,60,62,64,65,67,68,69,72,77,78,83,85,89,90,93,95,95,97};
int param0_1[] = {14,-58,8,78,-26,-20,-60,42,-64,-12};
int param0_2[] = {0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1};
int para... | {
"array_type": 2,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
nettle-3.9.1#umac-poly128_prep#_nettle_umac_poly128.c | nettle-3.9.1 | umac-poly128.c | _nettle_umac_poly128 | 39 | void
_nettle_umac_poly128 (const uint32_t *k, uint64_t *y, uint64_t mh, uint64_t ml)
{
uint64_t yh, yl, cy;
if ( (mh >> 32) == 0xffffffff)
{
poly128_mul (k, y);
if (y[1] > 0)
y[1]--;
else if (y[0] > 0)
{
y[0]--;
y[1] = (~(uint64_t) 0);
}
else
{
y[0] = (~(uint64_t) 0);
y[1... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 6,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
uucp-1.07#proty_prep#fywait.c | uucp-1.07 | proty.c | fywait | 12 | boolean
fywait (qdaemon)
struct sdaemon *qdaemon;
{
boolean fexit = (0);
while (! fexit)
{
if (! fywait_for_packet (qdaemon, &fexit))
return (0);
}
return (1);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#HOW_TO_TURN_OFF_A_PARTICULAR_BIT_IN_A_NUMBER_prep#f_gold.c | transcoder-set | HOW_TO_TURN_OFF_A_PARTICULAR_BIT_IN_A_NUMBER.c | f_gold | 4 | int f_gold ( int n, int k ) {
if ( k <= 0 ) return n;
return ( n & ~ ( 1 << ( k - 1 ) ) );
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
tmux#cmd-find_prep#cmd_find_from_nothing.c | tmux | cmd-find.c | cmd_find_from_nothing | 16 | int
cmd_find_from_nothing(struct cmd_find_state *fs, int flags)
{
cmd_find_clear_state(fs, flags);
fs->s = cmd_find_best_session(((void *)0), 0, flags);
if (fs->s == ((void *)0)) {
cmd_find_clear_state(fs, flags);
return (-1);
}
fs->wl = fs->s->curw;
fs->idx = fs->wl->idx;
fs->w = fs->wl->window;
fs->wp = f... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 2,... |
optipng-0.7.8#png_prep#png_get_libpng_ver.c | optipng-0.7.8 | png.c | png_get_libpng_ver | 5 | png_const_charp
png_get_libpng_ver(png_const_structrp png_ptr)
{
return png_get_header_ver(png_ptr);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlXPathOrderDocElems.c | libxml2 | libxml2-py.c | libxml_xmlXPathOrderDocElems | 13 | PyObject *
libxml_xmlXPathOrderDocElems(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
long c_retval;
xmlDocPtr doc;
PyObject *pyobj_doc;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"O:xmlXPathOrderDocElems", &pyobj_doc))
return(((void *)0));
doc = (xm... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
transcoder-set#COUNT_NUMBERS_THAT_DONT_CONTAIN_3_prep#f_filled.c | transcoder-set | COUNT_NUMBERS_THAT_DONT_CONTAIN_3.c | f_filled | 1 | int f_filled ( int n ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PRODUCT_MAXIMUM_FIRST_ARRAY_MINIMUM_SECOND_prep#max.c | transcoder-set | PRODUCT_MAXIMUM_FIRST_ARRAY_MINIMUM_SECOND.c | max | 1 | int max(int x, int y) { return (x > y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_unquoted_keys_prep#utest_run_allow_unquoted_keys_read_write_minified_read.c | json.h | allow_unquoted_keys.c | utest_run_allow_unquoted_keys_read_write_minified_read | 7 | void utest_run_allow_unquoted_keys_read_write_minified_read(int *utest_result, struct allow_unquoted_keys *utest_fixture) {
size_t size = 0;
void *json = json_write_minified(utest_fixture->value, &size);
free(utest_fixture->value);
utest_fixture->value = json_parse(json, size - 1);
free(json);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_inf_and_nan_prep#json_parse_value.c | json.h | allow_inf_and_nan.c | json_parse_value | 95 | void json_parse_value(struct json_parse_state_s *state, int is_global_object,
struct json_value_s *value) {
const size_t flags_bitset = state->flags_bitset;
const char *const src = state->src;
const size_t size = state->size;
size_t offset;
(void)json_skip_all_skippables(state);
offset... | {
"array_type": 1,
"break_continue_statement": 5,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 6,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 2,
"switch_statement": 1,
"type_casting": 15... |
libxml2#parser_prep#xmlCtxtReadFile.c | libxml2 | parser.c | xmlCtxtReadFile | 12 | xmlDocPtr
xmlCtxtReadFile(xmlParserCtxtPtr ctxt, const char *filename,
const char *encoding, int options)
{
xmlParserInputPtr input;
if (ctxt == ((void *)0))
return(((void *)0));
xmlCtxtReset(ctxt);
xmlCtxtUseOptions(ctxt, options);
input = xmlCtxtNewInputFromUrl(ctxt, filena... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
libosip2-5.3.1#osip_body_prep#osip_body_set_contenttype.c | libosip2-5.3.1 | osip_body.c | osip_body_set_contenttype | 17 | int osip_body_set_contenttype(osip_body_t *body, const char *hvalue) {
int i;
if (body == ((void *)0))
return -2;
if (hvalue == ((void *)0))
return -2;
i = osip_content_type_init(&(body->content_type));
if (i != 0)
return i;
i = osip_content_type_parse(body->content_type, hvalue);
if (i != 0) ... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 5,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
transcoder-set#COUNT_POSSIBLE_PATHS_TOP_LEFT_BOTTOM_RIGHT_NXM_MATRIX_1_prep#main.c | transcoder-set | COUNT_POSSIBLE_PATHS_TOP_LEFT_BOTTOM_RIGHT_NXM_MATRIX_1.c | main | 15 | int main(void) {
int n_success = 0;
int param0[] = {79,95,15,71,16,91,10,98,30,58};
int param1[] = {16,62,9,18,85,52,91,81,42,69};
for(int i = 0; i < len(param0); ++i)
{
if(f_filled(param0[i],param1[i]) == f_gold(param0[i],param1[i]))
{
n_success+=1;
}
break;
}
... | {
"array_type": 2,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
nano-7.2#nano_prep#splice_node.c | nano-7.2 | nano.c | splice_node | 10 | void splice_node(linestruct *afterthis, linestruct *newnode)
{
newnode->next = afterthis->next;
newnode->prev = afterthis;
if (afterthis->next != ((void *)0))
afterthis->next->prev = newnode;
afterthis->next = newnode;
if (openfile && openfile->filebot == afterthis)
openfile->filebot = newnode;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gawk-5.2.2#eval_prep#register_exec_hook.c | gawk-5.2.2 | eval.c | register_exec_hook | 20 | int
register_exec_hook(Func_pre_exec preh, Func_post_exec posth)
{
int pos = 0;
if (! preh || (post_execute && posth))
return 0;
if (num_exec_hook == 10)
return 0;
if (num_exec_hook > 0) {
pos = !! (do_flags & DO_DEBUG);
if (num_exec_hook > pos)
memmove(pre_execute + pos + 1, pre_execute + pos,
(num... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlLineNumbersDefault.c | libxml2 | libxml2-py.c | libxml_xmlLineNumbersDefault | 13 | PyObject *
libxml_xmlLineNumbersDefault(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int val;
if (libxml_deprecationWarning("xmlLineNumbersDefault") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlLineNumbersDe... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
json.h#allow_json5_prep#json_parse.c | json.h | allow_json5.c | json_parse | 4 | struct json_value_s *json_parse(const void *src, size_t src_size) {
return json_parse_ex(src, src_size, json_parse_flags_default, 0,
0, 0);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PRODUCT_NODES_K_TH_LEVEL_TREE_REPRESENTED_STRING_prep#cmpfunc.c | transcoder-set | PRODUCT_NODES_K_TH_LEVEL_TREE_REPRESENTED_STRING.c | cmpfunc | 1 | int cmpfunc (const void * a, const void * b) {return ( *(int*)a - *(int*)b );}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tmux#colour_prep#colour_split_rgb.c | tmux | colour.c | colour_split_rgb | 7 | void
colour_split_rgb(int c, u_char *r, u_char *g, u_char *b)
{
*r = (c >> 16) & 0xff;
*g = (c >> 8) & 0xff;
*b = c & 0xff;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_leading_or_trailing_decimal_point_prep#json_parse.c | json.h | allow_leading_or_trailing_decimal_point.c | json_parse | 4 | struct json_value_s *json_parse(const void *src, size_t src_size) {
return json_parse_ex(src, src_size, json_parse_flags_default, 0,
0, 0);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#COUNT_ROTATIONS_DIVISIBLE_8_prep#sort.c | transcoder-set | COUNT_ROTATIONS_DIVISIBLE_8.c | sort | 1 | void sort (int arr [ ], int n) {qsort (arr, n, sizeof(int), cmpfunc);}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
rcs-5.10.1#rcsutil_prep#runv.c | rcs-5.10.1 | rcsutil.c | runv | 50 | int
runv (int infd, char const *outname, char const **args)
{
int wstatus;
if (!(top->behavior. fixed_SIGCHLD))
{
(top->behavior. fixed_SIGCHLD) = 1;
maybe_reset_sigchld ();
}
oflush ();
{
pid_t pid;
if (!(pid = vfork ()))
{
char const *notfound;
if (infd != -1
... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 10,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2... |
mcsim-6.2.0#mh_prep#TestImpRatioTemper.c | mcsim-6.2.0 | mh.c | TestImpRatioTemper | 27 | BOOL TestImpRatioTemper (PGIBBSDATA pgd, BOOL bExptIsDep,
double dLnKern, double dLnKernNew,
double dLnPrior, double dLnPriorNew,
double dLnLike, double dLnLikeNew,
double dLnData, double dLnDataNew, long indexT)
{
dou... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
lil#lil_prep#lil_alloc_integer.c | lil | lil.c | lil_alloc_integer | 6 | lil_value_t lil_alloc_integer(lilint_t num)
{
char buff[128];
sprintf(buff, "%""l" "i", num);
return alloc_value(buff);
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
nettle-3.9.1#ecc-mul-m_prep#_nettle_ecc_mul_m.c | nettle-3.9.1 | ecc-mul-m.c | _nettle_ecc_mul_m | 59 | void
_nettle_ecc_mul_m (const struct ecc_modulo *m,
mp_limb_t a24,
unsigned bit_low, unsigned bit_high,
mp_limb_t *qx, const uint8_t *n, const mp_limb_t *px,
mp_limb_t *scratch)
{
unsigned i;
mp_limb_t swap;
__gmpn_copyi ((scratch), px, m->size);
(scratch + m->size)[0] = 1;
__gmpn_zero ((scrat... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#DYNAMIC_PROGRAMMING_SUBSET_SUM_PROBLEM_1_prep#f_gold.c | transcoder-set | DYNAMIC_PROGRAMMING_SUBSET_SUM_PROBLEM_1.c | f_gold | 20 | _Bool f_gold ( int set [ ], int n, int sum ) {
_Bool subset [ n + 1 ] [ sum + 1 ];
for ( int i = 0;
i <= n;
i ++ ) subset [ i ] [ 0 ] = 1;
for ( int i = 1;
i <= sum;
i ++ ) subset [ 0 ] [ i ] = 0;
for ( int i = 1;
i <= n;
i ++ ) {
for ( int j = 1;
j <= sum;
j ++ ) {
if ( j < set [ ... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 4,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
brotli-1.0.9#decode_prep#BrotliDecoderDestroyInstance.c | brotli-1.0.9 | decode.c | BrotliDecoderDestroyInstance | 10 | void BrotliDecoderDestroyInstance(BrotliDecoderStateInternal* state) {
if (!state) {
return;
} else {
brotli_free_func free_func = state->free_func;
void* opaque = state->memory_manager_opaque;
BrotliDecoderStateCleanup(state);
free_func(opaque, state);
}
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
uucp-1.07#uupick_prep#main.c | uucp-1.07 | uupick.c | main | 193 | int
main (argc, argv)
int argc;
char **argv;
{
const char *zsystem = ((void *)0);
const char *zconfig = ((void *)0);
int iopt;
pointer puuconf;
int iuuconf;
const char *zpubdir;
char *zfile, *zfrom, *zfull;
char *zallsys;
char ab[1000];
boolean fquit;
zProgram = "uupick";
while ((iopt ... | {
"array_type": 3,
"break_continue_statement": 13,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 21,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 10,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 2,
"type_casting":... |
tmux#utf8_prep#utf8_set.c | tmux | utf8.c | utf8_set | 7 | void
utf8_set(struct utf8_data *ud, u_char ch)
{
static const struct utf8_data empty = { { 0 }, 1, 1, 1 };
memcpy(ud, &empty, sizeof *ud);
*ud->data = ch;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 0,... |
tulipindicators-0.9.1#benchmark_prep#rmi_option_setter.c | tulipindicators-0.9.1 | benchmark.c | rmi_option_setter | 5 | void rmi_option_setter(double period, double *options, int ti) {
(void)ti;
options[0] = period;
options[1] = 3;
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
cflow-1.7#parser_prep#clearstack.c | cflow-1.7 | parser.c | clearstack | 5 | void
clearstack()
{
tos = curs = 0;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
binn-3.0#binn_prep#binn_map_double.c | binn-3.0 | binn.c | binn_map_double | 5 | double binn_map_double(void *map, int id) {
double value;
binn_map_get(map, id, 0x82, &value, ((void *)0));
return value;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#xmlIO_prep#xmlOutputBufferWrite.c | libxml2 | xmlIO.c | xmlOutputBufferWrite | 64 | int
xmlOutputBufferWrite(xmlOutputBufferPtr out, int len, const char *data) {
xmlBufPtr buf = ((void *)0);
size_t written = 0;
int ret;
if ((out == ((void *)0)) || (out->error))
return(-1);
if (len < 0)
return(0);
ret = xmlBufAdd(out->buffer, (const xmlChar *) data, len);
if ... | {
"array_type": 0,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 15,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 8,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 7... |
less-633#command_prep#in_mca.c | less-633 | command.c | in_mca | 4 | int in_mca(void)
{
return (mca != 0 && mca != 105);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#parser_prep#xmlParseXMLDecl.c | libxml2 | parser.c | xmlParseXMLDecl | 70 | void
xmlParseXMLDecl(xmlParserCtxtPtr ctxt) {
xmlChar *version;
ctxt->standalone = -2;
do { ctxt->input->cur += (5),ctxt->input->col+=(5); if (*ctxt->input->cur == 0) xmlParserGrow(ctxt); } while (0);
if (!((((*ctxt->input->cur)) == 0x20) || ((0x9 <= ((*ctxt->input->cur))) && (((*ctxt->input->cur)) <= 0... | {
"array_type": 1,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 18,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 8... |
libxml2#xmlunicode_prep#xmlUCSIsGurmukhi.c | libxml2 | xmlunicode.c | xmlUCSIsGurmukhi | 4 | int
xmlUCSIsGurmukhi(int code) {
return(((code >= 0x0A00) && (code <= 0x0A7F)));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlunicode_prep#xmlUCSIsCatPd.c | libxml2 | xmlunicode.c | xmlUCSIsCatPd | 4 | int
xmlUCSIsCatPd(int code) {
return(xmlCharInRange((unsigned int)code, &xmlPdG));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#globals_prep#xmlThrDefRegisterNodeDefault.c | libxml2 | globals.c | xmlThrDefRegisterNodeDefault | 11 | xmlRegisterNodeFunc
xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func)
{
xmlRegisterNodeFunc old;
xmlMutexLock(&xmlThrDefMutex);
old = xmlRegisterNodeDefaultValueThrDef;
xmlRegisterCallbacks = 1;
xmlRegisterNodeDefaultValueThrDef = func;
xmlMutexUnlock(&xmlThrDefMutex);
return(old);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#CEILING_IN_A_SORTED_ARRAY_prep#max.c | transcoder-set | CEILING_IN_A_SORTED_ARRAY.c | max | 1 | int max(int x, int y) { return (x > y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlstring_prep#xmlStrchr.c | libxml2 | xmlstring.c | xmlStrchr | 9 | const xmlChar *
xmlStrchr(const xmlChar *str, xmlChar val) {
if (str == ((void *)0)) return(((void *)0));
while (*str != 0) {
if (*str == val) return((xmlChar *) str);
str++;
}
return(((void *)0));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
gprolog-1.5.0#if_no_fd_prep#Pl_Fd_Reset_Solver.c | gprolog-1.5.0 | if_no_fd.c | Pl_Fd_Reset_Solver | 8 | void
Pl_Fd_Reset_Solver(void)
{
void (*copy_of_pl_fd_reset_solver) () = Pl_Dummy_Ptr(pl_fd_reset_solver);
if (copy_of_pl_fd_reset_solver == ((void *)0))
return;
(*copy_of_pl_fd_reset_solver) ();
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 2,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
heman#mat4_prep#kmMat4RotationToAxisAngle.c | heman | mat4.c | kmMat4RotationToAxisAngle | 9 | kmVec3* kmMat4RotationToAxisAngle(kmVec3* pAxis, float* radians, const kmMat4* pIn)
{
kmQuaternion temp;
kmMat3 rotation;
kmMat4ExtractRotation(&rotation, pIn);
kmQuaternionRotationMatrix(&temp, &rotation);
kmQuaternionToAxisAngle(&temp, pAxis, radians);
return pAxis;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
units-2.22#units_prep#main.c | units-2.22 | units.c | main | 254 | int
main(int argc, char **argv)
{
static struct unittype have, want;
char *havestr=0, *wantstr=0;
struct func *funcval;
struct wantalias *alias;
int havestrsize=0;
int wantstrsize=0;
int readerr;
char **unitfileptr;
int unitcount=0, prefixcount=0, funccount=0;
char *queryhave, *querywant, ... | {
"array_type": 2,
"break_continue_statement": 3,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 46,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 9,
"return_statement": 1,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 7... |
libxml2#xpath_prep#xmlXPathRoot.c | libxml2 | xpath.c | xmlXPathRoot | 7 | void
xmlXPathRoot(xmlXPathParserContextPtr ctxt) {
if ((ctxt == ((void *)0)) || (ctxt->context == ((void *)0)))
return;
valuePush(ctxt, xmlXPathCacheNewNodeSet(ctxt,
(xmlNodePtr) ctxt->context->doc));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#DISTRIBUTING_ITEMS_PERSON_CANNOT_TAKE_TWO_ITEMS_TYPE_prep#f_filled.c | transcoder-set | DISTRIBUTING_ITEMS_PERSON_CANNOT_TAKE_TWO_ITEMS_TYPE.c | f_filled | 1 | _Bool f_filled ( int arr [ ], int n, int k ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlUCSIsCatNl.c | libxml2 | libxml2-py.c | libxml_xmlUCSIsCatNl | 13 | PyObject *
libxml_xmlUCSIsCatNl(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int code;
if (libxml_deprecationWarning("xmlUCSIsCatNl") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsCatNl", &code))
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
binn-3.0#binn_prep#binn_get_double.c | binn-3.0 | binn.c | binn_get_double | 31 | BOOL binn_get_double(binn *value, double *pfloat) {
int64 vint;
if (value == ((void *)0) || pfloat == ((void *)0)) return 0;
if (type_family(value->type) == 0xf2) {
if (copy_int_value(value->ptr, &vint, value->type, 0x81) == 0) return 0;
*pfloat = (double) vint;
return 1;
}
switch (value->type) {
... | {
"array_type": 0,
"break_continue_statement": 4,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 6,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 6,... |
transcoder-set#DETECT_IF_TWO_INTEGERS_HAVE_OPPOSITE_SIGNS_prep#len.c | transcoder-set | DETECT_IF_TWO_INTEGERS_HAVE_OPPOSITE_SIGNS.c | len | 1 | int len (int arr [ ]) {return ((int) (sizeof (arr) / sizeof (arr)[0]));}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_UNIT_DIGIT_X_RAISED_POWER_Y_1_prep#len.c | transcoder-set | FIND_UNIT_DIGIT_X_RAISED_POWER_Y_1.c | len | 1 | int len (int arr [ ]) {return ((int) (sizeof (arr) / sizeof (arr)[0]));}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#NUMBER_IS_DIVISIBLE_BY_29_OR_NOT_prep#min.c | transcoder-set | NUMBER_IS_DIVISIBLE_BY_29_OR_NOT.c | min | 1 | int min(int x, int y) { return (x < y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
nano-7.2#utils_prep#remove_magicline.c | nano-7.2 | utils.c | remove_magicline | 10 | void remove_magicline(void)
{
if (openfile->filebot->data[0] == '\0' &&
openfile->filebot != openfile->filetop) {
openfile->filebot = openfile->filebot->prev;
delete_node(openfile->filebot->next);
openfile->filebot->next = ((void *)0);
openfile->totsize--;
}
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
gprolog-1.5.0#misc_prep#Pl_Realloc_Check.c | gprolog-1.5.0 | misc.c | Pl_Realloc_Check | 8 | char *
Pl_Realloc_Check(char *ptr, unsigned size, char *src_file, int src_line)
{
char *m = realloc(ptr, size);
if (m == ((void *)0))
Pl_Fatal_Error("Memory allocation fault (%s) in %s:%d", "realloc", src_file, src_line);
return m;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tinycc#tccasm_prep#get_asm_sym.c | tinycc | tccasm.c | get_asm_sym | 10 | Sym* get_asm_sym(int name, Sym *csym)
{
Sym *sym = asm_label_find(name);
if (!sym) {
sym = asm_label_push(name);
if (csym)
sym->c = csym->c;
}
return sym;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PROGRAM_CALCULATE_AREA_OCTAGON_prep#f_gold.c | transcoder-set | PROGRAM_CALCULATE_AREA_OCTAGON.c | f_gold | 3 | double f_gold ( double side ) {
return ( float ) ( 2 * ( 1 + sqrt ( 2 ) ) * side * side );
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tar-1.34#misc_prep#page_aligned_alloc.c | tar-1.34 | misc.c | page_aligned_alloc | 10 | void *
page_aligned_alloc (void **ptr, size_t size)
{
size_t alignment = getpagesize ();
size_t size1 = size + alignment;
if (size1 < size)
xalloc_die ();
*ptr = xmalloc (size1);
return ptr_align (*ptr, alignment);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gprolog-1.5.0#wam_inst_prep#Pl_Cut.c | gprolog-1.5.0 | wam_inst.c | Pl_Cut | 5 | void
Pl_Cut(WamWord b_word)
{
(B = (((((WamWordP *) pl_reg_bank)[256 +7]) + ((PlLong) ((b_word) << 0) >> 3))), (((WamWordP *) pl_reg_bank)[256 +0]) = (*(WamWord **) &(B[-6])));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.