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
2,922
static void bonito_pciconf_writel(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIBonitoState *s = opaque; PCIDevice *d = PCI_DEVICE(s); DPRINTF("bonito_pciconf_writel "TARGET_FMT_plx" val %x\n", addr, val); d->config_write(d, addr, val,...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void bonito_pciconf_writel(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIBonitoState *s = opaque; PCIDevice *d = PCI_DEVICE(s); DPRINTF("bonito_pciconf_writel "TARGET_FMT_plx" val %x\n", addr, val); d->config_write(d, addr, val,...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { PCIBonitoState *s = VAR_0; PCIDevice *d = PCI_DEVICE(s); DPRINTF("FUNC_0 "TARGET_FMT_plx" VAR_2 %x\n", VAR_1, VAR_2); d->config_write(d, VAR_1, VAR_2, 4); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PCIBonitoState *s = VAR_0;", "PCIDevice *d = PCI_DEVICE(s);", "DPRINTF(\"FUNC_0 \"TARGET_FMT_plx\" VAR_2 %x\\n\", VAR_1, VAR_2);", "d->config_write(d, VAR_1, VAR_2, 4);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
2,923
void ff_snow_vertical_compose97i_sse2(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, DWTELEM *b3, DWTELEM *b4, DWTELEM *b5, int width){ long i = width; while(i & 0xF) { i--; b4[i] -= (W_DM*(b3[i] + b5[i])+W_DO)>>W_DS; b3[i] -= (W_CM*(b2[i] + b4[i])+W_CO)>>W_CS; b2[i] += (W_B...
true
FFmpeg
3e0f7126b53b395d9e79df57b2e626eb99ad846b
void ff_snow_vertical_compose97i_sse2(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, DWTELEM *b3, DWTELEM *b4, DWTELEM *b5, int width){ long i = width; while(i & 0xF) { i--; b4[i] -= (W_DM*(b3[i] + b5[i])+W_DO)>>W_DS; b3[i] -= (W_CM*(b2[i] + b4[i])+W_CO)>>W_CS; b2[i] += (W_B...
{ "code": [ "void ff_snow_vertical_compose97i_sse2(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, DWTELEM *b3, DWTELEM *b4, DWTELEM *b5, int width){", " while(i & 0xF)", " \"pslld $31, %%xmm1 \\n\\t\"", " \"psrld $29, %%xmm1 \\n\\t\"", "...
void FUNC_0(DWTELEM *VAR_0, DWTELEM *VAR_1, DWTELEM *VAR_2, DWTELEM *VAR_3, DWTELEM *VAR_4, DWTELEM *VAR_5, int VAR_6){ long VAR_7 = VAR_6; while(VAR_7 & 0xF) { VAR_7--; VAR_4[VAR_7] -= (W_DM*(VAR_3[VAR_7] + VAR_5[VAR_7])+W_DO)>>W_DS; VAR_3[VAR_7] -= (W_CM*(VAR_2[VAR_7] + VAR...
[ "void FUNC_0(DWTELEM *VAR_0, DWTELEM *VAR_1, DWTELEM *VAR_2, DWTELEM *VAR_3, DWTELEM *VAR_4, DWTELEM *VAR_5, int VAR_6){", "long VAR_7 = VAR_6;", "while(VAR_7 & 0xF)\n{", "VAR_7--;", "VAR_4[VAR_7] -= (W_DM*(VAR_3[VAR_7] + VAR_5[VAR_7])+W_DO)>>W_DS;", "VAR_3[VAR_7] -= (W_CM*(VAR_2[VAR_7] + VAR_4[VAR_7])+W_...
[ 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1 ], [ 3 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29, 33, 35, 39, 41, 43, 45, 47, 51, 53, 55, 57, 61, 63, 65, 67, 69, 71, 73...
2,924
int qemu_fclose(QEMUFile *f) { int ret = 0; qemu_fflush(f); if (f->close) ret = f->close(f->opaque); g_free(f); return ret; }
true
qemu
d82ca915875ac55ba291435f7eb4fe7bfcb2cecb
int qemu_fclose(QEMUFile *f) { int ret = 0; qemu_fflush(f); if (f->close) ret = f->close(f->opaque); g_free(f); return ret; }
{ "code": [ "int qemu_fclose(QEMUFile *f)", " qemu_fflush(f);", " if (f->close)" ], "line_no": [ 1, 7, 9 ] }
int FUNC_0(QEMUFile *VAR_0) { int VAR_1 = 0; qemu_fflush(VAR_0); if (VAR_0->close) VAR_1 = VAR_0->close(VAR_0->opaque); g_free(VAR_0); return VAR_1; }
[ "int FUNC_0(QEMUFile *VAR_0)\n{", "int VAR_1 = 0;", "qemu_fflush(VAR_0);", "if (VAR_0->close)\nVAR_1 = VAR_0->close(VAR_0->opaque);", "g_free(VAR_0);", "return VAR_1;", "}" ]
[ 1, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ] ]
2,925
static bool block_is_active(void *opaque) { return block_mig_state.blk_enable == 1; }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static bool block_is_active(void *opaque) { return block_mig_state.blk_enable == 1; }
{ "code": [], "line_no": [] }
static bool FUNC_0(void *opaque) { return block_mig_state.blk_enable == 1; }
[ "static bool FUNC_0(void *opaque)\n{", "return block_mig_state.blk_enable == 1;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,926
static void filter1(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len) { int i; for (i = 0; i < len; i++) dst[i] -= mul23(src[i], coeff); }
true
FFmpeg
29638d4db90d5e3fc107c1beb40808f53cc7acaa
static void filter1(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len) { int i; for (i = 0; i < len; i++) dst[i] -= mul23(src[i], coeff); }
{ "code": [ "static void filter1(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)" ], "line_no": [ 1 ] }
static void FUNC_0(int32_t *VAR_0, const int32_t *VAR_1, int32_t VAR_2, ptrdiff_t VAR_3) { int VAR_4; for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) VAR_0[VAR_4] -= mul23(VAR_1[VAR_4], VAR_2); }
[ "static void FUNC_0(int32_t *VAR_0, const int32_t *VAR_1, int32_t VAR_2, ptrdiff_t VAR_3)\n{", "int VAR_4;", "for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++)", "VAR_0[VAR_4] -= mul23(VAR_1[VAR_4], VAR_2);", "}" ]
[ 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
2,927
static int mpegts_write_end(AVFormatContext *s) { MpegTSWrite *ts = s->priv_data; MpegTSWriteStream *ts_st; MpegTSService *service; AVStream *st; int i; /* flush current packets */ for(i = 0; i < s->nb_streams; i++) { st = s->streams[i]; ts_st = st->priv_data; ...
true
FFmpeg
0044a8f80df366643bcfaf74011e41a2658c88f8
static int mpegts_write_end(AVFormatContext *s) { MpegTSWrite *ts = s->priv_data; MpegTSWriteStream *ts_st; MpegTSService *service; AVStream *st; int i; for(i = 0; i < s->nb_streams; i++) { st = s->streams[i]; ts_st = st->priv_data; if (ts_st->payload_in...
{ "code": [ " for(i = 0; i < s->nb_streams; i++) {", " st = s->streams[i];", " av_free(st->priv_data);" ], "line_no": [ 19, 21, 59 ] }
static int FUNC_0(AVFormatContext *VAR_0) { MpegTSWrite *ts = VAR_0->priv_data; MpegTSWriteStream *ts_st; MpegTSService *service; AVStream *st; int VAR_1; for(VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) { st = VAR_0->streams[VAR_1]; ts_st = st->priv_data; ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MpegTSWrite *ts = VAR_0->priv_data;", "MpegTSWriteStream *ts_st;", "MpegTSService *service;", "AVStream *st;", "int VAR_1;", "for(VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) {", "st = VAR_0->streams[VAR_1];", "ts_st = st->priv_data;", "if (ts_st-...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
2,928
static int microdvd_probe(AVProbeData *p) { unsigned char c; const uint8_t *ptr = p->buf; int i; if (AV_RB24(ptr) == 0xEFBBBF) ptr += 3; /* skip UTF-8 BOM */ for (i=0; i<3; i++) { if (sscanf(ptr, "{%*d}{}%c", &c) != 1 && sscanf(ptr, "{%*d}{%*d}%c", &c) ...
true
FFmpeg
90fc00a623de44e137fe1601b91356e8cd8bdd54
static int microdvd_probe(AVProbeData *p) { unsigned char c; const uint8_t *ptr = p->buf; int i; if (AV_RB24(ptr) == 0xEFBBBF) ptr += 3; for (i=0; i<3; i++) { if (sscanf(ptr, "{%*d}{}%c", &c) != 1 && sscanf(ptr, "{%*d}{%*d}%c", &c) != 1 && ...
{ "code": [ " ptr += strcspn(ptr, \"\\n\") + 1;", " ptr += strcspn(ptr, \"\\n\") + 1;", " ptr += strcspn(ptr, \"\\n\") + 1;", " ptr += strcspn(ptr, \"\\n\") + 1;", " ptr += strcspn(ptr, \"\\n\") + 1;" ], "line_no": [ 29, 29, 29, 29, 29 ]...
static int FUNC_0(AVProbeData *VAR_0) { unsigned char VAR_1; const uint8_t *VAR_2 = VAR_0->buf; int VAR_3; if (AV_RB24(VAR_2) == 0xEFBBBF) VAR_2 += 3; for (VAR_3=0; VAR_3<3; VAR_3++) { if (sscanf(VAR_2, "{%*d}{}%VAR_1", &VAR_1) != 1 && sscanf(VAR_2, "{%...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "unsigned char VAR_1;", "const uint8_t *VAR_2 = VAR_0->buf;", "int VAR_3;", "if (AV_RB24(VAR_2) == 0xEFBBBF)\nVAR_2 += 3;", "for (VAR_3=0; VAR_3<3; VAR_3++) {", "if (sscanf(VAR_2, \"{%*d}{}%VAR_1\", &VAR_1) != 1 &&", "sscanf(VAR_2, \"{%*d}{%*d}%VAR_1\", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
2,930
static void draw_char(AVCodecContext *avctx, int c) { AnsiContext *s = avctx->priv_data; int fg = s->fg; int bg = s->bg; if ((s->attributes & ATTR_BOLD)) fg += 8; if ((s->attributes & ATTR_BLINK)) bg += 8; if ((s->attributes & ATTR_REVERSE)) FFSWAP(int, fg, bg...
false
FFmpeg
6021615bbe393381f23b34a7cd0dcfd1a42687ba
static void draw_char(AVCodecContext *avctx, int c) { AnsiContext *s = avctx->priv_data; int fg = s->fg; int bg = s->bg; if ((s->attributes & ATTR_BOLD)) fg += 8; if ((s->attributes & ATTR_BLINK)) bg += 8; if ((s->attributes & ATTR_REVERSE)) FFSWAP(int, fg, bg...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0, int VAR_1) { AnsiContext *s = VAR_0->priv_data; int VAR_2 = s->VAR_2; int VAR_3 = s->VAR_3; if ((s->attributes & ATTR_BOLD)) VAR_2 += 8; if ((s->attributes & ATTR_BLINK)) VAR_3 += 8; if ((s->attributes & ATTR_REVERSE)) ...
[ "static void FUNC_0(AVCodecContext *VAR_0, int VAR_1)\n{", "AnsiContext *s = VAR_0->priv_data;", "int VAR_2 = s->VAR_2;", "int VAR_3 = s->VAR_3;", "if ((s->attributes & ATTR_BOLD))\nVAR_2 += 8;", "if ((s->attributes & ATTR_BLINK))\nVAR_3 += 8;", "if ((s->attributes & ATTR_REVERSE))\nFFSWAP(int, VAR_2, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
2,931
static av_always_inline int vorbis_residue_decode_internal(vorbis_context *vc, vorbis_residue *vr, unsigned ch, uint8_t *do_not_decode, ...
false
FFmpeg
0025f7408a0fab2cab4a950064e4784a67463994
static av_always_inline int vorbis_residue_decode_internal(vorbis_context *vc, vorbis_residue *vr, unsigned ch, uint8_t *do_not_decode, ...
{ "code": [], "line_no": [] }
static av_always_inline int FUNC_0(vorbis_context *vc, vorbis_residue *vr, unsigned ch, uint8_t *do_not_decode, ...
[ "static av_always_inline int FUNC_0(vorbis_context *vc,\nvorbis_residue *vr,\nunsigned ch,\nuint8_t *do_not_decode,\nfloat *vec,\nunsigned vlen,\nunsigned ch_left,\nint vr_type)\n{", "GetBitContext *gb = &vc->gb;", "unsigned VAR_0 = vc->codebooks[vr->classbook].dimensions;", "uint8_t *classifs = vr->cl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
2,932
static int init_quantization_noise(DCAEncContext *c, int noise) { int ch, band, ret = 0; c->consumed_bits = 132 + 493 * c->fullband_channels; if (c->lfe_channel) c->consumed_bits += 72; /* attempt to guess the bit distribution based on the prevoius frame */ for (ch = 0; ch < c->fu...
false
FFmpeg
a6191d098a03f94685ae4c072bfdf10afcd86223
static int init_quantization_noise(DCAEncContext *c, int noise) { int ch, band, ret = 0; c->consumed_bits = 132 + 493 * c->fullband_channels; if (c->lfe_channel) c->consumed_bits += 72; for (ch = 0; ch < c->fullband_channels; ch++) { for (band = 0; band < 32; band++) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(DCAEncContext *VAR_0, int VAR_1) { int VAR_2, VAR_3, VAR_4 = 0; VAR_0->consumed_bits = 132 + 493 * VAR_0->fullband_channels; if (VAR_0->lfe_channel) VAR_0->consumed_bits += 72; for (VAR_2 = 0; VAR_2 < VAR_0->fullband_channels; VAR_2++) { for (VAR_3 = 0;...
[ "static int FUNC_0(DCAEncContext *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4 = 0;", "VAR_0->consumed_bits = 132 + 493 * VAR_0->fullband_channels;", "if (VAR_0->lfe_channel)\nVAR_0->consumed_bits += 72;", "for (VAR_2 = 0; VAR_2 < VAR_0->fullband_channels; VAR_2++) {", "for (VAR_3 = 0; VAR_3 < 32; 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, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
2,933
static void hevc_await_progress(HEVCContext *s, HEVCFrame *ref, const Mv *mv, int y0, int height) { int y = FFMAX(0, (mv->y >> 2) + y0 + height + 9); if (s->threads_type == FF_THREAD_FRAME ) ff_thread_await_progress(&ref->tf, y, 0); }
false
FFmpeg
b77e26b28525f366c5f978214b230a5324bedf81
static void hevc_await_progress(HEVCContext *s, HEVCFrame *ref, const Mv *mv, int y0, int height) { int y = FFMAX(0, (mv->y >> 2) + y0 + height + 9); if (s->threads_type == FF_THREAD_FRAME ) ff_thread_await_progress(&ref->tf, y, 0); }
{ "code": [], "line_no": [] }
static void FUNC_0(HEVCContext *VAR_0, HEVCFrame *VAR_1, const Mv *VAR_2, int VAR_3, int VAR_4) { int VAR_5 = FFMAX(0, (VAR_2->VAR_5 >> 2) + VAR_3 + VAR_4 + 9); if (VAR_0->threads_type == FF_THREAD_FRAME ) ff_thread_await_progress(&VAR_1->tf, VAR_5, 0); }
[ "static void FUNC_0(HEVCContext *VAR_0, HEVCFrame *VAR_1,\nconst Mv *VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5 = FFMAX(0, (VAR_2->VAR_5 >> 2) + VAR_3 + VAR_4 + 9);", "if (VAR_0->threads_type == FF_THREAD_FRAME )\nff_thread_await_progress(&VAR_1->tf, VAR_5, 0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 15 ] ]
2,934
static inline void h264_loop_filter_luma_intra_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta) { int d; for( d = 0; d < 16; d++ ) { const int p2 = pix[-3*xstride]; const int p1 = pix[-2*xstride]; const int p0 = pix[-1*xstride]; const int q0 = pix[ 0*xstrid...
false
FFmpeg
3f50965b28d0c4ef10dde0bf2f7a9f78fa36b378
static inline void h264_loop_filter_luma_intra_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta) { int d; for( d = 0; d < 16; d++ ) { const int p2 = pix[-3*xstride]; const int p1 = pix[-2*xstride]; const int p0 = pix[-1*xstride]; const int q0 = pix[ 0*xstrid...
{ "code": [], "line_no": [] }
static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5; for( VAR_5 = 0; VAR_5 < 16; VAR_5++ ) { const int VAR_6 = VAR_0[-3*VAR_1]; const int VAR_7 = VAR_0[-2*VAR_1]; const int VAR_8 = VAR_0[-1*VAR_1]; const int VAR_9 = VAR_0[ 0*...
[ "static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5;", "for( VAR_5 = 0; VAR_5 < 16; VAR_5++ ) {", "const int VAR_6 = VAR_0[-3*VAR_1];", "const int VAR_7 = VAR_0[-2*VAR_1];", "const int VAR_8 = VAR_0[-1*VAR_1];", "const int VAR_9 = VAR_0[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [...
2,935
void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt, int (*compare)(AVFormatContext *, AVPacket *, AVPacket *)) { AVPacketList **next_point, *this_pktl; this_pktl = av_mallocz(sizeof(AVPacketList)); this_pktl->pkt = *pkt; #if FF_API_DESTRUCT_PACKET FF_...
false
FFmpeg
324ff59444ff5470bb325ff1e2be7c4b054fc944
void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt, int (*compare)(AVFormatContext *, AVPacket *, AVPacket *)) { AVPacketList **next_point, *this_pktl; this_pktl = av_mallocz(sizeof(AVPacketList)); this_pktl->pkt = *pkt; #if FF_API_DESTRUCT_PACKET FF_...
{ "code": [], "line_no": [] }
VAR_4voidVAR_4 VAR_4ff_interleave_add_packetVAR_4(VAR_4AVFormatContextVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVPacketVAR_4 *VAR_4VAR_1VAR_4, VAR_4intVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFormatContextVAR_4 *, VAR_4AVPacketVAR_4 *, VAR_4AVPacketVAR_4 *)) { VAR_4AVPacketListVAR_4 **VAR_4next_pointVAR...
[ "VAR_4voidVAR_4 VAR_4ff_interleave_add_packetVAR_4(VAR_4AVFormatContextVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVPacketVAR_4 *VAR_4VAR_1VAR_4,\nVAR_4intVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFormatContextVAR_4 *, VAR_4AVPacketVAR_4 *, VAR_4AVPacketVAR_4 *))\n{", "VAR_4AVPacketListVAR_4 **VAR_4next_pointVAR_4, *VAR_4this_pktlVAR_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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53...
2,937
static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s, AVFrame *frame) { int x, y; unsigned char P[2]; unsigned int flags; /* 2-color encoding */ P[0] = bytestream2_get_byte(&s->stream_ptr); P[1] = bytestream2_get_byte(&s->stream_ptr); if (P[0] <= P[1]) { /* need 8 more bytes ...
true
FFmpeg
8eb76217d0137b7adad438f6c923310fbc1fc4c1
static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s, AVFrame *frame) { int x, y; unsigned char P[2]; unsigned int flags; P[0] = bytestream2_get_byte(&s->stream_ptr); P[1] = bytestream2_get_byte(&s->stream_ptr); if (P[0] <= P[1]) { for (y = 0; y < 8; y++) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(IpvideoContext *VAR_0, AVFrame *VAR_1) { int VAR_2, VAR_3; unsigned char VAR_4[2]; unsigned int VAR_5; VAR_4[0] = bytestream2_get_byte(&VAR_0->stream_ptr); VAR_4[1] = bytestream2_get_byte(&VAR_0->stream_ptr); if (VAR_4[0] <= VAR_4[1]) { for (VAR_3 = 0; VAR...
[ "static int FUNC_0(IpvideoContext *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2, VAR_3;", "unsigned char VAR_4[2];", "unsigned int VAR_5;", "VAR_4[0] = bytestream2_get_byte(&VAR_0->stream_ptr);", "VAR_4[1] = bytestream2_get_byte(&VAR_0->stream_ptr);", "if (VAR_4[0] <= VAR_4[1]) {", "for (VAR_3 = 0; VAR_3 < ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 7 ], [ 8 ], [ 9 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 18 ], [ 19 ], [ 20 ], [ 21, 22, 23, 24 ], [ 25 ], [ ...
2,938
void nvdimm_build_acpi(GArray *table_offsets, GArray *table_data, BIOSLinker *linker, GArray *dsm_dma_arrea, uint32_t ram_slots) { GSList *device_list; device_list = nvdimm_get_plugged_device_list(); /* NVDIMM device is plugged. */ if (device_list...
true
qemu
75b0713e189a981e5bfd087d5f35705446bbb12a
void nvdimm_build_acpi(GArray *table_offsets, GArray *table_data, BIOSLinker *linker, GArray *dsm_dma_arrea, uint32_t ram_slots) { GSList *device_list; device_list = nvdimm_get_plugged_device_list(); if (device_list) { nvdimm_build_nfit(...
{ "code": [ " BIOSLinker *linker, GArray *dsm_dma_arrea,", " GSList *device_list;", " device_list = nvdimm_get_plugged_device_list();", " if (device_list) {", " nvdimm_build_nfit(device_list, table_offsets, table_data, linker);", " g_slist_free(devi...
void FUNC_0(GArray *VAR_0, GArray *VAR_1, BIOSLinker *VAR_2, GArray *VAR_3, uint32_t VAR_4) { GSList *device_list; device_list = nvdimm_get_plugged_device_list(); if (device_list) { nvdimm_build_nfit(device_list, VAR_0, VAR_1, VAR_2); ...
[ "void FUNC_0(GArray *VAR_0, GArray *VAR_1,\nBIOSLinker *VAR_2, GArray *VAR_3,\nuint32_t VAR_4)\n{", "GSList *device_list;", "device_list = nvdimm_get_plugged_device_list();", "if (device_list) {", "nvdimm_build_nfit(device_list, VAR_0, VAR_1, VAR_2);", "g_slist_free(device_list);", "}", "if (VAR_4) {"...
[ 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ] ]
2,939
int msmpeg4_decode_picture_header(MpegEncContext * s) { int code; #if 0 { int i; for(i=0; i<s->gb.size_in_bits; i++) printf("%d", get_bits1(&s->gb)); // get_bits1(&s->gb); printf("END\n"); #endif if(s->msmpeg4_version==1){ int start_code, num; start_code = (get_bits(&s-...
true
FFmpeg
ae2d2d6c41c3b55ba06a021a3681a3173502423f
int msmpeg4_decode_picture_header(MpegEncContext * s) { int code; #if 0 { int i; for(i=0; i<s->gb.size_in_bits; i++) printf("%d", get_bits1(&s->gb)); printf("END\n"); #endif if(s->msmpeg4_version==1){ int start_code, num; start_code = (get_bits(&s->gb, 16)<<16) | get_bits...
{ "code": [], "line_no": [] }
int FUNC_0(MpegEncContext * VAR_0) { int VAR_1; #if 0 { int i; for(i=0; i<VAR_0->gb.size_in_bits; i++) printf("%d", get_bits1(&VAR_0->gb)); printf("END\n"); #endif if(VAR_0->msmpeg4_version==1){ int VAR_2, VAR_3; VAR_2 = (get_bits(&VAR_0->gb, 16)<<16) | get_bits(&VAR_0->g...
[ "int FUNC_0(MpegEncContext * VAR_0)\n{", "int VAR_1;", "#if 0\n{", "int i;", "for(i=0; i<VAR_0->gb.size_in_bits; i++)", "printf(\"%d\", get_bits1(&VAR_0->gb));", "printf(\"END\\n\");", "#endif\nif(VAR_0->msmpeg4_version==1){", "int VAR_2, VAR_3;", "VAR_2 = (get_bits(&VAR_0->gb, 16)<<16) | get_bits...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 25, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 48 ], [ 50, 52 ], [ 54 ], [ 58, 60 ], [ 62...
2,940
int64_t qcow2_alloc_clusters(BlockDriverState *bs, int64_t size) { int64_t offset; int ret; BLKDBG_EVENT(bs->file, BLKDBG_CLUSTER_ALLOC); offset = alloc_clusters_noref(bs, size); if (offset < 0) { return offset; } ret = update_refcount(bs, offset, size, 1, QCOW2_DISCARD_...
true
qemu
b106ad9185f35fc4ad669555ad0e79e276083bd7
int64_t qcow2_alloc_clusters(BlockDriverState *bs, int64_t size) { int64_t offset; int ret; BLKDBG_EVENT(bs->file, BLKDBG_CLUSTER_ALLOC); offset = alloc_clusters_noref(bs, size); if (offset < 0) { return offset; } ret = update_refcount(bs, offset, size, 1, QCOW2_DISCARD_...
{ "code": [ " offset = alloc_clusters_noref(bs, size);", " if (offset < 0) {", " return offset;", " ret = update_refcount(bs, offset, size, 1, QCOW2_DISCARD_NEVER);" ], "line_no": [ 13, 15, 17, 23 ] }
int64_t FUNC_0(BlockDriverState *bs, int64_t size) { int64_t offset; int VAR_0; BLKDBG_EVENT(bs->file, BLKDBG_CLUSTER_ALLOC); offset = alloc_clusters_noref(bs, size); if (offset < 0) { return offset; } VAR_0 = update_refcount(bs, offset, size, 1, QCOW2_DISCARD_NEVER); ...
[ "int64_t FUNC_0(BlockDriverState *bs, int64_t size)\n{", "int64_t offset;", "int VAR_0;", "BLKDBG_EVENT(bs->file, BLKDBG_CLUSTER_ALLOC);", "offset = alloc_clusters_noref(bs, size);", "if (offset < 0) {", "return offset;", "}", "VAR_0 = update_refcount(bs, offset, size, 1, QCOW2_DISCARD_NEVER);", "...
[ 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
2,941
void vm_stop(int reason) { do_vm_stop(reason); }
true
qemu
12d4536f7d911b6d87a766ad7300482ea663cea2
void vm_stop(int reason) { do_vm_stop(reason); }
{ "code": [ "void vm_stop(int reason)", " do_vm_stop(reason);" ], "line_no": [ 1, 5 ] }
void FUNC_0(int VAR_0) { do_vm_stop(VAR_0); }
[ "void FUNC_0(int VAR_0)\n{", "do_vm_stop(VAR_0);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,942
int virtio_bus_device_plugged(VirtIODevice *vdev) { DeviceState *qdev = DEVICE(vdev); BusState *qbus = BUS(qdev_get_parent_bus(qdev)); VirtioBusState *bus = VIRTIO_BUS(qbus); VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); DPRIN...
true
qemu
e83980455c8c7eb066405de512be7c4bace3ac4d
int virtio_bus_device_plugged(VirtIODevice *vdev) { DeviceState *qdev = DEVICE(vdev); BusState *qbus = BUS(qdev_get_parent_bus(qdev)); VirtioBusState *bus = VIRTIO_BUS(qbus); VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); DPRIN...
{ "code": [ "int virtio_bus_device_plugged(VirtIODevice *vdev)", " klass->device_plugged(qbus->parent);", " return 0;" ], "line_no": [ 1, 23, 35 ] }
int FUNC_0(VirtIODevice *VAR_0) { DeviceState *qdev = DEVICE(VAR_0); BusState *qbus = BUS(qdev_get_parent_bus(qdev)); VirtioBusState *bus = VIRTIO_BUS(qbus); VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(VAR_0); DPRINTF("%s: plug dev...
[ "int FUNC_0(VirtIODevice *VAR_0)\n{", "DeviceState *qdev = DEVICE(VAR_0);", "BusState *qbus = BUS(qdev_get_parent_bus(qdev));", "VirtioBusState *bus = VIRTIO_BUS(qbus);", "VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus);", "VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(VAR_0);", "DPRINTF(\"%s: plug...
[ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
2,944
static int config_input_props(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; Frei0rContext *s = ctx->priv; if (!(s->instance = s->construct(inlink->w, inlink->h))) { av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance"); return AVERROR(EINVAL); } ...
true
FFmpeg
d371c3c2e2830d9783465ecfe1ab7d93351083b7
static int config_input_props(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; Frei0rContext *s = ctx->priv; if (!(s->instance = s->construct(inlink->w, inlink->h))) { av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance"); return AVERROR(EINVAL); } ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0) { AVFilterContext *ctx = VAR_0->dst; Frei0rContext *s = ctx->priv; if (!(s->instance = s->construct(VAR_0->w, VAR_0->h))) { av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance"); return AVERROR(EINVAL); } return set_param...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "AVFilterContext *ctx = VAR_0->dst;", "Frei0rContext *s = ctx->priv;", "if (!(s->instance = s->construct(VAR_0->w, VAR_0->h))) {", "av_log(ctx, AV_LOG_ERROR, \"Impossible to load frei0r instance\");", "return AVERROR(EINVAL);", "}", "return set_params(ctx, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
2,945
int qdev_prop_check_globals(void) { GlobalProperty *prop; int ret = 0; QTAILQ_FOREACH(prop, &global_props, next) { ObjectClass *oc; DeviceClass *dc; if (prop->used) { continue; } if (!prop->user_provided) { continue; } ...
true
qemu
f9a8b5530d438f836f9697639814f585aaec554d
int qdev_prop_check_globals(void) { GlobalProperty *prop; int ret = 0; QTAILQ_FOREACH(prop, &global_props, next) { ObjectClass *oc; DeviceClass *dc; if (prop->used) { continue; } if (!prop->user_provided) { continue; } ...
{ "code": [ " GlobalProperty *prop;", " QTAILQ_FOREACH(prop, &global_props, next) {", " GlobalProperty *prop;", " QTAILQ_FOREACH(prop, &global_props, next) {" ], "line_no": [ 5, 11, 5, 11 ] }
int FUNC_0(void) { GlobalProperty *prop; int VAR_0 = 0; QTAILQ_FOREACH(prop, &global_props, next) { ObjectClass *oc; DeviceClass *dc; if (prop->used) { continue; } if (!prop->user_provided) { continue; } oc = obje...
[ "int FUNC_0(void)\n{", "GlobalProperty *prop;", "int VAR_0 = 0;", "QTAILQ_FOREACH(prop, &global_props, next) {", "ObjectClass *oc;", "DeviceClass *dc;", "if (prop->used) {", "continue;", "}", "if (!prop->user_provided) {", "continue;", "}", "oc = object_class_by_name(prop->driver);", "oc =...
[ 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], ...
2,947
static inline void RENAME(rgb32ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int i; assert(src1==src2); for(i=0; i<width; i++) { const int a= ((uint32_t*)src1)[2*i+0]; const int e= ((uint32_t*)src1)[2*i+1]; const int l= (a&0xFF00FF) + (e&0xFF00FF); const int ...
true
FFmpeg
2da0d70d5eebe42f9fcd27ee554419ebe2a5da06
static inline void RENAME(rgb32ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int i; assert(src1==src2); for(i=0; i<width; i++) { const int a= ((uint32_t*)src1)[2*i+0]; const int e= ((uint32_t*)src1)[2*i+1]; const int l= (a&0xFF00FF) + (e&0xFF00FF); const int ...
{ "code": [ "\tint i;", "\tint i;", "\tint i;", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", ...
static inline void FUNC_0(rgb32ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int VAR_0; assert(src1==src2); for(VAR_0=0; VAR_0<width; VAR_0++) { const int a= ((uint32_t*)src1)[2*VAR_0+0]; const int e= ((uint32_t*)src1)[2*VAR_0+1]; const int l= (a&0xFF00FF) + (e&...
[ "static inline void FUNC_0(rgb32ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)\n{", "int VAR_0;", "assert(src1==src2);", "for(VAR_0=0; VAR_0<width; VAR_0++)", "{", "const int a= ((uint32_t*)src1)[2*VAR_0+0];", "const int e= ((uint32_t*)src1)[2*VAR_0+1];", "const int l= (a...
[ 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
2,949
static av_cold void init_vlcs(FourXContext *f) { static VLC_TYPE table[8][32][2]; int i; for (i = 0; i < 8; i++) { block_type_vlc[0][i].table = table[i]; block_type_vlc[0][i].table_allocated = 32; init_vlc(&block_type_vlc[0][i], BLOCK_TYPE_VLC_BITS, 7, ...
true
FFmpeg
acb2c79c2102026747468dcafa6780ab1094b3c5
static av_cold void init_vlcs(FourXContext *f) { static VLC_TYPE table[8][32][2]; int i; for (i = 0; i < 8; i++) { block_type_vlc[0][i].table = table[i]; block_type_vlc[0][i].table_allocated = 32; init_vlc(&block_type_vlc[0][i], BLOCK_TYPE_VLC_BITS, 7, ...
{ "code": [ " static VLC_TYPE table[8][32][2];", " int i;", " for (i = 0; i < 8; i++) {", " block_type_vlc[0][i].table = table[i];", " block_type_vlc[0][i].table_allocated = 32;", " init_vlc(&block_type_vlc[0][i], BLOCK_TYPE_VLC_BITS, 7,", " ...
static av_cold void FUNC_0(FourXContext *f) { static VLC_TYPE VAR_0[8][32][2]; int VAR_1; for (VAR_1 = 0; VAR_1 < 8; VAR_1++) { block_type_vlc[0][VAR_1].VAR_0 = VAR_0[VAR_1]; block_type_vlc[0][VAR_1].table_allocated = 32; init_vlc(&block_type_vlc[0][VAR_1], BLOCK_T...
[ "static av_cold void FUNC_0(FourXContext *f)\n{", "static VLC_TYPE VAR_0[8][32][2];", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < 8; VAR_1++) {", "block_type_vlc[0][VAR_1].VAR_0 = VAR_0[VAR_1];", "block_type_vlc[0][VAR_1].table_allocated = 32;", "init_vlc(&block_type_vlc[0][VAR_1], BLOCK_TYPE_VLC_B...
[ 0, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25 ] ]
2,951
static BlockAIOCB *blkverify_aio_writev(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { BDRVBlkverifyState *s = bs->opaque; BlkverifyAIOCB *acb = blkverify_aio_get(bs, true, sector_num, qiov, ...
true
qemu
44b6789299a8acca3f25331bc411055cafc7bb06
static BlockAIOCB *blkverify_aio_writev(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { BDRVBlkverifyState *s = bs->opaque; BlkverifyAIOCB *acb = blkverify_aio_get(bs, true, sector_num, qiov, ...
{ "code": [ " int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,", " BlockCompletionFunc *cb, void *opaque)", " BDRVBlkverifyState *s = bs->opaque;", " nb_sectors, cb, opaque);", " return &acb->common;", "static BlockAIOCB *bl...
static BlockAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { BDRVBlkverifyState *s = bs->opaque; BlkverifyAIOCB *acb = blkverify_aio_get(bs, true, sector_num, qiov, ...
[ "static BlockAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockCompletionFunc *cb, void *opaque)\n{", "BDRVBlkverifyState *s = bs->opaque;", "BlkverifyAIOCB *acb = blkverify_aio_get(bs, true, sector_num, qiov,\nnb_sectors, cb, opaque);", "bdrv_aio_writev(s->tes...
[ 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27 ] ]
2,952
static int coroutine_fn bdrv_driver_preadv(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BlockDriver *drv = bs->drv; int64_t sector_num; unsigned int nb_sectors; if (drv->bdrv_...
true
qemu
fa166538743d4e28de7374c41332c3e448826f4b
static int coroutine_fn bdrv_driver_preadv(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BlockDriver *drv = bs->drv; int64_t sector_num; unsigned int nb_sectors; if (drv->bdrv_...
{ "code": [], "line_no": [] }
static int VAR_0 bdrv_driver_preadv(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BlockDriver *drv = bs->drv; int64_t sector_num; unsigned int nb_sectors; if (drv->bdrv_co_prea...
[ "static int VAR_0 bdrv_driver_preadv(BlockDriverState *bs,\nuint64_t offset, uint64_t bytes,\nQEMUIOVector *qiov, int flags)\n{", "BlockDriver *drv = bs->drv;", "int64_t sector_num;", "unsigned int nb_sectors;", "if (drv->bdrv_co_preadv) {", "return drv->bdrv_co_preadv(bs, offset, bytes, qiov, flags);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21, 22 ], [ ...
2,953
static void bdrv_close(BlockDriverState *bs) { BdrvAioNotifier *ban, *ban_next; assert(!bs->job); assert(!bs->refcnt); bdrv_drained_begin(bs); /* complete I/O */ bdrv_flush(bs); bdrv_drain(bs); /* in case flush left pending I/O */ if (bs->drv) { BdrvChild *child, *next...
true
qemu
50a3efb0f05bcfbe04201d4ebac0b96551a1b551
static void bdrv_close(BlockDriverState *bs) { BdrvAioNotifier *ban, *ban_next; assert(!bs->job); assert(!bs->refcnt); bdrv_drained_begin(bs); bdrv_flush(bs); bdrv_drain(bs); if (bs->drv) { BdrvChild *child, *next; bs->drv->bdrv_close(bs); bs->drv...
{ "code": [ " BdrvChild *child, *next;", " bdrv_set_backing_hd(bs, NULL, &error_abort);", " if (bs->file != NULL) {", " bdrv_unref_child(bs, bs->file);", " bs->file = NULL;", " QLIST_FOREACH_SAFE(child, &bs->children, next, next) {", " ...
static void FUNC_0(BlockDriverState *VAR_0) { BdrvAioNotifier *ban, *ban_next; assert(!VAR_0->job); assert(!VAR_0->refcnt); bdrv_drained_begin(VAR_0); bdrv_flush(VAR_0); bdrv_drain(VAR_0); if (VAR_0->drv) { BdrvChild *child, *next; VAR_0->drv->FUNC_0(VAR_0...
[ "static void FUNC_0(BlockDriverState *VAR_0)\n{", "BdrvAioNotifier *ban, *ban_next;", "assert(!VAR_0->job);", "assert(!VAR_0->refcnt);", "bdrv_drained_begin(VAR_0);", "bdrv_flush(VAR_0);", "bdrv_drain(VAR_0);", "if (VAR_0->drv) {", "BdrvChild *child, *next;", "VAR_0->drv->FUNC_0(VAR_0);", "VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 55 ], [ 57 ], [ 59...
2,954
static void kvm_add_routing_entry(KVMState *s, struct kvm_irq_routing_entry *entry) { struct kvm_irq_routing_entry *new; int n, size; if (s->irq_routes->nr == s->nr_allocated_irq_routes) { n = s->nr_allocated_irq_routes * 2; if (n < 64) { ...
true
qemu
0fbc20740342713f282b118b4a446c4c43df3f4a
static void kvm_add_routing_entry(KVMState *s, struct kvm_irq_routing_entry *entry) { struct kvm_irq_routing_entry *new; int n, size; if (s->irq_routes->nr == s->nr_allocated_irq_routes) { n = s->nr_allocated_irq_routes * 2; if (n < 64) { ...
{ "code": [ " memset(new, 0, sizeof(*new));", " new->gsi = entry->gsi;", " new->type = entry->type;", " new->flags = entry->flags;", " new->u = entry->u;" ], "line_no": [ 37, 39, 41, 43, 45 ] }
static void FUNC_0(KVMState *VAR_0, struct kvm_irq_routing_entry *VAR_1) { struct kvm_irq_routing_entry *VAR_2; int VAR_3, VAR_4; if (VAR_0->irq_routes->nr == VAR_0->nr_allocated_irq_routes) { VAR_3 = VAR_0->nr_allocated_irq_routes * 2; if (VAR_3 < ...
[ "static void FUNC_0(KVMState *VAR_0,\nstruct kvm_irq_routing_entry *VAR_1)\n{", "struct kvm_irq_routing_entry *VAR_2;", "int VAR_3, VAR_4;", "if (VAR_0->irq_routes->nr == VAR_0->nr_allocated_irq_routes) {", "VAR_3 = VAR_0->nr_allocated_irq_routes * 2;", "if (VAR_3 < 64) {", "VAR_3 = 64;", "}", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
2,955
PCA *ff_pca_init(int n){ PCA *pca; if(n<=0) pca= av_mallocz(sizeof(*pca)); pca->n= n; pca->z = av_malloc_array(n, sizeof(*pca->z)); pca->count=0; pca->covariance= av_calloc(n*n, sizeof(double)); pca->mean= av_calloc(n, sizeof(double)); return pca;
true
FFmpeg
dadc43eee4d9036aa532665a04720238cc15e922
PCA *ff_pca_init(int n){ PCA *pca; if(n<=0) pca= av_mallocz(sizeof(*pca)); pca->n= n; pca->z = av_malloc_array(n, sizeof(*pca->z)); pca->count=0; pca->covariance= av_calloc(n*n, sizeof(double)); pca->mean= av_calloc(n, sizeof(double)); return pca;
{ "code": [], "line_no": [] }
PCA *FUNC_0(int n){ PCA *pca; if(n<=0) pca= av_mallocz(sizeof(*pca)); pca->n= n; pca->z = av_malloc_array(n, sizeof(*pca->z)); pca->count=0; pca->covariance= av_calloc(n*n, sizeof(double)); pca->mean= av_calloc(n, sizeof(double)); return pca;
[ "PCA *FUNC_0(int n){", "PCA *pca;", "if(n<=0)\npca= av_mallocz(sizeof(*pca));", "pca->n= n;", "pca->z = av_malloc_array(n, sizeof(*pca->z));", "pca->count=0;", "pca->covariance= av_calloc(n*n, sizeof(double));", "pca->mean= av_calloc(n, sizeof(double));", "return pca;" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 2 ], [ 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ] ]
2,956
static int nuv_header(AVFormatContext *s) { NUVContext *ctx = s->priv_data; AVIOContext *pb = s->pb; char id_string[12]; double aspect, fps; int is_mythtv, width, height, v_packs, a_packs, ret; AVStream *vst = NULL, *ast = NULL; avio_read(pb, id_string, 12); is_mythtv = !memcm...
false
FFmpeg
f748e3b5a219061db021d8b6b7ebb097c65f23c5
static int nuv_header(AVFormatContext *s) { NUVContext *ctx = s->priv_data; AVIOContext *pb = s->pb; char id_string[12]; double aspect, fps; int is_mythtv, width, height, v_packs, a_packs, ret; AVStream *vst = NULL, *ast = NULL; avio_read(pb, id_string, 12); is_mythtv = !memcm...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { NUVContext *ctx = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; char VAR_1[12]; double VAR_2, VAR_3; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; AVStream *vst = NULL, *ast = NULL; avio_read(pb, VAR_1, 12); VAR_4 = !memcmp(VAR_1, "...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "NUVContext *ctx = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "char VAR_1[12];", "double VAR_2, VAR_3;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "AVStream *vst = NULL, *ast = NULL;", "avio_read(pb, VAR_1, 12);", "VAR_4 = !memcmp(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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [...
2,957
setup_return(CPUARMState *env, struct target_sigaction *ka, abi_ulong *rc, abi_ulong frame_addr, int usig, abi_ulong rc_addr) { abi_ulong handler = ka->_sa_handler; abi_ulong retcode; int thumb = handler & 1; uint32_t cpsr = cpsr_read(env); cpsr &= ~CPSR_IT; if (thumb) { cpsr |= CPSR_T; } els...
true
qemu
0188fadb7fe460d8c4c743372b1f7b25773e183e
setup_return(CPUARMState *env, struct target_sigaction *ka, abi_ulong *rc, abi_ulong frame_addr, int usig, abi_ulong rc_addr) { abi_ulong handler = ka->_sa_handler; abi_ulong retcode; int thumb = handler & 1; uint32_t cpsr = cpsr_read(env); cpsr &= ~CPSR_IT; if (thumb) { cpsr |= CPSR_T; } els...
{ "code": [ "\t\tif (__put_user(retcodes[idx], rc))", "\t\t\treturn 1;", "\treturn 0;" ], "line_no": [ 47, 49, 71 ] }
FUNC_0(CPUARMState *VAR_0, struct target_sigaction *VAR_1, abi_ulong *VAR_2, abi_ulong VAR_3, int VAR_4, abi_ulong VAR_5) { abi_ulong handler = VAR_1->_sa_handler; abi_ulong retcode; int VAR_6 = handler & 1; uint32_t cpsr = cpsr_read(VAR_0); cpsr &= ~CPSR_IT; if (VAR_6) { cpsr |= CPSR_T; } el...
[ "FUNC_0(CPUARMState *VAR_0, struct target_sigaction *VAR_1,\nabi_ulong *VAR_2, abi_ulong VAR_3, int VAR_4, abi_ulong VAR_5)\n{", "abi_ulong handler = VAR_1->_sa_handler;", "abi_ulong retcode;", "int VAR_6 = handler & 1;", "uint32_t cpsr = cpsr_read(VAR_0);", "cpsr &= ~CPSR_IT;", "if (VAR_6) {", "cpsr ...
[ 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, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47, 49 ], [ 53 ], [...
2,959
static void floor_fit(vorbis_enc_context *venc, vorbis_enc_floor *fc, float *coeffs, uint_fast16_t *posts, int samples) { int range = 255 / fc->multiplier + 1; int i; float tot_average = 0.; float averages[fc->values]; for (i = 0; i < fc->values; i++) { averages...
true
FFmpeg
83b707613181c01fd4e9d25dda6787af439d2e41
static void floor_fit(vorbis_enc_context *venc, vorbis_enc_floor *fc, float *coeffs, uint_fast16_t *posts, int samples) { int range = 255 / fc->multiplier + 1; int i; float tot_average = 0.; float averages[fc->values]; for (i = 0; i < fc->values; i++) { averages...
{ "code": [], "line_no": [] }
static void FUNC_0(vorbis_enc_context *VAR_0, vorbis_enc_floor *VAR_1, float *VAR_2, uint_fast16_t *VAR_3, int VAR_4) { int VAR_5 = 255 / VAR_1->multiplier + 1; int VAR_6; float VAR_7 = 0.; float VAR_8[VAR_1->values]; for (VAR_6 = 0; VAR_6 < VAR_1->values; VAR_6++) { ...
[ "static void FUNC_0(vorbis_enc_context *VAR_0, vorbis_enc_floor *VAR_1,\nfloat *VAR_2, uint_fast16_t *VAR_3, int VAR_4)\n{", "int VAR_5 = 255 / VAR_1->multiplier + 1;", "int VAR_6;", "float VAR_7 = 0.;", "float VAR_8[VAR_1->values];", "for (VAR_6 = 0; VAR_6 < VAR_1->values; VAR_6++) {", "VAR_8[VAR_6] = ...
[ 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 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
2,960
void av_destruct_packet(AVPacket *pkt) { int i; av_free(pkt->data); pkt->data = NULL; pkt->size = 0; for (i = 0; i < pkt->side_data_elems; i++) av_free(pkt->side_data[i].data); av_freep(&pkt->side_data); pkt->side_data_elems = 0; }
true
FFmpeg
c4ba5198ea48f8f648d85a853ea46e29001c12c8
void av_destruct_packet(AVPacket *pkt) { int i; av_free(pkt->data); pkt->data = NULL; pkt->size = 0; for (i = 0; i < pkt->side_data_elems; i++) av_free(pkt->side_data[i].data); av_freep(&pkt->side_data); pkt->side_data_elems = 0; }
{ "code": [ "void av_destruct_packet(AVPacket *pkt)", " av_free(pkt->data);", " pkt->data = NULL; pkt->size = 0;" ], "line_no": [ 1, 9, 11 ] }
void FUNC_0(AVPacket *VAR_0) { int VAR_1; av_free(VAR_0->data); VAR_0->data = NULL; VAR_0->size = 0; for (VAR_1 = 0; VAR_1 < VAR_0->side_data_elems; VAR_1++) av_free(VAR_0->side_data[VAR_1].data); av_freep(&VAR_0->side_data); VAR_0->side_data_elems = 0; }
[ "void FUNC_0(AVPacket *VAR_0)\n{", "int VAR_1;", "av_free(VAR_0->data);", "VAR_0->data = NULL; VAR_0->size = 0;", "for (VAR_1 = 0; VAR_1 < VAR_0->side_data_elems; VAR_1++)", "av_free(VAR_0->side_data[VAR_1].data);", "av_freep(&VAR_0->side_data);", "VAR_0->side_data_elems = 0;", "}" ]
[ 1, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
2,961
GuestFileWrite *qmp_guest_file_write(int64_t handle, const char *buf_b64, bool has_count, int64_t count, Error **errp) { GuestFileWrite *write_data = NULL; guchar *buf; gsize buf_len; int write_count; GuestFileHandle *...
true
qemu
f3a06403b82c7f036564e4caf18b52ce6885fcfb
GuestFileWrite *qmp_guest_file_write(int64_t handle, const char *buf_b64, bool has_count, int64_t count, Error **errp) { GuestFileWrite *write_data = NULL; guchar *buf; gsize buf_len; int write_count; GuestFileHandle *...
{ "code": [ " write_data = g_malloc0(sizeof(GuestFileWrite));", " write_data = g_malloc0(sizeof(GuestFileWrite));" ], "line_no": [ 65, 65 ] }
GuestFileWrite *FUNC_0(int64_t handle, const char *buf_b64, bool has_count, int64_t count, Error **errp) { GuestFileWrite *write_data = NULL; guchar *buf; gsize buf_len; int VAR_0; GuestFileHandle *gfh = guest_file_han...
[ "GuestFileWrite *FUNC_0(int64_t handle, const char *buf_b64,\nbool has_count, int64_t count,\nError **errp)\n{", "GuestFileWrite *write_data = NULL;", "guchar *buf;", "gsize buf_len;", "int VAR_0;", "GuestFileHandle *gfh = guest_file_handle_find(handle, errp);", "FILE *fh;", "if (!gfh) {", "return N...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
2,962
static int rtp_parse_mp4_au(RTPDemuxContext *s, const uint8_t *buf) { int au_headers_length, au_header_size, i; GetBitContext getbitcontext; RTPPayloadData *infos; infos = s->rtp_payload_data; if (infos == NULL) return -1; /* decode the first 2 bytes where the AUHeader sect...
true
FFmpeg
0e4b185a8df12c7b42642699a8df45e0de48de07
static int rtp_parse_mp4_au(RTPDemuxContext *s, const uint8_t *buf) { int au_headers_length, au_header_size, i; GetBitContext getbitcontext; RTPPayloadData *infos; infos = s->rtp_payload_data; if (infos == NULL) return -1; au_headers_length = AV_RB16(buf); if...
{ "code": [], "line_no": [] }
static int FUNC_0(RTPDemuxContext *VAR_0, const uint8_t *VAR_1) { int VAR_2, VAR_3, VAR_4; GetBitContext getbitcontext; RTPPayloadData *infos; infos = VAR_0->rtp_payload_data; if (infos == NULL) return -1; VAR_2 = AV_RB16(VAR_1); if (VAR_2 > RTP_MAX_PACKET_LE...
[ "static int FUNC_0(RTPDemuxContext *VAR_0, const uint8_t *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "GetBitContext getbitcontext;", "RTPPayloadData *infos;", "infos = VAR_0->rtp_payload_data;", "if (infos == NULL)\nreturn -1;", "VAR_2 = AV_RB16(VAR_1);", "if (VAR_2 > RTP_MAX_PACKET_LENGTH)\nreturn -1;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 43 ], [ 47 ], [ 53 ], [ 55, 57 ], [ 61 ], [ 65 ], [ 77 ], [ 79 ], [ 81 ], [...
2,963
static void vc1_mc_4mv_chroma(VC1Context *v, int dir) { MpegEncContext *s = &v->s; H264ChromaContext *h264chroma = &v->h264chroma; uint8_t *srcU, *srcV; int uvmx, uvmy, uvsrc_x, uvsrc_y; int k, tx = 0, ty = 0; int mvx[4], mvy[4], intra[4], mv_f[4]; int valid_count; int chroma_re...
false
FFmpeg
0d194ee51ed477f843900e657a7edbcbecdffa42
static void vc1_mc_4mv_chroma(VC1Context *v, int dir) { MpegEncContext *s = &v->s; H264ChromaContext *h264chroma = &v->h264chroma; uint8_t *srcU, *srcV; int uvmx, uvmy, uvsrc_x, uvsrc_y; int k, tx = 0, ty = 0; int mvx[4], mvy[4], intra[4], mv_f[4]; int valid_count; int chroma_re...
{ "code": [], "line_no": [] }
static void FUNC_0(VC1Context *VAR_0, int VAR_1) { MpegEncContext *s = &VAR_0->s; H264ChromaContext *h264chroma = &VAR_0->h264chroma; uint8_t *srcU, *srcV; int VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6, VAR_7 = 0, VAR_8 = 0; int VAR_9[4], VAR_10[4], VAR_11[4], VAR_12[4]; int VAR_13; ...
[ "static void FUNC_0(VC1Context *VAR_0, int VAR_1)\n{", "MpegEncContext *s = &VAR_0->s;", "H264ChromaContext *h264chroma = &VAR_0->h264chroma;", "uint8_t *srcU, *srcV;", "int VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7 = 0, VAR_8 = 0;", "int VAR_9[4], VAR_10[4], VAR_11[4], VAR_12[4];", "int VAR_13;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
2,966
PPC_OP(addc) { T2 = T0; T0 += T1; if (T0 < T2) { xer_ca = 1; } else { xer_ca = 0; } RETURN(); }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
PPC_OP(addc) { T2 = T0; T0 += T1; if (T0 < T2) { xer_ca = 1; } else { xer_ca = 0; } RETURN(); }
{ "code": [ " RETURN();", "PPC_OP(addc)", " T2 = T0;", " T0 += T1;", " if (T0 < T2) {", " xer_ca = 1;", " } else {", " xer_ca = 0;", " xer_ca = 1;", " } else {", " xer_ca = 0;", " xer_ca = 1;", " } else {", ...
FUNC_0(VAR_0) { T2 = T0; T0 += T1; if (T0 < T2) { xer_ca = 1; } else { xer_ca = 0; } RETURN(); }
[ "FUNC_0(VAR_0)\n{", "T2 = T0;", "T0 += T1;", "if (T0 < T2) {", "xer_ca = 1;", "} else {", "xer_ca = 0;", "}", "RETURN();", "}" ]
[ 1, 1, 1, 1, 1, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
2,968
static void spapr_phb_class_init(ObjectClass *klass, void *data) { PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass); HotplugHandlerClass *hp = HOTPLUG_HANDLER_CLASS(klass); hc->root_bus_path = spapr_phb_root_bus_path; dc->realize = spapr_phb_realiz...
true
qemu
e4f4fb1eca795e36f363b4647724221e774523c1
static void spapr_phb_class_init(ObjectClass *klass, void *data) { PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass); HotplugHandlerClass *hp = HOTPLUG_HANDLER_CLASS(klass); hc->root_bus_path = spapr_phb_root_bus_path; dc->realize = spapr_phb_realiz...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); HotplugHandlerClass *hp = HOTPLUG_HANDLER_CLASS(VAR_0); hc->root_bus_path = spapr_phb_root_bus_path; dc->realize = spapr_phb_realize; dc->p...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "HotplugHandlerClass *hp = HOTPLUG_HANDLER_CLASS(VAR_0);", "hc->root_bus_path = spapr_phb_root_bus_path;", "dc->realize = spapr_phb_realize;", "dc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
2,969
int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_count, const uint8_t *in_arg [SWR_CH_MAX], int in_count){ AudioData * in= &s->in; AudioData *out= &s->out; if (!swr_is_initialized(s)) { av_log(s, AV_LOG_ERROR, "Context has not been i...
true
FFmpeg
adb7372f7495927a226edf9b8e1d0ac9453985ea
int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_count, const uint8_t *in_arg [SWR_CH_MAX], int in_count){ AudioData * in= &s->in; AudioData *out= &s->out; if (!swr_is_initialized(s)) { av_log(s, AV_LOG_ERROR, "Context has not been i...
{ "code": [ "int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_count,", " const uint8_t *in_arg [SWR_CH_MAX], int in_count){" ], "line_no": [ 1, 3 ] }
int FUNC_0(struct SwrContext *VAR_0, uint8_t *VAR_1[SWR_CH_MAX], int VAR_2, const uint8_t *VAR_3 [SWR_CH_MAX], int VAR_4){ AudioData * in= &VAR_0->in; AudioData *out= &VAR_0->out; if (!swr_is_initialized(VAR_0)) { av_log(VAR_0, AV_LOG_ERROR, "Context has not b...
[ "int FUNC_0(struct SwrContext *VAR_0, uint8_t *VAR_1[SWR_CH_MAX], int VAR_2,\nconst uint8_t *VAR_3 [SWR_CH_MAX], int VAR_4){", "AudioData * in= &VAR_0->in;", "AudioData *out= &VAR_0->out;", "if (!swr_is_initialized(VAR_0)) {", "av_log(VAR_0, AV_LOG_ERROR, \"Context has not been initialized\\n\");", "retu...
[ 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
2,970
static void spapr_machine_2_6_class_options(MachineClass *mc) { sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc); spapr_machine_2_7_class_options(mc); smc->dr_cpu_enabled = false; SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_6); }
true
qemu
3c0c47e3464f3c54bd3f1cc6d4da2cbf7465e295
static void spapr_machine_2_6_class_options(MachineClass *mc) { sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc); spapr_machine_2_7_class_options(mc); smc->dr_cpu_enabled = false; SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_6); }
{ "code": [ " sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc);", " smc->dr_cpu_enabled = false;" ], "line_no": [ 5, 11 ] }
static void FUNC_0(MachineClass *VAR_0) { sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(VAR_0); spapr_machine_2_7_class_options(VAR_0); smc->dr_cpu_enabled = false; SET_MACHINE_COMPAT(VAR_0, SPAPR_COMPAT_2_6); }
[ "static void FUNC_0(MachineClass *VAR_0)\n{", "sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(VAR_0);", "spapr_machine_2_7_class_options(VAR_0);", "smc->dr_cpu_enabled = false;", "SET_MACHINE_COMPAT(VAR_0, SPAPR_COMPAT_2_6);", "}" ]
[ 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
2,971
static int mxf_add_metadata_set(MXFContext *mxf, void *metadata_set) { mxf->metadata_sets = av_realloc(mxf->metadata_sets, (mxf->metadata_sets_count + 1) * sizeof(*mxf->metadata_sets)); if (!mxf->metadata_sets) return -1; mxf->metadata_sets[mxf->metadata_sets_count] = metadata_set; mxf->...
true
FFmpeg
b4800b8b7dfba22117d8edd02164b00c83ae3753
static int mxf_add_metadata_set(MXFContext *mxf, void *metadata_set) { mxf->metadata_sets = av_realloc(mxf->metadata_sets, (mxf->metadata_sets_count + 1) * sizeof(*mxf->metadata_sets)); if (!mxf->metadata_sets) return -1; mxf->metadata_sets[mxf->metadata_sets_count] = metadata_set; mxf->...
{ "code": [], "line_no": [] }
static int FUNC_0(MXFContext *VAR_0, void *VAR_1) { VAR_0->metadata_sets = av_realloc(VAR_0->metadata_sets, (VAR_0->metadata_sets_count + 1) * sizeof(*VAR_0->metadata_sets)); if (!VAR_0->metadata_sets) return -1; VAR_0->metadata_sets[VAR_0->metadata_sets_count] = VAR_1; VAR_0->metadata_s...
[ "static int FUNC_0(MXFContext *VAR_0, void *VAR_1)\n{", "VAR_0->metadata_sets = av_realloc(VAR_0->metadata_sets, (VAR_0->metadata_sets_count + 1) * sizeof(*VAR_0->metadata_sets));", "if (!VAR_0->metadata_sets)\nreturn -1;", "VAR_0->metadata_sets[VAR_0->metadata_sets_count] = VAR_1;", "VAR_0->metadata_sets_c...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
2,972
monitor_read_memory (bfd_vma memaddr, bfd_byte *myaddr, int length, struct disassemble_info *info) { CPUDebug *s = container_of(info, CPUDebug, info); if (monitor_disas_is_physical) { cpu_physical_memory_read(memaddr, myaddr, length); } else { cpu_memory_rw_debu...
true
qemu
b8d8720892f7912e8a2621b30ebac0e9a48e89e3
monitor_read_memory (bfd_vma memaddr, bfd_byte *myaddr, int length, struct disassemble_info *info) { CPUDebug *s = container_of(info, CPUDebug, info); if (monitor_disas_is_physical) { cpu_physical_memory_read(memaddr, myaddr, length); } else { cpu_memory_rw_debu...
{ "code": [ "monitor_read_memory (bfd_vma memaddr, bfd_byte *myaddr, int length,", " CPUDebug *s = container_of(info, CPUDebug, info);", " if (monitor_disas_is_physical) {", " cpu_physical_memory_read(memaddr, myaddr, length);", " } else {", " cpu_memory_rw_debug(s->cpu,...
FUNC_0 (bfd_vma VAR_0, bfd_byte *VAR_1, int VAR_2, struct disassemble_info *VAR_3) { CPUDebug *s = container_of(VAR_3, CPUDebug, VAR_3); if (monitor_disas_is_physical) { cpu_physical_memory_read(VAR_0, VAR_1, VAR_2); } else { cpu_memory_rw_debug(s->cpu, VAR_0, V...
[ "FUNC_0 (bfd_vma VAR_0, bfd_byte *VAR_1, int VAR_2,\nstruct disassemble_info *VAR_3)\n{", "CPUDebug *s = container_of(VAR_3, CPUDebug, VAR_3);", "if (monitor_disas_is_physical) {", "cpu_physical_memory_read(VAR_0, VAR_1, VAR_2);", "} else {", "cpu_memory_rw_debug(s->cpu, VAR_0, VAR_1, VAR_2, 0);", "}", ...
[ 1, 1, 1, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
2,974
static int ftp_type(FTPContext *s) { const char *command = "TYPE I\r\n"; const int type_codes[] = {200, 0}; if (!ftp_send_command(s, command, type_codes, NULL)) return AVERROR(EIO); return 0; }
false
FFmpeg
ddbcc48b646737c8bff7f8e28e0a69dca65509cf
static int ftp_type(FTPContext *s) { const char *command = "TYPE I\r\n"; const int type_codes[] = {200, 0}; if (!ftp_send_command(s, command, type_codes, NULL)) return AVERROR(EIO); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(FTPContext *VAR_0) { const char *VAR_1 = "TYPE I\r\n"; const int VAR_2[] = {200, 0}; if (!ftp_send_command(VAR_0, VAR_1, VAR_2, NULL)) return AVERROR(EIO); return 0; }
[ "static int FUNC_0(FTPContext *VAR_0)\n{", "const char *VAR_1 = \"TYPE I\\r\\n\";", "const int VAR_2[] = {200, 0};", "if (!ftp_send_command(VAR_0, VAR_1, VAR_2, NULL))\nreturn AVERROR(EIO);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ] ]
2,975
static int shorten_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ShortenContext *s = avctx->priv_data; int i, input_buf_size...
false
FFmpeg
e20ebe491c17388a312e04ff060c217ecfafc914
static int shorten_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ShortenContext *s = avctx->priv_data; int i, input_buf_size...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { AVFrame *frame = VAR_1; const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; ShortenContext *s = VAR_0->priv_data; int VAR_6, VAR_7 = 0; int VAR_8; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "AVFrame *frame = VAR_1;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "ShortenContext *s = VAR_0->priv_data;", "int VAR_6, VAR_7 = 0;", "int VAR_8;", "if (s->max_framesize == 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ...
2,976
static PCIReqIDCache pci_req_id_cache_get(PCIDevice *dev) { PCIDevice *parent; PCIReqIDCache cache = { .dev = dev, .type = PCI_REQ_ID_BDF, }; while (!pci_bus_is_root(dev->bus)) { /* We are under PCI/PCIe bridges */ parent = dev->bus->parent_dev; if (pc...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static PCIReqIDCache pci_req_id_cache_get(PCIDevice *dev) { PCIDevice *parent; PCIReqIDCache cache = { .dev = dev, .type = PCI_REQ_ID_BDF, }; while (!pci_bus_is_root(dev->bus)) { parent = dev->bus->parent_dev; if (pci_is_express(parent)) { ...
{ "code": [], "line_no": [] }
static PCIReqIDCache FUNC_0(PCIDevice *dev) { PCIDevice *parent; PCIReqIDCache cache = { .dev = dev, .type = PCI_REQ_ID_BDF, }; while (!pci_bus_is_root(dev->bus)) { parent = dev->bus->parent_dev; if (pci_is_express(parent)) { if (pcie_cap...
[ "static PCIReqIDCache FUNC_0(PCIDevice *dev)\n{", "PCIDevice *parent;", "PCIReqIDCache cache = {", ".dev = dev,\n.type = PCI_REQ_ID_BDF,\n};", "while (!pci_bus_is_root(dev->bus)) {", "parent = dev->bus->parent_dev;", "if (pci_is_express(parent)) {", "if (pcie_cap_get_type(parent) == PCI_EXP_TYPE_PCI_B...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11, 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 69 ], [ 71 ...
2,977
static void test_visitor_out_struct_nested(TestOutputVisitorData *data, const void *unused) { int64_t value = 42; Error *err = NULL; UserDefNested *ud2; QObject *obj; QDict *qdict, *dict1, *dict2, *dict3, *userdef; const char *string = "user def...
false
qemu
b6fcf32d9b851a83dedcb609091236b97cc4a985
static void test_visitor_out_struct_nested(TestOutputVisitorData *data, const void *unused) { int64_t value = 42; Error *err = NULL; UserDefNested *ud2; QObject *obj; QDict *qdict, *dict1, *dict2, *dict3, *userdef; const char *string = "user def...
{ "code": [], "line_no": [] }
static void FUNC_0(TestOutputVisitorData *VAR_0, const void *VAR_1) { int64_t value = 42; Error *err = NULL; UserDefNested *ud2; QObject *obj; QDict *qdict, *dict1, *dict2, *dict3, *userdef; const char *VAR_2 = "user def VAR_2"; const char ...
[ "static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "int64_t value = 42;", "Error *err = NULL;", "UserDefNested *ud2;", "QObject *obj;", "QDict *qdict, *dict1, *dict2, *dict3, *userdef;", "const char *VAR_2 = \"user def VAR_2\";", "const char *VAR_3[] = { \"forty two\", \"forty ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
2,979
void bdrv_info_stats(Monitor *mon, QObject **ret_data) { QObject *obj; QList *devices; BlockDriverState *bs; devices = qlist_new(); for (bs = bdrv_first; bs != NULL; bs = bs->next) { obj = qobject_from_jsonf("{ 'device': %s, 'stats': {" "'rd_bytes...
false
qemu
ba14414174b72fa231997243a9650feaa520d054
void bdrv_info_stats(Monitor *mon, QObject **ret_data) { QObject *obj; QList *devices; BlockDriverState *bs; devices = qlist_new(); for (bs = bdrv_first; bs != NULL; bs = bs->next) { obj = qobject_from_jsonf("{ 'device': %s, 'stats': {" "'rd_bytes...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, QObject **VAR_1) { QObject *obj; QList *devices; BlockDriverState *bs; devices = qlist_new(); for (bs = bdrv_first; bs != NULL; bs = bs->next) { obj = qobject_from_jsonf("{ 'device': %s, 'stats': {" "'rd_bytes': %" PRId...
[ "void FUNC_0(Monitor *VAR_0, QObject **VAR_1)\n{", "QObject *obj;", "QList *devices;", "BlockDriverState *bs;", "devices = qlist_new();", "for (bs = bdrv_first; bs != NULL; bs = bs->next) {", "obj = qobject_from_jsonf(\"{ 'device': %s, 'stats': {\"", "\"'rd_bytes': %\" PRId64 \",\"\n\"'wr_bytes': %\" ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27, 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
2,980
static block_number_t eckd_block_num(BootMapPointer *p) { const uint64_t sectors = virtio_get_sectors(); const uint64_t heads = virtio_get_heads(); const uint64_t cylinder = p->eckd.cylinder + ((p->eckd.head & 0xfff0) << 12); const uint64_t head = p->eckd.head & 0x000f;...
false
qemu
f04db28b86654d1c7ff805b40eff27bba6b0f686
static block_number_t eckd_block_num(BootMapPointer *p) { const uint64_t sectors = virtio_get_sectors(); const uint64_t heads = virtio_get_heads(); const uint64_t cylinder = p->eckd.cylinder + ((p->eckd.head & 0xfff0) << 12); const uint64_t head = p->eckd.head & 0x000f;...
{ "code": [], "line_no": [] }
static block_number_t FUNC_0(BootMapPointer *p) { const uint64_t VAR_0 = virtio_get_sectors(); const uint64_t VAR_1 = virtio_get_heads(); const uint64_t VAR_2 = p->eckd.VAR_2 + ((p->eckd.VAR_3 & 0xfff0) << 12); const uint64_t VAR_3 = p->eckd.VAR_3 & 0x000f; const b...
[ "static block_number_t FUNC_0(BootMapPointer *p)\n{", "const uint64_t VAR_0 = virtio_get_sectors();", "const uint64_t VAR_1 = virtio_get_heads();", "const uint64_t VAR_2 = p->eckd.VAR_2\n+ ((p->eckd.VAR_3 & 0xfff0) << 12);", "const uint64_t VAR_3 = p->eckd.VAR_3 & 0x000f;", "const block_number_t VAR_4 = V...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15, 17, 19, 21 ], [ 23 ], [ 25 ] ]
2,983
static int colo_packet_compare_other(Packet *spkt, Packet *ppkt) { trace_colo_compare_main("compare other"); trace_colo_compare_ip_info(ppkt->size, inet_ntoa(ppkt->ip->ip_src), inet_ntoa(ppkt->ip->ip_dst), spkt->size, inet_ntoa(spkt->ip->ip_src)...
false
qemu
2ad7ca4c81733cba5c5c464078a643aba61044f8
static int colo_packet_compare_other(Packet *spkt, Packet *ppkt) { trace_colo_compare_main("compare other"); trace_colo_compare_ip_info(ppkt->size, inet_ntoa(ppkt->ip->ip_src), inet_ntoa(ppkt->ip->ip_dst), spkt->size, inet_ntoa(spkt->ip->ip_src)...
{ "code": [], "line_no": [] }
static int FUNC_0(Packet *VAR_0, Packet *VAR_1) { trace_colo_compare_main("compare other"); trace_colo_compare_ip_info(VAR_1->size, inet_ntoa(VAR_1->ip->ip_src), inet_ntoa(VAR_1->ip->ip_dst), VAR_0->size, inet_ntoa(VAR_0->ip->ip_src), ...
[ "static int FUNC_0(Packet *VAR_0, Packet *VAR_1)\n{", "trace_colo_compare_main(\"compare other\");", "trace_colo_compare_ip_info(VAR_1->size, inet_ntoa(VAR_1->ip->ip_src),\ninet_ntoa(VAR_1->ip->ip_dst), VAR_0->size,\ninet_ntoa(VAR_0->ip->ip_src),\ninet_ntoa(VAR_0->ip->ip_dst));", "return colo_packet_compare(V...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13 ], [ 15 ], [ 17 ] ]
2,984
static inline void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc) { int addr_reg, data_reg, data_reg2, bswap; #ifdef CONFIG_SOFTMMU int mem_index, s_bits; # if TARGET_LONG_BITS == 64 int addr_reg2; # endif uint32_t *label_ptr; #endif #ifdef TARGET_WORDS_BIGENDIAN bswap = 1;...
false
qemu
2633a2d015b0ba57432f1e11970cc080eb5119a3
static inline void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc) { int addr_reg, data_reg, data_reg2, bswap; #ifdef CONFIG_SOFTMMU int mem_index, s_bits; # if TARGET_LONG_BITS == 64 int addr_reg2; # endif uint32_t *label_ptr; #endif #ifdef TARGET_WORDS_BIGENDIAN bswap = 1;...
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; #ifdef CONFIG_SOFTMMU int mem_index, s_bits; # if TARGET_LONG_BITS == 64 int addr_reg2; # endif uint32_t *label_ptr; #endif #ifdef TARGET_WORDS_BIGENDIAN VAR_6 = 1; #else ...
[ "static inline void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "#ifdef CONFIG_SOFTMMU\nint mem_index, s_bits;", "# if TARGET_LONG_BITS == 64\nint addr_reg2;", "# endif\nuint32_t *label_ptr;", "#endif\n#ifdef TARGET_WORDS_BIGENDIAN\nVAR_6 = 1;", "#el...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45, 47, 49 ], [ 51, 53 ], [ 55 ...
2,986
static av_cold int indeo3_decode_init(AVCodecContext *avctx) { Indeo3DecodeContext *s = avctx->priv_data; s->avctx = avctx; s->width = avctx->width; s->height = avctx->height; avctx->pix_fmt = PIX_FMT_YUV410P; build_modpred(s); iv_alloc_frames(s); return 0; }
false
FFmpeg
8b27f76bf8790536afccb96780b5feb9c65636be
static av_cold int indeo3_decode_init(AVCodecContext *avctx) { Indeo3DecodeContext *s = avctx->priv_data; s->avctx = avctx; s->width = avctx->width; s->height = avctx->height; avctx->pix_fmt = PIX_FMT_YUV410P; build_modpred(s); iv_alloc_frames(s); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { Indeo3DecodeContext *s = avctx->priv_data; s->avctx = avctx; s->width = avctx->width; s->height = avctx->height; avctx->pix_fmt = PIX_FMT_YUV410P; build_modpred(s); iv_alloc_frames(s); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "Indeo3DecodeContext *s = avctx->priv_data;", "s->avctx = avctx;", "s->width = avctx->width;", "s->height = avctx->height;", "avctx->pix_fmt = PIX_FMT_YUV410P;", "build_modpred(s);", "iv_alloc_frames(s);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
2,987
static uint32_t cuda_readl (void *opaque, target_phys_addr_t addr) { return 0; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint32_t cuda_readl (void *opaque, target_phys_addr_t addr) { return 0; }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr) { return 0; }
[ "static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr)\n{", "return 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,988
int AES_set_encrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key) { u32 *rk; int i = 0; u32 temp; if (!userKey || !key) return -1; if (bits != 128 && bits != 192 && bits != 256) return -2; rk = key->rd_key; if (bits==128) key->rounds = 10; else if (bits==192) ...
false
qemu
a50c7c869a4fa1c78b4c38d3419566dd25d32e90
int AES_set_encrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key) { u32 *rk; int i = 0; u32 temp; if (!userKey || !key) return -1; if (bits != 128 && bits != 192 && bits != 256) return -2; rk = key->rd_key; if (bits==128) key->rounds = 10; else if (bits==192) ...
{ "code": [], "line_no": [] }
int FUNC_0(const unsigned char *VAR_0, const int VAR_1, AES_KEY *VAR_2) { u32 *rk; int VAR_3 = 0; u32 temp; if (!VAR_0 || !VAR_2) return -1; if (VAR_1 != 128 && VAR_1 != 192 && VAR_1 != 256) return -2; rk = VAR_2->rd_key; if (VAR_1==128) VAR_2->rounds = 10; else if (VAR_1==192) ...
[ "int FUNC_0(const unsigned char *VAR_0, const int VAR_1,\nAES_KEY *VAR_2) {", "u32 *rk;", "int VAR_3 = 0;", "u32 temp;", "if (!VAR_0 || !VAR_2)\nreturn -1;", "if (VAR_1 != 128 && VAR_1 != 192 && VAR_1 != 256)\nreturn -2;", "rk = VAR_2->rd_key;", "if (VAR_1==128)\nVAR_2->rounds = 10;", "else if (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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15, 17 ], [ 19, 21 ], [ 25 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], ...
2,989
static void coroutine_fn mirror_pause(BlockJob *job) { MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); mirror_drain(s); }
false
qemu
bae8196d9f97916de6323e70e3e374362ee16ec4
static void coroutine_fn mirror_pause(BlockJob *job) { MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); mirror_drain(s); }
{ "code": [], "line_no": [] }
static void VAR_0 mirror_pause(BlockJob *job) { MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); mirror_drain(s); }
[ "static void VAR_0 mirror_pause(BlockJob *job)\n{", "MirrorBlockJob *s = container_of(job, MirrorBlockJob, common);", "mirror_drain(s);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
2,990
static Coroutine *coroutine_new(void) { const size_t stack_size = 1 << 20; CoroutineUContext *co; CoroutineThreadState *coTS; struct sigaction sa; struct sigaction osa; struct sigaltstack ss; struct sigaltstack oss; sigset_t sigs; sigset_t osigs; jmp_buf old_env; ...
false
qemu
a31f053129f378ff0e8f6e855b3f35d21143b9ef
static Coroutine *coroutine_new(void) { const size_t stack_size = 1 << 20; CoroutineUContext *co; CoroutineThreadState *coTS; struct sigaction sa; struct sigaction osa; struct sigaltstack ss; struct sigaltstack oss; sigset_t sigs; sigset_t osigs; jmp_buf old_env; ...
{ "code": [], "line_no": [] }
static Coroutine *FUNC_0(void) { const size_t VAR_0 = 1 << 20; CoroutineUContext *co; CoroutineThreadState *coTS; struct sigaction VAR_1; struct sigaction VAR_2; struct sigaltstack VAR_3; struct sigaltstack VAR_4; sigset_t sigs; sigset_t osigs; jmp_buf old_env; ...
[ "static Coroutine *FUNC_0(void)\n{", "const size_t VAR_0 = 1 << 20;", "CoroutineUContext *co;", "CoroutineThreadState *coTS;", "struct sigaction VAR_1;", "struct sigaction VAR_2;", "struct sigaltstack VAR_3;", "struct sigaltstack VAR_4;", "sigset_t sigs;", "sigset_t osigs;", "jmp_buf old_env;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 69 ], [ 71 ], [ 73 ], [ 75 ...
2,991
static AddressParts gen_lea_modrm_0(CPUX86State *env, DisasContext *s, int modrm) { int def_seg, base, index, scale, mod, rm; target_long disp; bool havesib; def_seg = R_DS; index = -1; scale = 0; disp = 0; mod = (modrm >> 6) & 3; rm...
false
qemu
e3af7c788b73a6495eb9d94992ef11f6ad6f3c56
static AddressParts gen_lea_modrm_0(CPUX86State *env, DisasContext *s, int modrm) { int def_seg, base, index, scale, mod, rm; target_long disp; bool havesib; def_seg = R_DS; index = -1; scale = 0; disp = 0; mod = (modrm >> 6) & 3; rm...
{ "code": [], "line_no": [] }
static AddressParts FUNC_0(CPUX86State *env, DisasContext *s, int modrm) { int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5; target_long disp; bool havesib; VAR_0 = R_DS; VAR_2 = -1; VAR_3 = 0; disp = 0; VAR_4 = (modrm >> 6) & 3; VAR_5 =...
[ "static AddressParts FUNC_0(CPUX86State *env, DisasContext *s,\nint modrm)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "target_long disp;", "bool havesib;", "VAR_0 = R_DS;", "VAR_2 = -1;", "VAR_3 = 0;", "disp = 0;", "VAR_4 = (modrm >> 6) & 3;", "VAR_5 = modrm & 7;", "VAR_1 = VAR_5 | RE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49, 51 ], [ 53 ], [ 55 ], [...
2,992
static int omap_validate_local_addr(struct omap_mpu_state_s *s, target_phys_addr_t addr) { return addr >= OMAP_LOCALBUS_BASE && addr < OMAP_LOCALBUS_BASE + 0x1000000; }
false
qemu
45416789e8ccced568a4984af61974adfbfa0f62
static int omap_validate_local_addr(struct omap_mpu_state_s *s, target_phys_addr_t addr) { return addr >= OMAP_LOCALBUS_BASE && addr < OMAP_LOCALBUS_BASE + 0x1000000; }
{ "code": [], "line_no": [] }
static int FUNC_0(struct omap_mpu_state_s *VAR_0, target_phys_addr_t VAR_1) { return VAR_1 >= OMAP_LOCALBUS_BASE && VAR_1 < OMAP_LOCALBUS_BASE + 0x1000000; }
[ "static int FUNC_0(struct omap_mpu_state_s *VAR_0,\ntarget_phys_addr_t VAR_1)\n{", "return VAR_1 >= OMAP_LOCALBUS_BASE && VAR_1 < OMAP_LOCALBUS_BASE + 0x1000000;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
2,993
int net_init_bridge(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { const NetdevBridgeOptions *bridge; const char *helper, *br; TAPState *s; int fd, vnet_hdr; assert(opts->type == NET_CLIENT_OPTIONS_KIND_BRIDGE); bridge = opts->...
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
int net_init_bridge(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { const NetdevBridgeOptions *bridge; const char *helper, *br; TAPState *s; int fd, vnet_hdr; assert(opts->type == NET_CLIENT_OPTIONS_KIND_BRIDGE); bridge = opts->...
{ "code": [], "line_no": [] }
int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1, NetClientState *VAR_2, Error **VAR_3) { const NetdevBridgeOptions *VAR_4; const char *VAR_5, *VAR_6; TAPState *s; int VAR_7, VAR_8; assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_BRIDGE); VAR_4 = VAR_0->u.V...
[ "int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,\nNetClientState *VAR_2, Error **VAR_3)\n{", "const NetdevBridgeOptions *VAR_4;", "const char *VAR_5, *VAR_6;", "TAPState *s;", "int VAR_7, VAR_8;", "assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_BRIDGE);", "VAR_4 = VAR_0->u.VAR_4;", "VAR_5 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 53 ], [ 55 ...
2,994
static inline void t_gen_raise_exception(uint32_t index) { tcg_gen_helper_0_1(helper_raise_exception, tcg_const_tl(index)); }
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static inline void t_gen_raise_exception(uint32_t index) { tcg_gen_helper_0_1(helper_raise_exception, tcg_const_tl(index)); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(uint32_t VAR_0) { tcg_gen_helper_0_1(helper_raise_exception, tcg_const_tl(VAR_0)); }
[ "static inline void FUNC_0(uint32_t VAR_0)\n{", "tcg_gen_helper_0_1(helper_raise_exception, tcg_const_tl(VAR_0));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,995
uint64_t ram_bytes_total(void) { return last_ram_offset; }
false
qemu
ad96090a01d848df67d70c5259ed8aa321fa8716
uint64_t ram_bytes_total(void) { return last_ram_offset; }
{ "code": [], "line_no": [] }
uint64_t FUNC_0(void) { return last_ram_offset; }
[ "uint64_t FUNC_0(void)\n{", "return last_ram_offset;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,997
void ff_g729_postfilter(DSPContext *dsp, int16_t* ht_prev_data, int* voicing, const int16_t *lp_filter_coeffs, int pitch_delay_int, int16_t* residual, int16_t* res_filter_data, int16_t* pos_filter_data, int16_t *speech, int subframe_size) { int16_t...
false
FFmpeg
fe70c1f45f108c73ebb9c23009e271a96336796f
void ff_g729_postfilter(DSPContext *dsp, int16_t* ht_prev_data, int* voicing, const int16_t *lp_filter_coeffs, int pitch_delay_int, int16_t* residual, int16_t* res_filter_data, int16_t* pos_filter_data, int16_t *speech, int subframe_size) { int16_t...
{ "code": [], "line_no": [] }
void FUNC_0(DSPContext *VAR_0, int16_t* VAR_1, int* VAR_2, const int16_t *VAR_3, int VAR_4, int16_t* VAR_5, int16_t* VAR_6, int16_t* VAR_7, int16_t *VAR_8, int VAR_9) { int16_t residual_filt_buf[SUBFRAME_SIZE+10]; int16_t lp_gn[33]; int1...
[ "void FUNC_0(DSPContext *VAR_0, int16_t* VAR_1, int* VAR_2,\nconst int16_t *VAR_3, int VAR_4,\nint16_t* VAR_5, int16_t* VAR_6,\nint16_t* VAR_7, int16_t *VAR_8, int VAR_9)\n{", "int16_t residual_filt_buf[SUBFRAME_SIZE+10];", "int16_t lp_gn[33];", "int16_t lp_gd[11];", "int VAR_10;", "int VAR_11;", "memse...
[ 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 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 53 ], [ 61, 63, 65 ], [ 71 ], [ 77 ], [...
2,998
static int asink_query_formats(AVFilterContext *ctx) { BufferSinkContext *buf = ctx->priv; AVFilterFormats *formats = NULL; AVFilterChannelLayouts *layouts = NULL; unsigned i; int ret; if (buf->sample_fmts_size % sizeof(*buf->sample_fmts) || buf->sample_rates_size % ...
false
FFmpeg
6fbb21d6858b9d0152f89e1b30ffe683a9d33948
static int asink_query_formats(AVFilterContext *ctx) { BufferSinkContext *buf = ctx->priv; AVFilterFormats *formats = NULL; AVFilterChannelLayouts *layouts = NULL; unsigned i; int ret; if (buf->sample_fmts_size % sizeof(*buf->sample_fmts) || buf->sample_rates_size % ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterContext *VAR_0) { BufferSinkContext *buf = VAR_0->priv; AVFilterFormats *formats = NULL; AVFilterChannelLayouts *layouts = NULL; unsigned VAR_1; int VAR_2; if (buf->sample_fmts_size % sizeof(*buf->sample_fmts) || buf->sample_rates_size % siz...
[ "static int FUNC_0(AVFilterContext *VAR_0)\n{", "BufferSinkContext *buf = VAR_0->priv;", "AVFilterFormats *formats = NULL;", "AVFilterChannelLayouts *layouts = NULL;", "unsigned VAR_1;", "int VAR_2;", "if (buf->sample_fmts_size % sizeof(*buf->sample_fmts) ||\nbuf->sample_rates_size % sizeof(*...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27, 29, 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 53 ...
2,999
void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ s->coded_width = width; s->coded_height= height; s->width = width; s->height = height; }
false
FFmpeg
70d54392f5015b9c6594fcae558f59f952501e3b
void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ s->coded_width = width; s->coded_height= height; s->width = width; s->height = height; }
{ "code": [], "line_no": [] }
void FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2){ VAR_0->coded_width = VAR_1; VAR_0->coded_height= VAR_2; VAR_0->VAR_1 = VAR_1; VAR_0->VAR_2 = VAR_2; }
[ "void FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2){", "VAR_0->coded_width = VAR_1;", "VAR_0->coded_height= VAR_2;", "VAR_0->VAR_1 = VAR_1;", "VAR_0->VAR_2 = VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
3,000
int qemu_acl_remove(qemu_acl *acl, const char *match) { qemu_acl_entry *entry; int i = 0; QTAILQ_FOREACH(entry, &acl->entries, next) { i++; if (strcmp(entry->match, match) == 0) { QTAILQ_REMOVE(&acl->entries, entry, next); return i; ...
true
qemu
c23c15d30b901bb447cdcada96cae64c0046d146
int qemu_acl_remove(qemu_acl *acl, const char *match) { qemu_acl_entry *entry; int i = 0; QTAILQ_FOREACH(entry, &acl->entries, next) { i++; if (strcmp(entry->match, match) == 0) { QTAILQ_REMOVE(&acl->entries, entry, next); return i; ...
{ "code": [], "line_no": [] }
int FUNC_0(qemu_acl *VAR_0, const char *VAR_1) { qemu_acl_entry *entry; int VAR_2 = 0; QTAILQ_FOREACH(entry, &VAR_0->entries, next) { VAR_2++; if (strcmp(entry->VAR_1, VAR_1) == 0) { QTAILQ_REMOVE(&VAR_0->entries, entry, next); return...
[ "int FUNC_0(qemu_acl *VAR_0,\nconst char *VAR_1)\n{", "qemu_acl_entry *entry;", "int VAR_2 = 0;", "QTAILQ_FOREACH(entry, &VAR_0->entries, next) {", "VAR_2++;", "if (strcmp(entry->VAR_1, VAR_1) == 0) {", "QTAILQ_REMOVE(&VAR_0->entries, entry, next);", "return VAR_2;", "}", "}", "return -1;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ] ]
3,002
static uint64_t sdhci_read(void *opaque, hwaddr offset, unsigned size) { SDHCIState *s = (SDHCIState *)opaque; uint32_t ret = 0; switch (offset & ~0x3) { case SDHC_SYSAD: ret = s->sdmasysad; break; case SDHC_BLKSIZE: ret = s->blksize | (s->blkcnt << 16); b...
true
qemu
8be487d8f184f2f721cabeac559fb7a6cba18c95
static uint64_t sdhci_read(void *opaque, hwaddr offset, unsigned size) { SDHCIState *s = (SDHCIState *)opaque; uint32_t ret = 0; switch (offset & ~0x3) { case SDHC_SYSAD: ret = s->sdmasysad; break; case SDHC_BLKSIZE: ret = s->blksize | (s->blkcnt << 16); b...
{ "code": [ " DPRINT_L2(\"read %ub: addr[0x%04x] -> %u(0x%x)\\n\", size, (int)offset,", " ret, ret);", " DPRINT_L2(\"read %ub: addr[0x%04x] -> %u(0x%x)\\n\", size, (int)offset, ret, ret);" ], "line_no": [ 49, 51, 155 ] }
static uint64_t FUNC_0(void *opaque, hwaddr offset, unsigned size) { SDHCIState *s = (SDHCIState *)opaque; uint32_t ret = 0; switch (offset & ~0x3) { case SDHC_SYSAD: ret = s->sdmasysad; break; case SDHC_BLKSIZE: ret = s->blksize | (s->blkcnt << 16); break...
[ "static uint64_t FUNC_0(void *opaque, hwaddr offset, unsigned size)\n{", "SDHCIState *s = (SDHCIState *)opaque;", "uint32_t ret = 0;", "switch (offset & ~0x3) {", "case SDHC_SYSAD:\nret = s->sdmasysad;", "break;", "case SDHC_BLKSIZE:\nret = s->blksize | (s->blkcnt << 16);", "break;", "case SDHC_ARGU...
[ 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, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49...
3,004
static av_always_inline void predict_slice_buffered(SnowContext *s, slice_buffer * sb, IDWTELEM * old_buffer, int plane_index, int add, int mb_y){ Plane *p= &s->plane[plane_index]; const int mb_w= s->b_width << s->block_max_depth; const int mb_h= s->b_height << s->block_max_depth; int x, y, mb_x; ...
true
FFmpeg
6c91afe4973f25f050c8b704b62a8367fc5e7a8c
static av_always_inline void predict_slice_buffered(SnowContext *s, slice_buffer * sb, IDWTELEM * old_buffer, int plane_index, int add, int mb_y){ Plane *p= &s->plane[plane_index]; const int mb_w= s->b_width << s->block_max_depth; const int mb_h= s->b_height << s->block_max_depth; int x, y, mb_x; ...
{ "code": [ " AVMotionVector *avmv = s->avmv + (s->avmv_index++);" ], "line_no": [ 117 ] }
static av_always_inline void FUNC_0(SnowContext *s, slice_buffer * sb, IDWTELEM * old_buffer, int plane_index, int add, int mb_y){ Plane *p= &s->plane[plane_index]; const int VAR_0= s->VAR_14 << s->block_max_depth; const int VAR_1= s->b_height << s->block_max_depth; int VAR_2, VAR_3, VAR_4; in...
[ "static av_always_inline void FUNC_0(SnowContext *s, slice_buffer * sb, IDWTELEM * old_buffer, int plane_index, int add, int mb_y){", "Plane *p= &s->plane[plane_index];", "const int VAR_0= s->VAR_14 << s->block_max_depth;", "const int VAR_1= s->b_height << s->block_max_depth;", "int VAR_2, VAR_3, VAR_4;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
3,005
static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc, struct elfhdr *exec, struct image_info *info, struct image_info *interp_info) { abi_ulong sp; abi_ulong u_argc, u_argv, u_envp, u_aux...
true
qemu
f516511ea84d8bb3395d6ea95a7c7b80dc2a05e9
static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc, struct elfhdr *exec, struct image_info *info, struct image_info *interp_info) { abi_ulong sp; abi_ulong u_argc, u_argv, u_envp, u_aux...
{ "code": [ " info->auxv_len = u_argv - info->saved_auxv;" ], "line_no": [ 289 ] }
static abi_ulong FUNC_0(abi_ulong p, int argc, int envc, struct elfhdr *exec, struct image_info *info, struct image_info *interp_info) { abi_ulong sp; abi_ulong u_argc, u_argv, u_envp, u_auxv; int...
[ "static abi_ulong FUNC_0(abi_ulong p, int argc, int envc,\nstruct elfhdr *exec,\nstruct image_info *info,\nstruct image_info *interp_info)\n{", "abi_ulong sp;", "abi_ulong u_argc, u_argv, u_envp, u_auxv;", "int VAR_0;", "int VAR_1;", "abi_ulong u_rand_bytes;", "uint8_t k_rand_bytes[16];", "abi_ulong u...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
3,006
void cpu_reset(CPUM68KState *env) { memset(env, 0, offsetof(CPUM68KState, breakpoints)); #if !defined (CONFIG_USER_ONLY) env->sr = 0x2700; #endif m68k_switch_sp(env); /* ??? FP regs should be initialized to NaN. */ env->cc_op = CC_OP_FLAGS; /* TODO: We should set PC from the interrupt vector. ...
true
qemu
eca1bdf415c454093dfc7eb983cd49287c043967
void cpu_reset(CPUM68KState *env) { memset(env, 0, offsetof(CPUM68KState, breakpoints)); #if !defined (CONFIG_USER_ONLY) env->sr = 0x2700; #endif m68k_switch_sp(env); env->cc_op = CC_OP_FLAGS; env->pc = 0; tlb_flush(env, 1);
{ "code": [], "line_no": [] }
void FUNC_0(CPUM68KState *VAR_0) { memset(VAR_0, 0, offsetof(CPUM68KState, breakpoints)); #if !defined (CONFIG_USER_ONLY) VAR_0->sr = 0x2700; #endif m68k_switch_sp(VAR_0); VAR_0->cc_op = CC_OP_FLAGS; VAR_0->pc = 0; tlb_flush(VAR_0, 1);
[ "void FUNC_0(CPUM68KState *VAR_0)\n{", "memset(VAR_0, 0, offsetof(CPUM68KState, breakpoints));", "#if !defined (CONFIG_USER_ONLY)\nVAR_0->sr = 0x2700;", "#endif\nm68k_switch_sp(VAR_0);", "VAR_0->cc_op = CC_OP_FLAGS;", "VAR_0->pc = 0;", "tlb_flush(VAR_0, 1);" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4, 5 ], [ 6, 7 ], [ 9 ], [ 11 ], [ 12 ] ]
3,007
static int serial_parse(const char *devname) { static int index = 0; char label[32]; if (strcmp(devname, "none") == 0) return 0; if (index == MAX_SERIAL_PORTS) { fprintf(stderr, "qemu: too many serial ports\n"); exit(1); } snprintf(label, sizeof(label), "seria...
false
qemu
f61eddcb2bb5cbbdd1d911b7e937db9affc29028
static int serial_parse(const char *devname) { static int index = 0; char label[32]; if (strcmp(devname, "none") == 0) return 0; if (index == MAX_SERIAL_PORTS) { fprintf(stderr, "qemu: too many serial ports\n"); exit(1); } snprintf(label, sizeof(label), "seria...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0) { static int VAR_1 = 0; char VAR_2[32]; if (strcmp(VAR_0, "none") == 0) return 0; if (VAR_1 == MAX_SERIAL_PORTS) { fprintf(stderr, "qemu: too many serial ports\n"); exit(1); } snprintf(VAR_2, sizeof(VAR_2), "serial%d", VAR_...
[ "static int FUNC_0(const char *VAR_0)\n{", "static int VAR_1 = 0;", "char VAR_2[32];", "if (strcmp(VAR_0, \"none\") == 0)\nreturn 0;", "if (VAR_1 == MAX_SERIAL_PORTS) {", "fprintf(stderr, \"qemu: too many serial ports\\n\");", "exit(1);", "}", "snprintf(VAR_2, sizeof(VAR_2), \"serial%d\", VAR_1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
3,008
void do_info_migrate(Monitor *mon, QObject **ret_data) { QDict *qdict; MigrationState *s = current_migration; if (s) { switch (s->get_status(s)) { case MIG_STATE_ACTIVE: qdict = qdict_new(); qdict_put(qdict, "status", qstring_from_str("active")); ...
false
qemu
ba14414174b72fa231997243a9650feaa520d054
void do_info_migrate(Monitor *mon, QObject **ret_data) { QDict *qdict; MigrationState *s = current_migration; if (s) { switch (s->get_status(s)) { case MIG_STATE_ACTIVE: qdict = qdict_new(); qdict_put(qdict, "status", qstring_from_str("active")); ...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, QObject **VAR_1) { QDict *qdict; MigrationState *s = current_migration; if (s) { switch (s->get_status(s)) { case MIG_STATE_ACTIVE: qdict = qdict_new(); qdict_put(qdict, "status", qstring_from_str("active")); migrat...
[ "void FUNC_0(Monitor *VAR_0, QObject **VAR_1)\n{", "QDict *qdict;", "MigrationState *s = current_migration;", "if (s) {", "switch (s->get_status(s)) {", "case MIG_STATE_ACTIVE:\nqdict = qdict_new();", "qdict_put(qdict, \"status\", qstring_from_str(\"active\"));", "migrate_put_status(qdict, \"ram\", ra...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53 ], [ 55...
3,009
static abi_long do_connect(int sockfd, abi_ulong target_addr, socklen_t addrlen) { void *addr; if (addrlen < 0) return -TARGET_EINVAL; addr = alloca(addrlen); target_to_host_sockaddr(addr, target_addr, addrlen); return get_errno(connect(sockfd, addr, ...
false
qemu
917507b01efea8017bfcb4188ac696612e363e72
static abi_long do_connect(int sockfd, abi_ulong target_addr, socklen_t addrlen) { void *addr; if (addrlen < 0) return -TARGET_EINVAL; addr = alloca(addrlen); target_to_host_sockaddr(addr, target_addr, addrlen); return get_errno(connect(sockfd, addr, ...
{ "code": [], "line_no": [] }
static abi_long FUNC_0(int sockfd, abi_ulong target_addr, socklen_t addrlen) { void *VAR_0; if (addrlen < 0) return -TARGET_EINVAL; VAR_0 = alloca(addrlen); target_to_host_sockaddr(VAR_0, target_addr, addrlen); return get_errno(connect(sockfd, VAR_0, ...
[ "static abi_long FUNC_0(int sockfd, abi_ulong target_addr,\nsocklen_t addrlen)\n{", "void *VAR_0;", "if (addrlen < 0)\nreturn -TARGET_EINVAL;", "VAR_0 = alloca(addrlen);", "target_to_host_sockaddr(VAR_0, target_addr, addrlen);", "return get_errno(connect(sockfd, VAR_0, addrlen));", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
3,010
static GenericList *qmp_input_next_list(Visitor *v, GenericList **list, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); GenericList *entry; StackObject *so = &qiv->stack[qiv->nb_stack - 1]; if (so->entry == NULL) { return NULL; } ent...
false
qemu
3a86a0fa76b5103a122b6e817b3827b2837f4956
static GenericList *qmp_input_next_list(Visitor *v, GenericList **list, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); GenericList *entry; StackObject *so = &qiv->stack[qiv->nb_stack - 1]; if (so->entry == NULL) { return NULL; } ent...
{ "code": [], "line_no": [] }
static GenericList *FUNC_0(Visitor *v, GenericList **list, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); GenericList *entry; StackObject *so = &qiv->stack[qiv->nb_stack - 1]; if (so->entry == NULL) { return NULL; } entry = g_malloc...
[ "static GenericList *FUNC_0(Visitor *v, GenericList **list,\nError **errp)\n{", "QmpInputVisitor *qiv = to_qiv(v);", "GenericList *entry;", "StackObject *so = &qiv->stack[qiv->nb_stack - 1];", "if (so->entry == NULL) {", "return NULL;", "}", "entry = g_malloc0(sizeof(*entry));", "if (*list) {", "s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
3,011
int gdbserver_start(const char *port) { GDBState *s; char gdbstub_port_name[128]; int port_num; char *p; CharDriverState *chr; if (!port || !*port) return -1; port_num = strtol(port, &p, 10); if (*p == 0) { /* A numeric value is interpreted as a port number. ...
false
qemu
880a7578381d1c7ed4d41c7599ae3cc06567a824
int gdbserver_start(const char *port) { GDBState *s; char gdbstub_port_name[128]; int port_num; char *p; CharDriverState *chr; if (!port || !*port) return -1; port_num = strtol(port, &p, 10); if (*p == 0) { snprintf(gdbstub_port_name, sizeof(gdbstub...
{ "code": [], "line_no": [] }
int FUNC_0(const char *VAR_0) { GDBState *s; char VAR_1[128]; int VAR_2; char *VAR_3; CharDriverState *chr; if (!VAR_0 || !*VAR_0) return -1; VAR_2 = strtol(VAR_0, &VAR_3, 10); if (*VAR_3 == 0) { snprintf(VAR_1, sizeof(VAR_1), "tcp...
[ "int FUNC_0(const char *VAR_0)\n{", "GDBState *s;", "char VAR_1[128];", "int VAR_2;", "char *VAR_3;", "CharDriverState *chr;", "if (!VAR_0 || !*VAR_0)\nreturn -1;", "VAR_2 = strtol(VAR_0, &VAR_3, 10);", "if (*VAR_3 == 0) {", "snprintf(VAR_1, sizeof(VAR_1),\n\"tcp::%d,nowait,nodelay,server\", VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
3,012
static void sbr_qmf_analysis(DSPContext *dsp, FFTContext *mdct, const float *in, float *x, float z[320], float W[2][32][32][2]) { int i, k; memcpy(W[0], W[1], sizeof(W[0])); memcpy(x , x+1024, (320-32)*sizeof(x[0])); memcpy(x+288, in, 1024*sizeof(x[0])); ...
false
FFmpeg
aac46e088d67a390489af686b846dea4987d8ffb
static void sbr_qmf_analysis(DSPContext *dsp, FFTContext *mdct, const float *in, float *x, float z[320], float W[2][32][32][2]) { int i, k; memcpy(W[0], W[1], sizeof(W[0])); memcpy(x , x+1024, (320-32)*sizeof(x[0])); memcpy(x+288, in, 1024*sizeof(x[0])); ...
{ "code": [], "line_no": [] }
static void FUNC_0(DSPContext *VAR_0, FFTContext *VAR_1, const float *VAR_2, float *VAR_3, float VAR_4[320], float VAR_5[2][32][32][2]) { int VAR_6, VAR_7; memcpy(VAR_5[0], VAR_5[1], sizeof(VAR_5[0])); memcpy(VAR_3 , VAR_3+1024, (320-32)*sizeof(VAR_3[0])); memcpy(VA...
[ "static void FUNC_0(DSPContext *VAR_0, FFTContext *VAR_1, const float *VAR_2, float *VAR_3,\nfloat VAR_4[320], float VAR_5[2][32][32][2])\n{", "int VAR_6, VAR_7;", "memcpy(VAR_5[0], VAR_5[1], sizeof(VAR_5[0]));", "memcpy(VAR_3 , VAR_3+1024, (320-32)*sizeof(VAR_3[0]));", "memcpy(VAR_3+288, VAR_2, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
3,014
static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg args[TCG_MAX_OP_ARGS], const int const_args[TCG_MAX_OP_ARGS]) { /* 99% of the time, we can signal the use of extension registers by looking to see if the opcode handles 64-bit data. */ T...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg args[TCG_MAX_OP_ARGS], const int const_args[TCG_MAX_OP_ARGS]) { TCGType ext = (tcg_op_defs[opc].flags & TCG_OPF_64BIT) != 0; TCGArg a0 = args[0]; TCGArg a1 = args[1]; TC...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGOpcode VAR_1, const TCGArg VAR_2[TCG_MAX_OP_ARGS], const int VAR_3[TCG_MAX_OP_ARGS]) { TCGType ext = (tcg_op_defs[VAR_1].flags & TCG_OPF_64BIT) != 0; TCGArg a0 = VAR_2[0]; TCGArg a1 = VAR_2[1]; ...
[ "static void FUNC_0(TCGContext *VAR_0, TCGOpcode VAR_1,\nconst TCGArg VAR_2[TCG_MAX_OP_ARGS],\nconst int VAR_3[TCG_MAX_OP_ARGS])\n{", "TCGType ext = (tcg_op_defs[VAR_1].flags & TCG_OPF_64BIT) != 0;", "TCGArg a0 = VAR_2[0];", "TCGArg a1 = VAR_2[1];", "TCGArg a2 = VAR_2[2];", "int VAR_4 = VAR_3[2];", "#de...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 33, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49, 51, 53, 55, 57 ], [ 59 ], [ 65 ], [ 67 ], [ 69 ], [ 73...
3,015
void kvm_arch_reset_vcpu(CPUX86State *env) { env->exception_injected = -1; env->interrupt_injected = -1; env->xcr0 = 1; if (kvm_irqchip_in_kernel()) { env->mp_state = cpu_is_bsp(env) ? KVM_MP_STATE_RUNNABLE : KVM_MP_STATE_UNINITIALIZED; } els...
false
qemu
dd673288a8ff73ad77fcc1c255486d2466a772e1
void kvm_arch_reset_vcpu(CPUX86State *env) { env->exception_injected = -1; env->interrupt_injected = -1; env->xcr0 = 1; if (kvm_irqchip_in_kernel()) { env->mp_state = cpu_is_bsp(env) ? KVM_MP_STATE_RUNNABLE : KVM_MP_STATE_UNINITIALIZED; } els...
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0) { VAR_0->exception_injected = -1; VAR_0->interrupt_injected = -1; VAR_0->xcr0 = 1; if (kvm_irqchip_in_kernel()) { VAR_0->mp_state = cpu_is_bsp(VAR_0) ? KVM_MP_STATE_RUNNABLE : KVM_MP_STATE_UNINITIALIZED; } else...
[ "void FUNC_0(CPUX86State *VAR_0)\n{", "VAR_0->exception_injected = -1;", "VAR_0->interrupt_injected = -1;", "VAR_0->xcr0 = 1;", "if (kvm_irqchip_in_kernel()) {", "VAR_0->mp_state = cpu_is_bsp(VAR_0) ? KVM_MP_STATE_RUNNABLE :\nKVM_MP_STATE_UNINITIALIZED;", "} else {", "VAR_0->mp_state = KVM_MP_STATE_RU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
3,016
static void tight_pack24(VncState *vs, uint8_t *buf, size_t count, size_t *ret) { uint32_t *buf32; uint32_t pix; int rshift, gshift, bshift; buf32 = (uint32_t *)buf; if ((vs->clientds.flags & QEMU_BIG_ENDIAN_FLAG) == (vs->ds->surface->flags & QEMU_BIG_ENDIAN_FLAG)) { rshi...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
static void tight_pack24(VncState *vs, uint8_t *buf, size_t count, size_t *ret) { uint32_t *buf32; uint32_t pix; int rshift, gshift, bshift; buf32 = (uint32_t *)buf; if ((vs->clientds.flags & QEMU_BIG_ENDIAN_FLAG) == (vs->ds->surface->flags & QEMU_BIG_ENDIAN_FLAG)) { rshi...
{ "code": [], "line_no": [] }
static void FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2, size_t *VAR_3) { uint32_t *buf32; uint32_t pix; int VAR_4, VAR_5, VAR_6; buf32 = (uint32_t *)VAR_1; if ((VAR_0->clientds.flags & QEMU_BIG_ENDIAN_FLAG) == (VAR_0->ds->surface->flags & QEMU_BIG_ENDIAN_FLAG)) { ...
[ "static void FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2, size_t *VAR_3)\n{", "uint32_t *buf32;", "uint32_t pix;", "int VAR_4, VAR_5, VAR_6;", "buf32 = (uint32_t *)VAR_1;", "if ((VAR_0->clientds.flags & QEMU_BIG_ENDIAN_FLAG) ==\n(VAR_0->ds->surface->flags & QEMU_BIG_ENDIAN_FLAG)) {", "VAR_4 = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
3,017
static void slow_bar_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { AssignedDevRegion *d = opaque; uint16_t *out = (uint16_t *)(d->u.r_virtbase + addr); DEBUG("slow_bar_writew addr=0x" TARGET_FMT_plx " val=0x%04x\n", addr, val); *out = val; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void slow_bar_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { AssignedDevRegion *d = opaque; uint16_t *out = (uint16_t *)(d->u.r_virtbase + addr); DEBUG("slow_bar_writew addr=0x" TARGET_FMT_plx " val=0x%04x\n", addr, val); *out = val; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { AssignedDevRegion *d = VAR_0; uint16_t *out = (uint16_t *)(d->u.r_virtbase + VAR_1); DEBUG("FUNC_0 VAR_1=0x" TARGET_FMT_plx " VAR_2=0x%04x\n", VAR_1, VAR_2); *out = VAR_2; }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "AssignedDevRegion *d = VAR_0;", "uint16_t *out = (uint16_t *)(d->u.r_virtbase + VAR_1);", "DEBUG(\"FUNC_0 VAR_1=0x\" TARGET_FMT_plx \" VAR_2=0x%04x\\n\", VAR_1, VAR_2);", "*out = VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
3,018
static uint64_t gic_thiscpu_read(void *opaque, target_phys_addr_t addr, unsigned size) { GICState *s = (GICState *)opaque; return gic_cpu_read(s, gic_get_current_cpu(s), addr); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t gic_thiscpu_read(void *opaque, target_phys_addr_t addr, unsigned size) { GICState *s = (GICState *)opaque; return gic_cpu_read(s, gic_get_current_cpu(s), addr); }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { GICState *s = (GICState *)opaque; return gic_cpu_read(s, gic_get_current_cpu(s), addr); }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "GICState *s = (GICState *)opaque;", "return gic_cpu_read(s, gic_get_current_cpu(s), addr);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
3,021
int isa_vga_mm_init(hwaddr vram_base, hwaddr ctrl_base, int it_shift, MemoryRegion *address_space) { ISAVGAMMState *s; s = g_malloc0(sizeof(*s)); s->vga.vram_size_mb = VGA_RAM_SIZE >> 20; vga_common_init(&s->vga); vga_mm_init(s, vram_base, ctrl_bas...
false
qemu
2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5
int isa_vga_mm_init(hwaddr vram_base, hwaddr ctrl_base, int it_shift, MemoryRegion *address_space) { ISAVGAMMState *s; s = g_malloc0(sizeof(*s)); s->vga.vram_size_mb = VGA_RAM_SIZE >> 20; vga_common_init(&s->vga); vga_mm_init(s, vram_base, ctrl_bas...
{ "code": [], "line_no": [] }
int FUNC_0(hwaddr VAR_0, hwaddr VAR_1, int VAR_2, MemoryRegion *VAR_3) { ISAVGAMMState *s; s = g_malloc0(sizeof(*s)); s->vga.vram_size_mb = VGA_RAM_SIZE >> 20; vga_common_init(&s->vga); vga_mm_init(s, VAR_0, VAR_1, VAR_2, VAR_3); s->vga.con ...
[ "int FUNC_0(hwaddr VAR_0,\nhwaddr VAR_1, int VAR_2,\nMemoryRegion *VAR_3)\n{", "ISAVGAMMState *s;", "s = g_malloc0(sizeof(*s));", "s->vga.vram_size_mb = VGA_RAM_SIZE >> 20;", "vga_common_init(&s->vga);", "vga_mm_init(s, VAR_0, VAR_1, VAR_2, VAR_3);", "s->vga.con = graphic_console_init(s->vga.update, s->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 33 ], [ 35 ], [ 37 ] ]
3,022
float64 helper_fitod(CPUSPARCState *env, int32_t src) { /* No possible exceptions converting int to double. */ return int32_to_float64(src, &env->fp_status); }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
float64 helper_fitod(CPUSPARCState *env, int32_t src) { return int32_to_float64(src, &env->fp_status); }
{ "code": [], "line_no": [] }
float64 FUNC_0(CPUSPARCState *env, int32_t src) { return int32_to_float64(src, &env->fp_status); }
[ "float64 FUNC_0(CPUSPARCState *env, int32_t src)\n{", "return int32_to_float64(src, &env->fp_status);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ] ]
3,023
audio_get_output_timestamp(AVFormatContext *s1, int stream, int64_t *dts, int64_t *wall) { AlsaData *s = s1->priv_data; snd_pcm_sframes_t delay = 0; *wall = av_gettime(); snd_pcm_delay(s->h, &delay); *dts = s1->streams[0]->cur_dts - delay; }
false
FFmpeg
6ac9afd16e385fc450c58b8a3fb44baa99ea4af9
audio_get_output_timestamp(AVFormatContext *s1, int stream, int64_t *dts, int64_t *wall) { AlsaData *s = s1->priv_data; snd_pcm_sframes_t delay = 0; *wall = av_gettime(); snd_pcm_delay(s->h, &delay); *dts = s1->streams[0]->cur_dts - delay; }
{ "code": [], "line_no": [] }
FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t *VAR_2, int64_t *VAR_3) { AlsaData *s = VAR_0->priv_data; snd_pcm_sframes_t delay = 0; *VAR_3 = av_gettime(); snd_pcm_delay(s->h, &delay); *VAR_2 = VAR_0->streams[0]->cur_dts - delay; }
[ "FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t *VAR_2, int64_t *VAR_3)\n{", "AlsaData *s = VAR_0->priv_data;", "snd_pcm_sframes_t delay = 0;", "*VAR_3 = av_gettime();", "snd_pcm_delay(s->h, &delay);", "*VAR_2 = VAR_0->streams[0]->cur_dts - delay;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
3,024
static void do_vm_stop(RunState state) { if (runstate_is_running()) { cpu_disable_ticks(); pause_all_vcpus(); runstate_set(state); vm_state_notify(0, state); qemu_aio_flush(); bdrv_flush_all(); monitor_protocol_event(QEVENT_STOP, NULL); } }
false
qemu
922453bca6a927bb527068ae8679d587cfa45dbc
static void do_vm_stop(RunState state) { if (runstate_is_running()) { cpu_disable_ticks(); pause_all_vcpus(); runstate_set(state); vm_state_notify(0, state); qemu_aio_flush(); bdrv_flush_all(); monitor_protocol_event(QEVENT_STOP, NULL); } }
{ "code": [], "line_no": [] }
static void FUNC_0(RunState VAR_0) { if (runstate_is_running()) { cpu_disable_ticks(); pause_all_vcpus(); runstate_set(VAR_0); vm_state_notify(0, VAR_0); qemu_aio_flush(); bdrv_flush_all(); monitor_protocol_event(QEVENT_STOP, NULL); } }
[ "static void FUNC_0(RunState VAR_0)\n{", "if (runstate_is_running()) {", "cpu_disable_ticks();", "pause_all_vcpus();", "runstate_set(VAR_0);", "vm_state_notify(0, VAR_0);", "qemu_aio_flush();", "bdrv_flush_all();", "monitor_protocol_event(QEVENT_STOP, NULL);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
3,025
static int vt82c686b_pm_initfn(PCIDevice *dev) { VT686PMState *s = DO_UPCAST(VT686PMState, dev, dev); uint8_t *pci_conf; pci_conf = s->dev.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_ACPI); pci_config_set_class(pci_...
false
qemu
1cf0d2b8352a2df35919030b84dbfc713ee9b9be
static int vt82c686b_pm_initfn(PCIDevice *dev) { VT686PMState *s = DO_UPCAST(VT686PMState, dev, dev); uint8_t *pci_conf; pci_conf = s->dev.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_ACPI); pci_config_set_class(pci_...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { VT686PMState *s = DO_UPCAST(VT686PMState, VAR_0, VAR_0); uint8_t *pci_conf; pci_conf = s->VAR_0.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_ACPI); pci_config_set_class(pci_conf,...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "VT686PMState *s = DO_UPCAST(VT686PMState, VAR_0, VAR_0);", "uint8_t *pci_conf;", "pci_conf = s->VAR_0.config;", "pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA);", "pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_ACPI);", "pci_config_set_class(pci_co...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 57 ], ...
3,026
restore_sigcontext(CPUM68KState *env, struct target_sigcontext *sc, int *pd0) { int temp; __get_user(env->aregs[7], &sc->sc_usp); __get_user(env->dregs[1], &sc->sc_d1); __get_user(env->aregs[0], &sc->sc_a0); __get_user(env->aregs[1], &sc->sc_a1); __get_user(env->pc, &sc->sc_pc); __...
false
qemu
7ccb84a91618eda626b12ce83d62cfe678cfc58f
restore_sigcontext(CPUM68KState *env, struct target_sigcontext *sc, int *pd0) { int temp; __get_user(env->aregs[7], &sc->sc_usp); __get_user(env->dregs[1], &sc->sc_d1); __get_user(env->aregs[0], &sc->sc_a0); __get_user(env->aregs[1], &sc->sc_a1); __get_user(env->pc, &sc->sc_pc); __...
{ "code": [], "line_no": [] }
FUNC_0(CPUM68KState *VAR_0, struct target_sigcontext *VAR_1, int *VAR_2) { int VAR_3; __get_user(VAR_0->aregs[7], &VAR_1->sc_usp); __get_user(VAR_0->dregs[1], &VAR_1->sc_d1); __get_user(VAR_0->aregs[0], &VAR_1->sc_a0); __get_user(VAR_0->aregs[1], &VAR_1->sc_a1); __get_user(VAR_0->pc, &V...
[ "FUNC_0(CPUM68KState *VAR_0, struct target_sigcontext *VAR_1, int *VAR_2)\n{", "int VAR_3;", "__get_user(VAR_0->aregs[7], &VAR_1->sc_usp);", "__get_user(VAR_0->dregs[1], &VAR_1->sc_d1);", "__get_user(VAR_0->aregs[0], &VAR_1->sc_a0);", "__get_user(VAR_0->aregs[1], &VAR_1->sc_a1);", "__get_user(VAR_0->pc,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
3,027
void DMA_run (void) { }
false
qemu
492c30af2567a59413c064f88eb81e1691865195
void DMA_run (void) { }
{ "code": [], "line_no": [] }
void FUNC_0 (void) { }
[ "void FUNC_0 (void)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 5 ] ]
3,028
static void set_blocksize(Object *obj, Visitor *v, void *opaque, const char *name, Error **errp) { DeviceState *dev = DEVICE(obj); Property *prop = opaque; uint16_t value, *ptr = qdev_get_prop_ptr(dev, prop); Error *local_err = NULL; const int64_t min = 512; con...
false
qemu
0eb28a42284ec32e6f283985d2d638474a05eba4
static void set_blocksize(Object *obj, Visitor *v, void *opaque, const char *name, Error **errp) { DeviceState *dev = DEVICE(obj); Property *prop = opaque; uint16_t value, *ptr = qdev_get_prop_ptr(dev, prop); Error *local_err = NULL; const int64_t min = 512; con...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2, const char *VAR_3, Error **VAR_4) { DeviceState *dev = DEVICE(VAR_0); Property *prop = VAR_2; uint16_t value, *ptr = qdev_get_prop_ptr(dev, prop); Error *local_err = NULL; const int64_t VAR_5 = 512; ...
[ "static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,\nconst char *VAR_3, Error **VAR_4)\n{", "DeviceState *dev = DEVICE(VAR_0);", "Property *prop = VAR_2;", "uint16_t value, *ptr = qdev_get_prop_ptr(dev, prop);", "Error *local_err = NULL;", "const int64_t VAR_5 = 512;", "const int64_t VAR_6 =...
[ 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
3,029
static void load_linux(FWCfgState *fw_cfg, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, hwaddr max_ram_size) { uint16_t protocol; int setup_size, kernel_size, initrd_size =...
false
qemu
927766c7d34275ecf586020cc5305e377cc4af10
static void load_linux(FWCfgState *fw_cfg, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, hwaddr max_ram_size) { uint16_t protocol; int setup_size, kernel_size, initrd_size =...
{ "code": [], "line_no": [] }
static void FUNC_0(FWCfgState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, hwaddr VAR_4) { uint16_t protocol; int VAR_5, VAR_6, VAR_7 = 0, VAR_8; uint32_t initrd_max; uint8_t header[8...
[ "static void FUNC_0(FWCfgState *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nhwaddr VAR_4)\n{", "uint16_t protocol;", "int VAR_5, VAR_6, VAR_7 = 0, VAR_8;", "uint32_t initrd_max;", "uint8_t header[8192], *setup, *kernel, *initrd_data;", "hwaddr real_addr, prot_addr, cmdline_addr, in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39, 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 57, 59 ], [ 61,...
3,030
void unregister_savevm(DeviceState *dev, const char *idstr, void *opaque) { SaveStateEntry *se, *new_se; char id[256] = ""; if (dev) { char *path = qdev_get_dev_path(dev); if (path) { pstrcpy(id, sizeof(id), path); pstrcat(id, sizeof(id), "/"); ...
false
qemu
ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374
void unregister_savevm(DeviceState *dev, const char *idstr, void *opaque) { SaveStateEntry *se, *new_se; char id[256] = ""; if (dev) { char *path = qdev_get_dev_path(dev); if (path) { pstrcpy(id, sizeof(id), path); pstrcat(id, sizeof(id), "/"); ...
{ "code": [], "line_no": [] }
void FUNC_0(DeviceState *VAR_0, const char *VAR_1, void *VAR_2) { SaveStateEntry *se, *new_se; char VAR_3[256] = ""; if (VAR_0) { char *VAR_4 = qdev_get_dev_path(VAR_0); if (VAR_4) { pstrcpy(VAR_3, sizeof(VAR_3), VAR_4); pstrcat(VAR_3, sizeof(VAR_3), "/"); ...
[ "void FUNC_0(DeviceState *VAR_0, const char *VAR_1, void *VAR_2)\n{", "SaveStateEntry *se, *new_se;", "char VAR_3[256] = \"\";", "if (VAR_0) {", "char *VAR_4 = qdev_get_dev_path(VAR_0);", "if (VAR_4) {", "pstrcpy(VAR_3, sizeof(VAR_3), VAR_4);", "pstrcat(VAR_3, sizeof(VAR_3), \"/\");", "g_free(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
3,031
static int get_cluster_offset(BlockDriverState *bs, VmdkExtent *extent, VmdkMetaData *m_data, uint64_t offset, int allocate, uint64_t *...
false
qemu
ae261c86aaed62e7acddafab8262a2bf286d40b7
static int get_cluster_offset(BlockDriverState *bs, VmdkExtent *extent, VmdkMetaData *m_data, uint64_t offset, int allocate, uint64_t *...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, VmdkExtent *VAR_1, VmdkMetaData *VAR_2, uint64_t VAR_3, int VAR_4, uint64_t *VAR_5) { ...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nVmdkExtent *VAR_1,\nVmdkMetaData *VAR_2,\nuint64_t VAR_3,\nint VAR_4,\nuint64_t *VAR_5)\n{", "unsigned int VAR_6, VAR_7, VAR_8;", "int VAR_9, VAR_10, VAR_11;", "uint32_t min_count, *l2_table, tmp = 0;", "if (VAR_2)\nVAR_2->valid = 0;", "if (VAR_1->flat) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
3,032
static int get_phys_addr_v6(CPUState *env, uint32_t address, int access_type, int is_user, uint32_t *phys_ptr, int *prot) { int code; uint32_t table; uint32_t desc; uint32_t xn; int type; int ap; int domain; uint32_t phys_addr; /* Pagetable walk. */ /* Looku...
false
qemu
d4c430a80f000d722bb70287af4d4c184a8d7006
static int get_phys_addr_v6(CPUState *env, uint32_t address, int access_type, int is_user, uint32_t *phys_ptr, int *prot) { int code; uint32_t table; uint32_t desc; uint32_t xn; int type; int ap; int domain; uint32_t phys_addr; table = get_level1_table...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3, uint32_t *VAR_4, int *VAR_5) { int VAR_6; uint32_t table; uint32_t desc; uint32_t xn; int VAR_7; int VAR_8; int VAR_9; uint32_t phys_addr; table = get_level1_table_address(VAR_0, ...
[ "static int FUNC_0(CPUState *VAR_0, uint32_t VAR_1, int VAR_2,\nint VAR_3, uint32_t *VAR_4, int *VAR_5)\n{", "int VAR_6;", "uint32_t table;", "uint32_t desc;", "uint32_t xn;", "int VAR_7;", "int VAR_8;", "int VAR_9;", "uint32_t phys_addr;", "table = get_level1_table_address(VAR_0, VAR_1);", "des...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
3,033
void bdrv_dirty_bitmap_deserialize_part(BdrvDirtyBitmap *bitmap, uint8_t *buf, uint64_t start, uint64_t count, bool finish) { hbitmap_deserialize_part(bitmap->bitmap, buf, start, count, finish); }
false
qemu
86f6ae67e157362f3b141649874213ce01dcc622
void bdrv_dirty_bitmap_deserialize_part(BdrvDirtyBitmap *bitmap, uint8_t *buf, uint64_t start, uint64_t count, bool finish) { hbitmap_deserialize_part(bitmap->bitmap, buf, start, count, finish); }
{ "code": [], "line_no": [] }
void FUNC_0(BdrvDirtyBitmap *VAR_0, uint8_t *VAR_1, uint64_t VAR_2, uint64_t VAR_3, bool VAR_4) { hbitmap_deserialize_part(VAR_0->VAR_0, VAR_1, VAR_2, VAR_3, VAR_4); }
[ "void FUNC_0(BdrvDirtyBitmap *VAR_0,\nuint8_t *VAR_1, uint64_t VAR_2,\nuint64_t VAR_3, bool VAR_4)\n{", "hbitmap_deserialize_part(VAR_0->VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ] ]
3,034
void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType codec_type){ int flags=0; memset(s, 0, sizeof(AVCodecContext)); s->av_class= &av_codec_context_class; s->codec_type = codec_type; if(codec_type == AVMEDIA_TYPE_AUDIO) flags= AV_OPT_FLAG_AUDIO_PARAM; else if...
false
FFmpeg
79eff9132581af69fbbd2674337b75fad29aa306
void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType codec_type){ int flags=0; memset(s, 0, sizeof(AVCodecContext)); s->av_class= &av_codec_context_class; s->codec_type = codec_type; if(codec_type == AVMEDIA_TYPE_AUDIO) flags= AV_OPT_FLAG_AUDIO_PARAM; else if...
{ "code": [], "line_no": [] }
void FUNC_0(AVCodecContext *VAR_0, enum AVMediaType VAR_1){ int VAR_2=0; memset(VAR_0, 0, sizeof(AVCodecContext)); VAR_0->av_class= &av_codec_context_class; VAR_0->VAR_1 = VAR_1; if(VAR_1 == AVMEDIA_TYPE_AUDIO) VAR_2= AV_OPT_FLAG_AUDIO_PARAM; else if(VAR_1 == AVMEDIA_TYPE_VIDE...
[ "void FUNC_0(AVCodecContext *VAR_0, enum AVMediaType VAR_1){", "int VAR_2=0;", "memset(VAR_0, 0, sizeof(AVCodecContext));", "VAR_0->av_class= &av_codec_context_class;", "VAR_0->VAR_1 = VAR_1;", "if(VAR_1 == AVMEDIA_TYPE_AUDIO)\nVAR_2= AV_OPT_FLAG_AUDIO_PARAM;", "else if(VAR_1 == AVMEDIA_TYPE_VIDEO)\nVAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51...
3,035
static bool qemu_gluster_test_seek(struct glfs_fd *fd) { off_t ret, eof; eof = glfs_lseek(fd, 0, SEEK_END); if (eof < 0) { /* this should never occur */ return false; } /* this should always fail with ENXIO if SEEK_DATA is supported */ ret = glfs_lseek(fd, eof, SEEK_...
false
qemu
d9b789745b88df367674e45c55df29e9c7de8d8a
static bool qemu_gluster_test_seek(struct glfs_fd *fd) { off_t ret, eof; eof = glfs_lseek(fd, 0, SEEK_END); if (eof < 0) { return false; } ret = glfs_lseek(fd, eof, SEEK_DATA); return (ret < 0) && (errno == ENXIO); }
{ "code": [], "line_no": [] }
static bool FUNC_0(struct glfs_fd *fd) { off_t ret, eof; eof = glfs_lseek(fd, 0, SEEK_END); if (eof < 0) { return false; } ret = glfs_lseek(fd, eof, SEEK_DATA); return (ret < 0) && (errno == ENXIO); }
[ "static bool FUNC_0(struct glfs_fd *fd)\n{", "off_t ret, eof;", "eof = glfs_lseek(fd, 0, SEEK_END);", "if (eof < 0) {", "return false;", "}", "ret = glfs_lseek(fd, eof, SEEK_DATA);", "return (ret < 0) && (errno == ENXIO);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ] ]
3,036
static unsigned int dec10_quick_imm(DisasContext *dc) { int32_t imm, simm; int op; /* sign extend. */ imm = dc->ir & ((1 << 6) - 1); simm = (int8_t) (imm << 2); simm >>= 2; switch (dc->opcode) { case CRISV10_QIMM_BDAP_R0: case CRISV10_QIMM_BDAP_R1: case ...
false
qemu
3ab20e206ce74299e836bfec5ec27b7f261826be
static unsigned int dec10_quick_imm(DisasContext *dc) { int32_t imm, simm; int op; imm = dc->ir & ((1 << 6) - 1); simm = (int8_t) (imm << 2); simm >>= 2; switch (dc->opcode) { case CRISV10_QIMM_BDAP_R0: case CRISV10_QIMM_BDAP_R1: case CRISV10_QIMM_BDAP_R...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { int32_t imm, simm; int VAR_1; imm = VAR_0->ir & ((1 << 6) - 1); simm = (int8_t) (imm << 2); simm >>= 2; switch (VAR_0->opcode) { case CRISV10_QIMM_BDAP_R0: case CRISV10_QIMM_BDAP_R1: case CRISV10_QIMM_BDA...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "int32_t imm, simm;", "int VAR_1;", "imm = VAR_0->ir & ((1 << 6) - 1);", "simm = (int8_t) (imm << 2);", "simm >>= 2;", "switch (VAR_0->opcode) {", "case CRISV10_QIMM_BDAP_R0:\ncase CRISV10_QIMM_BDAP_R1:\ncase CRISV10_QIMM_BDAP_R2:\ncase CRISV10_QIM...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
3,037
PXA2xxState *pxa270_init(unsigned int sdram_size, const char *revision) { PXA2xxState *s; int iomemtype, i; DriveInfo *dinfo; s = (PXA2xxState *) qemu_mallocz(sizeof(PXA2xxState)); if (revision && strncmp(revision, "pxa27", 5)) { fprintf(stderr, "Machine requires a PXA27x processor....
false
qemu
e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf
PXA2xxState *pxa270_init(unsigned int sdram_size, const char *revision) { PXA2xxState *s; int iomemtype, i; DriveInfo *dinfo; s = (PXA2xxState *) qemu_mallocz(sizeof(PXA2xxState)); if (revision && strncmp(revision, "pxa27", 5)) { fprintf(stderr, "Machine requires a PXA27x processor....
{ "code": [], "line_no": [] }
PXA2xxState *FUNC_0(unsigned int sdram_size, const char *revision) { PXA2xxState *s; int VAR_0, VAR_1; DriveInfo *dinfo; s = (PXA2xxState *) qemu_mallocz(sizeof(PXA2xxState)); if (revision && strncmp(revision, "pxa27", 5)) { fprintf(stderr, "Machine requires a PXA27x processor.\n");...
[ "PXA2xxState *FUNC_0(unsigned int sdram_size, const char *revision)\n{", "PXA2xxState *s;", "int VAR_0, VAR_1;", "DriveInfo *dinfo;", "s = (PXA2xxState *) qemu_mallocz(sizeof(PXA2xxState));", "if (revision && strncmp(revision, \"pxa27\", 5)) {", "fprintf(stderr, \"Machine requires a PXA27x processor.\\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45, 47, 49 ], [ 51, 53,...
3,038
static int bdrv_snapshot_find(BlockDriverState *bs, QEMUSnapshotInfo *sn_info, const char *name) { QEMUSnapshotInfo *sn_tab, *sn; int nb_sns, i, ret; ret = -ENOENT; nb_sns = bdrv_snapshot_list(bs, &sn_tab); if (nb_sns < 0) return ret; for(i = 0; i...
false
qemu
de08c606f9ddafe647b6843e2b10a6d6030b0fc0
static int bdrv_snapshot_find(BlockDriverState *bs, QEMUSnapshotInfo *sn_info, const char *name) { QEMUSnapshotInfo *sn_tab, *sn; int nb_sns, i, ret; ret = -ENOENT; nb_sns = bdrv_snapshot_list(bs, &sn_tab); if (nb_sns < 0) return ret; for(i = 0; i...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo *VAR_1, const char *VAR_2) { QEMUSnapshotInfo *sn_tab, *sn; int VAR_3, VAR_4, VAR_5; VAR_5 = -ENOENT; VAR_3 = bdrv_snapshot_list(VAR_0, &sn_tab); if (VAR_3 < 0) return VAR_5; for(VAR_4 = ...
[ "static int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo *VAR_1,\nconst char *VAR_2)\n{", "QEMUSnapshotInfo *sn_tab, *sn;", "int VAR_3, VAR_4, VAR_5;", "VAR_5 = -ENOENT;", "VAR_3 = bdrv_snapshot_list(VAR_0, &sn_tab);", "if (VAR_3 < 0)\nreturn VAR_5;", "for(VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) {", "s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
3,041
static int vfio_set_trigger_eventfd(VFIOINTp *intp, eventfd_user_side_handler_t handler) { VFIODevice *vbasedev = &intp->vdev->vbasedev; struct vfio_irq_set *irq_set; int argsz, ret; int32_t *pfd; argsz = sizeof(*irq_set) + sizeof(*pfd); irq_set = g_...
false
qemu
a22313deca720e038ebc5805cf451b3a685d29ce
static int vfio_set_trigger_eventfd(VFIOINTp *intp, eventfd_user_side_handler_t handler) { VFIODevice *vbasedev = &intp->vdev->vbasedev; struct vfio_irq_set *irq_set; int argsz, ret; int32_t *pfd; argsz = sizeof(*irq_set) + sizeof(*pfd); irq_set = g_...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOINTp *VAR_0, eventfd_user_side_handler_t VAR_1) { VFIODevice *vbasedev = &VAR_0->vdev->vbasedev; struct vfio_irq_set *VAR_2; int VAR_3, VAR_4; int32_t *pfd; VAR_3 = sizeof(*VAR_2) + sizeof(*pfd); VAR_2 = g_malloc0(VAR_3); V...
[ "static int FUNC_0(VFIOINTp *VAR_0,\neventfd_user_side_handler_t VAR_1)\n{", "VFIODevice *vbasedev = &VAR_0->vdev->vbasedev;", "struct vfio_irq_set *VAR_2;", "int VAR_3, VAR_4;", "int32_t *pfd;", "VAR_3 = sizeof(*VAR_2) + sizeof(*pfd);", "VAR_2 = g_malloc0(VAR_3);", "VAR_2->VAR_3 = VAR_3;", "VAR_2->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
3,042
static int audio_attach_capture (HWVoiceOut *hw) { AudioState *s = &glob_audio_state; CaptureVoiceOut *cap; audio_detach_capture (hw); for (cap = s->cap_head.lh_first; cap; cap = cap->entries.le_next) { SWVoiceCap *sc; SWVoiceOut *sw; HWVoiceOut *hw_cap = &cap->hw; ...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static int audio_attach_capture (HWVoiceOut *hw) { AudioState *s = &glob_audio_state; CaptureVoiceOut *cap; audio_detach_capture (hw); for (cap = s->cap_head.lh_first; cap; cap = cap->entries.le_next) { SWVoiceCap *sc; SWVoiceOut *sw; HWVoiceOut *hw_cap = &cap->hw; ...
{ "code": [], "line_no": [] }
static int FUNC_0 (HWVoiceOut *VAR_0) { AudioState *s = &glob_audio_state; CaptureVoiceOut *cap; audio_detach_capture (VAR_0); for (cap = s->cap_head.lh_first; cap; cap = cap->entries.le_next) { SWVoiceCap *sc; SWVoiceOut *sw; HWVoiceOut *hw_cap = &cap->VAR_0; ...
[ "static int FUNC_0 (HWVoiceOut *VAR_0)\n{", "AudioState *s = &glob_audio_state;", "CaptureVoiceOut *cap;", "audio_detach_capture (VAR_0);", "for (cap = s->cap_head.lh_first; cap; cap = cap->entries.le_next) {", "SWVoiceCap *sc;", "SWVoiceOut *sw;", "HWVoiceOut *hw_cap = &cap->VAR_0;", "sc = audio_ca...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
3,043
static int ffserver_opt_preset(const char *arg, AVCodecContext *avctx, int type, enum AVCodecID *audio_id, enum AVCodecID *video_id) { FILE *f=NULL; char filename[1000], tmp[1000], tmp2[1000], line[1000]; int ret = 0; AVCodec *codec = avcodec_find_enc...
false
FFmpeg
ed1f8915daf6b84a940463dfe83c7b970f82383d
static int ffserver_opt_preset(const char *arg, AVCodecContext *avctx, int type, enum AVCodecID *audio_id, enum AVCodecID *video_id) { FILE *f=NULL; char filename[1000], tmp[1000], tmp2[1000], line[1000]; int ret = 0; AVCodec *codec = avcodec_find_enc...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, AVCodecContext *VAR_1, int VAR_2, enum AVCodecID *VAR_3, enum AVCodecID *VAR_4) { FILE *f=NULL; char VAR_5[1000], VAR_6[1000], VAR_7[1000], VAR_8[1000]; int VAR_9 = 0; AVCodec *codec = avcodec_find_encoder(VAR_1->c...
[ "static int FUNC_0(const char *VAR_0,\nAVCodecContext *VAR_1, int VAR_2,\nenum AVCodecID *VAR_3, enum AVCodecID *VAR_4)\n{", "FILE *f=NULL;", "char VAR_5[1000], VAR_6[1000], VAR_7[1000], VAR_8[1000];", "int VAR_9 = 0;", "AVCodec *codec = avcodec_find_encoder(VAR_1->codec_id);", "if (!(f = get_preset_file(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
3,044
void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, const char *boot_device, MachineState *machine, ISADevice *floppy, BusState *idebus0, BusState *idebus1, ISADevice *s) { int val, nb, i; FDriveType fd_type[2] = { FDRIVE_DRV_NONE, FDR...
false
qemu
ddcd55316fb2851e144e719171621ad2816487dc
void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, const char *boot_device, MachineState *machine, ISADevice *floppy, BusState *idebus0, BusState *idebus1, ISADevice *s) { int val, nb, i; FDriveType fd_type[2] = { FDRIVE_DRV_NONE, FDR...
{ "code": [], "line_no": [] }
void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1, const char *VAR_2, MachineState *VAR_3, ISADevice *VAR_4, BusState *VAR_5, BusState *VAR_6, ISADevice *VAR_7) { int VAR_8, VAR_9, VAR_10; FDriveType fd_type[2] = { FDRIVE_DRV_NONE, FDRIVE_DRV_NONE }; ...
[ "void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1,\nconst char *VAR_2, MachineState *VAR_3,\nISADevice *VAR_4, BusState *VAR_5, BusState *VAR_6,\nISADevice *VAR_7)\n{", "int VAR_8, VAR_9, VAR_10;", "FDriveType fd_type[2] = { FDRIVE_DRV_NONE, FDRIVE_DRV_NONE };", "static pc_cmos_init_late_arg VAR_11;", "PCMach...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...