id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
21,494
char* qdev_get_fw_dev_path(DeviceState *dev) { char path[128]; int l; l = qdev_get_fw_dev_path_helper(dev, path, 128); path[l-1] = '\0'; return strdup(path); }
false
qemu
a5cf8262e4eb9c4646434e2c6211ef8608db3233
char* qdev_get_fw_dev_path(DeviceState *dev) { char path[128]; int l; l = qdev_get_fw_dev_path_helper(dev, path, 128); path[l-1] = '\0'; return strdup(path); }
{ "code": [], "line_no": [] }
char* FUNC_0(DeviceState *VAR_0) { char VAR_1[128]; int VAR_2; VAR_2 = qdev_get_fw_dev_path_helper(VAR_0, VAR_1, 128); VAR_1[VAR_2-1] = '\0'; return strdup(VAR_1); }
[ "char* FUNC_0(DeviceState *VAR_0)\n{", "char VAR_1[128];", "int VAR_2;", "VAR_2 = qdev_get_fw_dev_path_helper(VAR_0, VAR_1, 128);", "VAR_1[VAR_2-1] = '\\0';", "return strdup(VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ] ]
21,495
static ssize_t drop_sync(QIOChannel *ioc, size_t size) { ssize_t ret, dropped = size; char small[1024]; char *buffer; buffer = sizeof(small) < size ? small : g_malloc(MIN(65536, size)); while (size > 0) { ret = read_sync(ioc, buffer, MIN(65536, size)); if (ret < 0) { ...
false
qemu
a5068244b4f0c994791303b6186b6f732adab6c2
static ssize_t drop_sync(QIOChannel *ioc, size_t size) { ssize_t ret, dropped = size; char small[1024]; char *buffer; buffer = sizeof(small) < size ? small : g_malloc(MIN(65536, size)); while (size > 0) { ret = read_sync(ioc, buffer, MIN(65536, size)); if (ret < 0) { ...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(QIOChannel *ioc, size_t size) { ssize_t ret, dropped = size; char VAR_0[1024]; char *VAR_1; VAR_1 = sizeof(VAR_0) < size ? VAR_0 : g_malloc(MIN(65536, size)); while (size > 0) { ret = read_sync(ioc, VAR_1, MIN(65536, size)); if (ret < 0) { ...
[ "static ssize_t FUNC_0(QIOChannel *ioc, size_t size)\n{", "ssize_t ret, dropped = size;", "char VAR_0[1024];", "char *VAR_1;", "VAR_1 = sizeof(VAR_0) < size ? VAR_0 : g_malloc(MIN(65536, size));", "while (size > 0) {", "ret = read_sync(ioc, VAR_1, MIN(65536, size));", "if (ret < 0) {", "goto cleanup...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
21,496
static BlockAIOCB *bdrv_aio_readv_em(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return bdrv_aio_rw_vector(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static BlockAIOCB *bdrv_aio_readv_em(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return bdrv_aio_rw_vector(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); }
{ "code": [], "line_no": [] }
static BlockAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return bdrv_aio_rw_vector(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); }
[ "static BlockAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockCompletionFunc *cb, void *opaque)\n{", "return bdrv_aio_rw_vector(bs, sector_num, qiov, nb_sectors, cb, opaque, 0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ] ]
21,497
static int seek_frame_generic(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { int index; int64_t ret; AVStream *st; AVIndexEntry *ie; st = s->streams[stream_index]; index = av_index_search_timestamp(st, timestamp, flags); ...
false
FFmpeg
36a60fad6215db39e9cd9523e3425f64464046c7
static int seek_frame_generic(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { int index; int64_t ret; AVStream *st; AVIndexEntry *ie; st = s->streams[stream_index]; index = av_index_search_timestamp(st, timestamp, flags); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { int VAR_4; int64_t ret; AVStream *st; AVIndexEntry *ie; st = VAR_0->streams[VAR_1]; VAR_4 = av_index_search_timestamp(st, VAR_2, VAR_3); if(VAR_4 < 0 && st->nb_ind...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nint VAR_1, int64_t VAR_2, int VAR_3)\n{", "int VAR_4;", "int64_t ret;", "AVStream *st;", "AVIndexEntry *ie;", "st = VAR_0->streams[VAR_1];", "VAR_4 = av_index_search_timestamp(st, VAR_2, VAR_3);", "if(VAR_4 < 0 && st->nb_index_entries && VAR_2 < st->index_en...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53, 55 ...
21,498
static void dvbsub_parse_page_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; DVBSubRegionDisplay *display; DVBSubRegionDisplay *tmp_display_list, **tmp_ptr; const uint8_t *buf_end = buf + buf_size;...
false
FFmpeg
607ad990d31e6be52980970e5ce8cd25ab3de812
static void dvbsub_parse_page_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; DVBSubRegionDisplay *display; DVBSubRegionDisplay *tmp_display_list, **tmp_ptr; const uint8_t *buf_end = buf + buf_size;...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { DVBSubContext *ctx = VAR_0->priv_data; DVBSubRegionDisplay *display; DVBSubRegionDisplay *tmp_display_list, **tmp_ptr; const uint8_t *VAR_3 = VAR_1 + VAR_2; int VAR_4; i...
[ "static void FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "DVBSubContext *ctx = VAR_0->priv_data;", "DVBSubRegionDisplay *display;", "DVBSubRegionDisplay *tmp_display_list, **tmp_ptr;", "const uint8_t *VAR_3 = VAR_1 + VAR_2;", "int VAR_4;", "int VAR_5;", "if (VAR_2 < 1)\nreturn...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
21,499
static void test_qemu_strtoul_negative(void) { const char *str = " \t -321"; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, -321ul); g_assert(endp...
false
qemu
bc7c08a2c375acb7ae4d433054415588b176d34c
static void test_qemu_strtoul_negative(void) { const char *str = " \t -321"; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, -321ul); g_assert(endp...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { const char *VAR_0 = " \t -321"; char VAR_1 = 'X'; const char *VAR_2 = &VAR_1; unsigned long VAR_3 = 999; int VAR_4; VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3); g_assert_cmpint(VAR_4, ==, 0); g_assert_cmpint(VAR_3, ==, -321ul); g_assert(VA...
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = \" \\t -321\";", "char VAR_1 = 'X';", "const char *VAR_2 = &VAR_1;", "unsigned long VAR_3 = 999;", "int VAR_4;", "VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3);", "g_assert_cmpint(VAR_4, ==, 0);", "g_assert_cmpint(VAR_3, ==, -321ul);", "g_asser...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
21,500
static int is_cpuid_supported(void) { return 1; }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
static int is_cpuid_supported(void) { return 1; }
{ "code": [], "line_no": [] }
static int FUNC_0(void) { return 1; }
[ "static int FUNC_0(void)\n{", "return 1;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
21,501
void vnc_display_init(const char *id) { VncDisplay *vs; if (vnc_display_find(id) != NULL) { return; } vs = g_malloc0(sizeof(*vs)); vs->id = strdup(id); QTAILQ_INSERT_TAIL(&vnc_displays, vs, next); vs->lsock = -1; #ifdef CONFIG_VNC_WS vs->lwebsock = -1; #endif ...
false
qemu
8e9b0d24fb986d4241ae3b77752eca5dab4cb486
void vnc_display_init(const char *id) { VncDisplay *vs; if (vnc_display_find(id) != NULL) { return; } vs = g_malloc0(sizeof(*vs)); vs->id = strdup(id); QTAILQ_INSERT_TAIL(&vnc_displays, vs, next); vs->lsock = -1; #ifdef CONFIG_VNC_WS vs->lwebsock = -1; #endif ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0) { VncDisplay *vs; if (vnc_display_find(VAR_0) != NULL) { return; } vs = g_malloc0(sizeof(*vs)); vs->VAR_0 = strdup(VAR_0); QTAILQ_INSERT_TAIL(&vnc_displays, vs, next); vs->lsock = -1; #ifdef CONFIG_VNC_WS vs->lwebsock = -1; #endif ...
[ "void FUNC_0(const char *VAR_0)\n{", "VncDisplay *vs;", "if (vnc_display_find(VAR_0) != NULL) {", "return;", "}", "vs = g_malloc0(sizeof(*vs));", "vs->VAR_0 = strdup(VAR_0);", "QTAILQ_INSERT_TAIL(&vnc_displays, vs, next);", "vs->lsock = -1;", "#ifdef CONFIG_VNC_WS\nvs->lwebsock = -1;", "#endif\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55...
21,502
static int get_key(const char **ropts, const char *delim, char *key, unsigned key_size) { unsigned key_pos = 0; const char *opts = *ropts; opts += strspn(opts, WHITESPACES); while (is_key_char(*opts)) { key[key_pos++] = *opts; if (key_pos == key_size) key_pos--; ...
false
FFmpeg
e021eeb9f06f4f4d83690d07b47cdcc4172a61e1
static int get_key(const char **ropts, const char *delim, char *key, unsigned key_size) { unsigned key_pos = 0; const char *opts = *ropts; opts += strspn(opts, WHITESPACES); while (is_key_char(*opts)) { key[key_pos++] = *opts; if (key_pos == key_size) key_pos--; ...
{ "code": [], "line_no": [] }
static int FUNC_0(const char **VAR_0, const char *VAR_1, char *VAR_2, unsigned VAR_3) { unsigned VAR_4 = 0; const char *VAR_5 = *VAR_0; VAR_5 += strspn(VAR_5, WHITESPACES); while (is_key_char(*VAR_5)) { VAR_2[VAR_4++] = *VAR_5; if (VAR_4 == VAR_3) VAR_4--; ...
[ "static int FUNC_0(const char **VAR_0, const char *VAR_1, char *VAR_2, unsigned VAR_3)\n{", "unsigned VAR_4 = 0;", "const char *VAR_5 = *VAR_0;", "VAR_5 += strspn(VAR_5, WHITESPACES);", "while (is_key_char(*VAR_5)) {", "VAR_2[VAR_4++] = *VAR_5;", "if (VAR_4 == VAR_3)\nVAR_4--;", "(VAR_5)++;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ] ]
21,503
static void expand_timestamps(void *log, struct sbg_script *s) { int i, nb_rel = 0; int64_t now, cur_ts, delta = 0; for (i = 0; i < s->nb_tseq; i++) nb_rel += s->tseq[i].ts.type == 'N'; if (nb_rel == s->nb_tseq) { /* All ts are relative to NOW: consider NOW = 0 */ now =...
false
FFmpeg
dbefbb61b785cd77810c032f5cdb499d2a92df07
static void expand_timestamps(void *log, struct sbg_script *s) { int i, nb_rel = 0; int64_t now, cur_ts, delta = 0; for (i = 0; i < s->nb_tseq; i++) nb_rel += s->tseq[i].ts.type == 'N'; if (nb_rel == s->nb_tseq) { now = 0; if (s->start_ts != AV_NOPTS_VALUE) ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, struct sbg_script *VAR_1) { int VAR_2, VAR_3 = 0; int64_t now, cur_ts, delta = 0; for (VAR_2 = 0; VAR_2 < VAR_1->nb_tseq; VAR_2++) VAR_3 += VAR_1->tseq[VAR_2].ts.type == 'N'; if (VAR_3 == VAR_1->nb_tseq) { now = 0; if (VAR_1->st...
[ "static void FUNC_0(void *VAR_0, struct sbg_script *VAR_1)\n{", "int VAR_2, VAR_3 = 0;", "int64_t now, cur_ts, delta = 0;", "for (VAR_2 = 0; VAR_2 < VAR_1->nb_tseq; VAR_2++)", "VAR_3 += VAR_1->tseq[VAR_2].ts.type == 'N';", "if (VAR_3 == VAR_1->nb_tseq) {", "now = 0;", "if (VAR_1->start_ts != AV_NOPTS_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49, 51, 53 ], [ 55, 57...
21,504
static void generate_len_table(uint8_t *dst, uint64_t *stats, int size){ heap_elem_t h[size]; int up[2*size]; int len[2*size]; int offset, i, next; for(offset=1; ; offset<<=1){ for(i=0; i<size; i++){ h[i].name = i; h[i].val = (stats[i] << 8) + offset; ...
false
FFmpeg
2bf4aa2e937737deb781706673f806d4388cf796
static void generate_len_table(uint8_t *dst, uint64_t *stats, int size){ heap_elem_t h[size]; int up[2*size]; int len[2*size]; int offset, i, next; for(offset=1; ; offset<<=1){ for(i=0; i<size; i++){ h[i].name = i; h[i].val = (stats[i] << 8) + offset; ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, uint64_t *VAR_1, int VAR_2){ heap_elem_t h[VAR_2]; int VAR_3[2*VAR_2]; int VAR_4[2*VAR_2]; int VAR_5, VAR_6, VAR_7; for(VAR_5=1; ; VAR_5<<=1){ for(VAR_6=0; VAR_6<VAR_2; VAR_6++){ h[VAR_6].name = VAR_6; h[VAR_6].val = (VAR_1...
[ "static void FUNC_0(uint8_t *VAR_0, uint64_t *VAR_1, int VAR_2){", "heap_elem_t h[VAR_2];", "int VAR_3[2*VAR_2];", "int VAR_4[2*VAR_2];", "int VAR_5, VAR_6, VAR_7;", "for(VAR_5=1; ; VAR_5<<=1){", "for(VAR_6=0; VAR_6<VAR_2; VAR_6++){", "h[VAR_6].name = VAR_6;", "h[VAR_6].val = (VAR_1[VAR_6] << 8) + V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
21,505
static int scale_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame) { AVFilterContext *avctx = inlink->dst; AVFilterLink *outlink = avctx->outputs[0]; ScaleVAAPIContext *ctx = avctx->priv; AVFrame *output_frame = NULL; VASurfaceID input_surface, output_surface; VAProcPipelineP...
false
FFmpeg
bdf7610eb266fd3de650040c97328791868abd82
static int scale_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame) { AVFilterContext *avctx = inlink->dst; AVFilterLink *outlink = avctx->outputs[0]; ScaleVAAPIContext *ctx = avctx->priv; AVFrame *output_frame = NULL; VASurfaceID input_surface, output_surface; VAProcPipelineP...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1) { AVFilterContext *avctx = VAR_0->dst; AVFilterLink *outlink = avctx->outputs[0]; ScaleVAAPIContext *ctx = avctx->priv; AVFrame *output_frame = NULL; VASurfaceID input_surface, output_surface; VAProcPipelineParameterBuffer params; ...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)\n{", "AVFilterContext *avctx = VAR_0->dst;", "AVFilterLink *outlink = avctx->outputs[0];", "ScaleVAAPIContext *ctx = avctx->priv;", "AVFrame *output_frame = NULL;", "VASurfaceID input_surface, output_surface;", "VAProcPipelineParameterBuffer params...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 33, 35 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
21,506
static int get_packet(URLContext *s, int for_header) { RTMPContext *rt = s->priv_data; int ret; uint8_t *p; const uint8_t *next; uint32_t data_size; uint32_t ts, cts, pts=0; if (rt->state == STATE_STOPPED) return AVERROR_EOF; for (;;) { RTMPPacket rpkt = { ...
true
FFmpeg
0849a0ebb2c94856c3a94cb114a1412e44904c28
static int get_packet(URLContext *s, int for_header) { RTMPContext *rt = s->priv_data; int ret; uint8_t *p; const uint8_t *next; uint32_t data_size; uint32_t ts, cts, pts=0; if (rt->state == STATE_STOPPED) return AVERROR_EOF; for (;;) { RTMPPacket rpkt = { ...
{ "code": [ " if (rt->bytes_read > rt->last_bytes_read + rt->client_report_size) {" ], "line_no": [ 47 ] }
static int FUNC_0(URLContext *VAR_0, int VAR_1) { RTMPContext *rt = VAR_0->priv_data; int VAR_2; uint8_t *p; const uint8_t *VAR_3; uint32_t data_size; uint32_t ts, cts, pts=0; if (rt->state == STATE_STOPPED) return AVERROR_EOF; for (;;) { RTMPPacket rpkt = ...
[ "static int FUNC_0(URLContext *VAR_0, int VAR_1)\n{", "RTMPContext *rt = VAR_0->priv_data;", "int VAR_2;", "uint8_t *p;", "const uint8_t *VAR_3;", "uint32_t data_size;", "uint32_t ts, cts, pts=0;", "if (rt->state == STATE_STOPPED)\nreturn AVERROR_EOF;", "for (;;) {", "RTMPPacket rpkt = { 0 };", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
21,507
static void save_display_set(DVBSubContext *ctx) { DVBSubRegion *region; DVBSubRegionDisplay *display; DVBSubCLUT *clut; uint32_t *clut_table; int x_pos, y_pos, width, height; int x, y, y_off, x_off; uint32_t *pbuf; char filename[32]; static int fileno_index = 0; x_pos = -1; ...
true
FFmpeg
8de0990e9f22d7f728f70d5a03f3e78fc958f658
static void save_display_set(DVBSubContext *ctx) { DVBSubRegion *region; DVBSubRegionDisplay *display; DVBSubCLUT *clut; uint32_t *clut_table; int x_pos, y_pos, width, height; int x, y, y_off, x_off; uint32_t *pbuf; char filename[32]; static int fileno_index = 0; x_pos = -1; ...
{ "code": [], "line_no": [] }
static void FUNC_0(DVBSubContext *VAR_0) { DVBSubRegion *region; DVBSubRegionDisplay *display; DVBSubCLUT *clut; uint32_t *clut_table; int VAR_1, VAR_2, VAR_3, VAR_4; int VAR_5, VAR_6, VAR_7, VAR_8; uint32_t *pbuf; char VAR_9[32]; static int VAR_10 = 0; VAR_1 = -1; VAR_2 = -1...
[ "static void FUNC_0(DVBSubContext *VAR_0)\n{", "DVBSubRegion *region;", "DVBSubRegionDisplay *display;", "DVBSubCLUT *clut;", "uint32_t *clut_table;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "uint32_t *pbuf;", "char VAR_9[32];", "static int VAR_10 = 0;", "VAR_1 = -1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ],...
21,509
int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen, void *log_ctx) { char *tail, color_string2[128]; const ColorEntry *entry; int len, hex_offset = 0; if (color_string[0] == '#') { hex_offset = 1; } else if (!strncmp(color_string, "0x", 2)...
true
FFmpeg
2b336df3cb9d9bcc12c4b398ea1dbdfe224d152e
int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen, void *log_ctx) { char *tail, color_string2[128]; const ColorEntry *entry; int len, hex_offset = 0; if (color_string[0] == '#') { hex_offset = 1; } else if (!strncmp(color_string, "0x", 2)...
{ "code": [ " alpha = 255 * strtod(alpha_string, &tail);" ], "line_no": [ 125 ] }
int FUNC_0(uint8_t *VAR_0, const char *VAR_1, int VAR_2, void *VAR_3) { char *VAR_10, VAR_5[128]; const ColorEntry *VAR_6; int VAR_7, VAR_8 = 0; if (VAR_1[0] == '#') { VAR_8 = 1; } else if (!strncmp(VAR_1, "0x", 2)) VAR_8 = 2; if (VAR_2 < 0) ...
[ "int FUNC_0(uint8_t *VAR_0, const char *VAR_1, int VAR_2,\nvoid *VAR_3)\n{", "char *VAR_10, VAR_5[128];", "const ColorEntry *VAR_6;", "int VAR_7, VAR_8 = 0;", "if (VAR_1[0] == '#') {", "VAR_8 = 1;", "} else if (!strncmp(VAR_1, \"0x\", 2))", "VAR_8 = 2;", "if (VAR_2 < 0)\nVAR_2 = strlen(VAR_1);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
21,510
int i2c_start_transfer(I2CBus *bus, uint8_t address, int recv) { BusChild *kid; I2CSlaveClass *sc; I2CNode *node; if (address == 0x00) { /* * This is a broadcast, the current_devs will be all the devices of the * bus. */ bus->broadcast = true; ...
true
qemu
71ae65e552fc6e03572e430009b98b80b40f1c4d
int i2c_start_transfer(I2CBus *bus, uint8_t address, int recv) { BusChild *kid; I2CSlaveClass *sc; I2CNode *node; if (address == 0x00) { bus->broadcast = true; } QTAILQ_FOREACH(kid, &bus->qbus.children, sibling) { DeviceState *qdev = kid->child; ...
{ "code": [ " if (address == 0x00) {" ], "line_no": [ 13 ] }
int FUNC_0(I2CBus *VAR_0, uint8_t VAR_1, int VAR_2) { BusChild *kid; I2CSlaveClass *sc; I2CNode *node; if (VAR_1 == 0x00) { VAR_0->broadcast = true; } QTAILQ_FOREACH(kid, &VAR_0->qbus.children, sibling) { DeviceState *qdev = kid->child; I2CSl...
[ "int FUNC_0(I2CBus *VAR_0, uint8_t VAR_1, int VAR_2)\n{", "BusChild *kid;", "I2CSlaveClass *sc;", "I2CNode *node;", "if (VAR_1 == 0x00) {", "VAR_0->broadcast = true;", "}", "QTAILQ_FOREACH(kid, &VAR_0->qbus.children, sibling) {", "DeviceState *qdev = kid->child;", "I2CSlave *candidate = I2C_SLAVE(...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ...
21,512
void ff_MPV_encode_init_x86(MpegEncContext *s) { int mm_flags = av_get_cpu_flags(); const int dct_algo = s->avctx->dct_algo; if (dct_algo == FF_DCT_AUTO || dct_algo == FF_DCT_MMX) { #if HAVE_MMX_INLINE if (mm_flags & AV_CPU_FLAG_MMX && HAVE_MMX) s->dct_quantize = dct_quantize_MM...
false
FFmpeg
e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6
void ff_MPV_encode_init_x86(MpegEncContext *s) { int mm_flags = av_get_cpu_flags(); const int dct_algo = s->avctx->dct_algo; if (dct_algo == FF_DCT_AUTO || dct_algo == FF_DCT_MMX) { #if HAVE_MMX_INLINE if (mm_flags & AV_CPU_FLAG_MMX && HAVE_MMX) s->dct_quantize = dct_quantize_MM...
{ "code": [], "line_no": [] }
void FUNC_0(MpegEncContext *VAR_0) { int VAR_1 = av_get_cpu_flags(); const int VAR_2 = VAR_0->avctx->VAR_2; if (VAR_2 == FF_DCT_AUTO || VAR_2 == FF_DCT_MMX) { #if HAVE_MMX_INLINE if (VAR_1 & AV_CPU_FLAG_MMX && HAVE_MMX) VAR_0->dct_quantize = dct_quantize_MMX; #endif #if HAVE_M...
[ "void FUNC_0(MpegEncContext *VAR_0)\n{", "int VAR_1 = av_get_cpu_flags();", "const int VAR_2 = VAR_0->avctx->VAR_2;", "if (VAR_2 == FF_DCT_AUTO || VAR_2 == FF_DCT_MMX) {", "#if HAVE_MMX_INLINE\nif (VAR_1 & AV_CPU_FLAG_MMX && HAVE_MMX)\nVAR_0->dct_quantize = dct_quantize_MMX;", "#endif\n#if HAVE_MMXEXT_INL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 19, 21, 23, 25 ], [ 27, 29, 31, 33 ], [ 35, 37, 39, 41 ], [ 43, 45 ], [ 47 ] ]
21,514
static void smbios_build_type_1_fields(void) { smbios_maybe_add_str(1, offsetof(struct smbios_type_1, manufacturer_str), type1.manufacturer); smbios_maybe_add_str(1, offsetof(struct smbios_type_1, product_name_str), type1.product); smbios_maybe_add_str...
false
qemu
9c5ce8db2e5c2769ed2fd3d91928dd1853b5ce7c
static void smbios_build_type_1_fields(void) { smbios_maybe_add_str(1, offsetof(struct smbios_type_1, manufacturer_str), type1.manufacturer); smbios_maybe_add_str(1, offsetof(struct smbios_type_1, product_name_str), type1.product); smbios_maybe_add_str...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { smbios_maybe_add_str(1, offsetof(struct smbios_type_1, manufacturer_str), type1.manufacturer); smbios_maybe_add_str(1, offsetof(struct smbios_type_1, product_name_str), type1.product); smbios_maybe_add_str(1, offsetof(struct ...
[ "static void FUNC_0(void)\n{", "smbios_maybe_add_str(1, offsetof(struct smbios_type_1, manufacturer_str),\ntype1.manufacturer);", "smbios_maybe_add_str(1, offsetof(struct smbios_type_1, product_name_str),\ntype1.product);", "smbios_maybe_add_str(1, offsetof(struct smbios_type_1, version_str),\ntype1.version);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 41, 43 ], [ 45 ], [ 47 ] ]
21,515
static inline int mirror_clip_sectors(MirrorBlockJob *s, int64_t sector_num, int nb_sectors) { return MIN(nb_sectors, s->bdev_length / BDRV_SECTOR_SIZE - sector_num); }
false
qemu
fb2ef7919bd7b125a2ff6cb70689a7ab93b9d05a
static inline int mirror_clip_sectors(MirrorBlockJob *s, int64_t sector_num, int nb_sectors) { return MIN(nb_sectors, s->bdev_length / BDRV_SECTOR_SIZE - sector_num); }
{ "code": [], "line_no": [] }
static inline int FUNC_0(MirrorBlockJob *VAR_0, int64_t VAR_1, int VAR_2) { return MIN(VAR_2, VAR_0->bdev_length / BDRV_SECTOR_SIZE - VAR_1); }
[ "static inline int FUNC_0(MirrorBlockJob *VAR_0,\nint64_t VAR_1,\nint VAR_2)\n{", "return MIN(VAR_2,\nVAR_0->bdev_length / BDRV_SECTOR_SIZE - VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 13 ] ]
21,516
static void bcm2835_property_mbox_push(BCM2835PropertyState *s, uint32_t value) { uint32_t tag; uint32_t bufsize; uint32_t tot_len; size_t resplen; uint32_t tmp; value &= ~0xf; s->addr = value; tot_len = ldl_phys(&s->dma_as, value); /* @(addr + 4) : Buffer response ...
false
qemu
f0afa73164778570083504a185d7498884c68d65
static void bcm2835_property_mbox_push(BCM2835PropertyState *s, uint32_t value) { uint32_t tag; uint32_t bufsize; uint32_t tot_len; size_t resplen; uint32_t tmp; value &= ~0xf; s->addr = value; tot_len = ldl_phys(&s->dma_as, value); value = s->addr + 8; w...
{ "code": [], "line_no": [] }
static void FUNC_0(BCM2835PropertyState *VAR_0, uint32_t VAR_1) { uint32_t tag; uint32_t bufsize; uint32_t tot_len; size_t resplen; uint32_t tmp; VAR_1 &= ~0xf; VAR_0->addr = VAR_1; tot_len = ldl_phys(&VAR_0->dma_as, VAR_1); VAR_1 = VAR_0->addr + 8; while...
[ "static void FUNC_0(BCM2835PropertyState *VAR_0, uint32_t VAR_1)\n{", "uint32_t tag;", "uint32_t bufsize;", "uint32_t tot_len;", "size_t resplen;", "uint32_t tmp;", "VAR_1 &= ~0xf;", "VAR_0->addr = VAR_1;", "tot_len = ldl_phys(&VAR_0->dma_as, VAR_1);", "VAR_1 = VAR_0->addr + 8;", "while (VAR_1 +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ], [ 53 ], [ 55 ...
21,517
ObjectClass *object_class_dynamic_cast(ObjectClass *class, const char *typename) { TypeImpl *target_type = type_get_by_name(typename); TypeImpl *type = class->type; ObjectClass *ret = NULL; if (type->num_interfaces && type_is_ancestor(target_type, type_inte...
false
qemu
00e2ceae6c55bef40f5128a3e606f5c44351e0f9
ObjectClass *object_class_dynamic_cast(ObjectClass *class, const char *typename) { TypeImpl *target_type = type_get_by_name(typename); TypeImpl *type = class->type; ObjectClass *ret = NULL; if (type->num_interfaces && type_is_ancestor(target_type, type_inte...
{ "code": [], "line_no": [] }
ObjectClass *FUNC_0(ObjectClass *class, const char *typename) { TypeImpl *target_type = type_get_by_name(typename); TypeImpl *type = class->type; ObjectClass *ret = NULL; if (type->num_interfaces && type_is_ancestor(target_type, type_interface)) { ...
[ "ObjectClass *FUNC_0(ObjectClass *class,\nconst char *typename)\n{", "TypeImpl *target_type = type_get_by_name(typename);", "TypeImpl *type = class->type;", "ObjectClass *ret = NULL;", "if (type->num_interfaces && type_is_ancestor(target_type, type_interface)) {", "int VAR_0 = 0;", "GSList *i;", "for ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
21,518
static void sdhci_send_command(SDHCIState *s) { SDRequest request; uint8_t response[16]; int rlen; s->errintsts = 0; s->acmd12errsts = 0; request.cmd = s->cmdreg >> 8; request.arg = s->argument; DPRINT_L1("sending CMD%u ARG[0x%08x]\n", request.cmd, request.arg); rlen = sd...
false
qemu
d368ba4376b2c1c24175c74b3733b8fe64dbe8a6
static void sdhci_send_command(SDHCIState *s) { SDRequest request; uint8_t response[16]; int rlen; s->errintsts = 0; s->acmd12errsts = 0; request.cmd = s->cmdreg >> 8; request.arg = s->argument; DPRINT_L1("sending CMD%u ARG[0x%08x]\n", request.cmd, request.arg); rlen = sd...
{ "code": [], "line_no": [] }
static void FUNC_0(SDHCIState *VAR_0) { SDRequest request; uint8_t response[16]; int VAR_1; VAR_0->errintsts = 0; VAR_0->acmd12errsts = 0; request.cmd = VAR_0->cmdreg >> 8; request.arg = VAR_0->argument; DPRINT_L1("sending CMD%u ARG[0x%08x]\n", request.cmd, request.arg); ...
[ "static void FUNC_0(SDHCIState *VAR_0)\n{", "SDRequest request;", "uint8_t response[16];", "int VAR_1;", "VAR_0->errintsts = 0;", "VAR_0->acmd12errsts = 0;", "request.cmd = VAR_0->cmdreg >> 8;", "request.arg = VAR_0->argument;", "DPRINT_L1(\"sending CMD%u ARG[0x%08x]\\n\", request.cmd, request.arg);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [...
21,519
static void ss5_init(int ram_size, int vga_ram_size, int boot_device, DisplayState *ds, const char **fd_filename, int snapshot, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { if ...
false
qemu
4edebb0e8e14a5b934114b5ff74cb86437bb2532
static void ss5_init(int ram_size, int vga_ram_size, int boot_device, DisplayState *ds, const char **fd_filename, int snapshot, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { if ...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, int VAR_2, DisplayState *VAR_3, const char **VAR_4, int VAR_5, const char *VAR_6, const char *VAR_7, const char *VAR_8, const char *VAR_9) { if (VAR_9 == NULL) VAR_9 = "Fujitsu MB86904"; ...
[ "static void FUNC_0(int VAR_0, int VAR_1, int VAR_2,\nDisplayState *VAR_3, const char **VAR_4, int VAR_5,\nconst char *VAR_6, const char *VAR_7,\nconst char *VAR_8, const char *VAR_9)\n{", "if (VAR_9 == NULL)\nVAR_9 = \"Fujitsu MB86904\";", "sun4m_common_init(VAR_0, VAR_2, VAR_3, VAR_6,\nVAR_7, VAR_8, VAR_9,\n0...
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11, 13 ], [ 15, 17, 19 ], [ 21 ] ]
21,520
const char *qemu_opt_get(QemuOpts *opts, const char *name) { QemuOpt *opt = qemu_opt_find(opts, name); if (!opt) { const QemuOptDesc *desc = find_desc_by_name(opts->list->desc, name); if (desc && desc->def_value_str) { return desc->def_value_str; } } return...
false
qemu
435db4cf29b88b6612e30acda01cd18788dff458
const char *qemu_opt_get(QemuOpts *opts, const char *name) { QemuOpt *opt = qemu_opt_find(opts, name); if (!opt) { const QemuOptDesc *desc = find_desc_by_name(opts->list->desc, name); if (desc && desc->def_value_str) { return desc->def_value_str; } } return...
{ "code": [], "line_no": [] }
const char *FUNC_0(QemuOpts *VAR_0, const char *VAR_1) { QemuOpt *opt = qemu_opt_find(VAR_0, VAR_1); if (!opt) { const QemuOptDesc *VAR_2 = find_desc_by_name(VAR_0->list->VAR_2, VAR_1); if (VAR_2 && VAR_2->def_value_str) { return VAR_2->def_value_str; } } r...
[ "const char *FUNC_0(QemuOpts *VAR_0, const char *VAR_1)\n{", "QemuOpt *opt = qemu_opt_find(VAR_0, VAR_1);", "if (!opt) {", "const QemuOptDesc *VAR_2 = find_desc_by_name(VAR_0->list->VAR_2, VAR_1);", "if (VAR_2 && VAR_2->def_value_str) {", "return VAR_2->def_value_str;", "}", "}", "return opt ? opt->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
21,521
void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time) { QEMUTimer **pt, *t; qemu_del_timer(ts); /* add the timer in the sorted list */ /* NOTE: this code must be signal safe because qemu_timer_expired() can be called from a signal. */ pt = &active_timers[ts->clock->type]; fo...
false
qemu
cd48d7e8f322cdb05692b023b168816ed6306fc4
void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time) { QEMUTimer **pt, *t; qemu_del_timer(ts); pt = &active_timers[ts->clock->type]; for(;;) { t = *pt; if (!t) break; if (t->expire_time > expire_time) break; pt = &t-...
{ "code": [], "line_no": [] }
void FUNC_0(QEMUTimer *VAR_0, int64_t VAR_1) { QEMUTimer **pt, *t; qemu_del_timer(VAR_0); pt = &active_timers[VAR_0->clock->type]; for(;;) { t = *pt; if (!t) break; if (t->VAR_1 > VAR_1) break; pt = &t->next; } ...
[ "void FUNC_0(QEMUTimer *VAR_0, int64_t VAR_1)\n{", "QEMUTimer **pt, *t;", "qemu_del_timer(VAR_0);", "pt = &active_timers[VAR_0->clock->type];", "for(;;) {", "t = *pt;", "if (!t)\nbreak;", "if (t->VAR_1 > VAR_1)\nbreak;", "pt = &t->next;", "}", "VAR_0->VAR_1 = VAR_1;", "VAR_0->next = *pt;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57, 59 ], ...
21,522
static void qemu_system_suspend(void) { pause_all_vcpus(); notifier_list_notify(&suspend_notifiers, NULL); runstate_set(RUN_STATE_SUSPENDED); monitor_protocol_event(QEVENT_SUSPEND, NULL); is_suspended = true; }
false
qemu
9abc62f6445795522d1bf5bf17f642e44eaf032d
static void qemu_system_suspend(void) { pause_all_vcpus(); notifier_list_notify(&suspend_notifiers, NULL); runstate_set(RUN_STATE_SUSPENDED); monitor_protocol_event(QEVENT_SUSPEND, NULL); is_suspended = true; }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { pause_all_vcpus(); notifier_list_notify(&suspend_notifiers, NULL); runstate_set(RUN_STATE_SUSPENDED); monitor_protocol_event(QEVENT_SUSPEND, NULL); is_suspended = true; }
[ "static void FUNC_0(void)\n{", "pause_all_vcpus();", "notifier_list_notify(&suspend_notifiers, NULL);", "runstate_set(RUN_STATE_SUSPENDED);", "monitor_protocol_event(QEVENT_SUSPEND, NULL);", "is_suspended = true;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
21,523
static void RENAME(yuv2rgb565_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, ...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
static void RENAME(yuv2rgb565_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, ...
{ "code": [], "line_no": [] }
static void FUNC_0(yuv2rgb565_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, ...
[ "static void FUNC_0(yuv2rgb565_1)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *ubuf0, const uint16_t *ubuf1,\nconst uint16_t *vbuf0, const uint16_t *vbuf1,\nconst uint16_t *abuf0, uint8_t *dest,\nint dstW, int uvalpha, enum PixelFormat dstFormat,\nint flags, int y)\n{", "const uint16_t *VAR_0= buf0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 19 ], [ 21, 23, 25, 27, 29, 31, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55 ], [ 57 ], [ 59, 61, 63, 65, 67, 69, 73, 75,...
21,524
static void numa_node_parse_cpus(int nodenr, const char *cpus) { char *endptr; unsigned long long value, endvalue; value = strtoull(cpus, &endptr, 10); if (*endptr == '-') { endvalue = strtoull(endptr+1, &endptr, 10); } else { endvalue = value; } if (!(endvalue ...
false
qemu
c881e20eed4911ab6f8c674f2b1bf225a2cdde71
static void numa_node_parse_cpus(int nodenr, const char *cpus) { char *endptr; unsigned long long value, endvalue; value = strtoull(cpus, &endptr, 10); if (*endptr == '-') { endvalue = strtoull(endptr+1, &endptr, 10); } else { endvalue = value; } if (!(endvalue ...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, const char *VAR_1) { char *VAR_2; unsigned long long VAR_3, VAR_4; VAR_3 = strtoull(VAR_1, &VAR_2, 10); if (*VAR_2 == '-') { VAR_4 = strtoull(VAR_2+1, &VAR_2, 10); } else { VAR_4 = VAR_3; } if (!(VAR_4 < MAX_CPUMASK_BITS)) { ...
[ "static void FUNC_0(int VAR_0, const char *VAR_1)\n{", "char *VAR_2;", "unsigned long long VAR_3, VAR_4;", "VAR_3 = strtoull(VAR_1, &VAR_2, 10);", "if (*VAR_2 == '-') {", "VAR_4 = strtoull(VAR_2+1, &VAR_2, 10);", "} else {", "VAR_4 = VAR_3;", "}", "if (!(VAR_4 < MAX_CPUMASK_BITS)) {", "VAR_4 = M...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 39 ], [ 41 ] ]
21,525
static void icount_dummy_timer(void *opaque) { (void)opaque; }
false
qemu
e76d1798faa6d29f54c0930a034b67f3ecdb947d
static void icount_dummy_timer(void *opaque) { (void)opaque; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { (void)VAR_0; }
[ "static void FUNC_0(void *VAR_0)\n{", "(void)VAR_0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
21,526
static int gdb_set_float_reg(CPUPPCState *env, uint8_t *mem_buf, int n) { if (n < 32) { env->fpr[n] = ldfq_p(mem_buf); return 8; } if (n == 32) { /* FPSCR not implemented */ return 4; } return 0; }
false
qemu
d6478bc7e92db4669fac701d7bb8c51756b61d8a
static int gdb_set_float_reg(CPUPPCState *env, uint8_t *mem_buf, int n) { if (n < 32) { env->fpr[n] = ldfq_p(mem_buf); return 8; } if (n == 32) { return 4; } return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(CPUPPCState *VAR_0, uint8_t *VAR_1, int VAR_2) { if (VAR_2 < 32) { VAR_0->fpr[VAR_2] = ldfq_p(VAR_1); return 8; } if (VAR_2 == 32) { return 4; } return 0; }
[ "static int FUNC_0(CPUPPCState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "if (VAR_2 < 32) {", "VAR_0->fpr[VAR_2] = ldfq_p(VAR_1);", "return 8;", "}", "if (VAR_2 == 32) {", "return 4;", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
21,527
static inline void decode(DisasContext *dc) { uint32_t ir; int i; if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { tcg_gen_debug_insn_start(dc->pc); } dc->ir = ir = ldl_code(dc->pc); LOG_DIS("%8.8x\t", dc->ir); /* try guessing 'empty' instruction memory, although it ...
false
qemu
a5086f95421e43c7b9e1b28a111aae0be4848117
static inline void decode(DisasContext *dc) { uint32_t ir; int i; if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { tcg_gen_debug_insn_start(dc->pc); } dc->ir = ir = ldl_code(dc->pc); LOG_DIS("%8.8x\t", dc->ir); if (dc->ir) { dc->nr_nops = 0; } e...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0) { uint32_t ir; int VAR_1; if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { tcg_gen_debug_insn_start(VAR_0->pc); } VAR_0->ir = ir = ldl_code(VAR_0->pc); LOG_DIS("%8.8x\t", VAR_0->ir); if (VAR_0->ir) { VAR...
[ "static inline void FUNC_0(DisasContext *VAR_0)\n{", "uint32_t ir;", "int VAR_1;", "if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) {", "tcg_gen_debug_insn_start(VAR_0->pc);", "}", "VAR_0->ir = ir = ldl_code(VAR_0->pc);", "LOG_DIS(\"%8.8x\\t\", VAR_0->ir);", "if (VAR_0->ir) {", "VAR_0->nr_nops = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 55...
21,528
void memory_region_init_iommu(MemoryRegion *mr, Object *owner, const MemoryRegionIOMMUOps *ops, const char *name, uint64_t size) { memory_region_init(mr, owner, name, size); mr->iommu_o...
false
qemu
cdb3081269347fd9271fd1b7a9df312e2953bdd9
void memory_region_init_iommu(MemoryRegion *mr, Object *owner, const MemoryRegionIOMMUOps *ops, const char *name, uint64_t size) { memory_region_init(mr, owner, name, size); mr->iommu_o...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1, const MemoryRegionIOMMUOps *VAR_2, const char *VAR_3, uint64_t VAR_4) { memory_region_init(VAR_0, VAR_1, VAR_3, VAR_4); VAR_0->iommu_ops ...
[ "void FUNC_0(MemoryRegion *VAR_0,\nObject *VAR_1,\nconst MemoryRegionIOMMUOps *VAR_2,\nconst char *VAR_3,\nuint64_t VAR_4)\n{", "memory_region_init(VAR_0, VAR_1, VAR_3, VAR_4);", "VAR_0->iommu_ops = VAR_2,\nVAR_0->terminates = true;", "notifier_list_init(&VAR_0->iommu_notify);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ] ]
21,529
void helper_movl_drN_T0(CPUX86State *env, int reg, target_ulong t0) { #ifndef CONFIG_USER_ONLY if (reg < 4) { if (hw_breakpoint_enabled(env->dr[7], reg) && hw_breakpoint_type(env->dr[7], reg) != DR7_TYPE_IO_RW) { hw_breakpoint_remove(env, reg); env->dr[reg] = t0; ...
false
qemu
d0052339236072bbf08c1d600c0906126b1ab258
void helper_movl_drN_T0(CPUX86State *env, int reg, target_ulong t0) { #ifndef CONFIG_USER_ONLY if (reg < 4) { if (hw_breakpoint_enabled(env->dr[7], reg) && hw_breakpoint_type(env->dr[7], reg) != DR7_TYPE_IO_RW) { hw_breakpoint_remove(env, reg); env->dr[reg] = t0; ...
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0, int VAR_1, target_ulong VAR_2) { #ifndef CONFIG_USER_ONLY if (VAR_1 < 4) { if (hw_breakpoint_enabled(VAR_0->dr[7], VAR_1) && hw_breakpoint_type(VAR_0->dr[7], VAR_1) != DR7_TYPE_IO_RW) { hw_breakpoint_remove(VAR_0, VAR_1); VAR_0->dr[V...
[ "void FUNC_0(CPUX86State *VAR_0, int VAR_1, target_ulong VAR_2)\n{", "#ifndef CONFIG_USER_ONLY\nif (VAR_1 < 4) {", "if (hw_breakpoint_enabled(VAR_0->dr[7], VAR_1)\n&& hw_breakpoint_type(VAR_0->dr[7], VAR_1) != DR7_TYPE_IO_RW) {", "hw_breakpoint_remove(VAR_0, VAR_1);", "VAR_0->dr[VAR_1] = VAR_2;", "hw_brea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ] ]
21,530
QDict *qdict_new(void) { QDict *qdict; qdict = g_malloc0(sizeof(*qdict)); QOBJECT_INIT(qdict, &qdict_type); return qdict; }
false
qemu
55e1819c509b3d9c10a54678b9c585bbda13889e
QDict *qdict_new(void) { QDict *qdict; qdict = g_malloc0(sizeof(*qdict)); QOBJECT_INIT(qdict, &qdict_type); return qdict; }
{ "code": [], "line_no": [] }
QDict *FUNC_0(void) { QDict *qdict; qdict = g_malloc0(sizeof(*qdict)); QOBJECT_INIT(qdict, &qdict_type); return qdict; }
[ "QDict *FUNC_0(void)\n{", "QDict *qdict;", "qdict = g_malloc0(sizeof(*qdict));", "QOBJECT_INIT(qdict, &qdict_type);", "return qdict;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
21,532
int qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset, unsigned int *bytes, uint64_t *cluster_offset) { BDRVQcow2State *s = bs->opaque; unsigned int l2_index; uint64_t l1_index, l2_offset, *l2_table; int l1_bits, c; unsigned int offset_in_cluster; ...
false
qemu
4341df8a83d6a528a1e2855735f87fc3aab42b70
int qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset, unsigned int *bytes, uint64_t *cluster_offset) { BDRVQcow2State *s = bs->opaque; unsigned int l2_index; uint64_t l1_index, l2_offset, *l2_table; int l1_bits, c; unsigned int offset_in_cluster; ...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, unsigned int *VAR_2, uint64_t *VAR_3) { BDRVQcow2State *s = VAR_0->opaque; unsigned int VAR_4; uint64_t l1_index, l2_offset, *l2_table; int VAR_5, VAR_6; unsigned int VAR_7; uint64_t bytes_available, bytes_n...
[ "int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nunsigned int *VAR_2, uint64_t *VAR_3)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "unsigned int VAR_4;", "uint64_t l1_index, l2_offset, *l2_table;", "int VAR_5, VAR_6;", "unsigned int VAR_7;", "uint64_t bytes_available, bytes_needed, nb_clusters;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 59 ], [ 61 ], [ 63 ...
21,533
mips_mipssim_init (ram_addr_t ram_size, int vga_ram_size, const char *boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { char buf[1024]; unsigned long bios_of...
false
qemu
0ae18ceeaaa2c1749e742c4b112f6c3bf0896408
mips_mipssim_init (ram_addr_t ram_size, int vga_ram_size, const char *boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { char buf[1024]; unsigned long bios_of...
{ "code": [], "line_no": [] }
FUNC_0 (ram_addr_t VAR_0, int VAR_1, const char *VAR_2, DisplayState *VAR_3, const char *VAR_4, const char *VAR_5, const char *VAR_6, const char *VAR_7) { char VAR_8[1024]; unsigned long VAR_9; CPUState *env; int VAR_10; if (V...
[ "FUNC_0 (ram_addr_t VAR_0, int VAR_1,\nconst char *VAR_2, DisplayState *VAR_3,\nconst char *VAR_4, const char *VAR_5,\nconst char *VAR_6, const char *VAR_7)\n{", "char VAR_8[1024];", "unsigned long VAR_9;", "CPUState *env;", "int VAR_10;", "if (VAR_7 == NULL) {", "#ifdef TARGET_MIPS64\nVAR_7 = \"5Kf\";"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 59 ...
21,534
static inline void RENAME(LEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "mov %0, %%"REG_a" \n\t" "1: \n\t" "movq...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(LEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "mov %0, %%"REG_a" \n\t" "1: \n\t" "movq...
{ "code": [], "line_no": [] }
static inline void FUNC_0(LEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "mov %0, %%"REG_a" \n\t" "1: \n\t" "movq...
[ "static inline void FUNC_0(LEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused)\n{", "#if COMPILE_TEMPLATE_MMX\n__asm__ volatile(\n\"mov %0, %%\"REG_a\" \\n\\t\"\n\"1: \\n\\t\"\n\"movq (%1,...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45 ], [ 47, 49 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63, 65 ] ]
21,535
static target_phys_addr_t intel_hda_addr(uint32_t lbase, uint32_t ubase) { target_phys_addr_t addr; addr = ((uint64_t)ubase << 32) | lbase; return addr; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static target_phys_addr_t intel_hda_addr(uint32_t lbase, uint32_t ubase) { target_phys_addr_t addr; addr = ((uint64_t)ubase << 32) | lbase; return addr; }
{ "code": [], "line_no": [] }
static target_phys_addr_t FUNC_0(uint32_t lbase, uint32_t ubase) { target_phys_addr_t addr; addr = ((uint64_t)ubase << 32) | lbase; return addr; }
[ "static target_phys_addr_t FUNC_0(uint32_t lbase, uint32_t ubase)\n{", "target_phys_addr_t addr;", "addr = ((uint64_t)ubase << 32) | lbase;", "return addr;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
21,536
static BlockMeasureInfo *qcow2_measure(QemuOpts *opts, BlockDriverState *in_bs, Error **errp) { Error *local_err = NULL; BlockMeasureInfo *info; uint64_t required = 0; /* bytes that contribute to required size */ uint64_t virtual_size; /* disk size as seen by...
false
qemu
298a1665a2800f7264e483c2dd1f551574243a2f
static BlockMeasureInfo *qcow2_measure(QemuOpts *opts, BlockDriverState *in_bs, Error **errp) { Error *local_err = NULL; BlockMeasureInfo *info; uint64_t required = 0; uint64_t virtual_size; uint64_t refcount_bits; uint64_t l2_tables; size_t ...
{ "code": [], "line_no": [] }
static BlockMeasureInfo *FUNC_0(QemuOpts *opts, BlockDriverState *in_bs, Error **errp) { Error *local_err = NULL; BlockMeasureInfo *info; uint64_t required = 0; uint64_t virtual_size; uint64_t refcount_bits; uint64_t l2_tables; size_t cluster...
[ "static BlockMeasureInfo *FUNC_0(QemuOpts *opts, BlockDriverState *in_bs,\nError **errp)\n{", "Error *local_err = NULL;", "BlockMeasureInfo *info;", "uint64_t required = 0;", "uint64_t virtual_size;", "uint64_t refcount_bits;", "uint64_t l2_tables;", "size_t cluster_size;", "int VAR_0;", "char *VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
21,537
static void raw_aio_cancel(BlockDriverAIOCB *blockacb) { int ret; RawAIOCB *acb = (RawAIOCB *)blockacb; RawAIOCB **pacb; ret = aio_cancel(acb->aiocb.aio_fildes, &acb->aiocb); if (ret == AIO_NOTCANCELED) { /* fail safe: if the aio could not be canceled, we wait for it */ ...
false
qemu
3c529d935923a70519557d420db1d5a09a65086a
static void raw_aio_cancel(BlockDriverAIOCB *blockacb) { int ret; RawAIOCB *acb = (RawAIOCB *)blockacb; RawAIOCB **pacb; ret = aio_cancel(acb->aiocb.aio_fildes, &acb->aiocb); if (ret == AIO_NOTCANCELED) { while (aio_error(&acb->aiocb) == EINPROGRESS); } ...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverAIOCB *VAR_0) { int VAR_1; RawAIOCB *acb = (RawAIOCB *)VAR_0; RawAIOCB **pacb; VAR_1 = aio_cancel(acb->aiocb.aio_fildes, &acb->aiocb); if (VAR_1 == AIO_NOTCANCELED) { while (aio_error(&acb->aiocb) == EINPROGRESS); } pacb = ...
[ "static void FUNC_0(BlockDriverAIOCB *VAR_0)\n{", "int VAR_1;", "RawAIOCB *acb = (RawAIOCB *)VAR_0;", "RawAIOCB **pacb;", "VAR_1 = aio_cancel(acb->aiocb.aio_fildes, &acb->aiocb);", "if (VAR_1 == AIO_NOTCANCELED) {", "while (aio_error(&acb->aiocb) == EINPROGRESS);", "}", "pacb = &posix_aio_state->fir...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
21,539
void check_file_fixed_eof_mmaps(void) { char *addr; char *cp; unsigned int *p1; uintptr_t p; int i; /* Find a suitable address to start with. */ addr = mmap(NULL, pagesize * 44, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); fprintf (stderr, "%s addr=%p", __func__, (void *)addr); ...
false
qemu
64c7b9d8e07936383db181876b59c597d6a1ff69
void check_file_fixed_eof_mmaps(void) { char *addr; char *cp; unsigned int *p1; uintptr_t p; int i; addr = mmap(NULL, pagesize * 44, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); fprintf (stderr, "%s addr=%p", __func__, (void *)addr); fail_unless (addr != MAP_FAILED); for (i...
{ "code": [], "line_no": [] }
void FUNC_0(void) { char *VAR_0; char *VAR_1; unsigned int *VAR_2; uintptr_t p; int VAR_3; VAR_0 = mmap(NULL, pagesize * 44, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); fprintf (stderr, "%s VAR_0=%p", __func__, (void *)VAR_0); fail_unless (VAR_0 != MAP_FAILED); for (VAR_3 ...
[ "void FUNC_0(void)\n{", "char *VAR_0;", "char *VAR_1;", "unsigned int *VAR_2;", "uintptr_t p;", "int VAR_3;", "VAR_0 = mmap(NULL, pagesize * 44, PROT_READ,\nMAP_PRIVATE | MAP_ANONYMOUS,\n-1, 0);", "fprintf (stderr, \"%s VAR_0=%p\", __func__, (void *)VAR_0);", "fail_unless (VAR_0 != MAP_FAILED);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19, 21, 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39, 41, 43, 45 ], [ 49 ], [ 57 ], [ 59 ], [ 65, 67 ], [ 73 ...
21,540
static void nbd_attach_aio_context(BlockDriverState *bs, AioContext *new_context) { BDRVNBDState *s = bs->opaque; nbd_client_session_attach_aio_context(&s->client, new_context); }
false
qemu
f53a829bb9ef14be800556cbc02d8b20fc1050a7
static void nbd_attach_aio_context(BlockDriverState *bs, AioContext *new_context) { BDRVNBDState *s = bs->opaque; nbd_client_session_attach_aio_context(&s->client, new_context); }
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, AioContext *VAR_1) { BDRVNBDState *s = VAR_0->opaque; nbd_client_session_attach_aio_context(&s->client, VAR_1); }
[ "static void FUNC_0(BlockDriverState *VAR_0,\nAioContext *VAR_1)\n{", "BDRVNBDState *s = VAR_0->opaque;", "nbd_client_session_attach_aio_context(&s->client, VAR_1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ] ]
21,541
void bmdma_cmd_writeb(void *opaque, uint32_t addr, uint32_t val) { BMDMAState *bm = opaque; #ifdef DEBUG_IDE printf("%s: 0x%08x\n", __func__, val); #endif /* Ignore writes to SSBM if it keeps the old value */ if ((val & BM_CMD_START) != (bm->cmd & BM_CMD_START)) { if (!(val & BM_CMD_ST...
false
qemu
2860e3eb9695d7596507e82b98074937fbd7fa18
void bmdma_cmd_writeb(void *opaque, uint32_t addr, uint32_t val) { BMDMAState *bm = opaque; #ifdef DEBUG_IDE printf("%s: 0x%08x\n", __func__, val); #endif if ((val & BM_CMD_START) != (bm->cmd & BM_CMD_START)) { if (!(val & BM_CMD_START)) { ...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { BMDMAState *bm = VAR_0; #ifdef DEBUG_IDE printf("%s: 0x%08x\n", __func__, VAR_2); #endif if ((VAR_2 & BM_CMD_START) != (bm->cmd & BM_CMD_START)) { if (!(VAR_2 & BM_CMD_START)) { ...
[ "void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "BMDMAState *bm = VAR_0;", "#ifdef DEBUG_IDE\nprintf(\"%s: 0x%08x\\n\", __func__, VAR_2);", "#endif\nif ((VAR_2 & BM_CMD_START) != (bm->cmd & BM_CMD_START)) {", "if (!(VAR_2 & BM_CMD_START)) {", "if (bm->bus->dma->aiocb) {", "qemu_aio_flush(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 17 ], [ 19 ], [ 45 ], [ 47 ], [ 49, 51, 53 ], [ 55, 57 ], [ 59, 61 ], [ 63 ], [ 65 ], [ 67 ], [ 69 ], [ 73, 75 ], [ 77 ], [...
21,542
uint32_t qemu_devtree_get_phandle(void *fdt, const char *path) { uint32_t r; r = fdt_get_phandle(fdt, findnode_nofail(fdt, path)); if (r <= 0) { fprintf(stderr, "%s: Couldn't get phandle for %s: %s\n", __func__, path, fdt_strerror(r)); exit(1); } return r...
false
qemu
909a196d2754388d3b15a34b688095c655792124
uint32_t qemu_devtree_get_phandle(void *fdt, const char *path) { uint32_t r; r = fdt_get_phandle(fdt, findnode_nofail(fdt, path)); if (r <= 0) { fprintf(stderr, "%s: Couldn't get phandle for %s: %s\n", __func__, path, fdt_strerror(r)); exit(1); } return r...
{ "code": [], "line_no": [] }
uint32_t FUNC_0(void *fdt, const char *path) { uint32_t r; r = fdt_get_phandle(fdt, findnode_nofail(fdt, path)); if (r <= 0) { fprintf(stderr, "%s: Couldn't get phandle for %s: %s\n", __func__, path, fdt_strerror(r)); exit(1); } return r; }
[ "uint32_t FUNC_0(void *fdt, const char *path)\n{", "uint32_t r;", "r = fdt_get_phandle(fdt, findnode_nofail(fdt, path));", "if (r <= 0) {", "fprintf(stderr, \"%s: Couldn't get phandle for %s: %s\\n\", __func__,\npath, fdt_strerror(r));", "exit(1);", "}", "return r;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
21,543
static char *SocketAddress_to_str(const char *prefix, SocketAddressLegacy *addr, bool is_listen, bool is_telnet) { switch (addr->type) { case SOCKET_ADDRESS_LEGACY_KIND_INET: return g_strdup_printf("%s%s:%s:%s%s", prefix, is_telnet ?...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
static char *SocketAddress_to_str(const char *prefix, SocketAddressLegacy *addr, bool is_listen, bool is_telnet) { switch (addr->type) { case SOCKET_ADDRESS_LEGACY_KIND_INET: return g_strdup_printf("%s%s:%s:%s%s", prefix, is_telnet ?...
{ "code": [], "line_no": [] }
static char *FUNC_0(const char *VAR_0, SocketAddressLegacy *VAR_1, bool VAR_2, bool VAR_3) { switch (VAR_1->type) { case SOCKET_ADDRESS_LEGACY_KIND_INET: return g_strdup_printf("%s%s:%s:%s%s", VAR_0, VAR_3 ? "telnet" : "tcp", ...
[ "static char *FUNC_0(const char *VAR_0, SocketAddressLegacy *VAR_1,\nbool VAR_2, bool VAR_3)\n{", "switch (VAR_1->type) {", "case SOCKET_ADDRESS_LEGACY_KIND_INET:\nreturn g_strdup_printf(\"%s%s:%s:%s%s\", VAR_0,\nVAR_3 ? \"telnet\" : \"tcp\",\nVAR_1->u.inet.data->host,\nVAR_1->u.inet.data->port,\nVAR_2 ? \",ser...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13, 15, 17, 19 ], [ 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 41, 43, 45, 47 ], [ 49, 51 ], [ 53 ], [ 55 ] ]
21,544
void handle_vm86_fault(CPUX86State *env) { TaskState *ts = env->opaque; uint8_t *csp, *pc, *ssp; unsigned int ip, sp, newflags, newip, newcs, opcode, intno; int data32, pref_done; csp = (uint8_t *)(env->segs[R_CS] << 4); ip = env->eip & 0xffff; pc = csp + ip; ssp = (uint...
false
qemu
3ebcc707d20643e9fefa24a4396de577b1163755
void handle_vm86_fault(CPUX86State *env) { TaskState *ts = env->opaque; uint8_t *csp, *pc, *ssp; unsigned int ip, sp, newflags, newip, newcs, opcode, intno; int data32, pref_done; csp = (uint8_t *)(env->segs[R_CS] << 4); ip = env->eip & 0xffff; pc = csp + ip; ssp = (uint...
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0) { TaskState *ts = VAR_0->opaque; uint8_t *csp, *pc, *ssp; unsigned int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8, VAR_9; csp = (uint8_t *)(VAR_0->segs[R_CS] << 4); VAR_1 = VAR_0->eip & 0xffff; pc = csp + VAR_1; ssp = (uint...
[ "void FUNC_0(CPUX86State *VAR_0)\n{", "TaskState *ts = VAR_0->opaque;", "uint8_t *csp, *pc, *ssp;", "unsigned int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8, VAR_9;", "csp = (uint8_t *)(VAR_0->segs[R_CS] << 4);", "VAR_1 = VAR_0->eip & 0xffff;", "pc = csp + VAR_1;", "ssp = (uint8_t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29, 31, 33 ], [ 35, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
21,545
static MemTxResult gic_cpu_write(GICState *s, int cpu, int offset, uint32_t value, MemTxAttrs attrs) { switch (offset) { case 0x00: /* Control */ gic_set_cpu_control(s, cpu, value, attrs); break; case 0x04: /* Priority mask */ s->priority_mask...
false
qemu
8150847061f8d2606101bfff77cc6ec86b081ab0
static MemTxResult gic_cpu_write(GICState *s, int cpu, int offset, uint32_t value, MemTxAttrs attrs) { switch (offset) { case 0x00: gic_set_cpu_control(s, cpu, value, attrs); break; case 0x04: s->priority_mask[cpu] = (value & 0xff); ...
{ "code": [], "line_no": [] }
static MemTxResult FUNC_0(GICState *s, int cpu, int offset, uint32_t value, MemTxAttrs attrs) { switch (offset) { case 0x00: gic_set_cpu_control(s, cpu, value, attrs); break; case 0x04: s->priority_mask[cpu] = (value & 0xff); break;...
[ "static MemTxResult FUNC_0(GICState *s, int cpu, int offset,\nuint32_t value, MemTxAttrs attrs)\n{", "switch (offset) {", "case 0x00:\ngic_set_cpu_control(s, cpu, value, attrs);", "break;", "case 0x04:\ns->priority_mask[cpu] = (value & 0xff);", "break;", "case 0x08:\nif (s->security_extn && !attrs.secur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 49 ...
21,546
static int op_to_movi(int op) { switch (op_bits(op)) { case 32: return INDEX_op_movi_i32; #if TCG_TARGET_REG_BITS == 64 case 64: return INDEX_op_movi_i64; #endif default: fprintf(stderr, "op_to_movi: unexpected return value of " "function op_bits.\n"); ...
false
qemu
25c4d9cc845fb58f624dae8c0f690e20c70e7a1d
static int op_to_movi(int op) { switch (op_bits(op)) { case 32: return INDEX_op_movi_i32; #if TCG_TARGET_REG_BITS == 64 case 64: return INDEX_op_movi_i64; #endif default: fprintf(stderr, "op_to_movi: unexpected return value of " "function op_bits.\n"); ...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0) { switch (op_bits(VAR_0)) { case 32: return INDEX_op_movi_i32; #if TCG_TARGET_REG_BITS == 64 case 64: return INDEX_op_movi_i64; #endif default: fprintf(stderr, "FUNC_0: unexpected return value of " "function op_bits.\n"); ...
[ "static int FUNC_0(int VAR_0)\n{", "switch (op_bits(VAR_0)) {", "case 32:\nreturn INDEX_op_movi_i32;", "#if TCG_TARGET_REG_BITS == 64\ncase 64:\nreturn INDEX_op_movi_i64;", "#endif\ndefault:\nfprintf(stderr, \"FUNC_0: unexpected return value of \"\n\"function op_bits.\\n\");", "tcg_abort();", "}", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13, 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ] ]
21,547
static void dbdma_end(DBDMA_io *io) { DBDMA_channel *ch = io->channel; dbdma_cmd *current = &ch->current; if (conditional_wait(ch)) goto wait; current->xfer_status = cpu_to_le16(be32_to_cpu(ch->regs[DBDMA_STATUS])); current->res_count = cpu_to_le16(be32_to_cpu(io->len)); dbdm...
false
qemu
ad674e53b5cce265fadafbde2c6a4f190345cd00
static void dbdma_end(DBDMA_io *io) { DBDMA_channel *ch = io->channel; dbdma_cmd *current = &ch->current; if (conditional_wait(ch)) goto wait; current->xfer_status = cpu_to_le16(be32_to_cpu(ch->regs[DBDMA_STATUS])); current->res_count = cpu_to_le16(be32_to_cpu(io->len)); dbdm...
{ "code": [], "line_no": [] }
static void FUNC_0(DBDMA_io *VAR_0) { DBDMA_channel *ch = VAR_0->channel; dbdma_cmd *current = &ch->current; if (conditional_wait(ch)) goto wait; current->xfer_status = cpu_to_le16(be32_to_cpu(ch->regs[DBDMA_STATUS])); current->res_count = cpu_to_le16(be32_to_cpu(VAR_0->len)); ...
[ "static void FUNC_0(DBDMA_io *VAR_0)\n{", "DBDMA_channel *ch = VAR_0->channel;", "dbdma_cmd *current = &ch->current;", "if (conditional_wait(ch))\ngoto wait;", "current->xfer_status = cpu_to_le16(be32_to_cpu(ch->regs[DBDMA_STATUS]));", "current->res_count = cpu_to_le16(be32_to_cpu(VAR_0->len));", "dbdma...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41, 43 ], [ 45 ] ]
21,548
static void nfs_process_read(void *arg) { NFSClient *client = arg; aio_context_acquire(client->aio_context); nfs_service(client->context, POLLIN); nfs_set_events(client); aio_context_release(client->aio_context); }
false
qemu
37d1e4d9bfac846a1331375aab3d13b54a048c01
static void nfs_process_read(void *arg) { NFSClient *client = arg; aio_context_acquire(client->aio_context); nfs_service(client->context, POLLIN); nfs_set_events(client); aio_context_release(client->aio_context); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { NFSClient *client = VAR_0; aio_context_acquire(client->aio_context); nfs_service(client->context, POLLIN); nfs_set_events(client); aio_context_release(client->aio_context); }
[ "static void FUNC_0(void *VAR_0)\n{", "NFSClient *client = VAR_0;", "aio_context_acquire(client->aio_context);", "nfs_service(client->context, POLLIN);", "nfs_set_events(client);", "aio_context_release(client->aio_context);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
21,550
int qemu_init_main_loop(void) { int ret; qemu_init_sigbus(); ret = qemu_signal_init(); if (ret) { return ret; } /* Note eventfd must be drained before signalfd handlers run */ ret = qemu_event_init(); if (ret) { return ret; } qemu_cond_init(&q...
false
qemu
fa7d1867578b6a1afc39d4ece8629a1e92baddd7
int qemu_init_main_loop(void) { int ret; qemu_init_sigbus(); ret = qemu_signal_init(); if (ret) { return ret; } ret = qemu_event_init(); if (ret) { return ret; } qemu_cond_init(&qemu_cpu_cond); qemu_cond_init(&qemu_system_cond); qem...
{ "code": [], "line_no": [] }
int FUNC_0(void) { int VAR_0; qemu_init_sigbus(); VAR_0 = qemu_signal_init(); if (VAR_0) { return VAR_0; } VAR_0 = qemu_event_init(); if (VAR_0) { return VAR_0; } qemu_cond_init(&qemu_cpu_cond); qemu_cond_init(&qemu_system_cond); qe...
[ "int FUNC_0(void)\n{", "int VAR_0;", "qemu_init_sigbus();", "VAR_0 = qemu_signal_init();", "if (VAR_0) {", "return VAR_0;", "}", "VAR_0 = qemu_event_init();", "if (VAR_0) {", "return VAR_0;", "}", "qemu_cond_init(&qemu_cpu_cond);", "qemu_cond_init(&qemu_system_cond);", "qemu_cond_init(&qem...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 55...
21,551
static bool blit_is_unsafe(struct CirrusVGAState *s, bool dst_only) { /* should be the case, see cirrus_bitblt_start */ assert(s->cirrus_blt_width > 0); assert(s->cirrus_blt_height > 0); if (s->cirrus_blt_width > CIRRUS_BLTBUFSIZE) { return true; } if (blit_region_is_unsafe(s...
false
qemu
5858dd1801883309bdd208d72ddb81c4e9fee30c
static bool blit_is_unsafe(struct CirrusVGAState *s, bool dst_only) { assert(s->cirrus_blt_width > 0); assert(s->cirrus_blt_height > 0); if (s->cirrus_blt_width > CIRRUS_BLTBUFSIZE) { return true; } if (blit_region_is_unsafe(s, s->cirrus_blt_dstpitch, ...
{ "code": [], "line_no": [] }
static bool FUNC_0(struct CirrusVGAState *s, bool dst_only) { assert(s->cirrus_blt_width > 0); assert(s->cirrus_blt_height > 0); if (s->cirrus_blt_width > CIRRUS_BLTBUFSIZE) { return true; } if (blit_region_is_unsafe(s, s->cirrus_blt_dstpitch, ...
[ "static bool FUNC_0(struct CirrusVGAState *s, bool dst_only)\n{", "assert(s->cirrus_blt_width > 0);", "assert(s->cirrus_blt_height > 0);", "if (s->cirrus_blt_width > CIRRUS_BLTBUFSIZE) {", "return true;", "}", "if (blit_region_is_unsafe(s, s->cirrus_blt_dstpitch,\ns->cirrus_blt_dstaddr & s->cirrus_addr_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
21,552
static void virtio_pci_register_devices(void) { type_register_static(&virtio_blk_info); type_register_static_alias(&virtio_blk_info, "virtio-blk"); type_register_static(&virtio_net_info); type_register_static_alias(&virtio_net_info, "virtio-net"); type_register_static(&virtio_serial_info); ...
false
qemu
6acbe4c6f18e7de00481ff30574262b58526de45
static void virtio_pci_register_devices(void) { type_register_static(&virtio_blk_info); type_register_static_alias(&virtio_blk_info, "virtio-blk"); type_register_static(&virtio_net_info); type_register_static_alias(&virtio_net_info, "virtio-net"); type_register_static(&virtio_serial_info); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { type_register_static(&virtio_blk_info); type_register_static_alias(&virtio_blk_info, "virtio-blk"); type_register_static(&virtio_net_info); type_register_static_alias(&virtio_net_info, "virtio-net"); type_register_static(&virtio_serial_info); type_register_stati...
[ "static void FUNC_0(void)\n{", "type_register_static(&virtio_blk_info);", "type_register_static_alias(&virtio_blk_info, \"virtio-blk\");", "type_register_static(&virtio_net_info);", "type_register_static_alias(&virtio_net_info, \"virtio-net\");", "type_register_static(&virtio_serial_info);", "type_regis...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
21,553
static MemTxResult nvic_sysreg_read(void *opaque, hwaddr addr, uint64_t *data, unsigned size, MemTxAttrs attrs) { NVICState *s = (NVICState *)opaque; uint32_t offset = addr; unsigned i, startvec, end; uint32_t val; if ...
false
qemu
45db7ba681ede57113a67499840e69ee586bcdf2
static MemTxResult nvic_sysreg_read(void *opaque, hwaddr addr, uint64_t *data, unsigned size, MemTxAttrs attrs) { NVICState *s = (NVICState *)opaque; uint32_t offset = addr; unsigned i, startvec, end; uint32_t val; if ...
{ "code": [], "line_no": [] }
static MemTxResult FUNC_0(void *opaque, hwaddr addr, uint64_t *data, unsigned size, MemTxAttrs attrs) { NVICState *s = (NVICState *)opaque; uint32_t offset = addr; unsigned VAR_0, VAR_1, VAR_2; uint32_t val; if (attrs....
[ "static MemTxResult FUNC_0(void *opaque, hwaddr addr,\nuint64_t *data, unsigned size,\nMemTxAttrs attrs)\n{", "NVICState *s = (NVICState *)opaque;", "uint32_t offset = addr;", "unsigned VAR_0, VAR_1, VAR_2;", "uint32_t val;", "if (attrs.user && !nvic_user_access_ok(s, addr)) {", "return MEMTX_ERROR;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33, 35 ], [ 39, 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
21,554
coroutine_fn iscsi_co_pdiscard(BlockDriverState *bs, int64_t offset, int count) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; struct unmap_list list; if (!is_byte_request_lun_aligned(offset, count, iscsilun)) { return -ENOTSUP; } if (!iscsilun->lbp.lbpu) { ...
false
qemu
d045c466d9e62b4321fadf586d024d54ddfd8bd4
coroutine_fn iscsi_co_pdiscard(BlockDriverState *bs, int64_t offset, int count) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; struct unmap_list list; if (!is_byte_request_lun_aligned(offset, count, iscsilun)) { return -ENOTSUP; } if (!iscsilun->lbp.lbpu) { ...
{ "code": [], "line_no": [] }
coroutine_fn FUNC_0(BlockDriverState *bs, int64_t offset, int count) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask VAR_0; struct unmap_list VAR_1; if (!is_byte_request_lun_aligned(offset, count, iscsilun)) { return -ENOTSUP; } if (!iscsilun->lbp.lbpu) { ...
[ "coroutine_fn FUNC_0(BlockDriverState *bs, int64_t offset, int count)\n{", "IscsiLun *iscsilun = bs->opaque;", "struct IscsiTask VAR_0;", "struct unmap_list VAR_1;", "if (!is_byte_request_lun_aligned(offset, count, iscsilun)) {", "return -ENOTSUP;", "}", "if (!iscsilun->lbp.lbpu) {", "return 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
21,556
static ssize_t qio_channel_command_writev(QIOChannel *ioc, const struct iovec *iov, size_t niov, int *fds, size_t nfds, ...
false
qemu
30fd3e27907dfd1c0c66cc1339657af1a2ce1d4b
static ssize_t qio_channel_command_writev(QIOChannel *ioc, const struct iovec *iov, size_t niov, int *fds, size_t nfds, ...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(QIOChannel *ioc, const struct iovec *iov, size_t niov, int *fds, size_t nfds, Error...
[ "static ssize_t FUNC_0(QIOChannel *ioc,\nconst struct iovec *iov,\nsize_t niov,\nint *fds,\nsize_t nfds,\nError **errp)\n{", "QIOChannelCommand *cioc = QIO_CHANNEL_COMMAND(ioc);", "ssize_t ret;", "retry:\nret = writev(cioc->writefd, iov, niov);", "if (ret <= 0) {", "if (errno == EAGAIN ||\nerrno == EWOULD...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
21,557
static void v9fs_synth_fill_statbuf(V9fsSynthNode *node, struct stat *stbuf) { stbuf->st_dev = 0; stbuf->st_ino = node->attr->inode; stbuf->st_mode = node->attr->mode; stbuf->st_nlink = node->attr->nlink; stbuf->st_uid = 0; stbuf->st_gid = 0; stbuf->st_rdev = 0; stbuf->st_size =...
false
qemu
364031f17932814484657e5551ba12957d993d7e
static void v9fs_synth_fill_statbuf(V9fsSynthNode *node, struct stat *stbuf) { stbuf->st_dev = 0; stbuf->st_ino = node->attr->inode; stbuf->st_mode = node->attr->mode; stbuf->st_nlink = node->attr->nlink; stbuf->st_uid = 0; stbuf->st_gid = 0; stbuf->st_rdev = 0; stbuf->st_size =...
{ "code": [], "line_no": [] }
static void FUNC_0(V9fsSynthNode *VAR_0, struct stat *VAR_1) { VAR_1->st_dev = 0; VAR_1->st_ino = VAR_0->attr->inode; VAR_1->st_mode = VAR_0->attr->mode; VAR_1->st_nlink = VAR_0->attr->nlink; VAR_1->st_uid = 0; VAR_1->st_gid = 0; VAR_1->st_rdev = 0; VAR_1->st_size = 0; VAR_...
[ "static void FUNC_0(V9fsSynthNode *VAR_0, struct stat *VAR_1)\n{", "VAR_1->st_dev = 0;", "VAR_1->st_ino = VAR_0->attr->inode;", "VAR_1->st_mode = VAR_0->attr->mode;", "VAR_1->st_nlink = VAR_0->attr->nlink;", "VAR_1->st_uid = 0;", "VAR_1->st_gid = 0;", "VAR_1->st_rdev = 0;", "VAR_1->st_size = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
21,558
void cpu_exec_init(CPUState *env) { CPUState **penv; int cpu_index; #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endif env->next_cpu = NULL; penv = &first_cpu; cpu_index = 0; while (*penv != NULL) { penv = &(*penv)->next_cpu; cpu_index++; } env->cpu...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void cpu_exec_init(CPUState *env) { CPUState **penv; int cpu_index; #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endif env->next_cpu = NULL; penv = &first_cpu; cpu_index = 0; while (*penv != NULL) { penv = &(*penv)->next_cpu; cpu_index++; } env->cpu...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0) { CPUState **penv; int VAR_1; #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endif VAR_0->next_cpu = NULL; penv = &first_cpu; VAR_1 = 0; while (*penv != NULL) { penv = &(*penv)->next_cpu; VAR_1++; } VAR_0->VAR_1 = VAR_1; ...
[ "void FUNC_0(CPUState *VAR_0)\n{", "CPUState **penv;", "int VAR_1;", "#if defined(CONFIG_USER_ONLY)\ncpu_list_lock();", "#endif\nVAR_0->next_cpu = NULL;", "penv = &first_cpu;", "VAR_1 = 0;", "while (*penv != NULL) {", "penv = &(*penv)->next_cpu;", "VAR_1++;", "}", "VAR_0->VAR_1 = VAR_1;", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47...
21,559
static void sdhci_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SDHCIClass *k = SDHCI_CLASS(klass); dc->vmsd = &sdhci_vmstate; dc->props = sdhci_properties; dc->reset = sdhci_generic_reset; dc->realize = sdhci_realize; k->reset = sdhci_reset;...
false
qemu
d368ba4376b2c1c24175c74b3733b8fe64dbe8a6
static void sdhci_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SDHCIClass *k = SDHCI_CLASS(klass); dc->vmsd = &sdhci_vmstate; dc->props = sdhci_properties; dc->reset = sdhci_generic_reset; dc->realize = sdhci_realize; k->reset = sdhci_reset;...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); SDHCIClass *k = SDHCI_CLASS(VAR_0); dc->vmsd = &sdhci_vmstate; dc->props = sdhci_properties; dc->reset = sdhci_generic_reset; dc->realize = sdhci_realize; k->reset = sdhci_reset; k->...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "SDHCIClass *k = SDHCI_CLASS(VAR_0);", "dc->vmsd = &sdhci_vmstate;", "dc->props = sdhci_properties;", "dc->reset = sdhci_generic_reset;", "dc->realize = sdhci_realize;", "k->reset = sdhci_reset;", "k-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
21,560
static void ppc_heathrow_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initr...
false
qemu
caae6c961107c4c55731a86572f9a1f53837636b
static void ppc_heathrow_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initr...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; const char *VAR_5 = VAR_0->boot_order; MemoryRegion *sysmem = get_s...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "const char *VAR_5 = VAR_0->boot_order;", "MemoryRegion *sysmem = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
21,562
static void hls_decode_neighbour(HEVCContext *s, int x_ctb, int y_ctb, int ctb_addr_ts) { HEVCLocalContext *lc = &s->HEVClc; int ctb_size = 1 << s->ps.sps->log2_ctb_size; int ctb_addr_rs = s->ps.pps->ctb_addr_ts_to_rs[ctb_addr_ts]; int ctb_addr_in_s...
false
FFmpeg
b8b13acd70a1c1b6c044f967d78cb82f1a53887b
static void hls_decode_neighbour(HEVCContext *s, int x_ctb, int y_ctb, int ctb_addr_ts) { HEVCLocalContext *lc = &s->HEVClc; int ctb_size = 1 << s->ps.sps->log2_ctb_size; int ctb_addr_rs = s->ps.pps->ctb_addr_ts_to_rs[ctb_addr_ts]; int ctb_addr_in_s...
{ "code": [], "line_no": [] }
static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { HEVCLocalContext *lc = &VAR_0->HEVClc; int VAR_4 = 1 << VAR_0->ps.sps->log2_ctb_size; int VAR_5 = VAR_0->ps.pps->ctb_addr_ts_to_rs[VAR_3]; int VAR_6 = VAR_5 - VAR_0->sh.slice_...
[ "static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3)\n{", "HEVCLocalContext *lc = &VAR_0->HEVClc;", "int VAR_4 = 1 << VAR_0->ps.sps->log2_ctb_size;", "int VAR_5 = VAR_0->ps.pps->ctb_addr_ts_to_rs[VAR_3];", "int VAR_6 = VAR_5 - VAR_0->sh.slice_addr;", "VAR_0->tab_slice_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
21,563
static void scsi_qdev_unrealize(DeviceState *qdev, Error **errp) { SCSIDevice *dev = SCSI_DEVICE(qdev); if (dev->vmsentry) { qemu_del_vm_change_state_handler(dev->vmsentry); } scsi_device_unrealize(dev, errp); }
false
qemu
fb7b5c0df6e3c501973ce4d57eb2b1d4344a519d
static void scsi_qdev_unrealize(DeviceState *qdev, Error **errp) { SCSIDevice *dev = SCSI_DEVICE(qdev); if (dev->vmsentry) { qemu_del_vm_change_state_handler(dev->vmsentry); } scsi_device_unrealize(dev, errp); }
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { SCSIDevice *dev = SCSI_DEVICE(VAR_0); if (dev->vmsentry) { qemu_del_vm_change_state_handler(dev->vmsentry); } scsi_device_unrealize(dev, VAR_1); }
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "SCSIDevice *dev = SCSI_DEVICE(VAR_0);", "if (dev->vmsentry) {", "qemu_del_vm_change_state_handler(dev->vmsentry);", "}", "scsi_device_unrealize(dev, VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
21,565
static void xen_set_memory(struct MemoryListener *listener, MemoryRegionSection *section, bool add) { XenIOState *state = container_of(listener, XenIOState, memory_listener); hwaddr start_addr = section->offset_within_address_space; ram_addr_t size...
true
qemu
3996e85c1822e05c50250f8d2d1e57b6bea1229d
static void xen_set_memory(struct MemoryListener *listener, MemoryRegionSection *section, bool add) { XenIOState *state = container_of(listener, XenIOState, memory_listener); hwaddr start_addr = section->offset_within_address_space; ram_addr_t size...
{ "code": [ " if (!(section->mr != &ram_memory", " && ( (log_dirty && add) || (!log_dirty && !add)))) {" ], "line_no": [ 29, 31 ] }
static void FUNC_0(struct MemoryListener *VAR_0, MemoryRegionSection *VAR_1, bool VAR_2) { XenIOState *state = container_of(VAR_0, XenIOState, memory_listener); hwaddr start_addr = VAR_1->offset_within_address_space; ram_addr_t size = int128_get64(...
[ "static void FUNC_0(struct MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1,\nbool VAR_2)\n{", "XenIOState *state = container_of(VAR_0, XenIOState, memory_listener);", "hwaddr start_addr = VAR_1->offset_within_address_space;", "ram_addr_t size = int128_get64(VAR_1->size);", "bool log_dirty = memory_region...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53, 55 ...
21,566
opts_check_list(Visitor *v, Error **errp) { /* * FIXME should set error when unvisited elements remain. Mostly * harmless, as the generated visits always visit all elements. */ }
true
qemu
21f88d021d0d2b4ecee8f6cd6ca63a943a3ce71d
opts_check_list(Visitor *v, Error **errp) { }
{ "code": [], "line_no": [] }
FUNC_0(Visitor *VAR_0, Error **VAR_1) { }
[ "FUNC_0(Visitor *VAR_0, Error **VAR_1)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 13 ] ]
21,568
static int vorbis_packet(AVFormatContext *s, int idx) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + idx; struct oggvorbis_private *priv = os->private; int duration; /* first packet handling here we parse the duration of each packet in the first page and com...
true
FFmpeg
ca4a3f4a08de04344e5cb16b506564969a43ed7e
static int vorbis_packet(AVFormatContext *s, int idx) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + idx; struct oggvorbis_private *priv = os->private; int duration; if (!os->lastpts) { int seg; uint8_t *last_pkt = os->buf + os->pstart;...
{ "code": [ " s->streams[idx]->cur_dts = AV_NOPTS_VALUE;" ], "line_no": [ 75 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1) { struct VAR_2 *VAR_2 = VAR_0->priv_data; struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1; struct oggvorbis_private *VAR_4 = VAR_3->private; int VAR_5; if (!VAR_3->lastpts) { int VAR_6; uint8_t *last_pkt = V...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "struct VAR_2 *VAR_2 = VAR_0->priv_data;", "struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1;", "struct oggvorbis_private *VAR_4 = VAR_3->private;", "int VAR_5;", "if (!VAR_3->lastpts) {", "int VAR_6;", "uint8_t *last_pkt = VAR_3->buf + VAR_3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53,...
21,570
static int32_t scsi_disk_dma_command(SCSIRequest *req, uint8_t *buf) { SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req); SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); int32_t len; uint8_t command; command = buf[0]; if (s->tray_open || !bdrv_is_inserted(s->qdev.conf.bs)...
true
qemu
96bdbbab55976b106f9db2b61042ebf5f0493e5a
static int32_t scsi_disk_dma_command(SCSIRequest *req, uint8_t *buf) { SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req); SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); int32_t len; uint8_t command; command = buf[0]; if (s->tray_open || !bdrv_is_inserted(s->qdev.conf.bs)...
{ "code": [], "line_no": [] }
static int32_t FUNC_0(SCSIRequest *req, uint8_t *buf) { SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req); SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); int32_t len; uint8_t command; command = buf[0]; if (s->tray_open || !bdrv_is_inserted(s->qdev.conf.bs)) { sc...
[ "static int32_t FUNC_0(SCSIRequest *req, uint8_t *buf)\n{", "SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);", "int32_t len;", "uint8_t command;", "command = buf[0];", "if (s->tray_open || !bdrv_is_inserted(s->qdev.conf.bs)) {", "scsi_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 24 ], [ 28 ], [ 30, 32, 34, 36, 38 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ], [ 50 ], [ 52 ...
21,571
static void coroutine_fn mirror_run(void *opaque) { MirrorBlockJob *s = opaque; MirrorExitData *data; BlockDriverState *bs = s->common.bs; int64_t sector_num, end, sectors_per_chunk, length; uint64_t last_pause_ns; BlockDriverInfo bdi; char backing_filename[1024]; int ret = 0; ...
true
qemu
c4237dfa635900e4d1cdc6038d5efe3507f45f0c
static void coroutine_fn mirror_run(void *opaque) { MirrorBlockJob *s = opaque; MirrorExitData *data; BlockDriverState *bs = s->common.bs; int64_t sector_num, end, sectors_per_chunk, length; uint64_t last_pause_ns; BlockDriverInfo bdi; char backing_filename[1024]; int ret = 0; ...
{ "code": [ " bdrv_set_dirty(bs, sector_num, n);" ], "line_no": [ 151 ] }
static void VAR_0 mirror_run(void *opaque) { MirrorBlockJob *s = opaque; MirrorExitData *data; BlockDriverState *bs = s->common.bs; int64_t sector_num, end, sectors_per_chunk, length; uint64_t last_pause_ns; BlockDriverInfo bdi; char backing_filename[1024]; int ret = 0; int...
[ "static void VAR_0 mirror_run(void *opaque)\n{", "MirrorBlockJob *s = opaque;", "MirrorExitData *data;", "BlockDriverState *bs = s->common.bs;", "int64_t sector_num, end, sectors_per_chunk, length;", "uint64_t last_pause_ns;", "BlockDriverInfo bdi;", "char backing_filename[1024];", "int ret = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
21,572
int object_property_get_enum(Object *obj, const char *name, const char *strings[], Error **errp) { StringOutputVisitor *sov; StringInputVisitor *siv; int ret; sov = string_output_visitor_new(false); object_property_get(obj, string_output_get_visitor(sov), name, ...
true
qemu
976620ac4018db142d82cd42bb7774f40290ce7e
int object_property_get_enum(Object *obj, const char *name, const char *strings[], Error **errp) { StringOutputVisitor *sov; StringInputVisitor *siv; int ret; sov = string_output_visitor_new(false); object_property_get(obj, string_output_get_visitor(sov), name, ...
{ "code": [ " siv = string_input_visitor_new(string_output_get_string(sov));" ], "line_no": [ 19 ] }
int FUNC_0(Object *VAR_0, const char *VAR_1, const char *VAR_2[], Error **VAR_3) { StringOutputVisitor *sov; StringInputVisitor *siv; int VAR_4; sov = string_output_visitor_new(false); object_property_get(VAR_0, string_output_get_visitor(sov), VAR_1, VAR_3); ...
[ "int FUNC_0(Object *VAR_0, const char *VAR_1,\nconst char *VAR_2[], Error **VAR_3)\n{", "StringOutputVisitor *sov;", "StringInputVisitor *siv;", "int VAR_4;", "sov = string_output_visitor_new(false);", "object_property_get(VAR_0, string_output_get_visitor(sov), VAR_1, VAR_3);", "siv = string_input_visit...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ] ]
21,573
int ff_vaapi_render_picture(FFVAContext *vactx, VASurfaceID surface) { VABufferID va_buffers[3]; unsigned int n_va_buffers = 0; if (!vactx->pic_param_buf_id) return 0; vaUnmapBuffer(vactx->display, vactx->pic_param_buf_id); va_buffers[n_va_buffers++] = vactx->pic_param_buf_id; ...
false
FFmpeg
8813d55fa5978660d9f4e7dbe1f50da9922be08d
int ff_vaapi_render_picture(FFVAContext *vactx, VASurfaceID surface) { VABufferID va_buffers[3]; unsigned int n_va_buffers = 0; if (!vactx->pic_param_buf_id) return 0; vaUnmapBuffer(vactx->display, vactx->pic_param_buf_id); va_buffers[n_va_buffers++] = vactx->pic_param_buf_id; ...
{ "code": [], "line_no": [] }
int FUNC_0(FFVAContext *VAR_0, VASurfaceID VAR_1) { VABufferID va_buffers[3]; unsigned int VAR_2 = 0; if (!VAR_0->pic_param_buf_id) return 0; vaUnmapBuffer(VAR_0->display, VAR_0->pic_param_buf_id); va_buffers[VAR_2++] = VAR_0->pic_param_buf_id; if (VAR_0->iq_matrix_buf_id) ...
[ "int FUNC_0(FFVAContext *VAR_0, VASurfaceID VAR_1)\n{", "VABufferID va_buffers[3];", "unsigned int VAR_2 = 0;", "if (!VAR_0->pic_param_buf_id)\nreturn 0;", "vaUnmapBuffer(VAR_0->display, VAR_0->pic_param_buf_id);", "va_buffers[VAR_2++] = VAR_0->pic_param_buf_id;", "if (VAR_0->iq_matrix_buf_id) {", "va...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45, 47 ], [ 51, 53, 55 ], [ 59, 61...
21,574
static void loop_filter(H264Context *h){ MpegEncContext * const s = &h->s; uint8_t *dest_y, *dest_cb, *dest_cr; int linesize, uvlinesize, mb_x, mb_y; const int end_mb_y= s->mb_y + FRAME_MBAFF; const int old_slice_type= h->slice_type; if(h->deblocking_filter) { for(mb_x= 0; mb_x...
false
FFmpeg
aaa995d7f29cba39b1fe05b6f0a807bfc7a09f43
static void loop_filter(H264Context *h){ MpegEncContext * const s = &h->s; uint8_t *dest_y, *dest_cb, *dest_cr; int linesize, uvlinesize, mb_x, mb_y; const int end_mb_y= s->mb_y + FRAME_MBAFF; const int old_slice_type= h->slice_type; if(h->deblocking_filter) { for(mb_x= 0; mb_x...
{ "code": [], "line_no": [] }
static void FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; uint8_t *dest_y, *dest_cb, *dest_cr; int VAR_1, VAR_2, VAR_3, VAR_4; const int VAR_5= s->VAR_4 + FRAME_MBAFF; const int VAR_6= VAR_0->slice_type; if(VAR_0->deblocking_filter) { for(VAR_3= 0; VAR_3<s->...
[ "static void FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "uint8_t *dest_y, *dest_cb, *dest_cr;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "const int VAR_5= s->VAR_4 + FRAME_MBAFF;", "const int VAR_6= VAR_0->slice_type;", "if(VAR_0->deblocking_filter) {", "for(VAR_3= 0; VAR_3<s->m...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
21,575
static int mov_write_tfhd_tag(AVIOContext *pb, MOVTrack *track, int64_t moof_offset) { int64_t pos = avio_tell(pb); uint32_t flags = MOV_TFHD_DEFAULT_SIZE | MOV_TFHD_DEFAULT_DURATION | MOV_TFHD_BASE_DATA_OFFSET; if (!track->entry) { flags |= ...
false
FFmpeg
28e6b7b9b4e0a6ec05575cffedd56e1319f8691f
static int mov_write_tfhd_tag(AVIOContext *pb, MOVTrack *track, int64_t moof_offset) { int64_t pos = avio_tell(pb); uint32_t flags = MOV_TFHD_DEFAULT_SIZE | MOV_TFHD_DEFAULT_DURATION | MOV_TFHD_BASE_DATA_OFFSET; if (!track->entry) { flags |= ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVIOContext *VAR_0, MOVTrack *VAR_1, int64_t VAR_2) { int64_t pos = avio_tell(VAR_0); uint32_t flags = MOV_TFHD_DEFAULT_SIZE | MOV_TFHD_DEFAULT_DURATION | MOV_TFHD_BASE_DATA_OFFSET; if (!VAR_1->entry) { flags |= MOV_TFHD_DUR...
[ "static int FUNC_0(AVIOContext *VAR_0, MOVTrack *VAR_1,\nint64_t VAR_2)\n{", "int64_t pos = avio_tell(VAR_0);", "uint32_t flags = MOV_TFHD_DEFAULT_SIZE | MOV_TFHD_DEFAULT_DURATION |\nMOV_TFHD_BASE_DATA_OFFSET;", "if (!VAR_1->entry) {", "flags |= MOV_TFHD_DURATION_IS_EMPTY;", "} else {", "flags |= MOV_TF...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 57 ...
21,577
static int normalize_samples(AC3EncodeContext *s) { int v = 14 - log2_tab(s, s->windowed_samples, AC3_WINDOW_SIZE); lshift_tab(s->windowed_samples, AC3_WINDOW_SIZE, v); return v - 9; }
true
FFmpeg
323e6fead07c75f418e4b60704a4f437bb3483b2
static int normalize_samples(AC3EncodeContext *s) { int v = 14 - log2_tab(s, s->windowed_samples, AC3_WINDOW_SIZE); lshift_tab(s->windowed_samples, AC3_WINDOW_SIZE, v); return v - 9; }
{ "code": [ " return v - 9;" ], "line_no": [ 9 ] }
static int FUNC_0(AC3EncodeContext *VAR_0) { int VAR_1 = 14 - log2_tab(VAR_0, VAR_0->windowed_samples, AC3_WINDOW_SIZE); lshift_tab(VAR_0->windowed_samples, AC3_WINDOW_SIZE, VAR_1); return VAR_1 - 9; }
[ "static int FUNC_0(AC3EncodeContext *VAR_0)\n{", "int VAR_1 = 14 - log2_tab(VAR_0, VAR_0->windowed_samples, AC3_WINDOW_SIZE);", "lshift_tab(VAR_0->windowed_samples, AC3_WINDOW_SIZE, VAR_1);", "return VAR_1 - 9;", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
21,578
uint32_t HELPER(servc)(CPUS390XState *env, uint64_t r1, uint64_t r2) { int r = sclp_service_call(env, r1, r2); if (r < 0) { program_interrupt(env, -r, 4); return 0; } return r; }
true
qemu
8d04fb55dec381bc5105cb47f29d918e579e8cbd
uint32_t HELPER(servc)(CPUS390XState *env, uint64_t r1, uint64_t r2) { int r = sclp_service_call(env, r1, r2); if (r < 0) { program_interrupt(env, -r, 4); return 0; } return r; }
{ "code": [ " return 0;" ], "line_no": [ 11 ] }
uint32_t FUNC_0(servc)(CPUS390XState *env, uint64_t r1, uint64_t r2) { int VAR_0 = sclp_service_call(env, r1, r2); if (VAR_0 < 0) { program_interrupt(env, -VAR_0, 4); return 0; } return VAR_0; }
[ "uint32_t FUNC_0(servc)(CPUS390XState *env, uint64_t r1, uint64_t r2)\n{", "int VAR_0 = sclp_service_call(env, r1, r2);", "if (VAR_0 < 0) {", "program_interrupt(env, -VAR_0, 4);", "return 0;", "}", "return VAR_0;", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
21,579
static void test_query_cpus(const void *data) { char *cli; QDict *resp; QList *cpus; const QObject *e; cli = make_cli(data, "-smp 8 -numa node,cpus=0-3 -numa node,cpus=4-7"); qtest_start(cli); cpus = get_cpus(&resp); g_assert(cpus); while ((e = qlist_pop(cpus))) { ...
true
qemu
5e39d89d20b17cf6fb7f09d181d34f17b2ae2160
static void test_query_cpus(const void *data) { char *cli; QDict *resp; QList *cpus; const QObject *e; cli = make_cli(data, "-smp 8 -numa node,cpus=0-3 -numa node,cpus=4-7"); qtest_start(cli); cpus = get_cpus(&resp); g_assert(cpus); while ((e = qlist_pop(cpus))) { ...
{ "code": [ " const QObject *e;", " const QObject *e;", " const QObject *e;", " const QObject *e;" ], "line_no": [ 11, 11, 11, 11 ] }
static void FUNC_0(const void *VAR_0) { char *VAR_1; QDict *resp; QList *cpus; const QObject *VAR_2; VAR_1 = make_cli(VAR_0, "-smp 8 -numa node,cpus=0-3 -numa node,cpus=4-7"); qtest_start(VAR_1); cpus = get_cpus(&resp); g_assert(cpus); while ((VAR_2 = qlist_pop(cpus))) ...
[ "static void FUNC_0(const void *VAR_0)\n{", "char *VAR_1;", "QDict *resp;", "QList *cpus;", "const QObject *VAR_2;", "VAR_1 = make_cli(VAR_0, \"-smp 8 -numa node,cpus=0-3 -numa node,cpus=4-7\");", "qtest_start(VAR_1);", "cpus = get_cpus(&resp);", "g_assert(cpus);", "while ((VAR_2 = qlist_pop(cpus)...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
21,580
int virtio_scsi_common_exit(VirtIOSCSICommon *vs) { VirtIODevice *vdev = VIRTIO_DEVICE(vs); g_free(vs->cmd_vqs); virtio_cleanup(vdev); return 0; }
true
qemu
e3c9d76acc984218264bbc6435b0c09f959ed9b8
int virtio_scsi_common_exit(VirtIOSCSICommon *vs) { VirtIODevice *vdev = VIRTIO_DEVICE(vs); g_free(vs->cmd_vqs); virtio_cleanup(vdev); return 0; }
{ "code": [ "int virtio_scsi_common_exit(VirtIOSCSICommon *vs)", " return 0;" ], "line_no": [ 1, 13 ] }
int FUNC_0(VirtIOSCSICommon *VAR_0) { VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); g_free(VAR_0->cmd_vqs); virtio_cleanup(vdev); return 0; }
[ "int FUNC_0(VirtIOSCSICommon *VAR_0)\n{", "VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);", "g_free(VAR_0->cmd_vqs);", "virtio_cleanup(vdev);", "return 0;", "}" ]
[ 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
21,581
static int decode_subframe_fixed(FLACContext *s, int32_t *decoded, int pred_order, int bps) { const int blocksize = s->blocksize; unsigned av_uninit(a), av_uninit(b), av_uninit(c), av_uninit(d); int i; int ret; /* warm up samples */ for (i = 0; i < pred...
true
FFmpeg
3d23f7a0969bf76ad6dcdc2c4a5cd3ae884745a8
static int decode_subframe_fixed(FLACContext *s, int32_t *decoded, int pred_order, int bps) { const int blocksize = s->blocksize; unsigned av_uninit(a), av_uninit(b), av_uninit(c), av_uninit(d); int i; int ret; for (i = 0; i < pred_order; i++) { ...
{ "code": [ " d = c - decoded[pred_order-2] + 2*decoded[pred_order-3] - decoded[pred_order-4];" ], "line_no": [ 47 ] }
static int FUNC_0(FLACContext *VAR_0, int32_t *VAR_1, int VAR_2, int VAR_3) { const int VAR_4 = VAR_0->VAR_4; unsigned FUNC_1(a), FUNC_1(b), FUNC_1(c), FUNC_1(d); int VAR_5; int VAR_6; for (VAR_5 = 0; VAR_5 < VAR_2; VAR_5++) { VAR_1[VAR_5] = g...
[ "static int FUNC_0(FLACContext *VAR_0, int32_t *VAR_1,\nint VAR_2, int VAR_3)\n{", "const int VAR_4 = VAR_0->VAR_4;", "unsigned FUNC_1(a), FUNC_1(b), FUNC_1(c), FUNC_1(d);", "int VAR_5;", "int VAR_6;", "for (VAR_5 = 0; VAR_5 < VAR_2; VAR_5++) {", "VAR_1[VAR_5] = get_sbits_long(&VAR_0->gb, VAR_3);", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47 ], [ 51 ], [ 53, 55 ], [ 57, 59 ...
21,582
static int add_tonal_components(float *spectrum, int num_components, TonalComponent *components) { int i, j, last_pos = -1; float *input, *output; for (i = 0; i < num_components; i++) { last_pos = FFMAX(components[i].pos + components[i].num_coefs, last_pos); ...
false
FFmpeg
0e3afacd4d8fbe1c21e0bc16bd707809cd87380f
static int add_tonal_components(float *spectrum, int num_components, TonalComponent *components) { int i, j, last_pos = -1; float *input, *output; for (i = 0; i < num_components; i++) { last_pos = FFMAX(components[i].pos + components[i].num_coefs, last_pos); ...
{ "code": [], "line_no": [] }
static int FUNC_0(float *VAR_0, int VAR_1, TonalComponent *VAR_2) { int VAR_3, VAR_4, VAR_5 = -1; float *VAR_6, *VAR_7; for (VAR_3 = 0; VAR_3 < VAR_1; VAR_3++) { VAR_5 = FFMAX(VAR_2[VAR_3].pos + VAR_2[VAR_3].num_coefs, VAR_5); VAR_6 = VAR_2[VAR_3]....
[ "static int FUNC_0(float *VAR_0, int VAR_1,\nTonalComponent *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5 = -1;", "float *VAR_6, *VAR_7;", "for (VAR_3 = 0; VAR_3 < VAR_1; VAR_3++) {", "VAR_5 = FFMAX(VAR_2[VAR_3].pos + VAR_2[VAR_3].num_coefs, VAR_5);", "VAR_6 = VAR_2[VAR_3].coef;", "VAR_7 = &VAR_0[VAR_2[VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
21,588
static int qemu_rdma_write_flush(QEMUFile *f, RDMAContext *rdma) { int ret; if (!rdma->current_length) { return 0; } ret = qemu_rdma_write_one(f, rdma, rdma->current_index, rdma->current_addr, rdma->current_length); if (ret < 0) { return ret; } ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int qemu_rdma_write_flush(QEMUFile *f, RDMAContext *rdma) { int ret; if (!rdma->current_length) { return 0; } ret = qemu_rdma_write_one(f, rdma, rdma->current_index, rdma->current_addr, rdma->current_length); if (ret < 0) { return ret; } ...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, RDMAContext *VAR_1) { int VAR_2; if (!VAR_1->current_length) { return 0; } VAR_2 = qemu_rdma_write_one(VAR_0, VAR_1, VAR_1->current_index, VAR_1->current_addr, VAR_1->current_length); if (VAR_2 < 0) { return VAR_2; } ...
[ "static int FUNC_0(QEMUFile *VAR_0, RDMAContext *VAR_1)\n{", "int VAR_2;", "if (!VAR_1->current_length) {", "return 0;", "}", "VAR_2 = qemu_rdma_write_one(VAR_0, VAR_1,\nVAR_1->current_index, VAR_1->current_addr, VAR_1->current_length);", "if (VAR_2 < 0) {", "return VAR_2;", "}", "if (VAR_2 == 0) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
21,590
Exynos4210State *exynos4210_init(MemoryRegion *system_mem, unsigned long ram_size) { int i, n; Exynos4210State *s = g_new(Exynos4210State, 1); qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS]; unsigned long mem_size; DeviceState *dev; SysBusDevice *busdev; ObjectClass...
true
qemu
1e0228fd20aa46ac1f02cffee946cdd4ffaf8b96
Exynos4210State *exynos4210_init(MemoryRegion *system_mem, unsigned long ram_size) { int i, n; Exynos4210State *s = g_new(Exynos4210State, 1); qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS]; unsigned long mem_size; DeviceState *dev; SysBusDevice *busdev; ObjectClass...
{ "code": [], "line_no": [] }
Exynos4210State *FUNC_0(MemoryRegion *system_mem, unsigned long ram_size) { int VAR_0, VAR_1; Exynos4210State *s = g_new(Exynos4210State, 1); qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS]; unsigned long VAR_2; DeviceState *dev; SysBusDevice *busdev; ObjectClass *cp...
[ "Exynos4210State *FUNC_0(MemoryRegion *system_mem,\nunsigned long ram_size)\n{", "int VAR_0, VAR_1;", "Exynos4210State *s = g_new(Exynos4210State, 1);", "qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS];", "unsigned long VAR_2;", "DeviceState *dev;", "SysBusDevice *busdev;", "ObjectCla...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22, 23 ], [ 24 ], [ 25 ],...
21,591
static void *clone_func(void *arg) { new_thread_info *info = arg; CPUArchState *env; CPUState *cpu; TaskState *ts; rcu_register_thread(); env = info->env; cpu = ENV_GET_CPU(env); thread_cpu = cpu; ts = (TaskState *)cpu->opaque; info->tid = gettid(); cpu->host_ti...
true
qemu
bd88c780e6a17188f7fd676f3a056e5db21500e0
static void *clone_func(void *arg) { new_thread_info *info = arg; CPUArchState *env; CPUState *cpu; TaskState *ts; rcu_register_thread(); env = info->env; cpu = ENV_GET_CPU(env); thread_cpu = cpu; ts = (TaskState *)cpu->opaque; info->tid = gettid(); cpu->host_ti...
{ "code": [ " cpu->host_tid = info->tid;" ], "line_no": [ 27 ] }
static void *FUNC_0(void *VAR_0) { new_thread_info *info = VAR_0; CPUArchState *env; CPUState *cpu; TaskState *ts; rcu_register_thread(); env = info->env; cpu = ENV_GET_CPU(env); thread_cpu = cpu; ts = (TaskState *)cpu->opaque; info->tid = gettid(); cpu->host_ti...
[ "static void *FUNC_0(void *VAR_0)\n{", "new_thread_info *info = VAR_0;", "CPUArchState *env;", "CPUState *cpu;", "TaskState *ts;", "rcu_register_thread();", "env = info->env;", "cpu = ENV_GET_CPU(env);", "thread_cpu = cpu;", "ts = (TaskState *)cpu->opaque;", "info->tid = gettid();", "cpu->host...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
21,592
static inline void RENAME(yuv2rgb32_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *...
true
FFmpeg
009f829dde811af654af7110326aea3a72c05d5e
static inline void RENAME(yuv2rgb32_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *...
{ "code": [ " x86_reg uv_off = c->uv_off << 1;", " x86_reg uv_off = c->uv_off << 1;", " x86_reg uv_off = c->uv_off << 1;", " x86_reg uv_off = c->uv_off << 1;", " x86_reg uv_off = c->uv_off << 1;", " x86_reg uv_off = c->uv_off << 1;", " YSCALEYUV2RGB1(%%REGB...
static inline void FUNC_0(yuv2rgb32_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *...
[ "static inline void FUNC_0(yuv2rgb32_1)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *ubuf0, const uint16_t *ubuf1,\nconst uint16_t *vbuf0, const uint16_t *vbuf1,\nconst uint16_t *abuf0, uint8_t *dest,\nint dstW, int uvalpha, enum PixelFormat dstFormat,\nint flags, int y)\n{", "x86_reg uv_off = c->uv_off ...
[ 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47 ], [ 49 ], [ 51, 53, 55, 57, 59, 61, 63, 65, 67,...
21,593
QInt *qobject_to_qint(const QObject *obj) { if (qobject_type(obj) != QTYPE_QINT) return NULL; return container_of(obj, QInt, base); }
true
qemu
fcf73f66a67f5e58c18216f8c8651e38cf4d90af
QInt *qobject_to_qint(const QObject *obj) { if (qobject_type(obj) != QTYPE_QINT) return NULL; return container_of(obj, QInt, base); }
{ "code": [ " if (qobject_type(obj) != QTYPE_QINT)" ], "line_no": [ 5 ] }
QInt *FUNC_0(const QObject *obj) { if (qobject_type(obj) != QTYPE_QINT) return NULL; return container_of(obj, QInt, base); }
[ "QInt *FUNC_0(const QObject *obj)\n{", "if (qobject_type(obj) != QTYPE_QINT)\nreturn NULL;", "return container_of(obj, QInt, base);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ] ]
21,594
static int libopenjpeg_copy_packed8(AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) { int compno; int x; int y; int *image_line; int frame_index; const int numcomps = image->numcomps; for (compno = 0; compno < numcomps; ++compno) { if (image->comps[compno]...
true
FFmpeg
56706ac0d5723cb549fec2602e798ab1bf6004cd
static int libopenjpeg_copy_packed8(AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) { int compno; int x; int y; int *image_line; int frame_index; const int numcomps = image->numcomps; for (compno = 0; compno < numcomps; ++compno) { if (image->comps[compno]...
{ "code": [ " image_line[x] = image_line[x - image->comps[compno].w];", " image_line[x] = image_line[x - image->comps[compno].w];", " image_line[x] = image_line[x - image->comps[compno].w];", " image_line[x] = image_line[x - image->comps[comp...
static int FUNC_0(AVCodecContext *VAR_0, const AVFrame *VAR_1, opj_image_t *VAR_2) { int VAR_3; int VAR_4; int VAR_5; int *VAR_6; int VAR_7; const int VAR_8 = VAR_2->VAR_8; for (VAR_3 = 0; VAR_3 < VAR_8; ++VAR_3) { if (VAR_2->comps[VAR_3].w > VAR_1->linesize[0] / VAR_8) { ...
[ "static int FUNC_0(AVCodecContext *VAR_0, const AVFrame *VAR_1, opj_image_t *VAR_2)\n{", "int VAR_3;", "int VAR_4;", "int VAR_5;", "int *VAR_6;", "int VAR_7;", "const int VAR_8 = VAR_2->VAR_8;", "for (VAR_3 = 0; VAR_3 < VAR_8; ++VAR_3) {", "if (VAR_2->comps[VAR_3].w > VAR_1->linesize[0] / VAR_8) {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
21,595
static int spapr_msicfg_find(sPAPRPHBState *phb, uint32_t config_addr, bool alloc_new) { int i; for (i = 0; i < SPAPR_MSIX_MAX_DEVS; ++i) { if (!phb->msi_table[i].nvec) { break; } if (phb->msi_table[i].config_addr == config_addr) { ...
true
qemu
9a321e92343891e30f6fe8bfaad40454ae358bfb
static int spapr_msicfg_find(sPAPRPHBState *phb, uint32_t config_addr, bool alloc_new) { int i; for (i = 0; i < SPAPR_MSIX_MAX_DEVS; ++i) { if (!phb->msi_table[i].nvec) { break; } if (phb->msi_table[i].config_addr == config_addr) { ...
{ "code": [ "static int spapr_msicfg_find(sPAPRPHBState *phb, uint32_t config_addr,", " bool alloc_new)", " int i;", " for (i = 0; i < SPAPR_MSIX_MAX_DEVS; ++i) {", " if (!phb->msi_table[i].nvec) {", " break;", " if (phb->msi_table...
static int FUNC_0(sPAPRPHBState *VAR_0, uint32_t VAR_1, bool VAR_2) { int VAR_3; for (VAR_3 = 0; VAR_3 < SPAPR_MSIX_MAX_DEVS; ++VAR_3) { if (!VAR_0->msi_table[VAR_3].nvec) { break; } if (VAR_0->msi_table[VAR_3].VAR_1 == VAR_1) { ...
[ "static int FUNC_0(sPAPRPHBState *VAR_0, uint32_t VAR_1,\nbool VAR_2)\n{", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < SPAPR_MSIX_MAX_DEVS; ++VAR_3) {", "if (!VAR_0->msi_table[VAR_3].nvec) {", "break;", "}", "if (VAR_0->msi_table[VAR_3].VAR_1 == VAR_1) {", "return VAR_3;", "}", "}", "if ((VAR_3 < SPA...
[ 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
21,596
static void fdctrl_connect_drives(FDCtrl *fdctrl) { unsigned int i; FDrive *drive; for (i = 0; i < MAX_FD; i++) { drive = &fdctrl->drives[i]; fd_init(drive); fd_revalidate(drive); if (drive->bs) { bdrv_set_removable(drive->bs, 1); } } }...
true
qemu
b47b35250fbfa062aedf6ab6e5faab84c4a76f4f
static void fdctrl_connect_drives(FDCtrl *fdctrl) { unsigned int i; FDrive *drive; for (i = 0; i < MAX_FD; i++) { drive = &fdctrl->drives[i]; fd_init(drive); fd_revalidate(drive); if (drive->bs) { bdrv_set_removable(drive->bs, 1); } } }...
{ "code": [ "static void fdctrl_connect_drives(FDCtrl *fdctrl)" ], "line_no": [ 1 ] }
static void FUNC_0(FDCtrl *VAR_0) { unsigned int VAR_1; FDrive *drive; for (VAR_1 = 0; VAR_1 < MAX_FD; VAR_1++) { drive = &VAR_0->drives[VAR_1]; fd_init(drive); fd_revalidate(drive); if (drive->bs) { bdrv_set_removable(drive->bs, 1); } }...
[ "static void FUNC_0(FDCtrl *VAR_0)\n{", "unsigned int VAR_1;", "FDrive *drive;", "for (VAR_1 = 0; VAR_1 < MAX_FD; VAR_1++) {", "drive = &VAR_0->drives[VAR_1];", "fd_init(drive);", "fd_revalidate(drive);", "if (drive->bs) {", "bdrv_set_removable(drive->bs, 1);", "}", "}", "}" ]
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
21,597
static av_cold int decode_init(AVCodecContext *avctx) { ASV1Context *const a = avctx->priv_data; const int scale = avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2; int i; if (avctx->extradata_size < 1) { av_log(avctx, AV_LOG_ERROR, "No extradata provided\n"); return AVERROR_INV...
false
FFmpeg
dcc39ee10e82833ce24aa57926c00ffeb1948198
static av_cold int decode_init(AVCodecContext *avctx) { ASV1Context *const a = avctx->priv_data; const int scale = avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2; int i; if (avctx->extradata_size < 1) { av_log(avctx, AV_LOG_ERROR, "No extradata provided\n"); return AVERROR_INV...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { ASV1Context *const a = avctx->priv_data; const int VAR_0 = avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2; int VAR_1; if (avctx->extradata_size < 1) { av_log(avctx, AV_LOG_ERROR, "No extradata provided\n"); return AVERROR_INVA...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "ASV1Context *const a = avctx->priv_data;", "const int VAR_0 = avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2;", "int VAR_1;", "if (avctx->extradata_size < 1) {", "av_log(avctx, AV_LOG_ERROR, \"No extradata provided\\n\");", "return AVERROR_INVALI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ...
21,598
int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask, const AVFrame *reference) { int len, nb_components, i, h, v, predictor, point_transform; int index, id, ret; const int block_size = s->lossless ? 1 : 8; int ilv, prev_shift; if (!s->got_picture...
false
FFmpeg
94e86ae15a4328b22f6f103b9fd9b6a9ee0c676c
int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask, const AVFrame *reference) { int len, nb_components, i, h, v, predictor, point_transform; int index, id, ret; const int block_size = s->lossless ? 1 : 8; int ilv, prev_shift; if (!s->got_picture...
{ "code": [], "line_no": [] }
int FUNC_0(MJpegDecodeContext *VAR_0, const uint8_t *VAR_1, const AVFrame *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11, VAR_12; const int VAR_13 = VAR_0->lossless ? 1 : 8; int VAR_14, VAR_15; if (!VAR_0->got_picture) { av...
[ "int FUNC_0(MJpegDecodeContext *VAR_0, const uint8_t *VAR_1,\nconst AVFrame *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_12;", "const int VAR_13 = VAR_0->lossless ? 1 : 8;", "int VAR_14, VAR_15;", "if (!VAR_0->got_picture) {", "av_log(VAR_0->avctx, AV_LOG...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
21,599
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVFrame *in_picture, int *frame_size, AVOutputStream *audio_sync) { int nb_frames, i, ret; AVFrame *final_picture, *f...
false
FFmpeg
3c895fc098f7637f6d5ec3a9d6766e724a8b9e41
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVFrame *in_picture, int *frame_size, AVOutputStream *audio_sync) { int nb_frames, i, ret; AVFrame *final_picture, *f...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVOutputStream *VAR_1, AVInputStream *VAR_2, AVFrame *VAR_3, int *VAR_4, AVOutputStream *VAR_5) { int VAR_6, VAR_7, VAR_8; AVFrame *final_picture, *formatted_pi...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nAVOutputStream *VAR_1,\nAVInputStream *VAR_2,\nAVFrame *VAR_3,\nint *VAR_4, AVOutputStream *VAR_5)\n{", "int VAR_6, VAR_7, VAR_8;", "AVFrame *final_picture, *formatted_picture;", "AVFrame picture_format_temp, picture_crop_temp;", "static uint8_t *VAR_9= NULL;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 33 ], [ 35 ], [ 39 ], [ 41 ], [ 47 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [...
21,600
static void av_always_inline filter_mb_edgecv( uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, H264Context *h ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; ...
false
FFmpeg
a4f6be86d67ae30d494fbe8a470bc32b715d75a9
static void av_always_inline filter_mb_edgecv( uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, H264Context *h ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; ...
{ "code": [], "line_no": [] }
static void VAR_0 filter_mb_edgecv( uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, H264Context *h ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; const in...
[ "static void VAR_0 filter_mb_edgecv( uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, H264Context *h ) {", "const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);", "const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;", "const int alpha = alpha_table[index_a];", "con...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
21,602
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; #ifde...
false
FFmpeg
87e302bfd8ffbc6cdb20920029013956b10ace63
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; #ifde...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MpegEncContext *s = VAR_0->priv_data; int VAR_6; AVFrame *pict = VAR_1; #ifdef PRINT_FRAME_...
[ "int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_6;", "AVFrame *pict = VAR_1;", "#ifdef PRINT_FRAME_TIME\nuint64_t time= rdtsc();", "#endif\n#ifdef D...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [...
21,603
static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int64_t *pkt_pts) { AVFrame *decoded_frame, *filtered_frame = NULL; void *buffer_to_free = NULL; int i, ret = 0; float quality; #if CONFIG_AVFILTER int frame_available = 1; #endif if (!ist->decoded_frame && !...
false
FFmpeg
2636e691ce5347756a2c05b3105b0277c1b9acb4
static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int64_t *pkt_pts) { AVFrame *decoded_frame, *filtered_frame = NULL; void *buffer_to_free = NULL; int i, ret = 0; float quality; #if CONFIG_AVFILTER int frame_available = 1; #endif if (!ist->decoded_frame && !...
{ "code": [], "line_no": [] }
static int FUNC_0(InputStream *VAR_0, AVPacket *VAR_1, int *VAR_2, int64_t *VAR_3) { AVFrame *decoded_frame, *filtered_frame = NULL; void *VAR_4 = NULL; int VAR_5, VAR_6 = 0; float VAR_7; #if CONFIG_AVFILTER int frame_available = 1; #endif if (!VAR_0->decoded_frame && !(VAR_0->decoded...
[ "static int FUNC_0(InputStream *VAR_0, AVPacket *VAR_1, int *VAR_2, int64_t *VAR_3)\n{", "AVFrame *decoded_frame, *filtered_frame = NULL;", "void *VAR_4 = NULL;", "int VAR_5, VAR_6 = 0;", "float VAR_7;", "#if CONFIG_AVFILTER\nint frame_available = 1;", "#endif\nif (!VAR_0->decoded_frame && !(VAR_0->deco...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 55 ...
21,604
enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags) { if (bps > 64U) return AV_CODEC_ID_NONE; if (flt) { switch (bps) { case 32: return be ? AV_CODEC_ID_PCM_F32BE : AV_CODEC_ID_PCM_F32LE; case 64: return be ? AV_CODEC_ID_PCM...
false
FFmpeg
2875745d354ab0ebc4af1ebaca5c5a8d26ccdc03
enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags) { if (bps > 64U) return AV_CODEC_ID_NONE; if (flt) { switch (bps) { case 32: return be ? AV_CODEC_ID_PCM_F32BE : AV_CODEC_ID_PCM_F32LE; case 64: return be ? AV_CODEC_ID_PCM...
{ "code": [], "line_no": [] }
enum AVCodecID FUNC_0(int VAR_0, int VAR_1, int VAR_2, int VAR_3) { if (VAR_0 > 64U) return AV_CODEC_ID_NONE; if (VAR_1) { switch (VAR_0) { case 32: return VAR_2 ? AV_CODEC_ID_PCM_F32BE : AV_CODEC_ID_PCM_F32LE; case 64: return VAR_2 ? AV_CODEC_I...
[ "enum AVCodecID FUNC_0(int VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "if (VAR_0 > 64U)\nreturn AV_CODEC_ID_NONE;", "if (VAR_1) {", "switch (VAR_0) {", "case 32:\nreturn VAR_2 ? AV_CODEC_ID_PCM_F32BE : AV_CODEC_ID_PCM_F32LE;", "case 64:\nreturn VAR_2 ? AV_CODEC_ID_PCM_F64BE : AV_CODEC_ID_PCM_F64LE;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], ...
21,605
static int synthfilt_build_sb_samples (QDM2Context *q, GetBitContext *gb, int length, int sb_min, int sb_max) { int sb, j, k, n, ch, run, channels; int joined_stereo, zero_encoding, chs; int type34_first; float type34_div = 0; float type34_predictor; float samples[10], sign_bits[16]; ...
false
FFmpeg
fe91becc2dcf32fc4bc56b00b4533d34ec3d27f5
static int synthfilt_build_sb_samples (QDM2Context *q, GetBitContext *gb, int length, int sb_min, int sb_max) { int sb, j, k, n, ch, run, channels; int joined_stereo, zero_encoding, chs; int type34_first; float type34_div = 0; float type34_predictor; float samples[10], sign_bits[16]; ...
{ "code": [], "line_no": [] }
static int FUNC_0 (QDM2Context *VAR_0, GetBitContext *VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; int VAR_12, VAR_13, VAR_14; int VAR_15; float VAR_16 = 0; float VAR_17; float VAR_18[10], VAR_19[16]; if (VAR_2 == 0) { ...
[ "static int FUNC_0 (QDM2Context *VAR_0, GetBitContext *VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "int VAR_12, VAR_13, VAR_14;", "int VAR_15;", "float VAR_16 = 0;", "float VAR_17;", "float VAR_18[10], VAR_19[16];", "if (VAR_2 == 0) {", "for...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 45, 47 ], [ 49, 51 ], [ 53, 55 ], [...
21,606
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) { PadContext *pad = inlink->dst->priv; AVFilterBufferRef *outpicref = avfilter_ref_buffer(inpicref, ~0); int plane; inlink->dst->outputs[0]->out_buf = outpicref; for (plane = 0; plane < 4 && outpicref->data[plane]; ...
false
FFmpeg
e3331706fcc9888ee85f0b9f763e4d006b178c14
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) { PadContext *pad = inlink->dst->priv; AVFilterBufferRef *outpicref = avfilter_ref_buffer(inpicref, ~0); int plane; inlink->dst->outputs[0]->out_buf = outpicref; for (plane = 0; plane < 4 && outpicref->data[plane]; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { PadContext *pad = VAR_0->dst->priv; AVFilterBufferRef *outpicref = avfilter_ref_buffer(VAR_1, ~0); int VAR_2; VAR_0->dst->outputs[0]->out_buf = outpicref; for (VAR_2 = 0; VAR_2 < 4 && outpicref->data[VAR_2]; VAR_2++) { ...
[ "static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "PadContext *pad = VAR_0->dst->priv;", "AVFilterBufferRef *outpicref = avfilter_ref_buffer(VAR_1, ~0);", "int VAR_2;", "VAR_0->dst->outputs[0]->out_buf = outpicref;", "for (VAR_2 = 0; VAR_2 < 4 && outpicref->data[VAR_2]; VAR_2++) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
21,608
static int thread_init(AVCodecContext *avctx) { int i; ThreadContext *c; int thread_count = avctx->thread_count; if (!thread_count) { int nb_cpus = get_logical_cpus(avctx); // use number of cores + 1 as thread count if there is motre than one if (nb_cpus > 1) ...
false
FFmpeg
b12d21733975f9001eecb480fc28e5e4473b1327
static int thread_init(AVCodecContext *avctx) { int i; ThreadContext *c; int thread_count = avctx->thread_count; if (!thread_count) { int nb_cpus = get_logical_cpus(avctx); if (nb_cpus > 1) thread_count = avctx->thread_count = nb_cpus + 1; } if...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { int VAR_1; ThreadContext *c; int VAR_2 = VAR_0->VAR_2; if (!VAR_2) { int VAR_3 = get_logical_cpus(VAR_0); if (VAR_3 > 1) VAR_2 = VAR_0->VAR_2 = VAR_3 + 1; } if (VAR_2 <= 1) { VAR_0->active_thr...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "int VAR_1;", "ThreadContext *c;", "int VAR_2 = VAR_0->VAR_2;", "if (!VAR_2) {", "int VAR_3 = get_logical_cpus(VAR_0);", "if (VAR_3 > 1)\nVAR_2 = VAR_0->VAR_2 = VAR_3 + 1;", "}", "if (VAR_2 <= 1) {", "VAR_0->active_thread_type = 0;", "return 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
21,609
static av_cold int vtenc_init(AVCodecContext *avctx) { CFMutableDictionaryRef enc_info; CFMutableDictionaryRef pixel_buffer_info; CMVideoCodecType codec_type; VTEncContext *vtctx = avctx->priv_data; CFStringRef profile_level; CFBooleanRef has_b_frames_...
false
FFmpeg
dcd3418a35aab7ef283b68ed9997ce4ac204094e
static av_cold int vtenc_init(AVCodecContext *avctx) { CFMutableDictionaryRef enc_info; CFMutableDictionaryRef pixel_buffer_info; CMVideoCodecType codec_type; VTEncContext *vtctx = avctx->priv_data; CFStringRef profile_level; CFBooleanRef has_b_frames_...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { CFMutableDictionaryRef enc_info; CFMutableDictionaryRef pixel_buffer_info; CMVideoCodecType codec_type; VTEncContext *vtctx = avctx->priv_data; CFStringRef profile_level; CFBooleanRef has_b_frames_cfbo...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "CFMutableDictionaryRef enc_info;", "CFMutableDictionaryRef pixel_buffer_info;", "CMVideoCodecType codec_type;", "VTEncContext *vtctx = avctx->priv_data;", "CFStringRef profile_level;", "CFBooleanRef has_b_frames...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ...
21,610
av_cold void ff_dsputil_init_alpha(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; /* amask clears all bits that correspond to present features. */ if (amask(AMASK_MVI) == 0) { c->put_pixels_clamped = put_pixels_clamped_mvi_asm; c->...
true
FFmpeg
550bda741cfe0e471a70e40529a9ab02d31b7049
av_cold void ff_dsputil_init_alpha(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; if (amask(AMASK_MVI) == 0) { c->put_pixels_clamped = put_pixels_clamped_mvi_asm; c->add_pixels_clamped = add_pixels_clamped_mvi_asm; if (!...
{ "code": [ " c->put_pixels_clamped = put_pixels_clamped_mvi_asm;", " c->add_pixels_clamped = add_pixels_clamped_mvi_asm;", " put_pixels_clamped_axp_p = c->put_pixels_clamped;", " add_pixels_clamped_axp_p = c->add_pixels_clamped;", " if (!avctx->lowres && avctx->bits_per_raw...
av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx) { const int VAR_0 = avctx->bits_per_raw_sample > 8; if (amask(AMASK_MVI) == 0) { c->put_pixels_clamped = put_pixels_clamped_mvi_asm; c->add_pixels_clamped = add_pixels_clamped_mvi_asm; if (!VAR_0) c->g...
[ "av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx)\n{", "const int VAR_0 = avctx->bits_per_raw_sample > 8;", "if (amask(AMASK_MVI) == 0) {", "c->put_pixels_clamped = put_pixels_clamped_mvi_asm;", "c->add_pixels_clamped = add_pixels_clamped_mvi_asm;", "if (!VAR_0)\nc->get_pixels = get_pixels_mvi;...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49, 51, 53 ], ...
21,611
static av_always_inline int dnxhd_decode_dct_block(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, ...
true
FFmpeg
b2be76c0a472b729756ed7a91225c209d0dd1d2e
static av_always_inline int dnxhd_decode_dct_block(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, ...
{ "code": [], "line_no": [] }
static av_always_inline int FUNC_0(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, int level_bi...
[ "static av_always_inline int FUNC_0(const DNXHDContext *ctx,\nRowContext *row,\nint n,\nint index_bits,\nint level_bias,\nint level_shift,\nint dc_shift)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7, VAR_8;", "const int *VAR_9;", "const uint8_t *VAR_10;", "const uint8_t *VAR_11 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
21,613
static void pci_write(void *opaque, hwaddr addr, uint64_t data, unsigned int size) { AcpiPciHpState *s = opaque; switch (addr) { case PCI_EJ_BASE: if (s->hotplug_select >= ACPI_PCIHP_MAX_HOTPLUG_BUS) { break; } acpi_pcihp_eject_slot(s, s->ho...
false
qemu
f5855994fee2f8815dc86b8453e4a63e290aea05
static void pci_write(void *opaque, hwaddr addr, uint64_t data, unsigned int size) { AcpiPciHpState *s = opaque; switch (addr) { case PCI_EJ_BASE: if (s->hotplug_select >= ACPI_PCIHP_MAX_HOTPLUG_BUS) { break; } acpi_pcihp_eject_slot(s, s->ho...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned int VAR_3) { AcpiPciHpState *s = VAR_0; switch (VAR_1) { case PCI_EJ_BASE: if (s->hotplug_select >= ACPI_PCIHP_MAX_HOTPLUG_BUS) { break; } acpi_pcihp_eject_slot(s, s->hot...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,\nunsigned int VAR_3)\n{", "AcpiPciHpState *s = VAR_0;", "switch (VAR_1) {", "case PCI_EJ_BASE:\nif (s->hotplug_select >= ACPI_PCIHP_MAX_HOTPLUG_BUS) {", "break;", "}", "acpi_pcihp_eject_slot(s, s->hotplug_select, VAR_2);", "ACPI_PCIHP_DPRI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ] ]
21,614
int64_t qemu_strtosz(const char *nptr, char **end) { return do_strtosz(nptr, end, 'B', 1024); }
false
qemu
f17fd4fdf0df3d2f3444399d04c38d22b9a3e1b7
int64_t qemu_strtosz(const char *nptr, char **end) { return do_strtosz(nptr, end, 'B', 1024); }
{ "code": [], "line_no": [] }
int64_t FUNC_0(const char *nptr, char **end) { return do_strtosz(nptr, end, 'B', 1024); }
[ "int64_t FUNC_0(const char *nptr, char **end)\n{", "return do_strtosz(nptr, end, 'B', 1024);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]