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
8,701
static int tap_alloc(char *dev, size_t dev_size) { int tap_fd, if_fd, ppa = -1; static int ip_fd = 0; char *ptr; static int arp_fd = 0; int ip_muxid, arp_muxid; struct strioctl strioc_if, strioc_ppa; int link_type = I_PLINK; struct lifreq ifr; char actual_name[32] = ""; ...
true
qemu
576c6eb6700d241c9d4a6883d25720c7bbaaeccd
static int tap_alloc(char *dev, size_t dev_size) { int tap_fd, if_fd, ppa = -1; static int ip_fd = 0; char *ptr; static int arp_fd = 0; int ip_muxid, arp_muxid; struct strioctl strioc_if, strioc_ppa; int link_type = I_PLINK; struct lifreq ifr; char actual_name[32] = ""; ...
{ "code": [ "static int tap_alloc(char *dev, size_t dev_size)", " syslog(LOG_ERR, \"Can't open /dev/ip (actually /dev/udp)\");", " return -1;", " syslog(LOG_ERR, \"Can't open /dev/tap\");", " return -1;", " syslog (LOG_ERR, \"Can't assign new interface\");", "...
static int FUNC_0(char *VAR_0, size_t VAR_1) { int VAR_2, VAR_3, VAR_4 = -1; static int VAR_5 = 0; char *VAR_6; static int VAR_7 = 0; int VAR_8, VAR_9; struct strioctl VAR_10, VAR_11; int VAR_12 = I_PLINK; struct lifreq VAR_13; char VAR_14[32] = ""; memset(&VAR_13...
[ "static int FUNC_0(char *VAR_0, size_t VAR_1)\n{", "int VAR_2, VAR_3, VAR_4 = -1;", "static int VAR_5 = 0;", "char *VAR_6;", "static int VAR_7 = 0;", "int VAR_8, VAR_9;", "struct strioctl VAR_10, VAR_11;", "int VAR_12 = I_PLINK;", "struct lifreq VAR_13;", "char VAR_14[32] = \"\";", "memset(&VAR...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45, 47 ], [ 51 ], [ 53 ], [...
8,703
static int ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band, IVITile *tile, int32_t mv_scale) { int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type; int offs, mb_offset, row_offset; IVIMbInfo *mb, *ref_mb; cons...
false
FFmpeg
b36e1893ef3430f039c1eaddeedcbb378f9c4444
static int ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band, IVITile *tile, int32_t mv_scale) { int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type; int offs, mb_offset, row_offset; IVIMbInfo *mb, *ref_mb; cons...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, IVIBandDesc *VAR_1, IVITile *VAR_2, int32_t VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_21; int VAR_13, VAR_14, VAR_15; IVIMbInfo *mb, *ref_mb; const int16_t *V...
[ "static int FUNC_0(AVCodecContext *VAR_0, IVIBandDesc *VAR_1,\nIVITile *VAR_2, int32_t VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_21;", "int VAR_13, VAR_14, VAR_15;", "IVIMbInfo *mb, *ref_mb;", "const int16_t *VAR_16;", "int16_t *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
8,704
static void set_palette(AVFrame * frame, const uint8_t * palette_buffer) { uint32_t * palette = (uint32_t *)frame->data[1]; int a; for(a = 0; a < 256; a++){ palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4; } frame->palette_has_changed = 1; }
false
FFmpeg
3eedd29bd7df6f21a79e1a67a6d905049996d2ec
static void set_palette(AVFrame * frame, const uint8_t * palette_buffer) { uint32_t * palette = (uint32_t *)frame->data[1]; int a; for(a = 0; a < 256; a++){ palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4; } frame->palette_has_changed = 1; }
{ "code": [], "line_no": [] }
static void FUNC_0(AVFrame * VAR_0, const uint8_t * VAR_1) { uint32_t * palette = (uint32_t *)VAR_0->data[1]; int VAR_2; for(VAR_2 = 0; VAR_2 < 256; VAR_2++){ palette[VAR_2] = AV_RB24(&VAR_1[VAR_2 * 3]) * 4; } VAR_0->palette_has_changed = 1; }
[ "static void FUNC_0(AVFrame * VAR_0, const uint8_t * VAR_1)\n{", "uint32_t * palette = (uint32_t *)VAR_0->data[1];", "int VAR_2;", "for(VAR_2 = 0; VAR_2 < 256; VAR_2++){", "palette[VAR_2] = AV_RB24(&VAR_1[VAR_2 * 3]) * 4;", "}", "VAR_0->palette_has_changed = 1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
8,705
static inline void RENAME(rgb32to15)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX mm_end = end - 15; #if 1 //is faster only if multiplie...
false
FFmpeg
ae4cffd9fc5bc495692920d646d7d1462315cfa6
static inline void RENAME(rgb32to15)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX mm_end = end - 15; #if 1 asm volatile( "movq %3,...
{ "code": [], "line_no": [] }
static inline void FUNC_0(rgb32to15)(const uint8_t *VAR_2, uint8_t *dst, unsigned src_size) { const uint8_t *VAR_0 = VAR_2; const uint8_t *VAR_1; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; #ifdef HAVE_MMX mm_end = VAR_1 - 15; #if 1 asm vola...
[ "static inline void FUNC_0(rgb32to15)(const uint8_t *VAR_2, uint8_t *dst, unsigned src_size)\n{", "const uint8_t *VAR_0 = VAR_2;", "const uint8_t *VAR_1;", "#ifdef HAVE_MMX\nconst uint8_t *mm_end;", "#endif\nuint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "#ifdef HAVE_MMX\nmm_end = VAR_1 -...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,...
8,706
void helper_do_semihosting(CPUMIPSState *env) { target_ulong *gpr = env->active_tc.gpr; const UHIOp op = gpr[25]; char *p, *p2; switch (op) { case UHI_exit: qemu_log("UHI(%d): exit(%d)\n", op, (int)gpr[4]); exit(gpr[4]); case UHI_open: GET_TARGET_STRING(p, gpr...
true
qemu
26e7e982b267e71d40cd20e9e234fedef6770a90
void helper_do_semihosting(CPUMIPSState *env) { target_ulong *gpr = env->active_tc.gpr; const UHIOp op = gpr[25]; char *p, *p2; switch (op) { case UHI_exit: qemu_log("UHI(%d): exit(%d)\n", op, (int)gpr[4]); exit(gpr[4]); case UHI_open: GET_TARGET_STRING(p, gpr...
{ "code": [ " GET_TARGET_STRING(p, gpr[4]);", " GET_TARGET_STRING(p2, gpr[5]);", " GET_TARGET_STRING(p, gpr[4]);", " GET_TARGET_STRING(p2, gpr[5]);" ], "line_no": [ 23, 197, 23, 197 ] }
void FUNC_0(CPUMIPSState *VAR_0) { target_ulong *gpr = VAR_0->active_tc.gpr; const UHIOp VAR_1 = gpr[25]; char *VAR_2, *VAR_3; switch (VAR_1) { case UHI_exit: qemu_log("UHI(%d): exit(%d)\n", VAR_1, (int)gpr[4]); exit(gpr[4]); case UHI_open: GET_TARGET_STRING(V...
[ "void FUNC_0(CPUMIPSState *VAR_0)\n{", "target_ulong *gpr = VAR_0->active_tc.gpr;", "const UHIOp VAR_1 = gpr[25];", "char *VAR_2, *VAR_3;", "switch (VAR_1) {", "case UHI_exit:\nqemu_log(\"UHI(%d): exit(%d)\\n\", VAR_1, (int)gpr[4]);", "exit(gpr[4]);", "case UHI_open:\nGET_TARGET_STRING(VAR_2, gpr[4]);...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
8,708
static int decode_mb_info(IVI5DecContext *ctx, IVIBandDesc *band, IVITile *tile, AVCodecContext *avctx) { int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, mv_scale, blks_per_mb; IVIMbInfo *mb, *ref_mb; int row_offset = band->mb_size * band->p...
true
FFmpeg
f41a6c8f3aeb51332bb359038cb504d3fb562a52
static int decode_mb_info(IVI5DecContext *ctx, IVIBandDesc *band, IVITile *tile, AVCodecContext *avctx) { int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, mv_scale, blks_per_mb; IVIMbInfo *mb, *ref_mb; int row_offset = band->mb_size * band->p...
{ "code": [ " if (band->inherit_mv){", " if (band->inherit_mv) {", " if (band->inherit_mv){" ], "line_no": [ 81, 103, 155 ] }
static int FUNC_0(IVI5DecContext *VAR_0, IVIBandDesc *VAR_1, IVITile *VAR_2, AVCodecContext *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; IVIMbInfo *mb, *ref_mb; int VAR_13 = VAR_1->mb_size * VAR_1->pitch; ...
[ "static int FUNC_0(IVI5DecContext *VAR_0, IVIBandDesc *VAR_1,\nIVITile *VAR_2, AVCodecContext *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10,\nVAR_11, VAR_12;", "IVIMbInfo *mb, *ref_mb;", "int VAR_13 = VAR_1->mb_size * VAR_1->pitch;", "mb = VAR_2->mbs;", "ref_mb =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
8,709
static int init_input_stream(int ist_index, char *error, int error_len) { int i; InputStream *ist = input_streams[ist_index]; if (ist->decoding_needed) { AVCodec *codec = ist->dec; if (!codec) { snprintf(error, error_len, "Decoder (codec id %d) not found for input stream #...
true
FFmpeg
369cb092ecbbaff20bb0a2a1d60536c3bc04a8f0
static int init_input_stream(int ist_index, char *error, int error_len) { int i; InputStream *ist = input_streams[ist_index]; if (ist->decoding_needed) { AVCodec *codec = ist->dec; if (!codec) { snprintf(error, error_len, "Decoder (codec id %d) not found for input stream #...
{ "code": [ " break;", " return 0;", " break;", " if (ist->st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {", " for (i = 0; i < nb_output_streams; i++) {", " OutputStream *ost = output_streams[i];", " if (ost->s...
static int FUNC_0(int VAR_0, char *VAR_1, int VAR_2) { int VAR_3; InputStream *ist = input_streams[VAR_0]; if (ist->decoding_needed) { AVCodec *codec = ist->dec; if (!codec) { snprintf(VAR_1, VAR_2, "Decoder (codec id %d) not found for input stream #%d:%d", ...
[ "static int FUNC_0(int VAR_0, char *VAR_1, int VAR_2)\n{", "int VAR_3;", "InputStream *ist = input_streams[VAR_0];", "if (ist->decoding_needed) {", "AVCodec *codec = ist->dec;", "if (!codec) {", "snprintf(VAR_1, VAR_2, \"Decoder (codec id %d) not found for input stream #%d:%d\",\nist->st->codec->codec_i...
[ 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
8,710
static void init_proc_POWER9(CPUPPCState *env) { /* Common Registers */ init_proc_book3s_common(env); gen_spr_book3s_207_dbg(env); /* POWER8 Specific Registers */ gen_spr_book3s_ids(env); gen_spr_amr(env); gen_spr_iamr(env); gen_spr_book3s_purr(env); gen_spr_power5p_common(env); ...
true
qemu
b8af5b2d5f67b0e1b274f8532f42a47bfe46ea3b
static void init_proc_POWER9(CPUPPCState *env) { init_proc_book3s_common(env); gen_spr_book3s_207_dbg(env); gen_spr_book3s_ids(env); gen_spr_amr(env); gen_spr_iamr(env); gen_spr_book3s_purr(env); gen_spr_power5p_common(env); gen_spr_power5p_lpar(env); gen_spr_power5p_ear(en...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUPPCState *VAR_0) { init_proc_book3s_common(VAR_0); gen_spr_book3s_207_dbg(VAR_0); gen_spr_book3s_ids(VAR_0); gen_spr_amr(VAR_0); gen_spr_iamr(VAR_0); gen_spr_book3s_purr(VAR_0); gen_spr_power5p_common(VAR_0); gen_spr_power5p_lpar(VAR_0); gen_spr_power5...
[ "static void FUNC_0(CPUPPCState *VAR_0)\n{", "init_proc_book3s_common(VAR_0);", "gen_spr_book3s_207_dbg(VAR_0);", "gen_spr_book3s_ids(VAR_0);", "gen_spr_amr(VAR_0);", "gen_spr_iamr(VAR_0);", "gen_spr_book3s_purr(VAR_0);", "gen_spr_power5p_common(VAR_0);", "gen_spr_power5p_lpar(VAR_0);", "gen_spr_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 4 ], [ 5 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ...
8,711
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = data; int buf_index; s->flags= avctx->flags...
true
FFmpeg
357282c6f3c990833d0508c234ac4522d536c4ac
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = data; int buf_index; s->flags= avctx->flags...
{ "code": [ " Picture *cur = s->current_picture_ptr;", " if (s->first_field) {" ], "line_no": [ 191, 257 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { H264Context *h = VAR_0->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = VAR_1; int VAR_5; s->flags= VAR_0->flags; s->fla...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "H264Context *h = VAR_0->priv_data;", "MpegEncContext *s = &h->s;", "AVFrame *pict = VAR_1;", "int VAR_5;", "s->flags= VAR_0->flags;", "s->flags2= VAR_0->flags2;", "if (VAR_4 == 0) {", "Picture...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ...
8,713
target_ulong spapr_rtas_call(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { if ((token >= TOKEN_BASE) && ((token - TOKEN_BASE) < TOKEN_MAX)) { struct rtas...
true
qemu
3a3b8502e6f0c8d30865c5f36d2c3ae4114000b5
target_ulong spapr_rtas_call(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { if ((token >= TOKEN_BASE) && ((token - TOKEN_BASE) < TOKEN_MAX)) { struct rtas...
{ "code": [ " if ((token >= TOKEN_BASE)", " && ((token - TOKEN_BASE) < TOKEN_MAX)) {", " struct rtas_call *call = rtas_table + (token - TOKEN_BASE);" ], "line_no": [ 9, 11, 13 ] }
target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { if ((token >= TOKEN_BASE) && ((token - TOKEN_BASE) < TOKEN_MAX)) { struct rtas_call *VA...
[ "target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr,\nuint32_t token, uint32_t nargs, target_ulong args,\nuint32_t nret, target_ulong rets)\n{", "if ((token >= TOKEN_BASE)\n&& ((token - TOKEN_BASE) < TOKEN_MAX)) {", "struct rtas_call *VAR_0 = rtas_table + (token - TOKEN_BASE);", "if (VAR_0->fn) {", ...
[ 0, 1, 1, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ] ]
8,714
void OPPROTO op_fdivr_ST0_FT0(void) { ST0 = FT0 / ST0; }
true
qemu
2ee73ac3a855fb0cfba3db91fdd1ecebdbc6f971
void OPPROTO op_fdivr_ST0_FT0(void) { ST0 = FT0 / ST0; }
{ "code": [ " ST0 = FT0 / ST0;" ], "line_no": [ 5 ] }
void VAR_0 op_fdivr_ST0_FT0(void) { ST0 = FT0 / ST0; }
[ "void VAR_0 op_fdivr_ST0_FT0(void)\n{", "ST0 = FT0 / ST0;", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
8,715
static void spectral_to_sample(AACContext *ac, int samples) { int i, type; void (*imdct_and_window)(AACContext *ac, SingleChannelElement *sce); switch (ac->oc[1].m4ac.object_type) { case AOT_ER_AAC_LD: imdct_and_window = imdct_and_windowing_ld; break; case AOT_ER_AAC_ELD: ...
true
FFmpeg
2ccd2c9003c77aee8ffb5f4f43863e35bdf0e4b6
static void spectral_to_sample(AACContext *ac, int samples) { int i, type; void (*imdct_and_window)(AACContext *ac, SingleChannelElement *sce); switch (ac->oc[1].m4ac.object_type) { case AOT_ER_AAC_LD: imdct_and_window = imdct_and_windowing_ld; break; case AOT_ER_AAC_ELD: ...
{ "code": [ " che->ch[0].ret[j] = (int32_t)av_clip64((int64_t)che->ch[0].ret[j]<<7, INT32_MIN, INT32_MAX-0x8000)+0x8000;", " che->ch[1].ret[j] = (int32_t)av_clip64((int64_t)che->ch[1].ret[j]<<7, INT32_MIN, INT32_MAX-0x8000)+0x8000;" ], "line_no": [ 111...
static void FUNC_0(AACContext *VAR_5, int VAR_1) { int VAR_2, VAR_3; void (*VAR_4)(AACContext *VAR_5, SingleChannelElement *VAR_5); switch (VAR_5->oc[1].m4ac.object_type) { case AOT_ER_AAC_LD: VAR_4 = imdct_and_windowing_ld; break; case AOT_ER_AAC_ELD: VAR_4 = imdct_...
[ "static void FUNC_0(AACContext *VAR_5, int VAR_1)\n{", "int VAR_2, VAR_3;", "void (*VAR_4)(AACContext *VAR_5, SingleChannelElement *VAR_5);", "switch (VAR_5->oc[1].m4ac.object_type) {", "case AOT_ER_AAC_LD:\nVAR_4 = imdct_and_windowing_ld;", "break;", "case AOT_ER_AAC_ELD:\nVAR_4 = imdct_and_windowing_e...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45,...
8,716
static void serial_ioport_write(void *opaque, uint32_t addr, uint32_t val) { SerialState *s = opaque; unsigned char ch; addr &= 7; #ifdef DEBUG_SERIAL printf("serial: write addr=0x%02x val=0x%02x\n", addr, val); #endif switch(addr) { default: case 0: if (s->lcr & UART_LC...
true
qemu
81174dae3f9189519cd60c7b79e91c291b021bbe
static void serial_ioport_write(void *opaque, uint32_t addr, uint32_t val) { SerialState *s = opaque; unsigned char ch; addr &= 7; #ifdef DEBUG_SERIAL printf("serial: write addr=0x%02x val=0x%02x\n", addr, val); #endif switch(addr) { default: case 0: if (s->lcr & UART_LC...
{ "code": [ " SerialState *s = opaque;", " unsigned char ch;", " ch = val;", " if (!(s->mcr & UART_MCR_LOOP)) {", " qemu_chr_write(s->chr, &ch, 1);", " serial_receive_byte(s, ch);", " if (s->tx_burst > 0) {", " ...
static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { SerialState *s = VAR_0; unsigned char VAR_3; VAR_1 &= 7; #ifdef DEBUG_SERIAL printf("serial: write VAR_1=0x%02x VAR_2=0x%02x\n", VAR_1, VAR_2); #endif switch(VAR_1) { default: case 0: if (s->lcr & UART_LCR...
[ "static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "SerialState *s = VAR_0;", "unsigned char VAR_3;", "VAR_1 &= 7;", "#ifdef DEBUG_SERIAL\nprintf(\"serial: write VAR_1=0x%02x VAR_2=0x%02x\\n\", VAR_1, VAR_2);", "#endif\nswitch(VAR_1) {", "default:\ncase 0:\nif (s->lcr & UART_LCR_DLAB)...
[ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 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, 0, 0, 1, 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 ], [ 45 ], [ 47 ], [ 51...
8,717
int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx) { int ret; if ((ret = graph_check_validity(graphctx, log_ctx))) if ((ret = graph_insert_fifos(graphctx, log_ctx)) < 0) if ((ret = graph_config_formats(graphctx, log_ctx))) if ((ret = graph_config_links(graphctx, log_ctx))) ...
true
FFmpeg
345e7072ab867ee1e56cbf857dbc93d37f168294
int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx) { int ret; if ((ret = graph_check_validity(graphctx, log_ctx))) if ((ret = graph_insert_fifos(graphctx, log_ctx)) < 0) if ((ret = graph_config_formats(graphctx, log_ctx))) if ((ret = graph_config_links(graphctx, log_ctx))) ...
{ "code": [], "line_no": [] }
int FUNC_0(AVFilterGraph *VAR_0, void *VAR_1) { int VAR_2; if ((VAR_2 = graph_check_validity(VAR_0, VAR_1))) if ((VAR_2 = graph_insert_fifos(VAR_0, VAR_1)) < 0) if ((VAR_2 = graph_config_formats(VAR_0, VAR_1))) if ((VAR_2 = graph_config_links(VAR_0, VAR_1))) if ((VAR_2 = graph_con...
[ "int FUNC_0(AVFilterGraph *VAR_0, void *VAR_1)\n{", "int VAR_2;", "if ((VAR_2 = graph_check_validity(VAR_0, VAR_1)))\nif ((VAR_2 = graph_insert_fifos(VAR_0, VAR_1)) < 0)\nif ((VAR_2 = graph_config_formats(VAR_0, VAR_1)))\nif ((VAR_2 = graph_config_links(VAR_0, VAR_1)))\nif ((VAR_2 = graph_config_pointers(VAR_0,...
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 12, 15, 18, 23, 28 ], [ 30 ] ]
8,718
static void process_param(float *bc, EqParameter *param, float fs) { int i; for (i = 0; i <= NBANDS; i++) { param[i].lower = i == 0 ? 0 : bands[i - 1]; param[i].upper = i == NBANDS - 1 ? fs : bands[i]; param[i].gain = bc[i]; } }
false
FFmpeg
2820c9dfaa1f4093fea471665fdbef9ca7080bcd
static void process_param(float *bc, EqParameter *param, float fs) { int i; for (i = 0; i <= NBANDS; i++) { param[i].lower = i == 0 ? 0 : bands[i - 1]; param[i].upper = i == NBANDS - 1 ? fs : bands[i]; param[i].gain = bc[i]; } }
{ "code": [], "line_no": [] }
static void FUNC_0(float *VAR_0, EqParameter *VAR_1, float VAR_2) { int VAR_3; for (VAR_3 = 0; VAR_3 <= NBANDS; VAR_3++) { VAR_1[VAR_3].lower = VAR_3 == 0 ? 0 : bands[VAR_3 - 1]; VAR_1[VAR_3].upper = VAR_3 == NBANDS - 1 ? VAR_2 : bands[VAR_3]; VAR_1[VAR_3].gain = VAR_0[VAR_3]; ...
[ "static void FUNC_0(float *VAR_0, EqParameter *VAR_1, float VAR_2)\n{", "int VAR_3;", "for (VAR_3 = 0; VAR_3 <= NBANDS; VAR_3++) {", "VAR_1[VAR_3].lower = VAR_3 == 0 ? 0 : bands[VAR_3 - 1];", "VAR_1[VAR_3].upper = VAR_3 == NBANDS - 1 ? VAR_2 : bands[VAR_3];", "VAR_1[VAR_3].gain = VAR_0[VAR_3];", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
8,721
static int apng_read_packet(AVFormatContext *s, AVPacket *pkt) { APNGDemuxContext *ctx = s->priv_data; int64_t ret; int64_t size; AVIOContext *pb = s->pb; uint32_t len, tag; /* * fcTL chunk length, in bytes: * 4 (length) * 4 (tag) * 26 (actual chunk) * 4...
true
FFmpeg
16c429166ddf1736972b6ccce84bd3509ec16a34
static int apng_read_packet(AVFormatContext *s, AVPacket *pkt) { APNGDemuxContext *ctx = s->priv_data; int64_t ret; int64_t size; AVIOContext *pb = s->pb; uint32_t len, tag; if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 46)) < 0) return...
{ "code": [ " return send_extradata(ctx, pkt);", " if ((ret = avio_seek(pb, ctx->extra_data_size + 8, SEEK_SET)) < 0)", " return send_extradata(ctx, pkt);", " APNGDemuxContext *ctx = s->priv_data;" ], "line_no": [ 149, 163, 149, 5 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { APNGDemuxContext *ctx = VAR_0->priv_data; int64_t ret; int64_t size; AVIOContext *pb = VAR_0->pb; uint32_t len, tag; if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 46)) < 0) re...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "APNGDemuxContext *ctx = VAR_0->priv_data;", "int64_t ret;", "int64_t size;", "AVIOContext *pb = VAR_0->pb;", "uint32_t len, tag;", "if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 46)) < 0)\nreturn ret;", "len = avio_rb32(pb);...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53, 55 ], [ 59, 61 ], [ 67 ], [ 69 ], [ 71, 73, 75, 77 ], [ 81 ], [...
8,722
static int set_expr(AVExpr **pexpr, const char *expr, void *log_ctx) { int ret; if (*pexpr) av_expr_free(*pexpr); *pexpr = NULL; ret = av_expr_parse(pexpr, expr, var_names, NULL, NULL, NULL, NULL, 0, log_ctx); if (ret < 0) av_log(log_ctx, AV_LOG_ERR...
true
FFmpeg
aff6cebb41669a25008f76ce3c310001613e6263
static int set_expr(AVExpr **pexpr, const char *expr, void *log_ctx) { int ret; if (*pexpr) av_expr_free(*pexpr); *pexpr = NULL; ret = av_expr_parse(pexpr, expr, var_names, NULL, NULL, NULL, NULL, 0, log_ctx); if (ret < 0) av_log(log_ctx, AV_LOG_ERR...
{ "code": [ " av_expr_free(*pexpr);", " *pexpr = NULL;", " if (ret < 0)", " return ret;" ], "line_no": [ 11, 13, 19, 25 ] }
static int FUNC_0(AVExpr **VAR_0, const char *VAR_1, void *VAR_2) { int VAR_3; if (*VAR_0) av_expr_free(*VAR_0); *VAR_0 = NULL; VAR_3 = av_expr_parse(VAR_0, VAR_1, var_names, NULL, NULL, NULL, NULL, 0, VAR_2); if (VAR_3 < 0) av_log(VAR_2, AV_LOG_ERR...
[ "static int FUNC_0(AVExpr **VAR_0, const char *VAR_1, void *VAR_2)\n{", "int VAR_3;", "if (*VAR_0)\nav_expr_free(*VAR_0);", "*VAR_0 = NULL;", "VAR_3 = av_expr_parse(VAR_0, VAR_1, var_names,\nNULL, NULL, NULL, NULL, 0, VAR_2);", "if (VAR_3 < 0)\nav_log(VAR_2, AV_LOG_ERROR,\n\"Error when evaluating the expr...
[ 0, 0, 1, 1, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ] ]
8,723
int MPV_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i, dummy; int chroma_h_shift, chroma_v_shift; avctx->pix_fmt = PIX_FMT_YUV420P; // FIXME s->bit_rate = avctx->bit_rate; s->width = avctx->width; s->height = avctx->height; if(avctx->gop_si...
true
FFmpeg
747a0554ea8ad09404c1f5b80239ebd8d71b291e
int MPV_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i, dummy; int chroma_h_shift, chroma_v_shift; avctx->pix_fmt = PIX_FMT_YUV420P; s->bit_rate = avctx->bit_rate; s->width = avctx->width; s->height = avctx->height; if(avctx->gop_size > 600...
{ "code": [ " && s->codec_id != CODEC_ID_H263 && s->codec_id != CODEC_ID_H263P){" ], "line_no": [ 127 ] }
int FUNC_0(AVCodecContext *VAR_0) { MpegEncContext *s = VAR_0->priv_data; int VAR_6, VAR_2; int VAR_3, VAR_4; VAR_0->pix_fmt = PIX_FMT_YUV420P; s->bit_rate = VAR_0->bit_rate; s->width = VAR_0->width; s->height = VAR_0->height; if(VAR_0->gop_size > 600){ av_log(VAR_0, AV_L...
[ "int FUNC_0(AVCodecContext *VAR_0)\n{", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_6, VAR_2;", "int VAR_3, VAR_4;", "VAR_0->pix_fmt = PIX_FMT_YUV420P;", "s->bit_rate = VAR_0->bit_rate;", "s->width = VAR_0->width;", "s->height = VAR_0->height;", "if(VAR_0->gop_size > 600){", "av_log(VAR_0, A...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
8,725
static int32_t ahci_dma_prepare_buf(IDEDMA *dma, int is_write) { AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma); IDEState *s = &ad->port.ifs[0]; if (ahci_populate_sglist(ad, &s->sg, s->io_buffer_offset) == -1) { DPRINTF(ad->port_no, "ahci_dma_prepare_buf failed.\n"); return -1; ...
true
qemu
a718978ed58abc1ad92567a9c17525136be02a71
static int32_t ahci_dma_prepare_buf(IDEDMA *dma, int is_write) { AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma); IDEState *s = &ad->port.ifs[0]; if (ahci_populate_sglist(ad, &s->sg, s->io_buffer_offset) == -1) { DPRINTF(ad->port_no, "ahci_dma_prepare_buf failed.\n"); return -1; ...
{ "code": [ "static int32_t ahci_dma_prepare_buf(IDEDMA *dma, int is_write)", " if (ahci_populate_sglist(ad, &s->sg, s->io_buffer_offset) == -1) {" ], "line_no": [ 1, 11 ] }
static int32_t FUNC_0(IDEDMA *dma, int is_write) { AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma); IDEState *s = &ad->port.ifs[0]; if (ahci_populate_sglist(ad, &s->sg, s->io_buffer_offset) == -1) { DPRINTF(ad->port_no, "FUNC_0 failed.\n"); return -1; } s->io_buffer_size =...
[ "static int32_t FUNC_0(IDEDMA *dma, int is_write)\n{", "AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma);", "IDEState *s = &ad->port.ifs[0];", "if (ahci_populate_sglist(ad, &s->sg, s->io_buffer_offset) == -1) {", "DPRINTF(ad->port_no, \"FUNC_0 failed.\\n\");", "return -1;", "}", "s->io_buffer_size = s...
[ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ] ]
8,728
static int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, struct image_info * info) { struct elfhdr elf_ex; struct elfhdr interp_elf_ex; struct exec interp_ex; int interpreter_fd = -1; /* avoid warning */ unsigned long load_addr, load_bias...
true
qemu
eba2af633fb8fa3b20ad578184d79e1f0eabcefe
static int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, struct image_info * info) { struct elfhdr elf_ex; struct elfhdr interp_elf_ex; struct exec interp_ex; int interpreter_fd = -1; unsigned long load_addr, load_bias; int load_add...
{ "code": [ "\t sprintf(passed_fileno, \"%d\", bprm->fd);" ], "line_no": [ 383 ] }
static int FUNC_0(struct linux_binprm * VAR_0, struct target_pt_regs * VAR_1, struct image_info * VAR_2) { struct elfhdr VAR_3; struct elfhdr VAR_4; struct exec VAR_5; int VAR_6 = -1; unsigned long VAR_7, VAR_8; int VAR_9 = 0; unsigned int VAR_10 = INTERP...
[ "static int FUNC_0(struct linux_binprm * VAR_0, struct target_pt_regs * VAR_1,\nstruct image_info * VAR_2)\n{", "struct elfhdr VAR_3;", "struct elfhdr VAR_4;", "struct exec VAR_5;", "int VAR_6 = -1;", "unsigned long VAR_7, VAR_8;", "int VAR_9 = 0;", "unsigned int VAR_10 = INTERPRETER_NONE;", "unsign...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [...
8,729
static void vc1_inv_trans_4x4_c(uint8_t *dest, int linesize, DCTELEM *block) { int i; register int t1,t2,t3,t4; DCTELEM *src, *dst; const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; src = block; dst = block; for(i = 0; i < 4; i++){ t1 = 17 * (src[0] + src[2]) + 4; t2...
false
FFmpeg
32f0c658283e2451add02a6ee5c719efa877a34c
static void vc1_inv_trans_4x4_c(uint8_t *dest, int linesize, DCTELEM *block) { int i; register int t1,t2,t3,t4; DCTELEM *src, *dst; const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; src = block; dst = block; for(i = 0; i < 4; i++){ t1 = 17 * (src[0] + src[2]) + 4; t2...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2) { int VAR_3; register int VAR_4,VAR_5,VAR_6,VAR_7; DCTELEM *src, *dst; const uint8_t *VAR_8 = ff_cropTbl + MAX_NEG_CROP; src = VAR_2; dst = VAR_2; for(VAR_3 = 0; VAR_3 < 4; VAR_3++){ VAR_4 = 17 * (src[0] + src[2...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{", "int VAR_3;", "register int VAR_4,VAR_5,VAR_6,VAR_7;", "DCTELEM *src, *dst;", "const uint8_t *VAR_8 = ff_cropTbl + MAX_NEG_CROP;", "src = VAR_2;", "dst = VAR_2;", "for(VAR_3 = 0; VAR_3 < 4; VAR_3++){", "VAR_4 = 17 * (src[0] + src[2]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
8,730
static void fill_buffer(AVIOContext *s) { int max_buffer_size = s->max_packet_size ? s->max_packet_size : IO_BUFFER_SIZE; uint8_t *dst = s->buf_end - s->buffer + max_buffer_size < s->buffer_size ? s->buf_end : s->buffer; int len = ...
false
FFmpeg
a606f27f4c610708fa96e35eed7b7537d3d8f712
static void fill_buffer(AVIOContext *s) { int max_buffer_size = s->max_packet_size ? s->max_packet_size : IO_BUFFER_SIZE; uint8_t *dst = s->buf_end - s->buffer + max_buffer_size < s->buffer_size ? s->buf_end : s->buffer; int len = ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVIOContext *VAR_0) { int VAR_1 = VAR_0->max_packet_size ? VAR_0->max_packet_size : IO_BUFFER_SIZE; uint8_t *dst = VAR_0->buf_end - VAR_0->buffer + VAR_1 < VAR_0->buffer_size ? VAR_0->buf_end : VAR_0->buffer; int VAR_2 ...
[ "static void FUNC_0(AVIOContext *VAR_0)\n{", "int VAR_1 = VAR_0->max_packet_size ?\nVAR_0->max_packet_size : IO_BUFFER_SIZE;", "uint8_t *dst = VAR_0->buf_end - VAR_0->buffer + VAR_1 < VAR_0->buffer_size ?\nVAR_0->buf_end : VAR_0->buffer;", "int VAR_2 = VAR_0->buffer_size - (dst - VAR_0->buf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19, 21 ], [ 27, 29 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 61 ], [ 63 ], [...
8,731
AVFilterFormats *avfilter_make_all_channel_layouts(void) { static int64_t chlayouts[] = { AV_CH_LAYOUT_MONO, AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_4POINT0, AV_CH_LAYOUT_QUAD, AV_CH_LAYOUT_5POINT0, AV_CH_LAYOUT_5POINT0_BACK, AV_CH_LAYOUT_5POINT1, ...
false
FFmpeg
ea8de109af46ae8e6751217977ae8f7becf94ba5
AVFilterFormats *avfilter_make_all_channel_layouts(void) { static int64_t chlayouts[] = { AV_CH_LAYOUT_MONO, AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_4POINT0, AV_CH_LAYOUT_QUAD, AV_CH_LAYOUT_5POINT0, AV_CH_LAYOUT_5POINT0_BACK, AV_CH_LAYOUT_5POINT1, ...
{ "code": [], "line_no": [] }
AVFilterFormats *FUNC_0(void) { static int64_t VAR_0[] = { AV_CH_LAYOUT_MONO, AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_4POINT0, AV_CH_LAYOUT_QUAD, AV_CH_LAYOUT_5POINT0, AV_CH_LAYOUT_5POINT0_BACK, AV_CH_LAYOUT_5POINT1, AV_CH_LAYOUT_5POINT1_BACK, ...
[ "AVFilterFormats *FUNC_0(void)\n{", "static int64_t VAR_0[] = {", "AV_CH_LAYOUT_MONO,\nAV_CH_LAYOUT_STEREO,\nAV_CH_LAYOUT_4POINT0,\nAV_CH_LAYOUT_QUAD,\nAV_CH_LAYOUT_5POINT0,\nAV_CH_LAYOUT_5POINT0_BACK,\nAV_CH_LAYOUT_5POINT1,\nAV_CH_LAYOUT_5POINT1_BACK,\nAV_CH_LAYOUT_5POINT1|AV_CH_LAYOUT_STEREO_DOWNMIX,\nAV_CH_L...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33 ], [ 37 ], [ 39 ] ]
8,732
static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt) { MatroskaDemuxContext *matroska = s->priv_data; int ret = 0; while (!ret && matroska_deliver_packet(matroska, pkt)) { if (matroska->done) return AVERROR_EOF; ret = matroska_parse_cluster(matroska); ...
true
FFmpeg
8689d87ac61a412b88326c4d31a8f3375926f869
static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt) { MatroskaDemuxContext *matroska = s->priv_data; int ret = 0; while (!ret && matroska_deliver_packet(matroska, pkt)) { if (matroska->done) return AVERROR_EOF; ret = matroska_parse_cluster(matroska); ...
{ "code": [ " int ret = 0;", " while (!ret && matroska_deliver_packet(matroska, pkt)) {", " ret = matroska_parse_cluster(matroska);", " return ret;" ], "line_no": [ 7, 11, 17, 23 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MatroskaDemuxContext *matroska = VAR_0->priv_data; int VAR_2 = 0; while (!VAR_2 && matroska_deliver_packet(matroska, VAR_1)) { if (matroska->done) return AVERROR_EOF; VAR_2 = matroska_parse_cluster(matroska); ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MatroskaDemuxContext *matroska = VAR_0->priv_data;", "int VAR_2 = 0;", "while (!VAR_2 && matroska_deliver_packet(matroska, VAR_1)) {", "if (matroska->done)\nreturn AVERROR_EOF;", "VAR_2 = matroska_parse_cluster(matroska);", "}", "return...
[ 0, 0, 1, 1, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
8,733
int av_write_header(AVFormatContext *s) { int ret, i; AVStream *st; // some sanity checks if (s->nb_streams == 0) { av_log(s, AV_LOG_ERROR, "no streams\n"); return AVERROR(EINVAL); } for(i=0;i<s->nb_streams;i++) { st = s->streams[i]; switch (st->c...
true
FFmpeg
d2064fd42b2dd1cf1c44e5c4fc4b8aaba6698637
int av_write_header(AVFormatContext *s) { int ret, i; AVStream *st; if (s->nb_streams == 0) { av_log(s, AV_LOG_ERROR, "no streams\n"); return AVERROR(EINVAL); } for(i=0;i<s->nb_streams;i++) { st = s->streams[i]; switch (st->codec->codec_type) { ...
{ "code": [ " \"Tag %s/0x%08x incompatible with output codec '%s'\\n\",", " tagbuf, st->codec->codec_tag, st->codec->codec->name);" ], "line_no": [ 101, 103 ] }
int FUNC_0(AVFormatContext *VAR_0) { int VAR_1, VAR_2; AVStream *st; if (VAR_0->nb_streams == 0) { av_log(VAR_0, AV_LOG_ERROR, "no streams\n"); return AVERROR(EINVAL); } for(VAR_2=0;VAR_2<VAR_0->nb_streams;VAR_2++) { st = VAR_0->streams[VAR_2]; s...
[ "int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1, VAR_2;", "AVStream *st;", "if (VAR_0->nb_streams == 0) {", "av_log(VAR_0, AV_LOG_ERROR, \"no streams\\n\");", "return AVERROR(EINVAL);", "}", "for(VAR_2=0;VAR_2<VAR_0->nb_streams;VAR_2++) {", "st = VAR_0->streams[VAR_2];", "switch (st->codec->co...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45 ], [ 47 ], [ 49, 51 ], [ 53...
8,734
static TCGReg tcg_out_tlb_read(TCGContext *s, TCGMemOp s_bits, TCGReg addrlo, TCGReg addrhi, int mem_index, bool is_read) { int cmp_off = (is_read ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof...
true
qemu
68d45bb61c5bbfb3999486f78cf026c1e79eb301
static TCGReg tcg_out_tlb_read(TCGContext *s, TCGMemOp s_bits, TCGReg addrlo, TCGReg addrhi, int mem_index, bool is_read) { int cmp_off = (is_read ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof...
{ "code": [ "static TCGReg tcg_out_tlb_read(TCGContext *s, TCGMemOp s_bits,", " } else if (!s_bits) {", " tcg_out_rld(s, RLDICR, TCG_REG_R0, addrlo,", " 0, 63 - TARGET_PAGE_BITS);", " tcg_out_rld(s, RLDICL, TCG_REG_R0, addrlo,", " 64 - TAR...
static TCGReg FUNC_0(TCGContext *s, TCGMemOp s_bits, TCGReg addrlo, TCGReg addrhi, int mem_index, bool is_read) { int VAR_0 = (is_read ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof(CPUArchStat...
[ "static TCGReg FUNC_0(TCGContext *s, TCGMemOp s_bits,\nTCGReg addrlo, TCGReg addrhi,\nint mem_index, bool is_read)\n{", "int VAR_0\n= (is_read\n? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read)\n: offsetof(CPUArchState, tlb_table[mem_index][0].addr_write));", "int VAR_1 = offsetof(CPUArchState, tlb_ta...
[ 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, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 49 ], [ 57, 59, 61 ], [ 63 ], [ 65 ...
8,736
void qemu_tcg_configure(QemuOpts *opts, Error **errp) { const char *t = qemu_opt_get(opts, "thread"); if (t) { if (strcmp(t, "multi") == 0) { if (TCG_OVERSIZED_GUEST) { error_setg(errp, "No MTTCG when guest word size > hosts"); } else if (use_icount) { ...
true
qemu
c34c762015fec023c3ea5cf3629cbac462a80973
void qemu_tcg_configure(QemuOpts *opts, Error **errp) { const char *t = qemu_opt_get(opts, "thread"); if (t) { if (strcmp(t, "multi") == 0) { if (TCG_OVERSIZED_GUEST) { error_setg(errp, "No MTTCG when guest word size > hosts"); } else if (use_icount) { ...
{ "code": [], "line_no": [] }
void FUNC_0(QemuOpts *VAR_0, Error **VAR_1) { const char *VAR_2 = qemu_opt_get(VAR_0, "thread"); if (VAR_2) { if (strcmp(VAR_2, "multi") == 0) { if (TCG_OVERSIZED_GUEST) { error_setg(VAR_1, "No MTTCG when guest word size > hosts"); } else if (use_icount) { ...
[ "void FUNC_0(QemuOpts *VAR_0, Error **VAR_1)\n{", "const char *VAR_2 = qemu_opt_get(VAR_0, \"thread\");", "if (VAR_2) {", "if (strcmp(VAR_2, \"multi\") == 0) {", "if (TCG_OVERSIZED_GUEST) {", "error_setg(VAR_1, \"No MTTCG when guest word size > hosts\");", "} else if (use_icount) {", "error_setg(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
8,737
static int replaygain_export(AVStream *st, const uint8_t *track_gain, const uint8_t *track_peak, const uint8_t *album_gain, const uint8_t *album_peak) { AVPacketSideData *sd, *tmp; AVReplayGain *replaygain; uint8_t *data; int32_t tg, ag; ...
true
FFmpeg
8542f9c4f17125d483c40c0c5723842f1c982f81
static int replaygain_export(AVStream *st, const uint8_t *track_gain, const uint8_t *track_peak, const uint8_t *album_gain, const uint8_t *album_peak) { AVPacketSideData *sd, *tmp; AVReplayGain *replaygain; uint8_t *data; int32_t tg, ag; ...
{ "code": [ " return 0;", " return 0;", " tg = parse_gain(track_gain);", " ag = parse_gain(album_gain);", " tp = parse_peak(track_peak);", " ap = parse_peak(album_peak);" ], "line_no": [ 33, 33, 21, 23, 25, 27 ] }
static int FUNC_0(AVStream *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, const uint8_t *VAR_3, const uint8_t *VAR_4) { AVPacketSideData *sd, *tmp; AVReplayGain *replaygain; uint8_t *data; int32_t tg, ag; uint32_t tp, ap; ...
[ "static int FUNC_0(AVStream *VAR_0,\nconst uint8_t *VAR_1, const uint8_t *VAR_2,\nconst uint8_t *VAR_3, const uint8_t *VAR_4)\n{", "AVPacketSideData *sd, *tmp;", "AVReplayGain *replaygain;", "uint8_t *data;", "int32_t tg, ag;", "uint32_t tp, ap;", "tg = parse_gain(VAR_1);", "ag = parse_gain(VAR_3);", ...
[ 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
8,738
static int bytes_left(ByteIOContext *bc) { return bc->buf_end - bc->buf_ptr; }
false
FFmpeg
465e1dadbef7596a3eb87089a66bb4ecdc26d3c4
static int bytes_left(ByteIOContext *bc) { return bc->buf_end - bc->buf_ptr; }
{ "code": [], "line_no": [] }
static int FUNC_0(ByteIOContext *VAR_0) { return VAR_0->buf_end - VAR_0->buf_ptr; }
[ "static int FUNC_0(ByteIOContext *VAR_0)\n{", "return VAR_0->buf_end - VAR_0->buf_ptr;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
8,739
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) { int i, ret = 0; if (avctx->codec->type != AVMEDIA_TYPE_SUBTITLE) { av_log(avctx, AV_LOG_ERROR, "Invalid media type for subtitles\n")...
false
FFmpeg
63c0113588d61d5ed045e1937c473770453c53be
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) { int i, ret = 0; if (avctx->codec->type != AVMEDIA_TYPE_SUBTITLE) { av_log(avctx, AV_LOG_ERROR, "Invalid media type for subtitles\n")...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, AVSubtitle *VAR_1, int *VAR_2, AVPacket *VAR_3) { int VAR_4, VAR_5 = 0; if (VAR_0->codec->type != AVMEDIA_TYPE_SUBTITLE) { av_log(VAR_0, AV_LOG_ERROR, "Invalid media type for subtitles\n"); retur...
[ "int FUNC_0(AVCodecContext *VAR_0, AVSubtitle *VAR_1,\nint *VAR_2,\nAVPacket *VAR_3)\n{", "int VAR_4, VAR_5 = 0;", "if (VAR_0->codec->type != AVMEDIA_TYPE_SUBTITLE) {", "av_log(VAR_0, AV_LOG_ERROR, \"Invalid media type for subtitles\\n\");", "return AVERROR(EINVAL);", "}", "*VAR_2 = 0;", "avcodec_get_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55,...
8,740
static av_always_inline void thread_park_workers(ThreadContext *c, int thread_count) { while (c->current_job != thread_count + c->job_count) pthread_cond_wait(&c->last_job_cond, &c->current_job_lock); pthread_mutex_unlock(&c->current_job_lock); }
false
FFmpeg
daa7a1d4431b6acf1f93c4a98b3de123abf4ca18
static av_always_inline void thread_park_workers(ThreadContext *c, int thread_count) { while (c->current_job != thread_count + c->job_count) pthread_cond_wait(&c->last_job_cond, &c->current_job_lock); pthread_mutex_unlock(&c->current_job_lock); }
{ "code": [], "line_no": [] }
static av_always_inline void FUNC_0(ThreadContext *c, int thread_count) { while (c->current_job != thread_count + c->job_count) pthread_cond_wait(&c->last_job_cond, &c->current_job_lock); pthread_mutex_unlock(&c->current_job_lock); }
[ "static av_always_inline void FUNC_0(ThreadContext *c, int thread_count)\n{", "while (c->current_job != thread_count + c->job_count)\npthread_cond_wait(&c->last_job_cond, &c->current_job_lock);", "pthread_mutex_unlock(&c->current_job_lock);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
8,741
int ff_h264_check_intra4x4_pred_mode(H264Context *h){ MpegEncContext * const s = &h->s; static const int8_t top [12]= {-1, 0,LEFT_DC_PRED,-1,-1,-1,-1,-1, 0}; static const int8_t left[12]= { 0,-1, TOP_DC_PRED, 0,-1,-1,-1, 0,-1,DC_128_PRED}; int i; if(!(h->top_samples_available&0x8000)){ ...
false
FFmpeg
a4fd95b5d511384ed3ce388d8d20a16b1c4c0530
int ff_h264_check_intra4x4_pred_mode(H264Context *h){ MpegEncContext * const s = &h->s; static const int8_t top [12]= {-1, 0,LEFT_DC_PRED,-1,-1,-1,-1,-1, 0}; static const int8_t left[12]= { 0,-1, TOP_DC_PRED, 0,-1,-1,-1, 0,-1,DC_128_PRED}; int i; if(!(h->top_samples_available&0x8000)){ ...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; static const int8_t VAR_1 [12]= {-1, 0,LEFT_DC_PRED,-1,-1,-1,-1,-1, 0}; static const int8_t VAR_2[12]= { 0,-1, TOP_DC_PRED, 0,-1,-1,-1, 0,-1,DC_128_PRED}; int VAR_3; if(!(VAR_0->top_samples_available&0x8000)){ for(...
[ "int FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "static const int8_t VAR_1 [12]= {-1, 0,LEFT_DC_PRED,-1,-1,-1,-1,-1, 0};", "static const int8_t VAR_2[12]= { 0,-1, TOP_DC_PRED, 0,-1,-1,-1, 0,-1,DC_128_PRED};", "int VAR_3;", "if(!(VAR_0->top_samples_available&0x8000)){", "for(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
8,742
static void sdram_map_bcr (ppc4xx_sdram_t *sdram) { int i; for (i = 0; i < sdram->nbanks; i++) { if (sdram->ram_sizes[i] != 0) { sdram_set_bcr(&sdram->bcr[i], sdram_bcr(sdram->ram_bases[i], sdram->ram_sizes[i]), 1); } else...
false
qemu
b6dcbe086c77ec683f5ff0b693593cda1d61f3a1
static void sdram_map_bcr (ppc4xx_sdram_t *sdram) { int i; for (i = 0; i < sdram->nbanks; i++) { if (sdram->ram_sizes[i] != 0) { sdram_set_bcr(&sdram->bcr[i], sdram_bcr(sdram->ram_bases[i], sdram->ram_sizes[i]), 1); } else...
{ "code": [], "line_no": [] }
static void FUNC_0 (ppc4xx_sdram_t *VAR_0) { int VAR_1; for (VAR_1 = 0; VAR_1 < VAR_0->nbanks; VAR_1++) { if (VAR_0->ram_sizes[VAR_1] != 0) { sdram_set_bcr(&VAR_0->bcr[VAR_1], sdram_bcr(VAR_0->ram_bases[VAR_1], VAR_0->ram_sizes[VAR_1]), ...
[ "static void FUNC_0 (ppc4xx_sdram_t *VAR_0)\n{", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < VAR_0->nbanks; VAR_1++) {", "if (VAR_0->ram_sizes[VAR_1] != 0) {", "sdram_set_bcr(&VAR_0->bcr[VAR_1],\nsdram_bcr(VAR_0->ram_bases[VAR_1], VAR_0->ram_sizes[VAR_1]),\n1);", "} else {", "sdram_set_bcr(&VAR_0->bcr[VAR_1]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
8,743
static void virtio_ccw_balloon_realize(VirtioCcwDevice *ccw_dev, Error **errp) { VirtIOBalloonCcw *dev = VIRTIO_BALLOON_CCW(ccw_dev); DeviceState *vdev = DEVICE(&dev->vdev); Error *err = NULL; qdev_set_parent_bus(vdev, BUS(&ccw_dev->bus)); object_property_set_bool(OBJECT(vdev), true, "realiz...
false
qemu
621ff94d5074d88253a5818c6b9c4db718fbfc65
static void virtio_ccw_balloon_realize(VirtioCcwDevice *ccw_dev, Error **errp) { VirtIOBalloonCcw *dev = VIRTIO_BALLOON_CCW(ccw_dev); DeviceState *vdev = DEVICE(&dev->vdev); Error *err = NULL; qdev_set_parent_bus(vdev, BUS(&ccw_dev->bus)); object_property_set_bool(OBJECT(vdev), true, "realiz...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtioCcwDevice *VAR_0, Error **VAR_1) { VirtIOBalloonCcw *dev = VIRTIO_BALLOON_CCW(VAR_0); DeviceState *vdev = DEVICE(&dev->vdev); Error *err = NULL; qdev_set_parent_bus(vdev, BUS(&VAR_0->bus)); object_property_set_bool(OBJECT(vdev), true, "realized", &err); if (err)...
[ "static void FUNC_0(VirtioCcwDevice *VAR_0, Error **VAR_1)\n{", "VirtIOBalloonCcw *dev = VIRTIO_BALLOON_CCW(VAR_0);", "DeviceState *vdev = DEVICE(&dev->vdev);", "Error *err = NULL;", "qdev_set_parent_bus(vdev, BUS(&VAR_0->bus));", "object_property_set_bool(OBJECT(vdev), true, \"realized\", &err);", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
8,744
static inline void gen_scas(DisasContext *s, int ot) { gen_op_mov_TN_reg(OT_LONG, 0, R_EAX); gen_string_movl_A0_EDI(s); gen_op_ld_T1_A0(ot + s->mem_index); gen_op_cmpl_T0_T1_cc(); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_EDI_T0(); }...
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static inline void gen_scas(DisasContext *s, int ot) { gen_op_mov_TN_reg(OT_LONG, 0, R_EAX); gen_string_movl_A0_EDI(s); gen_op_ld_T1_A0(ot + s->mem_index); gen_op_cmpl_T0_T1_cc(); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_EDI_T0(); }...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { gen_op_mov_TN_reg(OT_LONG, 0, R_EAX); gen_string_movl_A0_EDI(VAR_0); gen_op_ld_T1_A0(VAR_1 + VAR_0->mem_index); gen_op_cmpl_T0_T1_cc(); gen_op_movl_T0_Dshift[VAR_1](); #ifdef TARGET_X86_64 if (VAR_0->aflag == 2) { gen_o...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "gen_op_mov_TN_reg(OT_LONG, 0, R_EAX);", "gen_string_movl_A0_EDI(VAR_0);", "gen_op_ld_T1_A0(VAR_1 + VAR_0->mem_index);", "gen_op_cmpl_T0_T1_cc();", "gen_op_movl_T0_Dshift[VAR_1]();", "#ifdef TARGET_X86_64\nif (VAR_0->aflag == 2) {", "gen_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
8,745
static void virtio_pci_vector_mask(PCIDevice *dev, unsigned vector) { VirtIOPCIProxy *proxy = container_of(dev, VirtIOPCIProxy, pci_dev); VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); VirtQueue *vq = virtio_vector_first_queue(vdev, vector); int index; while (vq) { index =...
false
qemu
6652d0811c9463fbfb2d2d1cb2ec03f388145c5f
static void virtio_pci_vector_mask(PCIDevice *dev, unsigned vector) { VirtIOPCIProxy *proxy = container_of(dev, VirtIOPCIProxy, pci_dev); VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); VirtQueue *vq = virtio_vector_first_queue(vdev, vector); int index; while (vq) { index =...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, unsigned VAR_1) { VirtIOPCIProxy *proxy = container_of(VAR_0, VirtIOPCIProxy, pci_dev); VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); VirtQueue *vq = virtio_vector_first_queue(vdev, VAR_1); int VAR_2; while (vq) { VAR_2 = virtio_get_qu...
[ "static void FUNC_0(PCIDevice *VAR_0, unsigned VAR_1)\n{", "VirtIOPCIProxy *proxy = container_of(VAR_0, VirtIOPCIProxy, pci_dev);", "VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);", "VirtQueue *vq = virtio_vector_first_queue(vdev, VAR_1);", "int VAR_2;", "while (vq) {", "VAR_2 = virtio_get_que...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
8,746
static void gen_callwi(DisasContext *dc, int callinc, uint32_t dest, int slot) { TCGv_i32 tmp = tcg_const_i32(dest); if (((dc->pc ^ dest) & TARGET_PAGE_MASK) != 0) { slot = -1; } gen_callw_slot(dc, callinc, tmp, slot); tcg_temp_free(tmp); }
false
qemu
433d33c555deeed375996e338df1a9510df401c6
static void gen_callwi(DisasContext *dc, int callinc, uint32_t dest, int slot) { TCGv_i32 tmp = tcg_const_i32(dest); if (((dc->pc ^ dest) & TARGET_PAGE_MASK) != 0) { slot = -1; } gen_callw_slot(dc, callinc, tmp, slot); tcg_temp_free(tmp); }
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, int VAR_1, uint32_t VAR_2, int VAR_3) { TCGv_i32 tmp = tcg_const_i32(VAR_2); if (((VAR_0->pc ^ VAR_2) & TARGET_PAGE_MASK) != 0) { VAR_3 = -1; } gen_callw_slot(VAR_0, VAR_1, tmp, VAR_3); tcg_temp_free(tmp); }
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, uint32_t VAR_2, int VAR_3)\n{", "TCGv_i32 tmp = tcg_const_i32(VAR_2);", "if (((VAR_0->pc ^ VAR_2) & TARGET_PAGE_MASK) != 0) {", "VAR_3 = -1;", "}", "gen_callw_slot(VAR_0, VAR_1, tmp, VAR_3);", "tcg_temp_free(tmp);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
8,747
static inline void gen_neon_narrow_sats(int size, TCGv dest, TCGv src) { switch (size) { case 0: gen_helper_neon_narrow_sat_s8(dest, cpu_env, src); break; case 1: gen_helper_neon_narrow_sat_s16(dest, cpu_env, src); break; case 2: gen_helper_neon_narrow_sat_s32(dest, cpu_env, src); break; defau...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static inline void gen_neon_narrow_sats(int size, TCGv dest, TCGv src) { switch (size) { case 0: gen_helper_neon_narrow_sat_s8(dest, cpu_env, src); break; case 1: gen_helper_neon_narrow_sat_s16(dest, cpu_env, src); break; case 2: gen_helper_neon_narrow_sat_s32(dest, cpu_env, src); break; defau...
{ "code": [], "line_no": [] }
static inline void FUNC_0(int VAR_0, TCGv VAR_1, TCGv VAR_2) { switch (VAR_0) { case 0: gen_helper_neon_narrow_sat_s8(VAR_1, cpu_env, VAR_2); break; case 1: gen_helper_neon_narrow_sat_s16(VAR_1, cpu_env, VAR_2); break; case 2: gen_helper_neon_narrow_sat_s32(VAR_1, cpu_env, VAR_2); break; defau...
[ "static inline void FUNC_0(int VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "switch (VAR_0) {", "case 0: gen_helper_neon_narrow_sat_s8(VAR_1, cpu_env, VAR_2); break;", "case 1: gen_helper_neon_narrow_sat_s16(VAR_1, cpu_env, VAR_2); break;", "case 2: gen_helper_neon_narrow_sat_s32(VAR_1, cpu_env, VAR_2); break;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
8,748
RefPicList *ff_hevc_get_ref_list(HEVCContext *s, HEVCFrame *ref, int x0, int y0) { if (x0 < 0 || y0 < 0) { return s->ref->refPicList; } else { int x_cb = x0 >> s->sps->log2_ctb_size; int y_cb = y0 >> s->sps->log2_ctb_size; int pic_width_cb = (s->sps->width ...
false
FFmpeg
52a2c17ec006282f388071a831dfb21288611253
RefPicList *ff_hevc_get_ref_list(HEVCContext *s, HEVCFrame *ref, int x0, int y0) { if (x0 < 0 || y0 < 0) { return s->ref->refPicList; } else { int x_cb = x0 >> s->sps->log2_ctb_size; int y_cb = y0 >> s->sps->log2_ctb_size; int pic_width_cb = (s->sps->width ...
{ "code": [], "line_no": [] }
RefPicList *FUNC_0(HEVCContext *s, HEVCFrame *ref, int x0, int y0) { if (x0 < 0 || y0 < 0) { return s->ref->refPicList; } else { int VAR_0 = x0 >> s->sps->log2_ctb_size; int VAR_1 = y0 >> s->sps->log2_ctb_size; int VAR_2 = (s->sps->width + (1 << s->sps->log...
[ "RefPicList *FUNC_0(HEVCContext *s, HEVCFrame *ref, int x0, int y0)\n{", "if (x0 < 0 || y0 < 0) {", "return s->ref->refPicList;", "} else {", "int VAR_0 = x0 >> s->sps->log2_ctb_size;", "int VAR_1 = y0 >> s->sps->log2_ctb_size;", "int VAR_2 = (s->sps->width + (1 << s->sps->log2_ctb_size)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
8,749
int gtod_load(QEMUFile *f, void *opaque, int version_id) { uint64_t tod_low; uint8_t tod_high; int r; if (qemu_get_byte(f) == S390_TOD_CLOCK_VALUE_MISSING) { fprintf(stderr, "WARNING: Guest clock was not migrated. This could " "cause the guest to hang.\n"); ...
false
qemu
8297be80f7cf71e09617669a8bd8b2836dcfd4c3
int gtod_load(QEMUFile *f, void *opaque, int version_id) { uint64_t tod_low; uint8_t tod_high; int r; if (qemu_get_byte(f) == S390_TOD_CLOCK_VALUE_MISSING) { fprintf(stderr, "WARNING: Guest clock was not migrated. This could " "cause the guest to hang.\n"); ...
{ "code": [], "line_no": [] }
int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { uint64_t tod_low; uint8_t tod_high; int VAR_3; if (qemu_get_byte(VAR_0) == S390_TOD_CLOCK_VALUE_MISSING) { fprintf(stderr, "WARNING: Guest clock was not migrated. This could " "cause the guest to hang.\n"); ...
[ "int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "uint64_t tod_low;", "uint8_t tod_high;", "int VAR_3;", "if (qemu_get_byte(VAR_0) == S390_TOD_CLOCK_VALUE_MISSING) {", "fprintf(stderr, \"WARNING: Guest clock was not migrated. This could \"\n\"cause the guest to hang.\\n\");", "return 0;", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 45 ], [ 47 ] ]
8,751
void stw_be_phys(target_phys_addr_t addr, uint32_t val) { stw_phys_internal(addr, val, DEVICE_BIG_ENDIAN); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void stw_be_phys(target_phys_addr_t addr, uint32_t val) { stw_phys_internal(addr, val, DEVICE_BIG_ENDIAN); }
{ "code": [], "line_no": [] }
void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1) { stw_phys_internal(VAR_0, VAR_1, DEVICE_BIG_ENDIAN); }
[ "void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1)\n{", "stw_phys_internal(VAR_0, VAR_1, DEVICE_BIG_ENDIAN);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
8,752
static TCGv_i32 read_fp_sreg(DisasContext *s, int reg) { TCGv_i32 v = tcg_temp_new_i32(); tcg_gen_ld_i32(v, cpu_env, fp_reg_offset(reg, MO_32)); return v; }
false
qemu
90e496386fe7fd32c189561f846b7913f95b8cf4
static TCGv_i32 read_fp_sreg(DisasContext *s, int reg) { TCGv_i32 v = tcg_temp_new_i32(); tcg_gen_ld_i32(v, cpu_env, fp_reg_offset(reg, MO_32)); return v; }
{ "code": [], "line_no": [] }
static TCGv_i32 FUNC_0(DisasContext *s, int reg) { TCGv_i32 v = tcg_temp_new_i32(); tcg_gen_ld_i32(v, cpu_env, fp_reg_offset(reg, MO_32)); return v; }
[ "static TCGv_i32 FUNC_0(DisasContext *s, int reg)\n{", "TCGv_i32 v = tcg_temp_new_i32();", "tcg_gen_ld_i32(v, cpu_env, fp_reg_offset(reg, MO_32));", "return v;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
8,753
static int kvm_client_sync_dirty_bitmap(struct CPUPhysMemoryClient *client, target_phys_addr_t start_addr, target_phys_addr_t end_addr) { return kvm_physical_sync_dirty_bitmap(start_addr, end_addr); }
false
qemu
a426e122173f36f05ea2cb72dcff77b7408546ce
static int kvm_client_sync_dirty_bitmap(struct CPUPhysMemoryClient *client, target_phys_addr_t start_addr, target_phys_addr_t end_addr) { return kvm_physical_sync_dirty_bitmap(start_addr, end_addr); }
{ "code": [], "line_no": [] }
static int FUNC_0(struct CPUPhysMemoryClient *VAR_0, target_phys_addr_t VAR_1, target_phys_addr_t VAR_2) { return kvm_physical_sync_dirty_bitmap(VAR_1, VAR_2); }
[ "static int FUNC_0(struct CPUPhysMemoryClient *VAR_0,\ntarget_phys_addr_t VAR_1,\ntarget_phys_addr_t VAR_2)\n{", "return kvm_physical_sync_dirty_bitmap(VAR_1, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ] ]
8,754
static void malta_fpga_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { MaltaFPGAState *s = opaque; uint32_t saddr; saddr = (addr & 0xfffff); switch (saddr) { /* SWITCH Register */ case 0x00200: break; /* JMPRS...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void malta_fpga_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { MaltaFPGAState *s = opaque; uint32_t saddr; saddr = (addr & 0xfffff); switch (saddr) { case 0x00200: break; case 0x00210: ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { MaltaFPGAState *s = VAR_0; uint32_t saddr; saddr = (VAR_1 & 0xfffff); switch (saddr) { case 0x00200: break; case 0x00210: break; ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "MaltaFPGAState *s = VAR_0;", "uint32_t saddr;", "saddr = (VAR_1 & 0xfffff);", "switch (saddr) {", "case 0x00200:\nbreak;", "case 0x00210:\nbreak;", "case 0x00408:\ns->leds = VAR_2 & 0xff;", "malta_fpga_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23, 25 ], [ 31, 33 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 63, 65, 67, 69, 71, 73, 75, 77,...
8,756
static inline void reloc_pc26(tcg_insn_unit *code_ptr, tcg_insn_unit *target) { ptrdiff_t offset = target - code_ptr; assert(offset == sextract64(offset, 0, 26)); /* read instruction, mask away previous PC_REL26 parameter contents, set the proper offset, then write back the instruction. */ ...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static inline void reloc_pc26(tcg_insn_unit *code_ptr, tcg_insn_unit *target) { ptrdiff_t offset = target - code_ptr; assert(offset == sextract64(offset, 0, 26)); *code_ptr = deposit32(*code_ptr, 0, 26, offset); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(tcg_insn_unit *VAR_0, tcg_insn_unit *VAR_1) { ptrdiff_t offset = VAR_1 - VAR_0; assert(offset == sextract64(offset, 0, 26)); *VAR_0 = deposit32(*VAR_0, 0, 26, offset); }
[ "static inline void FUNC_0(tcg_insn_unit *VAR_0, tcg_insn_unit *VAR_1)\n{", "ptrdiff_t offset = VAR_1 - VAR_0;", "assert(offset == sextract64(offset, 0, 26));", "*VAR_0 = deposit32(*VAR_0, 0, 26, offset);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ] ]
8,757
static inline unsigned long align_sigframe(unsigned long sp) { unsigned long i; i = sp & ~3UL; return i; }
false
qemu
9be385980d37e8f4fd33f605f5fb1c3d144170a8
static inline unsigned long align_sigframe(unsigned long sp) { unsigned long i; i = sp & ~3UL; return i; }
{ "code": [], "line_no": [] }
static inline unsigned long FUNC_0(unsigned long VAR_0) { unsigned long VAR_1; VAR_1 = VAR_0 & ~3UL; return VAR_1; }
[ "static inline unsigned long FUNC_0(unsigned long VAR_0)\n{", "unsigned long VAR_1;", "VAR_1 = VAR_0 & ~3UL;", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
8,759
static av_cold void uninit(AVFilterContext *ctx) { EvalContext *eval = ctx->priv; int i; for (i = 0; i < 8; i++) { av_expr_free(eval->expr[i]); eval->expr[i] = NULL; } }
false
FFmpeg
937cfebd72d30e617591c666ea4854a3898a64b2
static av_cold void uninit(AVFilterContext *ctx) { EvalContext *eval = ctx->priv; int i; for (i = 0; i < 8; i++) { av_expr_free(eval->expr[i]); eval->expr[i] = NULL; } }
{ "code": [], "line_no": [] }
static av_cold void FUNC_0(AVFilterContext *ctx) { EvalContext *eval = ctx->priv; int VAR_0; for (VAR_0 = 0; VAR_0 < 8; VAR_0++) { av_expr_free(eval->expr[VAR_0]); eval->expr[VAR_0] = NULL; } }
[ "static av_cold void FUNC_0(AVFilterContext *ctx)\n{", "EvalContext *eval = ctx->priv;", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < 8; VAR_0++) {", "av_expr_free(eval->expr[VAR_0]);", "eval->expr[VAR_0] = NULL;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
8,760
static inline void gen_405_mulladd_insn(DisasContext *ctx, int opc2, int opc3, int ra, int rb, int rt, int Rc) { TCGv t0, t1; t0 = tcg_temp_local_new(); t1 = tcg_temp_local_new(); switch (opc3 & 0x0D) { case 0x05: /* macchw - macchw. ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static inline void gen_405_mulladd_insn(DisasContext *ctx, int opc2, int opc3, int ra, int rb, int rt, int Rc) { TCGv t0, t1; t0 = tcg_temp_local_new(); t1 = tcg_temp_local_new(); switch (opc3 & 0x0D) { case 0x05: ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { TCGv t0, t1; t0 = tcg_temp_local_new(); t1 = tcg_temp_local_new(); switch (VAR_2 & 0x0D) { case 0x05: ...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{", "TCGv t0, t1;", "t0 = tcg_temp_local_new();", "t1 = tcg_temp_local_new();", "switch (VAR_2 & 0x0D) {", "case 0x05:\ntcg_gen_ext16s_tl(t0, cpu_gpr[VAR_3]);", "tcg_gen_sari_tl(t1, cpu_gp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 67 ], [ 69 ], [ 71 ], [ 73 ], [ 75...
8,761
void ioinst_handle_sal(S390CPU *cpu, uint64_t reg1) { /* We do not provide address limit checking, so let's suppress it. */ if (SAL_REG1_INVALID(reg1) || reg1 & 0x000000000000ffff) { program_interrupt(&cpu->env, PGM_OPERAND, 2); } }
false
qemu
7e01376daea75e888c370aab521a7d4aeaf2ffd1
void ioinst_handle_sal(S390CPU *cpu, uint64_t reg1) { if (SAL_REG1_INVALID(reg1) || reg1 & 0x000000000000ffff) { program_interrupt(&cpu->env, PGM_OPERAND, 2); } }
{ "code": [], "line_no": [] }
void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1) { if (SAL_REG1_INVALID(VAR_1) || VAR_1 & 0x000000000000ffff) { program_interrupt(&VAR_0->env, PGM_OPERAND, 2); } }
[ "void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1)\n{", "if (SAL_REG1_INVALID(VAR_1) || VAR_1 & 0x000000000000ffff) {", "program_interrupt(&VAR_0->env, PGM_OPERAND, 2);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
8,762
static void migrate_fd_put_ready(void *opaque) { MigrationState *s = opaque; int ret; if (s->state != MIG_STATE_ACTIVE) { DPRINTF("put_ready returning because of non-active state\n"); return; } DPRINTF("iterate\n"); ret = qemu_savevm_state_iterate(s->mon, s->file); ...
false
qemu
539de1246d355d3b8aa33fb7cde732352d8827c7
static void migrate_fd_put_ready(void *opaque) { MigrationState *s = opaque; int ret; if (s->state != MIG_STATE_ACTIVE) { DPRINTF("put_ready returning because of non-active state\n"); return; } DPRINTF("iterate\n"); ret = qemu_savevm_state_iterate(s->mon, s->file); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { MigrationState *s = VAR_0; int VAR_1; if (s->state != MIG_STATE_ACTIVE) { DPRINTF("put_ready returning because of non-active state\n"); return; } DPRINTF("iterate\n"); VAR_1 = qemu_savevm_state_iterate(s->mon, s->file); if (VAR_...
[ "static void FUNC_0(void *VAR_0)\n{", "MigrationState *s = VAR_0;", "int VAR_1;", "if (s->state != MIG_STATE_ACTIVE) {", "DPRINTF(\"put_ready returning because of non-active state\\n\");", "return;", "}", "DPRINTF(\"iterate\\n\");", "VAR_1 = qemu_savevm_state_iterate(s->mon, s->file);", "if (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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
8,763
void do_info_mice(Monitor *mon, QObject **ret_data) { QEMUPutMouseEntry *cursor; QList *mice_list; int current; mice_list = qlist_new(); if (QTAILQ_EMPTY(&mouse_handlers)) { goto out; } current = QTAILQ_FIRST(&mouse_handlers)->index; QTAILQ_FOREACH(cursor, &mous...
false
qemu
1aaee43cf7a43ca8e7f12883ee7e3a35fe5eb84c
void do_info_mice(Monitor *mon, QObject **ret_data) { QEMUPutMouseEntry *cursor; QList *mice_list; int current; mice_list = qlist_new(); if (QTAILQ_EMPTY(&mouse_handlers)) { goto out; } current = QTAILQ_FIRST(&mouse_handlers)->index; QTAILQ_FOREACH(cursor, &mous...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, QObject **VAR_1) { QEMUPutMouseEntry *cursor; QList *mice_list; int VAR_2; mice_list = qlist_new(); if (QTAILQ_EMPTY(&mouse_handlers)) { goto out; } VAR_2 = QTAILQ_FIRST(&mouse_handlers)->index; QTAILQ_FOREACH(cursor, &mouse_handlers,...
[ "void FUNC_0(Monitor *VAR_0, QObject **VAR_1)\n{", "QEMUPutMouseEntry *cursor;", "QList *mice_list;", "int VAR_2;", "mice_list = qlist_new();", "if (QTAILQ_EMPTY(&mouse_handlers)) {", "goto out;", "}", "VAR_2 = QTAILQ_FIRST(&mouse_handlers)->index;", "QTAILQ_FOREACH(cursor, &mouse_handlers, node) ...
[ 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 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ] ]
8,764
Visitor *validate_test_init(TestInputVisitorData *data, const char *json_string, ...) { Visitor *v; va_list ap; va_start(ap, json_string); v = validate_test_init_internal(data, json_string, &ap); va_end(ap); return v; }
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
Visitor *validate_test_init(TestInputVisitorData *data, const char *json_string, ...) { Visitor *v; va_list ap; va_start(ap, json_string); v = validate_test_init_internal(data, json_string, &ap); va_end(ap); return v; }
{ "code": [], "line_no": [] }
Visitor *FUNC_0(TestInputVisitorData *data, const char *json_string, ...) { Visitor *v; va_list ap; va_start(ap, json_string); v = validate_test_init_internal(data, json_string, &ap); va_end(ap); return v; }
[ "Visitor *FUNC_0(TestInputVisitorData *data,\nconst char *json_string, ...)\n{", "Visitor *v;", "va_list ap;", "va_start(ap, json_string);", "v = validate_test_init_internal(data, json_string, &ap);", "va_end(ap);", "return v;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
8,765
static av_cold int vc1_decode_init(AVCodecContext *avctx) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; /* save the container output size for WMImage */ v->output_width = avctx->width; v->output_height = avctx->height; if (!avctx->extradata_siz...
false
FFmpeg
dcc39ee10e82833ce24aa57926c00ffeb1948198
static av_cold int vc1_decode_init(AVCodecContext *avctx) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; v->output_width = avctx->width; v->output_height = avctx->height; if (!avctx->extradata_size || !avctx->extradata) return -1; ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; v->output_width = avctx->width; v->output_height = avctx->height; if (!avctx->extradata_size || !avctx->extradata) return -1; if (!(av...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VC1Context *v = avctx->priv_data;", "MpegEncContext *s = &v->s;", "GetBitContext gb;", "v->output_width = avctx->width;", "v->output_height = avctx->height;", "if (!avctx->extradata_size || !avctx->extradata)\nreturn -1;", "if (!(avctx->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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 65 ], [ 69,...
8,766
static void show_packets(AVFormatContext *fmt_ctx) { AVPacket pkt; av_init_packet(&pkt); while (!av_read_frame(fmt_ctx, &pkt)) show_packet(fmt_ctx, &pkt); }
false
FFmpeg
3a8c95f730732b9f1ffacdbfbf79a01b202a67af
static void show_packets(AVFormatContext *fmt_ctx) { AVPacket pkt; av_init_packet(&pkt); while (!av_read_frame(fmt_ctx, &pkt)) show_packet(fmt_ctx, &pkt); }
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0) { AVPacket pkt; av_init_packet(&pkt); while (!av_read_frame(VAR_0, &pkt)) show_packet(VAR_0, &pkt); }
[ "static void FUNC_0(AVFormatContext *VAR_0)\n{", "AVPacket pkt;", "av_init_packet(&pkt);", "while (!av_read_frame(VAR_0, &pkt))\nshow_packet(VAR_0, &pkt);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17 ] ]
8,767
static int http_open_cnx_internal(URLContext *h, AVDictionary **options) { const char *path, *proxy_path, *lower_proto = "tcp", *local_path; char hostname[1024], hoststr[1024], proto[10]; char auth[1024], proxyauth[1024] = ""; char path1[MAX_URL_SIZE]; char buf[1024], urlbuf[MAX_URL_SIZE]; ...
false
FFmpeg
4b1f5e5090abed6c618c8ba380cd7d28d140f867
static int http_open_cnx_internal(URLContext *h, AVDictionary **options) { const char *path, *proxy_path, *lower_proto = "tcp", *local_path; char hostname[1024], hoststr[1024], proto[10]; char auth[1024], proxyauth[1024] = ""; char path1[MAX_URL_SIZE]; char buf[1024], urlbuf[MAX_URL_SIZE]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, AVDictionary **VAR_1) { const char *VAR_2, *VAR_3, *VAR_4 = "tcp", *VAR_5; char VAR_6[1024], VAR_7[1024], VAR_8[10]; char VAR_9[1024], VAR_10[1024] = ""; char VAR_11[MAX_URL_SIZE]; char VAR_12[1024], urlbuf[MAX_URL_SIZE]; int VAR_13, VAR_14, VAR_15, VA...
[ "static int FUNC_0(URLContext *VAR_0, AVDictionary **VAR_1)\n{", "const char *VAR_2, *VAR_3, *VAR_4 = \"tcp\", *VAR_5;", "char VAR_6[1024], VAR_7[1024], VAR_8[10];", "char VAR_9[1024], VAR_10[1024] = \"\";", "char VAR_11[MAX_URL_SIZE];", "char VAR_12[1024], urlbuf[MAX_URL_SIZE];", "int VAR_13, VAR_14, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23, 25 ], [ 27 ], [ 31 ], [ 33, 35, 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53 ...
8,768
qio_channel_command_new_spawn(const char *const argv[], int flags, Error **errp) { pid_t pid = -1; int stdinfd[2] = { -1, -1 }; int stdoutfd[2] = { -1, -1 }; int devnull = -1; bool stdinnull = false, stdoutnull = false; QIOChan...
true
qemu
e155494cf0b876c45c3c68a9ab6c641aac22dfdf
qio_channel_command_new_spawn(const char *const argv[], int flags, Error **errp) { pid_t pid = -1; int stdinfd[2] = { -1, -1 }; int stdoutfd[2] = { -1, -1 }; int devnull = -1; bool stdinnull = false, stdoutnull = false; QIOChan...
{ "code": [ " if (!devnull) {" ], "line_no": [ 45 ] }
FUNC_0(const char *const VAR_0[], int VAR_1, Error **VAR_2) { pid_t pid = -1; int VAR_3[2] = { -1, -1 }; int VAR_4[2] = { -1, -1 }; int VAR_5 = -1; bool stdinnull = false, stdoutnull = false; QIOChannelCommand *ioc; VAR_...
[ "FUNC_0(const char *const VAR_0[],\nint VAR_1,\nError **VAR_2)\n{", "pid_t pid = -1;", "int VAR_3[2] = { -1, -1 };", "int VAR_4[2] = { -1, -1 };", "int VAR_5 = -1;", "bool stdinnull = false, stdoutnull = false;", "QIOChannelCommand *ioc;", "VAR_1 = VAR_1 & O_ACCMODE;", "if (VAR_1 == O_RDONLY) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [...
8,769
static int div_round (int dividend, int divisor) { if (dividend > 0) return (dividend + (divisor>>1)) / divisor; else return -((-dividend + (divisor>>1)) / divisor); }
true
FFmpeg
428098165de4c3edfe42c1b7f00627d287015863
static int div_round (int dividend, int divisor) { if (dividend > 0) return (dividend + (divisor>>1)) / divisor; else return -((-dividend + (divisor>>1)) / divisor); }
{ "code": [ "\treturn (dividend + (divisor>>1)) / divisor;", "\treturn -((-dividend + (divisor>>1)) / divisor);" ], "line_no": [ 7, 11 ] }
static int FUNC_0 (int VAR_0, int VAR_1) { if (VAR_0 > 0) return (VAR_0 + (VAR_1>>1)) / VAR_1; else return -((-VAR_0 + (VAR_1>>1)) / VAR_1); }
[ "static int FUNC_0 (int VAR_0, int VAR_1)\n{", "if (VAR_0 > 0)\nreturn (VAR_0 + (VAR_1>>1)) / VAR_1;", "else\nreturn -((-VAR_0 + (VAR_1>>1)) / VAR_1);", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ] ]
8,770
long do_sigreturn(CPUX86State *env) { struct sigframe *frame; abi_ulong frame_addr = env->regs[R_ESP] - 8; target_sigset_t target_set; sigset_t set; int eax, i; #if defined(DEBUG_SIGNAL) fprintf(stderr, "do_sigreturn\n"); #endif if (!lock_user_struct(VERIFY_READ, frame, frame_add...
true
qemu
f5f601afcec6c1081128fe5a0f831788ca9f56ed
long do_sigreturn(CPUX86State *env) { struct sigframe *frame; abi_ulong frame_addr = env->regs[R_ESP] - 8; target_sigset_t target_set; sigset_t set; int eax, i; #if defined(DEBUG_SIGNAL) fprintf(stderr, "do_sigreturn\n"); #endif if (!lock_user_struct(VERIFY_READ, frame, frame_add...
{ "code": [ " if (__get_user(target_set.sig[0], &frame->sc.oldmask))", " goto badframe;", " if (__get_user(target_set.sig[i], &frame->extramask[i - 1]))", " goto badframe;", " goto badframe;", " goto badframe;", " if (__get_user(target_s...
long FUNC_0(CPUX86State *VAR_0) { struct sigframe *VAR_1; abi_ulong frame_addr = VAR_0->regs[R_ESP] - 8; target_sigset_t target_set; sigset_t set; int VAR_2, VAR_3; #if defined(DEBUG_SIGNAL) fprintf(stderr, "FUNC_0\n"); #endif if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr,...
[ "long FUNC_0(CPUX86State *VAR_0)\n{", "struct sigframe *VAR_1;", "abi_ulong frame_addr = VAR_0->regs[R_ESP] - 8;", "target_sigset_t target_set;", "sigset_t set;", "int VAR_2, VAR_3;", "#if defined(DEBUG_SIGNAL)\nfprintf(stderr, \"FUNC_0\\n\");", "#endif\nif (!lock_user_struct(VERIFY_READ, VAR_1, frame...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23, 25 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 51, 53 ], [ 55 ], [ 57 ...
8,771
void cpu_dump_state(CPUXtensaState *env, FILE *f, fprintf_function cpu_fprintf, int flags) { int i, j; cpu_fprintf(f, "PC=%08x\n\n", env->pc); for (i = j = 0; i < 256; ++i) { if (sregnames[i]) { cpu_fprintf(f, "%s=%08x%c", sregnames[i], env->sregs[i], ...
true
qemu
fe0bd475aa31e60674f7f53b85dc293108026202
void cpu_dump_state(CPUXtensaState *env, FILE *f, fprintf_function cpu_fprintf, int flags) { int i, j; cpu_fprintf(f, "PC=%08x\n\n", env->pc); for (i = j = 0; i < 256; ++i) { if (sregnames[i]) { cpu_fprintf(f, "%s=%08x%c", sregnames[i], env->sregs[i], ...
{ "code": [ " if (sregnames[i]) {", " if (uregnames[i]) {", " if (sregnames[i]) {", " cpu_fprintf(f, \"%s=%08x%c\", sregnames[i], env->sregs[i],", " if (uregnames[i]) {", " cpu_fprintf(f, \"%s=%08x%c\", uregnames[i], env->uregs[i],", " ...
void FUNC_0(CPUXtensaState *VAR_0, FILE *VAR_1, fprintf_function VAR_2, int VAR_3) { int VAR_4, VAR_5; VAR_2(VAR_1, "PC=%08x\n\n", VAR_0->pc); for (VAR_4 = VAR_5 = 0; VAR_4 < 256; ++VAR_4) { if (sregnames[VAR_4]) { VAR_2(VAR_1, "%s=%08x%c", sregnames[VAR_4], VAR_0->sre...
[ "void FUNC_0(CPUXtensaState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,\nint VAR_3)\n{", "int VAR_4, VAR_5;", "VAR_2(VAR_1, \"PC=%08x\\n\\n\", VAR_0->pc);", "for (VAR_4 = VAR_5 = 0; VAR_4 < 256; ++VAR_4) {", "if (sregnames[VAR_4]) {", "VAR_2(VAR_1, \"%s=%08x%c\", sregnames[VAR_4], VAR_0->sregs[VAR_4],\n(...
[ 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53, 55 ], [ 57...
8,772
int kvm_arch_init(KVMState *s) { uint64_t identity_base = 0xfffbc000; int ret; struct utsname utsname; ret = kvm_get_supported_msrs(s); if (ret < 0) { return ret; } uname(&utsname); lm_capable_kernel = strcmp(utsname.machine, "x86_64") == 0; /* * On old...
true
qemu
3c85e74fbf9e5a39d8d13ef91a5f3dd91f0bc8a8
int kvm_arch_init(KVMState *s) { uint64_t identity_base = 0xfffbc000; int ret; struct utsname utsname; ret = kvm_get_supported_msrs(s); if (ret < 0) { return ret; } uname(&utsname); lm_capable_kernel = strcmp(utsname.machine, "x86_64") == 0; ...
{ "code": [], "line_no": [] }
int FUNC_0(KVMState *VAR_0) { uint64_t identity_base = 0xfffbc000; int VAR_1; struct VAR_2 VAR_2; VAR_1 = kvm_get_supported_msrs(VAR_0); if (VAR_1 < 0) { return VAR_1; } uname(&VAR_2); lm_capable_kernel = strcmp(VAR_2.machine, "x86_64") == 0; ...
[ "int FUNC_0(KVMState *VAR_0)\n{", "uint64_t identity_base = 0xfffbc000;", "int VAR_1;", "struct VAR_2 VAR_2;", "VAR_1 = kvm_get_supported_msrs(VAR_0);", "if (VAR_1 < 0) {", "return VAR_1;", "}", "uname(&VAR_2);", "lm_capable_kernel = strcmp(VAR_2.machine, \"x86_64\") == 0;", "#ifdef KVM_CAP_SET_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 51, 53 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 69 ], [ 71, 75 ], [ 77 ...
8,773
static int matroska_parse_tracks(AVFormatContext *s) { MatroskaDemuxContext *matroska = s->priv_data; MatroskaTrack *tracks = matroska->tracks.elem; AVStream *st; int i, j, ret; int k; for (i = 0; i < matroska->tracks.nb_elem; i++) { MatroskaTrack *track = &tracks[i]; ...
true
FFmpeg
e07649e618caedc07eaf2f4d09253de7f77d14f0
static int matroska_parse_tracks(AVFormatContext *s) { MatroskaDemuxContext *matroska = s->priv_data; MatroskaTrack *tracks = matroska->tracks.elem; AVStream *st; int i, j, ret; int k; for (i = 0; i < matroska->tracks.nb_elem; i++) { MatroskaTrack *track = &tracks[i]; ...
{ "code": [ " if (!track->default_duration && track->video.frame_rate > 0)", " track->default_duration = 1000000000 / track->video.frame_rate;" ], "line_no": [ 87, 89 ] }
static int FUNC_0(AVFormatContext *VAR_0) { MatroskaDemuxContext *matroska = VAR_0->priv_data; MatroskaTrack *tracks = matroska->tracks.elem; AVStream *st; int VAR_1, VAR_2, VAR_3; int VAR_4; for (VAR_1 = 0; VAR_1 < matroska->tracks.nb_elem; VAR_1++) { MatroskaTrack *track = &t...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MatroskaDemuxContext *matroska = VAR_0->priv_data;", "MatroskaTrack *tracks = matroska->tracks.elem;", "AVStream *st;", "int VAR_1, VAR_2, VAR_3;", "int VAR_4;", "for (VAR_1 = 0; VAR_1 < matroska->tracks.nb_elem; VAR_1++) {", "MatroskaTrack *track = &tr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45, 47, 49,...
8,774
static void vnc_display_close(VncDisplay *vd) { size_t i; if (!vd) { return; } vd->is_unix = false; for (i = 0; i < vd->nlsock; i++) { if (vd->lsock_tag[i]) { g_source_remove(vd->lsock_tag[i]); } object_unref(OBJECT(vd->lsock[i])); } g...
true
qemu
2dc120beb89b825033972db441ab540bcc42a17e
static void vnc_display_close(VncDisplay *vd) { size_t i; if (!vd) { return; } vd->is_unix = false; for (i = 0; i < vd->nlsock; i++) { if (vd->lsock_tag[i]) { g_source_remove(vd->lsock_tag[i]); } object_unref(OBJECT(vd->lsock[i])); } g...
{ "code": [], "line_no": [] }
static void FUNC_0(VncDisplay *VAR_0) { size_t i; if (!VAR_0) { return; } VAR_0->is_unix = false; for (i = 0; i < VAR_0->nlsock; i++) { if (VAR_0->lsock_tag[i]) { g_source_remove(VAR_0->lsock_tag[i]); } object_unref(OBJECT(VAR_0->lsock[i])); ...
[ "static void FUNC_0(VncDisplay *VAR_0)\n{", "size_t i;", "if (!VAR_0) {", "return;", "}", "VAR_0->is_unix = false;", "for (i = 0; i < VAR_0->nlsock; i++) {", "if (VAR_0->lsock_tag[i]) {", "g_source_remove(VAR_0->lsock_tag[i]);", "}", "object_unref(OBJECT(VAR_0->lsock[i]));", "}", "g_free(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ...
8,775
static int scsi_disk_emulate_command(SCSIDiskReq *r, uint8_t *outbuf) { SCSIRequest *req = &r->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); uint64_t nb_sectors; int buflen = 0; int ret; switch (req->cmd.buf[0]) { case TEST_UNIT_READY: if (!bdrv_is_inse...
true
qemu
a1f0cce2ac0243572ff72aa561da67fe3766a395
static int scsi_disk_emulate_command(SCSIDiskReq *r, uint8_t *outbuf) { SCSIRequest *req = &r->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); uint64_t nb_sectors; int buflen = 0; int ret; switch (req->cmd.buf[0]) { case TEST_UNIT_READY: if (!bdrv_is_inse...
{ "code": [ " memset(outbuf, 0, 4);", " buflen = 4;", " if (s->sense.key == NOT_READY && req->cmd.xfer >= 18) {", " memset(outbuf, 0, 18);", " buflen = 18;", " outbuf[7] = 10;", " outbuf[12] = 0x3a;", " outbuf[...
static int FUNC_0(SCSIDiskReq *VAR_0, uint8_t *VAR_1) { SCSIRequest *req = &VAR_0->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); uint64_t nb_sectors; int VAR_2 = 0; int VAR_3; switch (req->cmd.buf[0]) { case TEST_UNIT_READY: if (!bdrv_is_inserted(s->bs)...
[ "static int FUNC_0(SCSIDiskReq *VAR_0, uint8_t *VAR_1)\n{", "SCSIRequest *req = &VAR_0->req;", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);", "uint64_t nb_sectors;", "int VAR_2 = 0;", "int VAR_3;", "switch (req->cmd.buf[0]) {", "case TEST_UNIT_READY:\nif (!bdrv_is_inserted(s->bs))\ngo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 47 ], [ 49 ...
8,776
static int xen_init(MachineState *ms) { xen_xc = xen_xc_interface_open(0, 0, 0); if (xen_xc == XC_HANDLER_INITIAL_VALUE) { xen_be_printf(NULL, 0, "can't open xen interface\n"); qemu_add_vm_change_state_handler(xen_change_state_handler, NULL); global_state_set_optional(); sav...
true
qemu
e0cb42ae4bc4438ba4ec0760df2d830b8759b255
static int xen_init(MachineState *ms) { xen_xc = xen_xc_interface_open(0, 0, 0); if (xen_xc == XC_HANDLER_INITIAL_VALUE) { xen_be_printf(NULL, 0, "can't open xen interface\n"); qemu_add_vm_change_state_handler(xen_change_state_handler, NULL); global_state_set_optional(); sav...
{ "code": [ " if (xen_xc == XC_HANDLER_INITIAL_VALUE) {" ], "line_no": [ 7 ] }
static int FUNC_0(MachineState *VAR_0) { xen_xc = xen_xc_interface_open(0, 0, 0); if (xen_xc == XC_HANDLER_INITIAL_VALUE) { xen_be_printf(NULL, 0, "can't open xen interface\n"); qemu_add_vm_change_state_handler(xen_change_state_handler, NULL); global_state_set_optional(); sa...
[ "static int FUNC_0(MachineState *VAR_0)\n{", "xen_xc = xen_xc_interface_open(0, 0, 0);", "if (xen_xc == XC_HANDLER_INITIAL_VALUE) {", "xen_be_printf(NULL, 0, \"can't open xen interface\\n\");", "qemu_add_vm_change_state_handler(xen_change_state_handler, NULL);", "global_state_set_optional();", "savevm_s...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ] ]
8,777
static void cpu_common_realizefn(DeviceState *dev, Error **errp) { CPUState *cpu = CPU(dev); if (dev->hotplugged) { cpu_synchronize_post_init(cpu); cpu_resume(cpu); } }
true
qemu
2bfe11c8fac96db4f94abbe818fbc964a6744130
static void cpu_common_realizefn(DeviceState *dev, Error **errp) { CPUState *cpu = CPU(dev); if (dev->hotplugged) { cpu_synchronize_post_init(cpu); cpu_resume(cpu); } }
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { CPUState *cpu = CPU(VAR_0); if (VAR_0->hotplugged) { cpu_synchronize_post_init(cpu); cpu_resume(cpu); } }
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "CPUState *cpu = CPU(VAR_0);", "if (VAR_0->hotplugged) {", "cpu_synchronize_post_init(cpu);", "cpu_resume(cpu);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ] ]
8,778
uint8_t sd_read_data(SDState *sd) { /* TODO: Append CRCs */ uint8_t ret; int io_len; if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable) return 0x00; if (sd->state != sd_sendingdata_state) { qemu_log_mask(LOG_GUEST_ERROR, "sd_read_data: not in...
true
qemu
8573378e62d19e25a2434e23462ec99ef4d065ac
uint8_t sd_read_data(SDState *sd) { uint8_t ret; int io_len; if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable) return 0x00; if (sd->state != sd_sendingdata_state) { qemu_log_mask(LOG_GUEST_ERROR, "sd_read_data: not in Sending-Data state\n")...
{ "code": [ " if (sd->data_offset == 0)", " if (sd->data_start + io_len > sd->size) {", " sd->card_status |= ADDRESS_ERROR;", " break;" ], "line_no": [ 75, 89, 91, 93 ] }
uint8_t FUNC_0(SDState *sd) { uint8_t ret; int VAR_0; if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable) return 0x00; if (sd->state != sd_sendingdata_state) { qemu_log_mask(LOG_GUEST_ERROR, "FUNC_0: not in Sending-Data state\n"); re...
[ "uint8_t FUNC_0(SDState *sd)\n{", "uint8_t ret;", "int VAR_0;", "if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable)\nreturn 0x00;", "if (sd->state != sd_sendingdata_state) {", "qemu_log_mask(LOG_GUEST_ERROR,\n\"FUNC_0: not in Sending-Data state\\n\");", "return 0x00;", "}", "if (sd->card_stat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 49, 51 ], [ 53 ], [ 57, 59, 61 ], [ 65, 67...
8,779
static av_always_inline int sbr_hf_apply_noise(int (*Y)[2], const SoftFloat *s_m, const SoftFloat *q_filt, int noise, int ph...
true
FFmpeg
2061de8a3f73f14806e5f6ccaf9a635f740a54e6
static av_always_inline int sbr_hf_apply_noise(int (*Y)[2], const SoftFloat *s_m, const SoftFloat *q_filt, int noise, int ph...
{ "code": [ " int y0 = Y[m][0];", " int y1 = Y[m][1];" ], "line_no": [ 23, 25 ] }
static av_always_inline int FUNC_0(int (*Y)[2], const SoftFloat *s_m, const SoftFloat *q_filt, int noise, int phi_sign0, ...
[ "static av_always_inline int FUNC_0(int (*Y)[2],\nconst SoftFloat *s_m,\nconst SoftFloat *q_filt,\nint noise,\nint phi_sign0,\nint phi_sign1,\nint m_max)\n{", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < m_max; VAR_0++) {", "int VAR_1 = Y[VAR_0][0];", "int VAR_2 = Y[VAR_0][1];", "noise = (noise + 1) & 0x1ff;", ...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
8,780
int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl, const H2645NAL *nal) { int i, j, ret = 0; int first_slice = sl == h->slice_ctx && !h->current_slice; ret = h264_slice_header_parse(h, sl, nal); if (ret < 0) return ret; if (sl->f...
false
FFmpeg
8385e1718ee1fed107ec911d0b17fed3f7d74c71
int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl, const H2645NAL *nal) { int i, j, ret = 0; int first_slice = sl == h->slice_ctx && !h->current_slice; ret = h264_slice_header_parse(h, sl, nal); if (ret < 0) return ret; if (sl->f...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, const H2645NAL *VAR_2) { int VAR_3, VAR_4, VAR_5 = 0; int VAR_6 = VAR_1 == VAR_0->slice_ctx && !VAR_0->current_slice; VAR_5 = h264_slice_header_parse(VAR_0, VAR_1, VAR_2); if (VAR_5 < 0) return VAR_5...
[ "int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1,\nconst H2645NAL *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5 = 0;", "int VAR_6 = VAR_1 == VAR_0->slice_ctx && !VAR_0->current_slice;", "VAR_5 = h264_slice_header_parse(VAR_0, VAR_1, VAR_2);", "if (VAR_5 < 0)\nreturn VAR_5;", "if (VAR_1->first_mb_addr == 0)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
8,781
static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice, const DXVA_PicParams_H264 *pp, unsigned position, unsigned size) { const H264Context *h = avctx->priv_data; H264SliceContext *sl = &h->slice_ctx[0]; AVDXVAContext *ctx = avctx->hwaccel_context; ...
false
FFmpeg
ab28108a361196134704071b7b34c42fc7d747c7
static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice, const DXVA_PicParams_H264 *pp, unsigned position, unsigned size) { const H264Context *h = avctx->priv_data; H264SliceContext *sl = &h->slice_ctx[0]; AVDXVAContext *ctx = avctx->hwaccel_context; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0, DXVA_Slice_H264_Long *VAR_1, const DXVA_PicParams_H264 *VAR_2, unsigned VAR_3, unsigned VAR_4) { const H264Context *VAR_5 = VAR_0->priv_data; H264SliceContext *sl = &VAR_5->slice_ctx[0]; AVDXVAContext *ctx = VAR_0->hwaccel_context; ...
[ "static void FUNC_0(AVCodecContext *VAR_0, DXVA_Slice_H264_Long *VAR_1,\nconst DXVA_PicParams_H264 *VAR_2, unsigned VAR_3, unsigned VAR_4)\n{", "const H264Context *VAR_5 = VAR_0->priv_data;", "H264SliceContext *sl = &VAR_5->slice_ctx[0];", "AVDXVAContext *ctx = VAR_0->hwaccel_context;", "unsigned 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ...
8,782
static int dvdsub_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { DVDSubParseContext *pc = s->priv_data; if (pc->packet_index == 0) { if ...
false
FFmpeg
81c1657a593b1c0f8e46fca00ead1d30ee1cd418
static int dvdsub_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { DVDSubParseContext *pc = s->priv_data; if (pc->packet_index == 0) { if ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1, const uint8_t **VAR_2, int *VAR_3, const uint8_t *VAR_4, int VAR_5) { DVDSubParseContext *pc = VAR_0->priv_data; if (pc->packet_index == 0) { if (VAR_5 <...
[ "static int FUNC_0(AVCodecParserContext *VAR_0,\nAVCodecContext *VAR_1,\nconst uint8_t **VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{", "DVDSubParseContext *pc = VAR_0->priv_data;", "if (pc->packet_index == 0) {", "if (VAR_5 < 2)\nreturn VAR_5;", "pc->packet_len = AV_RB16(VAR_4);", "if (pc->pac...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
8,783
static int kmvc_decode_inter_8x8(KmvcContext * ctx, int w, int h) { BitBuf bb; int res, val; int i, j; int bx, by; int l0x, l1x, l0y, l1y; int mx, my; kmvc_init_getbits(bb, &ctx->g); for (by = 0; by < h; by += 8) for (bx = 0; bx < w; bx += 8) { kmvc_get...
false
FFmpeg
3cd8aaa2b2e78faf039691e1c31ff4f8d94e3bc6
static int kmvc_decode_inter_8x8(KmvcContext * ctx, int w, int h) { BitBuf bb; int res, val; int i, j; int bx, by; int l0x, l1x, l0y, l1y; int mx, my; kmvc_init_getbits(bb, &ctx->g); for (by = 0; by < h; by += 8) for (bx = 0; bx < w; bx += 8) { kmvc_get...
{ "code": [], "line_no": [] }
static int FUNC_0(KmvcContext * VAR_0, int VAR_1, int VAR_2) { BitBuf bb; int VAR_3, VAR_4; int VAR_5, VAR_6; int VAR_7, VAR_8; int VAR_9, VAR_10, VAR_11, VAR_12; int VAR_13, VAR_14; kmvc_init_getbits(bb, &VAR_0->g); for (VAR_8 = 0; VAR_8 < VAR_2; VAR_8 += 8) for (V...
[ "static int FUNC_0(KmvcContext * VAR_0, int VAR_1, int VAR_2)\n{", "BitBuf bb;", "int VAR_3, VAR_4;", "int VAR_5, VAR_6;", "int VAR_7, VAR_8;", "int VAR_9, VAR_10, VAR_11, VAR_12;", "int VAR_13, VAR_14;", "kmvc_init_getbits(bb, &VAR_0->g);", "for (VAR_8 = 0; VAR_8 < VAR_2; VAR_8 += 8)", "for (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 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
8,784
static inline int16_t g726_iterate(G726Context* c, int16_t I) { int dq, re_signal, pk0, fa1, i, tr, ylint, ylfrac, thr2, al, dq0; Float11 f; dq = inverse_quant(c, I); if (I >> (c->tbls->bits - 1)) /* get the sign */ dq = -dq; re_signal = c->se + dq; /* Transition detect ...
false
FFmpeg
eb5b0422b595d488f5c2f2a37a62cd46dfbb6aa7
static inline int16_t g726_iterate(G726Context* c, int16_t I) { int dq, re_signal, pk0, fa1, i, tr, ylint, ylfrac, thr2, al, dq0; Float11 f; dq = inverse_quant(c, I); if (I >> (c->tbls->bits - 1)) dq = -dq; re_signal = c->se + dq; ylint = (c->yl >> 15); ylfra...
{ "code": [], "line_no": [] }
static inline int16_t FUNC_0(G726Context* c, int16_t I) { int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; Float11 f; VAR_0 = inverse_quant(c, I); if (I >> (c->tbls->bits - 1)) VAR_0 = -VAR_0; VAR_1 = c->se + VAR_0; VAR_6 = (c->yl ...
[ "static inline int16_t FUNC_0(G726Context* c, int16_t I)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "Float11 f;", "VAR_0 = inverse_quant(c, I);", "if (I >> (c->tbls->bits - 1))\nVAR_0 = -VAR_0;", "VAR_1 = c->se + VAR_0;", "VAR_6 = (c->yl >> 15);", "VAR_7 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], ...
8,785
static int decrypt_init(AVFormatContext *s, ID3v2ExtraMeta *em, uint8_t *header) { OMAContext *oc = s->priv_data; ID3v2ExtraMetaGEOB *geob = NULL; uint8_t *gdata; oc->encrypted = 1; av_log(s, AV_LOG_INFO, "File is encrypted\n"); /* find GEOB metadata */ while (em) { if (...
false
FFmpeg
91e72e35141f590c38985ad0ae3453a4e9e86b8a
static int decrypt_init(AVFormatContext *s, ID3v2ExtraMeta *em, uint8_t *header) { OMAContext *oc = s->priv_data; ID3v2ExtraMetaGEOB *geob = NULL; uint8_t *gdata; oc->encrypted = 1; av_log(s, AV_LOG_INFO, "File is encrypted\n"); while (em) { if (!strcmp(em->tag, "GEOB")...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, ID3v2ExtraMeta *VAR_1, uint8_t *VAR_2) { OMAContext *oc = VAR_0->priv_data; ID3v2ExtraMetaGEOB *geob = NULL; uint8_t *gdata; oc->encrypted = 1; av_log(VAR_0, AV_LOG_INFO, "File is encrypted\n"); while (VAR_1) { if (!strcmp(VAR_1...
[ "static int FUNC_0(AVFormatContext *VAR_0, ID3v2ExtraMeta *VAR_1, uint8_t *VAR_2)\n{", "OMAContext *oc = VAR_0->priv_data;", "ID3v2ExtraMetaGEOB *geob = NULL;", "uint8_t *gdata;", "oc->encrypted = 1;", "av_log(VAR_0, AV_LOG_INFO, \"File is encrypted\\n\");", "while (VAR_1) {", "if (!strcmp(VAR_1->tag,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
8,786
uint32_t avpriv_fmt_ff2v4l(enum AVPixelFormat pix_fmt, enum AVCodecID codec_id) { int i; for (i = 0; avpriv_fmt_conversion_table[i].codec_id != AV_CODEC_ID_NONE; i++) { if ((codec_id == AV_CODEC_ID_NONE || avpriv_fmt_conversion_table[i].codec_id == codec_id) && (pix_fmt ...
false
FFmpeg
931da6a5e9dd54563fe5d4d30b7bd4d0a0218c87
uint32_t avpriv_fmt_ff2v4l(enum AVPixelFormat pix_fmt, enum AVCodecID codec_id) { int i; for (i = 0; avpriv_fmt_conversion_table[i].codec_id != AV_CODEC_ID_NONE; i++) { if ((codec_id == AV_CODEC_ID_NONE || avpriv_fmt_conversion_table[i].codec_id == codec_id) && (pix_fmt ...
{ "code": [], "line_no": [] }
uint32_t FUNC_0(enum AVPixelFormat pix_fmt, enum AVCodecID codec_id) { int VAR_0; for (VAR_0 = 0; avpriv_fmt_conversion_table[VAR_0].codec_id != AV_CODEC_ID_NONE; VAR_0++) { if ((codec_id == AV_CODEC_ID_NONE || avpriv_fmt_conversion_table[VAR_0].codec_id == codec_id) && ...
[ "uint32_t FUNC_0(enum AVPixelFormat pix_fmt, enum AVCodecID codec_id)\n{", "int VAR_0;", "for (VAR_0 = 0; avpriv_fmt_conversion_table[VAR_0].codec_id != AV_CODEC_ID_NONE; VAR_0++) {", "if ((codec_id == AV_CODEC_ID_NONE ||\navpriv_fmt_conversion_table[VAR_0].codec_id == codec_id) &&\n(pix_fmt == AV_PIX_FMT_NON...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
8,787
int avfilter_default_config_output_link(AVFilterLink *link) { if (link->src->input_count && link->src->inputs[0]) { if (link->type == AVMEDIA_TYPE_VIDEO) { link->w = link->src->inputs[0]->w; link->h = link->src->inputs[0]->h; link->time_base = link->src->inputs[0]->...
false
FFmpeg
5f68a91be242c05bdd5aeffd74b36a1e6c782dd5
int avfilter_default_config_output_link(AVFilterLink *link) { if (link->src->input_count && link->src->inputs[0]) { if (link->type == AVMEDIA_TYPE_VIDEO) { link->w = link->src->inputs[0]->w; link->h = link->src->inputs[0]->h; link->time_base = link->src->inputs[0]->...
{ "code": [], "line_no": [] }
int FUNC_0(AVFilterLink *VAR_0) { if (VAR_0->src->input_count && VAR_0->src->inputs[0]) { if (VAR_0->type == AVMEDIA_TYPE_VIDEO) { VAR_0->w = VAR_0->src->inputs[0]->w; VAR_0->h = VAR_0->src->inputs[0]->h; VAR_0->time_base = VAR_0->src->inputs[0]->time_base; ...
[ "int FUNC_0(AVFilterLink *VAR_0)\n{", "if (VAR_0->src->input_count && VAR_0->src->inputs[0]) {", "if (VAR_0->type == AVMEDIA_TYPE_VIDEO) {", "VAR_0->w = VAR_0->src->inputs[0]->w;", "VAR_0->h = VAR_0->src->inputs[0]->h;", "VAR_0->time_base = VAR_0->src->inputs[0]->time_base;", "} else if (VAR_0->type == ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
8,788
static int mov_seek_stream(AVStream *st, int64_t timestamp, int flags) { MOVStreamContext *sc = st->priv_data; int sample, time_sample; int i; sample = av_index_search_timestamp(st, timestamp, flags); dprintf(st->codec, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sam...
false
FFmpeg
54a5c7193be19ad781a1df539bd120c3d8987251
static int mov_seek_stream(AVStream *st, int64_t timestamp, int flags) { MOVStreamContext *sc = st->priv_data; int sample, time_sample; int i; sample = av_index_search_timestamp(st, timestamp, flags); dprintf(st->codec, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sam...
{ "code": [], "line_no": [] }
static int FUNC_0(AVStream *VAR_0, int64_t VAR_1, int VAR_2) { MOVStreamContext *sc = VAR_0->priv_data; int VAR_3, VAR_4; int VAR_5; VAR_3 = av_index_search_timestamp(VAR_0, VAR_1, VAR_2); dprintf(VAR_0->codec, "stream %d, VAR_1 %"PRId64", VAR_3 %d\n", VAR_0->index, VAR_1, VAR_3); if (V...
[ "static int FUNC_0(AVStream *VAR_0, int64_t VAR_1, int VAR_2)\n{", "MOVStreamContext *sc = VAR_0->priv_data;", "int VAR_3, VAR_4;", "int VAR_5;", "VAR_3 = av_index_search_timestamp(VAR_0, VAR_1, VAR_2);", "dprintf(VAR_0->codec, \"stream %d, VAR_1 %\"PRId64\", VAR_3 %d\\n\", VAR_0->index, VAR_1, VAR_3);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
8,789
static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MPADecodeContext *s = avctx->priv_data; uint32_t header; int ret; int skipped = 0; while...
true
FFmpeg
5d81616be332cca99304d0b747c2c8e2d719f349
static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MPADecodeContext *s = avctx->priv_data; uint32_t header; int ret; int skipped = 0; while...
{ "code": [ " return buf_size;" ], "line_no": [ 45 ] }
static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MPADecodeContext *s = VAR_0->priv_data; uint32_t header; int VAR_6; int VAR_7 = 0; while(VAR_5 && !*V...
[ "static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MPADecodeContext *s = VAR_0->priv_data;", "uint32_t header;", "int VAR_6;", "int VAR_7 = 0;", "while(VAR_5 && !*VAR_4){", "VAR_4++;"...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
8,790
bool arp_table_search(Slirp *slirp, uint32_t ip_addr, uint8_t out_ethaddr[ETH_ALEN]) { const uint32_t broadcast_addr = ~slirp->vnetwork_mask.s_addr | slirp->vnetwork_addr.s_addr; ArpTable *arptbl = &slirp->arp_table; int i; DEBUG_CALL("arp_table_search"); DEBU...
true
qemu
ed6bc28e8a448b9005af50eed12893c5f7711c6e
bool arp_table_search(Slirp *slirp, uint32_t ip_addr, uint8_t out_ethaddr[ETH_ALEN]) { const uint32_t broadcast_addr = ~slirp->vnetwork_mask.s_addr | slirp->vnetwork_addr.s_addr; ArpTable *arptbl = &slirp->arp_table; int i; DEBUG_CALL("arp_table_search"); DEBU...
{ "code": [ " assert((ip_addr & htonl(~(0xf << 28))) != 0);" ], "line_no": [ 25 ] }
bool FUNC_0(Slirp *slirp, uint32_t ip_addr, uint8_t out_ethaddr[ETH_ALEN]) { const uint32_t VAR_0 = ~slirp->vnetwork_mask.s_addr | slirp->vnetwork_addr.s_addr; ArpTable *arptbl = &slirp->arp_table; int VAR_1; DEBUG_CALL("FUNC_0"); DEBUG_ARG("ip = 0x%x", ip_add...
[ "bool FUNC_0(Slirp *slirp, uint32_t ip_addr,\nuint8_t out_ethaddr[ETH_ALEN])\n{", "const uint32_t VAR_0 =\n~slirp->vnetwork_mask.s_addr | slirp->vnetwork_addr.s_addr;", "ArpTable *arptbl = &slirp->arp_table;", "int VAR_1;", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"ip = 0x%x\", ip_addr);", "assert((ip_add...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 25 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51, 53 ], [ 55 ], [ 57 ], [ 59 ...
8,791
void smc91c111_init(NICInfo *nd, uint32_t base, void *pic, int irq) { smc91c111_state *s; int iomemtype; s = (smc91c111_state *)qemu_mallocz(sizeof(smc91c111_state)); iomemtype = cpu_register_io_memory(0, smc91c111_readfn, smc91c111_writefn, s); cpu_re...
true
qemu
d861b05ea30e6ac177de9b679da96194ebe21afc
void smc91c111_init(NICInfo *nd, uint32_t base, void *pic, int irq) { smc91c111_state *s; int iomemtype; s = (smc91c111_state *)qemu_mallocz(sizeof(smc91c111_state)); iomemtype = cpu_register_io_memory(0, smc91c111_readfn, smc91c111_writefn, s); cpu_re...
{ "code": [ " s->vc = qemu_new_vlan_client(nd->vlan, smc91c111_receive, s);" ], "line_no": [ 33 ] }
void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, void *VAR_2, int VAR_3) { smc91c111_state *s; int VAR_4; s = (smc91c111_state *)qemu_mallocz(sizeof(smc91c111_state)); VAR_4 = cpu_register_io_memory(0, smc91c111_readfn, smc91c111_writefn, s); cpu_register_p...
[ "void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, void *VAR_2, int VAR_3)\n{", "smc91c111_state *s;", "int VAR_4;", "s = (smc91c111_state *)qemu_mallocz(sizeof(smc91c111_state));", "VAR_4 = cpu_register_io_memory(0, smc91c111_readfn,\nsmc91c111_writefn, s);", "cpu_register_physical_memory(VAR_1, 16, VAR_4);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 37 ] ]
8,792
void ff_mpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y) { int cbpc, cbpy, pred_x, pred_y; PutBitContext *const pb2 = s->data_partitioning ? &s->pb2 : &s->pb; PutBitContext *const tex_pb = s->data_partitioning && s->pict_type != AV_PICTURE_...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
void ff_mpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y) { int cbpc, cbpy, pred_x, pred_y; PutBitContext *const pb2 = s->data_partitioning ? &s->pb2 : &s->pb; PutBitContext *const tex_pb = s->data_partitioning && s->pict_type != AV_PICTURE_...
{ "code": [ " p_pic = s->new_picture.f.data[0] + offset;", " if (!pic || pic->f.pict_type != AV_PICTURE_TYPE_B)", " b_pic = pic->f.data[0] + offset;" ], "line_no": [ 351, 367, 373 ] }
void FUNC_0(MpegEncContext *VAR_0, int16_t VAR_1[6][64], int VAR_2, int VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7; PutBitContext *const pb2 = VAR_0->data_partitioning ? &VAR_0->pb2 : &VAR_0->pb; PutBitContext *const tex_pb = VAR_0->data_partitioning && VAR_0->pict_type != AV_PI...
[ "void FUNC_0(MpegEncContext *VAR_0, int16_t VAR_1[6][64],\nint VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7;", "PutBitContext *const pb2 = VAR_0->data_partitioning ? &VAR_0->pb2 : &VAR_0->pb;", "PutBitContext *const tex_pb = VAR_0->data_partitioning && VAR_0->pict_type != AV_PICTURE_TYPE_B ? &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, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41, 43, 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
8,795
static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1, const uint8_t *buf, int buf_size, int is_start) { MpegTSSectionFilter *tss = &tss1->u.section_filter; int len; if (is_start) { memcpy(tss->section_buf, buf, buf_size); tss->section_i...
true
FFmpeg
4b6be54bed27eb7fc8f005505ff38e71b3c86cec
static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1, const uint8_t *buf, int buf_size, int is_start) { MpegTSSectionFilter *tss = &tss1->u.section_filter; int len; if (is_start) { memcpy(tss->section_buf, buf, buf_size); tss->section_i...
{ "code": [ " if (crc_valid)" ], "line_no": [ 87 ] }
static void FUNC_0(MpegTSContext *VAR_0, MpegTSFilter *VAR_1, const uint8_t *VAR_2, int VAR_3, int VAR_4) { MpegTSSectionFilter *tss = &VAR_1->u.section_filter; int VAR_5; if (VAR_4) { memcpy(tss->section_buf, VAR_2, VAR_3); tss->section_index = VAR_3;...
[ "static void FUNC_0(MpegTSContext *VAR_0, MpegTSFilter *VAR_1,\nconst uint8_t *VAR_2, int VAR_3, int VAR_4)\n{", "MpegTSSectionFilter *tss = &VAR_1->u.section_filter;", "int VAR_5;", "if (VAR_4) {", "memcpy(tss->section_buf, VAR_2, VAR_3);", "tss->section_index = VAR_3;", "tss->section_h_size = -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, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49, 51 ...
8,796
av_cold int ff_mpv_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i, ret, format_supported; mpv_encode_defaults(s); switch (avctx->codec_id) { case AV_CODEC_ID_MPEG2VIDEO: if (avctx->pix_fmt != AV_PIX_FMT_YUV420P && avctx->pix_fmt != AV...
true
FFmpeg
f6c94457b44f41d900cd0991857f54e1f0ccedd6
av_cold int ff_mpv_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i, ret, format_supported; mpv_encode_defaults(s); switch (avctx->codec_id) { case AV_CODEC_ID_MPEG2VIDEO: if (avctx->pix_fmt != AV_PIX_FMT_YUV420P && avctx->pix_fmt != AV...
{ "code": [ " if (s->avctx->thread_count > 1)", " s->rtp_mode = 1;" ], "line_no": [ 563, 565 ] }
av_cold int FUNC_0(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int VAR_0, VAR_1, VAR_2; mpv_encode_defaults(s); switch (avctx->codec_id) { case AV_CODEC_ID_MPEG2VIDEO: if (avctx->pix_fmt != AV_PIX_FMT_YUV420P && avctx->pix_fmt != AV_PIX_FMT_YUV422P)...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "MpegEncContext *s = avctx->priv_data;", "int VAR_0, VAR_1, VAR_2;", "mpv_encode_defaults(s);", "switch (avctx->codec_id) {", "case AV_CODEC_ID_MPEG2VIDEO:\nif (avctx->pix_fmt != AV_PIX_FMT_YUV420P &&\navctx->pix_fmt != AV_PIX_FMT_YUV422P) {", "av_log(avct...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 39, 41, 43, 45, 47, 49 ], [ 53, 55, 57, 59 ], [ 63...
8,797
static int sbr_hf_gen(AACContext *ac, SpectralBandReplication *sbr, float X_high[64][40][2], const float X_low[32][40][2], const float (*alpha0)[2], const float (*alpha1)[2], const float bw_array[5], const uint8_t *t_env, int bs...
false
FFmpeg
aac46e088d67a390489af686b846dea4987d8ffb
static int sbr_hf_gen(AACContext *ac, SpectralBandReplication *sbr, float X_high[64][40][2], const float X_low[32][40][2], const float (*alpha0)[2], const float (*alpha1)[2], const float bw_array[5], const uint8_t *t_env, int bs...
{ "code": [], "line_no": [] }
static int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1, float VAR_2[64][40][2], const float VAR_3[32][40][2], const float (*VAR_4)[2], const float (*VAR_5)[2], const float VAR_6[5], const uint8_t *VAR_7, int VAR_8) ...
[ "static int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1,\nfloat VAR_2[64][40][2], const float VAR_3[32][40][2],\nconst float (*VAR_4)[2], const float (*VAR_5)[2],\nconst float VAR_6[5], const uint8_t *VAR_7,\nint VAR_8)\n{", "int VAR_9, VAR_10, VAR_11;", "int VAR_12 = 0;", "int VAR_13 = VAR_1->kx...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
8,798
static int find_image_range(int *pfirst_index, int *plast_index, const char *path) { char buf[1024]; int range, last_index, range1, first_index; /* find the first image */ for(first_index = 0; first_index < 5; first_index++) { if (av_get_frame_filename(buf, s...
false
FFmpeg
98b3f17bd7182f4fbf318e09068bc19457a82d69
static int find_image_range(int *pfirst_index, int *plast_index, const char *path) { char buf[1024]; int range, last_index, range1, first_index; for(first_index = 0; first_index < 5; first_index++) { if (av_get_frame_filename(buf, sizeof(buf), path, first_in...
{ "code": [], "line_no": [] }
static int FUNC_0(int *VAR_0, int *VAR_1, const char *VAR_2) { char VAR_3[1024]; int VAR_4, VAR_5, VAR_6, VAR_7; for(VAR_7 = 0; VAR_7 < 5; VAR_7++) { if (av_get_frame_filename(VAR_3, sizeof(VAR_3), VAR_2, VAR_7) < 0){ *VAR_0 = *VAR_...
[ "static int FUNC_0(int *VAR_0, int *VAR_1,\nconst char *VAR_2)\n{", "char VAR_3[1024];", "int VAR_4, VAR_5, VAR_6, VAR_7;", "for(VAR_7 = 0; VAR_7 < 5; VAR_7++) {", "if (av_get_frame_filename(VAR_3, sizeof(VAR_3), VAR_2, VAR_7) < 0){", "*VAR_0 =\n*VAR_1 = 1;", "if (avio_check(VAR_3, AVIO_FLAG_READ) > 0)\...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ...
8,799
av_cold void ff_MPV_common_init_x86(MpegEncContext *s) { #if HAVE_INLINE_ASM int cpu_flags = av_get_cpu_flags(); if (cpu_flags & AV_CPU_FLAG_MMX) { s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_mmx; s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_mmx; s->dct_...
false
FFmpeg
6369ba3c9cc74becfaad2a8882dff3dd3e7ae3c0
av_cold void ff_MPV_common_init_x86(MpegEncContext *s) { #if HAVE_INLINE_ASM int cpu_flags = av_get_cpu_flags(); if (cpu_flags & AV_CPU_FLAG_MMX) { s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_mmx; s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_mmx; s->dct_...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(MpegEncContext *s) { #if HAVE_INLINE_ASM int cpu_flags = av_get_cpu_flags(); if (cpu_flags & AV_CPU_FLAG_MMX) { s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_mmx; s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_mmx; s->dct_unquantize_mpeg1...
[ "av_cold void FUNC_0(MpegEncContext *s)\n{", "#if HAVE_INLINE_ASM\nint cpu_flags = av_get_cpu_flags();", "if (cpu_flags & AV_CPU_FLAG_MMX) {", "s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_mmx;", "s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_mmx;", "s->dct_unquantize_mpeg1_intra = ...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ] ]
8,800
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; uint8_t *buf_end, *buf_ptr; AVFrame *picture = data; GetBitContext hgb; /* for the...
false
FFmpeg
934982c4ace1a3d5d627b518782ed092a456c49e
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; uint8_t *buf_end, *buf_ptr; AVFrame *picture = data; GetBitContext hgb; uint...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { MJpegDecodeContext *s = VAR_0->priv_data; uint8_t *buf_end, *buf_ptr; AVFrame *picture = VAR_1; GetBitContext hgb; uint32_t dqt_offs, d...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "MJpegDecodeContext *s = VAR_0->priv_data;", "uint8_t *buf_end, *buf_ptr;", "AVFrame *picture = VAR_1;", "GetBitContext hgb;", "uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs;", "uint...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37, 41 ], [ 43 ], [ 47 ], [ 51 ], [ 55, 57 ], [ 59 ], [ 61 ], [...
8,804
AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c) { AVStream *st; int i; AVStream **streams; if (s->nb_streams >= INT_MAX/sizeof(*streams)) streams = av_realloc_array(s->streams, s->nb_streams + 1, sizeof(*streams)); if (!streams) s->streams = streams; st...
true
FFmpeg
a66893ac949864352b36b39e48c4cd72bbd81e54
AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c) { AVStream *st; int i; AVStream **streams; if (s->nb_streams >= INT_MAX/sizeof(*streams)) streams = av_realloc_array(s->streams, s->nb_streams + 1, sizeof(*streams)); if (!streams) s->streams = streams; st...
{ "code": [], "line_no": [] }
AVStream *FUNC_0(AVFormatContext *s, const AVCodec *c) { AVStream *st; int VAR_0; AVStream **streams; if (s->nb_streams >= INT_MAX/sizeof(*streams)) streams = av_realloc_array(s->streams, s->nb_streams + 1, sizeof(*streams)); if (!streams) s->streams = streams; st = av_mal...
[ "AVStream *FUNC_0(AVFormatContext *s, const AVCodec *c)\n{", "AVStream *st;", "int VAR_0;", "AVStream **streams;", "if (s->nb_streams >= INT_MAX/sizeof(*streams))\nstreams = av_realloc_array(s->streams, s->nb_streams + 1, sizeof(*streams));", "if (!streams)\ns->streams = streams;", "st = av_mallocz(size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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, 16 ], [ 18, 21 ], [ 25 ], [ 27, 30 ], [ 35 ], [ 39 ], [ 46 ], [ 50 ], [ 56 ], [ 61 ], [ 63 ], [ 65 ], [ 75 ], [ 77 ], [...
8,805
static void monitor_parse(const char *optarg, const char *mode) { static int monitor_device_index = 0; QemuOpts *opts; const char *p; char label[32]; int def = 0; if (strstart(optarg, "chardev:", &p)) { snprintf(label, sizeof(label), "%s", p); } else { snprintf(la...
true
qemu
8be7e7e4c72c048b90e3482557954a24bba43ba7
static void monitor_parse(const char *optarg, const char *mode) { static int monitor_device_index = 0; QemuOpts *opts; const char *p; char label[32]; int def = 0; if (strstart(optarg, "chardev:", &p)) { snprintf(label, sizeof(label), "%s", p); } else { snprintf(la...
{ "code": [ " opts = qemu_opts_create(qemu_find_opts(\"mon\"), label, 1);" ], "line_no": [ 47 ] }
static void FUNC_0(const char *VAR_0, const char *VAR_1) { static int VAR_2 = 0; QemuOpts *opts; const char *VAR_3; char VAR_4[32]; int VAR_5 = 0; if (strstart(VAR_0, "chardev:", &VAR_3)) { snprintf(VAR_4, sizeof(VAR_4), "%s", VAR_3); } else { snprintf(VAR_4, size...
[ "static void FUNC_0(const char *VAR_0, const char *VAR_1)\n{", "static int VAR_2 = 0;", "QemuOpts *opts;", "const char *VAR_3;", "char VAR_4[32];", "int VAR_5 = 0;", "if (strstart(VAR_0, \"chardev:\", &VAR_3)) {", "snprintf(VAR_4, sizeof(VAR_4), \"%s\", VAR_3);", "} else {", "snprintf(VAR_4, sizeo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
8,806
virtio_gpu_resource_attach_backing(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) { struct virtio_gpu_simple_resource *res; struct virtio_gpu_resource_attach_backing ab; int ret; VIRTIO_GPU_FILL_CMD(ab); trace_virtio_gpu_cmd_res_back_attach(ab.resource_id); ...
true
qemu
204f01b30975923c64006f8067f0937b91eea68b
virtio_gpu_resource_attach_backing(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) { struct virtio_gpu_simple_resource *res; struct virtio_gpu_resource_attach_backing ab; int ret; VIRTIO_GPU_FILL_CMD(ab); trace_virtio_gpu_cmd_res_back_attach(ab.resource_id); ...
{ "code": [], "line_no": [] }
FUNC_0(VirtIOGPU *VAR_0, struct virtio_gpu_ctrl_command *VAR_1) { struct virtio_gpu_simple_resource *VAR_2; struct FUNC_0 VAR_3; int VAR_4; VIRTIO_GPU_FILL_CMD(VAR_3); trace_virtio_gpu_cmd_res_back_attach(VAR_3.resource_id); VAR_2 = virtio_gpu_find_resource(VAR...
[ "FUNC_0(VirtIOGPU *VAR_0,\nstruct virtio_gpu_ctrl_command *VAR_1)\n{", "struct virtio_gpu_simple_resource *VAR_2;", "struct FUNC_0 VAR_3;", "int VAR_4;", "VIRTIO_GPU_FILL_CMD(VAR_3);", "trace_virtio_gpu_cmd_res_back_attach(VAR_3.resource_id);", "VAR_2 = virtio_gpu_find_resource(VAR_0, VAR_3.resource_id)...
[ 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 ] ]
8,807
static void qxl_create_guest_primary(PCIQXLDevice *qxl, int loadvm, qxl_async_io async) { QXLDevSurfaceCreate surface; QXLSurfaceCreate *sc = &qxl->guest_primary.surface; int size; int requested_height = le32_to_cpu(sc->height); int requested_stride = le32_to_cpu...
true
qemu
48f4ba671bbb3dd212002d57b72a23375f51619b
static void qxl_create_guest_primary(PCIQXLDevice *qxl, int loadvm, qxl_async_io async) { QXLDevSurfaceCreate surface; QXLSurfaceCreate *sc = &qxl->guest_primary.surface; int size; int requested_height = le32_to_cpu(sc->height); int requested_stride = le32_to_cpu...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0, int VAR_1, qxl_async_io VAR_2) { QXLDevSurfaceCreate surface; QXLSurfaceCreate *sc = &VAR_0->guest_primary.surface; int VAR_3; int VAR_4 = le32_to_cpu(sc->height); int VAR_5 = le32_to_cpu(sc->stride); VAR_3 = abs(VAR_5)...
[ "static void FUNC_0(PCIQXLDevice *VAR_0, int VAR_1,\nqxl_async_io VAR_2)\n{", "QXLDevSurfaceCreate surface;", "QXLSurfaceCreate *sc = &VAR_0->guest_primary.surface;", "int VAR_3;", "int VAR_4 = le32_to_cpu(sc->height);", "int VAR_5 = le32_to_cpu(sc->stride);", "VAR_3 = abs(VAR_5) * VAR_4;", "if (VAR_3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11, 12 ], [ 13 ], [ 14, 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ ...
8,808
pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality) { char temp[GET_MODE_BUFFER_SIZE]; char *p= temp; static const char filterDelimiters[] = ",/"; static const char optionDelimiters[] = ":|"; struct PPMode *ppMode; char *filterToken; if (!name) { av_lo...
true
FFmpeg
f6173fed608b81e70f40664f356d127618851427
pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality) { char temp[GET_MODE_BUFFER_SIZE]; char *p= temp; static const char filterDelimiters[] = ",/"; static const char optionDelimiters[] = ":|"; struct PPMode *ppMode; char *filterToken; if (!name) { av_lo...
{ "code": [], "line_no": [] }
pp_mode *FUNC_0(const char *name, int quality) { char VAR_0[GET_MODE_BUFFER_SIZE]; char *VAR_6= VAR_0; static const char VAR_2[] = ",/"; static const char VAR_3[] = ":|"; struct PPMode *VAR_4; char *VAR_5; if (!name) { av_log(NULL, AV_LOG_ERROR, "pp: Missing argument\n");...
[ "pp_mode *FUNC_0(const char *name, int quality)\n{", "char VAR_0[GET_MODE_BUFFER_SIZE];", "char *VAR_6= VAR_0;", "static const char VAR_2[] = \",/\";", "static const char VAR_3[] = \":|\";", "struct PPMode *VAR_4;", "char *VAR_5;", "if (!name) {", "av_log(NULL, AV_LOG_ERROR, \"pp: Missing argument\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 39 ], [ 44 ], [ 48 ], [ 50 ], [ 52 ...
8,810
static int mov_read_extradata(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; uint64_t size; uint8_t *buf; int err; if (c->fc->nb_streams < 1) // will happen with jp2 files return 0; st= c->fc->streams[c->fc->nb_streams-1]; size= (uint64_t)st->codec->extradat...
true
FFmpeg
5c720657c23afd798ae0db7c7362eb859a89ab3d
static int mov_read_extradata(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; uint64_t size; uint8_t *buf; int err; if (c->fc->nb_streams < 1) return 0; st= c->fc->streams[c->fc->nb_streams-1]; size= (uint64_t)st->codec->extradata_size + atom.size + 8 + FF_I...
{ "code": [ " avio_read(pb, buf + 8, atom.size);", " return AVERROR_INVALIDDATA;" ], "line_no": [ 43, 25 ] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st; uint64_t size; uint8_t *buf; int VAR_3; if (VAR_0->fc->nb_streams < 1) return 0; st= VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; size= (uint64_t)st->codec->extradata_size + VAR_2.size...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st;", "uint64_t size;", "uint8_t *buf;", "int VAR_3;", "if (VAR_0->fc->nb_streams < 1)\nreturn 0;", "st= VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "size= (uint64_t)st->codec->extradata_size + VAR_2.size + 8 +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
8,811
static always_inline void gen_bcond (DisasContext *ctx, int type) { uint32_t bo = BO(ctx->opcode); int l1 = gen_new_label(); TCGv target; ctx->exception = POWERPC_EXCP_BRANCH; if (type == BCOND_LR || type == BCOND_CTR) { target = tcg_temp_local_new(); if (type == BCOND_CTR)...
true
qemu
d2e9fd8f703203c2eeeed120b1ef6c3a6574e0ab
static always_inline void gen_bcond (DisasContext *ctx, int type) { uint32_t bo = BO(ctx->opcode); int l1 = gen_new_label(); TCGv target; ctx->exception = POWERPC_EXCP_BRANCH; if (type == BCOND_LR || type == BCOND_CTR) { target = tcg_temp_local_new(); if (type == BCOND_CTR)...
{ "code": [], "line_no": [] }
static always_inline void FUNC_0 (DisasContext *ctx, int type) { uint32_t bo = BO(ctx->opcode); int VAR_0 = gen_new_label(); TCGv target; ctx->exception = POWERPC_EXCP_BRANCH; if (type == BCOND_LR || type == BCOND_CTR) { target = tcg_temp_local_new(); if (type == BCOND_CTR)...
[ "static always_inline void FUNC_0 (DisasContext *ctx, int type)\n{", "uint32_t bo = BO(ctx->opcode);", "int VAR_0 = gen_new_label();", "TCGv target;", "ctx->exception = POWERPC_EXCP_BRANCH;", "if (type == BCOND_LR || type == BCOND_CTR) {", "target = tcg_temp_local_new();", "if (type == BCOND_CTR)\ntcg...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
8,812
void slavio_serial_ms_kbd_init(target_phys_addr_t base, qemu_irq irq, int disabled, int clock, int it_shift) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "escc"); qdev_prop_set_uint32(dev, "disabled", disabled); qdev_prop_set_uint32(dev, "frequ...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
void slavio_serial_ms_kbd_init(target_phys_addr_t base, qemu_irq irq, int disabled, int clock, int it_shift) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "escc"); qdev_prop_set_uint32(dev, "disabled", disabled); qdev_prop_set_uint32(dev, "frequ...
{ "code": [ " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " ...
void FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1, int VAR_2, int VAR_3, int VAR_4) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "escc"); qdev_prop_set_uint32(dev, "VAR_2", VAR_2); qdev_prop_set_uint32(dev, "frequency", VAR_3); qdev_pro...
[ "void FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{", "DeviceState *dev;", "SysBusDevice *s;", "dev = qdev_create(NULL, \"escc\");", "qdev_prop_set_uint32(dev, \"VAR_2\", VAR_2);", "qdev_prop_set_uint32(dev, \"frequency\", VAR_3);", "qdev_prop_set_uint32(dev, \"VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
8,813
static int v9fs_receive_response(V9fsProxy *proxy, int type, int *status, void *response) { int retval; ProxyHeader header; struct iovec *reply = &proxy->in_iovec; *status = 0; reply->iov_len = 0; retval = socket_read(proxy->sockfd, reply->iov_base, PRO...
true
qemu
262169abe74b4c2d8b299b7499904cfc3c1902ea
static int v9fs_receive_response(V9fsProxy *proxy, int type, int *status, void *response) { int retval; ProxyHeader header; struct iovec *reply = &proxy->in_iovec; *status = 0; reply->iov_len = 0; retval = socket_read(proxy->sockfd, reply->iov_base, PRO...
{ "code": [ " proxy_unmarshal(reply, 0, \"dd\", &header.type, &header.size);", " if (ret < 0) {", " *status = ret;", " proxy_unmarshal(reply, PROXY_HDR_SZ, \"q\", response);", " proxy_unmarshal(reply, 0, \"dd\", &header.type, &header.size);", " *status = -...
static int FUNC_0(V9fsProxy *VAR_0, int VAR_1, int *VAR_2, void *VAR_3) { int VAR_4; ProxyHeader header; struct iovec *VAR_5 = &VAR_0->in_iovec; *VAR_2 = 0; VAR_5->iov_len = 0; VAR_4 = socket_read(VAR_0->sockfd, VAR_5->iov_base, PROXY_HDR_SZ); if (...
[ "static int FUNC_0(V9fsProxy *VAR_0, int VAR_1,\nint *VAR_2, void *VAR_3)\n{", "int VAR_4;", "ProxyHeader header;", "struct iovec *VAR_5 = &VAR_0->in_iovec;", "*VAR_2 = 0;", "VAR_5->iov_len = 0;", "VAR_4 = socket_read(VAR_0->sockfd, VAR_5->iov_base, PROXY_HDR_SZ);", "if (VAR_4 < 0) {", "return VAR_4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
8,814
static int nbd_opt_go(QIOChannel *ioc, const char *wantname, NBDExportInfo *info, Error **errp) { nbd_opt_reply reply; uint32_t len = strlen(wantname); uint16_t type; int error; char *buf; /* The protocol requires that the server send NBD_INFO_EXPORT with * ...
true
qemu
158b9aa568eabe614d37882dddc2eea534edc7ae
static int nbd_opt_go(QIOChannel *ioc, const char *wantname, NBDExportInfo *info, Error **errp) { nbd_opt_reply reply; uint32_t len = strlen(wantname); uint16_t type; int error; char *buf; info->flags = 0; trace_nbd_opt_go_start(wantname); bu...
{ "code": [ " if (nbd_send_option_request(ioc, NBD_OPT_GO,", " 4 + len + 2 + 2 * info->request_sizes, buf,", " errp) < 0) {" ], "line_no": [ 47, 49, 51 ] }
static int FUNC_0(QIOChannel *VAR_0, const char *VAR_1, NBDExportInfo *VAR_2, Error **VAR_3) { nbd_opt_reply reply; uint32_t len = strlen(VAR_1); uint16_t type; int VAR_4; char *VAR_5; VAR_2->flags = 0; trace_nbd_opt_go_start(VAR_1); VAR_5 = ...
[ "static int FUNC_0(QIOChannel *VAR_0, const char *VAR_1,\nNBDExportInfo *VAR_2, Error **VAR_3)\n{", "nbd_opt_reply reply;", "uint32_t len = strlen(VAR_1);", "uint16_t type;", "int VAR_4;", "char *VAR_5;", "VAR_2->flags = 0;", "trace_nbd_opt_go_start(VAR_1);", "VAR_5 = g_malloc(4 + len + 2 + 2 * VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49, 51 ], [ 53 ], [ 55 ], [...
8,816
AVResampleContext *swr_resample_init(AVResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); int phase_count= 1<<phase_shift; if (!c || c->phase_shift != phase_shift || c->linear!=linear || c-...
true
FFmpeg
a67cb012e6947fb238193afc0f18114f6e20818c
AVResampleContext *swr_resample_init(AVResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); int phase_count= 1<<phase_shift; if (!c || c->phase_shift != phase_shift || c->linear!=linear || c-...
{ "code": [ " c->src_incr= out_rate;", " c->ideal_dst_incr= c->dst_incr= in_rate * phase_count;", " c->src_incr= out_rate;", " c->ideal_dst_incr= c->dst_incr= in_rate * phase_count;" ], "line_no": [ 51, 53, 51, 53 ] }
AVResampleContext *FUNC_0(AVResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ double VAR_0= FFMIN(out_rate * cutoff / in_rate, 1.0); int VAR_1= 1<<phase_shift; if (!c || c->phase_shift != phase_shift || c->linear!=linear || c->VAR_0 != VAR_0 ...
[ "AVResampleContext *FUNC_0(AVResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){", "double VAR_0= FFMIN(out_rate * cutoff / in_rate, 1.0);", "int VAR_1= 1<<phase_shift;", "if (!c || c->phase_shift != phase_shift || c->linear!=linear || c->VAR_0 != VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], ...
8,817
static void add_input_streams(OptionsContext *o, AVFormatContext *ic) { int i; for (i = 0; i < ic->nb_streams; i++) { AVStream *st = ic->streams[i]; AVCodecContext *dec = st->codec; InputStream *ist = av_mallocz(sizeof(*ist)); char *framerate = NULL, *hwaccel = NULL, *hw...
true
FFmpeg
c255f0b001da3afa4709f5378680880b8a2dbe61
static void add_input_streams(OptionsContext *o, AVFormatContext *ic) { int i; for (i = 0; i < ic->nb_streams; i++) { AVStream *st = ic->streams[i]; AVCodecContext *dec = st->codec; InputStream *ist = av_mallocz(sizeof(*ist)); char *framerate = NULL, *hwaccel = NULL, *hw...
{ "code": [], "line_no": [] }
static void FUNC_0(OptionsContext *VAR_0, AVFormatContext *VAR_1) { int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_1->nb_streams; VAR_2++) { AVStream *st = VAR_1->streams[VAR_2]; AVCodecContext *dec = st->codec; InputStream *ist = av_mallocz(sizeof(*ist)); char *framerate = NULL...
[ "static void FUNC_0(OptionsContext *VAR_0, AVFormatContext *VAR_1)\n{", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_1->nb_streams; VAR_2++) {", "AVStream *st = VAR_1->streams[VAR_2];", "AVCodecContext *dec = st->codec;", "InputStream *ist = av_mallocz(sizeof(*ist));", "char *framerate = NULL, *hwaccel = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], ...
8,818
static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt, int discard) { AviSynthContext *avs = s->priv_data; AVS_VideoFrame *frame; unsigned char *dst_p; const unsigned char *src_p; int n, i, plane, rowsize, planeheight, pitch, bits; const char *error; if (avs->curr_...
true
FFmpeg
9db353bc4727d2a184778c110cf4ea0b9d1616cb
static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt, int discard) { AviSynthContext *avs = s->priv_data; AVS_VideoFrame *frame; unsigned char *dst_p; const unsigned char *src_p; int n, i, plane, rowsize, planeheight, pitch, bits; const char *error; if (avs->curr_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, int VAR_2) { AviSynthContext *avs = VAR_0->priv_data; AVS_VideoFrame *frame; unsigned char *VAR_3; const unsigned char *VAR_4; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; const char *VAR_12; if (avs->curr_frame >=...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, int VAR_2) {", "AviSynthContext *avs = VAR_0->priv_data;", "AVS_VideoFrame *frame;", "unsigned char *VAR_3;", "const unsigned char *VAR_4;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "const char *VAR_12;", "if (avs->curr_frame...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
8,819
static inline void out_reg(IVState *s, enum Reg reg, unsigned v) { const char *name = reg2str(reg); QTestState *qtest = global_qtest; global_qtest = s->qtest; g_test_message("%x -> *%s\n", v, name); qpci_io_writel(s->dev, s->reg_base + reg, v); global_qtest = qtest; }
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static inline void out_reg(IVState *s, enum Reg reg, unsigned v) { const char *name = reg2str(reg); QTestState *qtest = global_qtest; global_qtest = s->qtest; g_test_message("%x -> *%s\n", v, name); qpci_io_writel(s->dev, s->reg_base + reg, v); global_qtest = qtest; }
{ "code": [ " qpci_io_writel(s->dev, s->reg_base + reg, v);" ], "line_no": [ 15 ] }
static inline void FUNC_0(IVState *VAR_0, enum Reg VAR_1, unsigned VAR_2) { const char *VAR_3 = reg2str(VAR_1); QTestState *qtest = global_qtest; global_qtest = VAR_0->qtest; g_test_message("%x -> *%VAR_0\n", VAR_2, VAR_3); qpci_io_writel(VAR_0->dev, VAR_0->reg_base + VAR_1, VAR_2); glo...
[ "static inline void FUNC_0(IVState *VAR_0, enum Reg VAR_1, unsigned VAR_2)\n{", "const char *VAR_3 = reg2str(VAR_1);", "QTestState *qtest = global_qtest;", "global_qtest = VAR_0->qtest;", "g_test_message(\"%x -> *%VAR_0\\n\", VAR_2, VAR_3);", "qpci_io_writel(VAR_0->dev, VAR_0->reg_base + VAR_1, VAR_2);", ...
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]