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
25,883
static void decode_array_0000(APEContext *ctx, GetBitContext *gb, int32_t *out, APERice *rice, int blockstodecode) { int i; int ksummax, ksummin; rice->ksum = 0; for (i = 0; i < 5; i++) { out[i] = get_rice_ook(&ctx->gb, 10); rice->ksum += out[i]; ...
true
FFmpeg
d5128fce38646d3f64c55feda42084888ba0e87e
static void decode_array_0000(APEContext *ctx, GetBitContext *gb, int32_t *out, APERice *rice, int blockstodecode) { int i; int ksummax, ksummin; rice->ksum = 0; for (i = 0; i < 5; i++) { out[i] = get_rice_ook(&ctx->gb, 10); rice->ksum += out[i]; ...
{ "code": [], "line_no": [] }
static void FUNC_0(APEContext *VAR_0, GetBitContext *VAR_1, int32_t *VAR_2, APERice *VAR_3, int VAR_4) { int VAR_5; int VAR_6, VAR_7; VAR_3->ksum = 0; for (VAR_5 = 0; VAR_5 < 5; VAR_5++) { VAR_2[VAR_5] = get_rice_ook(&VAR_0->VAR_1, 10); VAR_3->ksum...
[ "static void FUNC_0(APEContext *VAR_0, GetBitContext *VAR_1,\nint32_t *VAR_2, APERice *VAR_3, int VAR_4)\n{", "int VAR_5;", "int VAR_6, VAR_7;", "VAR_3->ksum = 0;", "for (VAR_5 = 0; VAR_5 < 5; VAR_5++) {", "VAR_2[VAR_5] = get_rice_ook(&VAR_0->VAR_1, 10);", "VAR_3->ksum += VAR_2[VAR_5];", "}", "VAR_3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
25,884
static void filter_mb_edgeh( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) { int i, d; const int index_a = qp + h->slice_alpha_c0_offset; const int alpha = (alpha_table+52)[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; const int pix_next = stride; ...
false
FFmpeg
aac8b76983e340bc744d3542d676f72efa3b474f
static void filter_mb_edgeh( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) { int i, d; const int index_a = qp + h->slice_alpha_c0_offset; const int alpha = (alpha_table+52)[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; const int pix_next = stride; ...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) { int VAR_5, VAR_6; const int VAR_7 = VAR_4 + VAR_0->slice_alpha_c0_offset; const int VAR_8 = (alpha_table+52)[VAR_7]; const int VAR_9 = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset]; const int...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) {", "int VAR_5, VAR_6;", "const int VAR_7 = VAR_4 + VAR_0->slice_alpha_c0_offset;", "const int VAR_8 = (alpha_table+52)[VAR_7];", "const int VAR_9 = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset];", "cons...
[ 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 ] ]
25,885
int kvm_irqchip_send_msi(KVMState *s, MSIMessage msg) { struct kvm_msi msi; KVMMSIRoute *route; if (s->direct_msi) { msi.address_lo = (uint32_t)msg.address; msi.address_hi = msg.address >> 32; msi.data = le32_to_cpu(msg.data); msi.flags = 0; memset(msi.pad,...
true
qemu
0fbc20740342713f282b118b4a446c4c43df3f4a
int kvm_irqchip_send_msi(KVMState *s, MSIMessage msg) { struct kvm_msi msi; KVMMSIRoute *route; if (s->direct_msi) { msi.address_lo = (uint32_t)msg.address; msi.address_hi = msg.address >> 32; msi.data = le32_to_cpu(msg.data); msi.flags = 0; memset(msi.pad,...
{ "code": [ " route = g_malloc(sizeof(KVMMSIRoute));" ], "line_no": [ 49 ] }
int FUNC_0(KVMState *VAR_0, MSIMessage VAR_1) { struct kvm_msi VAR_2; KVMMSIRoute *route; if (VAR_0->direct_msi) { VAR_2.address_lo = (uint32_t)VAR_1.address; VAR_2.address_hi = VAR_1.address >> 32; VAR_2.data = le32_to_cpu(VAR_1.data); VAR_2.flags = 0; mem...
[ "int FUNC_0(KVMState *VAR_0, MSIMessage VAR_1)\n{", "struct kvm_msi VAR_2;", "KVMMSIRoute *route;", "if (VAR_0->direct_msi) {", "VAR_2.address_lo = (uint32_t)VAR_1.address;", "VAR_2.address_hi = VAR_1.address >> 32;", "VAR_2.data = le32_to_cpu(VAR_1.data);", "VAR_2.flags = 0;", "memset(VAR_2.pad, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51...
25,886
void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert) { sd->readonly_cb = readonly; sd->inserted_cb = insert; qemu_set_irq(readonly, bdrv_is_read_only(sd->bdrv)); qemu_set_irq(insert, bdrv_is_inserted(sd->bdrv)); }
true
qemu
0d2e91c17829729812bf5d22d20dd0f5d2554ec2
void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert) { sd->readonly_cb = readonly; sd->inserted_cb = insert; qemu_set_irq(readonly, bdrv_is_read_only(sd->bdrv)); qemu_set_irq(insert, bdrv_is_inserted(sd->bdrv)); }
{ "code": [ " qemu_set_irq(readonly, bdrv_is_read_only(sd->bdrv));", " qemu_set_irq(insert, bdrv_is_inserted(sd->bdrv));" ], "line_no": [ 9, 11 ] }
void FUNC_0(SDState *VAR_0, qemu_irq VAR_1, qemu_irq VAR_2) { VAR_0->readonly_cb = VAR_1; VAR_0->inserted_cb = VAR_2; qemu_set_irq(VAR_1, bdrv_is_read_only(VAR_0->bdrv)); qemu_set_irq(VAR_2, bdrv_is_inserted(VAR_0->bdrv)); }
[ "void FUNC_0(SDState *VAR_0, qemu_irq VAR_1, qemu_irq VAR_2)\n{", "VAR_0->readonly_cb = VAR_1;", "VAR_0->inserted_cb = VAR_2;", "qemu_set_irq(VAR_1, bdrv_is_read_only(VAR_0->bdrv));", "qemu_set_irq(VAR_2, bdrv_is_inserted(VAR_0->bdrv));", "}" ]
[ 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
25,887
static int mov_seek_stream(AVFormatContext *s, AVStream *st, int64_t timestamp, int flags) { MOVStreamContext *sc = st->priv_data; int sample, time_sample; int i; sample = av_index_search_timestamp(st, timestamp, flags); av_log(s, AV_LOG_TRACE, "stream %d, timestamp %"PRId64", sample %d\n", ...
true
FFmpeg
53ea595eec984e3109310e8bb7ff4b5786d91057
static int mov_seek_stream(AVFormatContext *s, AVStream *st, int64_t timestamp, int flags) { MOVStreamContext *sc = st->priv_data; int sample, time_sample; int i; sample = av_index_search_timestamp(st, timestamp, flags); av_log(s, AV_LOG_TRACE, "stream %d, timestamp %"PRId64", sample %d\n", ...
{ "code": [ " int i;" ], "line_no": [ 9 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int64_t VAR_2, int VAR_3) { MOVStreamContext *sc = VAR_1->priv_data; int VAR_4, VAR_5; int VAR_6; VAR_4 = av_index_search_timestamp(VAR_1, VAR_2, VAR_3); av_log(VAR_0, AV_LOG_TRACE, "stream %d, VAR_2 %"PRId64", VAR_4 %d\n", VAR_1->in...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int64_t VAR_2, int VAR_3)\n{", "MOVStreamContext *sc = VAR_1->priv_data;", "int VAR_4, VAR_5;", "int VAR_6;", "VAR_4 = av_index_search_timestamp(VAR_1, VAR_2, VAR_3);", "av_log(VAR_0, AV_LOG_TRACE, \"stream %d, VAR_2 %\"PRId64\", VAR_4 %d\\n\", V...
[ 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 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
25,888
static int advanced_decode_i_mbs(VC9Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &v->s.gb; int mqdiff, mquant, current_mb = 0, over_flags_mb = 0; for (s->mb_y=0; s->mb_y<s->mb_height; s->mb_y++) { for (s->mb_x=0; s->mb_x<s->mb_width; s->mb_x++) { ...
true
FFmpeg
7cc84d241ba6ef8e27e4d057176a4ad385ad3d59
static int advanced_decode_i_mbs(VC9Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &v->s.gb; int mqdiff, mquant, current_mb = 0, over_flags_mb = 0; for (s->mb_y=0; s->mb_y<s->mb_height; s->mb_y++) { for (s->mb_x=0; s->mb_x<s->mb_width; s->mb_x++) { ...
{ "code": [ " GetBitContext *gb = &v->s.gb;", " GetBitContext *gb = &v->s.gb;", " int mqdiff, mquant, current_mb = 0, over_flags_mb = 0;", " s->ac_pred = v->ac_pred_plane.data[current_mb];", " current_mb++;" ], "line_no": [ 7, 7, 9, 27, 41 ]...
static int FUNC_0(VC9Context *VAR_0) { MpegEncContext *s = &VAR_0->s; GetBitContext *gb = &VAR_0->s.gb; int VAR_1, VAR_2, VAR_3 = 0, VAR_4 = 0; for (s->mb_y=0; s->mb_y<s->mb_height; s->mb_y++) { for (s->mb_x=0; s->mb_x<s->mb_width; s->mb_x++) { if (VAR_0->ac_pr...
[ "static int FUNC_0(VC9Context *VAR_0)\n{", "MpegEncContext *s = &VAR_0->s;", "GetBitContext *gb = &VAR_0->s.gb;", "int VAR_1, VAR_2, VAR_3 = 0, VAR_4 = 0;", "for (s->mb_y=0; s->mb_y<s->mb_height; s->mb_y++)", "{", "for (s->mb_x=0; s->mb_x<s->mb_width; s->mb_x++)", "{", "if (VAR_0->ac_pred_plane.is_r...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
25,890
static int altivec_uyvy_rgb32 (SwsContext *c, unsigned char **in, int *instrides, int srcSliceY, int srcSliceH, unsigned char **oplanes, int *outstrides) { int w = c->srcW; int h = srcSliceH; int i,j; vector unsigned char uyvy; vector signed short Y,U,V; vector sign...
true
FFmpeg
428098165de4c3edfe42c1b7f00627d287015863
static int altivec_uyvy_rgb32 (SwsContext *c, unsigned char **in, int *instrides, int srcSliceY, int srcSliceH, unsigned char **oplanes, int *outstrides) { int w = c->srcW; int h = srcSliceH; int i,j; vector unsigned char uyvy; vector signed short Y,U,V; vector sign...
{ "code": [ " int w = c->srcW;", " int h = srcSliceH;", " int i,j;", " for (j=0;j<w/16;j++) {", " return srcSliceH;", "\t\t\t unsigned char **in, int *instrides,", "\t\t\t int srcSliceY,\tint srcSliceH,", "\t\t\t unsigned char **oplanes, int *outstrides)", ...
static int FUNC_0 (SwsContext *VAR_0, unsigned char **VAR_1, int *VAR_2, int VAR_3, int VAR_4, unsigned char **VAR_5, int *VAR_6) { int VAR_7 = VAR_0->srcW; int VAR_8 = VAR_4; int VAR_9,VAR_10; vector unsigned char uyvy; vector signed short Y,U,V; vector signed sh...
[ "static int FUNC_0 (SwsContext *VAR_0,\nunsigned char **VAR_1, int *VAR_2,\nint VAR_3,\tint VAR_4,\nunsigned char **VAR_5, int *VAR_6)\n{", "int VAR_7 = VAR_0->srcW;", "int VAR_8 = VAR_4;", "int VAR_9,VAR_10;", "vector unsigned char uyvy;", "vector signed short Y,U,V;", "vector signed short R0,G0,B0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 49, 51 ], [...
25,891
static void test_primitives(gconstpointer opaque) { TestArgs *args = (TestArgs *) opaque; const SerializeOps *ops = args->ops; PrimitiveType *pt = args->test_data; PrimitiveType *pt_copy = g_malloc0(sizeof(*pt_copy)); Error *err = NULL; void *serialize_data; char *double1, *double2; ...
true
qemu
089f26bb735fb414b79f5fa3753910d5339d2a1d
static void test_primitives(gconstpointer opaque) { TestArgs *args = (TestArgs *) opaque; const SerializeOps *ops = args->ops; PrimitiveType *pt = args->test_data; PrimitiveType *pt_copy = g_malloc0(sizeof(*pt_copy)); Error *err = NULL; void *serialize_data; char *double1, *double2; ...
{ "code": [ " char *double1, *double2;", " double1 = g_malloc0(calc_float_string_storage(pt->value.number));", " double2 = g_malloc0(calc_float_string_storage(pt_copy->value.number));", " g_assert_cmpstr(double1, ==, double2);", " g_free(double1);", " g_fr...
static void FUNC_0(gconstpointer VAR_0) { TestArgs *args = (TestArgs *) VAR_0; const SerializeOps *VAR_1 = args->VAR_1; PrimitiveType *pt = args->test_data; PrimitiveType *pt_copy = g_malloc0(sizeof(*pt_copy)); Error *err = NULL; void *VAR_2; char *VAR_3, *VAR_4; pt_copy->type...
[ "static void FUNC_0(gconstpointer VAR_0)\n{", "TestArgs *args = (TestArgs *) VAR_0;", "const SerializeOps *VAR_1 = args->VAR_1;", "PrimitiveType *pt = args->test_data;", "PrimitiveType *pt_copy = g_malloc0(sizeof(*pt_copy));", "Error *err = NULL;", "void *VAR_2;", "char *VAR_3, *VAR_4;", "pt_copy->t...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 47 ], [ 49 ], [ 51 ...
25,892
static int qcow_write_snapshots(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; QCowSnapshot *sn; QCowSnapshotHeader h; int i, name_size, id_str_size, snapshots_size; uint64_t data64; uint32_t data32; int64_t offset, snapshots_offset; /* compute the size of the snapshot...
true
qemu
8b3b720620a1137a1b794fc3ed64734236f94e06
static int qcow_write_snapshots(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; QCowSnapshot *sn; QCowSnapshotHeader h; int i, name_size, id_str_size, snapshots_size; uint64_t data64; uint32_t data32; int64_t offset, snapshots_offset; offset = 0; for(i = 0; i...
{ "code": [ " if (bdrv_pwrite(bs->file, offset, &h, sizeof(h)) != sizeof(h))", " if (bdrv_pwrite(bs->file, offset, sn->id_str, id_str_size) != id_str_size)", " if (bdrv_pwrite(bs->file, offset, sn->name, name_size) != name_size)", " if (bdrv_pwrite(bs->file, offsetof(QCowHeader...
static int FUNC_0(BlockDriverState *VAR_0) { BDRVQcowState *s = VAR_0->opaque; QCowSnapshot *sn; QCowSnapshotHeader h; int VAR_1, VAR_2, VAR_3, VAR_4; uint64_t data64; uint32_t data32; int64_t offset, snapshots_offset; offset = 0; for(VAR_1 = 0; VAR_1 < s->nb_snapsh...
[ "static int FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVQcowState *s = VAR_0->opaque;", "QCowSnapshot *sn;", "QCowSnapshotHeader h;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "uint64_t data64;", "uint32_t data32;", "int64_t offset, snapshots_offset;", "offset = 0;", "for(VAR_1 = 0; VAR_1 < s->nb_snapshots...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
25,893
void sigaction_invoke(struct sigaction *action, struct qemu_signalfd_siginfo *info) { siginfo_t si = { 0 }; si.si_signo = info->ssi_signo; si.si_errno = info->ssi_errno; si.si_code = info->ssi_code; /* Convert the minimal set of fields defined by POSIX. * Positiv...
true
qemu
02ffa034fb747f09a4f5658ed64871dcee4aaca2
void sigaction_invoke(struct sigaction *action, struct qemu_signalfd_siginfo *info) { siginfo_t si = { 0 }; si.si_signo = info->ssi_signo; si.si_errno = info->ssi_errno; si.si_code = info->ssi_code; if (info->ssi_code == SI_USER || info->ssi_code == S...
{ "code": [ " siginfo_t si = { 0 };" ], "line_no": [ 7 ] }
void FUNC_0(struct sigaction *VAR_0, struct qemu_signalfd_siginfo *VAR_1) { siginfo_t si = { 0 }; si.si_signo = VAR_1->ssi_signo; si.si_errno = VAR_1->ssi_errno; si.si_code = VAR_1->ssi_code; if (VAR_1->ssi_code == SI_USER || VAR_1->ssi_code == SI_QUE...
[ "void FUNC_0(struct sigaction *VAR_0,\nstruct qemu_signalfd_siginfo *VAR_1)\n{", "siginfo_t si = { 0 };", "si.si_signo = VAR_1->ssi_signo;", "si.si_errno = VAR_1->ssi_errno;", "si.si_code = VAR_1->ssi_code;", "if (VAR_1->ssi_code == SI_USER || VAR_1->ssi_code == SI_QUEUE ||\nVAR_1->ssi_code <= 0) {", "s...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ] ]
25,894
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { PixdescTestContext *priv = inlink->dst->priv; AVFilterLink *outlink = inlink->dst->outputs[0]; AVFilterBufferRef *outpicref; int i; outlink->out_buf = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, ...
true
FFmpeg
38d553322891c8e47182f05199d19888422167dc
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { PixdescTestContext *priv = inlink->dst->priv; AVFilterLink *outlink = inlink->dst->outputs[0]; AVFilterBufferRef *outpicref; int i; outlink->out_buf = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, ...
{ "code": [ " if (priv->pix_desc->flags & PIX_FMT_PAL)" ], "line_no": [ 47 ] }
static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { PixdescTestContext *priv = VAR_0->dst->priv; AVFilterLink *outlink = VAR_0->dst->outputs[0]; AVFilterBufferRef *outpicref; int VAR_2; outlink->out_buf = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, ...
[ "static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "PixdescTestContext *priv = VAR_0->dst->priv;", "AVFilterLink *outlink = VAR_0->dst->outputs[0];", "AVFilterBufferRef *outpicref;", "int VAR_2;", "outlink->out_buf = avfilter_get_video_buffer(outlink, AV_PERM_WRITE,\noutlink->w, ou...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [ 53 ], [...
25,895
void av_noreturn exit_program(int ret) { int i, j; for (i = 0; i < nb_filtergraphs; i++) { avfilter_graph_free(&filtergraphs[i]->graph); for (j = 0; j < filtergraphs[i]->nb_inputs; j++) av_freep(&filtergraphs[i]->inputs[j]); av_freep(&filtergraphs[i]->inputs); ...
true
FFmpeg
fc49f22c3b735db5aaac5f98e40b7124a2be13b8
void av_noreturn exit_program(int ret) { int i, j; for (i = 0; i < nb_filtergraphs; i++) { avfilter_graph_free(&filtergraphs[i]->graph); for (j = 0; j < filtergraphs[i]->nb_inputs; j++) av_freep(&filtergraphs[i]->inputs[j]); av_freep(&filtergraphs[i]->inputs); ...
{ "code": [ " if (output_streams[i]->output_frame) {", " AVFrame *frame = output_streams[i]->output_frame;", " if (frame->extended_data != frame->data)", " av_freep(&frame->extended_data);", " av_freep(&frame);", " av_freep(&audio_buf);...
void VAR_0 exit_program(int ret) { int i, j; for (i = 0; i < nb_filtergraphs; i++) { avfilter_graph_free(&filtergraphs[i]->graph); for (j = 0; j < filtergraphs[i]->nb_inputs; j++) av_freep(&filtergraphs[i]->inputs[j]); av_freep(&filtergraphs[i]->inputs); for...
[ "void VAR_0 exit_program(int ret)\n{", "int i, j;", "for (i = 0; i < nb_filtergraphs; i++) {", "avfilter_graph_free(&filtergraphs[i]->graph);", "for (j = 0; j < filtergraphs[i]->nb_inputs; j++)", "av_freep(&filtergraphs[i]->inputs[j]);", "av_freep(&filtergraphs[i]->inputs);", "for (j = 0; j < filtergr...
[ 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, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], ...
25,896
static void openrisc_pic_cpu_handler(void *opaque, int irq, int level) { OpenRISCCPU *cpu = (OpenRISCCPU *)opaque; CPUState *cs = CPU(cpu); uint32_t irq_bit = 1 << irq; if (irq > 31 || irq < 0) { return; } if (level) { cpu->env.picsr |= irq_bit; } else { ...
true
qemu
7717f248eebdcfe6de400404d0cf65dcb3633308
static void openrisc_pic_cpu_handler(void *opaque, int irq, int level) { OpenRISCCPU *cpu = (OpenRISCCPU *)opaque; CPUState *cs = CPU(cpu); uint32_t irq_bit = 1 << irq; if (irq > 31 || irq < 0) { return; } if (level) { cpu->env.picsr |= irq_bit; } else { ...
{ "code": [ " uint32_t irq_bit = 1 << irq;" ], "line_no": [ 9 ] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { OpenRISCCPU *cpu = (OpenRISCCPU *)VAR_0; CPUState *cs = CPU(cpu); uint32_t irq_bit = 1 << VAR_1; if (VAR_1 > 31 || VAR_1 < 0) { return; } if (VAR_2) { cpu->env.picsr |= irq_bit; } else { cpu->env.p...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "OpenRISCCPU *cpu = (OpenRISCCPU *)VAR_0;", "CPUState *cs = CPU(cpu);", "uint32_t irq_bit = 1 << VAR_1;", "if (VAR_1 > 31 || VAR_1 < 0) {", "return;", "}", "if (VAR_2) {", "cpu->env.picsr |= irq_bit;", "} else {", "cpu->env.picsr &= ~ir...
[ 0, 0, 0, 1, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
25,897
static int mov_read_aclr(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int ret = 0; int length = 0; uint64_t original_size; if (c->fc->nb_streams >= 1) { AVCodecContext *codec = c->fc->streams[c->fc->nb_streams-1]->codec; if (codec->codec_id == AV_CODEC_ID_H264) ret...
false
FFmpeg
229843aa359ae0c9519977d7fa952688db63f559
static int mov_read_aclr(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int ret = 0; int length = 0; uint64_t original_size; if (c->fc->nb_streams >= 1) { AVCodecContext *codec = c->fc->streams[c->fc->nb_streams-1]->codec; if (codec->codec_id == AV_CODEC_ID_H264) ret...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { int VAR_3 = 0; int VAR_4 = 0; uint64_t original_size; if (VAR_0->fc->nb_streams >= 1) { AVCodecContext *codec = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]->codec; if (codec->codec_id == AV_CODEC_ID_H264) ...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "int VAR_3 = 0;", "int VAR_4 = 0;", "uint64_t original_size;", "if (VAR_0->fc->nb_streams >= 1) {", "AVCodecContext *codec = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]->codec;", "if (codec->codec_id == AV_CODEC_ID_H264)\nretu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [...
25,898
static av_always_inline void filter_level_for_mb(VP8Context *s, VP8Macroblock *mb, VP8FilterStrength *f ) { int interior_limit, filter_level; if (s->segmentation.enabled) { filter_level = s->segmentation.filter_level[s->segment]; if (!s->segmentation.absolute_vals) filter_lev...
false
FFmpeg
e9266a2be04ea505285e32e411ef6120e9cbeba4
static av_always_inline void filter_level_for_mb(VP8Context *s, VP8Macroblock *mb, VP8FilterStrength *f ) { int interior_limit, filter_level; if (s->segmentation.enabled) { filter_level = s->segmentation.filter_level[s->segment]; if (!s->segmentation.absolute_vals) filter_lev...
{ "code": [], "line_no": [] }
static av_always_inline void FUNC_0(VP8Context *s, VP8Macroblock *mb, VP8FilterStrength *f ) { int VAR_0, VAR_1; if (s->segmentation.enabled) { VAR_1 = s->segmentation.VAR_1[s->segment]; if (!s->segmentation.absolute_vals) VAR_1 += s->filter.level; } else VAR_1 ...
[ "static av_always_inline void FUNC_0(VP8Context *s, VP8Macroblock *mb, VP8FilterStrength *f )\n{", "int VAR_0, VAR_1;", "if (s->segmentation.enabled) {", "VAR_1 = s->segmentation.VAR_1[s->segment];", "if (!s->segmentation.absolute_vals)\nVAR_1 += s->filter.level;", "} else", "VAR_1 = s->filter.level;", ...
[ 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 ], [ 29 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
25,899
void rgb15tobgr16(const uint8_t *src, uint8_t *dst, long src_size) { long i; long num_pixels = src_size >> 1; for(i=0; i<num_pixels; i++) { unsigned b,g,r; register uint16_t rgb; rgb = src[2*i]; r = rgb&0x1F; g = (rgb&0x3E0)>>5; b = (rgb&0x7C00)>>10; dst[2*i] = (b&0x...
true
FFmpeg
6e42e6c4b410dbef8b593c2d796a5dad95f89ee4
void rgb15tobgr16(const uint8_t *src, uint8_t *dst, long src_size) { long i; long num_pixels = src_size >> 1; for(i=0; i<num_pixels; i++) { unsigned b,g,r; register uint16_t rgb; rgb = src[2*i]; r = rgb&0x1F; g = (rgb&0x3E0)>>5; b = (rgb&0x7C00)>>10; dst[2*i] = (b&0x...
{ "code": [ "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tfor(i=0; i<num_pixels; i++)", "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tfor(i=0; i<num_pixels; i++)", "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tfor(i=0; ...
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2) { long VAR_3; long VAR_4 = VAR_2 >> 1; for(VAR_3=0; VAR_3<VAR_4; VAR_3++) { unsigned VAR_5,VAR_6,VAR_7; register uint16_t VAR_8; VAR_8 = VAR_0[2*VAR_3]; VAR_7 = VAR_8&0x1F; VAR_6 = (VAR_8&0x3E0)>>5; VAR_5 = (VAR...
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2)\n{", "long VAR_3;", "long VAR_4 = VAR_2 >> 1;", "for(VAR_3=0; VAR_3<VAR_4; VAR_3++)", "{", "unsigned VAR_5,VAR_6,VAR_7;", "register uint16_t VAR_8;", "VAR_8 = VAR_0[2*VAR_3];", "VAR_7 = VAR_8&0x1F;", "VAR_6 = (VAR_8&0x3E0)>>5;", "VAR...
[ 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
25,900
static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc) { int addr_reg, data_reg, arg0, arg1, arg2, mem_index, s_bits; #if defined(CONFIG_SOFTMMU) uint32_t *label1_ptr, *label2_ptr; data_reg = *args++; addr_reg = *args++; mem_index = *args; s_bits = op...
true
qemu
90cbed4656108fec86d157ced39192e0774a6615
static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc) { int addr_reg, data_reg, arg0, arg1, arg2, mem_index, s_bits; #if defined(CONFIG_SOFTMMU) uint32_t *label1_ptr, *label2_ptr; data_reg = *args++; addr_reg = *args++; mem_index = *args; s_bits = op...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; #if defined(CONFIG_SOFTMMU) uint32_t *label1_ptr, *label2_ptr; VAR_4 = *VAR_1++; VAR_3 = *VAR_1++; VAR_8 = *VAR_1; VAR_9 = VAR_2 & 3; VAR_5...
[ "static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1,\nint VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "#if defined(CONFIG_SOFTMMU)\nuint32_t *label1_ptr, *label2_ptr;", "VAR_4 = *VAR_1++;", "VAR_3 = *VAR_1++;", "VAR_8 = *VAR_1;", "VAR_9 = VAR_2 & 3;", "VAR_5 = TCG_REG_O0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3 ], [ 4 ], [ 5, 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14, 16, 17 ], [ 18, 19 ], [ 21 ], [ 23, 24 ], [ 26 ], [ 28, 29 ], [ ...
25,901
static int mxf_read_index_table_segment(MXFIndexTableSegment *segment, ByteIOContext *pb, int tag) { switch(tag) { case 0x3F05: dprintf(NULL, "EditUnitByteCount %d\n", get_be32(pb)); break; case 0x3F06: dprintf(NULL, "IndexSID %d\n", get_be32(pb)); break; case 0x3F07: dprintf(NULL, "BodySID %d\n", ...
true
FFmpeg
39bb30f6640fe1faf4bbc779a79786028febc95d
static int mxf_read_index_table_segment(MXFIndexTableSegment *segment, ByteIOContext *pb, int tag) { switch(tag) { case 0x3F05: dprintf(NULL, "EditUnitByteCount %d\n", get_be32(pb)); break; case 0x3F06: dprintf(NULL, "IndexSID %d\n", get_be32(pb)); break; case 0x3F07: dprintf(NULL, "BodySID %d\n", ...
{ "code": [ "static int mxf_read_index_table_segment(MXFIndexTableSegment *segment, ByteIOContext *pb, int tag)" ], "line_no": [ 1 ] }
static int FUNC_0(MXFIndexTableSegment *VAR_0, ByteIOContext *VAR_1, int VAR_2) { switch(VAR_2) { case 0x3F05: dprintf(NULL, "EditUnitByteCount %d\n", get_be32(VAR_1)); break; case 0x3F06: dprintf(NULL, "IndexSID %d\n", get_be32(VAR_1)); break; case 0x3F07: dprintf(NULL, "BodySID %d\n", get_be32(VA...
[ "static int FUNC_0(MXFIndexTableSegment *VAR_0, ByteIOContext *VAR_1, int VAR_2)\n{", "switch(VAR_2) {", "case 0x3F05: dprintf(NULL, \"EditUnitByteCount %d\\n\", get_be32(VAR_1)); break;", "case 0x3F06: dprintf(NULL, \"IndexSID %d\\n\", get_be32(VAR_1)); break;", "case 0x3F07: dprintf(NULL, \"BodySID %d\\n\...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
25,902
static const char *vnc_auth_name(VncDisplay *vd) { switch (vd->auth) { case VNC_AUTH_INVALID: return "invalid"; case VNC_AUTH_NONE: return "none"; case VNC_AUTH_VNC: return "vnc"; case VNC_AUTH_RA2: return "ra2"; case VNC_AUTH_RA2NE: return "ra2...
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
static const char *vnc_auth_name(VncDisplay *vd) { switch (vd->auth) { case VNC_AUTH_INVALID: return "invalid"; case VNC_AUTH_NONE: return "none"; case VNC_AUTH_VNC: return "vnc"; case VNC_AUTH_RA2: return "ra2"; case VNC_AUTH_RA2NE: return "ra2...
{ "code": [ "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#endif", "#else", "#endif", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#else", " return \"vencrypt\";", "#endif", "#ifdef CONFIG_VNC_TLS", "#endif", "#ifdef CO...
static const char *FUNC_0(VncDisplay *VAR_0) { switch (VAR_0->auth) { case VNC_AUTH_INVALID: return "invalid"; case VNC_AUTH_NONE: return "none"; case VNC_AUTH_VNC: return "vnc"; case VNC_AUTH_RA2: return "ra2"; case VNC_AUTH_RA2NE: return "ra2n...
[ "static const char *FUNC_0(VncDisplay *VAR_0) {", "switch (VAR_0->auth) {", "case VNC_AUTH_INVALID:\nreturn \"invalid\";", "case VNC_AUTH_NONE:\nreturn \"none\";", "case VNC_AUTH_VNC:\nreturn \"vnc\";", "case VNC_AUTH_RA2:\nreturn \"ra2\";", "case VNC_AUTH_RA2NE:\nreturn \"ra2ne\";", "case VNC_AUTH_TI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5, 7 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 51, 53 ...
25,903
static void cpu_x86_register(X86CPU *cpu, const char *name, Error **errp) { CPUX86State *env = &cpu->env; x86_def_t def1, *def = &def1; memset(def, 0, sizeof(*def)); if (cpu_x86_find_by_name(cpu, def, name) < 0) { error_setg(errp, "Unable to find CPU definition: %s", name); re...
true
qemu
787aaf5703a702094f395db6795e74230282cd62
static void cpu_x86_register(X86CPU *cpu, const char *name, Error **errp) { CPUX86State *env = &cpu->env; x86_def_t def1, *def = &def1; memset(def, 0, sizeof(*def)); if (cpu_x86_find_by_name(cpu, def, name) < 0) { error_setg(errp, "Unable to find CPU definition: %s", name); re...
{ "code": [], "line_no": [] }
static void FUNC_0(X86CPU *VAR_0, const char *VAR_1, Error **VAR_2) { CPUX86State *env = &VAR_0->env; x86_def_t def1, *def = &def1; memset(def, 0, sizeof(*def)); if (cpu_x86_find_by_name(VAR_0, def, VAR_1) < 0) { error_setg(VAR_2, "Unable to find CPU definition: %s", VAR_1); r...
[ "static void FUNC_0(X86CPU *VAR_0, const char *VAR_1, Error **VAR_2)\n{", "CPUX86State *env = &VAR_0->env;", "x86_def_t def1, *def = &def1;", "memset(def, 0, sizeof(*def));", "if (cpu_x86_find_by_name(VAR_0, def, VAR_1) < 0) {", "error_setg(VAR_2, \"Unable to find CPU definition: %s\", VAR_1);", "return...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
25,904
int bdrv_pwrite(BlockDriverState *bs, int64_t offset, const void *buf1, int count1) { BlockDriver *drv = bs->drv; if (!drv) return -ENOMEDIUM; if (!drv->bdrv_pwrite) return bdrv_pwrite_em(bs, offset, buf1, count1); return drv->bdrv_pwrite(bs, offset, buf1, count1); }
true
qemu
71d0770c4cec9f1dc04f4dadcbf7fd6c335030a9
int bdrv_pwrite(BlockDriverState *bs, int64_t offset, const void *buf1, int count1) { BlockDriver *drv = bs->drv; if (!drv) return -ENOMEDIUM; if (!drv->bdrv_pwrite) return bdrv_pwrite_em(bs, offset, buf1, count1); return drv->bdrv_pwrite(bs, offset, buf1, count1); }
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, const void *VAR_2, int VAR_3) { BlockDriver *drv = VAR_0->drv; if (!drv) return -ENOMEDIUM; if (!drv->FUNC_0) return bdrv_pwrite_em(VAR_0, VAR_1, VAR_2, VAR_3); return drv->FUNC_0(VAR_0, VAR_1, VAR_2, VAR_3); }
[ "int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nconst void *VAR_2, int VAR_3)\n{", "BlockDriver *drv = VAR_0->drv;", "if (!drv)\nreturn -ENOMEDIUM;", "if (!drv->FUNC_0)\nreturn bdrv_pwrite_em(VAR_0, VAR_1, VAR_2, VAR_3);", "return drv->FUNC_0(VAR_0, VAR_1, VAR_2, VAR_3);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5, 6 ], [ 7, 8 ], [ 9 ], [ 10 ] ]
25,905
static void yuv2nv12X_c(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **a...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
static void yuv2nv12X_c(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **a...
{ "code": [], "line_no": [] }
static void FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1, const int16_t **VAR_2, int VAR_3, const int16_t *VAR_4, const int16_t **VAR_5, const int16_t **VAR_6, int VAR_7, const int16_t **VAR_8, uint8_t *VAR_9, uint8_t ...
[ "static void FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,\nconst int16_t **VAR_2, int VAR_3,\nconst int16_t *VAR_4, const int16_t **VAR_5,\nconst int16_t **VAR_6, int VAR_7,\nconst int16_t **VAR_8, uint8_t *VAR_9, uint8_t *VAR_10,\nuint8_t *VAR_11, uint8_t *VAR_12,\nint VAR_13, int VAR_14)\n{", "enum PixelForm...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
25,906
static BlockAIOCB *blk_aio_prwv(BlockBackend *blk, int64_t offset, int bytes, QEMUIOVector *qiov, CoroutineEntry co_entry, BdrvRequestFlags flags, BlockCompletionFunc *cb, void *opaque) { BlkAioEmAIOCB *acb; Co...
true
qemu
e92f0e1910f0655a0edd8d87c5a7262d36517a89
static BlockAIOCB *blk_aio_prwv(BlockBackend *blk, int64_t offset, int bytes, QEMUIOVector *qiov, CoroutineEntry co_entry, BdrvRequestFlags flags, BlockCompletionFunc *cb, void *opaque) { BlkAioEmAIOCB *acb; Co...
{ "code": [ " qemu_coroutine_enter(co);", " qemu_coroutine_enter(co);", " qemu_coroutine_enter(co);" ], "line_no": [ 43, 43, 43 ] }
static BlockAIOCB *FUNC_0(BlockBackend *blk, int64_t offset, int bytes, QEMUIOVector *qiov, CoroutineEntry co_entry, BdrvRequestFlags flags, BlockCompletionFunc *cb, void *opaque) { BlkAioEmAIOCB *acb; Coroutin...
[ "static BlockAIOCB *FUNC_0(BlockBackend *blk, int64_t offset, int bytes,\nQEMUIOVector *qiov, CoroutineEntry co_entry,\nBdrvRequestFlags flags,\nBlockCompletionFunc *cb, void *opaque)\n{", "BlkAioEmAIOCB *acb;", "Coroutine *co;", "bdrv_inc_in_flight(blk_bs(blk));", "acb = blk_aio_get(&blk_aio_em_aiocb_info,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 55 ], [...
25,907
static int rv10_decode_packet(AVCodecContext *avctx, const uint8_t *buf, int buf_size, int buf_size2) { MpegEncContext *s = avctx->priv_data; int mb_count, mb_pos, left, start_mb_x; init_get_bits(&s->gb, buf, buf_size*8); if(s->codec_id ==CODEC_ID_RV10) mb_c...
true
FFmpeg
9243ec4a508c81a621e941bb7e012e2d45d93659
static int rv10_decode_packet(AVCodecContext *avctx, const uint8_t *buf, int buf_size, int buf_size2) { MpegEncContext *s = avctx->priv_data; int mb_count, mb_pos, left, start_mb_x; init_get_bits(&s->gb, buf, buf_size*8); if(s->codec_id ==CODEC_ID_RV10) mb_c...
{ "code": [ " int mb_count, mb_pos, left, start_mb_x;", " init_get_bits(&s->gb, buf, buf_size*8);", " if (ret != SLICE_ERROR && s->gb.size_in_bits < get_bits_count(&s->gb) && 8*buf_size2 >= get_bits_count(&s->gb)){", " av_log(avctx, AV_LOG_DEBUG, \"update size from %d to %d\\n\...
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3) { MpegEncContext *s = VAR_0->priv_data; int VAR_4, VAR_5, VAR_6, VAR_7; init_get_bits(&s->gb, VAR_1, VAR_2*8); if(s->codec_id ==CODEC_ID_RV10) VAR_4 = rv10_decode_picture_he...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "init_get_bits(&s->gb, VAR_1, VAR_2*8);", "if(s->codec_id ==CODEC_ID_RV10)\nVAR_4 = rv10_decode_picture_header(s);", "else\nVAR_4 = rv20_d...
[ 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, 0, 0, 0, 0, 0, 1...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
25,908
static void coroutine_fn add_aio_request(BDRVSheepdogState *s, AIOReq *aio_req, struct iovec *iov, int niov, bool create, enum AIOCBState aiocb_type) { int nr_copies = s->inode.nr_copies; SheepdogObjReq hdr; unsigned int wlen = 0; int ret; ...
true
qemu
b544c1aba8681c2fe5d6715fbd37cf6caf1bc7bb
static void coroutine_fn add_aio_request(BDRVSheepdogState *s, AIOReq *aio_req, struct iovec *iov, int niov, bool create, enum AIOCBState aiocb_type) { int nr_copies = s->inode.nr_copies; SheepdogObjReq hdr; unsigned int wlen = 0; int ret; ...
{ "code": [ " struct iovec *iov, int niov, bool create,", " struct iovec *iov, int niov, bool create,", " enum AIOCBState aiocb_type)" ], "line_no": [ 3, 3, 5 ] }
static void VAR_0 add_aio_request(BDRVSheepdogState *s, AIOReq *aio_req, struct iovec *iov, int niov, bool create, enum AIOCBState aiocb_type) { int nr_copies = s->inode.nr_copies; SheepdogObjReq hdr; unsigned int wlen = 0; int ret; uint6...
[ "static void VAR_0 add_aio_request(BDRVSheepdogState *s, AIOReq *aio_req,\nstruct iovec *iov, int niov, bool create,\nenum AIOCBState aiocb_type)\n{", "int nr_copies = s->inode.nr_copies;", "SheepdogObjReq hdr;", "unsigned int wlen = 0;", "int ret;", "uint64_t oid = aio_req->oid;", "unsigned int datalen...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49, 51 ...
25,909
static void init_proc_750gx (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_7xx(env); /* XXX : not implemented (XXX: different from 750fx) */ spr_register(env, SPR_L2CR, "L2CR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, NULL, 0x00000000);...
true
qemu
9633fcc6a02f23e3ef00aa5fe3fe9c41f57c3456
static void init_proc_750gx (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_7xx(env); spr_register(env, SPR_L2CR, "L2CR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, NULL, 0x00000000); gen_tbl(env); gen_spr_thrm(env);...
{ "code": [ " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " ...
static void FUNC_0 (CPUPPCState *VAR_0) { gen_spr_ne_601(VAR_0); gen_spr_7xx(VAR_0); spr_register(VAR_0, SPR_L2CR, "L2CR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, NULL, 0x00000000); gen_tbl(VAR_0); gen_spr_thrm(VAR_...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "gen_spr_ne_601(VAR_0);", "gen_spr_7xx(VAR_0);", "spr_register(VAR_0, SPR_L2CR, \"L2CR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, NULL,\n0x00000000);", "gen_tbl(VAR_0);", "gen_spr_thrm(VAR_0);", "spr_register(VAR_0, SPR_750_THRM4, \"THRM4\",\nSPR_NO...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15, 17 ], [ 21 ], [ 25 ], [ 29, 31, 33, 35 ], [ 41, 43, 45, 47 ], [ 51, 53, 55, 57 ], [ 61, 63, 65, 67 ], [ 71 ], [ 75 ], ...
25,910
static int cloop_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVCloopState *s = bs->opaque; uint32_t offsets_size, max_compressed_block_size = 1, i; int ret; bs->read_only = 1; /* read header */ ret = bdrv_pread(bs->file, 128, &s->bloc...
true
qemu
f56b9bc3ae20fc93815b34aa022be919941406ce
static int cloop_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVCloopState *s = bs->opaque; uint32_t offsets_size, max_compressed_block_size = 1, i; int ret; bs->read_only = 1; ret = bdrv_pread(bs->file, 128, &s->block_size, 4); ...
{ "code": [ " if (i > 0) {", " uint32_t size = s->offsets[i] - s->offsets[i - 1];", " if (size > max_compressed_block_size) {", " max_compressed_block_size = size;" ], "line_no": [ 139, 141, 143, 145 ] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVCloopState *s = VAR_0->opaque; uint32_t offsets_size, max_compressed_block_size = 1, i; int VAR_4; VAR_0->read_only = 1; VAR_4 = bdrv_pread(VAR_0->file, 128, &s->block_size...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVCloopState *s = VAR_0->opaque;", "uint32_t offsets_size, max_compressed_block_size = 1, i;", "int VAR_4;", "VAR_0->read_only = 1;", "VAR_4 = bdrv_pread(VAR_0->file, 128, &s->block_size, 4);", "if (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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 59 ...
25,911
static void spapr_tce_table_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->vmsd = &vmstate_spapr_tce_table; dc->init = spapr_tce_table_realize; dc->reset = spapr_tce_reset; QLIST_INIT(&spapr_tce_tables); /* hcall-tce */ spapr_register_hype...
true
qemu
a0fcac9c21dcbf481eeb5573a738f55023f5a953
static void spapr_tce_table_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->vmsd = &vmstate_spapr_tce_table; dc->init = spapr_tce_table_realize; dc->reset = spapr_tce_reset; QLIST_INIT(&spapr_tce_tables); spapr_register_hypercall(H_PUT_TCE...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->vmsd = &vmstate_spapr_tce_table; dc->init = spapr_tce_table_realize; dc->reset = spapr_tce_reset; QLIST_INIT(&spapr_tce_tables); spapr_register_hypercall(H_PUT_TCE, h_put_tce); }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->vmsd = &vmstate_spapr_tce_table;", "dc->init = spapr_tce_table_realize;", "dc->reset = spapr_tce_reset;", "QLIST_INIT(&spapr_tce_tables);", "spapr_register_hypercall(H_PUT_TCE, h_put_tce);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 24 ] ]
25,912
static void gmc1_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture) { uint8_t *ptr; int src_x, src_y, motion_x, motion_y; ptrdiff_t offset, linesize, uvlinesize; int emu = 0; motion_x = s->...
true
FFmpeg
6179dc8aa7e5fc5358b9614306f93f1adadf22a4
static void gmc1_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture) { uint8_t *ptr; int src_x, src_y, motion_x, motion_y; ptrdiff_t offset, linesize, uvlinesize; int emu = 0; motion_x = s->...
{ "code": [ " motion_x <<= (3 - s->sprite_warping_accuracy);", " motion_y <<= (3 - s->sprite_warping_accuracy);", " motion_x <<= (3 - s->sprite_warping_accuracy);", " motion_y <<= (3 - s->sprite_warping_accuracy);" ], "line_no": [ 27, 29, 27, 29 ] }
static void FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, uint8_t **VAR_4) { uint8_t *ptr; int VAR_5, VAR_6, VAR_7, VAR_8; ptrdiff_t offset, linesize, uvlinesize; int VAR_9 = 0; VAR_7 = VAR_0->sprite_offset[0...
[ "static void FUNC_0(MpegEncContext *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3,\nuint8_t **VAR_4)\n{", "uint8_t *ptr;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "ptrdiff_t offset, linesize, uvlinesize;", "int VAR_9 = 0;", "VAR_7 = VAR_0->sprite_offset[0][0];", "VAR_8 = VAR_0->sprite_offset[0][...
[ 0, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 51 ...
25,914
static void gxf_write_padding(ByteIOContext *pb, offset_t to_pad) { while (to_pad--) { put_byte(pb, 0); } }
false
FFmpeg
0e15b7b0dde44130069739bfb98c29e74c72be86
static void gxf_write_padding(ByteIOContext *pb, offset_t to_pad) { while (to_pad--) { put_byte(pb, 0); } }
{ "code": [], "line_no": [] }
static void FUNC_0(ByteIOContext *VAR_0, offset_t VAR_1) { while (VAR_1--) { put_byte(VAR_0, 0); } }
[ "static void FUNC_0(ByteIOContext *VAR_0, offset_t VAR_1)\n{", "while (VAR_1--) {", "put_byte(VAR_0, 0);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
25,915
static int aea_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); /* Parse the amount of channels and skip to pos 2048(0x800) */ avio_skip(s->pb, 264); st->codec->channels = avio_r8(s->pb); avio_skip(s->pb, 1783); ...
false
FFmpeg
3941df546276b190cc9362fd093e6721e8e52f50
static int aea_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); avio_skip(s->pb, 264); st->codec->channels = avio_r8(s->pb); avio_skip(s->pb, 1783); st->codec->codec_type = AVMEDIA_TYPE_AUDIO; st-...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { AVStream *st = avformat_new_stream(VAR_0, NULL); if (!st) return AVERROR(ENOMEM); avio_skip(VAR_0->pb, 264); st->codec->channels = avio_r8(VAR_0->pb); avio_skip(VAR_0->pb, 1783); st->codec->codec_type = AVMEDIA_TYPE_AUDI...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVStream *st = avformat_new_stream(VAR_0, NULL);", "if (!st)\nreturn AVERROR(ENOMEM);", "avio_skip(VAR_0->pb, 264);", "st->codec->channels = avio_r8(VAR_0->pb);", "avio_skip(VAR_0->pb, 1783);", "st->codec->codec_type = AVMEDIA_TYPE_AUDIO;", "st->cod...
[ 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ] ]
25,916
static void spr_write_ibatl (void *opaque, int sprn) { DisasContext *ctx = opaque; gen_op_store_ibatl((sprn - SPR_IBAT0L) / 2); RET_STOP(ctx); }
false
qemu
e1833e1f96456fd8fc17463246fe0b2050e68efb
static void spr_write_ibatl (void *opaque, int sprn) { DisasContext *ctx = opaque; gen_op_store_ibatl((sprn - SPR_IBAT0L) / 2); RET_STOP(ctx); }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, int VAR_1) { DisasContext *ctx = VAR_0; gen_op_store_ibatl((VAR_1 - SPR_IBAT0L) / 2); RET_STOP(ctx); }
[ "static void FUNC_0 (void *VAR_0, int VAR_1)\n{", "DisasContext *ctx = VAR_0;", "gen_op_store_ibatl((VAR_1 - SPR_IBAT0L) / 2);", "RET_STOP(ctx);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
25,917
static void gen_eob_inhibit_irq(DisasContext *s, bool inhibit) { gen_update_cc_op(s); /* If several instructions disable interrupts, only the first does it. */ if (inhibit && !(s->flags & HF_INHIBIT_IRQ_MASK)) { gen_set_hflag(s, HF_INHIBIT_IRQ_MASK); } else { gen_reset_hflag(s,...
false
qemu
c52ab08aee6f7d4717fc6b517174043126bd302f
static void gen_eob_inhibit_irq(DisasContext *s, bool inhibit) { gen_update_cc_op(s); if (inhibit && !(s->flags & HF_INHIBIT_IRQ_MASK)) { gen_set_hflag(s, HF_INHIBIT_IRQ_MASK); } else { gen_reset_hflag(s, HF_INHIBIT_IRQ_MASK); } if (s->tb->flags & HF_RF_MASK) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, bool VAR_1) { gen_update_cc_op(VAR_0); if (VAR_1 && !(VAR_0->flags & HF_INHIBIT_IRQ_MASK)) { gen_set_hflag(VAR_0, HF_INHIBIT_IRQ_MASK); } else { gen_reset_hflag(VAR_0, HF_INHIBIT_IRQ_MASK); } if (VAR_0->tb->flags & HF_RF_MASK)...
[ "static void FUNC_0(DisasContext *VAR_0, bool VAR_1)\n{", "gen_update_cc_op(VAR_0);", "if (VAR_1 && !(VAR_0->flags & HF_INHIBIT_IRQ_MASK)) {", "gen_set_hflag(VAR_0, HF_INHIBIT_IRQ_MASK);", "} else {", "gen_reset_hflag(VAR_0, HF_INHIBIT_IRQ_MASK);", "}", "if (VAR_0->tb->flags & HF_RF_MASK) {", "gen_h...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
25,918
void tb_invalidate_page_range(target_ulong start, target_ulong end) { /* XXX: cannot enable it yet because it yields to MMU exception where NIP != read address on PowerPC */ #if 0 target_ulong phys_addr; phys_addr = get_phys_addr_code(env, start); tb_invalidate_phys_page_range(phys_addr, p...
false
qemu
dcfd14b3741983c466ad92fa2ae91eeafce3e5d5
void tb_invalidate_page_range(target_ulong start, target_ulong end) { #if 0 target_ulong phys_addr; phys_addr = get_phys_addr_code(env, start); tb_invalidate_phys_page_range(phys_addr, phys_addr + end - start, 0); #endif }
{ "code": [], "line_no": [] }
void FUNC_0(target_ulong VAR_0, target_ulong VAR_1) { #if 0 target_ulong phys_addr; phys_addr = get_phys_addr_code(env, VAR_0); tb_invalidate_phys_page_range(phys_addr, phys_addr + VAR_1 - VAR_0, 0); #endif }
[ "void FUNC_0(target_ulong VAR_0, target_ulong VAR_1)\n{", "#if 0\ntarget_ulong phys_addr;", "phys_addr = get_phys_addr_code(env, VAR_0);", "tb_invalidate_phys_page_range(phys_addr, phys_addr + VAR_1 - VAR_0, 0);", "#endif\n}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17, 19 ] ]
25,919
static bool kvmppc_is_pr(KVMState *ks) { /* Assume KVM-PR if the GET_PVINFO capability is available */ return kvm_check_extension(ks, KVM_CAP_PPC_GET_PVINFO) != 0; }
false
qemu
70a0c19e83aa4c71c879d51e426e89e4b3d4e014
static bool kvmppc_is_pr(KVMState *ks) { return kvm_check_extension(ks, KVM_CAP_PPC_GET_PVINFO) != 0; }
{ "code": [], "line_no": [] }
static bool FUNC_0(KVMState *ks) { return kvm_check_extension(ks, KVM_CAP_PPC_GET_PVINFO) != 0; }
[ "static bool FUNC_0(KVMState *ks)\n{", "return kvm_check_extension(ks, KVM_CAP_PPC_GET_PVINFO) != 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ] ]
25,920
void aio_set_fd_handler(AioContext *ctx, int fd, IOHandler *io_read, IOHandler *io_write, AioFlushHandler *io_flush, void *opaque) { AioHandler *node; node = find_aio_handler(ctx, fd...
false
qemu
cd9ba1ebcf0439457f22b75b38533f6634f23c5f
void aio_set_fd_handler(AioContext *ctx, int fd, IOHandler *io_read, IOHandler *io_write, AioFlushHandler *io_flush, void *opaque) { AioHandler *node; node = find_aio_handler(ctx, fd...
{ "code": [], "line_no": [] }
void FUNC_0(AioContext *VAR_0, int VAR_1, IOHandler *VAR_2, IOHandler *VAR_3, AioFlushHandler *VAR_4, void *VAR_5) { AioHandler *node; node = find_aio_handler(VAR_0, VAR_1); ...
[ "void FUNC_0(AioContext *VAR_0,\nint VAR_1,\nIOHandler *VAR_2,\nIOHandler *VAR_3,\nAioFlushHandler *VAR_4,\nvoid *VAR_5)\n{", "AioHandler *node;", "node = find_aio_handler(VAR_0, VAR_1);", "if (!VAR_2 && !VAR_3) {", "if (node) {", "if (VAR_0->walking_handlers)\nnode->deleted = 1;", "else {", "QLIST_RE...
[ 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 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ...
25,922
static uint64_t gic_do_cpu_read(void *opaque, target_phys_addr_t addr, unsigned size) { GICState **backref = (GICState **)opaque; GICState *s = *backref; int id = (backref - s->backref); return gic_cpu_read(s, id, addr); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t gic_do_cpu_read(void *opaque, target_phys_addr_t addr, unsigned size) { GICState **backref = (GICState **)opaque; GICState *s = *backref; int id = (backref - s->backref); return gic_cpu_read(s, id, addr); }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { GICState **backref = (GICState **)opaque; GICState *s = *backref; int VAR_0 = (backref - s->backref); return gic_cpu_read(s, VAR_0, addr); }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "GICState **backref = (GICState **)opaque;", "GICState *s = *backref;", "int VAR_0 = (backref - s->backref);", "return gic_cpu_read(s, VAR_0, addr);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
25,923
void bdrv_io_unplug(BlockDriverState *bs) { BlockDriver *drv = bs->drv; if (drv && drv->bdrv_io_unplug) { drv->bdrv_io_unplug(bs); } else if (bs->file) { bdrv_io_unplug(bs->file->bs); } }
false
qemu
6b98bd649520d07df4d1b7a0a54ac73bf178519c
void bdrv_io_unplug(BlockDriverState *bs) { BlockDriver *drv = bs->drv; if (drv && drv->bdrv_io_unplug) { drv->bdrv_io_unplug(bs); } else if (bs->file) { bdrv_io_unplug(bs->file->bs); } }
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0) { BlockDriver *drv = VAR_0->drv; if (drv && drv->FUNC_0) { drv->FUNC_0(VAR_0); } else if (VAR_0->file) { FUNC_0(VAR_0->file->VAR_0); } }
[ "void FUNC_0(BlockDriverState *VAR_0)\n{", "BlockDriver *drv = VAR_0->drv;", "if (drv && drv->FUNC_0) {", "drv->FUNC_0(VAR_0);", "} else if (VAR_0->file) {", "FUNC_0(VAR_0->file->VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
25,924
static void ehci_advance_async_state(EHCIState *ehci) { const int async = 1; switch(ehci_get_state(ehci, async)) { case EST_INACTIVE: if (!ehci_async_enabled(ehci)) { break; } ehci_set_state(ehci, async, EST_ACTIVE); // No break, fall through to ACTIVE ...
false
qemu
9bc3a3a216e2689bfcdd36c3e079333bbdbf3ba0
static void ehci_advance_async_state(EHCIState *ehci) { const int async = 1; switch(ehci_get_state(ehci, async)) { case EST_INACTIVE: if (!ehci_async_enabled(ehci)) { break; } ehci_set_state(ehci, async, EST_ACTIVE); case EST_ACTIVE: if...
{ "code": [], "line_no": [] }
static void FUNC_0(EHCIState *VAR_0) { const int VAR_1 = 1; switch(ehci_get_state(VAR_0, VAR_1)) { case EST_INACTIVE: if (!ehci_async_enabled(VAR_0)) { break; } ehci_set_state(VAR_0, VAR_1, EST_ACTIVE); case EST_ACTIVE: if (!ehci_async_...
[ "static void FUNC_0(EHCIState *VAR_0)\n{", "const int VAR_1 = 1;", "switch(ehci_get_state(VAR_0, VAR_1)) {", "case EST_INACTIVE:\nif (!ehci_async_enabled(VAR_0)) {", "break;", "}", "ehci_set_state(VAR_0, VAR_1, EST_ACTIVE);", "case EST_ACTIVE:\nif (!ehci_async_enabled(VAR_0)) {", "ehci_queues_rip_al...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [ 59...
25,926
static int rpl_read_header(AVFormatContext *s, AVFormatParameters *ap) { AVIOContext *pb = s->pb; RPLContext *rpl = s->priv_data; AVStream *vst = NULL, *ast = NULL; int total_audio_size; int error = 0; uint32_t i; int32_t audio_format, chunk_catalog_offset, number_of_chunks; ...
false
FFmpeg
43abef9fde0cf87153cc9031cad61f75b02cfa01
static int rpl_read_header(AVFormatContext *s, AVFormatParameters *ap) { AVIOContext *pb = s->pb; RPLContext *rpl = s->priv_data; AVStream *vst = NULL, *ast = NULL; int total_audio_size; int error = 0; uint32_t i; int32_t audio_format, chunk_catalog_offset, number_of_chunks; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { AVIOContext *pb = VAR_0->pb; RPLContext *rpl = VAR_0->priv_data; AVStream *vst = NULL, *ast = NULL; int VAR_2; int VAR_3 = 0; uint32_t i; int32_t audio_format, chunk_catalog_offset, number_of_chunks; AVRa...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "AVIOContext *pb = VAR_0->pb;", "RPLContext *rpl = VAR_0->priv_data;", "AVStream *vst = NULL, *ast = NULL;", "int VAR_2;", "int VAR_3 = 0;", "uint32_t i;", "int32_t audio_format, chunk_catalog_offset, number_of_chunks;", "AVR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 61 ], [ 63, 65 ], [...
25,927
static QDict *monitor_parse_arguments(Monitor *mon, const char **endp, const mon_cmd_t *cmd) { const char *typestr; char *key; int c; const char *p = *endp; char buf[1024]; QDict *qdict = qdict_new(); /* ...
false
qemu
f17fd4fdf0df3d2f3444399d04c38d22b9a3e1b7
static QDict *monitor_parse_arguments(Monitor *mon, const char **endp, const mon_cmd_t *cmd) { const char *typestr; char *key; int c; const char *p = *endp; char buf[1024]; QDict *qdict = qdict_new(); ...
{ "code": [], "line_no": [] }
static QDict *FUNC_0(Monitor *mon, const char **endp, const mon_cmd_t *cmd) { const char *VAR_0; char *VAR_1; int VAR_2; const char *VAR_3 = *endp; char VAR_4[1024]; QDict *qdict = qdict_new(); VAR_...
[ "static QDict *FUNC_0(Monitor *mon,\nconst char **endp,\nconst mon_cmd_t *cmd)\n{", "const char *VAR_0;", "char *VAR_1;", "int VAR_2;", "const char *VAR_3 = *endp;", "char VAR_4[1024];", "QDict *qdict = qdict_new();", "VAR_0 = cmd->args_type;", "for(;;) {", "VAR_0 = key_get_info(VAR_0, &VAR_1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45, 47 ], [ 49 ], [ 53,...
25,928
static void visitor_input_teardown(TestInputVisitorData *data, const void *unused) { qobject_decref(data->obj); data->obj = NULL; if (data->qiv) { visit_free(data->qiv); data->qiv = NULL; } }
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void visitor_input_teardown(TestInputVisitorData *data, const void *unused) { qobject_decref(data->obj); data->obj = NULL; if (data->qiv) { visit_free(data->qiv); data->qiv = NULL; } }
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { qobject_decref(VAR_0->obj); VAR_0->obj = NULL; if (VAR_0->qiv) { visit_free(VAR_0->qiv); VAR_0->qiv = NULL; } }
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "qobject_decref(VAR_0->obj);", "VAR_0->obj = NULL;", "if (VAR_0->qiv) {", "visit_free(VAR_0->qiv);", "VAR_0->qiv = NULL;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
25,929
MigrationState *migrate_get_current(void) { static bool once; static MigrationState current_migration = { .state = MIGRATION_STATUS_NONE, .xbzrle_cache_size = DEFAULT_MIGRATE_CACHE_SIZE, .mbps = -1, .parameters = { .compress_level = DEFAULT_MIGRATE_COMPRESS_LE...
false
qemu
e5cb7e7677010f529d3f0f9dcdb385dea9446f8d
MigrationState *migrate_get_current(void) { static bool once; static MigrationState current_migration = { .state = MIGRATION_STATUS_NONE, .xbzrle_cache_size = DEFAULT_MIGRATE_CACHE_SIZE, .mbps = -1, .parameters = { .compress_level = DEFAULT_MIGRATE_COMPRESS_LE...
{ "code": [], "line_no": [] }
MigrationState *FUNC_0(void) { static bool VAR_0; static MigrationState VAR_1 = { .state = MIGRATION_STATUS_NONE, .xbzrle_cache_size = DEFAULT_MIGRATE_CACHE_SIZE, .mbps = -1, .parameters = { .compress_level = DEFAULT_MIGRATE_COMPRESS_LEVEL, .compr...
[ "MigrationState *FUNC_0(void)\n{", "static bool VAR_0;", "static MigrationState VAR_1 = {", ".state = MIGRATION_STATUS_NONE,\n.xbzrle_cache_size = DEFAULT_MIGRATE_CACHE_SIZE,\n.mbps = -1,\n.parameters = {", ".compress_level = DEFAULT_MIGRATE_COMPRESS_LEVEL,\n.compress_threads = DEFAULT_MIGRATE_COMPRESS_THRE...
[ 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 ], [ 47 ], [ 49 ], [ 51 ] ]
25,930
static int coroutine_fn qed_aio_read_data(void *opaque, int ret, uint64_t offset, size_t len) { QEDAIOCB *acb = opaque; BDRVQEDState *s = acb_to_s(acb); BlockDriverState *bs = acb->bs; /* Adjust offset into cluster */ offset += qed_offset_into_clust...
false
qemu
1f01e50b8330c24714ddca5841fdbb703076b121
static int coroutine_fn qed_aio_read_data(void *opaque, int ret, uint64_t offset, size_t len) { QEDAIOCB *acb = opaque; BDRVQEDState *s = acb_to_s(acb); BlockDriverState *bs = acb->bs; offset += qed_offset_into_cluster(s, acb->cur_pos); trac...
{ "code": [], "line_no": [] }
static int VAR_0 qed_aio_read_data(void *opaque, int ret, uint64_t offset, size_t len) { QEDAIOCB *acb = opaque; BDRVQEDState *s = acb_to_s(acb); BlockDriverState *bs = acb->bs; offset += qed_offset_into_cluster(s, acb->cur_pos); trace_qed_a...
[ "static int VAR_0 qed_aio_read_data(void *opaque, int ret,\nuint64_t offset, size_t len)\n{", "QEDAIOCB *acb = opaque;", "BDRVQEDState *s = acb_to_s(acb);", "BlockDriverState *bs = acb->bs;", "offset += qed_offset_into_cluster(s, acb->cur_pos);", "trace_qed_aio_read_data(s, acb, ret, offset, len);", "qe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 21 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [...
25,931
static void portio_list_add_1(PortioList *piolist, const MemoryRegionPortio *pio_init, unsigned count, unsigned start, unsigned off_low, unsigned off_high) { MemoryRegionPortio *pio; MemoryRegionOps *ops; Memory...
false
qemu
b40acf99bef69fa8ab0f9092ff162fde945eec12
static void portio_list_add_1(PortioList *piolist, const MemoryRegionPortio *pio_init, unsigned count, unsigned start, unsigned off_low, unsigned off_high) { MemoryRegionPortio *pio; MemoryRegionOps *ops; Memory...
{ "code": [], "line_no": [] }
static void FUNC_0(PortioList *VAR_0, const MemoryRegionPortio *VAR_1, unsigned VAR_2, unsigned VAR_3, unsigned VAR_4, unsigned VAR_5) { MemoryRegionPortio *pio; MemoryRegionOps *ops; MemoryRegion *region, *alia...
[ "static void FUNC_0(PortioList *VAR_0,\nconst MemoryRegionPortio *VAR_1,\nunsigned VAR_2, unsigned VAR_3,\nunsigned VAR_4, unsigned VAR_5)\n{", "MemoryRegionPortio *pio;", "MemoryRegionOps *ops;", "MemoryRegion *region, *alias;", "unsigned VAR_6;", "pio = g_new(MemoryRegionPortio, VAR_2 + 1);", "memcpy(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 59, 61 ], [ 63, 65 ], [...
25,933
static int bochs_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { int ret; while (nb_sectors > 0) { int64_t block_offset = seek_to_sector(bs, sector_num); if (block_offset >= 0) { ret = bdrv_pread(bs->file, block_offset, buf,...
false
qemu
e1b42f456fad6e797eaf795ed2e400c4e47d5eb4
static int bochs_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { int ret; while (nb_sectors > 0) { int64_t block_offset = seek_to_sector(bs, sector_num); if (block_offset >= 0) { ret = bdrv_pread(bs->file, block_offset, buf,...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2, int VAR_3) { int VAR_4; while (VAR_3 > 0) { int64_t block_offset = seek_to_sector(VAR_0, VAR_1); if (block_offset >= 0) { VAR_4 = bdrv_pread(VAR_0->file, block_offset, VAR_2, 512); ...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "int VAR_4;", "while (VAR_3 > 0) {", "int64_t block_offset = seek_to_sector(VAR_0, VAR_1);", "if (block_offset >= 0) {", "VAR_4 = bdrv_pread(VAR_0->file, block_offset, VAR_2, 512);", "if (VAR_4 != 512) {", "ret...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
25,935
static void visit_nested_struct_list(Visitor *v, void **native, Error **errp) { visit_type_UserDefNestedList(v, (UserDefNestedList **)native, NULL, errp); }
false
qemu
b6fcf32d9b851a83dedcb609091236b97cc4a985
static void visit_nested_struct_list(Visitor *v, void **native, Error **errp) { visit_type_UserDefNestedList(v, (UserDefNestedList **)native, NULL, errp); }
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, void **VAR_1, Error **VAR_2) { visit_type_UserDefNestedList(VAR_0, (UserDefNestedList **)VAR_1, NULL, VAR_2); }
[ "static void FUNC_0(Visitor *VAR_0, void **VAR_1, Error **VAR_2)\n{", "visit_type_UserDefNestedList(VAR_0, (UserDefNestedList **)VAR_1, NULL, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
25,938
int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl, H264Context *h0) { unsigned int first_mb_in_slice; unsigned int pps_id; int ret; unsigned int slice_type, tmp, i, j; int default_ref_list_done = 0; int last_pic_structure, last_pic_droppable; int needs_reinit = 0; ...
false
FFmpeg
e6c90ce94f1b07f50cea2babf7471af455cca0ff
int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl, H264Context *h0) { unsigned int first_mb_in_slice; unsigned int pps_id; int ret; unsigned int slice_type, tmp, i, j; int default_ref_list_done = 0; int last_pic_structure, last_pic_droppable; int needs_reinit = 0; ...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, H264Context *VAR_2) { unsigned int VAR_3; unsigned int VAR_4; int VAR_5; unsigned int VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10 = 0; int VAR_11, VAR_12; int VAR_13 = 0; int VAR_14, VAR_15; VAR_0->qpel_put = VAR_0->h264q...
[ "int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, H264Context *VAR_2)\n{", "unsigned int VAR_3;", "unsigned int VAR_4;", "int VAR_5;", "unsigned int VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10 = 0;", "int VAR_11, VAR_12;", "int VAR_13 = 0;", "int VAR_14, VAR_15;", "VAR_0->qpel_put = VAR_0->h2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49,...
25,939
Object *qio_task_get_source(QIOTask *task) { object_ref(task->source); return task->source; }
true
qemu
937470bb5470825e781ae50e92ff973a6b54d80f
Object *qio_task_get_source(QIOTask *task) { object_ref(task->source); return task->source; }
{ "code": [ " object_ref(task->source);" ], "line_no": [ 5 ] }
Object *FUNC_0(QIOTask *task) { object_ref(task->source); return task->source; }
[ "Object *FUNC_0(QIOTask *task)\n{", "object_ref(task->source);", "return task->source;", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
25,940
static void gen_ldx(DisasContext *dc, uint32_t code, uint32_t flags) { I_TYPE(instr, code); TCGv addr = tcg_temp_new(); TCGv data; /* * WARNING: Loads into R_ZERO are ignored, but we must generate the * memory access itself to emulate the CPU precisely. Load * ...
true
qemu
4ae4b609ee2d5bcc9df6c03c21dc1fed527aada1
static void gen_ldx(DisasContext *dc, uint32_t code, uint32_t flags) { I_TYPE(instr, code); TCGv addr = tcg_temp_new(); TCGv data; if (likely(instr.b != R_ZERO)) { data = dc->cpu_R[instr.b]; } else { data = tcg_temp_new(); } tcg_gen_addi_tl(add...
{ "code": [ " tcg_gen_addi_tl(addr, load_gpr(dc, instr.a), instr.imm16s);", " tcg_gen_addi_tl(addr, load_gpr(dc, instr.a), instr.imm16s);" ], "line_no": [ 39, 39 ] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { I_TYPE(instr, VAR_1); TCGv addr = tcg_temp_new(); TCGv data; if (likely(instr.b != R_ZERO)) { data = VAR_0->cpu_R[instr.b]; } else { data = tcg_temp_new(); } tcg_gen_addi...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "I_TYPE(instr, VAR_1);", "TCGv addr = tcg_temp_new();", "TCGv data;", "if (likely(instr.b != R_ZERO)) {", "data = VAR_0->cpu_R[instr.b];", "} else {", "data = tcg_temp_new();", "}", "tcg_gen_addi_tl(addr, load_gpr(VAR_0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ] ]
25,941
static int64_t mpegts_get_dts(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { MpegTSContext *ts = s->priv_data; int64_t pos; int pos47 = ts->pos47_full % ts->raw_packet_size; pos = ((*ppos + ts->raw_packet_size - 1 - pos47) / ts->raw_packet_...
false
FFmpeg
a66099192159d02b1a1c1820ddb24c7cea271a44
static int64_t mpegts_get_dts(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { MpegTSContext *ts = s->priv_data; int64_t pos; int pos47 = ts->pos47_full % ts->raw_packet_size; pos = ((*ppos + ts->raw_packet_size - 1 - pos47) / ts->raw_packet_...
{ "code": [], "line_no": [] }
static int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { MpegTSContext *ts = s->priv_data; int64_t pos; int VAR_0 = ts->pos47_full % ts->raw_packet_size; pos = ((*ppos + ts->raw_packet_size - 1 - VAR_0) / ts->raw_packet_size) * ...
[ "static int64_t FUNC_0(AVFormatContext *s, int stream_index,\nint64_t *ppos, int64_t pos_limit)\n{", "MpegTSContext *ts = s->priv_data;", "int64_t pos;", "int VAR_0 = ts->pos47_full % ts->raw_packet_size;", "pos = ((*ppos + ts->raw_packet_size - 1 - VAR_0) / ts->raw_packet_size) * ts->raw_packet_size + 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, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
25,942
static int handle_alloc(BlockDriverState *bs, uint64_t guest_offset, uint64_t *host_offset, uint64_t *bytes, QCowL2Meta **m) { BDRVQcowState *s = bs->opaque; int l2_index; uint64_t *l2_table; uint64_t entry; unsigned int nb_clusters; int ret; uint64_t alloc_cluster_offset; trace_qcow...
true
qemu
ff52aab2df5c5e10f231481961b88d25a3021724
static int handle_alloc(BlockDriverState *bs, uint64_t guest_offset, uint64_t *host_offset, uint64_t *bytes, QCowL2Meta **m) { BDRVQcowState *s = bs->opaque; int l2_index; uint64_t *l2_table; uint64_t entry; unsigned int nb_clusters; int ret; uint64_t alloc_cluster_offset; trace_qcow...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t *VAR_2, uint64_t *VAR_3, QCowL2Meta **VAR_4) { BDRVQcowState *s = VAR_0->opaque; int VAR_5; uint64_t *l2_table; uint64_t entry; unsigned int VAR_6; int VAR_7; uint64_t alloc_cluster_offset; trace_qcow2_handle_alloc(q...
[ "static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint64_t *VAR_2, uint64_t *VAR_3, QCowL2Meta **VAR_4)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_5;", "uint64_t *l2_table;", "uint64_t entry;", "unsigned int VAR_6;", "int VAR_7;", "uint64_t alloc_cluster_offset;", "trace_qcow2_han...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11, 12 ], [ 13 ], [ 18, 19 ], [ 20 ], [ 21 ], [ 23 ], [ 24 ], [ 25 ], [ 26 ], [ 28 ], [ ...
25,943
static int rv10_decode_frame(AVCodecContext *avctx, void *data, int *data_size, UINT8 *buf, int buf_size) { MpegEncContext *s = avctx->priv_data; int i, mb_count, mb_pos, left; DCTELEM block[6][64]; AVPicture *pict = data; #ifdef DEBU...
true
FFmpeg
68bd11f5de271a1a674f196a9e8ca2e7fe40ab6e
static int rv10_decode_frame(AVCodecContext *avctx, void *data, int *data_size, UINT8 *buf, int buf_size) { MpegEncContext *s = avctx->priv_data; int i, mb_count, mb_pos, left; DCTELEM block[6][64]; AVPicture *pict = data; #ifdef DEBU...
{ "code": [ "#ifdef DEBUG", " printf(\"HEADER ERROR\\n\");", "#endif", "#ifdef DEBUG", " printf(\"POS ERROR %d %d\\n\", s->mb_x, s->mb_y);", "#endif", "#ifdef DEBUG", " printf(\"COUNT ERROR\\n\");", "#endif", "#ifdef DEBUG", " printf(\"ERROR\...
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, UINT8 *VAR_3, int VAR_4) { MpegEncContext *s = VAR_0->priv_data; int VAR_5, VAR_6, VAR_7, VAR_8; DCTELEM block[6][64]; AVPicture *pict = VAR_1; #ifdef DEBUG printf...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nUINT8 *VAR_3, int VAR_4)\n{", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "DCTELEM block[6][64];", "AVPicture *pict = VAR_1;", "#ifdef DEBUG\nprintf(\"*****frame %d size=%d\\n\", VAR_0->frame_number, VAR_4...
[ 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51, 53 ], [ 55 ], [ 59,...
25,945
static int http_open(URLContext *h, const char *uri, int flags) { HTTPContext *s = h->priv_data; h->is_streamed = 1; s->filesize = -1; av_strlcpy(s->location, uri, sizeof(s->location)); if (s->headers) { int len = strlen(s->headers); if (len < 2 || strcmp("\r\n", s->hea...
false
FFmpeg
dd1e6b2a139a9eea61aefe24fc3295499e70d04b
static int http_open(URLContext *h, const char *uri, int flags) { HTTPContext *s = h->priv_data; h->is_streamed = 1; s->filesize = -1; av_strlcpy(s->location, uri, sizeof(s->location)); if (s->headers) { int len = strlen(s->headers); if (len < 2 || strcmp("\r\n", s->hea...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2) { HTTPContext *s = VAR_0->priv_data; VAR_0->is_streamed = 1; s->filesize = -1; av_strlcpy(s->location, VAR_1, sizeof(s->location)); if (s->headers) { int VAR_3 = strlen(s->headers); if (VAR_3 < 2 || strc...
[ "static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)\n{", "HTTPContext *s = VAR_0->priv_data;", "VAR_0->is_streamed = 1;", "s->filesize = -1;", "av_strlcpy(s->location, VAR_1, sizeof(s->location));", "if (s->headers) {", "int VAR_3 = strlen(s->headers);", "if (VAR_3 < 2 || strcmp(\"\\r\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ] ]
25,946
static inline void softusb_read_pmem(MilkymistSoftUsbState *s, uint32_t offset, uint8_t *buf, uint32_t len) { if (offset + len >= s->pmem_size) { error_report("milkymist_softusb: read pmem out of bounds " "at offset 0x%x, len %d", offset, len); return; } me...
true
qemu
c31bc98e3bcf52fe1cd4b9b7a70869330eae80ea
static inline void softusb_read_pmem(MilkymistSoftUsbState *s, uint32_t offset, uint8_t *buf, uint32_t len) { if (offset + len >= s->pmem_size) { error_report("milkymist_softusb: read pmem out of bounds " "at offset 0x%x, len %d", offset, len); return; } me...
{ "code": [], "line_no": [] }
static inline void FUNC_0(MilkymistSoftUsbState *VAR_0, uint32_t VAR_1, uint8_t *VAR_2, uint32_t VAR_3) { if (VAR_1 + VAR_3 >= VAR_0->pmem_size) { error_report("milkymist_softusb: read pmem out of bounds " "at VAR_1 0x%x, VAR_3 %d", VAR_1, VAR_3); return; } ...
[ "static inline void FUNC_0(MilkymistSoftUsbState *VAR_0,\nuint32_t VAR_1, uint8_t *VAR_2, uint32_t VAR_3)\n{", "if (VAR_1 + VAR_3 >= VAR_0->pmem_size) {", "error_report(\"milkymist_softusb: read pmem out of bounds \"\n\"at VAR_1 0x%x, VAR_3 %d\", VAR_1, VAR_3);", "return;", "}", "memcpy(VAR_2, VAR_0->pmem...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 14 ], [ 16 ], [ 20 ], [ 22 ] ]
25,949
int attribute_align_arg sws_scale(struct SwsContext *c, const uint8_t * const srcSlice[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstSt...
true
FFmpeg
3ee8eefbf2623e1e337df7d962412b0703336431
int attribute_align_arg sws_scale(struct SwsContext *c, const uint8_t * const srcSlice[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstSt...
{ "code": [ " c->pal_yuv[i]= y + (u<<8) + (v<<16) + (a<<24);", " c->pal_rgb[i]= r + (g<<8) + (b<<16) + (a<<24);", " c->pal_rgb[i]= a + (r<<8) + (g<<16) + (b<<24);", " c->pal_rgb[i]= a + (b<<8) + (g<<16) + (r<<24);", " c->pal_r...
int VAR_0 sws_scale(struct SwsContext *c, const uint8_t * const srcSlice[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]) { ...
[ "int VAR_0 sws_scale(struct SwsContext *c,\nconst uint8_t * const srcSlice[],\nconst int srcStride[], int srcSliceY,\nint srcSliceH, uint8_t *const dst[],\nconst int dstStride[])\n{", "int i, ret;", "const uint8_t *src2[4] = { srcSlice[0], srcSlice[1], srcSlice[2], srcSlice[3] };", "uint8_t *dst2[4] = { dst[0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 1, 0, 1, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [...
25,950
static av_cold int MPA_encode_init(AVCodecContext *avctx) { MpegAudioContext *s = avctx->priv_data; int freq = avctx->sample_rate; int bitrate = avctx->bit_rate; int channels = avctx->channels; int i, v, table; float a; if (channels <= 0 || channels > 2){ av_log(avctx, AV_...
true
FFmpeg
9d66aa2c8fa60fe4a570021175ce66316baeb746
static av_cold int MPA_encode_init(AVCodecContext *avctx) { MpegAudioContext *s = avctx->priv_data; int freq = avctx->sample_rate; int bitrate = avctx->bit_rate; int channels = avctx->channels; int i, v, table; float a; if (channels <= 0 || channels > 2){ av_log(avctx, AV_...
{ "code": [ " for(i=0;i<15;i++) {" ], "line_no": [ 71 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { MpegAudioContext *s = avctx->priv_data; int VAR_0 = avctx->sample_rate; int VAR_1 = avctx->bit_rate; int VAR_2 = avctx->VAR_2; int VAR_3, VAR_7, VAR_5; float VAR_6; if (VAR_2 <= 0 || VAR_2 > 2){ av_log(avctx, AV_LOG_ERROR,...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "MpegAudioContext *s = avctx->priv_data;", "int VAR_0 = avctx->sample_rate;", "int VAR_1 = avctx->bit_rate;", "int VAR_2 = avctx->VAR_2;", "int VAR_3, VAR_7, VAR_5;", "float VAR_6;", "if (VAR_2 <= 0 || VAR_2 > 2){", "av_log(avctx, AV_LOG_ERROR, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
25,952
static av_cold int vc1_decode_init(AVCodecContext *avctx) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; int ret; /* save the container output size for WMImage */ v->output_width = avctx->width; v->output_height = avctx->height; if (!avctx->extradata_si...
true
FFmpeg
a66dcfeedc68c080965cf78e1e0694967acef5af
static av_cold int vc1_decode_init(AVCodecContext *avctx) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; int ret; v->output_width = avctx->width; v->output_height = avctx->height; if (!avctx->extradata_size || !avctx->extradata) return -1; ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; int VAR_0; v->output_width = avctx->width; v->output_height = avctx->height; if (!avctx->extradata_size || !avctx->extradata) return -1; if (!(a...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VC1Context *v = avctx->priv_data;", "MpegEncContext *s = &v->s;", "GetBitContext gb;", "int VAR_0;", "v->output_width = avctx->width;", "v->output_height = avctx->height;", "if (!avctx->extradata_size || !avctx->extradata)\nreturn -1;", "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, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 8 ], [ 9 ], [ 10, 11 ], [ 12, 13 ], [ 14, 15 ], [ 16 ], [ 17, 18 ], [ 20, 21 ], [ 22, 23 ], [ 27 ], [ 28 ], [ 29 ]...
25,953
int ff_h264_fill_default_ref_list(H264Context *h) { int i, len; if (h->slice_type_nos == AV_PICTURE_TYPE_B) { Picture *sorted[32]; int cur_poc, list; int lens[2]; if (FIELD_PICTURE(h)) cur_poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM...
true
FFmpeg
4d388c0cd05dd4de545e8ea333ab4de7d67ad12d
int ff_h264_fill_default_ref_list(H264Context *h) { int i, len; if (h->slice_type_nos == AV_PICTURE_TYPE_B) { Picture *sorted[32]; int cur_poc, list; int lens[2]; if (FIELD_PICTURE(h)) cur_poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM...
{ "code": [ " len = build_def_list(h->default_ref_list[list], sorted, len, 0, h->picture_structure);", " len += build_def_list(h->default_ref_list[list] + len, h->long_ref, 16, 1, h->picture_structure);", " assert(len <= 32);", " len = build_def_li...
int FUNC_0(H264Context *VAR_0) { int VAR_1, VAR_2; if (VAR_0->slice_type_nos == AV_PICTURE_TYPE_B) { Picture *sorted[32]; int VAR_3, VAR_4; int VAR_5[2]; if (FIELD_PICTURE(VAR_0)) VAR_3 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_structure == PICT_BOTTO...
[ "int FUNC_0(H264Context *VAR_0)\n{", "int VAR_1, VAR_2;", "if (VAR_0->slice_type_nos == AV_PICTURE_TYPE_B) {", "Picture *sorted[32];", "int VAR_3, VAR_4;", "int VAR_5[2];", "if (FIELD_PICTURE(VAR_0))\nVAR_3 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_structure == PICT_BOTTOM_FIELD];", "else\nVAR_3 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], ...
25,954
static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) { AVFilterContext *ctx = link->dst; CropContext *crop = ctx->priv; AVFilterBufferRef *ref2; int i; picref->video->w = crop->w; picref->video->h = crop->h; ref2 = avfilter_ref_buffer(picref, ~0); crop->v...
true
FFmpeg
b4356e4118b6cbe3a6ed81d16369acc5ff40ad05
static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) { AVFilterContext *ctx = link->dst; CropContext *crop = ctx->priv; AVFilterBufferRef *ref2; int i; picref->video->w = crop->w; picref->video->h = crop->h; ref2 = avfilter_ref_buffer(picref, ~0); crop->v...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; CropContext *crop = ctx->priv; AVFilterBufferRef *ref2; int VAR_2; VAR_1->video->w = crop->w; VAR_1->video->h = crop->h; ref2 = avfilter_ref_buffer(VAR_1, ~0); crop->var_...
[ "static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "CropContext *crop = ctx->priv;", "AVFilterBufferRef *ref2;", "int VAR_2;", "VAR_1->video->w = crop->w;", "VAR_1->video->h = crop->h;", "ref2 = avfilter_ref_buffer(VAR_1, ~0);", "crop->var_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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
25,955
static void gen_tlbsx_440(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } t0 = tcg_temp_new(); gen_addr_reg_index(ctx,...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_tlbsx_440(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } t0 = tcg_temp_new(); gen_addr_reg_index(ctx,...
{ "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 TCGv t0; if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } t0 = tcg_temp_new(); gen_addr_reg_index(VAR...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nTCGv t0;", "if (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "t0 = tcg_temp_new();", "gen_addr_reg_index(VAR_0,...
[ 0, 1, 1, 1, 1, 0, 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,...
25,956
static void blockdev_backup_prepare(BlkActionState *common, Error **errp) { BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, common, common); BlockdevBackup *backup; BlockDriverState *bs, *target; Error *local_err = NULL; assert(common->action->type == TRANSACTION_ACTION_KIND_BLOC...
true
qemu
111049a4ecefc9cf1ac75c773f4c5c165f27fe63
static void blockdev_backup_prepare(BlkActionState *common, Error **errp) { BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, common, common); BlockdevBackup *backup; BlockDriverState *bs, *target; Error *local_err = NULL; assert(common->action->type == TRANSACTION_ACTION_KIND_BLOC...
{ "code": [ " state->job = state->bs->job;", " do_blockdev_backup(backup, common->block_job_txn, &local_err);", " state->job = state->bs->job;" ], "line_no": [ 75, 63, 75 ] }
static void FUNC_0(BlkActionState *VAR_0, Error **VAR_1) { BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, VAR_0, VAR_0); BlockdevBackup *backup; BlockDriverState *bs, *target; Error *local_err = NULL; assert(VAR_0->action->type == TRANSACTION_ACTION_KIND_BLOCKDEV_BACKUP); b...
[ "static void FUNC_0(BlkActionState *VAR_0, Error **VAR_1)\n{", "BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, VAR_0, VAR_0);", "BlockdevBackup *backup;", "BlockDriverState *bs, *target;", "Error *local_err = NULL;", "assert(VAR_0->action->type == TRANSACTION_ACTION_KIND_BLOCKDEV_BACKUP);", ...
[ 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, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
25,957
static int guest_get_network_stats(const char *name, GuestNetworkInterfaceStat *stats) { DWORD if_index = 0; MIB_IFROW a_mid_ifrow; memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow)); if_index = get_interface_index(name); a_mid_ifrow.dwIndex = if_index; if (NO_ERROR == G...
true
qemu
df83eabd5245828cbca32060aa191d8b03bc5d50
static int guest_get_network_stats(const char *name, GuestNetworkInterfaceStat *stats) { DWORD if_index = 0; MIB_IFROW a_mid_ifrow; memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow)); if_index = get_interface_index(name); a_mid_ifrow.dwIndex = if_index; if (NO_ERROR == G...
{ "code": [ " GuestNetworkInterfaceStat *stats)", " DWORD if_index = 0;", " MIB_IFROW a_mid_ifrow;", " memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow));", " if_index = get_interface_index(name);", " a_mid_ifrow.dwIndex = if_index;", " if (NO_ERROR == Get...
static int FUNC_0(const char *VAR_0, GuestNetworkInterfaceStat *VAR_1) { DWORD if_index = 0; MIB_IFROW a_mid_ifrow; memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow)); if_index = get_interface_index(VAR_0); a_mid_ifrow.dwIndex = if_index; if (NO_ERROR == GetIfEntry(&a_mi...
[ "static int FUNC_0(const char *VAR_0,\nGuestNetworkInterfaceStat *VAR_1)\n{", "DWORD if_index = 0;", "MIB_IFROW a_mid_ifrow;", "memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow));", "if_index = get_interface_index(VAR_0);", "a_mid_ifrow.dwIndex = if_index;", "if (NO_ERROR == GetIfEntry(&a_mid_ifrow)) {", "V...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
25,959
void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info) { CPUARMState *env = &cpu->env; int kernel_size; int initrd_size; int n; int is_linux = 0; uint64_t elf_entry; target_phys_addr_t entry; int big_endian; QemuOpts *machine_opts; /* Load the kernel. */ ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info) { CPUARMState *env = &cpu->env; int kernel_size; int initrd_size; int n; int is_linux = 0; uint64_t elf_entry; target_phys_addr_t entry; int big_endian; QemuOpts *machine_opts; if (!info->kernel_file...
{ "code": [], "line_no": [] }
void FUNC_0(ARMCPU *VAR_0, struct arm_boot_info *VAR_1) { CPUARMState *env = &VAR_0->env; int VAR_2; int VAR_3; int VAR_4; int VAR_5 = 0; uint64_t elf_entry; target_phys_addr_t entry; int VAR_6; QemuOpts *machine_opts; if (!VAR_1->kernel_filename) { fp...
[ "void FUNC_0(ARMCPU *VAR_0, struct arm_boot_info *VAR_1)\n{", "CPUARMState *env = &VAR_0->env;", "int VAR_2;", "int VAR_3;", "int VAR_4;", "int VAR_5 = 0;", "uint64_t elf_entry;", "target_phys_addr_t entry;", "int VAR_6;", "QemuOpts *machine_opts;", "if (!VAR_1->kernel_filename) {", "fprintf(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, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
25,960
static CharDriverState *qemu_chr_open_null(void) { CharDriverState *chr; chr = g_malloc0(sizeof(CharDriverState)); chr->chr_write = null_chr_write; chr->explicit_be_open = true; return chr; }
false
qemu
db39fcf1f690b02d612e2bfc00980700887abe03
static CharDriverState *qemu_chr_open_null(void) { CharDriverState *chr; chr = g_malloc0(sizeof(CharDriverState)); chr->chr_write = null_chr_write; chr->explicit_be_open = true; return chr; }
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(void) { CharDriverState *chr; chr = g_malloc0(sizeof(CharDriverState)); chr->chr_write = null_chr_write; chr->explicit_be_open = true; return chr; }
[ "static CharDriverState *FUNC_0(void)\n{", "CharDriverState *chr;", "chr = g_malloc0(sizeof(CharDriverState));", "chr->chr_write = null_chr_write;", "chr->explicit_be_open = true;", "return chr;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
25,961
static bool nvic_rettobase(NVICState *s) { int irq, nhand = 0; for (irq = ARMV7M_EXCP_RESET; irq < s->num_irq; irq++) { if (s->vectors[irq].active) { nhand++; if (nhand == 2) { return 0; } } } return 1; }
false
qemu
028b0da424ba85049557c61f9f0a8a6698352b41
static bool nvic_rettobase(NVICState *s) { int irq, nhand = 0; for (irq = ARMV7M_EXCP_RESET; irq < s->num_irq; irq++) { if (s->vectors[irq].active) { nhand++; if (nhand == 2) { return 0; } } } return 1; }
{ "code": [], "line_no": [] }
static bool FUNC_0(NVICState *s) { int VAR_0, VAR_1 = 0; for (VAR_0 = ARMV7M_EXCP_RESET; VAR_0 < s->num_irq; VAR_0++) { if (s->vectors[VAR_0].active) { VAR_1++; if (VAR_1 == 2) { return 0; } } } return 1; }
[ "static bool FUNC_0(NVICState *s)\n{", "int VAR_0, VAR_1 = 0;", "for (VAR_0 = ARMV7M_EXCP_RESET; VAR_0 < s->num_irq; VAR_0++) {", "if (s->vectors[VAR_0].active) {", "VAR_1++;", "if (VAR_1 == 2) {", "return 0;", "}", "}", "}", "return 1;", "}" ]
[ 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 ] ]
25,963
void ioinst_handle_xsch(S390CPU *cpu, uint64_t reg1) { int cssid, ssid, schid, m; SubchDev *sch; int ret = -ENODEV; int cc; if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) { program_interrupt(&cpu->env, PGM_OPERAND, 2); return; } trace_ioinst_sc...
false
qemu
7e01376daea75e888c370aab521a7d4aeaf2ffd1
void ioinst_handle_xsch(S390CPU *cpu, uint64_t reg1) { int cssid, ssid, schid, m; SubchDev *sch; int ret = -ENODEV; int cc; if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) { program_interrupt(&cpu->env, PGM_OPERAND, 2); return; } trace_ioinst_sc...
{ "code": [], "line_no": [] }
void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5; SubchDev *sch; int VAR_6 = -ENODEV; int VAR_7; if (ioinst_disassemble_sch_ident(VAR_1, &VAR_5, &VAR_2, &VAR_3, &VAR_4)) { program_interrupt(&VAR_0->env, PGM_OPERAND, 2); return; } trace_...
[ "void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5;", "SubchDev *sch;", "int VAR_6 = -ENODEV;", "int VAR_7;", "if (ioinst_disassemble_sch_ident(VAR_1, &VAR_5, &VAR_2, &VAR_3, &VAR_4)) {", "program_interrupt(&VAR_0->env, PGM_OPERAND, 2);", "return;", "}", "trace_ioins...
[ 0, 0, 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, 43 ], [ 45 ...
25,964
static int vtd_dev_to_context_entry(IntelIOMMUState *s, uint8_t bus_num, uint8_t devfn, VTDContextEntry *ce) { VTDRootEntry re; int ret_fr; X86IOMMUState *x86_iommu = X86_IOMMU_DEVICE(s); ret_fr = vtd_get_root_entry(s, bus_num, &re); if (ret_fr) { ...
false
qemu
37f51384ae05bd50f83308339dbffa3e78404874
static int vtd_dev_to_context_entry(IntelIOMMUState *s, uint8_t bus_num, uint8_t devfn, VTDContextEntry *ce) { VTDRootEntry re; int ret_fr; X86IOMMUState *x86_iommu = X86_IOMMU_DEVICE(s); ret_fr = vtd_get_root_entry(s, bus_num, &re); if (ret_fr) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(IntelIOMMUState *VAR_0, uint8_t VAR_1, uint8_t VAR_2, VTDContextEntry *VAR_3) { VTDRootEntry re; int VAR_4; X86IOMMUState *x86_iommu = X86_IOMMU_DEVICE(VAR_0); VAR_4 = vtd_get_root_entry(VAR_0, VAR_1, &re); if (VAR_4) { return V...
[ "static int FUNC_0(IntelIOMMUState *VAR_0, uint8_t VAR_1,\nuint8_t VAR_2, VTDContextEntry *VAR_3)\n{", "VTDRootEntry re;", "int VAR_4;", "X86IOMMUState *x86_iommu = X86_IOMMU_DEVICE(VAR_0);", "VAR_4 = vtd_get_root_entry(VAR_0, VAR_1, &re);", "if (VAR_4) {", "return VAR_4;", "}", "if (!vtd_root_entry...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
25,965
static void do_interrupt_real(int intno, int is_int, int error_code, unsigned int next_eip) { SegmentCache *dt; uint8_t *ptr, *ssp; int selector; uint32_t offset, esp; uint32_t old_cs, old_eip; /* real mode (simpler !) */ dt = &env->idt; if (i...
false
qemu
3b22c4707decb706b10ce023534f8b79413ff9fe
static void do_interrupt_real(int intno, int is_int, int error_code, unsigned int next_eip) { SegmentCache *dt; uint8_t *ptr, *ssp; int selector; uint32_t offset, esp; uint32_t old_cs, old_eip; dt = &env->idt; if (intno * 4 + 3 > dt->limit) ...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, int VAR_2, unsigned int VAR_3) { SegmentCache *dt; uint8_t *ptr, *ssp; int VAR_4; uint32_t offset, esp; uint32_t old_cs, old_eip; dt = &env->idt; if (VAR_0 * 4 + 3 > dt->limit) raise_exception...
[ "static void FUNC_0(int VAR_0, int VAR_1, int VAR_2,\nunsigned int VAR_3)\n{", "SegmentCache *dt;", "uint8_t *ptr, *ssp;", "int VAR_4;", "uint32_t offset, esp;", "uint32_t old_cs, old_eip;", "dt = &env->idt;", "if (VAR_0 * 4 + 3 > dt->limit)\nraise_exception_err(EXCP0D_GPF, VAR_0 * 8 + 2);", "ptr = ...
[ 0, 0, 0, 0, 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 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
25,966
void ff_ass_init(AVSubtitle *sub) { memset(sub, 0, sizeof(*sub)); }
false
FFmpeg
3ee8ca9b0894df3aaf5086c643283cb58ef9763d
void ff_ass_init(AVSubtitle *sub) { memset(sub, 0, sizeof(*sub)); }
{ "code": [], "line_no": [] }
void FUNC_0(AVSubtitle *VAR_0) { memset(VAR_0, 0, sizeof(*VAR_0)); }
[ "void FUNC_0(AVSubtitle *VAR_0)\n{", "memset(VAR_0, 0, sizeof(*VAR_0));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
25,967
uint64_t helper_stl_c_raw(uint64_t t0, uint64_t t1) { uint64_t ret; if (t1 == env->lock) { stl_raw(t1, t0); ret = 0; } else ret = 1; env->lock = 1; return ret; }
false
qemu
2374e73edafff0586cbfb67c333c5a7588f81fd5
uint64_t helper_stl_c_raw(uint64_t t0, uint64_t t1) { uint64_t ret; if (t1 == env->lock) { stl_raw(t1, t0); ret = 0; } else ret = 1; env->lock = 1; return ret; }
{ "code": [], "line_no": [] }
uint64_t FUNC_0(uint64_t t0, uint64_t t1) { uint64_t ret; if (t1 == env->lock) { stl_raw(t1, t0); ret = 0; } else ret = 1; env->lock = 1; return ret; }
[ "uint64_t FUNC_0(uint64_t t0, uint64_t t1)\n{", "uint64_t ret;", "if (t1 == env->lock) {", "stl_raw(t1, t0);", "ret = 0;", "} else", "ret = 1;", "env->lock = 1;", "return ret;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ] ]
25,968
int AUD_read (SWVoiceIn *sw, void *buf, int size) { int bytes; if (!sw) { /* XXX: Consider options */ return size; } if (!sw->hw->enabled) { dolog ("Reading from disabled voice %s\n", SW_NAME (sw)); return 0; } bytes = sw->hw->pcm_ops->read (sw, b...
false
qemu
9be385980d37e8f4fd33f605f5fb1c3d144170a8
int AUD_read (SWVoiceIn *sw, void *buf, int size) { int bytes; if (!sw) { return size; } if (!sw->hw->enabled) { dolog ("Reading from disabled voice %s\n", SW_NAME (sw)); return 0; } bytes = sw->hw->pcm_ops->read (sw, buf, size); return byte...
{ "code": [], "line_no": [] }
int FUNC_0 (SWVoiceIn *VAR_0, void *VAR_1, int VAR_2) { int VAR_3; if (!VAR_0) { return VAR_2; } if (!VAR_0->hw->enabled) { dolog ("Reading from disabled voice %s\n", SW_NAME (VAR_0)); return 0; } VAR_3 = VAR_0->hw->pcm_ops->read (VAR_0, VAR_1, V...
[ "int FUNC_0 (SWVoiceIn *VAR_0, void *VAR_1, int VAR_2)\n{", "int VAR_3;", "if (!VAR_0) {", "return VAR_2;", "}", "if (!VAR_0->hw->enabled) {", "dolog (\"Reading from disabled voice %s\\n\", SW_NAME (VAR_0));", "return 0;", "}", "VAR_3 = VAR_0->hw->pcm_ops->read (VAR_0, VAR_1, VAR_2);", "return V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ] ]
25,969
QEMUFile *qemu_fopen_ops_buffered(void *opaque, size_t bytes_per_sec, BufferedPutFunc *put_buffer, BufferedPutReadyFunc *put_ready, BufferedWaitForUnfreezeFunc *wait_for_unfreeze, ...
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
QEMUFile *qemu_fopen_ops_buffered(void *opaque, size_t bytes_per_sec, BufferedPutFunc *put_buffer, BufferedPutReadyFunc *put_ready, BufferedWaitForUnfreezeFunc *wait_for_unfreeze, ...
{ "code": [], "line_no": [] }
QEMUFile *FUNC_0(void *opaque, size_t bytes_per_sec, BufferedPutFunc *put_buffer, BufferedPutReadyFunc *put_ready, BufferedWaitForUnfreezeFunc *wait_for_unfreeze, ...
[ "QEMUFile *FUNC_0(void *opaque,\nsize_t bytes_per_sec,\nBufferedPutFunc *put_buffer,\nBufferedPutReadyFunc *put_ready,\nBufferedWaitForUnfreezeFunc *wait_for_unfreeze,\nBufferedCloseFunc *close)\n{", "QEMUFileBuffered *s;", "s = qemu_mallocz(sizeof(*s));", "s->opaque = opaque;", "s->xfer_limit = bytes_per_s...
[ 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 ], [ 33 ], [ 37, 39, 41, 43 ], [ 47 ], [ 51 ], [ 55 ], [ 57 ] ]
25,970
int keysym2scancode(void *kbd_layout, int keysym) { kbd_layout_t *k = kbd_layout; if (keysym < MAX_NORMAL_KEYCODE) { if (k->keysym2keycode[keysym] == 0) { trace_keymap_unmapped(keysym); fprintf(stderr, "Warning: no scancode found for keysym %d\n", keysy...
false
qemu
8297be80f7cf71e09617669a8bd8b2836dcfd4c3
int keysym2scancode(void *kbd_layout, int keysym) { kbd_layout_t *k = kbd_layout; if (keysym < MAX_NORMAL_KEYCODE) { if (k->keysym2keycode[keysym] == 0) { trace_keymap_unmapped(keysym); fprintf(stderr, "Warning: no scancode found for keysym %d\n", keysy...
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, int VAR_1) { kbd_layout_t *k = VAR_0; if (VAR_1 < MAX_NORMAL_KEYCODE) { if (k->keysym2keycode[VAR_1] == 0) { trace_keymap_unmapped(VAR_1); fprintf(stderr, "Warning: no scancode found for VAR_1 %d\n", VAR_1); } r...
[ "int FUNC_0(void *VAR_0, int VAR_1)\n{", "kbd_layout_t *k = VAR_0;", "if (VAR_1 < MAX_NORMAL_KEYCODE) {", "if (k->keysym2keycode[VAR_1] == 0) {", "trace_keymap_unmapped(VAR_1);", "fprintf(stderr, \"Warning: no scancode found for VAR_1 %d\\n\",\nVAR_1);", "}", "return k->keysym2keycode[VAR_1];", "} e...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
25,971
gen_intermediate_code_internal(M68kCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUM68KState *env = &cpu->env; DisasContext dc1, *dc = &dc1; uint16_t *gen_opc_end; CPUBreakpoint *bp; int j, lj; target_ulong pc_start; ...
false
qemu
cd42d5b23691ad73edfd6dbcfc935a960a9c5a65
gen_intermediate_code_internal(M68kCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUM68KState *env = &cpu->env; DisasContext dc1, *dc = &dc1; uint16_t *gen_opc_end; CPUBreakpoint *bp; int j, lj; target_ulong pc_start; ...
{ "code": [], "line_no": [] }
FUNC_0(M68kCPU *VAR_0, TranslationBlock *VAR_1, bool VAR_2) { CPUState *cs = CPU(VAR_0); CPUM68KState *env = &VAR_0->env; DisasContext dc1, *dc = &dc1; uint16_t *gen_opc_end; CPUBreakpoint *bp; int VAR_3, VAR_4; target_ulong pc_start; int VAR_5; ...
[ "FUNC_0(M68kCPU *VAR_0, TranslationBlock *VAR_1,\nbool VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "CPUM68KState *env = &VAR_0->env;", "DisasContext dc1, *dc = &dc1;", "uint16_t *gen_opc_end;", "CPUBreakpoint *bp;", "int VAR_3, VAR_4;", "target_ulong pc_start;", "int VAR_5;", "int VAR_6;", "int VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
25,972
static CCPrepare gen_prepare_eflags_c(DisasContext *s, TCGv reg) { TCGv t0, t1; int size, shift; switch (s->cc_op) { case CC_OP_SUBB ... CC_OP_SUBQ: /* (DATA_TYPE)(CC_DST + CC_SRC) < (DATA_TYPE)CC_SRC */ size = s->cc_op - CC_OP_SUBB; t1 = gen_ext_tl(cpu_tmp0, cpu_cc_src...
false
qemu
a3251186fc6a04d421e9c4b65aa04ec32379ec38
static CCPrepare gen_prepare_eflags_c(DisasContext *s, TCGv reg) { TCGv t0, t1; int size, shift; switch (s->cc_op) { case CC_OP_SUBB ... CC_OP_SUBQ: size = s->cc_op - CC_OP_SUBB; t1 = gen_ext_tl(cpu_tmp0, cpu_cc_src, size, false); t0 = TCGV_EQUAL(t1,...
{ "code": [], "line_no": [] }
static CCPrepare FUNC_0(DisasContext *s, TCGv reg) { TCGv t0, t1; int VAR_0, VAR_1; switch (s->cc_op) { case CC_OP_SUBB ... CC_OP_SUBQ: VAR_0 = s->cc_op - CC_OP_SUBB; t1 = gen_ext_tl(cpu_tmp0, cpu_cc_src, VAR_0, false); t0 = TCGV_EQUAL(t1, cpu_cc_src...
[ "static CCPrepare FUNC_0(DisasContext *s, TCGv reg)\n{", "TCGv t0, t1;", "int VAR_0, VAR_1;", "switch (s->cc_op) {", "case CC_OP_SUBB ... CC_OP_SUBQ:\nVAR_0 = s->cc_op - CC_OP_SUBB;", "t1 = gen_ext_tl(cpu_tmp0, cpu_cc_src, VAR_0, false);", "t0 = TCGV_EQUAL(t1, cpu_cc_src) ? cpu_tmp0 : reg;", "tcg_gen_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51, 55 ], [ 57 ], [ 59...
25,973
static void pflash_cfi01_realize(DeviceState *dev, Error **errp) { pflash_t *pfl = CFI_PFLASH01(dev); uint64_t total_len; int ret; uint64_t blocks_per_device, device_len; int num_devices; Error *local_err = NULL; total_len = pfl->sector_len * pfl->nb_blocs; /* These are only...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void pflash_cfi01_realize(DeviceState *dev, Error **errp) { pflash_t *pfl = CFI_PFLASH01(dev); uint64_t total_len; int ret; uint64_t blocks_per_device, device_len; int num_devices; Error *local_err = NULL; total_len = pfl->sector_len * pfl->nb_blocs; num_dev...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { pflash_t *pfl = CFI_PFLASH01(VAR_0); uint64_t total_len; int VAR_2; uint64_t blocks_per_device, device_len; int VAR_3; Error *local_err = NULL; total_len = pfl->sector_len * pfl->nb_blocs; VAR_3 = pfl->device_...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "pflash_t *pfl = CFI_PFLASH01(VAR_0);", "uint64_t total_len;", "int VAR_2;", "uint64_t blocks_per_device, device_len;", "int VAR_3;", "Error *local_err = NULL;", "total_len = pfl->sector_len * pfl->nb_blocs;", "VAR_3 = pfl->device_width ? (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 39, 41, 43, 45 ], [ 47, 51, 53, 55, 57 ], [ 59 ], [ 61 ], [ 63 ], [...
25,974
static long do_rt_sigreturn_v2(CPUARMState *env) { abi_ulong frame_addr; struct rt_sigframe_v2 *frame = NULL; /* * Since we stacked the signal on a 64-bit boundary, * then 'sp' should be word aligned here. If it's * not, then the user is trying to mess with us. */ frame_a...
false
qemu
f0267ef7115656119bf00ed77857789adc036bda
static long do_rt_sigreturn_v2(CPUARMState *env) { abi_ulong frame_addr; struct rt_sigframe_v2 *frame = NULL; frame_addr = env->regs[13]; trace_user_do_rt_sigreturn(env, frame_addr); if (frame_addr & 7) { goto badframe; } if (!lock_user_struct(VERIFY_READ, ...
{ "code": [], "line_no": [] }
static long FUNC_0(CPUARMState *VAR_0) { abi_ulong frame_addr; struct rt_sigframe_v2 *VAR_1 = NULL; frame_addr = VAR_0->regs[13]; trace_user_do_rt_sigreturn(VAR_0, frame_addr); if (frame_addr & 7) { goto badframe; } if (!lock_user_struct(VERIFY_READ, VAR_1,...
[ "static long FUNC_0(CPUARMState *VAR_0)\n{", "abi_ulong frame_addr;", "struct rt_sigframe_v2 *VAR_1 = NULL;", "frame_addr = VAR_0->regs[13];", "trace_user_do_rt_sigreturn(VAR_0, frame_addr);", "if (frame_addr & 7) {", "goto badframe;", "}", "if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55, 57 ], [ 59 ], [ 61 ], ...
25,976
void bdrv_drain_all_begin(void) { /* Always run first iteration so any pending completion BHs run */ bool waited = true; BlockDriverState *bs; BdrvNextIterator it; GSList *aio_ctxs = NULL, *ctx; block_job_pause_all(); for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { ...
false
qemu
2da9b7d456278bccc6ce889ae350f2867155d7e8
void bdrv_drain_all_begin(void) { bool waited = true; BlockDriverState *bs; BdrvNextIterator it; GSList *aio_ctxs = NULL, *ctx; block_job_pause_all(); for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { AioContext *aio_context = bdrv_get_aio_context(bs); ai...
{ "code": [], "line_no": [] }
void FUNC_0(void) { bool waited = true; BlockDriverState *bs; BdrvNextIterator it; GSList *aio_ctxs = NULL, *ctx; block_job_pause_all(); for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { AioContext *aio_context = bdrv_get_aio_context(bs); aio_context_acqu...
[ "void FUNC_0(void)\n{", "bool waited = true;", "BlockDriverState *bs;", "BdrvNextIterator it;", "GSList *aio_ctxs = NULL, *ctx;", "block_job_pause_all();", "for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) {", "AioContext *aio_context = bdrv_get_aio_context(bs);", "aio_context_acquire(aio_context...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 59 ], [ 61 ], [ 65 ], [ 67...
25,977
static size_t qemu_rdma_save_page(QEMUFile *f, void *opaque, ram_addr_t block_offset, ram_addr_t offset, size_t size, int *bytes_sent) { QEMUFileRDMA *rfile = opaque; RDMAContext *rdma = rfile->rdma; int ret; CHECK_ERROR_STATE(...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static size_t qemu_rdma_save_page(QEMUFile *f, void *opaque, ram_addr_t block_offset, ram_addr_t offset, size_t size, int *bytes_sent) { QEMUFileRDMA *rfile = opaque; RDMAContext *rdma = rfile->rdma; int ret; CHECK_ERROR_STATE(...
{ "code": [], "line_no": [] }
static size_t FUNC_0(QEMUFile *f, void *opaque, ram_addr_t block_offset, ram_addr_t offset, size_t size, int *bytes_sent) { QEMUFileRDMA *rfile = opaque; RDMAContext *rdma = rfile->rdma; int VAR_1; CHECK_ERROR_STATE(); q...
[ "static size_t FUNC_0(QEMUFile *f, void *opaque,\nram_addr_t block_offset, ram_addr_t offset,\nsize_t size, int *bytes_sent)\n{", "QEMUFileRDMA *rfile = opaque;", "RDMAContext *rdma = rfile->rdma;", "int VAR_1;", "CHECK_ERROR_STATE();", "qemu_fflush(f);", "if (size > 0) {", "VAR_1 = qemu_rdma_write(f,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 25 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 65 ], [ 67 ], [ 69 ], [ 71 ], [ 73 ], [ 99, 101 ], ...
25,978
int xen_be_init(void) { xenstore = xs_daemon_open(); if (!xenstore) { xen_be_printf(NULL, 0, "can't connect to xenstored\n"); return -1; } if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) { goto err; } if (xen_xc == XC_HANDLER_I...
true
qemu
6b5166f8a82888638bb9aba9dc49aa7fa25f292f
int xen_be_init(void) { xenstore = xs_daemon_open(); if (!xenstore) { xen_be_printf(NULL, 0, "can't connect to xenstored\n"); return -1; } if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) { goto err; } if (xen_xc == XC_HANDLER_I...
{ "code": [ " if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) {", " goto err;" ], "line_no": [ 17, 19 ] }
int FUNC_0(void) { xenstore = xs_daemon_open(); if (!xenstore) { xen_be_printf(NULL, 0, "can't connect to xenstored\n"); return -1; } if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) { goto err; } if (xen_xc == XC_HANDLER_INITIA...
[ "int FUNC_0(void)\n{", "xenstore = xs_daemon_open();", "if (!xenstore) {", "xen_be_printf(NULL, 0, \"can't connect to xenstored\\n\");", "return -1;", "}", "if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) {", "goto err;", "}", "if (xen_xc == XC_HANDLER_INITIAL_VALUE)...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
25,979
static void guess_palette(DVDSubContext* ctx, uint32_t *rgba_palette, uint32_t subtitle_color) { static const uint8_t level_map[4][4] = { // this configuration (full range, lowest to highest) in tests // seemed most common, so assume this ...
true
FFmpeg
61ee2ca7758672128e30b3e87908b6845e006d71
static void guess_palette(DVDSubContext* ctx, uint32_t *rgba_palette, uint32_t subtitle_color) { static const uint8_t level_map[4][4] = { {0xff}, {0x00, 0xff}, {0x00, 0x80, 0xff}, {0x00, 0x55, 0xaa, 0xff}...
{ "code": [ " rgba_palette[i] = b | (g << 8) | (r << 16) | ((alpha[i] * 17) << 24);", " ((alpha[i] * 17) << 24);" ], "line_no": [ 93, 103 ] }
static void FUNC_0(DVDSubContext* VAR_0, uint32_t *VAR_1, uint32_t VAR_2) { static const uint8_t VAR_3[4][4] = { {0xff}, {0x00, 0xff}, {0x00, 0x80, 0xff}, {0x00, 0x55, 0xaa, 0xff}, }; uint8_t co...
[ "static void FUNC_0(DVDSubContext* VAR_0,\nuint32_t *VAR_1,\nuint32_t VAR_2)\n{", "static const uint8_t VAR_3[4][4] = {", "{0xff},", "{0x00, 0xff},", "{0x00, 0x80, 0xff},", "{0x00, 0x55, 0xaa, 0xff},", "};", "uint8_t color_used[16] = { 0 };", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [...
25,981
int ff_generate_sliding_window_mmcos(H264Context *h, int first_slice) { MMCO mmco_temp[MAX_MMCO_COUNT], *mmco = first_slice ? h->mmco : mmco_temp; int mmco_index = 0, i; assert(h->long_ref_count + h->short_ref_count <= h->sps.ref_frame_count); if (h->short_ref_count && h->long_ref_coun...
true
FFmpeg
f4bd9fe326ad1315a74206939ae56df93b940a09
int ff_generate_sliding_window_mmcos(H264Context *h, int first_slice) { MMCO mmco_temp[MAX_MMCO_COUNT], *mmco = first_slice ? h->mmco : mmco_temp; int mmco_index = 0, i; assert(h->long_ref_count + h->short_ref_count <= h->sps.ref_frame_count); if (h->short_ref_count && h->long_ref_coun...
{ "code": [ " int mmco_index = 0, i;" ], "line_no": [ 7 ] }
int FUNC_0(H264Context *VAR_0, int VAR_1) { MMCO mmco_temp[MAX_MMCO_COUNT], *mmco = VAR_1 ? VAR_0->mmco : mmco_temp; int VAR_2 = 0, VAR_3; assert(VAR_0->long_ref_count + VAR_0->short_ref_count <= VAR_0->sps.ref_frame_count); if (VAR_0->short_ref_count && VAR_0->long_ref_count + VAR_0->...
[ "int FUNC_0(H264Context *VAR_0, int VAR_1)\n{", "MMCO mmco_temp[MAX_MMCO_COUNT], *mmco = VAR_1 ? VAR_0->mmco : mmco_temp;", "int VAR_2 = 0, VAR_3;", "assert(VAR_0->long_ref_count + VAR_0->short_ref_count <= VAR_0->sps.ref_frame_count);", "if (VAR_0->short_ref_count &&\nVAR_0->long_ref_count + VAR_0->short_r...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
25,983
ImgReSampleContext *img_resample_full_init(int owidth, int oheight, int iwidth, int iheight, int topBand, int bottomBand, int leftBand, int rightBand, int padtop, int padbottom, int padleft, int padright) { Im...
true
FFmpeg
0ecca7a49f8e254c12a3a1de048d738bfbb614c6
ImgReSampleContext *img_resample_full_init(int owidth, int oheight, int iwidth, int iheight, int topBand, int bottomBand, int leftBand, int rightBand, int padtop, int padbottom, int padleft, int padright) { Im...
{ "code": [], "line_no": [] }
ImgReSampleContext *FUNC_0(int owidth, int oheight, int iwidth, int iheight, int topBand, int bottomBand, int leftBand, int rightBand, int padtop, int padbottom, int padleft, int padright) { ImgReSampleContext...
[ "ImgReSampleContext *FUNC_0(int owidth, int oheight,\nint iwidth, int iheight,\nint topBand, int bottomBand,\nint leftBand, int rightBand,\nint padtop, int padbottom,\nint padleft, int padright)\n{", "ImgReSampleContext *s;", "s = av_mallocz(sizeof(ImgReSampleContext));", "if (!s)\ns->line_buf = av_mallocz(ow...
[ 0, 0, 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, 26 ], [ 28, 30 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 44 ], [ 46 ], [ 48 ], [ 50 ], [ 54 ], [ 56 ], [ 58 ], [...
25,984
static abi_long do_socketcall(int num, abi_ulong vptr) { static const unsigned ac[] = { /* number of arguments per call */ [SOCKOP_socket] = 3, /* domain, type, protocol */ [SOCKOP_bind] = 3, /* sockfd, addr, addrlen */ [SOCKOP_connect] = 3, /* sockfd, addr, addrlen */ ...
true
qemu
ff71a4545c0d9b452e77a91ab1c46f79a10a9eca
static abi_long do_socketcall(int num, abi_ulong vptr) { static const unsigned ac[] = { [SOCKOP_socket] = 3, [SOCKOP_bind] = 3, [SOCKOP_connect] = 3, [SOCKOP_listen] = 2, [SOCKOP_accept] = 3, [SOCKOP_accept4] = 4, ...
{ "code": [ " if (num >= 0 && num < ARRAY_SIZE(ac)) {", " unsigned i;", " for (i = 0; i < ac[num]; ++i) {", " if (get_user_ual(a[i], vptr + i * sizeof(abi_long)) != 0) {", " return -TARGET_EFAULT;", " return do_accept4(a[0], a[1], a[2], a[3]);"...
static abi_long FUNC_0(int num, abi_ulong vptr) { static const unsigned VAR_0[] = { [SOCKOP_socket] = 3, [SOCKOP_bind] = 3, [SOCKOP_connect] = 3, [SOCKOP_listen] = 2, [SOCKOP_accept] = 3, [SOCKOP_accept4] = 4, [SOC...
[ "static abi_long FUNC_0(int num, abi_ulong vptr)\n{", "static const unsigned VAR_0[] = {", "[SOCKOP_socket] = 3,\n[SOCKOP_bind] = 3,\n[SOCKOP_connect] = 3,\n[SOCKOP_listen] = 2,\n[SOCKOP_accept] = 3,\n[SOCKOP_accept4] = 4,\n[SOCKOP_getsockname] = 3,\n[SOCKOP_getpeername] = 3,\n[SOCKOP_socketpair] = 4,\n[SOCKOP_...
[ 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ...
25,985
static MemTxResult address_space_write_continue(AddressSpace *as, hwaddr addr, MemTxAttrs attrs, const uint8_t *buf, int len, hwaddr addr1, ...
true
qemu
6da67de6803e93cbb7e93ac3497865832f8c00ea
static MemTxResult address_space_write_continue(AddressSpace *as, hwaddr addr, MemTxAttrs attrs, const uint8_t *buf, int len, hwaddr addr1, ...
{ "code": [ " val = ldl_p(buf);" ], "line_no": [ 53 ] }
static MemTxResult FUNC_0(AddressSpace *as, hwaddr addr, MemTxAttrs attrs, const uint8_t *buf, int len, hwaddr addr1, hwaddr...
[ "static MemTxResult FUNC_0(AddressSpace *as, hwaddr addr,\nMemTxAttrs attrs,\nconst uint8_t *buf,\nint len, hwaddr addr1,\nhwaddr l, MemoryRegion *mr)\n{", "uint8_t *ptr;", "uint64_t val;", "MemTxResult result = MEMTX_OK;", "bool release_lock = false;", "for (;;) {", "if (!memory_access_is_direct(mr, tr...
[ 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 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37, 41 ], [ 43, 45 ], [ 47 ], [ 49, 53 ], [ 55, 57 ], [ 59 ...
25,987
void visit_type_int64(Visitor *v, int64_t *obj, const char *name, Error **errp) { if (!error_is_set(errp)) { if (v->type_int64) { v->type_int64(v, obj, name, errp); } else { v->type_int(v, obj, name, errp); } } }
true
qemu
297a3646c2947ee64a6d42ca264039732c6218e0
void visit_type_int64(Visitor *v, int64_t *obj, const char *name, Error **errp) { if (!error_is_set(errp)) { if (v->type_int64) { v->type_int64(v, obj, name, errp); } else { v->type_int(v, obj, name, errp); } } }
{ "code": [ " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " } else {", " if (!error_is_set(errp)) {", " } e...
void FUNC_0(Visitor *VAR_0, int64_t *VAR_1, const char *VAR_2, Error **VAR_3) { if (!error_is_set(VAR_3)) { if (VAR_0->type_int64) { VAR_0->type_int64(VAR_0, VAR_1, VAR_2, VAR_3); } else { VAR_0->type_int(VAR_0, VAR_1, VAR_2, VAR_3); } } }
[ "void FUNC_0(Visitor *VAR_0, int64_t *VAR_1, const char *VAR_2, Error **VAR_3)\n{", "if (!error_is_set(VAR_3)) {", "if (VAR_0->type_int64) {", "VAR_0->type_int64(VAR_0, VAR_1, VAR_2, VAR_3);", "} else {", "VAR_0->type_int(VAR_0, VAR_1, VAR_2, VAR_3);", "}", "}", "}" ]
[ 0, 1, 1, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
25,988
static inline void idct4col_add(uint8_t *dest, int line_size, const DCTELEM *col) { int c0, c1, c2, c3, a0, a1, a2, a3; const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; a0 = col[8*0]; a1 = col[8*1]; a2 = col[8*2]; a3 = col[8*3]; c0 = (a0 + a2)*C3 + (1 << (C_SHIFT - 1)); c2 = (a0...
true
FFmpeg
c23acbaed40101c677dfcfbbfe0d2c230a8e8f44
static inline void idct4col_add(uint8_t *dest, int line_size, const DCTELEM *col) { int c0, c1, c2, c3, a0, a1, a2, a3; const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; a0 = col[8*0]; a1 = col[8*1]; a2 = col[8*2]; a3 = col[8*3]; c0 = (a0 + a2)*C3 + (1 << (C_SHIFT - 1)); c2 = (a0...
{ "code": [ " const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " dest[0] = cm[dest[0] + ((c0 + c1) >> C_SHIFT)];", " dest[0] = cm[dest[0] + ((c2 + c3) >> C_SHIFT)];", " dest[...
static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, const DCTELEM *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; const uint8_t *VAR_11 = ff_cropTbl + MAX_NEG_CROP; VAR_7 = VAR_2[8*0]; VAR_8 = VAR_2[8*1]; VAR_9 = VAR_2[8*2]; VAR_10 = VAR_2[8*3]; VAR_3 = (VAR...
[ "static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, const DCTELEM *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "const uint8_t *VAR_11 = ff_cropTbl + MAX_NEG_CROP;", "VAR_7 = VAR_2[8*0];", "VAR_8 = VAR_2[8*1];", "VAR_9 = VAR_2[8*2];", "VAR_10 = VAR_2[8*3];", "VAR_3 = (...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
25,989
void bdrv_detach_aio_context(BlockDriverState *bs) { BdrvAioNotifier *baf; BdrvChild *child; if (!bs->drv) { return; } QLIST_FOREACH(baf, &bs->aio_notifiers, list) { baf->detach_aio_context(baf->opaque); } if (bs->drv->bdrv_detach_aio_context) { bs->d...
true
qemu
e8a095dadb70e2ea6d5169d261920db3747bfa45
void bdrv_detach_aio_context(BlockDriverState *bs) { BdrvAioNotifier *baf; BdrvChild *child; if (!bs->drv) { return; } QLIST_FOREACH(baf, &bs->aio_notifiers, list) { baf->detach_aio_context(baf->opaque); } if (bs->drv->bdrv_detach_aio_context) { bs->d...
{ "code": [ " BdrvAioNotifier *baf;", " QLIST_FOREACH(baf, &bs->aio_notifiers, list) {", " baf->detach_aio_context(baf->opaque);" ], "line_no": [ 5, 19, 21 ] }
void FUNC_0(BlockDriverState *VAR_0) { BdrvAioNotifier *baf; BdrvChild *child; if (!VAR_0->drv) { return; } QLIST_FOREACH(baf, &VAR_0->aio_notifiers, list) { baf->detach_aio_context(baf->opaque); } if (VAR_0->drv->FUNC_0) { VAR_0->drv->FUNC_0(VAR_0); ...
[ "void FUNC_0(BlockDriverState *VAR_0)\n{", "BdrvAioNotifier *baf;", "BdrvChild *child;", "if (!VAR_0->drv) {", "return;", "}", "QLIST_FOREACH(baf, &VAR_0->aio_notifiers, list) {", "baf->detach_aio_context(baf->opaque);", "}", "if (VAR_0->drv->FUNC_0) {", "VAR_0->drv->FUNC_0(VAR_0);", "}", "Q...
[ 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
25,990
void cpu_ppc_reset (void *opaque) { CPUPPCState *env; target_ulong msr; env = opaque; msr = (target_ulong)0; if (0) { /* XXX: find a suitable condition to enable the hypervisor mode */ msr |= (target_ulong)MSR_HVB; } msr |= (target_ulong)0 << MSR_AP; /* TO BE CHEC...
false
qemu
fe463b7dbc16cc66f3b9a8b7be197fb340378fa3
void cpu_ppc_reset (void *opaque) { CPUPPCState *env; target_ulong msr; env = opaque; msr = (target_ulong)0; if (0) { msr |= (target_ulong)MSR_HVB; } msr |= (target_ulong)0 << MSR_AP; msr |= (target_ulong)0 << MSR_SA; msr |= (target_ulong)1 << MSR_EP;...
{ "code": [], "line_no": [] }
void FUNC_0 (void *VAR_0) { CPUPPCState *env; target_ulong msr; env = VAR_0; msr = (target_ulong)0; if (0) { msr |= (target_ulong)MSR_HVB; } msr |= (target_ulong)0 << MSR_AP; msr |= (target_ulong)0 << MSR_SA; msr |= (target_ulong)1 << MSR_EP; #if def...
[ "void FUNC_0 (void *VAR_0)\n{", "CPUPPCState *env;", "target_ulong msr;", "env = VAR_0;", "msr = (target_ulong)0;", "if (0) {", "msr |= (target_ulong)MSR_HVB;", "}", "msr |= (target_ulong)0 << MSR_AP;", "msr |= (target_ulong)0 << MSR_SA;", "msr |= (target_ulong)1 << MSR_EP;", "#if defined (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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ], ...
25,991
static void omap_sti_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_sti_s *s = (struct omap_sti_s *) opaque; if (size != 4) { return omap_badwidth_write32(opaque, addr, value); } switch (addr) { case 0x00: /* S...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void omap_sti_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_sti_s *s = (struct omap_sti_s *) opaque; if (size != 4) { return omap_badwidth_write32(opaque, addr, value); } switch (addr) { case 0x00: ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { struct omap_sti_s *VAR_4 = (struct omap_sti_s *) VAR_0; if (VAR_3 != 4) { return omap_badwidth_write32(VAR_0, VAR_1, VAR_2); } switch (VAR_1) { case 0x00: ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "struct omap_sti_s *VAR_4 = (struct omap_sti_s *) VAR_0;", "if (VAR_3 != 4) {", "return omap_badwidth_write32(VAR_0, VAR_1, VAR_2);", "}", "switch (VAR_1) {", "case 0x00:\ncase 0x14:\nOMAP_RO_REG(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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53, 55 ], [ 57 ], ...
25,992
static void gdb_chr_event(void *opaque, int event) { switch (event) { case CHR_EVENT_RESET: vm_stop(EXCP_INTERRUPT); gdb_syscall_state = opaque; gdb_has_xml = 0; break; default: break; } }
false
qemu
880a7578381d1c7ed4d41c7599ae3cc06567a824
static void gdb_chr_event(void *opaque, int event) { switch (event) { case CHR_EVENT_RESET: vm_stop(EXCP_INTERRUPT); gdb_syscall_state = opaque; gdb_has_xml = 0; break; default: break; } }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1) { switch (VAR_1) { case CHR_EVENT_RESET: vm_stop(EXCP_INTERRUPT); gdb_syscall_state = VAR_0; gdb_has_xml = 0; break; default: break; } }
[ "static void FUNC_0(void *VAR_0, int VAR_1)\n{", "switch (VAR_1) {", "case CHR_EVENT_RESET:\nvm_stop(EXCP_INTERRUPT);", "gdb_syscall_state = VAR_0;", "gdb_has_xml = 0;", "break;", "default:\nbreak;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ] ]
25,993
static void release_keys(void *opaque) { int keycode; while (nb_pending_keycodes > 0) { nb_pending_keycodes--; keycode = keycodes[nb_pending_keycodes]; if (keycode & 0x80) kbd_put_keycode(0xe0); kbd_put_keycode(keycode | 0x80); } }
false
qemu
e4c8f004c55d9da3eae3e14df740238bf805b5d6
static void release_keys(void *opaque) { int keycode; while (nb_pending_keycodes > 0) { nb_pending_keycodes--; keycode = keycodes[nb_pending_keycodes]; if (keycode & 0x80) kbd_put_keycode(0xe0); kbd_put_keycode(keycode | 0x80); } }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int VAR_1; while (nb_pending_keycodes > 0) { nb_pending_keycodes--; VAR_1 = keycodes[nb_pending_keycodes]; if (VAR_1 & 0x80) kbd_put_keycode(0xe0); kbd_put_keycode(VAR_1 | 0x80); } }
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1;", "while (nb_pending_keycodes > 0) {", "nb_pending_keycodes--;", "VAR_1 = keycodes[nb_pending_keycodes];", "if (VAR_1 & 0x80)\nkbd_put_keycode(0xe0);", "kbd_put_keycode(VAR_1 | 0x80);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
25,994
static int virtio_scsi_parse_req(VirtIOSCSIReq *req, unsigned req_size, unsigned resp_size) { VirtIODevice *vdev = (VirtIODevice *) req->dev; size_t in_size, out_size; if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0, &req->req, req_size) < re...
false
qemu
ef546f1275f6563e8934dd5e338d29d9f9909ca6
static int virtio_scsi_parse_req(VirtIOSCSIReq *req, unsigned req_size, unsigned resp_size) { VirtIODevice *vdev = (VirtIODevice *) req->dev; size_t in_size, out_size; if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0, &req->req, req_size) < re...
{ "code": [], "line_no": [] }
static int FUNC_0(VirtIOSCSIReq *VAR_0, unsigned VAR_1, unsigned VAR_2) { VirtIODevice *vdev = (VirtIODevice *) VAR_0->dev; size_t in_size, out_size; if (iov_to_buf(VAR_0->elem.out_sg, VAR_0->elem.out_num, 0, &VAR_0->VAR_0, VAR_1) < VAR_1) { ...
[ "static int FUNC_0(VirtIOSCSIReq *VAR_0,\nunsigned VAR_1, unsigned VAR_2)\n{", "VirtIODevice *vdev = (VirtIODevice *) VAR_0->dev;", "size_t in_size, out_size;", "if (iov_to_buf(VAR_0->elem.out_sg, VAR_0->elem.out_num, 0,\n&VAR_0->VAR_0, VAR_1) < VAR_1) {", "return -EINVAL;", "}", "if (qemu_iovec_concat_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 69, 71, 73 ], [ 75, 77, 79 ...
25,995
void pc_dimm_memory_unplug(DeviceState *dev, MemoryHotplugState *hpms, MemoryRegion *mr) { PCDIMMDevice *dimm = PC_DIMM(dev); numa_unset_mem_node_id(dimm->addr, memory_region_size(mr), dimm->node); memory_region_del_subregion(&hpms->mr, mr); vmstate_unregister_ram(mr, ...
false
qemu
8df1426e44176512be1b6456e90d100d1af907e1
void pc_dimm_memory_unplug(DeviceState *dev, MemoryHotplugState *hpms, MemoryRegion *mr) { PCDIMMDevice *dimm = PC_DIMM(dev); numa_unset_mem_node_id(dimm->addr, memory_region_size(mr), dimm->node); memory_region_del_subregion(&hpms->mr, mr); vmstate_unregister_ram(mr, ...
{ "code": [], "line_no": [] }
void FUNC_0(DeviceState *VAR_0, MemoryHotplugState *VAR_1, MemoryRegion *VAR_2) { PCDIMMDevice *dimm = PC_DIMM(VAR_0); numa_unset_mem_node_id(dimm->addr, memory_region_size(VAR_2), dimm->node); memory_region_del_subregion(&VAR_1->VAR_2, VAR_2); vmstate_unregister_ram(V...
[ "void FUNC_0(DeviceState *VAR_0, MemoryHotplugState *VAR_1,\nMemoryRegion *VAR_2)\n{", "PCDIMMDevice *dimm = PC_DIMM(VAR_0);", "numa_unset_mem_node_id(dimm->addr, memory_region_size(VAR_2), dimm->node);", "memory_region_del_subregion(&VAR_1->VAR_2, VAR_2);", "vmstate_unregister_ram(VAR_2, VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
25,996
static void kvm_handle_internal_error(CPUState *env, struct kvm_run *run) { if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) { int i; fprintf(stderr, "KVM internal error. Suberror: %d\n", run->internal.suberror); for (i = 0; i < run->internal.ndata...
false
qemu
73aaec4a39b3cf11082303a6cf6bcde8796c09c6
static void kvm_handle_internal_error(CPUState *env, struct kvm_run *run) { if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) { int i; fprintf(stderr, "KVM internal error. Suberror: %d\n", run->internal.suberror); for (i = 0; i < run->internal.ndata...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1) { if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) { int VAR_2; fprintf(stderr, "KVM internal error. Suberror: %d\n", VAR_1->internal.suberror); for (VAR_2 = 0; VAR_2 < VAR_1->internal.ndat...
[ "static void FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1)\n{", "if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) {", "int VAR_2;", "fprintf(stderr, \"KVM internal error. Suberror: %d\\n\",\nVAR_1->internal.suberror);", "for (VAR_2 = 0; VAR_2 < VAR_1->internal.ndata; ++VAR_2) {", "fprintf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 49 ], [ 51 ] ]
25,998
void ff_slice_buffer_init(slice_buffer *buf, int line_count, int max_allocated_lines, int line_width, IDWTELEM *base_buffer) { int i; buf->base_buffer = base_buffer; buf->line_count = line_count; buf->line_width = line_width; buf->data_...
false
FFmpeg
c89e428ed8c2c31396af2d18cab4342b7d82958f
void ff_slice_buffer_init(slice_buffer *buf, int line_count, int max_allocated_lines, int line_width, IDWTELEM *base_buffer) { int i; buf->base_buffer = base_buffer; buf->line_count = line_count; buf->line_width = line_width; buf->data_...
{ "code": [], "line_no": [] }
void FUNC_0(slice_buffer *VAR_0, int VAR_1, int VAR_2, int VAR_3, IDWTELEM *VAR_4) { int VAR_5; VAR_0->VAR_4 = VAR_4; VAR_0->VAR_1 = VAR_1; VAR_0->VAR_3 = VAR_3; VAR_0->data_count = VAR_2; VAR_0->line = av_mallocz(sizeof(ID...
[ "void FUNC_0(slice_buffer *VAR_0, int VAR_1,\nint VAR_2, int VAR_3,\nIDWTELEM *VAR_4)\n{", "int VAR_5;", "VAR_0->VAR_4 = VAR_4;", "VAR_0->VAR_1 = VAR_1;", "VAR_0->VAR_3 = VAR_3;", "VAR_0->data_count = VAR_2;", "VAR_0->line = av_mallocz(sizeof(IDWTELEM *) * VAR_1);", "VAR_0->data_stack = av_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
25,999
static void xenfb_mouse_event(DeviceState *dev, QemuConsole *src, InputEvent *evt) { struct XenInput *xenfb = (struct XenInput *)dev; InputBtnEvent *btn; InputMoveEvent *move; QemuConsole *con; DisplaySurface *surface; int scale; switch (evt->type) { ...
false
qemu
34975e536f3531ad852d724a46280b882ec1bc9d
static void xenfb_mouse_event(DeviceState *dev, QemuConsole *src, InputEvent *evt) { struct XenInput *xenfb = (struct XenInput *)dev; InputBtnEvent *btn; InputMoveEvent *move; QemuConsole *con; DisplaySurface *surface; int scale; switch (evt->type) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1, InputEvent *VAR_2) { struct XenInput *VAR_3 = (struct XenInput *)VAR_0; InputBtnEvent *btn; InputMoveEvent *move; QemuConsole *con; DisplaySurface *surface; int VAR_4; switch (VAR_2->type) { ...
[ "static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,\nInputEvent *VAR_2)\n{", "struct XenInput *VAR_3 = (struct XenInput *)VAR_0;", "InputBtnEvent *btn;", "InputMoveEvent *move;", "QemuConsole *con;", "DisplaySurface *surface;", "int VAR_4;", "switch (VAR_2->type) {", "case INPUT_EVENT_KIND_B...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ...
26,000
static CharDriverState *qemu_chr_open_socket_fd(int fd, bool do_nodelay, bool is_listen, bool is_telnet, bool is_waitconnect, Error **errp) { CharDriverState *chr = NU...
false
qemu
db39fcf1f690b02d612e2bfc00980700887abe03
static CharDriverState *qemu_chr_open_socket_fd(int fd, bool do_nodelay, bool is_listen, bool is_telnet, bool is_waitconnect, Error **errp) { CharDriverState *chr = NU...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(int fd, bool do_nodelay, bool is_listen, bool is_telnet, bool is_waitconnect, Error **errp) { CharDriverState *chr = NULL; TCPCharD...
[ "static CharDriverState *FUNC_0(int fd, bool do_nodelay,\nbool is_listen, bool is_telnet,\nbool is_waitconnect,\nError **errp)\n{", "CharDriverState *chr = NULL;", "TCPCharDriver *s = NULL;", "char VAR_0[NI_MAXHOST], serv[NI_MAXSERV];", "const char *VAR_1 = \"\", *VAR_2 = \"\";", "struct sockaddr_storage ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
26,001
static void dhcp_decode(const struct bootp_t *bp, int *pmsg_type, const struct in_addr **preq_addr) { const uint8_t *p, *p_end; int len, tag; *pmsg_type = 0; *preq_addr = NULL; p = bp->bp_vend; p_end = p + DHCP_OPT_LEN; if (memcmp(p, rfc1533_cookie, 4) !=...
false
qemu
8aaf42ed0f203da63860b0a3ab3ff2bdfe9b4cb0
static void dhcp_decode(const struct bootp_t *bp, int *pmsg_type, const struct in_addr **preq_addr) { const uint8_t *p, *p_end; int len, tag; *pmsg_type = 0; *preq_addr = NULL; p = bp->bp_vend; p_end = p + DHCP_OPT_LEN; if (memcmp(p, rfc1533_cookie, 4) !=...
{ "code": [], "line_no": [] }
static void FUNC_0(const struct bootp_t *VAR_0, int *VAR_1, const struct in_addr **VAR_2) { const uint8_t *VAR_3, *p_end; int VAR_4, VAR_5; *VAR_1 = 0; *VAR_2 = NULL; VAR_3 = VAR_0->bp_vend; p_end = VAR_3 + DHCP_OPT_LEN; if (memcmp(VAR_3, rfc1533_cookie, ...
[ "static void FUNC_0(const struct bootp_t *VAR_0, int *VAR_1,\nconst struct in_addr **VAR_2)\n{", "const uint8_t *VAR_3, *p_end;", "int VAR_4, VAR_5;", "*VAR_1 = 0;", "*VAR_2 = NULL;", "VAR_3 = VAR_0->bp_vend;", "p_end = VAR_3 + DHCP_OPT_LEN;", "if (memcmp(VAR_3, rfc1533_cookie, 4) != 0)\nreturn;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [...