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
376
static int http_receive_data(HTTPContext *c) { int len; HTTPContext *c1; if (c->buffer_ptr >= c->buffer_end) { FFStream *feed = c->stream; /* a packet has been received : write it in the store, except if header */ if (c->data_count > FFM_PACKET_SIZE) { ...
true
FFmpeg
a6e14edde01bafbbe54f6f451efa718a48975b47
static int http_receive_data(HTTPContext *c) { int len; HTTPContext *c1; if (c->buffer_ptr >= c->buffer_end) { FFStream *feed = c->stream; if (c->data_count > FFM_PACKET_SIZE) { lseek(c->feed_fd, feed->feed_write_inde...
{ "code": [ " int len;", " len = read(c->fd, c->buffer_ptr, c->buffer_end - c->buffer_ptr);", " if (len < 0) {", " if (errno != EAGAIN && errno != EINTR) {", " goto fail;", " } else if (len == 0) {", " goto fail;", " } else {", " c->bu...
static int FUNC_0(HTTPContext *VAR_0) { int VAR_1; HTTPContext *c1; if (VAR_0->buffer_ptr >= VAR_0->buffer_end) { FFStream *feed = VAR_0->stream; if (VAR_0->data_count > FFM_PACKET_SIZE) { lseek(VAR_0->feed_fd, feed->...
[ "static int FUNC_0(HTTPContext *VAR_0)\n{", "int VAR_1;", "HTTPContext *c1;", "if (VAR_0->buffer_ptr >= VAR_0->buffer_end) {", "FFStream *feed = VAR_0->stream;", "if (VAR_0->data_count > FFM_PACKET_SIZE) {", "lseek(VAR_0->feed_fd, feed->feed_write_index, SEEK_SET);", "write(VAR_0->feed_fd, VAR_0->buff...
[ 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, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 19 ], [ 27 ], [ 29 ], [ 33 ], [ 37, 39 ], [ 45, 47 ], [ 53 ], [ 59 ], [ 61, 63 ], [ 65 ], [ 67 ], [ 69 ], [ 71 ], ...
377
static int stellaris_sys_init(uint32_t base, qemu_irq irq, stellaris_board_info * board, uint8_t *macaddr) { ssys_state *s; s = (ssys_state *)g_malloc0(sizeof(ssys_state)); s->irq = irq; s->board = board; /* Most devices come prep...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
static int stellaris_sys_init(uint32_t base, qemu_irq irq, stellaris_board_info * board, uint8_t *macaddr) { ssys_state *s; s = (ssys_state *)g_malloc0(sizeof(ssys_state)); s->irq = irq; s->board = board; s->user0 = macaddr[...
{ "code": [ " s = (ssys_state *)g_malloc0(sizeof(ssys_state));" ], "line_no": [ 13 ] }
static int FUNC_0(uint32_t VAR_0, qemu_irq VAR_1, stellaris_board_info * VAR_2, uint8_t *VAR_3) { ssys_state *s; s = (ssys_state *)g_malloc0(sizeof(ssys_state)); s->VAR_1 = VAR_1; s->VAR_2 = VAR_2; s->user0 = VAR_3[0] | (VAR...
[ "static int FUNC_0(uint32_t VAR_0, qemu_irq VAR_1,\nstellaris_board_info * VAR_2,\nuint8_t *VAR_3)\n{", "ssys_state *s;", "s = (ssys_state *)g_malloc0(sizeof(ssys_state));", "s->VAR_1 = VAR_1;", "s->VAR_2 = VAR_2;", "s->user0 = VAR_3[0] | (VAR_3[1] << 8) | (VAR_3[2] << 16);", "s->user1 = VAR_3[3] | (VAR...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
379
static int kvm_recommended_vcpus(KVMState *s) { int ret = kvm_check_extension(s, KVM_CAP_NR_VCPUS); return (ret) ? ret : 4; }
true
qemu
11748ba72ea4fc03e975aa5f5d876b5b0902e356
static int kvm_recommended_vcpus(KVMState *s) { int ret = kvm_check_extension(s, KVM_CAP_NR_VCPUS); return (ret) ? ret : 4; }
{ "code": [ " int ret = kvm_check_extension(s, KVM_CAP_NR_VCPUS);" ], "line_no": [ 5 ] }
static int FUNC_0(KVMState *VAR_0) { int VAR_1 = kvm_check_extension(VAR_0, KVM_CAP_NR_VCPUS); return (VAR_1) ? VAR_1 : 4; }
[ "static int FUNC_0(KVMState *VAR_0)\n{", "int VAR_1 = kvm_check_extension(VAR_0, KVM_CAP_NR_VCPUS);", "return (VAR_1) ? VAR_1 : 4;", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
380
static void reschedule_dma(void *opaque) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; qemu_bh_delete(dbs->bh); dbs->bh = NULL; dma_bdrv_cb(opaque, 0); }
true
qemu
c3adb5b9168a57790b5074489b6f0275ac3cc8b5
static void reschedule_dma(void *opaque) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; qemu_bh_delete(dbs->bh); dbs->bh = NULL; dma_bdrv_cb(opaque, 0); }
{ "code": [ " dma_bdrv_cb(opaque, 0);" ], "line_no": [ 13 ] }
static void FUNC_0(void *VAR_0) { DMAAIOCB *dbs = (DMAAIOCB *)VAR_0; qemu_bh_delete(dbs->bh); dbs->bh = NULL; dma_bdrv_cb(VAR_0, 0); }
[ "static void FUNC_0(void *VAR_0)\n{", "DMAAIOCB *dbs = (DMAAIOCB *)VAR_0;", "qemu_bh_delete(dbs->bh);", "dbs->bh = NULL;", "dma_bdrv_cb(VAR_0, 0);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
381
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { ADPCMContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; int block_predictor[2]; short *samples; ...
true
FFmpeg
e457023a95e449ac2c80a49256f0611d5a8fffff
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { ADPCMContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; int block_predictor[2]; short *samples; ...
{ "code": [ " *samples = ((prev[ch][0]*factor1" ], "line_no": [ 1069 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { ADPCMContext *c = VAR_0->priv_data; ADPCMChannelStatus *cs; int VAR_5, VAR_6, VAR_7, VAR_24; int VAR_9[2]; short *VAR_10; short *VAR_11;...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "ADPCMContext *c = VAR_0->priv_data;", "ADPCMChannelStatus *cs;", "int VAR_5, VAR_6, VAR_7, VAR_24;", "int VAR_9[2];", "short *VAR_10;", "short *VAR_11;", "uint8_t *src;", "int VAR_12;", "unsigned ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
382
static coroutine_fn void test_multi_co_schedule_entry(void *opaque) { g_assert(to_schedule[id] == NULL); atomic_mb_set(&to_schedule[id], qemu_coroutine_self()); while (!atomic_mb_read(&now_stopping)) { int n; n = g_test_rand_int_range(0, NUM_CONTEXTS); schedule_next(n); ...
true
qemu
fb0c43f34eed8b18678c6e1f481d8564b35c99ed
static coroutine_fn void test_multi_co_schedule_entry(void *opaque) { g_assert(to_schedule[id] == NULL); atomic_mb_set(&to_schedule[id], qemu_coroutine_self()); while (!atomic_mb_read(&now_stopping)) { int n; n = g_test_rand_int_range(0, NUM_CONTEXTS); schedule_next(n); ...
{ "code": [ " atomic_mb_set(&to_schedule[id], qemu_coroutine_self());", " qemu_coroutine_yield();", " g_assert(to_schedule[id] == NULL);" ], "line_no": [ 7, 21, 25 ] }
static coroutine_fn void FUNC_0(void *opaque) { g_assert(to_schedule[id] == NULL); atomic_mb_set(&to_schedule[id], qemu_coroutine_self()); while (!atomic_mb_read(&now_stopping)) { int VAR_0; VAR_0 = g_test_rand_int_range(0, NUM_CONTEXTS); schedule_next(VAR_0); qem...
[ "static coroutine_fn void FUNC_0(void *opaque)\n{", "g_assert(to_schedule[id] == NULL);", "atomic_mb_set(&to_schedule[id], qemu_coroutine_self());", "while (!atomic_mb_read(&now_stopping)) {", "int VAR_0;", "VAR_0 = g_test_rand_int_range(0, NUM_CONTEXTS);", "schedule_next(VAR_0);", "qemu_coroutine_yie...
[ 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
383
static int qcow_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcowState *s = bs->opaque; int len, i, shift, ret; QCowHeader header; ret = bdrv_pread(bs->file, 0, &header, sizeof(header)); if (ret < 0) { goto fail; } be32_to...
true
qemu
d66e5cee002c471b78139228a4e7012736b375f9
static int qcow_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcowState *s = bs->opaque; int len, i, shift, ret; QCowHeader header; ret = bdrv_pread(bs->file, 0, &header, sizeof(header)); if (ret < 0) { goto fail; } be32_to...
{ "code": [ " int len, i, shift, ret;", " len = 1023;" ], "line_no": [ 9, 219 ] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVQcowState *s = VAR_0->opaque; int VAR_4, VAR_5, VAR_6, VAR_7; QCowHeader header; VAR_7 = bdrv_pread(VAR_0->file, 0, &header, sizeof(header)); if (VAR_7 < 0) { goto fail; ...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "QCowHeader header;", "VAR_7 = bdrv_pread(VAR_0->file, 0, &header, sizeof(header));", "if (VAR_7 < 0) {", "goto fail;", "}", "be32_to_cpus...
[ 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, 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 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [...
384
static AVFilterBufferRef *copy_buffer_ref(AVFilterContext *ctx, AVFilterBufferRef *ref) { AVFilterLink *outlink = ctx->outputs[0]; AVFilterBufferRef *buf; int channels, data_size, i; switch (outlink->type) { case AVMEDIA_TYPE_VIDEO: buf =...
true
FFmpeg
ac87c273a646eb8feba8e47f15da4934d119f650
static AVFilterBufferRef *copy_buffer_ref(AVFilterContext *ctx, AVFilterBufferRef *ref) { AVFilterLink *outlink = ctx->outputs[0]; AVFilterBufferRef *buf; int channels, data_size, i; switch (outlink->type) { case AVMEDIA_TYPE_VIDEO: buf =...
{ "code": [], "line_no": [] }
static AVFilterBufferRef *FUNC_0(AVFilterContext *ctx, AVFilterBufferRef *ref) { AVFilterLink *outlink = ctx->outputs[0]; AVFilterBufferRef *buf; int VAR_0, VAR_1, VAR_2; switch (outlink->type) { case AVMEDIA_TYPE_VIDEO: buf = avfilter_ge...
[ "static AVFilterBufferRef *FUNC_0(AVFilterContext *ctx,\nAVFilterBufferRef *ref)\n{", "AVFilterLink *outlink = ctx->outputs[0];", "AVFilterBufferRef *buf;", "int VAR_0, VAR_1, VAR_2;", "switch (outlink->type) {", "case AVMEDIA_TYPE_VIDEO:\nbuf = avfilter_get_video_buffer(outlink, AV_PERM_WRITE,\nref->vide...
[ 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, 23 ], [ 27, 29, 31 ], [ 33 ], [ 37, 39, 41 ], [ 45 ], [ 47, 49, 51, 53 ], [ 55 ], [ 59, 62 ], [ 64 ], [...
385
void qmp_block_commit(const char *device, bool has_base, const char *base, const char *top, bool has_speed, int64_t speed, Error **errp) { BlockDriverState *bs; BlockDriverState *base_bs, *top_bs; Error *local_err = NULL; /* This ...
true
qemu
d5208c45be38ab858db6ec5a5097aa1c1a8ebbc9
void qmp_block_commit(const char *device, bool has_base, const char *base, const char *top, bool has_speed, int64_t speed, Error **errp) { BlockDriverState *bs; BlockDriverState *base_bs, *top_bs; Error *local_err = NULL; ...
{ "code": [ " if (base && has_base) {", " base_bs = bdrv_find_backing_image(bs, base);", " } else {", " base_bs = bdrv_find_base(bs);", " if (base_bs == NULL) {", " error_set(errp, QERR_BASE_NOT_FOUND, base ? base : \"NULL\");" ], "line_no": [ 43, 45, ...
void FUNC_0(const char *VAR_0, bool VAR_1, const char *VAR_2, const char *VAR_3, bool VAR_4, int64_t VAR_5, Error **VAR_6) { BlockDriverState *bs; BlockDriverState *base_bs, *top_bs; Error *local_err = NULL; BlockdevOnEr...
[ "void FUNC_0(const char *VAR_0,\nbool VAR_1, const char *VAR_2, const char *VAR_3,\nbool VAR_4, int64_t VAR_5,\nError **VAR_6)\n{", "BlockDriverState *bs;", "BlockDriverState *base_bs, *top_bs;", "Error *local_err = NULL;", "BlockdevOnError on_error = BLOCKDEV_ON_ERROR_REPORT;", "bdrv_drain_all();", "bs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 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 ], [ 15 ], [ 23 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
386
static int mkv_check_tag(AVDictionary *m) { AVDictionaryEntry *t = NULL; while ((t = av_dict_get(m, "", t, AV_DICT_IGNORE_SUFFIX))) if (av_strcasecmp(t->key, "title") && av_strcasecmp(t->key, "stereo_mode")) return 1; return 0; }
false
FFmpeg
843e72ea5542845a0a9fed743517c14a92279885
static int mkv_check_tag(AVDictionary *m) { AVDictionaryEntry *t = NULL; while ((t = av_dict_get(m, "", t, AV_DICT_IGNORE_SUFFIX))) if (av_strcasecmp(t->key, "title") && av_strcasecmp(t->key, "stereo_mode")) return 1; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVDictionary *VAR_0) { AVDictionaryEntry *t = NULL; while ((t = av_dict_get(VAR_0, "", t, AV_DICT_IGNORE_SUFFIX))) if (av_strcasecmp(t->key, "title") && av_strcasecmp(t->key, "stereo_mode")) return 1; return 0; }
[ "static int FUNC_0(AVDictionary *VAR_0)\n{", "AVDictionaryEntry *t = NULL;", "while ((t = av_dict_get(VAR_0, \"\", t, AV_DICT_IGNORE_SUFFIX)))\nif (av_strcasecmp(t->key, \"title\") && av_strcasecmp(t->key, \"stereo_mode\"))\nreturn 1;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 17 ], [ 19 ] ]
387
int ff_h2645_extract_rbsp(const uint8_t *src, int length, H2645NAL *nal) { int i, si, di; uint8_t *dst; nal->skipped_bytes = 0; #define STARTCODE_TEST \ if (i + 2 < length && src[i + 1] == 0 && src[i + 2] <= 3) { ...
false
FFmpeg
cc13bc8c4f0f4afa30d0b94c3f3a369ccd2aaf0b
int ff_h2645_extract_rbsp(const uint8_t *src, int length, H2645NAL *nal) { int i, si, di; uint8_t *dst; nal->skipped_bytes = 0; #define STARTCODE_TEST \ if (i + 2 < length && src[i + 1] == 0 && src[i + 2] <= 3) { ...
{ "code": [], "line_no": [] }
int FUNC_0(const uint8_t *VAR_0, int VAR_1, H2645NAL *VAR_2) { int VAR_3, VAR_4, VAR_5; uint8_t *dst; VAR_2->skipped_bytes = 0; #define STARTCODE_TEST \ if (VAR_3 + 2 < VAR_1 && VAR_0[VAR_3 + 1] == 0 && VAR_0[VAR_3 +...
[ "int FUNC_0(const uint8_t *VAR_0, int VAR_1,\nH2645NAL *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "uint8_t *dst;", "VAR_2->skipped_bytes = 0;", "#define STARTCODE_TEST \\\nif (VAR_3 + 2 < VAR_1 && VAR_0[VAR_3 + 1] == 0 && VAR_0[VAR_3 + 2] <= 3) { \\", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31, 33, 35, 37 ], [ 39, 41, 43, 45 ], [ 47, 49, 51, 53 ], [ 55 ...
388
static int encode_mode(CinepakEncContext *s, CinepakMode mode, int h, int v1_size, int v4_size, int v4, AVPicture *scratch_pict, strip_info *info, unsigned char *buf) { int x, y, z, flags, bits, temp_size, header_ofs, ret = 0, mb_count = s->w * h / MB_AREA; int needs_extra_bit, should_write_temp; unsign...
true
FFmpeg
7da9f4523159670d577a2808d4481e64008a8894
static int encode_mode(CinepakEncContext *s, CinepakMode mode, int h, int v1_size, int v4_size, int v4, AVPicture *scratch_pict, strip_info *info, unsigned char *buf) { int x, y, z, flags, bits, temp_size, header_ofs, ret = 0, mb_count = s->w * h / MB_AREA; int needs_extra_bit, should_write_temp; unsign...
{ "code": [ " switch(mode) {", " for(x = 0; x < mb_count; x++) {", " mb = &s->mb[x];", " for(x = 0; x < mb_count; x++) {", " mb = &s->mb[x];", "static int encode_mode(CinepakEncContext *s, CinepakMode mode, int h, int v1_size, int v4_size, int v4, AVPictu...
static int FUNC_0(CinepakEncContext *VAR_0, CinepakMode VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, AVPicture *VAR_6, strip_info *VAR_7, unsigned char *VAR_8) { int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16 = 0, VAR_17 = VAR_0->w * VAR_2 / MB_AREA; int VAR_18, VAR_19; unsigned...
[ "static int FUNC_0(CinepakEncContext *VAR_0, CinepakMode VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, AVPicture *VAR_6, strip_info *VAR_7, unsigned char *VAR_8)\n{", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16 = 0, VAR_17 = VAR_0->w * VAR_2 / MB_AREA;", "int VAR_18, VAR_19;", "uns...
[ 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 19, 21 ], [ 25, 27 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47 ], [ 51, 53 ], [ 55, 57 ], [ 59 ], [ 61 ], [...
389
static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap) { ByteIOContext *pb = &s->pb; SmackerContext *smk = (SmackerContext *)s->priv_data; AVStream *st, *ast[7]; int i, ret; int tbase; /* read and check header */ smk->magic = get_le32(pb); if (smk->magic != MKTAG('S',...
true
FFmpeg
a443a2530d00b7019269202ac0f5ca8ba0a021c7
static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap) { ByteIOContext *pb = &s->pb; SmackerContext *smk = (SmackerContext *)s->priv_data; AVStream *st, *ast[7]; int i, ret; int tbase; smk->magic = get_le32(pb); if (smk->magic != MKTAG('S', 'M', 'K', '2') && smk->mag...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { ByteIOContext *pb = &VAR_0->pb; SmackerContext *smk = (SmackerContext *)VAR_0->priv_data; AVStream *st, *ast[7]; int VAR_2, VAR_3; int VAR_4; smk->magic = get_le32(pb); if (smk->magic != MKTAG('S', 'M', 'K', '2') && ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "ByteIOContext *pb = &VAR_0->pb;", "SmackerContext *smk = (SmackerContext *)VAR_0->priv_data;", "AVStream *st, *ast[7];", "int VAR_2, VAR_3;", "int VAR_4;", "smk->magic = get_le32(pb);", "if (smk->magic != MKTAG('S', 'M', 'K', ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 9 ], [ 10, 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ ...
392
static void pci_edu_realize(PCIDevice *pdev, Error **errp) { EduState *edu = DO_UPCAST(EduState, pdev, pdev); uint8_t *pci_conf = pdev->config; timer_init_ms(&edu->dma_timer, QEMU_CLOCK_VIRTUAL, edu_dma_timer, edu); qemu_mutex_init(&edu->thr_mutex); qemu_cond_init(&edu->thr_cond); qem...
true
qemu
c25a67f0c3d0c86231f9653267a222c4effa706f
static void pci_edu_realize(PCIDevice *pdev, Error **errp) { EduState *edu = DO_UPCAST(EduState, pdev, pdev); uint8_t *pci_conf = pdev->config; timer_init_ms(&edu->dma_timer, QEMU_CLOCK_VIRTUAL, edu_dma_timer, edu); qemu_mutex_init(&edu->thr_mutex); qemu_cond_init(&edu->thr_cond); qem...
{ "code": [ " pci_config_set_interrupt_pin(pci_conf, 1);", " if (msi_init(pdev, 0, 1, true, false, errp)) {" ], "line_no": [ 25, 29 ] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { EduState *edu = DO_UPCAST(EduState, VAR_0, VAR_0); uint8_t *pci_conf = VAR_0->config; timer_init_ms(&edu->dma_timer, QEMU_CLOCK_VIRTUAL, edu_dma_timer, edu); qemu_mutex_init(&edu->thr_mutex); qemu_cond_init(&edu->thr_cond); qemu_th...
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "EduState *edu = DO_UPCAST(EduState, VAR_0, VAR_0);", "uint8_t *pci_conf = VAR_0->config;", "timer_init_ms(&edu->dma_timer, QEMU_CLOCK_VIRTUAL, edu_dma_timer, edu);", "qemu_mutex_init(&edu->thr_mutex);", "qemu_cond_init(&edu->thr_cond);", "qemu_t...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ] ]
393
uint64_t pc_dimm_get_free_addr(uint64_t address_space_start, uint64_t address_space_size, uint64_t *hint, uint64_t size, Error **errp) { GSList *list = NULL, *item; uint64_t new_addr, ret = 0; uint64_t addres...
true
qemu
9b79a76cdbb43b0b00aaf6e9421298842fc68841
uint64_t pc_dimm_get_free_addr(uint64_t address_space_start, uint64_t address_space_size, uint64_t *hint, uint64_t size, Error **errp) { GSList *list = NULL, *item; uint64_t new_addr, ret = 0; uint64_t addres...
{ "code": [ " assert(address_space_end > address_space_size);" ], "line_no": [ 19 ] }
uint64_t FUNC_0(uint64_t address_space_start, uint64_t address_space_size, uint64_t *hint, uint64_t size, Error **errp) { GSList *list = NULL, *item; uint64_t new_addr, ret = 0; uint64_t address_space_end = a...
[ "uint64_t FUNC_0(uint64_t address_space_start,\nuint64_t address_space_size,\nuint64_t *hint, uint64_t size,\nError **errp)\n{", "GSList *list = NULL, *item;", "uint64_t new_addr, ret = 0;", "uint64_t address_space_end = address_space_start + address_space_size;", "assert(address_space_end > address_space_s...
[ 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [...
394
static int wma_decode_block(WMACodecContext *s) { int n, v, a, ch, bsize; int coef_nb_bits, total_gain; int nb_coefs[MAX_CHANNELS]; float mdct_norm; FFTContext *mdct; #ifdef TRACE tprintf(s->avctx, "***decode_block: %d:%d\n", s->frame_count - 1, s->block_num); #endif /* compute...
true
FFmpeg
ec8a4841f7e81040f9a2757f23e70dff5e6b33a4
static int wma_decode_block(WMACodecContext *s) { int n, v, a, ch, bsize; int coef_nb_bits, total_gain; int nb_coefs[MAX_CHANNELS]; float mdct_norm; FFTContext *mdct; #ifdef TRACE tprintf(s->avctx, "***decode_block: %d:%d\n", s->frame_count - 1, s->block_num); #endif if (...
{ "code": [], "line_no": [] }
static int FUNC_0(WMACodecContext *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6, VAR_7; int VAR_8[MAX_CHANNELS]; float VAR_9; FFTContext *mdct; #ifdef TRACE tprintf(VAR_0->avctx, "***decode_block: %d:%d\VAR_1", VAR_0->frame_count - 1, VAR_0->block_num); #endif ...
[ "static int FUNC_0(WMACodecContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7;", "int VAR_8[MAX_CHANNELS];", "float VAR_9;", "FFTContext *mdct;", "#ifdef TRACE\ntprintf(VAR_0->avctx, \"***decode_block: %d:%d\\VAR_1\", VAR_0->frame_count - 1, VAR_0->block_num);", "#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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 46 ], [ 48 ], [ 50 ], [ 52 ...
397
static int floppy_probe_device(const char *filename) { int fd, ret; int prio = 0; struct floppy_struct fdparam; struct stat st; if (strstart(filename, "/dev/fd", NULL)) prio = 50; fd = open(filename, O_RDONLY | O_NONBLOCK); if (fd < 0) { goto out; } re...
false
qemu
e17408283562be359f16a7e12ddfee7509d6fe11
static int floppy_probe_device(const char *filename) { int fd, ret; int prio = 0; struct floppy_struct fdparam; struct stat st; if (strstart(filename, "/dev/fd", NULL)) prio = 50; fd = open(filename, O_RDONLY | O_NONBLOCK); if (fd < 0) { goto out; } re...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0) { int VAR_1, VAR_2; int VAR_3 = 0; struct floppy_struct VAR_4; struct stat VAR_5; if (strstart(VAR_0, "/dev/VAR_1", NULL)) VAR_3 = 50; VAR_1 = open(VAR_0, O_RDONLY | O_NONBLOCK); if (VAR_1 < 0) { goto out; } VAR_2 =...
[ "static int FUNC_0(const char *VAR_0)\n{", "int VAR_1, VAR_2;", "int VAR_3 = 0;", "struct floppy_struct VAR_4;", "struct stat VAR_5;", "if (strstart(VAR_0, \"/dev/VAR_1\", NULL))\nVAR_3 = 50;", "VAR_1 = open(VAR_0, O_RDONLY | O_NONBLOCK);", "if (VAR_1 < 0) {", "goto out;", "}", "VAR_2 = fstat(VA...
[ 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43, 45 ], [ 49, 51 ], [ 53, 55 ...
398
struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev) { struct XenDevice *xendev; TAILQ_FOREACH(xendev, &xendevs, next) { if (xendev->dom != dom) continue; if (xendev->dev != dev) continue; if (strcmp(xendev->type, type) != 0) continue; return xendev; } ...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev) { struct XenDevice *xendev; TAILQ_FOREACH(xendev, &xendevs, next) { if (xendev->dom != dom) continue; if (xendev->dev != dev) continue; if (strcmp(xendev->type, type) != 0) continue; return xendev; } ...
{ "code": [], "line_no": [] }
struct XenDevice *FUNC_0(const char *VAR_0, int VAR_1, int VAR_2) { struct XenDevice *VAR_3; TAILQ_FOREACH(VAR_3, &xendevs, next) { if (VAR_3->VAR_1 != VAR_1) continue; if (VAR_3->VAR_2 != VAR_2) continue; if (strcmp(VAR_3->VAR_0, VAR_0) != 0) continue; return VAR_3; } r...
[ "struct XenDevice *FUNC_0(const char *VAR_0, int VAR_1, int VAR_2)\n{", "struct XenDevice *VAR_3;", "TAILQ_FOREACH(VAR_3, &xendevs, next) {", "if (VAR_3->VAR_1 != VAR_1)\ncontinue;", "if (VAR_3->VAR_2 != VAR_2)\ncontinue;", "if (strcmp(VAR_3->VAR_0, VAR_0) != 0)\ncontinue;", "return VAR_3;", "}", "r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
400
static void dct_unquantize_mpeg1_mmx(MpegEncContext *s, DCTELEM *block, int n, int qscale) { int i, level; const UINT16 *quant_matrix; if (s->mb_intra) { if (n < 4) block[0] = block[0] * s->y_dc_scale; else block[0] = blo...
false
FFmpeg
f12e206b4737b84afa6071f4b464664a50b0c916
static void dct_unquantize_mpeg1_mmx(MpegEncContext *s, DCTELEM *block, int n, int qscale) { int i, level; const UINT16 *quant_matrix; if (s->mb_intra) { if (n < 4) block[0] = block[0] * s->y_dc_scale; else block[0] = blo...
{ "code": [], "line_no": [] }
static void FUNC_0(MpegEncContext *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3) { int VAR_4, VAR_5; const UINT16 *VAR_6; if (VAR_0->mb_intra) { if (VAR_2 < 4) VAR_1[0] = VAR_1[0] * VAR_0->y_dc_scale; else VAR_1[0] = VAR_1...
[ "static void FUNC_0(MpegEncContext *VAR_0,\nDCTELEM *VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "const UINT16 *VAR_6;", "if (VAR_0->mb_intra) {", "if (VAR_2 < 4)\nVAR_1[0] = VAR_1[0] * VAR_0->y_dc_scale;", "else\nVAR_1[0] = VAR_1[0] * VAR_0->c_dc_scale;", "if (VAR_0->out_format == FMT_H263) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
401
static int virtio_ccw_set_vqs(SubchDev *sch, VqInfoBlock *info, VqInfoBlockLegacy *linfo) { VirtIODevice *vdev = virtio_ccw_get_vdev(sch); uint16_t index = info ? info->index : linfo->index; uint16_t num = info ? info->num : linfo->num; uint64_t desc = info ? info->de...
false
qemu
b1914b824ade1706847428e64ef5637ffc0ae238
static int virtio_ccw_set_vqs(SubchDev *sch, VqInfoBlock *info, VqInfoBlockLegacy *linfo) { VirtIODevice *vdev = virtio_ccw_get_vdev(sch); uint16_t index = info ? info->index : linfo->index; uint16_t num = info ? info->num : linfo->num; uint64_t desc = info ? info->de...
{ "code": [], "line_no": [] }
static int FUNC_0(SubchDev *VAR_0, VqInfoBlock *VAR_1, VqInfoBlockLegacy *VAR_2) { VirtIODevice *vdev = virtio_ccw_get_vdev(VAR_0); uint16_t index = VAR_1 ? VAR_1->index : VAR_2->index; uint16_t num = VAR_1 ? VAR_1->num : VAR_2->num; uint64_t desc = VAR_1 ? VAR_1->des...
[ "static int FUNC_0(SubchDev *VAR_0, VqInfoBlock *VAR_1,\nVqInfoBlockLegacy *VAR_2)\n{", "VirtIODevice *vdev = virtio_ccw_get_vdev(VAR_0);", "uint16_t index = VAR_1 ? VAR_1->index : VAR_2->index;", "uint16_t num = VAR_1 ? VAR_1->num : VAR_2->num;", "uint64_t desc = VAR_1 ? VAR_1->desc : VAR_2->queue;", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
403
void qemu_system_debug_request(void) { debug_requested = 1; vm_stop(VMSTOP_DEBUG); }
false
qemu
83f338f73ecb88cc6f85d6e7b81ebef112ce07be
void qemu_system_debug_request(void) { debug_requested = 1; vm_stop(VMSTOP_DEBUG); }
{ "code": [], "line_no": [] }
void FUNC_0(void) { debug_requested = 1; vm_stop(VMSTOP_DEBUG); }
[ "void FUNC_0(void)\n{", "debug_requested = 1;", "vm_stop(VMSTOP_DEBUG);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
405
static int coroutine_fn raw_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { return bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags); }
false
qemu
a03ef88f77af045a2eb9629b5ce774a3fb973c5e
static int coroutine_fn raw_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { return bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags); }
{ "code": [], "line_no": [] }
static int VAR_0 raw_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { return bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags); }
[ "static int VAR_0 raw_co_pwrite_zeroes(BlockDriverState *bs,\nint64_t offset, int count,\nBdrvRequestFlags flags)\n{", "return bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ] ]
406
void monitor_flush(Monitor *mon) { int i; if (term_outbuf_index > 0) { for (i = 0; i < MAX_MON; i++) if (monitor_hd[i] && monitor_hd[i]->focus == 0) qemu_chr_write(monitor_hd[i], term_outbuf, term_outbuf_index); term_outbuf_index = 0; } }
false
qemu
871271615108fd58273423d98b7cefe08e6f75a0
void monitor_flush(Monitor *mon) { int i; if (term_outbuf_index > 0) { for (i = 0; i < MAX_MON; i++) if (monitor_hd[i] && monitor_hd[i]->focus == 0) qemu_chr_write(monitor_hd[i], term_outbuf, term_outbuf_index); term_outbuf_index = 0; } }
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0) { int VAR_1; if (term_outbuf_index > 0) { for (VAR_1 = 0; VAR_1 < MAX_MON; VAR_1++) if (monitor_hd[VAR_1] && monitor_hd[VAR_1]->focus == 0) qemu_chr_write(monitor_hd[VAR_1], term_outbuf, term_outbuf_index); term_outbuf_index = 0; ...
[ "void FUNC_0(Monitor *VAR_0)\n{", "int VAR_1;", "if (term_outbuf_index > 0) {", "for (VAR_1 = 0; VAR_1 < MAX_MON; VAR_1++)", "if (monitor_hd[VAR_1] && monitor_hd[VAR_1]->focus == 0)\nqemu_chr_write(monitor_hd[VAR_1], term_outbuf, term_outbuf_index);", "term_outbuf_index = 0;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ] ]
407
void qemu_co_queue_restart_all(CoQueue *queue) { while (qemu_co_queue_next(queue)) { /* Do nothing */ } }
false
qemu
28f082469650a0f4c0e37b4ccd6f9514b1a0698d
void qemu_co_queue_restart_all(CoQueue *queue) { while (qemu_co_queue_next(queue)) { } }
{ "code": [], "line_no": [] }
void FUNC_0(CoQueue *VAR_0) { while (qemu_co_queue_next(VAR_0)) { } }
[ "void FUNC_0(CoQueue *VAR_0)\n{", "while (qemu_co_queue_next(VAR_0)) {", "}", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
408
static void nvdimm_dsm_func_read_fit(AcpiNVDIMMState *state, NvdimmDsmIn *in, hwaddr dsm_mem_addr) { NvdimmFitBuffer *fit_buf = &state->fit_buf; NvdimmFuncReadFITIn *read_fit; NvdimmFuncReadFITOut *read_fit_out; GArray *fit; uint32_t read_len = 0, func_ret...
false
qemu
12f86b5b3e1bdf75e0a467d771c16cc42f3a1f1a
static void nvdimm_dsm_func_read_fit(AcpiNVDIMMState *state, NvdimmDsmIn *in, hwaddr dsm_mem_addr) { NvdimmFitBuffer *fit_buf = &state->fit_buf; NvdimmFuncReadFITIn *read_fit; NvdimmFuncReadFITOut *read_fit_out; GArray *fit; uint32_t read_len = 0, func_ret...
{ "code": [], "line_no": [] }
static void FUNC_0(AcpiNVDIMMState *VAR_0, NvdimmDsmIn *VAR_1, hwaddr VAR_2) { NvdimmFitBuffer *fit_buf = &VAR_0->fit_buf; NvdimmFuncReadFITIn *read_fit; NvdimmFuncReadFITOut *read_fit_out; GArray *fit; uint32_t read_len = 0, func_ret_status; int VAR_...
[ "static void FUNC_0(AcpiNVDIMMState *VAR_0, NvdimmDsmIn *VAR_1,\nhwaddr VAR_2)\n{", "NvdimmFitBuffer *fit_buf = &VAR_0->fit_buf;", "NvdimmFuncReadFITIn *read_fit;", "NvdimmFuncReadFITOut *read_fit_out;", "GArray *fit;", "uint32_t read_len = 0, func_ret_status;", "int VAR_3;", "read_fit = (NvdimmFuncRe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ...
409
static void tftp_send_error(struct tftp_session *spt, uint16_t errorcode, const char *msg, struct tftp_t *recv_tp) { struct sockaddr_in saddr, daddr; struct mbuf *m; struct tftp_t *tp; m = m_get(spt->slirp); if (!m) { goto out; } ...
false
qemu
5379229a2708df3a1506113315214c3ce5325859
static void tftp_send_error(struct tftp_session *spt, uint16_t errorcode, const char *msg, struct tftp_t *recv_tp) { struct sockaddr_in saddr, daddr; struct mbuf *m; struct tftp_t *tp; m = m_get(spt->slirp); if (!m) { goto out; } ...
{ "code": [], "line_no": [] }
static void FUNC_0(struct tftp_session *VAR_0, uint16_t VAR_1, const char *VAR_2, struct tftp_t *VAR_3) { struct sockaddr_in VAR_4, VAR_5; struct mbuf *VAR_6; struct tftp_t *VAR_7; VAR_6 = m_get(VAR_0->slirp); if (!VAR_6) { goto out; ...
[ "static void FUNC_0(struct tftp_session *VAR_0,\nuint16_t VAR_1, const char *VAR_2,\nstruct tftp_t *VAR_3)\n{", "struct sockaddr_in VAR_4, VAR_5;", "struct mbuf *VAR_6;", "struct tftp_t *VAR_7;", "VAR_6 = m_get(VAR_0->slirp);", "if (!VAR_6) {", "goto out;", "}", "memset(VAR_6->m_data, 0, VAR_6->m_si...
[ 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 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
410
static void omap_rtc_alarm_update(struct omap_rtc_s *s) { s->alarm_ti = mktimegm(&s->alarm_tm); if (s->alarm_ti == -1) printf("%s: conversion failed\n", __FUNCTION__); }
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void omap_rtc_alarm_update(struct omap_rtc_s *s) { s->alarm_ti = mktimegm(&s->alarm_tm); if (s->alarm_ti == -1) printf("%s: conversion failed\n", __FUNCTION__); }
{ "code": [], "line_no": [] }
static void FUNC_0(struct omap_rtc_s *VAR_0) { VAR_0->alarm_ti = mktimegm(&VAR_0->alarm_tm); if (VAR_0->alarm_ti == -1) printf("%VAR_0: conversion failed\n", __FUNCTION__); }
[ "static void FUNC_0(struct omap_rtc_s *VAR_0)\n{", "VAR_0->alarm_ti = mktimegm(&VAR_0->alarm_tm);", "if (VAR_0->alarm_ti == -1)\nprintf(\"%VAR_0: conversion failed\\n\", __FUNCTION__);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ] ]
411
static int http_send_data(HTTPContext *c) { int len, ret; for(;;) { if (c->buffer_ptr >= c->buffer_end) { ret = http_prepare_data(c); if (ret < 0) return -1; else if (ret != 0) /* state change requested */ br...
false
FFmpeg
33d6f90e3e0241939ea0be9ca9e1f335942081c8
static int http_send_data(HTTPContext *c) { int len, ret; for(;;) { if (c->buffer_ptr >= c->buffer_end) { ret = http_prepare_data(c); if (ret < 0) return -1; else if (ret != 0) break; } else { ...
{ "code": [], "line_no": [] }
static int FUNC_0(HTTPContext *VAR_0) { int VAR_1, VAR_2; for(;;) { if (VAR_0->buffer_ptr >= VAR_0->buffer_end) { VAR_2 = http_prepare_data(VAR_0); if (VAR_2 < 0) return -1; else if (VAR_2 != 0) break; ...
[ "static int FUNC_0(HTTPContext *VAR_0)\n{", "int VAR_1, VAR_2;", "for(;;) {", "if (VAR_0->buffer_ptr >= VAR_0->buffer_end) {", "VAR_2 = http_prepare_data(VAR_0);", "if (VAR_2 < 0)\nreturn -1;", "else if (VAR_2 != 0)\nbreak;", "} else {", "if (VAR_0->is_packetized) {", "VAR_1 = VAR_0->buffer_end - ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17 ], [ 19, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45, 47, 49, 51 ], [ 53, 55 ], ...
412
static inline bool vtd_iova_range_check(uint64_t iova, VTDContextEntry *ce) { /* * Check if @iova is above 2^X-1, where X is the minimum of MGAW * in CAP_REG and AW in context-entry. */ return !(iova & ~(vtd_iova_limit(ce) - 1)); }
false
qemu
37f51384ae05bd50f83308339dbffa3e78404874
static inline bool vtd_iova_range_check(uint64_t iova, VTDContextEntry *ce) { return !(iova & ~(vtd_iova_limit(ce) - 1)); }
{ "code": [], "line_no": [] }
static inline bool FUNC_0(uint64_t iova, VTDContextEntry *ce) { return !(iova & ~(vtd_iova_limit(ce) - 1)); }
[ "static inline bool FUNC_0(uint64_t iova, VTDContextEntry *ce)\n{", "return !(iova & ~(vtd_iova_limit(ce) - 1));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 13 ], [ 15 ] ]
413
DriveInfo *drive_new(QemuOpts *all_opts, BlockInterfaceType block_default_type) { const char *value; BlockBackend *blk; DriveInfo *dinfo = NULL; QDict *bs_opts; QemuOpts *legacy_opts; DriveMediaType media = MEDIA_DISK; BlockInterfaceType type; int cyls, heads, secs, translation;...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
DriveInfo *drive_new(QemuOpts *all_opts, BlockInterfaceType block_default_type) { const char *value; BlockBackend *blk; DriveInfo *dinfo = NULL; QDict *bs_opts; QemuOpts *legacy_opts; DriveMediaType media = MEDIA_DISK; BlockInterfaceType type; int cyls, heads, secs, translation;...
{ "code": [], "line_no": [] }
DriveInfo *FUNC_0(QemuOpts *all_opts, BlockInterfaceType block_default_type) { const char *VAR_0; BlockBackend *blk; DriveInfo *dinfo = NULL; QDict *bs_opts; QemuOpts *legacy_opts; DriveMediaType media = MEDIA_DISK; BlockInterfaceType type; int VAR_1, VAR_2, VAR_3, VAR_4; i...
[ "DriveInfo *FUNC_0(QemuOpts *all_opts, BlockInterfaceType block_default_type)\n{", "const char *VAR_0;", "BlockBackend *blk;", "DriveInfo *dinfo = NULL;", "QDict *bs_opts;", "QemuOpts *legacy_opts;", "DriveMediaType media = MEDIA_DISK;", "BlockInterfaceType type;", "int VAR_1, VAR_2, VAR_3, VAR_4;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,...
414
void qerror_report_internal(const char *file, int linenr, const char *func, const char *fmt, ...) { va_list va; QError *qerror; va_start(va, fmt); qerror = qerror_from_info(file, linenr, func, fmt, &va); va_end(va); if (cur_mon) { monitor_set_erro...
false
qemu
cde0fc7544ca590c83f349d4dcccf375d55d6042
void qerror_report_internal(const char *file, int linenr, const char *func, const char *fmt, ...) { va_list va; QError *qerror; va_start(va, fmt); qerror = qerror_from_info(file, linenr, func, fmt, &va); va_end(va); if (cur_mon) { monitor_set_erro...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, int VAR_1, const char *VAR_2, const char *VAR_3, ...) { va_list va; QError *qerror; va_start(va, VAR_3); qerror = qerror_from_info(VAR_0, VAR_1, VAR_2, VAR_3, &va); va_end(va); if (cur_mon) { monitor_set_error(cur_mo...
[ "void FUNC_0(const char *VAR_0, int VAR_1, const char *VAR_2,\nconst char *VAR_3, ...)\n{", "va_list va;", "QError *qerror;", "va_start(va, VAR_3);", "qerror = qerror_from_info(VAR_0, VAR_1, VAR_2, VAR_3, &va);", "va_end(va);", "if (cur_mon) {", "monitor_set_error(cur_mon, qerror);", "} else {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
415
static void qdev_prop_set(DeviceState *dev, const char *name, void *src, enum PropertyType type) { Property *prop; prop = qdev_prop_find(dev, name); if (!prop) { fprintf(stderr, "%s: property \"%s.%s\" not found\n", __FUNCTION__, object_get_typename(OBJECT(dev)), name); ...
false
qemu
7a7aae21ccab06606cee9aba846d2e30cb616763
static void qdev_prop_set(DeviceState *dev, const char *name, void *src, enum PropertyType type) { Property *prop; prop = qdev_prop_find(dev, name); if (!prop) { fprintf(stderr, "%s: property \"%s.%s\" not found\n", __FUNCTION__, object_get_typename(OBJECT(dev)), name); ...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, const char *VAR_1, void *VAR_2, enum PropertyType VAR_3) { Property *prop; prop = qdev_prop_find(VAR_0, VAR_1); if (!prop) { fprintf(stderr, "%s: property \"%s.%s\" not found\n", __FUNCTION__, object_get_typename(OBJECT(VAR_0)), VAR_1); ...
[ "static void FUNC_0(DeviceState *VAR_0, const char *VAR_1, void *VAR_2, enum PropertyType VAR_3)\n{", "Property *prop;", "prop = qdev_prop_find(VAR_0, VAR_1);", "if (!prop) {", "fprintf(stderr, \"%s: property \\\"%s.%s\\\" not found\\n\",\n__FUNCTION__, object_get_typename(OBJECT(VAR_0)), VAR_1);", "abort...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
416
void qdev_prop_set_drive_nofail(DeviceState *dev, const char *name, BlockDriverState *value) { if (qdev_prop_set_drive(dev, name, value) < 0) { exit(1); } }
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
void qdev_prop_set_drive_nofail(DeviceState *dev, const char *name, BlockDriverState *value) { if (qdev_prop_set_drive(dev, name, value) < 0) { exit(1); } }
{ "code": [], "line_no": [] }
void FUNC_0(DeviceState *VAR_0, const char *VAR_1, BlockDriverState *VAR_2) { if (qdev_prop_set_drive(VAR_0, VAR_1, VAR_2) < 0) { exit(1); } }
[ "void FUNC_0(DeviceState *VAR_0, const char *VAR_1,\nBlockDriverState *VAR_2)\n{", "if (qdev_prop_set_drive(VAR_0, VAR_1, VAR_2) < 0) {", "exit(1);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
417
static int piix3_post_load(void *opaque, int version_id) { PIIX3State *piix3 = opaque; int pirq; /* Because the i8259 has not been deserialized yet, qemu_irq_raise * might bring the system to a different state than the saved one; * for example, the interrupt could be masked but the i8259 w...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static int piix3_post_load(void *opaque, int version_id) { PIIX3State *piix3 = opaque; int pirq; piix3->pic_levels = 0; for (pirq = 0; pirq < PIIX_NUM_PIRQS; pirq++) { piix3_set_irq_level_internal(piix3, pirq, pci_bus_get_irq_level(piix3->...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, int VAR_1) { PIIX3State *piix3 = VAR_0; int VAR_2; piix3->pic_levels = 0; for (VAR_2 = 0; VAR_2 < PIIX_NUM_PIRQS; VAR_2++) { piix3_set_irq_level_internal(piix3, VAR_2, pci_bus_get_irq_level(piix3->dev.bus, VA...
[ "static int FUNC_0(void *VAR_0, int VAR_1)\n{", "PIIX3State *piix3 = VAR_0;", "int VAR_2;", "piix3->pic_levels = 0;", "for (VAR_2 = 0; VAR_2 < PIIX_NUM_PIRQS; VAR_2++) {", "piix3_set_irq_level_internal(piix3, VAR_2,\npci_bus_get_irq_level(piix3->dev.bus, VAR_2));", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ] ]
418
static void unset_dirty_tracking(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { aio_context_acquire(blk_get_aio_context(bmds->blk)); bdrv_release_dirty_bitmap(blk_bs(bmds->blk), bmds->dirty_bitmap); aio_context_release(blk_get_aio_contex...
false
qemu
2119882c7eb7e2c612b24fc0c8d86f5887d6f1c3
static void unset_dirty_tracking(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { aio_context_acquire(blk_get_aio_context(bmds->blk)); bdrv_release_dirty_bitmap(blk_bs(bmds->blk), bmds->dirty_bitmap); aio_context_release(blk_get_aio_contex...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { aio_context_acquire(blk_get_aio_context(bmds->blk)); bdrv_release_dirty_bitmap(blk_bs(bmds->blk), bmds->dirty_bitmap); aio_context_release(blk_get_aio_context(bmds->blk));...
[ "static void FUNC_0(void)\n{", "BlkMigDevState *bmds;", "QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {", "aio_context_acquire(blk_get_aio_context(bmds->blk));", "bdrv_release_dirty_bitmap(blk_bs(bmds->blk), bmds->dirty_bitmap);", "aio_context_release(blk_get_aio_context(bmds->blk));", "}",...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
419
static void cb_hmp_change_bdrv_pwd(Monitor *mon, const char *password, void *opaque) { Error *encryption_err = opaque; Error *err = NULL; const char *device; device = error_get_field(encryption_err, "device"); qmp_block_passwd(device, password, &err); ...
false
qemu
eef5ad1086403d8ac8d91208a0e8dc34734b671c
static void cb_hmp_change_bdrv_pwd(Monitor *mon, const char *password, void *opaque) { Error *encryption_err = opaque; Error *err = NULL; const char *device; device = error_get_field(encryption_err, "device"); qmp_block_passwd(device, password, &err); ...
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, const char *VAR_1, void *VAR_2) { Error *encryption_err = VAR_2; Error *err = NULL; const char *VAR_3; VAR_3 = error_get_field(encryption_err, "VAR_3"); qmp_block_passwd(VAR_3, VAR_1, &err); hmp_handle_error(VAR_0,...
[ "static void FUNC_0(Monitor *VAR_0, const char *VAR_1,\nvoid *VAR_2)\n{", "Error *encryption_err = VAR_2;", "Error *err = NULL;", "const char *VAR_3;", "VAR_3 = error_get_field(encryption_err, \"VAR_3\");", "qmp_block_passwd(VAR_3, VAR_1, &err);", "hmp_handle_error(VAR_0, &err);", "error_free(encrypti...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
421
av_cold int ff_ivi_decode_close(AVCodecContext *avctx) { IVI45DecContext *ctx = avctx->priv_data; ivi_free_buffers(&ctx->planes[0]); if (ctx->mb_vlc.cust_tab.table) ff_free_vlc(&ctx->mb_vlc.cust_tab); #if IVI4_STREAM_ANALYSER if (ctx->is_indeo4) { if (ctx->is_scalable) ...
false
FFmpeg
6202e2fede75df92cbc374a3f7d6893d0c5ac721
av_cold int ff_ivi_decode_close(AVCodecContext *avctx) { IVI45DecContext *ctx = avctx->priv_data; ivi_free_buffers(&ctx->planes[0]); if (ctx->mb_vlc.cust_tab.table) ff_free_vlc(&ctx->mb_vlc.cust_tab); #if IVI4_STREAM_ANALYSER if (ctx->is_indeo4) { if (ctx->is_scalable) ...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { IVI45DecContext *ctx = avctx->priv_data; ivi_free_buffers(&ctx->planes[0]); if (ctx->mb_vlc.cust_tab.table) ff_free_vlc(&ctx->mb_vlc.cust_tab); #if IVI4_STREAM_ANALYSER if (ctx->is_indeo4) { if (ctx->is_scalable) av_log(avctx...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "IVI45DecContext *ctx = avctx->priv_data;", "ivi_free_buffers(&ctx->planes[0]);", "if (ctx->mb_vlc.cust_tab.table)\nff_free_vlc(&ctx->mb_vlc.cust_tab);", "#if IVI4_STREAM_ANALYSER\nif (ctx->is_indeo4) {", "if (ctx->is_scalable)\nav_log(avctx, AV_LOG_ERROR, \...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49, 53 ], [ 57 ], [ 59 ] ]
422
static av_cold int cinepak_decode_init(AVCodecContext *avctx) { CinepakContext *s = avctx->priv_data; s->avctx = avctx; s->width = (avctx->width + 3) & ~3; s->height = (avctx->height + 3) & ~3; s->sega_film_skip_bytes = -1; /* uninitialized state */ // check for paletted data if...
false
FFmpeg
3b199d29cd597a3518136d78860e172060b9e83d
static av_cold int cinepak_decode_init(AVCodecContext *avctx) { CinepakContext *s = avctx->priv_data; s->avctx = avctx; s->width = (avctx->width + 3) & ~3; s->height = (avctx->height + 3) & ~3; s->sega_film_skip_bytes = -1; if (avctx->bits_per_coded_sample != 8) { s->...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { CinepakContext *s = avctx->priv_data; s->avctx = avctx; s->width = (avctx->width + 3) & ~3; s->height = (avctx->height + 3) & ~3; s->sega_film_skip_bytes = -1; if (avctx->bits_per_coded_sample != 8) { s->palette_video...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "CinepakContext *s = avctx->priv_data;", "s->avctx = avctx;", "s->width = (avctx->width + 3) & ~3;", "s->height = (avctx->height + 3) & ~3;", "s->sega_film_skip_bytes = -1;", "if (avctx->bits_per_coded_sample != 8) {", "s->palette_video = 0;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ] ]
423
static int xen_host_pci_config_open(XenHostPCIDevice *d) { char path[PATH_MAX]; int rc; rc = xen_host_pci_sysfs_path(d, "config", path, sizeof (path)); if (rc) { return rc; } d->config_fd = open(path, O_RDWR); if (d->config_fd < 0) { return -errno; } ret...
true
qemu
599d0c45615b7d099d256738a586d0f63bc707e6
static int xen_host_pci_config_open(XenHostPCIDevice *d) { char path[PATH_MAX]; int rc; rc = xen_host_pci_sysfs_path(d, "config", path, sizeof (path)); if (rc) { return rc; } d->config_fd = open(path, O_RDWR); if (d->config_fd < 0) { return -errno; } ret...
{ "code": [ " return 0;", " if (rc) {", " return rc;", " if (rc) {", " return rc;", " int rc;", " rc = xen_host_pci_sysfs_path(d, \"config\", path, sizeof (path));", " if (rc) {", " return rc;" ], "line_no": [ 27, 13, 15, 1...
static int FUNC_0(XenHostPCIDevice *VAR_0) { char VAR_1[PATH_MAX]; int VAR_2; VAR_2 = xen_host_pci_sysfs_path(VAR_0, "config", VAR_1, sizeof (VAR_1)); if (VAR_2) { return VAR_2; } VAR_0->config_fd = open(VAR_1, O_RDWR); if (VAR_0->config_fd < 0) { return -errno; ...
[ "static int FUNC_0(XenHostPCIDevice *VAR_0)\n{", "char VAR_1[PATH_MAX];", "int VAR_2;", "VAR_2 = xen_host_pci_sysfs_path(VAR_0, \"config\", VAR_1, sizeof (VAR_1));", "if (VAR_2) {", "return VAR_2;", "}", "VAR_0->config_fd = open(VAR_1, O_RDWR);", "if (VAR_0->config_fd < 0) {", "return -errno;", ...
[ 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
424
void cpu_exec_init(CPUArchState *env) { CPUState *cpu = ENV_GET_CPU(env); CPUClass *cc = CPU_GET_CLASS(cpu); CPUState *some_cpu; int cpu_index; #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endif cpu_index = 0; CPU_FOREACH(some_cpu) { cpu_index++; } cpu->cpu_...
true
qemu
cba7054928b10a7fda57c64807451bbc9a31e42e
void cpu_exec_init(CPUArchState *env) { CPUState *cpu = ENV_GET_CPU(env); CPUClass *cc = CPU_GET_CLASS(cpu); CPUState *some_cpu; int cpu_index; #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endif cpu_index = 0; CPU_FOREACH(some_cpu) { cpu_index++; } cpu->cpu_...
{ "code": [], "line_no": [] }
void FUNC_0(CPUArchState *VAR_0) { CPUState *cpu = ENV_GET_CPU(VAR_0); CPUClass *cc = CPU_GET_CLASS(cpu); CPUState *some_cpu; int VAR_1; #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endif VAR_1 = 0; CPU_FOREACH(some_cpu) { VAR_1++; } cpu->VAR_1 = VAR_1; ...
[ "void FUNC_0(CPUArchState *VAR_0)\n{", "CPUState *cpu = ENV_GET_CPU(VAR_0);", "CPUClass *cc = CPU_GET_CLASS(cpu);", "CPUState *some_cpu;", "int VAR_1;", "#if defined(CONFIG_USER_ONLY)\ncpu_list_lock();", "#endif\nVAR_1 = 0;", "CPU_FOREACH(some_cpu) {", "VAR_1++;", "}", "cpu->VAR_1 = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 44, 46 ], [ 48,...
425
static int vhost_set_vring_file(struct vhost_dev *dev, VhostUserRequest request, struct vhost_vring_file *file) { int fds[VHOST_MEMORY_MAX_NREGIONS]; size_t fd_num = 0; VhostUserMsg msg = { .request = request, .flags = V...
true
qemu
c4843a45e3d4f3698b214275ab5e78cdb6a3d212
static int vhost_set_vring_file(struct vhost_dev *dev, VhostUserRequest request, struct vhost_vring_file *file) { int fds[VHOST_MEMORY_MAX_NREGIONS]; size_t fd_num = 0; VhostUserMsg msg = { .request = request, .flags = V...
{ "code": [ " vhost_user_write(dev, &msg, fds, fd_num);", " vhost_user_write(dev, &msg, fds, fd_num);", " vhost_user_write(dev, &msg, fds, fd_num);" ], "line_no": [ 39, 39, 39 ] }
static int FUNC_0(struct vhost_dev *VAR_0, VhostUserRequest VAR_1, struct vhost_vring_file *VAR_2) { int VAR_3[VHOST_MEMORY_MAX_NREGIONS]; size_t fd_num = 0; VhostUserMsg msg = { .VAR_1 = VAR_1, .flags = VHOST_USER_VERSI...
[ "static int FUNC_0(struct vhost_dev *VAR_0,\nVhostUserRequest VAR_1,\nstruct vhost_vring_file *VAR_2)\n{", "int VAR_3[VHOST_MEMORY_MAX_NREGIONS];", "size_t fd_num = 0;", "VhostUserMsg msg = {", ".VAR_1 = VAR_1,\n.flags = VHOST_USER_VERSION,\n.payload.u64 = VAR_2->index & VHOST_USER_VRING_IDX_MASK,\n.size = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17, 19, 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ] ]
426
char *qdist_pr(const struct qdist *dist, size_t n_bins, uint32_t opt) { const char *border = opt & QDIST_PR_BORDER ? "|" : ""; char *llabel, *rlabel; char *hgram; GString *s; if (dist->n == 0) { return NULL; } s = g_string_new(""); llabel = qdist_pr_label(dist, n_...
true
qemu
11b7b07f8a15879134a54e73fade98d5e11e04f8
char *qdist_pr(const struct qdist *dist, size_t n_bins, uint32_t opt) { const char *border = opt & QDIST_PR_BORDER ? "|" : ""; char *llabel, *rlabel; char *hgram; GString *s; if (dist->n == 0) { return NULL; } s = g_string_new(""); llabel = qdist_pr_label(dist, n_...
{ "code": [ " return NULL;", " return NULL;" ], "line_no": [ 17, 17 ] }
char *FUNC_0(const struct qdist *VAR_0, size_t VAR_1, uint32_t VAR_2) { const char *VAR_3 = VAR_2 & QDIST_PR_BORDER ? "|" : ""; char *VAR_4, *VAR_5; char *VAR_6; GString *s; if (VAR_0->n == 0) { return NULL; } s = g_string_new(""); VAR_4 = qdist_pr_label(VAR_0, VA...
[ "char *FUNC_0(const struct qdist *VAR_0, size_t VAR_1, uint32_t VAR_2)\n{", "const char *VAR_3 = VAR_2 & QDIST_PR_BORDER ? \"|\" : \"\";", "char *VAR_4, *VAR_5;", "char *VAR_6;", "GString *s;", "if (VAR_0->n == 0) {", "return NULL;", "}", "s = g_string_new(\"\");", "VAR_4 = qdist_pr_label(VAR_0, V...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
428
static int qemu_rdma_write_one(QEMUFile *f, RDMAContext *rdma, int current_index, uint64_t current_addr, uint64_t length) { struct ibv_sge sge; struct ibv_send_wr send_wr = { 0 }; struct ibv_send_wr *bad_wr; int reg_result_idx, ret, co...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int qemu_rdma_write_one(QEMUFile *f, RDMAContext *rdma, int current_index, uint64_t current_addr, uint64_t length) { struct ibv_sge sge; struct ibv_send_wr send_wr = { 0 }; struct ibv_send_wr *bad_wr; int reg_result_idx, ret, co...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, RDMAContext *VAR_1, int VAR_2, uint64_t VAR_3, uint64_t VAR_4) { struct ibv_sge VAR_5; struct ibv_send_wr VAR_6 = { 0 }; struct ibv_send_wr *VAR_7; int VAR_8, VAR_9, VAR_10 = 0; uint64_t chunk, c...
[ "static int FUNC_0(QEMUFile *VAR_0, RDMAContext *VAR_1,\nint VAR_2, uint64_t VAR_3,\nuint64_t VAR_4)\n{", "struct ibv_sge VAR_5;", "struct ibv_send_wr VAR_6 = { 0 };", "struct ibv_send_wr *VAR_7;", "int VAR_8, VAR_9, VAR_10 = 0;", "uint64_t chunk, chunks;", "uint8_t *chunk_start, *chunk_end;", "RDMALo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39, 41, 43 ], [ 45 ], [ 49 ], [ 51 ...
429
static int init_directories(BDRVVVFATState* s, const char* dirname) { bootsector_t* bootsector; mapping_t* mapping; unsigned int i; unsigned int cluster; memset(&(s->first_sectors[0]),0,0x40*0x200); s->cluster_size=s->sectors_per_cluster*0x200; s->cluster_buffer=qemu_malloc(s->...
true
qemu
2dedf83ef0cc3463783d6b71bf1b25476f691f3a
static int init_directories(BDRVVVFATState* s, const char* dirname) { bootsector_t* bootsector; mapping_t* mapping; unsigned int i; unsigned int cluster; memset(&(s->first_sectors[0]),0,0x40*0x200); s->cluster_size=s->sectors_per_cluster*0x200; s->cluster_buffer=qemu_malloc(s->...
{ "code": [ "\tsnprintf((char*)entry->name,11,\"QEMU VVFAT\");" ], "line_no": [ 61 ] }
static int FUNC_0(BDRVVVFATState* VAR_0, const char* VAR_1) { bootsector_t* bootsector; mapping_t* mapping; unsigned int VAR_2; unsigned int VAR_3; memset(&(VAR_0->first_sectors[0]),0,0x40*0x200); VAR_0->cluster_size=VAR_0->sectors_per_cluster*0x200; VAR_0->cluster_buffer=qemu_...
[ "static int FUNC_0(BDRVVVFATState* VAR_0,\nconst char* VAR_1)\n{", "bootsector_t* bootsector;", "mapping_t* mapping;", "unsigned int VAR_2;", "unsigned int VAR_3;", "memset(&(VAR_0->first_sectors[0]),0,0x40*0x200);", "VAR_0->cluster_size=VAR_0->sectors_per_cluster*0x200;", "VAR_0->cluster_buffer=qemu_...
[ 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, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 69 ], [ 73 ], [...
430
static int mpegts_read_header(AVFormatContext *s) { MpegTSContext *ts = s->priv_data; AVIOContext *pb = s->pb; uint8_t buf[8 * 1024] = {0}; int len; int64_t pos, probesize = s->probesize; if (ffio_ensure_seekback(pb, probesize) < 0) av_log(s, AV_LOG_WARNING, "Failed to alloca...
true
FFmpeg
1bbb18fe82fc77a10d45fa53bd2738d2c54de6c6
static int mpegts_read_header(AVFormatContext *s) { MpegTSContext *ts = s->priv_data; AVIOContext *pb = s->pb; uint8_t buf[8 * 1024] = {0}; int len; int64_t pos, probesize = s->probesize; if (ffio_ensure_seekback(pb, probesize) < 0) av_log(s, AV_LOG_WARNING, "Failed to alloca...
{ "code": [ " if (nb_pcrs >= 2)", " break;" ], "line_no": [ 147, 149 ] }
static int FUNC_0(AVFormatContext *VAR_0) { MpegTSContext *ts = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; uint8_t buf[8 * 1024] = {0}; int VAR_1; int64_t pos, probesize = VAR_0->probesize; if (ffio_ensure_seekback(pb, probesize) < 0) av_log(VAR_0, AV_LOG_WARNING, "Failed...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MpegTSContext *ts = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "uint8_t buf[8 * 1024] = {0};", "int VAR_1;", "int64_t pos, probesize = VAR_0->probesize;", "if (ffio_ensure_seekback(pb, probesize) < 0)\nav_log(VAR_0, AV_LOG_WARNING, \"Failed to ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 53 ], [ 57 ], [...
431
static QPCIDevice *get_ahci_device(uint32_t *fingerprint) { QPCIDevice *ahci; uint32_t ahci_fingerprint; QPCIBus *pcibus; pcibus = qpci_init_pc(); /* Find the AHCI PCI device and verify it's the right one. */ ahci = qpci_device_find(pcibus, QPCI_DEVFN(0x1F, 0x02)); g_assert(ahci ...
true
qemu
9a75b0a037e3a8030992244353f17b62f6daf2ab
static QPCIDevice *get_ahci_device(uint32_t *fingerprint) { QPCIDevice *ahci; uint32_t ahci_fingerprint; QPCIBus *pcibus; pcibus = qpci_init_pc(); ahci = qpci_device_find(pcibus, QPCI_DEVFN(0x1F, 0x02)); g_assert(ahci != NULL); ahci_fingerprint = qpci_config_readl(ahci, P...
{ "code": [ "static QPCIDevice *get_ahci_device(uint32_t *fingerprint)", " QPCIDevice *ahci;", " uint32_t ahci_fingerprint;", " QPCIBus *pcibus;", " pcibus = qpci_init_pc();", " ahci = qpci_device_find(pcibus, QPCI_DEVFN(0x1F, 0x02));", " g_assert(ahci != NULL);", " ...
static QPCIDevice *FUNC_0(uint32_t *fingerprint) { QPCIDevice *ahci; uint32_t ahci_fingerprint; QPCIBus *pcibus; pcibus = qpci_init_pc(); ahci = qpci_device_find(pcibus, QPCI_DEVFN(0x1F, 0x02)); g_assert(ahci != NULL); ahci_fingerprint = qpci_config_readl(ahci, PCI_VENDOR...
[ "static QPCIDevice *FUNC_0(uint32_t *fingerprint)\n{", "QPCIDevice *ahci;", "uint32_t ahci_fingerprint;", "QPCIBus *pcibus;", "pcibus = qpci_init_pc();", "ahci = qpci_device_find(pcibus, QPCI_DEVFN(0x1F, 0x02));", "g_assert(ahci != NULL);", "ahci_fingerprint = qpci_config_readl(ahci, PCI_VENDOR_ID);",...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35, 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ] ]
432
static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) { int i; uint16_t limit; switch (data[0]) { case 0: if (len == 1) return 20; set_pixel_format(vs, read_u8(data, 4), read_u8(data, 5), read_u8(data, 6), read_u8(data, 7), read_u16(data, 8), read_u16(data,...
true
qemu
69dd5c9ffd5c0c6a01ad14b9c6a8d7135ccc2b9a
static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) { int i; uint16_t limit; switch (data[0]) { case 0: if (len == 1) return 20; set_pixel_format(vs, read_u8(data, 4), read_u8(data, 5), read_u8(data, 6), read_u8(data, 7), read_u16(data, 8), read_u16(data,...
{ "code": [ "\tif (len == 4)", "\t return 4 + (read_u16(data, 2) * 4);", "\tlimit = read_u16(data, 2);" ], "line_no": [ 41, 43, 47 ] }
static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2) { int VAR_3; uint16_t limit; switch (VAR_1[0]) { case 0: if (VAR_2 == 1) return 20; set_pixel_format(VAR_0, read_u8(VAR_1, 4), read_u8(VAR_1, 5), read_u8(VAR_1, 6), read_u8(VAR_1, 7), read_u16(VAR_1, 8), read_u...
[ "static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{", "int VAR_3;", "uint16_t limit;", "switch (VAR_1[0]) {", "case 0:\nif (VAR_2 == 1)\nreturn 20;", "set_pixel_format(VAR_0, read_u8(VAR_1, 4), read_u8(VAR_1, 5),\nread_u8(VAR_1, 6), read_u8(VAR_1, 7),\nread_u16(VAR_1, 8), read_u16(VAR_1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 21, 23, 25, 27, 29 ], [ 31 ], [ 33, 35, 37 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], ...
433
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSubtitle *sub = data; const uint8_t *buf_end = buf + buf_size; uint8_t *bitmap; int w, h, x, y, i, ret; int64_...
true
FFmpeg
2002436b0c914e18eda4f45ef816b14501a1dbae
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSubtitle *sub = data; const uint8_t *buf_end = buf + buf_size; uint8_t *bitmap; int w, h, x, y, i, ret; int64_...
{ "code": [], "line_no": [] }
static 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; AVSubtitle *sub = VAR_1; const uint8_t *VAR_6 = VAR_4 + VAR_5; uint8_t *bitmap; int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3) {", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "AVSubtitle *sub = VAR_1;", "const uint8_t *VAR_6 = VAR_4 + VAR_5;", "uint8_t *bitmap;", "int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "int...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22, 23 ], [ ...
434
static void tpm_tis_initfn(Object *obj) { ISADevice *dev = ISA_DEVICE(obj); TPMState *s = TPM(obj); memory_region_init_io(&s->mmio, OBJECT(s), &tpm_tis_memory_ops, s, "tpm-tis-mmio", TPM_TIS_NUM_LOCALITIES << TPM_TIS_LOCALITY_SHIFT); memory_re...
true
qemu
9dfd24ed848228643293e37c36848b5ac520ab98
static void tpm_tis_initfn(Object *obj) { ISADevice *dev = ISA_DEVICE(obj); TPMState *s = TPM(obj); memory_region_init_io(&s->mmio, OBJECT(s), &tpm_tis_memory_ops, s, "tpm-tis-mmio", TPM_TIS_NUM_LOCALITIES << TPM_TIS_LOCALITY_SHIFT); memory_re...
{ "code": [ " ISADevice *dev = ISA_DEVICE(obj);", " memory_region_add_subregion(isa_address_space(dev), TPM_TIS_ADDR_BASE,", " &s->mmio);" ], "line_no": [ 5, 17, 19 ] }
static void FUNC_0(Object *VAR_0) { ISADevice *dev = ISA_DEVICE(VAR_0); TPMState *s = TPM(VAR_0); memory_region_init_io(&s->mmio, OBJECT(s), &tpm_tis_memory_ops, s, "tpm-tis-mmio", TPM_TIS_NUM_LOCALITIES << TPM_TIS_LOCALITY_SHIFT); memory_regi...
[ "static void FUNC_0(Object *VAR_0)\n{", "ISADevice *dev = ISA_DEVICE(VAR_0);", "TPMState *s = TPM(VAR_0);", "memory_region_init_io(&s->mmio, OBJECT(s), &tpm_tis_memory_ops,\ns, \"tpm-tis-mmio\",\nTPM_TIS_NUM_LOCALITIES << TPM_TIS_LOCALITY_SHIFT);", "memory_region_add_subregion(isa_address_space(dev), TPM_TI...
[ 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15 ], [ 17, 19 ], [ 21 ] ]
435
static int process_frame(FFFrameSync *fs) { AVFilterContext *ctx = fs->parent; LUT2Context *s = fs->opaque; AVFilterLink *outlink = ctx->outputs[0]; AVFrame *out, *srcx, *srcy; int ret; if ((ret = ff_framesync2_get_frame(&s->fs, 0, &srcx, 0)) < 0 || (ret = ff_framesync2_get_fra...
true
FFmpeg
a4d18a3f54e5b0277234d8fcff65dff8516417a0
static int process_frame(FFFrameSync *fs) { AVFilterContext *ctx = fs->parent; LUT2Context *s = fs->opaque; AVFilterLink *outlink = ctx->outputs[0]; AVFrame *out, *srcx, *srcy; int ret; if ((ret = ff_framesync2_get_frame(&s->fs, 0, &srcx, 0)) < 0 || (ret = ff_framesync2_get_fra...
{ "code": [ " AVFrame *out, *srcx, *srcy;", " if (ctx->is_disabled) {" ], "line_no": [ 11, 25 ] }
static int FUNC_0(FFFrameSync *VAR_0) { AVFilterContext *ctx = VAR_0->parent; LUT2Context *s = VAR_0->opaque; AVFilterLink *outlink = ctx->outputs[0]; AVFrame *out, *srcx, *srcy; int VAR_1; if ((VAR_1 = ff_framesync2_get_frame(&s->VAR_0, 0, &srcx, 0)) < 0 || (VAR_1 = ff_framesy...
[ "static int FUNC_0(FFFrameSync *VAR_0)\n{", "AVFilterContext *ctx = VAR_0->parent;", "LUT2Context *s = VAR_0->opaque;", "AVFilterLink *outlink = ctx->outputs[0];", "AVFrame *out, *srcx, *srcy;", "int VAR_1;", "if ((VAR_1 = ff_framesync2_get_frame(&s->VAR_0, 0, &srcx, 0)) < 0 ||\n(VAR_1 = ff_framesync2_g...
[ 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19, 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ...
437
static int handle_primary_tcp_pkt(NetFilterState *nf, Connection *conn, Packet *pkt) { struct tcphdr *tcp_pkt; tcp_pkt = (struct tcphdr *)pkt->transport_header; if (trace_event_get_state_backends(TRACE_COLO_FILTER_REWRITER_DEBUG)) {...
true
qemu
6ce310b5356abb7edc3aa8b8b097d0b8cc76f83f
static int handle_primary_tcp_pkt(NetFilterState *nf, Connection *conn, Packet *pkt) { struct tcphdr *tcp_pkt; tcp_pkt = (struct tcphdr *)pkt->transport_header; if (trace_event_get_state_backends(TRACE_COLO_FILTER_REWRITER_DEBUG)) {...
{ "code": [ " net_checksum_calculate((uint8_t *)pkt->data, pkt->size);", " net_checksum_calculate((uint8_t *)pkt->data, pkt->size);" ], "line_no": [ 75, 75 ] }
static int FUNC_0(NetFilterState *VAR_0, Connection *VAR_1, Packet *VAR_2) { struct tcphdr *VAR_3; VAR_3 = (struct tcphdr *)VAR_2->transport_header; if (trace_event_get_state_backends(TRACE_COLO_FILTER_REWRITER_DEBUG)) { tr...
[ "static int FUNC_0(NetFilterState *VAR_0,\nConnection *VAR_1,\nPacket *VAR_2)\n{", "struct tcphdr *VAR_3;", "VAR_3 = (struct tcphdr *)VAR_2->transport_header;", "if (trace_event_get_state_backends(TRACE_COLO_FILTER_REWRITER_DEBUG)) {", "trace_colo_filter_rewriter_pkt_info(__func__,\ninet_ntoa(VAR_2->ip->ip_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 71 ], [...
438
av_cold void ff_dsputil_init_armv6(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; if (avctx->bits_per_raw_sample <= 8 && (avctx->idct_algo == FF_IDCT_AUTO || avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) { c->idct_put ...
false
FFmpeg
70d54392f5015b9c6594fcae558f59f952501e3b
av_cold void ff_dsputil_init_armv6(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; if (avctx->bits_per_raw_sample <= 8 && (avctx->idct_algo == FF_IDCT_AUTO || avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) { c->idct_put ...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx) { const int VAR_0 = avctx->bits_per_raw_sample > 8; if (avctx->bits_per_raw_sample <= 8 && (avctx->idct_algo == FF_IDCT_AUTO || avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) { c->idct_put = ff_simple_idct_put_arm...
[ "av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx)\n{", "const int VAR_0 = avctx->bits_per_raw_sample > 8;", "if (avctx->bits_per_raw_sample <= 8 &&\n(avctx->idct_algo == FF_IDCT_AUTO ||\navctx->idct_algo == FF_IDCT_SIMPLEARMV6)) {", "c->idct_put = ff_simple_idct_put_armv6;", "c->idct_a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 55...
440
static int decode_exponents(AC3DecodeContext *ctx) { ac3_audio_block *ab = &ctx->audio_block; int i; uint8_t *exps; uint8_t *dexps; if (ab->flags & AC3_AB_CPLINU && ab->cplexpstr != AC3_EXPSTR_REUSE) if (_decode_exponents(ab->cplexpstr, ab->ncplgrps, ab->cplabsexp, ...
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static int decode_exponents(AC3DecodeContext *ctx) { ac3_audio_block *ab = &ctx->audio_block; int i; uint8_t *exps; uint8_t *dexps; if (ab->flags & AC3_AB_CPLINU && ab->cplexpstr != AC3_EXPSTR_REUSE) if (_decode_exponents(ab->cplexpstr, ab->ncplgrps, ab->cplabsexp, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AC3DecodeContext *VAR_0) { ac3_audio_block *ab = &VAR_0->audio_block; int VAR_1; uint8_t *exps; uint8_t *dexps; if (ab->flags & AC3_AB_CPLINU && ab->cplexpstr != AC3_EXPSTR_REUSE) if (_decode_exponents(ab->cplexpstr, ab->ncplgrps, ab->cplabsexp, ...
[ "static int FUNC_0(AC3DecodeContext *VAR_0)\n{", "ac3_audio_block *ab = &VAR_0->audio_block;", "int VAR_1;", "uint8_t *exps;", "uint8_t *dexps;", "if (ab->flags & AC3_AB_CPLINU && ab->cplexpstr != AC3_EXPSTR_REUSE)\nif (_decode_exponents(ab->cplexpstr, ab->ncplgrps, ab->cplabsexp,\nab->cplexps, ab->dcplex...
[ 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 ], [ 37, 39, 41 ], [ 43 ], [ 45 ] ]
441
static void handle_pending_signal(CPUArchState *cpu_env, int sig, struct emulated_sigtable *k) { CPUState *cpu = ENV_GET_CPU(cpu_env); abi_ulong handler; sigset_t set; target_sigset_t target_old_set; struct target_sigaction *sa; TaskState *ts = cpu->opaq...
true
qemu
c599d4d6d6e9bfdb64e54c33a22cb26e3496b96d
static void handle_pending_signal(CPUArchState *cpu_env, int sig, struct emulated_sigtable *k) { CPUState *cpu = ENV_GET_CPU(cpu_env); abi_ulong handler; sigset_t set; target_sigset_t target_old_set; struct target_sigaction *sa; TaskState *ts = cpu->opaq...
{ "code": [ " force_sig(sig);", " force_sig(sig);" ], "line_no": [ 71, 81 ] }
static void FUNC_0(CPUArchState *VAR_0, int VAR_1, struct emulated_sigtable *VAR_2) { CPUState *cpu = ENV_GET_CPU(VAR_0); abi_ulong handler; sigset_t set; target_sigset_t target_old_set; struct target_sigaction *VAR_3; TaskState *ts = cpu->opaque; ...
[ "static void FUNC_0(CPUArchState *VAR_0, int VAR_1,\nstruct emulated_sigtable *VAR_2)\n{", "CPUState *cpu = ENV_GET_CPU(VAR_0);", "abi_ulong handler;", "sigset_t set;", "target_sigset_t target_old_set;", "struct target_sigaction *VAR_3;", "TaskState *ts = cpu->opaque;", "trace_user_handle_signal(VAR_0...
[ 0, 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, 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 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
442
void block_job_yield(BlockJob *job) { assert(job->busy); /* Check cancellation *before* setting busy = false, too! */ if (block_job_is_cancelled(job)) { return; } job->busy = false; if (!block_job_should_pause(job)) { qemu_coroutine_yield(); } job->busy = ...
true
qemu
356f59b8757f47c0aca3e2e4e51d6010f64cade1
void block_job_yield(BlockJob *job) { assert(job->busy); if (block_job_is_cancelled(job)) { return; } job->busy = false; if (!block_job_should_pause(job)) { qemu_coroutine_yield(); } job->busy = true; block_job_pause_point(job); }
{ "code": [ " job->busy = false;", " qemu_coroutine_yield();", " job->busy = true;" ], "line_no": [ 19, 23, 27 ] }
void FUNC_0(BlockJob *VAR_0) { assert(VAR_0->busy); if (block_job_is_cancelled(VAR_0)) { return; } VAR_0->busy = false; if (!block_job_should_pause(VAR_0)) { qemu_coroutine_yield(); } VAR_0->busy = true; block_job_pause_point(VAR_0); }
[ "void FUNC_0(BlockJob *VAR_0)\n{", "assert(VAR_0->busy);", "if (block_job_is_cancelled(VAR_0)) {", "return;", "}", "VAR_0->busy = false;", "if (!block_job_should_pause(VAR_0)) {", "qemu_coroutine_yield();", "}", "VAR_0->busy = true;", "block_job_pause_point(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
445
static int udp_close(URLContext *h) { UDPContext *s = h->priv_data; if (s->is_multicast && (h->flags & AVIO_FLAG_READ)) udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,(struct sockaddr *)&s->local_addr_storage); closesocket(s->udp_fd); #if HAVE_PTHREAD_CANCEL if (s...
true
FFmpeg
9b7a8bddac52bd05dddb28afd4dff92739946d3b
static int udp_close(URLContext *h) { UDPContext *s = h->priv_data; if (s->is_multicast && (h->flags & AVIO_FLAG_READ)) udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,(struct sockaddr *)&s->local_addr_storage); closesocket(s->udp_fd); #if HAVE_PTHREAD_CANCEL if (s...
{ "code": [ " UDPContext *s = h->priv_data;", " pthread_cancel(s->circular_buffer_thread);" ], "line_no": [ 5, 21 ] }
static int FUNC_0(URLContext *VAR_0) { UDPContext *s = VAR_0->priv_data; if (s->is_multicast && (VAR_0->flags & AVIO_FLAG_READ)) udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,(struct sockaddr *)&s->local_addr_storage); closesocket(s->udp_fd); #if HAVE_PTHREAD_CANCEL ...
[ "static int FUNC_0(URLContext *VAR_0)\n{", "UDPContext *s = VAR_0->priv_data;", "if (s->is_multicast && (VAR_0->flags & AVIO_FLAG_READ))\nudp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,(struct sockaddr *)&s->local_addr_storage);", "closesocket(s->udp_fd);", "#if HAVE_PTHREAD_CANCEL\ni...
[ 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ] ]
447
static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac, uint8_t (*layout_map)[3], GetBitContext *gb, int byte_align_ref) { int num_front, num_side, num_back, num_lfe, num_assoc_data, num_cc; int sampling_index; int comment_len; int tags; ...
true
FFmpeg
df884e038f5dc95f55ef07500b5b99b722835f8a
static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac, uint8_t (*layout_map)[3], GetBitContext *gb, int byte_align_ref) { int num_front, num_side, num_back, num_lfe, num_assoc_data, num_cc; int sampling_index; int comment_len; int tags; ...
{ "code": [ " if (get_bits_left(gb) < 4 * (num_front + num_side + num_back + num_lfe + num_assoc_data + num_cc)) {" ], "line_no": [ 65 ] }
static int FUNC_0(AVCodecContext *VAR_0, MPEG4AudioConfig *VAR_1, VAR_2 (*layout_map)[3], GetBitContext *VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; int VAR_11; int VAR_12; int VAR_13; skip_bits(VAR_3, 2); VAR_11 =...
[ "static int FUNC_0(AVCodecContext *VAR_0, MPEG4AudioConfig *VAR_1,\nVAR_2 (*layout_map)[3],\nGetBitContext *VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "int VAR_11;", "int VAR_12;", "int VAR_13;", "skip_bits(VAR_3, 2);", "VAR_11 = get_bits(VAR_3, 4);", "if (VAR_1->VAR_11 !...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25, 27, 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53, 55 ], [...
448
void ff_decode_dxt1(const uint8_t *s, uint8_t *dst, const unsigned int w, const unsigned int h, const unsigned int stride) { unsigned int bx, by, qstride = stride/4; uint32_t *d = (uint32_t *) dst; for (by=0; by < h/4; by++, d += stride-w) for (bx=0; b...
true
FFmpeg
919f3554387e043bdfe10c6369356d1104882183
void ff_decode_dxt1(const uint8_t *s, uint8_t *dst, const unsigned int w, const unsigned int h, const unsigned int stride) { unsigned int bx, by, qstride = stride/4; uint32_t *d = (uint32_t *) dst; for (by=0; by < h/4; by++, d += stride-w) for (bx=0; b...
{ "code": [ "void ff_decode_dxt1(const uint8_t *s, uint8_t *dst,", " for (bx=0; bx < w/4; bx++, s+=8, d+=4)", " dxt1_decode_pixels(s, d, qstride, 0, 0LL);" ], "line_no": [ 1, 15, 17 ] }
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, const unsigned int VAR_2, const unsigned int VAR_3, const unsigned int VAR_4) { unsigned int VAR_5, VAR_6, VAR_7 = VAR_4/4; uint32_t *d = (uint32_t *) VAR_1; for (VAR_6=0; VAR_6 < VAR_3/4; VAR_6++, d += VAR_4-VA...
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1,\nconst unsigned int VAR_2, const unsigned int VAR_3,\nconst unsigned int VAR_4) {", "unsigned int VAR_5, VAR_6, VAR_7 = VAR_4/4;", "uint32_t *d = (uint32_t *) VAR_1;", "for (VAR_6=0; VAR_6 < VAR_3/4; VAR_6++, d += VAR_4-VAR_2)", "for (VAR_5=0; VAR_5 < VAR_2...
[ 1, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
450
static const HWAccel *get_hwaccel(enum AVPixelFormat pix_fmt) { int i; for (i = 0; hwaccels[i].name; i++) if (hwaccels[i].pix_fmt == pix_fmt) return &hwaccels[i]; return NULL; }
false
FFmpeg
6a4d1c9063174234ca439244cf8f5f534afa1c28
static const HWAccel *get_hwaccel(enum AVPixelFormat pix_fmt) { int i; for (i = 0; hwaccels[i].name; i++) if (hwaccels[i].pix_fmt == pix_fmt) return &hwaccels[i]; return NULL; }
{ "code": [], "line_no": [] }
static const HWAccel *FUNC_0(enum AVPixelFormat pix_fmt) { int VAR_0; for (VAR_0 = 0; hwaccels[VAR_0].name; VAR_0++) if (hwaccels[VAR_0].pix_fmt == pix_fmt) return &hwaccels[VAR_0]; return NULL; }
[ "static const HWAccel *FUNC_0(enum AVPixelFormat pix_fmt)\n{", "int VAR_0;", "for (VAR_0 = 0; hwaccels[VAR_0].name; VAR_0++)", "if (hwaccels[VAR_0].pix_fmt == pix_fmt)\nreturn &hwaccels[VAR_0];", "return NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ] ]
451
static void virtio_ioport_write(void *opaque, uint32_t addr, uint32_t val) { VirtIOPCIProxy *proxy = opaque; VirtIODevice *vdev = proxy->vdev; target_phys_addr_t pa; switch (addr) { case VIRTIO_PCI_GUEST_FEATURES: /* Guest does not negotiate properly? We have to assume nothing. */ if (v...
true
qemu
7157e2e23e89adcd436caeab31fdd6b47eded377
static void virtio_ioport_write(void *opaque, uint32_t addr, uint32_t val) { VirtIOPCIProxy *proxy = opaque; VirtIODevice *vdev = proxy->vdev; target_phys_addr_t pa; switch (addr) { case VIRTIO_PCI_GUEST_FEATURES: if (val & (1 << VIRTIO_F_BAD_FEATURE)) { if (vdev->bad_features) ...
{ "code": [ " virtio_queue_notify(vdev, val);" ], "line_no": [ 69 ] }
static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { VirtIOPCIProxy *proxy = VAR_0; VirtIODevice *vdev = proxy->vdev; target_phys_addr_t pa; switch (VAR_1) { case VIRTIO_PCI_GUEST_FEATURES: if (VAR_2 & (1 << VIRTIO_F_BAD_FEATURE)) { if (vdev->bad_features) VAR_2 = ...
[ "static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "VirtIOPCIProxy *proxy = VAR_0;", "VirtIODevice *vdev = proxy->vdev;", "target_phys_addr_t pa;", "switch (VAR_1) {", "case VIRTIO_PCI_GUEST_FEATURES:\nif (VAR_2 & (1 << VIRTIO_F_BAD_FEATURE)) {", "if (vdev->bad_features)\nVAR_2 = prox...
[ 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, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
453
int ff_get_cpu_flags_x86(void) { int rval = 0; #ifdef cpuid int eax, ebx, ecx, edx; int max_std_level, max_ext_level, std_caps = 0, ext_caps = 0; int family = 0, model = 0; union { int i[3]; char c[12]; } vendor; if (!cpuid_test()) return 0; /* CPUID not supported */ ...
false
FFmpeg
2d9821a2081aff5dca253386c6e7e71a04509cff
int ff_get_cpu_flags_x86(void) { int rval = 0; #ifdef cpuid int eax, ebx, ecx, edx; int max_std_level, max_ext_level, std_caps = 0, ext_caps = 0; int family = 0, model = 0; union { int i[3]; char c[12]; } vendor; if (!cpuid_test()) return 0; cpuid(0, max_std_level,...
{ "code": [], "line_no": [] }
int FUNC_0(void) { int VAR_0 = 0; #ifdef cpuid int eax, ebx, ecx, edx; int max_std_level, max_ext_level, std_caps = 0, ext_caps = 0; int family = 0, model = 0; union { int i[3]; char c[12]; } vendor; if (!cpuid_test()) return 0; cpuid(0, max_std_level, vendor.i[0],...
[ "int FUNC_0(void)\n{", "int VAR_0 = 0;", "#ifdef cpuid\nint eax, ebx, ecx, edx;", "int max_std_level, max_ext_level, std_caps = 0, ext_caps = 0;", "int family = 0, model = 0;", "union { int i[3]; char c[12]; } vendor;", "if (!cpuid_test())\nreturn 0;", "cpuid(0, max_std_level, vendor.i[0], vendor.i[2]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49, 51 ], [ 53, 55, 57 ], ...
454
static int read_sl_header(PESContext *pes, SLConfigDescr *sl, const uint8_t *buf, int buf_size) { GetBitContext gb; int au_start_flag = 0, au_end_flag = 0, ocr_flag = 0, idle_flag = 0; int padding_flag = 0, padding_bits = 0, inst_bitrate_flag = 0; int dts_flag = -1, cts_flag = -1; int64_t dts ...
false
FFmpeg
41bdd4adc4ab90a5ef7d63050a4046fcba711365
static int read_sl_header(PESContext *pes, SLConfigDescr *sl, const uint8_t *buf, int buf_size) { GetBitContext gb; int au_start_flag = 0, au_end_flag = 0, ocr_flag = 0, idle_flag = 0; int padding_flag = 0, padding_bits = 0, inst_bitrate_flag = 0; int dts_flag = -1, cts_flag = -1; int64_t dts ...
{ "code": [], "line_no": [] }
static int FUNC_0(PESContext *VAR_0, SLConfigDescr *VAR_1, const uint8_t *VAR_2, int VAR_3) { GetBitContext gb; int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7 = 0; int VAR_8 = 0, VAR_9 = 0, VAR_10 = 0; int VAR_11 = -1, VAR_12 = -1; int64_t dts = AV_NOPTS_VALUE, cts = AV_NOPTS_VALUE; init_get_...
[ "static int FUNC_0(PESContext *VAR_0, SLConfigDescr *VAR_1, const uint8_t *VAR_2, int VAR_3)\n{", "GetBitContext gb;", "int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7 = 0;", "int VAR_8 = 0, VAR_9 = 0, VAR_10 = 0;", "int VAR_11 = -1, VAR_12 = -1;", "int64_t dts = AV_NOPTS_VALUE, cts = AV_NOPTS_VALUE;", "init...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 49 ], [ 51, 53 ...
455
static enum AVHWDeviceType hw_device_match_type_in_name(const char *codec_name) { const char *type_name; enum AVHWDeviceType type; for (type = av_hwdevice_iterate_types(AV_HWDEVICE_TYPE_NONE); type != AV_HWDEVICE_TYPE_NONE; type = av_hwdevice_iterate_types(type)) { type_name...
false
FFmpeg
b0cd14fb1dab4b044f7fe6b53ac635409849de77
static enum AVHWDeviceType hw_device_match_type_in_name(const char *codec_name) { const char *type_name; enum AVHWDeviceType type; for (type = av_hwdevice_iterate_types(AV_HWDEVICE_TYPE_NONE); type != AV_HWDEVICE_TYPE_NONE; type = av_hwdevice_iterate_types(type)) { type_name...
{ "code": [], "line_no": [] }
static enum AVHWDeviceType FUNC_0(const char *VAR_0) { const char *VAR_1; enum AVHWDeviceType VAR_2; for (VAR_2 = av_hwdevice_iterate_types(AV_HWDEVICE_TYPE_NONE); VAR_2 != AV_HWDEVICE_TYPE_NONE; VAR_2 = av_hwdevice_iterate_types(VAR_2)) { VAR_1 = av_hwdevice_get_type_name(V...
[ "static enum AVHWDeviceType FUNC_0(const char *VAR_0)\n{", "const char *VAR_1;", "enum AVHWDeviceType VAR_2;", "for (VAR_2 = av_hwdevice_iterate_types(AV_HWDEVICE_TYPE_NONE);", "VAR_2 != AV_HWDEVICE_TYPE_NONE;", "VAR_2 = av_hwdevice_iterate_types(VAR_2)) {", "VAR_1 = av_hwdevice_get_type_name(VAR_2);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ] ]
456
static av_cold int encode_close(AVCodecContext* avc_context) { TheoraContext *h = avc_context->priv_data; th_encode_free(h->t_state); av_freep(&h->stats); av_freep(&avc_context->coded_frame); av_freep(&avc_context->stats_out); av_freep(&avc_context->extradata); avc_context->extrada...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int encode_close(AVCodecContext* avc_context) { TheoraContext *h = avc_context->priv_data; th_encode_free(h->t_state); av_freep(&h->stats); av_freep(&avc_context->coded_frame); av_freep(&avc_context->stats_out); av_freep(&avc_context->extradata); avc_context->extrada...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext* avc_context) { TheoraContext *h = avc_context->priv_data; th_encode_free(h->t_state); av_freep(&h->stats); av_freep(&avc_context->coded_frame); av_freep(&avc_context->stats_out); av_freep(&avc_context->extradata); avc_context->extradata_siz...
[ "static av_cold int FUNC_0(AVCodecContext* avc_context)\n{", "TheoraContext *h = avc_context->priv_data;", "th_encode_free(h->t_state);", "av_freep(&h->stats);", "av_freep(&avc_context->coded_frame);", "av_freep(&avc_context->stats_out);", "av_freep(&avc_context->extradata);", "avc_context->extradata_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
457
static int vaapi_encode_h264_init_slice_params(AVCodecContext *avctx, VAAPIEncodePicture *pic, VAAPIEncodeSlice *slice) { VAAPIEncodeContext *ctx = avctx->priv_data; VAEncSequenceParameterBufferH26...
false
FFmpeg
e72662e131e5099e34d5a7519c5690d2fff7b83f
static int vaapi_encode_h264_init_slice_params(AVCodecContext *avctx, VAAPIEncodePicture *pic, VAAPIEncodeSlice *slice) { VAAPIEncodeContext *ctx = avctx->priv_data; VAEncSequenceParameterBufferH26...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, VAAPIEncodePicture *VAR_1, VAAPIEncodeSlice *VAR_2) { VAAPIEncodeContext *ctx = VAR_0->priv_data; VAEncSequenceParameterBufferH264 *vseq = ctx->codec_seque...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nVAAPIEncodePicture *VAR_1,\nVAAPIEncodeSlice *VAR_2)\n{", "VAAPIEncodeContext *ctx = VAR_0->priv_data;", "VAEncSequenceParameterBufferH264 *vseq = ctx->codec_sequence_params;", "VAEncPictureParameterBufferH264 *vpic = VAR_1->codec_picture_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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43, 45 ], [ 49 ], [ 51, 53 ...
458
static char *assign_name(NetClientState *nc1, const char *model) { NetClientState *nc; char buf[256]; int id = 0; QTAILQ_FOREACH(nc, &net_clients, next) { if (nc == nc1) { continue; } /* For compatibility only bump id for net clients on a vlan */ i...
false
qemu
c963530a5b3e3e0f7304841adfe84416d82f59f6
static char *assign_name(NetClientState *nc1, const char *model) { NetClientState *nc; char buf[256]; int id = 0; QTAILQ_FOREACH(nc, &net_clients, next) { if (nc == nc1) { continue; } if (strcmp(nc->model, model) == 0 && net_hub_id_fo...
{ "code": [], "line_no": [] }
static char *FUNC_0(NetClientState *VAR_0, const char *VAR_1) { NetClientState *nc; char VAR_2[256]; int VAR_3 = 0; QTAILQ_FOREACH(nc, &net_clients, next) { if (nc == VAR_0) { continue; } if (strcmp(nc->VAR_1, VAR_1) == 0 && net_hub_i...
[ "static char *FUNC_0(NetClientState *VAR_0, const char *VAR_1)\n{", "NetClientState *nc;", "char VAR_2[256];", "int VAR_3 = 0;", "QTAILQ_FOREACH(nc, &net_clients, next) {", "if (nc == VAR_0) {", "continue;", "}", "if (strcmp(nc->VAR_1, VAR_1) == 0 &&\nnet_hub_id_for_client(nc, NULL) == 0) {", "VAR...
[ 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 ], [ 35 ], [ 39 ], [ 41 ] ]
459
static void nbd_accept(void *opaque) { int server_fd = (uintptr_t) opaque; struct sockaddr_in addr; socklen_t addr_len = sizeof(addr); int fd = accept(server_fd, (struct sockaddr *)&addr, &addr_len); nbd_started = true; if (fd >= 0 && nbd_client_new(exp, fd, nbd_client_closed)) { ...
false
qemu
7860a380ac2a9fd09a6e8f31fd9db5318fc91285
static void nbd_accept(void *opaque) { int server_fd = (uintptr_t) opaque; struct sockaddr_in addr; socklen_t addr_len = sizeof(addr); int fd = accept(server_fd, (struct sockaddr *)&addr, &addr_len); nbd_started = true; if (fd >= 0 && nbd_client_new(exp, fd, nbd_client_closed)) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int VAR_1 = (uintptr_t) VAR_0; struct sockaddr_in VAR_2; socklen_t addr_len = sizeof(VAR_2); int VAR_3 = accept(VAR_1, (struct sockaddr *)&VAR_2, &addr_len); nbd_started = true; if (VAR_3 >= 0 && nbd_client_new(exp, VAR_3, nbd_client_closed)) { ...
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1 = (uintptr_t) VAR_0;", "struct sockaddr_in VAR_2;", "socklen_t addr_len = sizeof(VAR_2);", "int VAR_3 = accept(VAR_1, (struct sockaddr *)&VAR_2, &addr_len);", "nbd_started = true;", "if (VAR_3 >= 0 && nbd_client_new(exp, VAR_3, nbd_client_closed)) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
460
static void dma_init2(struct dma_cont *d, int base, int dshift, int page_base, int pageh_base, qemu_irq *cpu_request_exit) { int i; d->dshift = dshift; d->cpu_request_exit = cpu_request_exit; memory_region_init_io(&d->channel_io, NULL, &channel_io_o...
false
qemu
5039d6e23586fe6bbedc5e4fe302b48a66890ade
static void dma_init2(struct dma_cont *d, int base, int dshift, int page_base, int pageh_base, qemu_irq *cpu_request_exit) { int i; d->dshift = dshift; d->cpu_request_exit = cpu_request_exit; memory_region_init_io(&d->channel_io, NULL, &channel_io_o...
{ "code": [], "line_no": [] }
static void FUNC_0(struct dma_cont *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, qemu_irq *VAR_5) { int VAR_6; VAR_0->VAR_2 = VAR_2; VAR_0->VAR_5 = VAR_5; memory_region_init_io(&VAR_0->channel_io, NULL, &channel_io_ops, VAR_0, ...
[ "static void FUNC_0(struct dma_cont *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nqemu_irq *VAR_5)\n{", "int VAR_6;", "VAR_0->VAR_2 = VAR_2;", "VAR_0->VAR_5 = VAR_5;", "memory_region_init_io(&VAR_0->channel_io, NULL, &channel_io_ops, VAR_0,\n\"dma-chan\", 8 << VAR_0->VAR_2);", "memory_region_add_s...
[ 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, 25 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 47, 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
462
static inline bool migration_bitmap_test_and_reset_dirty(MemoryRegion *mr, ram_addr_t offset) { bool ret; int nr = (mr->ram_addr + offset) >> TARGET_PAGE_BITS; ret = test_and_clear_bit(nr, migration_bitmap); if (ret) { migration...
false
qemu
4c8ae0f60e63478aea0a1741cca95474b68fb949
static inline bool migration_bitmap_test_and_reset_dirty(MemoryRegion *mr, ram_addr_t offset) { bool ret; int nr = (mr->ram_addr + offset) >> TARGET_PAGE_BITS; ret = test_and_clear_bit(nr, migration_bitmap); if (ret) { migration...
{ "code": [], "line_no": [] }
static inline bool FUNC_0(MemoryRegion *mr, ram_addr_t offset) { bool ret; int VAR_0 = (mr->ram_addr + offset) >> TARGET_PAGE_BITS; ret = test_and_clear_bit(VAR_0, migration_bitmap); if (ret) { migration_dirty_pages--; } ...
[ "static inline bool FUNC_0(MemoryRegion *mr,\nram_addr_t offset)\n{", "bool ret;", "int VAR_0 = (mr->ram_addr + offset) >> TARGET_PAGE_BITS;", "ret = test_and_clear_bit(VAR_0, migration_bitmap);", "if (ret) {", "migration_dirty_pages--;", "}", "return ret;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
463
static inline void gen_op_eval_bge(TCGv dst, TCGv_i32 src) { gen_mov_reg_V(cpu_tmp0, src); gen_mov_reg_N(dst, src); tcg_gen_xor_tl(dst, dst, cpu_tmp0); tcg_gen_xori_tl(dst, dst, 0x1); }
false
qemu
de9e9d9f17a36ff76c1a02a5348835e5e0a081b0
static inline void gen_op_eval_bge(TCGv dst, TCGv_i32 src) { gen_mov_reg_V(cpu_tmp0, src); gen_mov_reg_N(dst, src); tcg_gen_xor_tl(dst, dst, cpu_tmp0); tcg_gen_xori_tl(dst, dst, 0x1); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv VAR_0, TCGv_i32 VAR_1) { gen_mov_reg_V(cpu_tmp0, VAR_1); gen_mov_reg_N(VAR_0, VAR_1); tcg_gen_xor_tl(VAR_0, VAR_0, cpu_tmp0); tcg_gen_xori_tl(VAR_0, VAR_0, 0x1); }
[ "static inline void FUNC_0(TCGv VAR_0, TCGv_i32 VAR_1)\n{", "gen_mov_reg_V(cpu_tmp0, VAR_1);", "gen_mov_reg_N(VAR_0, VAR_1);", "tcg_gen_xor_tl(VAR_0, VAR_0, cpu_tmp0);", "tcg_gen_xori_tl(VAR_0, VAR_0, 0x1);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
464
static int qcow_set_key(BlockDriverState *bs, const char *key) { BDRVQcowState *s = bs->opaque; uint8_t keybuf[16]; int len, i; Error *err; memset(keybuf, 0, 16); len = strlen(key); if (len > 16) len = 16; /* XXX: we could compress the chars to 7 bits to increase ...
false
qemu
d85f4222b4681da7ebf8a90b26e085a68fa2c55a
static int qcow_set_key(BlockDriverState *bs, const char *key) { BDRVQcowState *s = bs->opaque; uint8_t keybuf[16]; int len, i; Error *err; memset(keybuf, 0, 16); len = strlen(key); if (len > 16) len = 16; for(i = 0;i < len;i++) { keybuf[i] = key[i]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1) { BDRVQcowState *s = VAR_0->opaque; uint8_t keybuf[16]; int VAR_2, VAR_3; Error *err; memset(keybuf, 0, 16); VAR_2 = strlen(VAR_1); if (VAR_2 > 16) VAR_2 = 16; for(VAR_3 = 0;VAR_3 < VAR_2;VAR_3++) {...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1)\n{", "BDRVQcowState *s = VAR_0->opaque;", "uint8_t keybuf[16];", "int VAR_2, VAR_3;", "Error *err;", "memset(keybuf, 0, 16);", "VAR_2 = strlen(VAR_1);", "if (VAR_2 > 16)\nVAR_2 = 16;", "for(VAR_3 = 0;VAR_3 < VAR_2;VAR_3++) {", "keybuf[...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41, 43, 45, 47 ], [ 51 ], [ 59 ], [ 61 ], [...
465
int vhost_dev_init(struct vhost_dev *hdev, int devfd, const char *devpath, bool force) { uint64_t features; int r; if (devfd >= 0) { hdev->control = devfd; } else { hdev->control = open(devpath, O_RDWR); if (hdev->control < 0) { return -er...
false
qemu
0fada67420e29f389119ca6f44285203400e0730
int vhost_dev_init(struct vhost_dev *hdev, int devfd, const char *devpath, bool force) { uint64_t features; int r; if (devfd >= 0) { hdev->control = devfd; } else { hdev->control = open(devpath, O_RDWR); if (hdev->control < 0) { return -er...
{ "code": [], "line_no": [] }
int FUNC_0(struct vhost_dev *VAR_0, int VAR_1, const char *VAR_2, bool VAR_3) { uint64_t features; int VAR_4; if (VAR_1 >= 0) { VAR_0->control = VAR_1; } else { VAR_0->control = open(VAR_2, O_RDWR); if (VAR_0->control < 0) { return -errno;...
[ "int FUNC_0(struct vhost_dev *VAR_0, int VAR_1, const char *VAR_2,\nbool VAR_3)\n{", "uint64_t features;", "int VAR_4;", "if (VAR_1 >= 0) {", "VAR_0->control = VAR_1;", "} else {", "VAR_0->control = open(VAR_2, O_RDWR);", "if (VAR_0->control < 0) {", "return -errno;", "}", "}", "VAR_4 = ioctl(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [...
466
static void fw_cfg_mem_realize(DeviceState *dev, Error **errp) { FWCfgMemState *s = FW_CFG_MEM(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops, FW_CFG(s), "fwcfg.ctl", FW_CFG_SIZE); sysbus_init_mmio(sbd,...
false
qemu
cfaadf0e89e7c2a47462d5f96390c9a9b4de037c
static void fw_cfg_mem_realize(DeviceState *dev, Error **errp) { FWCfgMemState *s = FW_CFG_MEM(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops, FW_CFG(s), "fwcfg.ctl", FW_CFG_SIZE); sysbus_init_mmio(sbd,...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { FWCfgMemState *s = FW_CFG_MEM(VAR_0); SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0); memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops, FW_CFG(s), "fwcfg.ctl", FW_CFG_SIZE); sysbus_init_mmio(sbd, &s->...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "FWCfgMemState *s = FW_CFG_MEM(VAR_0);", "SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);", "memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops,\nFW_CFG(s), \"fwcfg.ctl\", FW_CFG_SIZE);", "sysbus_init_mmio(sbd, &s->ctl_iomem);", "memo...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 19, 21, 23 ], [ 25 ], [ 27 ] ]
467
static void hls_prediction_unit(HEVCContext *s, int x0, int y0, int nPbW, int nPbH, int log2_cb_size, int partIdx) { #define POS(c_idx, x, y) \ &s->frame->data[c_idx][((y) >> s->sps->vsh...
false
FFmpeg
8b573ddda75980f724f779ff75aacc2ff81d9e0e
static void hls_prediction_unit(HEVCContext *s, int x0, int y0, int nPbW, int nPbH, int log2_cb_size, int partIdx) { #define POS(c_idx, x, y) \ &s->frame->data[c_idx][((y) >> s->sps->vsh...
{ "code": [], "line_no": [] }
static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { #define POS(c_idx, x, y) \ &VAR_0->frame->data[c_idx][((y) >> VAR_0->sps->vshif...
[ "static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint VAR_5, int VAR_6)\n{", "#define POS(c_idx, x, y) \\\n&VAR_0->frame->data[c_idx][((y) >> VAR_0->sps->vshift[c_idx]) * VAR_0->frame->linesize[c_idx] + \\\n(((x) >> 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, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
468
static void select_soundhw (const char *optarg) { struct soundhw *c; if (*optarg == '?') { show_valid_cards: printf ("Valid sound card names (comma separated):\n"); for (c = soundhw; c->name; ++c) { printf ("%-11s %s\n", c->name, c->descr); } printf (...
false
qemu
ad96090a01d848df67d70c5259ed8aa321fa8716
static void select_soundhw (const char *optarg) { struct soundhw *c; if (*optarg == '?') { show_valid_cards: printf ("Valid sound card names (comma separated):\n"); for (c = soundhw; c->name; ++c) { printf ("%-11s %s\n", c->name, c->descr); } printf (...
{ "code": [], "line_no": [] }
static void FUNC_0 (const char *VAR_0) { struct soundhw *VAR_1; if (*VAR_0 == '?') { show_valid_cards: printf ("Valid sound card names (comma separated):\n"); for (VAR_1 = soundhw; VAR_1->name; ++VAR_1) { printf ("%-11s %s\n", VAR_1->name, VAR_1->descr); } ...
[ "static void FUNC_0 (const char *VAR_0)\n{", "struct soundhw *VAR_1;", "if (*VAR_0 == '?') {", "show_valid_cards:\nprintf (\"Valid sound card names (comma separated):\\n\");", "for (VAR_1 = soundhw; VAR_1->name; ++VAR_1) {", "printf (\"%-11s %s\\n\", VAR_1->name, VAR_1->descr);", "}", "printf (\"\\n-s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
469
void ide_bus_reset(IDEBus *bus) { bus->unit = 0; bus->cmd = 0; ide_reset(&bus->ifs[0]); ide_reset(&bus->ifs[1]); ide_clear_hob(bus); /* pending async DMA */ if (bus->dma->aiocb) { #ifdef DEBUG_AIO printf("aio_cancel\n"); #endif bdrv_aio_cancel(bus->dma->aiocb); ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
void ide_bus_reset(IDEBus *bus) { bus->unit = 0; bus->cmd = 0; ide_reset(&bus->ifs[0]); ide_reset(&bus->ifs[1]); ide_clear_hob(bus); if (bus->dma->aiocb) { #ifdef DEBUG_AIO printf("aio_cancel\n"); #endif bdrv_aio_cancel(bus->dma->aiocb); bus->dma->aioc...
{ "code": [], "line_no": [] }
void FUNC_0(IDEBus *VAR_0) { VAR_0->unit = 0; VAR_0->cmd = 0; ide_reset(&VAR_0->ifs[0]); ide_reset(&VAR_0->ifs[1]); ide_clear_hob(VAR_0); if (VAR_0->dma->aiocb) { #ifdef DEBUG_AIO printf("aio_cancel\n"); #endif bdrv_aio_cancel(VAR_0->dma->aiocb); VAR_0...
[ "void FUNC_0(IDEBus *VAR_0)\n{", "VAR_0->unit = 0;", "VAR_0->cmd = 0;", "ide_reset(&VAR_0->ifs[0]);", "ide_reset(&VAR_0->ifs[1]);", "ide_clear_hob(VAR_0);", "if (VAR_0->dma->aiocb) {", "#ifdef DEBUG_AIO\nprintf(\"aio_cancel\\n\");", "#endif\nbdrv_aio_cancel(VAR_0->dma->aiocb);", "VAR_0->dma->aiocb...
[ 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 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
470
if_start(void) { struct mbuf *ifm, *ifqt; DEBUG_CALL("if_start"); if (if_queued == 0) return; /* Nothing to do */ again: /* check if we can really output */ if (!slirp_can_output()) return; /* * See which queue to get next packet from * If there's something i...
false
qemu
242acf3af4605adce933906bdc053b2414181ec7
if_start(void) { struct mbuf *ifm, *ifqt; DEBUG_CALL("if_start"); if (if_queued == 0) return; again: if (!slirp_can_output()) return; if (if_fastq.ifq_next != &if_fastq) { ifm = if_fastq.ifq_next; } else { if (next_m != &if_batchq) ifm ...
{ "code": [], "line_no": [] }
FUNC_0(void) { struct mbuf *VAR_0, *VAR_1; DEBUG_CALL("FUNC_0"); if (if_queued == 0) return; again: if (!slirp_can_output()) return; if (if_fastq.ifq_next != &if_fastq) { VAR_0 = if_fastq.ifq_next; } else { if (next_m != &if_batchq) VAR...
[ "FUNC_0(void)\n{", "struct mbuf *VAR_0, *VAR_1;", "DEBUG_CALL(\"FUNC_0\");", "if (if_queued == 0)\nreturn;", "again:\nif (!slirp_can_output())\nreturn;", "if (if_fastq.ifq_next != &if_fastq) {", "VAR_0 = if_fastq.ifq_next;", "} else {", "if (next_m != &if_batchq)\nVAR_0 = next_m;", "else\nVAR_0 = ...
[ 0, 0, 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 ], [ 13, 15 ], [ 19, 23, 25 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49, 51 ], [ 57 ], [ 59 ], [ 63 ], [ 65 ], [ 67 ], [ 73 ], [ 75 ], ...
471
MacIONVRAMState *macio_nvram_init (target_phys_addr_t size, unsigned int it_shift) { MacIONVRAMState *s; s = g_malloc0(sizeof(MacIONVRAMState)); s->data = g_malloc0(size); s->size = size; s->it_shift = it_shift; memory_region_init_io(&s->mem, &macio...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
MacIONVRAMState *macio_nvram_init (target_phys_addr_t size, unsigned int it_shift) { MacIONVRAMState *s; s = g_malloc0(sizeof(MacIONVRAMState)); s->data = g_malloc0(size); s->size = size; s->it_shift = it_shift; memory_region_init_io(&s->mem, &macio...
{ "code": [], "line_no": [] }
MacIONVRAMState *FUNC_0 (target_phys_addr_t size, unsigned int it_shift) { MacIONVRAMState *s; s = g_malloc0(sizeof(MacIONVRAMState)); s->data = g_malloc0(size); s->size = size; s->it_shift = it_shift; memory_region_init_io(&s->mem, &macio_nvram_ops...
[ "MacIONVRAMState *FUNC_0 (target_phys_addr_t size,\nunsigned int it_shift)\n{", "MacIONVRAMState *s;", "s = g_malloc0(sizeof(MacIONVRAMState));", "s->data = g_malloc0(size);", "s->size = size;", "s->it_shift = it_shift;", "memory_region_init_io(&s->mem, &macio_nvram_ops, s, \"macio-nvram\",\nsize << it_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
472
static void cmd646_data_write(void *opaque, target_phys_addr_t addr, uint64_t data, unsigned size) { CMD646BAR *cmd646bar = opaque; if (size == 1) { ide_ioport_write(cmd646bar->bus, addr, data); } else if (addr == 0) { if (size == 2) { ide_d...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void cmd646_data_write(void *opaque, target_phys_addr_t addr, uint64_t data, unsigned size) { CMD646BAR *cmd646bar = opaque; if (size == 1) { ide_ioport_write(cmd646bar->bus, addr, data); } else if (addr == 0) { if (size == 2) { ide_d...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { CMD646BAR *cmd646bar = VAR_0; if (VAR_3 == 1) { ide_ioport_write(cmd646bar->bus, VAR_1, VAR_2); } else if (VAR_1 == 0) { if (VAR_3 == 2) { ide_data_w...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "CMD646BAR *cmd646bar = VAR_0;", "if (VAR_3 == 1) {", "ide_ioport_write(cmd646bar->bus, VAR_1, VAR_2);", "} else if (VAR_1 == 0) {", "if (VAR_3 == 2) {", "ide_data_writew(cmd646bar->bus, VAR_1, VAR_2);", "...
[ 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 ] ]
473
static uint64_t kvm_apic_mem_read(void *opaque, target_phys_addr_t addr, unsigned size) { return ~(uint64_t)0; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t kvm_apic_mem_read(void *opaque, target_phys_addr_t addr, unsigned size) { return ~(uint64_t)0; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { return ~(uint64_t)0; }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "return ~(uint64_t)0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
475
static uint64_t bonito_cop_readl(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)]; return val; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t bonito_cop_readl(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)]; return val; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)]; return val; }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "uint32_t val;", "PCIBonitoState *s = opaque;", "val = ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)];", "return val;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ] ]
476
size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, size_t iov_off, int fillc, size_t size) { size_t iovec_off, buf_off; unsigned int i; iovec_off = 0; buf_off = 0; for (i = 0; i < iov_cnt && size; i++) { if (iov_off < (iovec_off + iov[i].iov_len...
false
qemu
2278a69e7020d86a8c73a28474e7709d3e7d5081
size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, size_t iov_off, int fillc, size_t size) { size_t iovec_off, buf_off; unsigned int i; iovec_off = 0; buf_off = 0; for (i = 0; i < iov_cnt && size; i++) { if (iov_off < (iovec_off + iov[i].iov_len...
{ "code": [], "line_no": [] }
size_t FUNC_0(const struct iovec *iov, const unsigned int iov_cnt, size_t iov_off, int fillc, size_t size) { size_t iovec_off, buf_off; unsigned int VAR_0; iovec_off = 0; buf_off = 0; for (VAR_0 = 0; VAR_0 < iov_cnt && size; VAR_0++) { if (iov_off < (iovec_off + io...
[ "size_t FUNC_0(const struct iovec *iov, const unsigned int iov_cnt,\nsize_t iov_off, int fillc, size_t size)\n{", "size_t iovec_off, buf_off;", "unsigned int VAR_0;", "iovec_off = 0;", "buf_off = 0;", "for (VAR_0 = 0; VAR_0 < iov_cnt && size; VAR_0++) {", "if (iov_off < (iovec_off + iov[VAR_0].iov_len))...
[ 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 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
477
static int img_open_password(BlockBackend *blk, const char *filename, int flags, bool quiet) { BlockDriverState *bs; char password[256]; bs = blk_bs(blk); if (bdrv_is_encrypted(bs) && !(flags & BDRV_O_NO_IO)) { qprintf(quiet, "Disk image '%s' is encrypted.\n...
false
qemu
4ef130fca87b7a8c77e1af9ca967f28b683811d7
static int img_open_password(BlockBackend *blk, const char *filename, int flags, bool quiet) { BlockDriverState *bs; char password[256]; bs = blk_bs(blk); if (bdrv_is_encrypted(bs) && !(flags & BDRV_O_NO_IO)) { qprintf(quiet, "Disk image '%s' is encrypted.\n...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockBackend *VAR_0, const char *VAR_1, int VAR_2, bool VAR_3) { BlockDriverState *bs; char VAR_4[256]; bs = blk_bs(VAR_0); if (bdrv_is_encrypted(bs) && !(VAR_2 & BDRV_O_NO_IO)) { qprintf(VAR_3, "Disk image '%s' is encrypted.\n", VAR_1); ...
[ "static int FUNC_0(BlockBackend *VAR_0, const char *VAR_1,\nint VAR_2, bool VAR_3)\n{", "BlockDriverState *bs;", "char VAR_4[256];", "bs = blk_bs(VAR_0);", "if (bdrv_is_encrypted(bs) && !(VAR_2 & BDRV_O_NO_IO)) {", "qprintf(VAR_3, \"Disk image '%s' is encrypted.\\n\", VAR_1);", "if (qemu_read_password(V...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
478
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) { const char *codec_name; AVCodec *p; char buf1[32]; int bitrate; AVRational display_aspect_ratio; if (encode) p = avcodec_find_encoder(enc->codec_id); else p = avcodec_find_decoder(enc-...
false
FFmpeg
c9b3c0c740ac912c835ccb7179afc2c5da8d5d23
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) { const char *codec_name; AVCodec *p; char buf1[32]; int bitrate; AVRational display_aspect_ratio; if (encode) p = avcodec_find_encoder(enc->codec_id); else p = avcodec_find_decoder(enc-...
{ "code": [], "line_no": [] }
void FUNC_0(char *VAR_0, int VAR_1, AVCodecContext *VAR_2, int VAR_3) { const char *VAR_4; AVCodec *p; char VAR_5[32]; int VAR_6; AVRational display_aspect_ratio; if (VAR_3) p = avcodec_find_encoder(VAR_2->codec_id); else p = avcodec_find_decoder(VAR_2->codec_id);...
[ "void FUNC_0(char *VAR_0, int VAR_1, AVCodecContext *VAR_2, int VAR_3)\n{", "const char *VAR_4;", "AVCodec *p;", "char VAR_5[32];", "int VAR_6;", "AVRational display_aspect_ratio;", "if (VAR_3)\np = avcodec_find_encoder(VAR_2->codec_id);", "else\np = avcodec_find_decoder(VAR_2->codec_id);", "if (p) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ...
479
static int transcode_init(OutputFile *output_files, int nb_output_files, InputFile *input_files, int nb_input_files) { int ret = 0, i, j; AVFormatContext *os; AVCodecContext *codec, *icodec; OutputStream *ost; Inp...
false
FFmpeg
2c474ddbc5b90541ea4a65961490b6469d12529f
static int transcode_init(OutputFile *output_files, int nb_output_files, InputFile *input_files, int nb_input_files) { int ret = 0, i, j; AVFormatContext *os; AVCodecContext *codec, *icodec; OutputStream *ost; Inp...
{ "code": [], "line_no": [] }
static int FUNC_0(OutputFile *VAR_0, int VAR_1, InputFile *VAR_2, int VAR_3) { int VAR_4 = 0, VAR_5, VAR_6; AVFormatContext *os; AVCodecContext *codec, *icodec; OutputStream *ost; InputStream *ist; char VAR_7...
[ "static int FUNC_0(OutputFile *VAR_0,\nint VAR_1,\nInputFile *VAR_2,\nint VAR_3)\n{", "int VAR_4 = 0, VAR_5, VAR_6;", "AVFormatContext *os;", "AVCodecContext *codec, *icodec;", "OutputStream *ost;", "InputStream *ist;", "char VAR_7[1024];", "int VAR_8 = 1;", "for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
480
static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt) { LavfiContext *lavfi = avctx->priv_data; double min_pts = DBL_MAX; int stream_idx, min_pts_sink_idx = 0; AVFrame *frame = lavfi->decoded_frame; AVPicture pict; AVDictionary *frame_metadata; int ret, i; int size...
false
FFmpeg
229843aa359ae0c9519977d7fa952688db63f559
static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt) { LavfiContext *lavfi = avctx->priv_data; double min_pts = DBL_MAX; int stream_idx, min_pts_sink_idx = 0; AVFrame *frame = lavfi->decoded_frame; AVPicture pict; AVDictionary *frame_metadata; int ret, i; int size...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { LavfiContext *lavfi = VAR_0->priv_data; double VAR_2 = DBL_MAX; int VAR_3, VAR_4 = 0; AVFrame *frame = lavfi->decoded_frame; AVPicture pict; AVDictionary *frame_metadata; int VAR_5, VAR_6; int VAR_7 = 0; if (lav...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "LavfiContext *lavfi = VAR_0->priv_data;", "double VAR_2 = DBL_MAX;", "int VAR_3, VAR_4 = 0;", "AVFrame *frame = lavfi->decoded_frame;", "AVPicture pict;", "AVDictionary *frame_metadata;", "int VAR_5, VAR_6;", "int VAR_7 = 0;", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
481
static void iothread_complete(UserCreatable *obj, Error **errp) { IOThread *iothread = IOTHREAD(obj); iothread->stopping = false; iothread->ctx = aio_context_new(); iothread->thread_id = -1; qemu_mutex_init(&iothread->init_done_lock); qemu_cond_init(&iothread->init_done_cond); ...
true
qemu
2f78e491d7b46542158ce0b8132ee4e05bc0ade4
static void iothread_complete(UserCreatable *obj, Error **errp) { IOThread *iothread = IOTHREAD(obj); iothread->stopping = false; iothread->ctx = aio_context_new(); iothread->thread_id = -1; qemu_mutex_init(&iothread->init_done_lock); qemu_cond_init(&iothread->init_done_cond); ...
{ "code": [ " iothread->ctx = aio_context_new();" ], "line_no": [ 11 ] }
static void FUNC_0(UserCreatable *VAR_0, Error **VAR_1) { IOThread *iothread = IOTHREAD(VAR_0); iothread->stopping = false; iothread->ctx = aio_context_new(); iothread->thread_id = -1; qemu_mutex_init(&iothread->init_done_lock); qemu_cond_init(&iothread->init_done_cond); ...
[ "static void FUNC_0(UserCreatable *VAR_0, Error **VAR_1)\n{", "IOThread *iothread = IOTHREAD(VAR_0);", "iothread->stopping = false;", "iothread->ctx = aio_context_new();", "iothread->thread_id = -1;", "qemu_mutex_init(&iothread->init_done_lock);", "qemu_cond_init(&iothread->init_done_cond);", "qemu_th...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 29, 31 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ] ]
482
static void gen_tlbre_440(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } switch (rB(ctx->opcode)) { case 0: case 1: case ...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_tlbre_440(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } switch (rB(ctx->opcode)) { case 0: case 1: case ...
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } switch (rB(VAR_0->opcode)) { case 0: case 1: ca...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "switch (rB(VAR_0->opcode)) {", "case 0:\ncase 1:\ncase 2:\n{", ...
[ 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
483
target_ulong helper_evpe(target_ulong arg1) { // TODO arg1 = 0; // rt = arg1 return arg1; }
true
qemu
9ed5726c043958359b0f1fa44ab3e4f25f9d9a47
target_ulong helper_evpe(target_ulong arg1) { arg1 = 0; return arg1; }
{ "code": [ " arg1 = 0;", " return arg1;", " arg1 = 0;", " return arg1;", " arg1 = 0;", " return arg1;", "target_ulong helper_evpe(target_ulong arg1)", " arg1 = 0;", " return arg1;" ], "line_no": [ 7, 13, 7, 13, 7, 13, 1, ...
target_ulong FUNC_0(target_ulong arg1) { arg1 = 0; return arg1; }
[ "target_ulong FUNC_0(target_ulong arg1)\n{", "arg1 = 0;", "return arg1;", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 7 ], [ 13 ], [ 15 ] ]
484
void helper_ldmxcsr(CPUX86State *env, uint32_t val) { env->mxcsr = val; update_sse_status(env); }
true
qemu
4e47e39ab0ded72c0af174131ecf49d588d66c12
void helper_ldmxcsr(CPUX86State *env, uint32_t val) { env->mxcsr = val; update_sse_status(env); }
{ "code": [ " env->mxcsr = val;", " update_sse_status(env);" ], "line_no": [ 5, 7 ] }
void FUNC_0(CPUX86State *VAR_0, uint32_t VAR_1) { VAR_0->mxcsr = VAR_1; update_sse_status(VAR_0); }
[ "void FUNC_0(CPUX86State *VAR_0, uint32_t VAR_1)\n{", "VAR_0->mxcsr = VAR_1;", "update_sse_status(VAR_0);", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
485
void ff_snow_horizontal_compose97i_mmx(IDWTELEM *b, int width){ const int w2= (width+1)>>1; IDWTELEM temp[width >> 1]; const int w_l= (width>>1); const int w_r= w2 - 1; int i; { // Lift 0 IDWTELEM * const ref = b + w2 - 1; i = 1; b[0] = b[0] - ((W_DM * 2 * re...
true
FFmpeg
629750290f6122a72e68c34cf94f521a90def2ef
void ff_snow_horizontal_compose97i_mmx(IDWTELEM *b, int width){ const int w2= (width+1)>>1; IDWTELEM temp[width >> 1]; const int w_l= (width>>1); const int w_r= w2 - 1; int i; { IDWTELEM * const ref = b + w2 - 1; i = 1; b[0] = b[0] - ((W_DM * 2 * ref[1]+W_DO...
{ "code": [ " \"psllw $2, %%mm7 \\n\\t\"", " \"paddw 2(%1), %%mm0 \\n\\t\"", " \"paddw 10(%1), %%mm4 \\n\\t\"", " \"paddw %%mm7, %%mm0 \\n\\t\"", " \"paddw %%mm7, %%mm4 \\n\\t\...
void FUNC_0(IDWTELEM *VAR_0, int VAR_1){ const int VAR_2= (VAR_1+1)>>1; IDWTELEM temp[VAR_1 >> 1]; const int VAR_3= (VAR_1>>1); const int VAR_4= VAR_2 - 1; int VAR_5; { IDWTELEM * const ref = VAR_0 + VAR_2 - 1; VAR_5 = 1; VAR_0[0] = VAR_0[0] - ((W_DM * 2 * r...
[ "void FUNC_0(IDWTELEM *VAR_0, int VAR_1){", "const int VAR_2= (VAR_1+1)>>1;", "IDWTELEM temp[VAR_1 >> 1];", "const int VAR_3= (VAR_1>>1);", "const int VAR_4= VAR_2 - 1;", "int VAR_5;", "{", "IDWTELEM * const ref = VAR_0 + VAR_2 - 1;", "VAR_5 = 1;", "VAR_0[0] = VAR_0[0] - ((W_DM * 2 * ref[1]+W_DO)>...
[ 0, 0, 0, 0, 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, 1, 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 ], [ 21 ], [ 23 ], [ 25, 27, 29, 31, 33 ], [ 35 ], [ 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
486
static int net_dump_init(VLANState *vlan, const char *device, const char *name, const char *filename, int len) { struct pcap_file_hdr hdr; DumpState *s; s = qemu_malloc(sizeof(DumpState)); s->fd = open(filename, O_CREAT | O_WRONLY | O_BINARY, 0644); if (s->fd < 0)...
true
qemu
731d5856cbb9c160fe02b90cd3cf354ea4f52f34
static int net_dump_init(VLANState *vlan, const char *device, const char *name, const char *filename, int len) { struct pcap_file_hdr hdr; DumpState *s; s = qemu_malloc(sizeof(DumpState)); s->fd = open(filename, O_CREAT | O_WRONLY | O_BINARY, 0644); if (s->fd < 0)...
{ "code": [ " s = qemu_malloc(sizeof(DumpState));", " s->fd = open(filename, O_CREAT | O_WRONLY | O_BINARY, 0644);", " if (s->fd < 0) {", " s->pcap_caplen = len;", " hdr.snaplen = s->pcap_caplen;", " if (write(s->fd, &hdr, sizeof(hdr)) < sizeof(hdr)) {", " close(s-...
static int FUNC_0(VLANState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4) { struct pcap_file_hdr VAR_5; DumpState *s; s = qemu_malloc(sizeof(DumpState)); s->fd = open(VAR_3, O_CREAT | O_WRONLY | O_BINARY, 0644); if (s->fd < 0) { ...
[ "static int FUNC_0(VLANState *VAR_0, const char *VAR_1,\nconst char *VAR_2, const char *VAR_3, int VAR_4)\n{", "struct pcap_file_hdr VAR_5;", "DumpState *s;", "s = qemu_malloc(sizeof(DumpState));", "s->fd = open(VAR_3, O_CREAT | O_WRONLY | O_BINARY, 0644);", "if (s->fd < 0) {", "qemu_error(\"-net dump: ...
[ 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
487
void check_values (eq2_param_t *par) { /* yuck! floating point comparisons... */ if ((par->c == 1.0) && (par->b == 0.0) && (par->g == 1.0)) { par->adjust = NULL; } #if HAVE_MMX && HAVE_6REGS else if (par->g == 1.0 && ff_gCpuCaps.hasMMX) { par->adjust = &affine_1d_MMX; } #endif else { ...
false
FFmpeg
70205f1799252c3363a5bb5ea7ea5df090f2c88f
void check_values (eq2_param_t *par) { if ((par->c == 1.0) && (par->b == 0.0) && (par->g == 1.0)) { par->adjust = NULL; } #if HAVE_MMX && HAVE_6REGS else if (par->g == 1.0 && ff_gCpuCaps.hasMMX) { par->adjust = &affine_1d_MMX; } #endif else { par->adjust = &apply_lut; } }
{ "code": [], "line_no": [] }
void FUNC_0 (eq2_param_t *VAR_0) { if ((VAR_0->c == 1.0) && (VAR_0->b == 0.0) && (VAR_0->g == 1.0)) { VAR_0->adjust = NULL; } #if HAVE_MMX && HAVE_6REGS else if (VAR_0->g == 1.0 && ff_gCpuCaps.hasMMX) { VAR_0->adjust = &affine_1d_MMX; } #endif else { VAR_0->adjust = &apply_lut; ...
[ "void FUNC_0 (eq2_param_t *VAR_0)\n{", "if ((VAR_0->c == 1.0) && (VAR_0->b == 0.0) && (VAR_0->g == 1.0)) {", "VAR_0->adjust = NULL;", "}", "#if HAVE_MMX && HAVE_6REGS\nelse if (VAR_0->g == 1.0 && ff_gCpuCaps.hasMMX) {", "VAR_0->adjust = &affine_1d_MMX;", "}", "#endif\nelse {", "VAR_0->adjust = &appl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ] ]
488
static int ipvideo_decode_block_opcode_0x2(IpvideoContext *s) { unsigned char B; int x, y; /* copy block from 2 frames ago using a motion vector; need 1 more byte */ CHECK_STREAM_PTR(s->stream_ptr, s->stream_end, 1); B = *s->stream_ptr++; if (B < 56) { x = 8 + (B % 7); ...
false
FFmpeg
dcfb0cad687ec89d3c7fe21a014c58f283050283
static int ipvideo_decode_block_opcode_0x2(IpvideoContext *s) { unsigned char B; int x, y; CHECK_STREAM_PTR(s->stream_ptr, s->stream_end, 1); B = *s->stream_ptr++; if (B < 56) { x = 8 + (B % 7); y = B / 7; } else { x = -14 + ((B - 56) % 29); y...
{ "code": [], "line_no": [] }
static int FUNC_0(IpvideoContext *VAR_0) { unsigned char VAR_1; int VAR_2, VAR_3; CHECK_STREAM_PTR(VAR_0->stream_ptr, VAR_0->stream_end, 1); VAR_1 = *VAR_0->stream_ptr++; if (VAR_1 < 56) { VAR_2 = 8 + (VAR_1 % 7); VAR_3 = VAR_1 / 7; } else { VAR_2 = -1...
[ "static int FUNC_0(IpvideoContext *VAR_0)\n{", "unsigned char VAR_1;", "int VAR_2, VAR_3;", "CHECK_STREAM_PTR(VAR_0->stream_ptr, VAR_0->stream_end, 1);", "VAR_1 = *VAR_0->stream_ptr++;", "if (VAR_1 < 56) {", "VAR_2 = 8 + (VAR_1 % 7);", "VAR_3 = VAR_1 / 7;", "} else {", "VAR_2 = -14 + ((VAR_1 - 56)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
489
static int input_get_buffer(AVCodecContext *codec, AVFrame *pic) { AVFilterContext *ctx = codec->opaque; AVFilterBufferRef *ref; int perms = AV_PERM_WRITE; int i, w, h, stride[4]; unsigned edge; if(av_image_check_size(w, h, 0, codec)) return -1; if (codec->codec->capabi...
false
FFmpeg
9f8008a9815ed5ee8846de2bb97c980ddb7b2485
static int input_get_buffer(AVCodecContext *codec, AVFrame *pic) { AVFilterContext *ctx = codec->opaque; AVFilterBufferRef *ref; int perms = AV_PERM_WRITE; int i, w, h, stride[4]; unsigned edge; if(av_image_check_size(w, h, 0, codec)) return -1; if (codec->codec->capabi...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1) { AVFilterContext *ctx = VAR_0->opaque; AVFilterBufferRef *ref; int VAR_2 = AV_PERM_WRITE; int VAR_3, VAR_4, VAR_5, VAR_6[4]; unsigned VAR_7; if(av_image_check_size(VAR_4, VAR_5, 0, VAR_0)) return -1; if (VAR_0->V...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->opaque;", "AVFilterBufferRef *ref;", "int VAR_2 = AV_PERM_WRITE;", "int VAR_3, VAR_4, VAR_5, VAR_6[4];", "unsigned VAR_7;", "if(av_image_check_size(VAR_4, VAR_5, 0, VAR_0))\nreturn -1;", "if (VAR_0->VAR_0->c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
492
static void coroutine_fn wait_for_overlapping_requests(BlockDriverState *bs, int64_t sector_num, int nb_sectors) { BdrvTrackedRequest *req; int64_t cluster_sector_num; int cluster_nb_sectors; bool retry; /* If we touch the same cluster it counts as an overlap. This guarantees * that al...
true
qemu
5f8b6491f20732e0a31e64bbf75b62def579e044
static void coroutine_fn wait_for_overlapping_requests(BlockDriverState *bs, int64_t sector_num, int nb_sectors) { BdrvTrackedRequest *req; int64_t cluster_sector_num; int cluster_nb_sectors; bool retry; /* If we touch the same cluster it counts as an overlap. This guarantees * that al...
{ "code": [], "line_no": [] }
static void VAR_0 wait_for_overlapping_requests(BlockDriverState *bs, int64_t sector_num, int nb_sectors) { BdrvTrackedRequest *req; int64_t cluster_sector_num; int cluster_nb_sectors; bool retry; /* If we touch the same cluster it counts as an overlap. This guarantees * that allocatin...
[ "static void VAR_0 wait_for_overlapping_requests(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors)\n{", "BdrvTrackedRequest *req;", "int64_t cluster_sector_num;", "int cluster_nb_sectors;", "bool retry;", "/* If we touch the same cluster it counts as an overlap. This guarantees\n* that allocatin...
[ 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 ], [ 22 ], [ 23 ], [ 24 ], [ 25 ],...
493
static NetSocketState *net_socket_fd_init_dgram(VLANState *vlan, const char *model, const char *name, int fd, int is_connected) { struct sockaddr_in saddr; int ne...
true
qemu
e5d1fca0f20babbe355957b9ba536fe6187691cc
static NetSocketState *net_socket_fd_init_dgram(VLANState *vlan, const char *model, const char *name, int fd, int is_connected) { struct sockaddr_in saddr; int ne...
{ "code": [ " return NULL;", " close(fd);", " return NULL;", " return NULL;" ], "line_no": [ 45, 57, 45, 79 ] }
static NetSocketState *FUNC_0(VLANState *vlan, const char *model, const char *name, int fd, int is_connected) { struct sockaddr_in VAR_0; int VAR_1; socklen_...
[ "static NetSocketState *FUNC_0(VLANState *vlan,\nconst char *model,\nconst char *name,\nint fd, int is_connected)\n{", "struct sockaddr_in VAR_0;", "int VAR_1;", "socklen_t saddr_len;", "VLANClientState *nc;", "NetSocketState *s;", "if (is_connected) {", "if (getsockname(fd, (struct sockaddr *) &VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [ 61 ], [ 65 ...
494
int64_t bdrv_dirty_iter_next(BdrvDirtyBitmapIter *iter) { return hbitmap_iter_next(&iter->hbi); }
false
qemu
f798184cfdcb7f92a38c5f717d675bd75e1fd3ac
int64_t bdrv_dirty_iter_next(BdrvDirtyBitmapIter *iter) { return hbitmap_iter_next(&iter->hbi); }
{ "code": [], "line_no": [] }
int64_t FUNC_0(BdrvDirtyBitmapIter *iter) { return hbitmap_iter_next(&iter->hbi); }
[ "int64_t FUNC_0(BdrvDirtyBitmapIter *iter)\n{", "return hbitmap_iter_next(&iter->hbi);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
495
static void rtl8139_write_buffer(RTL8139State *s, const void *buf, int size) { if (s->RxBufAddr + size > s->RxBufferSize) { int wrapped = MOD2(s->RxBufAddr + size, s->RxBufferSize); /* write packet data */ if (wrapped && s->RxBufferSize < 65536 && !rtl8139_RxWrap(s)) { ...
false
qemu
ccf1d14a1e37abe1f0da162c00a8941963b47a4c
static void rtl8139_write_buffer(RTL8139State *s, const void *buf, int size) { if (s->RxBufAddr + size > s->RxBufferSize) { int wrapped = MOD2(s->RxBufAddr + size, s->RxBufferSize); if (wrapped && s->RxBufferSize < 65536 && !rtl8139_RxWrap(s)) { DEBUG_PRINT...
{ "code": [], "line_no": [] }
static void FUNC_0(RTL8139State *VAR_0, const void *VAR_1, int VAR_2) { if (VAR_0->RxBufAddr + VAR_2 > VAR_0->RxBufferSize) { int VAR_3 = MOD2(VAR_0->RxBufAddr + VAR_2, VAR_0->RxBufferSize); if (VAR_3 && VAR_0->RxBufferSize < 65536 && !rtl8139_RxWrap(VAR_0)) { ...
[ "static void FUNC_0(RTL8139State *VAR_0, const void *VAR_1, int VAR_2)\n{", "if (VAR_0->RxBufAddr + VAR_2 > VAR_0->RxBufferSize)\n{", "int VAR_3 = MOD2(VAR_0->RxBufAddr + VAR_2, VAR_0->RxBufferSize);", "if (VAR_3 && VAR_0->RxBufferSize < 65536 && !rtl8139_RxWrap(VAR_0))\n{", "DEBUG_PRINT((\">>> RTL8139: rx ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 15, 17 ], [ 19 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 37 ], [ 41, 43 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 61 ], [ 65 ], [ 67 ] ]
496
int ppc_hash32_handle_mmu_fault(CPUPPCState *env, target_ulong address, int rw, int mmu_idx) { struct mmu_ctx_hash32 ctx; int access_type; int ret = 0; if (rw == 2) { /* code access */ rw = 0; access_type = ACCESS_CODE; } else { ...
false
qemu
91cda45b69e45a089f9989979a65db3f710c9925
int ppc_hash32_handle_mmu_fault(CPUPPCState *env, target_ulong address, int rw, int mmu_idx) { struct mmu_ctx_hash32 ctx; int access_type; int ret = 0; if (rw == 2) { rw = 0; access_type = ACCESS_CODE; } else { a...
{ "code": [], "line_no": [] }
int FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, int VAR_2, int VAR_3) { struct mmu_ctx_hash32 VAR_4; int VAR_5; int VAR_6 = 0; if (VAR_2 == 2) { VAR_2 = 0; VAR_5 = ACCESS_CODE; } else { VAR_5 = VAR_0->VAR_5; ...
[ "int FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, int VAR_2,\nint VAR_3)\n{", "struct mmu_ctx_hash32 VAR_4;", "int VAR_5;", "int VAR_6 = 0;", "if (VAR_2 == 2) {", "VAR_2 = 0;", "VAR_5 = ACCESS_CODE;", "} else {", "VAR_5 = VAR_0->VAR_5;", "}", "VAR_6 = ppc_hash32_get_physical_address(VAR_0, &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 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...