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
10,457
static int get_nb_samples(AVCodecContext *avctx, const uint8_t *buf, int buf_size, int *coded_samples) { ADPCMDecodeContext *s = avctx->priv_data; int nb_samples = 0; int ch = avctx->channels; int has_coded_samples = 0; int header_size; *coded_samp...
true
FFmpeg
257c85cddde8633caffb76e97e9710b1aebfc511
static int get_nb_samples(AVCodecContext *avctx, const uint8_t *buf, int buf_size, int *coded_samples) { ADPCMDecodeContext *s = avctx->priv_data; int nb_samples = 0; int ch = avctx->channels; int has_coded_samples = 0; int header_size; *coded_samp...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int *VAR_3) { ADPCMDecodeContext *s = VAR_0->priv_data; int VAR_4 = 0; int VAR_5 = VAR_0->channels; int VAR_6 = 0; int VAR_7; *VAR_3 = 0; switch (VAR_0->codec->id) { ...
[ "static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1,\nint VAR_2, int *VAR_3)\n{", "ADPCMDecodeContext *s = VAR_0->priv_data;", "int VAR_4 = 0;", "int VAR_5 = VAR_0->channels;", "int VAR_6 = 0;", "int VAR_7;", "*VAR_3 = 0;", "switch (VAR_0->codec->id) {", "case CODEC_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 12, 13, 14 ], [ 15 ], [ 16, 17, 18 ], [ 19 ], [ 21, 22, 23, 24, 25 ], [ 26 ], [ 27 ], [ ...
10,458
static int64_t calculate_mode_score(CinepakEncContext *s, CinepakMode mode, int h, int v1_size, int v4_size, int v4, strip_info *info) { //score = FF_LAMBDA_SCALE * error + lambda * bits int x; int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; int mb_count = s->w * h / MB_AREA; mb_inf...
true
FFmpeg
7da9f4523159670d577a2808d4481e64008a8894
static int64_t calculate_mode_score(CinepakEncContext *s, CinepakMode mode, int h, int v1_size, int v4_size, int v4, strip_info *info) { int x; int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; int mb_count = s->w * h / MB_AREA; mb_info *mb; int64_t score1, score2, score3; ...
{ "code": [ "static int64_t calculate_mode_score(CinepakEncContext *s, CinepakMode mode, int h, int v1_size, int v4_size, int v4, strip_info *info)", " int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;", " int64_t ret = s->lambda * ((v1_size ? CHUNK_HEADER_SIZE + v1_size * entry_size : 0) +...
static int64_t FUNC_0(CinepakEncContext *s, CinepakMode mode, int h, int v1_size, int v4_size, int v4, strip_info *info) { int VAR_0; int VAR_1 = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; int VAR_2 = s->w * h / MB_AREA; mb_info *mb; int64_t score1, score2, score3; int64_t ret = s->l...
[ "static int64_t FUNC_0(CinepakEncContext *s, CinepakMode mode, int h, int v1_size, int v4_size, int v4, strip_info *info)\n{", "int VAR_0;", "int VAR_1 = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;", "int VAR_2 = s->w * h / MB_AREA;", "mb_info *mb;", "int64_t score1, score2, score3;", "int64_t ret = s->la...
[ 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 29 ], [ 31, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53, 57 ], [ 59 ], [ 61...
10,459
static inline int GET_TOK(TM2Context *ctx,int type) { if(ctx->tok_ptrs[type] >= ctx->tok_lens[type]) { av_log(ctx->avctx, AV_LOG_ERROR, "Read token from stream %i out of bounds (%i>=%i)\n", type, ctx->tok_ptrs[type], ctx->tok_lens[type]); return 0; } if(type <= TM2_MOT) return ...
true
FFmpeg
d0dafebb753f34da61058adf956663de39a815b4
static inline int GET_TOK(TM2Context *ctx,int type) { if(ctx->tok_ptrs[type] >= ctx->tok_lens[type]) { av_log(ctx->avctx, AV_LOG_ERROR, "Read token from stream %i out of bounds (%i>=%i)\n", type, ctx->tok_ptrs[type], ctx->tok_lens[type]); return 0; } if(type <= TM2_MOT) return ...
{ "code": [ " if(type <= TM2_MOT)" ], "line_no": [ 11 ] }
static inline int FUNC_0(TM2Context *VAR_0,int VAR_1) { if(VAR_0->tok_ptrs[VAR_1] >= VAR_0->tok_lens[VAR_1]) { av_log(VAR_0->avctx, AV_LOG_ERROR, "Read token from stream %i out of bounds (%i>=%i)\n", VAR_1, VAR_0->tok_ptrs[VAR_1], VAR_0->tok_lens[VAR_1]); return 0; } if(VAR_1 <= TM2_MOT...
[ "static inline int FUNC_0(TM2Context *VAR_0,int VAR_1) {", "if(VAR_0->tok_ptrs[VAR_1] >= VAR_0->tok_lens[VAR_1]) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"Read token from stream %i out of bounds (%i>=%i)\\n\", VAR_1, VAR_0->tok_ptrs[VAR_1], VAR_0->tok_lens[VAR_1]);", "return 0;", "}", "if(VAR_1 <= TM2_MOT...
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
10,460
int ff_rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st) { RTSPState *rt = s->priv_data; AVStream *st = NULL; int reordering_queue_size = rt->reordering_queue_size; if (reordering_queue_size < 0) { if (rt->lower_transport == RTSP_LOWER_TRANSPORT_TCP || !s->max_delay) ...
true
FFmpeg
df3795025337479a639cb3cd26c93a4e82ccd4db
int ff_rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st) { RTSPState *rt = s->priv_data; AVStream *st = NULL; int reordering_queue_size = rt->reordering_queue_size; if (reordering_queue_size < 0) { if (rt->lower_transport == RTSP_LOWER_TRANSPORT_TCP || !s->max_delay) ...
{ "code": [ " } else if (CONFIG_RTPDEC && rt->transport == RTSP_TRANSPORT_RTP) {" ], "line_no": [ 83 ] }
int FUNC_0(AVFormatContext *VAR_0, RTSPStream *VAR_1) { RTSPState *rt = VAR_0->priv_data; AVStream *st = NULL; int VAR_2 = rt->VAR_2; if (VAR_2 < 0) { if (rt->lower_transport == RTSP_LOWER_TRANSPORT_TCP || !VAR_0->max_delay) VAR_2 = 0; else VAR_2 = RTP_RE...
[ "int FUNC_0(AVFormatContext *VAR_0, RTSPStream *VAR_1)\n{", "RTSPState *rt = VAR_0->priv_data;", "AVStream *st = NULL;", "int VAR_2 = rt->VAR_2;", "if (VAR_2 < 0) {", "if (rt->lower_transport == RTSP_LOWER_TRANSPORT_TCP || !VAR_0->max_delay)\nVAR_2 = 0;", "else\nVAR_2 = RTP_REORDER_QUEUE_DEFAULT_SIZE;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 27, 29 ], [ 31, 33 ], [ 37 ], [ 39, 41, 43, 45 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57 ...
10,461
static void chassis_control(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMIInterface *s = ibs->parent.intf; IPMIInterfaceClass *k = IPMI_INTERFACE_...
true
qemu
4f298a4b2957b7833bc607c951ca27c458d98d88
static void chassis_control(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMIInterface *s = ibs->parent.intf; IPMIInterfaceClass *k = IPMI_INTERFACE_...
{ "code": [ " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);" ], "line_no": [ 17, 17,...
static void FUNC_0(IPMIBmcSim *VAR_0, uint8_t *VAR_1, unsigned int VAR_2, uint8_t *VAR_3, unsigned int *VAR_4, unsigned int VAR_5) { IPMIInterface *s = VAR_0->parent.intf; IPMIInterfaceClass *k = IPMI_INTERFACE_GET_CLASS(s...
[ "static void FUNC_0(IPMIBmcSim *VAR_0,\nuint8_t *VAR_1, unsigned int VAR_2,\nuint8_t *VAR_3, unsigned int *VAR_4,\nunsigned int VAR_5)\n{", "IPMIInterface *s = VAR_0->parent.intf;", "IPMIInterfaceClass *k = IPMI_INTERFACE_GET_CLASS(s);", "IPMI_CHECK_CMD_LEN(3);", "switch (VAR_1[2] & 0xf) {", "case 0:\nVAR...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51,...
10,463
static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; int grouping = 0; int uselo...
true
FFmpeg
7d49abdf4750d63cd9bf71235d6f064152310fff
static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; int grouping = 0; int uselo...
{ "code": [ " for (w = 0; w < wi.grouping[i] && !clipping; w++)", " wi.clipping[i] = clipping;" ], "line_no": [ 283, 287 ] }
static FFPsyWindowInfo FUNC_0(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; int VAR_0 = 0; int VAR_1 = 1; i...
[ "static FFPsyWindowInfo FUNC_0(FFPsyContext *ctx, const float *audio,\nconst float *la, int channel, int prev_type)\n{", "AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;", "AacPsyChannel *pch = &pctx->ch[channel];", "int VAR_0 = 0;", "int VAR_1 = 1;", "int VAR_2[AAC_NUM_BLOCKS_SHORT + 1]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 51 ], [...
10,464
static int dca_decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int lfe_samples; int num_core_channels = 0; int i; int xch_present =...
true
FFmpeg
0712c230ae8b15f920e877e680e0fa6e856e8006
static int dca_decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int lfe_samples; int num_core_channels = 0; int i; int xch_present =...
{ "code": [ " int ext_amode;" ], "line_no": [ 97 ] }
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; int VAR_6; int VAR_7 = 0; int VAR_8; int VAR_9 = 0; int16_t *samples = VAR_1...
[ "static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "int VAR_6;", "int VAR_7 = 0;", "int VAR_8;", "int VAR_9 = 0;", "int16_t *samples = VAR_1;", "DCAContext *s = VAR_0->priv_data;", "int 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, 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, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
10,465
static int rtl8139_can_receive(VLANClientState *nc) { RTL8139State *s = DO_UPCAST(NICState, nc, nc)->opaque; int avail; /* Receive (drop) packets if card is disabled. */ if (!s->clock_enabled) return 1; if (!rtl8139_receiver_enabled(s)) return 1; if (rtl8139_cp_recei...
true
qemu
ff71f2e8cacefae99179993204172bc65e4303df
static int rtl8139_can_receive(VLANClientState *nc) { RTL8139State *s = DO_UPCAST(NICState, nc, nc)->opaque; int avail; if (!s->clock_enabled) return 1; if (!rtl8139_receiver_enabled(s)) return 1; if (rtl8139_cp_receiver_enabled(s)) { return 1; ...
{ "code": [], "line_no": [] }
static int FUNC_0(VLANClientState *VAR_0) { RTL8139State *s = DO_UPCAST(NICState, VAR_0, VAR_0)->opaque; int VAR_1; if (!s->clock_enabled) return 1; if (!rtl8139_receiver_enabled(s)) return 1; if (rtl8139_cp_receiver_enabled(s)) { return 1; ...
[ "static int FUNC_0(VLANClientState *VAR_0)\n{", "RTL8139State *s = DO_UPCAST(NICState, VAR_0, VAR_0)->opaque;", "int VAR_1;", "if (!s->clock_enabled)\nreturn 1;", "if (!rtl8139_receiver_enabled(s))\nreturn 1;", "if (rtl8139_cp_receiver_enabled(s)) {", "return 1;", "} else {", "VAR_1 = MOD2(s->RxBuff...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13, 15 ], [ 17, 19 ], [ 26 ], [ 32 ], [ 34 ], [ 36, 38 ], [ 40 ], [ 42 ], [ 44 ] ]
10,466
unsigned int qemu_get_be16(QEMUFile *f) { unsigned int v; v = qemu_get_byte(f) << 8; v |= qemu_get_byte(f); return v; }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
unsigned int qemu_get_be16(QEMUFile *f) { unsigned int v; v = qemu_get_byte(f) << 8; v |= qemu_get_byte(f); return v; }
{ "code": [], "line_no": [] }
unsigned int FUNC_0(QEMUFile *VAR_0) { unsigned int VAR_1; VAR_1 = qemu_get_byte(VAR_0) << 8; VAR_1 |= qemu_get_byte(VAR_0); return VAR_1; }
[ "unsigned int FUNC_0(QEMUFile *VAR_0)\n{", "unsigned int VAR_1;", "VAR_1 = qemu_get_byte(VAR_0) << 8;", "VAR_1 |= qemu_get_byte(VAR_0);", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
10,467
void migration_fd_process_incoming(QEMUFile *f) { Coroutine *co = qemu_coroutine_create(process_incoming_migration_co); migrate_decompress_threads_create(); qemu_file_set_blocking(f, false); qemu_coroutine_enter(co, f); }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
void migration_fd_process_incoming(QEMUFile *f) { Coroutine *co = qemu_coroutine_create(process_incoming_migration_co); migrate_decompress_threads_create(); qemu_file_set_blocking(f, false); qemu_coroutine_enter(co, f); }
{ "code": [ " Coroutine *co = qemu_coroutine_create(process_incoming_migration_co);", " qemu_coroutine_enter(co, f);" ], "line_no": [ 5, 13 ] }
void FUNC_0(QEMUFile *VAR_0) { Coroutine *co = qemu_coroutine_create(process_incoming_migration_co); migrate_decompress_threads_create(); qemu_file_set_blocking(VAR_0, false); qemu_coroutine_enter(co, VAR_0); }
[ "void FUNC_0(QEMUFile *VAR_0)\n{", "Coroutine *co = qemu_coroutine_create(process_incoming_migration_co);", "migrate_decompress_threads_create();", "qemu_file_set_blocking(VAR_0, false);", "qemu_coroutine_enter(co, VAR_0);", "}" ]
[ 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
10,468
void ff_xvmc_decode_mb(MpegEncContext *s) { XvMCMacroBlock *mv_block; struct xvmc_pix_fmt *render; int i, cbp, blocks_per_mb; const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; if (s->encoding) { av_log(s->avctx, AV_LOG_ERROR, "XVMC doesn't support encoding!!!\n"); ret...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
void ff_xvmc_decode_mb(MpegEncContext *s) { XvMCMacroBlock *mv_block; struct xvmc_pix_fmt *render; int i, cbp, blocks_per_mb; const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; if (s->encoding) { av_log(s->avctx, AV_LOG_ERROR, "XVMC doesn't support encoding!!!\n"); ret...
{ "code": [ " render = (struct xvmc_pix_fmt*)s->current_picture.f.data[2];" ], "line_no": [ 61 ] }
void FUNC_0(MpegEncContext *VAR_0) { XvMCMacroBlock *mv_block; struct xvmc_pix_fmt *VAR_1; int VAR_2, VAR_3, VAR_4; const int VAR_5 = VAR_0->mb_y * VAR_0->mb_stride + VAR_0->mb_x; if (VAR_0->encoding) { av_log(VAR_0->avctx, AV_LOG_ERROR, "XVMC doesn't support encoding!!!\n"); ...
[ "void FUNC_0(MpegEncContext *VAR_0)\n{", "XvMCMacroBlock *mv_block;", "struct xvmc_pix_fmt *VAR_1;", "int VAR_2, VAR_3, VAR_4;", "const int VAR_5 = VAR_0->mb_y * VAR_0->mb_stride + VAR_0->mb_x;", "if (VAR_0->encoding) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"XVMC doesn't support encoding!!!\\n\");", ...
[ 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, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 45 ], [ 55 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 73,...
10,469
static inline int mpeg2_fast_decode_block_non_intra(MpegEncContext *s, int16_t *block, int n) { int level, i, j, run; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = s->intra_scantable.permutated; const int qscale = s->qscale; ...
false
FFmpeg
7667afffb8dd54595ef2a959c385babd4c9c94cf
static inline int mpeg2_fast_decode_block_non_intra(MpegEncContext *s, int16_t *block, int n) { int level, i, j, run; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = s->intra_scantable.permutated; const int qscale = s->qscale; ...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = VAR_0->intra_scantable.permutated; const int VAR_7 = VAR_0->VAR_7; ...
[ "static inline int FUNC_0(MpegEncContext *VAR_0,\nint16_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "RLTable *rl = &ff_rl_mpeg1;", "uint8_t * const scantable = VAR_0->intra_scantable.permutated;", "const int VAR_7 = VAR_0->VAR_7;", "OPEN_READER(re, &VAR_0->gb);", "VAR_4 = -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 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 49 ], [ 51 ], [...
10,472
int ffio_close_null_buf(AVIOContext *s) { DynBuffer *d = s->opaque; int size; avio_flush(s); size = d->size; av_free(d); av_free(s); return size; }
false
FFmpeg
b12e4d3bb8df994f042ff1216fb8de2b967aab9e
int ffio_close_null_buf(AVIOContext *s) { DynBuffer *d = s->opaque; int size; avio_flush(s); size = d->size; av_free(d); av_free(s); return size; }
{ "code": [], "line_no": [] }
int FUNC_0(AVIOContext *VAR_0) { DynBuffer *d = VAR_0->opaque; int VAR_1; avio_flush(VAR_0); VAR_1 = d->VAR_1; av_free(d); av_free(VAR_0); return VAR_1; }
[ "int FUNC_0(AVIOContext *VAR_0)\n{", "DynBuffer *d = VAR_0->opaque;", "int VAR_1;", "avio_flush(VAR_0);", "VAR_1 = d->VAR_1;", "av_free(d);", "av_free(VAR_0);", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
10,473
static int initFilter(int16_t **outFilter, int32_t **filterPos, int *outFilterSize, int xInc, int srcW, int dstW, int filterAlign, int one, int flags, int cpu_flags, SwsVector *srcFilter, SwsVector *dstFilter, double param[2], i...
false
FFmpeg
e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6
static int initFilter(int16_t **outFilter, int32_t **filterPos, int *outFilterSize, int xInc, int srcW, int dstW, int filterAlign, int one, int flags, int cpu_flags, SwsVector *srcFilter, SwsVector *dstFilter, double param[2], i...
{ "code": [], "line_no": [] }
static int FUNC_0(int16_t **VAR_0, int32_t **VAR_1, int *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, SwsVector *VAR_10, SwsVector *VAR_11, double VAR_12[2], int VAR_13) { int VAR_22;...
[ "static int FUNC_0(int16_t **VAR_0, int32_t **VAR_1,\nint *VAR_2, int VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8, int VAR_9,\nSwsVector *VAR_10, SwsVector *VAR_11,\ndouble VAR_12[2], int VAR_13)\n{", "int VAR_22;", "int VAR_15;", "int VAR_16;", "int VAR_17;", "int64_t *filter = NULL;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 53 ], [ 55 ], [...
10,474
static void stereo_processing(PSContext *ps, INTFLOAT (*l)[32][2], INTFLOAT (*r)[32][2], int is34) { int e, b, k; INTFLOAT (*H11)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H11; INTFLOAT (*H12)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H12; INTFLOAT (*H21)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps-...
false
FFmpeg
623d217ed1ba168355b1887ef9ca02402b40eead
static void stereo_processing(PSContext *ps, INTFLOAT (*l)[32][2], INTFLOAT (*r)[32][2], int is34) { int e, b, k; INTFLOAT (*H11)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H11; INTFLOAT (*H12)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H12; INTFLOAT (*H21)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps-...
{ "code": [], "line_no": [] }
VAR_2staticVAR_2 VAR_2voidVAR_2 VAR_2stereo_processingVAR_2(VAR_2PSContextVAR_2 *VAR_2VAR_0VAR_2, VAR_2VAR_1VAR_2 (*VAR_2lVAR_2)[VAR_232VAR_2][VAR_22VAR_2], VAR_2VAR_1VAR_2 (*VAR_2rVAR_2)[VAR_232VAR_2][VAR_22VAR_2], VAR_2intVAR_2 VAR_2is34VAR_2) { VAR_2intVAR_2 VAR_2eVAR_2, VAR_2bVAR_2, VAR_2kVAR_2; VAR_2V...
[ "VAR_2staticVAR_2 VAR_2voidVAR_2 VAR_2stereo_processingVAR_2(VAR_2PSContextVAR_2 *VAR_2VAR_0VAR_2, VAR_2VAR_1VAR_2 (*VAR_2lVAR_2)[VAR_232VAR_2][VAR_22VAR_2], VAR_2VAR_1VAR_2 (*VAR_2rVAR_2)[VAR_232VAR_2][VAR_22VAR_2], VAR_2intVAR_2 VAR_2is34VAR_2)\n{", "VAR_2intVAR_2 VAR_2eVAR_2, VAR_2bVAR_2, VAR_2kVAR_2;", "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 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47...
10,475
int coroutine_fn bdrv_co_preadv(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; BdrvTrackedRequest req; uint64_t align = bs->request_alignment; uint8_t *head_buf = NULL; uint8_t *tail_buf = NULL; ...
false
qemu
a5b8dd2ce83208cd7d6eb4562339ecf5aae13574
int coroutine_fn bdrv_co_preadv(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; BdrvTrackedRequest req; uint64_t align = bs->request_alignment; uint8_t *head_buf = NULL; uint8_t *tail_buf = NULL; ...
{ "code": [], "line_no": [] }
int VAR_0 bdrv_co_preadv(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; BdrvTrackedRequest req; uint64_t align = bs->request_alignment; uint8_t *head_buf = NULL; uint8_t *tail_buf = NULL; QEMU...
[ "int VAR_0 bdrv_co_preadv(BlockDriverState *bs,\nint64_t offset, unsigned int bytes, QEMUIOVector *qiov,\nBdrvRequestFlags flags)\n{", "BlockDriver *drv = bs->drv;", "BdrvTrackedRequest req;", "uint64_t align = bs->request_alignment;", "uint8_t *head_buf = NULL;", "uint8_t *tail_buf = NULL;", "QEMUIOVec...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ...
10,476
static void vfio_add_kvm_msi_virq(VFIOMSIVector *vector, MSIMessage *msg, bool msix) { int virq; if ((msix && !VFIO_ALLOW_KVM_MSIX) || (!msix && !VFIO_ALLOW_KVM_MSI) || !msg) { return; } if (event_notifier_init(&vector->kvm_interrupt, 0)) { ...
false
qemu
46746dbaa8c2c421b9bda78193caad57d7fb1136
static void vfio_add_kvm_msi_virq(VFIOMSIVector *vector, MSIMessage *msg, bool msix) { int virq; if ((msix && !VFIO_ALLOW_KVM_MSIX) || (!msix && !VFIO_ALLOW_KVM_MSI) || !msg) { return; } if (event_notifier_init(&vector->kvm_interrupt, 0)) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(VFIOMSIVector *VAR_0, MSIMessage *VAR_1, bool VAR_2) { int VAR_3; if ((VAR_2 && !VFIO_ALLOW_KVM_MSIX) || (!VAR_2 && !VFIO_ALLOW_KVM_MSI) || !VAR_1) { return; } if (event_notifier_init(&VAR_0->kvm_interrupt, 0)) { r...
[ "static void FUNC_0(VFIOMSIVector *VAR_0, MSIMessage *VAR_1,\nbool VAR_2)\n{", "int VAR_3;", "if ((VAR_2 && !VFIO_ALLOW_KVM_MSIX) ||\n(!VAR_2 && !VFIO_ALLOW_KVM_MSI) || !VAR_1) {", "return;", "}", "if (event_notifier_init(&VAR_0->kvm_interrupt, 0)) {", "return;", "}", "VAR_3 = kvm_irqchip_add_msi_ro...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
10,477
void bios_linker_loader_add_pointer(BIOSLinker *linker, const char *dest_file, const char *src_file, void *pointer, uint8_t pointer_size) { BiosLinkerLoaderEntry entr...
false
qemu
4678124bb9bfb49e93b83f95c4d2feeb443ea38b
void bios_linker_loader_add_pointer(BIOSLinker *linker, const char *dest_file, const char *src_file, void *pointer, uint8_t pointer_size) { BiosLinkerLoaderEntry entr...
{ "code": [], "line_no": [] }
void FUNC_0(BIOSLinker *VAR_0, const char *VAR_1, const char *VAR_2, void *VAR_3, uint8_t VAR_4) { BiosLinkerLoaderEntry entry; const BiosLinkerFileEntry *VAR_5 ...
[ "void FUNC_0(BIOSLinker *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nvoid *VAR_3,\nuint8_t VAR_4)\n{", "BiosLinkerLoaderEntry entry;", "const BiosLinkerFileEntry *VAR_5 = bios_linker_find_file(VAR_0, VAR_1);", "ptrdiff_t offset = (gchar *)VAR_3 - VAR_5->blob->data;", "assert(offset >= 0);", "assert(of...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 49 ], [ 51 ] ]
10,479
yuv2yuvX_altivec_real(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, ...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
yuv2yuvX_altivec_real(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, ...
{ "code": [], "line_no": [] }
FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1, const int16_t **VAR_2, int VAR_3, const int16_t *VAR_4, const int16_t **VAR_5, const int16_t **VAR_6, int VAR_7, const int16_t **VAR_8, uint8_t *VAR_9, uint8...
[ "FUNC_0(SwsContext *VAR_0,\nconst int16_t *VAR_1, const int16_t **VAR_2,\nint VAR_3, const int16_t *VAR_4,\nconst int16_t **VAR_5, const int16_t **VAR_6,\nint VAR_7, const int16_t **VAR_8,\nuint8_t *VAR_9, uint8_t *VAR_10,\nuint8_t *VAR_11, uint8_t *VAR_12,\nint VAR_13, int VAR_14)\n{", "const vector signed int V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
10,481
static int fmod_init_out (HWVoiceOut *hw, audsettings_t *as) { int bits16, mode, channel; FMODVoiceOut *fmd = (FMODVoiceOut *) hw; audsettings_t obt_as = *as; mode = aud_to_fmodfmt (as->fmt, as->nchannels == 2 ? 1 : 0); fmd->fmod_sample = FSOUND_Sample_Alloc ( FSOUND_FREE, ...
false
qemu
1ea879e5580f63414693655fcf0328559cdce138
static int fmod_init_out (HWVoiceOut *hw, audsettings_t *as) { int bits16, mode, channel; FMODVoiceOut *fmd = (FMODVoiceOut *) hw; audsettings_t obt_as = *as; mode = aud_to_fmodfmt (as->fmt, as->nchannels == 2 ? 1 : 0); fmd->fmod_sample = FSOUND_Sample_Alloc ( FSOUND_FREE, ...
{ "code": [], "line_no": [] }
static int FUNC_0 (HWVoiceOut *VAR_0, audsettings_t *VAR_1) { int VAR_2, VAR_3, VAR_4; FMODVoiceOut *fmd = (FMODVoiceOut *) VAR_0; audsettings_t obt_as = *VAR_1; VAR_3 = aud_to_fmodfmt (VAR_1->fmt, VAR_1->nchannels == 2 ? 1 : 0); fmd->fmod_sample = FSOUND_Sample_Alloc ( FSOUND_FREE,...
[ "static int FUNC_0 (HWVoiceOut *VAR_0, audsettings_t *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "FMODVoiceOut *fmd = (FMODVoiceOut *) VAR_0;", "audsettings_t obt_as = *VAR_1;", "VAR_3 = aud_to_fmodfmt (VAR_1->fmt, VAR_1->nchannels == 2 ? 1 : 0);", "fmd->fmod_sample = FSOUND_Sample_Alloc (\nFSOUND_FREE,\ncon...
[ 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
10,482
void blk_dev_change_media_cb(BlockBackend *blk, bool load) { if (blk->dev_ops && blk->dev_ops->change_media_cb) { bool tray_was_closed = !blk_dev_is_tray_open(blk); blk->dev_ops->change_media_cb(blk->dev_opaque, load); if (tray_was_closed) { /* tray open */ q...
false
qemu
f1f57066573e832438cd87600310589fa9cee202
void blk_dev_change_media_cb(BlockBackend *blk, bool load) { if (blk->dev_ops && blk->dev_ops->change_media_cb) { bool tray_was_closed = !blk_dev_is_tray_open(blk); blk->dev_ops->change_media_cb(blk->dev_opaque, load); if (tray_was_closed) { qapi_event_send_...
{ "code": [], "line_no": [] }
void FUNC_0(BlockBackend *VAR_0, bool VAR_1) { if (VAR_0->dev_ops && VAR_0->dev_ops->change_media_cb) { bool tray_was_closed = !blk_dev_is_tray_open(VAR_0); VAR_0->dev_ops->change_media_cb(VAR_0->dev_opaque, VAR_1); if (tray_was_closed) { qapi_event_send_dev...
[ "void FUNC_0(BlockBackend *VAR_0, bool VAR_1)\n{", "if (VAR_0->dev_ops && VAR_0->dev_ops->change_media_cb) {", "bool tray_was_closed = !blk_dev_is_tray_open(VAR_0);", "VAR_0->dev_ops->change_media_cb(VAR_0->dev_opaque, VAR_1);", "if (tray_was_closed) {", "qapi_event_send_device_tray_moved(blk_name(VAR_0),...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ] ]
10,483
static void chr_read(void *opaque, const void *buf, size_t size) { VirtIORNG *vrng = opaque; size_t len; int offset; if (!is_guest_ready(vrng)) { return; } offset = 0; while (offset < size) { if (!pop_an_elem(vrng)) { break; } len ...
false
qemu
904d6f588063fb5ad2b61998acdf1e73fb465067
static void chr_read(void *opaque, const void *buf, size_t size) { VirtIORNG *vrng = opaque; size_t len; int offset; if (!is_guest_ready(vrng)) { return; } offset = 0; while (offset < size) { if (!pop_an_elem(vrng)) { break; } len ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const void *VAR_1, size_t VAR_2) { VirtIORNG *vrng = VAR_0; size_t len; int VAR_3; if (!is_guest_ready(vrng)) { return; } VAR_3 = 0; while (VAR_3 < VAR_2) { if (!pop_an_elem(vrng)) { break; } len = i...
[ "static void FUNC_0(void *VAR_0, const void *VAR_1, size_t VAR_2)\n{", "VirtIORNG *vrng = VAR_0;", "size_t len;", "int VAR_3;", "if (!is_guest_ready(vrng)) {", "return;", "}", "VAR_3 = 0;", "while (VAR_3 < VAR_2) {", "if (!pop_an_elem(vrng)) {", "break;", "}", "len = iov_from_buf(vrng->elem....
[ 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 59 ], [...
10,484
void cpu_loop(CPUX86State *env) { CPUState *cs = CPU(x86_env_get_cpu(env)); int trapnr; abi_ulong pc; target_siginfo_t info; for(;;) { cpu_exec_start(cs); trapnr = cpu_x86_exec(cs); cpu_exec_end(cs); switch(trapnr) { case 0x80: /* lin...
false
qemu
0284b03ba3f47da53b6b46293a3d586c08829f7e
void cpu_loop(CPUX86State *env) { CPUState *cs = CPU(x86_env_get_cpu(env)); int trapnr; abi_ulong pc; target_siginfo_t info; for(;;) { cpu_exec_start(cs); trapnr = cpu_x86_exec(cs); cpu_exec_end(cs); switch(trapnr) { case 0x80: ...
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0) { CPUState *cs = CPU(x86_env_get_cpu(VAR_0)); int VAR_1; abi_ulong pc; target_siginfo_t info; for(;;) { cpu_exec_start(cs); VAR_1 = cpu_x86_exec(cs); cpu_exec_end(cs); switch(VAR_1) { case 0x80: ...
[ "void FUNC_0(CPUX86State *VAR_0)\n{", "CPUState *cs = CPU(x86_env_get_cpu(VAR_0));", "int VAR_1;", "abi_ulong pc;", "target_siginfo_t info;", "for(;;) {", "cpu_exec_start(cs);", "VAR_1 = cpu_x86_exec(cs);", "cpu_exec_end(cs);", "switch(VAR_1) {", "case 0x80:\nVAR_0->regs[R_EAX] = do_syscall(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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 29, 31, 33, 35, 37, 39, 41, 43, 45 ], [ 47 ], [ 49, 51, 55, 57, 59, 61,...
10,486
void kqemu_flush(CPUState *env, int global) { LOG_INT("kqemu_flush:\n"); nb_pages_to_flush = KQEMU_FLUSH_ALL; }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
void kqemu_flush(CPUState *env, int global) { LOG_INT("kqemu_flush:\n"); nb_pages_to_flush = KQEMU_FLUSH_ALL; }
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, int VAR_1) { LOG_INT("FUNC_0:\n"); nb_pages_to_flush = KQEMU_FLUSH_ALL; }
[ "void FUNC_0(CPUState *VAR_0, int VAR_1)\n{", "LOG_INT(\"FUNC_0:\\n\");", "nb_pages_to_flush = KQEMU_FLUSH_ALL;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
10,487
static inline void gen_evmergelohi(DisasContext *ctx) { if (unlikely(!ctx->spe_enabled)) { gen_exception(ctx, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) TCGv t0 = tcg_temp_new(); TCGv t1 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gpr[rB(ctx->opcode)], 32); tc...
false
qemu
27a69bb088bee6d4efea254659422fb9c751b3c7
static inline void gen_evmergelohi(DisasContext *ctx) { if (unlikely(!ctx->spe_enabled)) { gen_exception(ctx, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) TCGv t0 = tcg_temp_new(); TCGv t1 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gpr[rB(ctx->opcode)], 32); tc...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0) { if (unlikely(!VAR_0->spe_enabled)) { gen_exception(VAR_0, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) TCGv t0 = tcg_temp_new(); TCGv t1 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gpr[rB(VAR_0->opcode)], 32); tcg...
[ "static inline void FUNC_0(DisasContext *VAR_0)\n{", "if (unlikely(!VAR_0->spe_enabled)) {", "gen_exception(VAR_0, POWERPC_EXCP_APU);", "return;", "}", "#if defined(TARGET_PPC64)\nTCGv t0 = tcg_temp_new();", "TCGv t1 = tcg_temp_new();", "tcg_gen_shri_tl(t0, cpu_gpr[rB(VAR_0->opcode)], 32);", "tcg_ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
10,488
gen_intermediate_code_internal(MIPSCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUMIPSState *env = &cpu->env; DisasContext ctx; target_ulong pc_start; uint16_t *gen_opc_end; CPUBreakpoint *bp; int j, lj = -1; int num...
false
qemu
342368aff7d61a32b5853068b92039a2b15507c5
gen_intermediate_code_internal(MIPSCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUMIPSState *env = &cpu->env; DisasContext ctx; target_ulong pc_start; uint16_t *gen_opc_end; CPUBreakpoint *bp; int j, lj = -1; int num...
{ "code": [], "line_no": [] }
FUNC_0(MIPSCPU *VAR_0, TranslationBlock *VAR_1, bool VAR_2) { CPUState *cs = CPU(VAR_0); CPUMIPSState *env = &VAR_0->env; DisasContext ctx; target_ulong pc_start; uint16_t *gen_opc_end; CPUBreakpoint *bp; int VAR_3, VAR_4 = -1; int VAR_5; int...
[ "FUNC_0(MIPSCPU *VAR_0, TranslationBlock *VAR_1,\nbool VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "CPUMIPSState *env = &VAR_0->env;", "DisasContext ctx;", "target_ulong pc_start;", "uint16_t *gen_opc_end;", "CPUBreakpoint *bp;", "int VAR_3, VAR_4 = -1;", "int VAR_5;", "int VAR_6;", "int 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
10,489
static inline void gen_movs(DisasContext *s, int ot) { gen_string_movl_A0_ESI(s); gen_op_ld_T0_A0(ot + s->mem_index); gen_string_movl_A0_EDI(s); gen_op_st_T0_A0(ot + s->mem_index); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_ESI_T0(); ...
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static inline void gen_movs(DisasContext *s, int ot) { gen_string_movl_A0_ESI(s); gen_op_ld_T0_A0(ot + s->mem_index); gen_string_movl_A0_EDI(s); gen_op_st_T0_A0(ot + s->mem_index); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_ESI_T0(); ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { gen_string_movl_A0_ESI(VAR_0); gen_op_ld_T0_A0(VAR_1 + VAR_0->mem_index); gen_string_movl_A0_EDI(VAR_0); gen_op_st_T0_A0(VAR_1 + VAR_0->mem_index); gen_op_movl_T0_Dshift[VAR_1](); #ifdef TARGET_X86_64 if (VAR_0->aflag == 2) { ...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "gen_string_movl_A0_ESI(VAR_0);", "gen_op_ld_T0_A0(VAR_1 + VAR_0->mem_index);", "gen_string_movl_A0_EDI(VAR_0);", "gen_op_st_T0_A0(VAR_1 + VAR_0->mem_index);", "gen_op_movl_T0_Dshift[VAR_1]();", "#ifdef TARGET_X86_64\nif (VAR_0->aflag == 2)...
[ 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 ] ]
10,490
static int udp_read(URLContext *h, uint8_t *buf, int size) { UDPContext *s = h->priv_data; int ret; int avail; #if HAVE_PTHREADS if (s->fifo) { pthread_mutex_lock(&s->mutex); do { avail = av_fifo_size(s->fifo); if (avail) { // >=size) { ...
false
FFmpeg
463705bd1c644bbdded7bcf9f619bcb4203d562f
static int udp_read(URLContext *h, uint8_t *buf, int size) { UDPContext *s = h->priv_data; int ret; int avail; #if HAVE_PTHREADS if (s->fifo) { pthread_mutex_lock(&s->mutex); do { avail = av_fifo_size(s->fifo); if (avail) { uint8_t tm...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2) { UDPContext *s = VAR_0->priv_data; int VAR_3; int VAR_4; #if HAVE_PTHREADS if (s->fifo) { pthread_mutex_lock(&s->mutex); do { VAR_4 = av_fifo_size(s->fifo); if (VAR_4) { ...
[ "static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "UDPContext *s = VAR_0->priv_data;", "int VAR_3;", "int VAR_4;", "#if HAVE_PTHREADS\nif (s->fifo) {", "pthread_mutex_lock(&s->mutex);", "do {", "VAR_4 = av_fifo_size(s->fifo);", "if (VAR_4) {", "uint8_t tmp[4];", "pthread_mute...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
10,491
static int virtio_pci_vector_unmask(PCIDevice *dev, unsigned vector, MSIMessage msg) { VirtIOPCIProxy *proxy = container_of(dev, VirtIOPCIProxy, pci_dev); VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); VirtQueue *vq = virtio_vector_first_queue(vdev, vector)...
false
qemu
6652d0811c9463fbfb2d2d1cb2ec03f388145c5f
static int virtio_pci_vector_unmask(PCIDevice *dev, unsigned vector, MSIMessage msg) { VirtIOPCIProxy *proxy = container_of(dev, VirtIOPCIProxy, pci_dev); VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); VirtQueue *vq = virtio_vector_first_queue(vdev, vector)...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0, unsigned VAR_1, MSIMessage VAR_2) { 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...
[ "static int FUNC_0(PCIDevice *VAR_0, unsigned VAR_1,\nMSIMessage VAR_2)\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_3, VAR_4, VAR_5 = 0;", "whil...
[ 0, 0, 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 ], [ 43 ], [ 47, 49 ...
10,492
static void virtio_ioport_write(void *opaque, uint32_t addr, uint32_t val) { VirtIOPCIProxy *proxy = opaque; VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); hwaddr pa; switch (addr) { case VIRTIO_PCI_GUEST_FEATURES: /* Guest does not negotiate properly? We have to assume n...
false
qemu
4d43d3f3c8147ade184df9a1e9e82826edd39e19
static void virtio_ioport_write(void *opaque, uint32_t addr, uint32_t val) { VirtIOPCIProxy *proxy = opaque; VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); hwaddr pa; switch (addr) { case VIRTIO_PCI_GUEST_FEATURES: if (val & (1 << VIRTIO_F_BAD_FEATURE)) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { VirtIOPCIProxy *proxy = VAR_0; VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); hwaddr pa; switch (VAR_1) { case VIRTIO_PCI_GUEST_FEATURES: if (VAR_2 & (1 << VIRTIO_F_BAD_FEATURE)) { VAR...
[ "static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "VirtIOPCIProxy *proxy = VAR_0;", "VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);", "hwaddr pa;", "switch (VAR_1) {", "case VIRTIO_PCI_GUEST_FEATURES:\nif (VAR_2 & (1 << VIRTIO_F_BAD_FEATURE)) {", "VAR_2 = virtio_bus_get_vde...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
10,493
void tcg_register_helper(void *func, const char *name) { TCGContext *s = &tcg_ctx; GHashTable *table = s->helpers; if (table == NULL) { /* Use g_direct_hash/equal for direct pointer comparisons on func. */ table = g_hash_table_new(NULL, NULL); s->helpers = table; } ...
false
qemu
84fd9dd3f78ced9d41e1160d43862bb620cb462a
void tcg_register_helper(void *func, const char *name) { TCGContext *s = &tcg_ctx; GHashTable *table = s->helpers; if (table == NULL) { table = g_hash_table_new(NULL, NULL); s->helpers = table; } g_hash_table_insert(table, (gpointer)func, (gpointer)name); }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, const char *VAR_1) { TCGContext *s = &tcg_ctx; GHashTable *table = s->helpers; if (table == NULL) { table = g_hash_table_new(NULL, NULL); s->helpers = table; } g_hash_table_insert(table, (gpointer)VAR_0, (gpointer)VAR_1); }
[ "void FUNC_0(void *VAR_0, const char *VAR_1)\n{", "TCGContext *s = &tcg_ctx;", "GHashTable *table = s->helpers;", "if (table == NULL) {", "table = g_hash_table_new(NULL, NULL);", "s->helpers = table;", "}", "g_hash_table_insert(table, (gpointer)VAR_0, (gpointer)VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
10,495
static void nvdimm_init(Object *obj) { object_property_add(obj, "label-size", "int", nvdimm_get_label_size, nvdimm_set_label_size, NULL, NULL, NULL); }
false
qemu
da6789c27c2ea71765cfab04bad9a42b5426f0bd
static void nvdimm_init(Object *obj) { object_property_add(obj, "label-size", "int", nvdimm_get_label_size, nvdimm_set_label_size, NULL, NULL, NULL); }
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { object_property_add(VAR_0, "label-size", "int", nvdimm_get_label_size, nvdimm_set_label_size, NULL, NULL, NULL); }
[ "static void FUNC_0(Object *VAR_0)\n{", "object_property_add(VAR_0, \"label-size\", \"int\",\nnvdimm_get_label_size, nvdimm_set_label_size, NULL,\nNULL, NULL);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11 ] ]
10,496
char *g_strdup_vprintf(const char *format, va_list ap) { char ch, *s; size_t len; __coverity_string_null_sink__(format); __coverity_string_size_sink__(format); ch = *format; ch = *(char *)ap; s = __coverity_alloc_nosize__(); __coverity_writeall__(s); __coverity_mark_a...
false
qemu
7ad4c7200111d20eb97eed4f46b6026e3f0b0eef
char *g_strdup_vprintf(const char *format, va_list ap) { char ch, *s; size_t len; __coverity_string_null_sink__(format); __coverity_string_size_sink__(format); ch = *format; ch = *(char *)ap; s = __coverity_alloc_nosize__(); __coverity_writeall__(s); __coverity_mark_a...
{ "code": [], "line_no": [] }
char *FUNC_0(const char *VAR_0, va_list VAR_1) { char VAR_2, *VAR_3; size_t len; __coverity_string_null_sink__(VAR_0); __coverity_string_size_sink__(VAR_0); VAR_2 = *VAR_0; VAR_2 = *(char *)VAR_1; VAR_3 = __coverity_alloc_nosize__(); __coverity_writeall__(VAR_3); __co...
[ "char *FUNC_0(const char *VAR_0, va_list VAR_1)\n{", "char VAR_2, *VAR_3;", "size_t len;", "__coverity_string_null_sink__(VAR_0);", "__coverity_string_size_sink__(VAR_0);", "VAR_2 = *VAR_0;", "VAR_2 = *(char *)VAR_1;", "VAR_3 = __coverity_alloc_nosize__();", "__coverity_writeall__(VAR_3);", "__cov...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
10,497
static void randomize_loopfilter_buffers(int bidx, int lineoff, int str, int bit_depth, int dir, int* E, int* F, int* H, int* I, uint8_t *buf0, uint8_t *buf1) { uint32_t mask = (1 << bit_d...
false
FFmpeg
4e03f0ab08e27537512107cba6e357d34284a35f
static void randomize_loopfilter_buffers(int bidx, int lineoff, int str, int bit_depth, int dir, int* E, int* F, int* H, int* I, uint8_t *buf0, uint8_t *buf1) { uint32_t mask = (1 << bit_d...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int* VAR_5, int* VAR_6, int* VAR_7, int* VAR_8, uint8_t *VAR_9, uint8_t *VAR_10) { uint32_t mask = (1 << VAR_3) - ...
[ "static void FUNC_0(int VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint* VAR_5, int* VAR_6, int* VAR_7, int* VAR_8,\nuint8_t *VAR_9, uint8_t *VAR_10)\n{", "uint32_t mask = (1 << VAR_3) - 1;", "int VAR_11 = VAR_4 ? VAR_1 : VAR_1 * 16;", "int VAR_12 = VAR_4 ? 1 : 16;", "int VAR_13 = VAR_4 ? VAR_2 : 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
10,499
static av_cold int bmp_encode_close(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int bmp_encode_close(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "av_frame_free(&avctx->coded_frame);", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
10,500
static void pci_grackle_class_init(ObjectClass *klass, void *data) { SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass); k->init = pci_grackle_init_device; dc->no_user = 1; }
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void pci_grackle_class_init(ObjectClass *klass, void *data) { SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass); k->init = pci_grackle_init_device; dc->no_user = 1; }
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); k->init = pci_grackle_init_device; dc->no_user = 1; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "k->init = pci_grackle_init_device;", "dc->no_user = 1;", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
10,503
static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; DNXHDContext *ctx = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *picture = data; ...
true
FFmpeg
b8b8e82ea14016b2cb04b49ecea57f836e6ee7f8
static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; DNXHDContext *ctx = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *picture = data; ...
{ "code": [ " int ret;" ], "line_no": [ 19 ] }
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; DNXHDContext *ctx = VAR_0->priv_data; ThreadFrame frame = { .f = VAR_1 }; AVFrame *picture = VAR_1; int VAR_6 =...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "DNXHDContext *ctx = VAR_0->priv_data;", "ThreadFrame frame = { .f = VAR_1 };", "AVFrame *picture = VAR_1;", "int VAR_6 = 1;", "int VAR_7;", "...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27, 29, 31 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ...
10,505
static void vtd_realize(DeviceState *dev, Error **errp) { PCMachineState *pcms = PC_MACHINE(qdev_get_machine()); PCIBus *bus = pcms->bus; IntelIOMMUState *s = INTEL_IOMMU_DEVICE(dev); X86IOMMUState *x86_iommu = X86_IOMMU_DEVICE(dev); VTD_DPRINTF(GENERAL, ""); x86_iommu->type = TYPE_INTE...
true
qemu
ef0e8fc768a561dd13a86420b3268f6f3d5d0621
static void vtd_realize(DeviceState *dev, Error **errp) { PCMachineState *pcms = PC_MACHINE(qdev_get_machine()); PCIBus *bus = pcms->bus; IntelIOMMUState *s = INTEL_IOMMU_DEVICE(dev); X86IOMMUState *x86_iommu = X86_IOMMU_DEVICE(dev); VTD_DPRINTF(GENERAL, ""); x86_iommu->type = TYPE_INTE...
{ "code": [ " PCMachineState *pcms = PC_MACHINE(qdev_get_machine());", " PCIBus *bus = pcms->bus;" ], "line_no": [ 5, 7 ] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { PCMachineState *pcms = PC_MACHINE(qdev_get_machine()); PCIBus *bus = pcms->bus; IntelIOMMUState *s = INTEL_IOMMU_DEVICE(VAR_0); X86IOMMUState *x86_iommu = X86_IOMMU_DEVICE(VAR_0); VTD_DPRINTF(GENERAL, ""); x86_iommu->type = TYPE_IN...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "PCMachineState *pcms = PC_MACHINE(qdev_get_machine());", "PCIBus *bus = pcms->bus;", "IntelIOMMUState *s = INTEL_IOMMU_DEVICE(VAR_0);", "X86IOMMUState *x86_iommu = X86_IOMMU_DEVICE(VAR_0);", "VTD_DPRINTF(GENERAL, \"\");", "x86_iommu->type = TY...
[ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [...
10,506
static inline void menelaus_rtc_start(struct menelaus_s *s) { s->rtc.next =+ qemu_get_clock(rt_clock); qemu_mod_timer(s->rtc.hz, s->rtc.next); }
true
qemu
b0f74c87a1dbd6b0c5e4de7f1c5cb40197e3fbe9
static inline void menelaus_rtc_start(struct menelaus_s *s) { s->rtc.next =+ qemu_get_clock(rt_clock); qemu_mod_timer(s->rtc.hz, s->rtc.next); }
{ "code": [ " qemu_mod_timer(s->rtc.hz, s->rtc.next);", " qemu_mod_timer(s->rtc.hz, s->rtc.next);" ], "line_no": [ 7, 7 ] }
static inline void FUNC_0(struct menelaus_s *VAR_0) { VAR_0->rtc.next =+ qemu_get_clock(rt_clock); qemu_mod_timer(VAR_0->rtc.hz, VAR_0->rtc.next); }
[ "static inline void FUNC_0(struct menelaus_s *VAR_0)\n{", "VAR_0->rtc.next =+ qemu_get_clock(rt_clock);", "qemu_mod_timer(VAR_0->rtc.hz, VAR_0->rtc.next);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
10,507
static int oss_ctl_out (HWVoiceOut *hw, int cmd, ...) { int trig; OSSVoiceOut *oss = (OSSVoiceOut *) hw; switch (cmd) { case VOICE_ENABLE: { va_list ap; int poll_mode; va_start (ap, cmd); poll_mode = va_arg (ap, int); va_...
true
qemu
b027a538c6790bcfc93ef7f4819fe3e581445959
static int oss_ctl_out (HWVoiceOut *hw, int cmd, ...) { int trig; OSSVoiceOut *oss = (OSSVoiceOut *) hw; switch (cmd) { case VOICE_ENABLE: { va_list ap; int poll_mode; va_start (ap, cmd); poll_mode = va_arg (ap, int); va_...
{ "code": [ " if (poll_mode && oss_poll_out (hw)) {" ], "line_no": [ 33 ] }
static int FUNC_0 (HWVoiceOut *VAR_0, int VAR_1, ...) { int VAR_2; OSSVoiceOut *oss = (OSSVoiceOut *) VAR_0; switch (VAR_1) { case VOICE_ENABLE: { va_list ap; int VAR_3; va_start (ap, VAR_1); VAR_3 = va_arg (ap, int); va_...
[ "static int FUNC_0 (HWVoiceOut *VAR_0, int VAR_1, ...)\n{", "int VAR_2;", "OSSVoiceOut *oss = (OSSVoiceOut *) VAR_0;", "switch (VAR_1) {", "case VOICE_ENABLE:\n{", "va_list ap;", "int VAR_3;", "va_start (ap, VAR_1);", "VAR_3 = va_arg (ap, int);", "va_end (ap);", "ldebug (\"enabling voice\\n\");"...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], ...
10,508
void op_ddiv (void) { if (T1 != 0) { env->LO = (int64_t)T0 / (int64_t)T1; env->HI = (int64_t)T0 % (int64_t)T1; } RETURN(); }
true
qemu
80c27194a7be757ef5a9cec978d1d8faaa4cee81
void op_ddiv (void) { if (T1 != 0) { env->LO = (int64_t)T0 / (int64_t)T1; env->HI = (int64_t)T0 % (int64_t)T1; } RETURN(); }
{ "code": [ "void op_ddiv (void)", " if (T1 != 0) {", " env->LO = (int64_t)T0 / (int64_t)T1;", " env->HI = (int64_t)T0 % (int64_t)T1;", " RETURN();" ], "line_no": [ 1, 5, 7, 9, 13 ] }
void FUNC_0 (void) { if (T1 != 0) { env->LO = (int64_t)T0 / (int64_t)T1; env->HI = (int64_t)T0 % (int64_t)T1; } RETURN(); }
[ "void FUNC_0 (void)\n{", "if (T1 != 0) {", "env->LO = (int64_t)T0 / (int64_t)T1;", "env->HI = (int64_t)T0 % (int64_t)T1;", "}", "RETURN();", "}" ]
[ 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
10,509
static void decompress_data_with_multi_threads(QEMUFile *f, void *host, int len) { int idx, thread_count; thread_count = migrate_decompress_threads(); while (true) { for (idx = 0; idx < thread_count; idx++) { if (!decomp_param[idx]....
true
qemu
73a8912b8aeed1c992e3f9cb4880e9d1edb935de
static void decompress_data_with_multi_threads(QEMUFile *f, void *host, int len) { int idx, thread_count; thread_count = migrate_decompress_threads(); while (true) { for (idx = 0; idx < thread_count; idx++) { if (!decomp_param[idx]....
{ "code": [ " if (!decomp_param[idx].start) {" ], "line_no": [ 17 ] }
static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { int VAR_3, VAR_4; VAR_4 = migrate_decompress_threads(); while (true) { for (VAR_3 = 0; VAR_3 < VAR_4; VAR_3++) { if (!decomp_param[VAR_3].start) { qemu_g...
[ "static void FUNC_0(QEMUFile *VAR_0,\nvoid *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4;", "VAR_4 = migrate_decompress_threads();", "while (true) {", "for (VAR_3 = 0; VAR_3 < VAR_4; VAR_3++) {", "if (!decomp_param[VAR_3].start) {", "qemu_get_buffer(VAR_0, decomp_param[VAR_3].compbuf, VAR_2);", "decomp_pa...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
10,510
static int config_input(AVFilterLink *link) { AVFilterContext *ctx = link->dst; CropContext *s = ctx->priv; const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(link->format); int ret; const char *expr; double res; s->var_values[VAR_E] = M_E; s->var_values[VAR_PHI] =...
true
FFmpeg
6592cd22a2307dbbeb621c7499ba81961e6face8
static int config_input(AVFilterLink *link) { AVFilterContext *ctx = link->dst; CropContext *s = ctx->priv; const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(link->format); int ret; const char *expr; double res; s->var_values[VAR_E] = M_E; s->var_values[VAR_PHI] =...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0) { AVFilterContext *ctx = VAR_0->dst; CropContext *s = ctx->priv; const AVPixFmtDescriptor *VAR_1 = av_pix_fmt_desc_get(VAR_0->format); int VAR_2; const char *VAR_3; double VAR_4; s->var_values[VAR_E] = M_E; s->var_values[VAR_PHI] = ...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "AVFilterContext *ctx = VAR_0->dst;", "CropContext *s = ctx->priv;", "const AVPixFmtDescriptor *VAR_1 = av_pix_fmt_desc_get(VAR_0->format);", "int VAR_2;", "const char *VAR_3;", "double VAR_4;", "s->var_values[VAR_E] = M_E;", "s->var_values[VAR_PHI] ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ...
10,511
int av_opt_set_dict(void *obj, AVDictionary **options) { AVDictionaryEntry *t = NULL; AVDictionary *tmp = NULL; int ret = 0; while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) { ret = av_opt_set(obj, t->key, t->value, 0); if (ret == AVERROR_OPTION_NOT_FOUND) ...
true
FFmpeg
d9a3501c33a1f88350c935785dbf5435e9ffabe6
int av_opt_set_dict(void *obj, AVDictionary **options) { AVDictionaryEntry *t = NULL; AVDictionary *tmp = NULL; int ret = 0; while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) { ret = av_opt_set(obj, t->key, t->value, 0); if (ret == AVERROR_OPTION_NOT_FOUND) ...
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, AVDictionary **VAR_1) { AVDictionaryEntry *t = NULL; AVDictionary *tmp = NULL; int VAR_2 = 0; while ((t = av_dict_get(*VAR_1, "", t, AV_DICT_IGNORE_SUFFIX))) { VAR_2 = av_opt_set(VAR_0, t->key, t->value, 0); if (VAR_2 == AVERROR_OPTION_NOT_FOUND) av...
[ "int FUNC_0(void *VAR_0, AVDictionary **VAR_1)\n{", "AVDictionaryEntry *t = NULL;", "AVDictionary *tmp = NULL;", "int VAR_2 = 0;", "while ((t = av_dict_get(*VAR_1, \"\", t, AV_DICT_IGNORE_SUFFIX))) {", "VAR_2 = av_opt_set(VAR_0, t->key, t->value, 0);", "if (VAR_2 == AVERROR_OPTION_NOT_FOUND)\nav_dict...
[ 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 ] ]
10,512
static av_cold int mdct_init(AVCodecContext *avctx, AC3MDCTContext *mdct, int nbits) { int i, n, n4, ret; n = 1 << nbits; n4 = n >> 2; mdct->nbits = nbits; ret = fft_init(avctx, mdct, nbits - 2); if (ret) return ret; mdct->window = ff_a...
false
FFmpeg
79997def65fd2313b48a5f3c3a884c6149ae9b5d
static av_cold int mdct_init(AVCodecContext *avctx, AC3MDCTContext *mdct, int nbits) { int i, n, n4, ret; n = 1 << nbits; n4 = n >> 2; mdct->nbits = nbits; ret = fft_init(avctx, mdct, nbits - 2); if (ret) return ret; mdct->window = ff_a...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx, AC3MDCTContext *mdct, int nbits) { int VAR_0, VAR_1, VAR_2, VAR_3; VAR_1 = 1 << nbits; VAR_2 = VAR_1 >> 2; mdct->nbits = nbits; VAR_3 = fft_init(avctx, mdct, nbits - 2); if (VAR_3) return VAR_3;...
[ "static av_cold int FUNC_0(AVCodecContext *avctx, AC3MDCTContext *mdct,\nint nbits)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3;", "VAR_1 = 1 << nbits;", "VAR_2 = VAR_1 >> 2;", "mdct->nbits = nbits;", "VAR_3 = fft_init(avctx, mdct, nbits - 2);", "if (VAR_3)\nreturn VAR_3;", "mdct->window = ff_ac3_window;", ...
[ 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 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57...
10,514
static av_cold int vaapi_encode_h264_init_internal(AVCodecContext *avctx) { static const VAConfigAttrib default_config_attributes[] = { { .type = VAConfigAttribRTFormat, .value = VA_RT_FORMAT_YUV420 }, { .type = VAConfigAttribEncPackedHeaders, .value = (VA_ENC_PACKED_HEAD...
false
FFmpeg
80a5d05108cb218e8cd2e25c6621a3bfef0a832e
static av_cold int vaapi_encode_h264_init_internal(AVCodecContext *avctx) { static const VAConfigAttrib default_config_attributes[] = { { .type = VAConfigAttribRTFormat, .value = VA_RT_FORMAT_YUV420 }, { .type = VAConfigAttribEncPackedHeaders, .value = (VA_ENC_PACKED_HEAD...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { static const VAConfigAttrib VAR_0[] = { { .type = VAConfigAttribRTFormat, .value = VA_RT_FORMAT_YUV420 }, { .type = VAConfigAttribEncPackedHeaders, .value = (VA_ENC_PACKED_HEADER_SEQUENCE | VA_ENC_PAC...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "static const VAConfigAttrib VAR_0[] = {", "{ .type = VAConfigAttribRTFormat,", ".value = VA_RT_FORMAT_YUV420 },", "{ .type = VAConfigAttribEncPackedHeaders,", ".value = (VA_ENC_PACKED_HEADER_SEQUENCE |\nVA_ENC_PACKED_HEADER_SLICE) },", "};", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
10,515
static void do_video_out(AVFormatContext *s, OutputStream *ost, AVFrame *next_picture, double sync_ipts) { int ret, format_video_sync; AVPacket pkt; AVCodecContext *enc = ost->enc_ctx; AVCodecContext *mux_enc = ost->st->codec; ...
true
FFmpeg
93db2708d3b0bcc1f1d87d23ae8adbedd8ea6660
static void do_video_out(AVFormatContext *s, OutputStream *ost, AVFrame *next_picture, double sync_ipts) { int ret, format_video_sync; AVPacket pkt; AVCodecContext *enc = ost->enc_ctx; AVCodecContext *mux_enc = ost->st->codec; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, OutputStream *VAR_1, AVFrame *VAR_2, double VAR_3) { int VAR_4, VAR_5; AVPacket pkt; AVCodecContext *enc = VAR_1->enc_ctx; AVCodecContext *mux_enc = VAR_1->st->codec; int VAR_6, VAR_...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nOutputStream *VAR_1,\nAVFrame *VAR_2,\ndouble VAR_3)\n{", "int VAR_4, VAR_5;", "AVPacket pkt;", "AVCodecContext *enc = VAR_1->enc_ctx;", "AVCodecContext *mux_enc = VAR_1->st->codec;", "int VAR_6, VAR_7, VAR_8;", "double VAR_9, VAR_10;", "double VAR_11 = 0;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3, 4, 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16, 17 ], [ 18, 19, 20 ], [ 21, 22 ], [ 23, 24, 25, 26, ...
10,516
static int dmg_read_mish_block(BDRVDMGState *s, DmgHeaderState *ds, uint8_t *buffer, uint32_t count) { uint32_t type, i; int ret; size_t new_size; uint32_t chunk_count; int64_t offset = 0; type = buff_read_uint32(buffer, offset); /* skip data that is...
true
qemu
c6d34865fa02463cf34634f45369ebcc725b101b
static int dmg_read_mish_block(BDRVDMGState *s, DmgHeaderState *ds, uint8_t *buffer, uint32_t count) { uint32_t type, i; int ret; size_t new_size; uint32_t chunk_count; int64_t offset = 0; type = buff_read_uint32(buffer, offset); if (type != 0x...
{ "code": [ " offset += 4;", " offset += 200;", " ds->last_in_offset = s->offsets[i - 1] + s->lengths[i - 1];", " s->offsets[i] += ds->last_in_offset;" ], "line_no": [ 33, 35, 67, 121 ] }
static int FUNC_0(BDRVDMGState *VAR_0, DmgHeaderState *VAR_1, uint8_t *VAR_2, uint32_t VAR_3) { uint32_t type, i; int VAR_4; size_t new_size; uint32_t chunk_count; int64_t offset = 0; type = buff_read_uint32(VAR_2, offset); if (type != 0x6d6973...
[ "static int FUNC_0(BDRVDMGState *VAR_0, DmgHeaderState *VAR_1,\nuint8_t *VAR_2, uint32_t VAR_3)\n{", "uint32_t type, i;", "int VAR_4;", "size_t new_size;", "uint32_t chunk_count;", "int64_t offset = 0;", "type = buff_read_uint32(VAR_2, offset);", "if (type != 0x6d697368 || VAR_3 < 244) {", "return 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
10,517
static int png_decode_idat(PNGDecContext *s, int length) { int ret; s->zstream.avail_in = FFMIN(length, bytestream2_get_bytes_left(&s->gb)); s->zstream.next_in = (unsigned char *)s->gb.buffer; bytestream2_skip(&s->gb, length); /* decode one line if possible */ while (s->zstream.avail_i...
true
FFmpeg
478f1c3d5e5463a284ea7efecfc62d47ba3be11a
static int png_decode_idat(PNGDecContext *s, int length) { int ret; s->zstream.avail_in = FFMIN(length, bytestream2_get_bytes_left(&s->gb)); s->zstream.next_in = (unsigned char *)s->gb.buffer; bytestream2_skip(&s->gb, length); while (s->zstream.avail_in > 0) { ret = inflate(&...
{ "code": [ " if (!(s->state & PNG_ALLIMAGE)) {" ], "line_no": [ 31 ] }
static int FUNC_0(PNGDecContext *VAR_0, int VAR_1) { int VAR_2; VAR_0->zstream.avail_in = FFMIN(VAR_1, bytestream2_get_bytes_left(&VAR_0->gb)); VAR_0->zstream.next_in = (unsigned char *)VAR_0->gb.buffer; bytestream2_skip(&VAR_0->gb, VAR_1); while (VAR_0->zstream.avail_in > 0) { ...
[ "static int FUNC_0(PNGDecContext *VAR_0, int VAR_1)\n{", "int VAR_2;", "VAR_0->zstream.avail_in = FFMIN(VAR_1, bytestream2_get_bytes_left(&VAR_0->gb));", "VAR_0->zstream.next_in = (unsigned char *)VAR_0->gb.buffer;", "bytestream2_skip(&VAR_0->gb, VAR_1);", "while (VAR_0->zstream.avail_in > 0) {", "VAR_...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45,...
10,518
FWCfgState *fw_cfg_init_io_dma(uint32_t iobase, uint32_t dma_iobase, AddressSpace *dma_as) { DeviceState *dev; SysBusDevice *sbd; FWCfgIoState *ios; FWCfgState *s; bool dma_requested = dma_iobase && dma_as; dev = qdev_create(NULL, TYPE_FW_CFG_IO); i...
true
qemu
38f3adc34de83bf75d2023831dc520d32568a2d9
FWCfgState *fw_cfg_init_io_dma(uint32_t iobase, uint32_t dma_iobase, AddressSpace *dma_as) { DeviceState *dev; SysBusDevice *sbd; FWCfgIoState *ios; FWCfgState *s; bool dma_requested = dma_iobase && dma_as; dev = qdev_create(NULL, TYPE_FW_CFG_IO); i...
{ "code": [ " fw_cfg_init1(dev);", " fw_cfg_init1(dev);" ], "line_no": [ 29, 29 ] }
FWCfgState *FUNC_0(uint32_t iobase, uint32_t dma_iobase, AddressSpace *dma_as) { DeviceState *dev; SysBusDevice *sbd; FWCfgIoState *ios; FWCfgState *s; bool dma_requested = dma_iobase && dma_as; dev = qdev_create(NULL, TYPE_FW_CFG_IO); if (!dma_requ...
[ "FWCfgState *FUNC_0(uint32_t iobase, uint32_t dma_iobase,\nAddressSpace *dma_as)\n{", "DeviceState *dev;", "SysBusDevice *sbd;", "FWCfgIoState *ios;", "FWCfgState *s;", "bool dma_requested = dma_iobase && dma_as;", "dev = qdev_create(NULL, TYPE_FW_CFG_IO);", "if (!dma_requested) {", "qdev_prop_set_b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [...
10,519
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_output, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Mpeg1Context *s = avctx->priv_data; AVFrame *picture = data; MpegEncCont...
true
FFmpeg
582368626188c070d4300913c6da5efa4c24cfb2
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_output, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Mpeg1Context *s = avctx->priv_data; AVFrame *picture = data; MpegEncCont...
{ "code": [ " if (avctx->extradata && !avctx->frame_number) {" ], "line_no": [ 69 ] }
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; Mpeg1Context *s = VAR_0->priv_data; AVFrame *picture = VAR_1; MpegEncContext *s2 = &s->...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "Mpeg1Context *s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "MpegEncContext *s2 = &s->mpeg_enc_ctx;", "av_dlog(VAR_0, \"fill_buffer\\n\")...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51, 53 ], [...
10,521
av_cold void ff_fft_fixed_init_arm(FFTContext *s) { int cpu_flags = av_get_cpu_flags(); if (have_neon(cpu_flags)) { s->fft_permutation = FF_FFT_PERM_SWAP_LSBS; s->fft_calc = ff_fft_fixed_calc_neon; #if CONFIG_MDCT if (!s->inverse && s->mdct_bits >= 5) { s->...
true
FFmpeg
92dad6687f59a6e599834218626e524eb8a5bdae
av_cold void ff_fft_fixed_init_arm(FFTContext *s) { int cpu_flags = av_get_cpu_flags(); if (have_neon(cpu_flags)) { s->fft_permutation = FF_FFT_PERM_SWAP_LSBS; s->fft_calc = ff_fft_fixed_calc_neon; #if CONFIG_MDCT if (!s->inverse && s->mdct_bits >= 5) { s->...
{ "code": [ " if (!s->inverse && s->mdct_bits >= 5) {" ], "line_no": [ 19 ] }
av_cold void FUNC_0(FFTContext *s) { int VAR_0 = av_get_cpu_flags(); if (have_neon(VAR_0)) { s->fft_permutation = FF_FFT_PERM_SWAP_LSBS; s->fft_calc = ff_fft_fixed_calc_neon; #if CONFIG_MDCT if (!s->inverse && s->mdct_bits >= 5) { s->mdct_permutation = FF_M...
[ "av_cold void FUNC_0(FFTContext *s)\n{", "int VAR_0 = av_get_cpu_flags();", "if (have_neon(VAR_0)) {", "s->fft_permutation = FF_FFT_PERM_SWAP_LSBS;", "s->fft_calc = ff_fft_fixed_calc_neon;", "#if CONFIG_MDCT\nif (!s->inverse && s->mdct_bits >= 5) {", "s->mdct_permutation = FF_MDCT_PERM_INTERLEAVE...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ] ]
10,523
static bool timer_expired_ns(QEMUTimer *timer_head, int64_t current_time) { return timer_head && (timer_head->expire_time <= current_time); }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
static bool timer_expired_ns(QEMUTimer *timer_head, int64_t current_time) { return timer_head && (timer_head->expire_time <= current_time); }
{ "code": [], "line_no": [] }
static bool FUNC_0(QEMUTimer *timer_head, int64_t current_time) { return timer_head && (timer_head->expire_time <= current_time); }
[ "static bool FUNC_0(QEMUTimer *timer_head, int64_t current_time)\n{", "return timer_head && (timer_head->expire_time <= current_time);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,524
void syscall_init(void) { IOCTLEntry *ie; const argtype *arg_type; int size; int i; #define STRUCT(name, list...) thunk_register_struct(STRUCT_ ## name, #name, struct_ ## name ## _def); #define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## _def); ...
false
qemu
872ea0c098f63a36de8c49eb2cf348cd111292b9
void syscall_init(void) { IOCTLEntry *ie; const argtype *arg_type; int size; int i; #define STRUCT(name, list...) thunk_register_struct(STRUCT_ ## name, #name, struct_ ## name ## _def); #define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## _def); ...
{ "code": [], "line_no": [] }
void FUNC_0(void) { IOCTLEntry *ie; const argtype *VAR_0; int VAR_1; int VAR_2; #define STRUCT(name, list...) thunk_register_struct(STRUCT_ ## name, #name, struct_ ## name ## _def); #define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## _def); #in...
[ "void FUNC_0(void)\n{", "IOCTLEntry *ie;", "const argtype *VAR_0;", "int VAR_1;", "int VAR_2;", "#define STRUCT(name, list...) thunk_register_struct(STRUCT_ ## name, #name, struct_ ## name ## _def);", "#define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## ...
[ 0, 0, 0, 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, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
10,525
static CharDriverState *qemu_chr_open_stdio(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { ChardevStdio *opts = backend->u.stdio; CharDriverStat...
false
qemu
d0d7708ba29cbcc343364a46bff981e0ff88366f
static CharDriverState *qemu_chr_open_stdio(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { ChardevStdio *opts = backend->u.stdio; CharDriverStat...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { ChardevStdio *opts = backend->u.stdio; CharDriverState *chr; ...
[ "static CharDriverState *FUNC_0(const char *id,\nChardevBackend *backend,\nChardevReturn *ret,\nError **errp)\n{", "ChardevStdio *opts = backend->u.stdio;", "CharDriverState *chr;", "struct sigaction VAR_0;", "if (is_daemonized()) {", "error_setg(errp, \"cannot use stdio with -daemonize\");", "return NU...
[ 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
10,526
static inline void gen_op_eval_bg(TCGv dst, TCGv_i32 src) { gen_mov_reg_N(cpu_tmp0, src); gen_mov_reg_V(dst, src); tcg_gen_xor_tl(dst, dst, cpu_tmp0); gen_mov_reg_Z(cpu_tmp0, src); tcg_gen_or_tl(dst, dst, cpu_tmp0); tcg_gen_xori_tl(dst, dst, 0x1); }
false
qemu
de9e9d9f17a36ff76c1a02a5348835e5e0a081b0
static inline void gen_op_eval_bg(TCGv dst, TCGv_i32 src) { gen_mov_reg_N(cpu_tmp0, src); gen_mov_reg_V(dst, src); tcg_gen_xor_tl(dst, dst, cpu_tmp0); gen_mov_reg_Z(cpu_tmp0, src); tcg_gen_or_tl(dst, dst, cpu_tmp0); tcg_gen_xori_tl(dst, dst, 0x1); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv VAR_0, TCGv_i32 VAR_1) { gen_mov_reg_N(cpu_tmp0, VAR_1); gen_mov_reg_V(VAR_0, VAR_1); tcg_gen_xor_tl(VAR_0, VAR_0, cpu_tmp0); gen_mov_reg_Z(cpu_tmp0, VAR_1); tcg_gen_or_tl(VAR_0, VAR_0, cpu_tmp0); tcg_gen_xori_tl(VAR_0, VAR_0, 0x1); }
[ "static inline void FUNC_0(TCGv VAR_0, TCGv_i32 VAR_1)\n{", "gen_mov_reg_N(cpu_tmp0, VAR_1);", "gen_mov_reg_V(VAR_0, VAR_1);", "tcg_gen_xor_tl(VAR_0, VAR_0, cpu_tmp0);", "gen_mov_reg_Z(cpu_tmp0, VAR_1);", "tcg_gen_or_tl(VAR_0, VAR_0, cpu_tmp0);", "tcg_gen_xori_tl(VAR_0, VAR_0, 0x1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
10,527
START_TEST(qstring_destroy_test) { QString *qstring = qstring_from_str("destroy test"); QDECREF(qstring); }
false
qemu
0ac7cc2af500b948510f2481c22e84a57b0a2447
START_TEST(qstring_destroy_test) { QString *qstring = qstring_from_str("destroy test"); QDECREF(qstring); }
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { QString *qstring = qstring_from_str("destroy test"); QDECREF(qstring); }
[ "FUNC_0(VAR_0)\n{", "QString *qstring = qstring_from_str(\"destroy test\");", "QDECREF(qstring);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
10,528
static av_cold int aac_decode_init(AVCodecContext *avctx) { AACContext *ac = avctx->priv_data; float output_scale_factor; ac->avctx = avctx; ac->oc[1].m4ac.sample_rate = avctx->sample_rate; if (avctx->extradata_size > 0) { if (decode_audio_specific_config(ac, ac->avctx, &ac->oc[1]...
false
FFmpeg
f77fd34bc34c93a555eee99226d01d947d02a2a3
static av_cold int aac_decode_init(AVCodecContext *avctx) { AACContext *ac = avctx->priv_data; float output_scale_factor; ac->avctx = avctx; ac->oc[1].m4ac.sample_rate = avctx->sample_rate; if (avctx->extradata_size > 0) { if (decode_audio_specific_config(ac, ac->avctx, &ac->oc[1]...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { AACContext *ac = avctx->priv_data; float VAR_0; ac->avctx = avctx; ac->oc[1].m4ac.sample_rate = avctx->sample_rate; if (avctx->extradata_size > 0) { if (decode_audio_specific_config(ac, ac->avctx, &ac->oc[1].m4ac, ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "AACContext *ac = avctx->priv_data;", "float VAR_0;", "ac->avctx = avctx;", "ac->oc[1].m4ac.sample_rate = avctx->sample_rate;", "if (avctx->extradata_size > 0) {", "if (decode_audio_specific_config(ac, ac->avctx, &ac->oc[1].m4ac,\navctx->extradata,\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51, 53...
10,529
static void test_validate_union_anon(TestInputVisitorData *data, const void *unused) { UserDefAnonUnion *tmp = NULL; Visitor *v; Error *errp = NULL; v = validate_test_init(data, "42"); visit_type_UserDefAnonUnion(v, &tmp, NULL, &errp); g_assert(!e...
false
qemu
0fb6395c0cb5046432a80d608ddde7a3b2f8a9ae
static void test_validate_union_anon(TestInputVisitorData *data, const void *unused) { UserDefAnonUnion *tmp = NULL; Visitor *v; Error *errp = NULL; v = validate_test_init(data, "42"); visit_type_UserDefAnonUnion(v, &tmp, NULL, &errp); g_assert(!e...
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { UserDefAnonUnion *tmp = NULL; Visitor *v; Error *errp = NULL; v = validate_test_init(VAR_0, "42"); visit_type_UserDefAnonUnion(v, &tmp, NULL, &errp); g_assert(!error_is_set(&errp...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "UserDefAnonUnion *tmp = NULL;", "Visitor *v;", "Error *errp = NULL;", "v = validate_test_init(VAR_0, \"42\");", "visit_type_UserDefAnonUnion(v, &tmp, NULL, &errp);", "g_assert(!error_is_set(&errp));", "qapi_free_UserDefAnonUnio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
10,530
int qemu_input_key_value_to_qcode(const KeyValue *value) { if (value->type == KEY_VALUE_KIND_QCODE) { return value->u.qcode; } else { assert(value->type == KEY_VALUE_KIND_NUMBER); return qemu_input_key_number_to_qcode(value->u.number); } }
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
int qemu_input_key_value_to_qcode(const KeyValue *value) { if (value->type == KEY_VALUE_KIND_QCODE) { return value->u.qcode; } else { assert(value->type == KEY_VALUE_KIND_NUMBER); return qemu_input_key_number_to_qcode(value->u.number); } }
{ "code": [], "line_no": [] }
int FUNC_0(const KeyValue *VAR_0) { if (VAR_0->type == KEY_VALUE_KIND_QCODE) { return VAR_0->u.qcode; } else { assert(VAR_0->type == KEY_VALUE_KIND_NUMBER); return qemu_input_key_number_to_qcode(VAR_0->u.number); } }
[ "int FUNC_0(const KeyValue *VAR_0)\n{", "if (VAR_0->type == KEY_VALUE_KIND_QCODE) {", "return VAR_0->u.qcode;", "} else {", "assert(VAR_0->type == KEY_VALUE_KIND_NUMBER);", "return qemu_input_key_number_to_qcode(VAR_0->u.number);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
10,531
void tcg_cpu_address_space_init(CPUState *cpu, AddressSpace *as) { /* We only support one address space per cpu at the moment. */ assert(cpu->as == as); if (cpu->cpu_ases) { /* We've already registered the listener for our only AS */ return; } cpu->cpu_ases = g_new0(CPUA...
false
qemu
56943e8cc14b7eeeab67d1942fa5d8bcafe3e53f
void tcg_cpu_address_space_init(CPUState *cpu, AddressSpace *as) { assert(cpu->as == as); if (cpu->cpu_ases) { return; } cpu->cpu_ases = g_new0(CPUAddressSpace, 1); cpu->cpu_ases[0].cpu = cpu; cpu->cpu_ases[0].as = as; cpu->cpu_ases[0].tcg_as_listener.com...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, AddressSpace *VAR_1) { assert(VAR_0->VAR_1 == VAR_1); if (VAR_0->cpu_ases) { return; } VAR_0->cpu_ases = g_new0(CPUAddressSpace, 1); VAR_0->cpu_ases[0].VAR_0 = VAR_0; VAR_0->cpu_ases[0].VAR_1 = VAR_1; VAR_0->cpu_ases[0].tcg_as...
[ "void FUNC_0(CPUState *VAR_0, AddressSpace *VAR_1)\n{", "assert(VAR_0->VAR_1 == VAR_1);", "if (VAR_0->cpu_ases) {", "return;", "}", "VAR_0->cpu_ases = g_new0(CPUAddressSpace, 1);", "VAR_0->cpu_ases[0].VAR_0 = VAR_0;", "VAR_0->cpu_ases[0].VAR_1 = VAR_1;", "VAR_0->cpu_ases[0].tcg_as_listener.commit = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
10,532
static struct iovec *lock_iovec(int type, abi_ulong target_addr, int count, int copy) { struct target_iovec *target_vec; struct iovec *vec; abi_ulong total_len, max_len; int i; int err = 0; if (count == 0) { errno = 0; return NULL; ...
false
qemu
29560a6cb7a7a705de3d7dfb44e8b1c0a12ad37d
static struct iovec *lock_iovec(int type, abi_ulong target_addr, int count, int copy) { struct target_iovec *target_vec; struct iovec *vec; abi_ulong total_len, max_len; int i; int err = 0; if (count == 0) { errno = 0; return NULL; ...
{ "code": [], "line_no": [] }
static struct iovec *FUNC_0(int VAR_0, abi_ulong VAR_1, int VAR_2, int VAR_3) { struct target_iovec *VAR_4; struct iovec *VAR_5; abi_ulong total_len, max_len; int VAR_6; int VAR_7 = 0; if (VAR_2 == 0) { errno = 0; return NULL; } ...
[ "static struct iovec *FUNC_0(int VAR_0, abi_ulong VAR_1,\nint VAR_2, int VAR_3)\n{", "struct target_iovec *VAR_4;", "struct iovec *VAR_5;", "abi_ulong total_len, max_len;", "int VAR_6;", "int VAR_7 = 0;", "if (VAR_2 == 0) {", "errno = 0;", "return NULL;", "}", "if (VAR_2 < 0 || VAR_2 > IOV_MAX) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
10,533
static void imx_gpt_compute_next_timeout(IMXGPTState *s, bool event) { uint32_t timeout = TIMER_MAX; uint32_t count = 0; long long limit; if (!(s->cr & GPT_CR_EN)) { /* if not enabled just return */ return; } if (event) { /* This is a timer event */ ...
false
qemu
203d65a4706be345c209f3408d3a011a3e48f0c9
static void imx_gpt_compute_next_timeout(IMXGPTState *s, bool event) { uint32_t timeout = TIMER_MAX; uint32_t count = 0; long long limit; if (!(s->cr & GPT_CR_EN)) { return; } if (event) { if ((s->cr & GPT_CR_FRR) && (s->next_timeout != TIMER_M...
{ "code": [], "line_no": [] }
static void FUNC_0(IMXGPTState *VAR_0, bool VAR_1) { uint32_t timeout = TIMER_MAX; uint32_t count = 0; long long VAR_2; if (!(VAR_0->cr & GPT_CR_EN)) { return; } if (VAR_1) { if ((VAR_0->cr & GPT_CR_FRR) && (VAR_0->next_timeout != TIMER_MAX)) {...
[ "static void FUNC_0(IMXGPTState *VAR_0, bool VAR_1)\n{", "uint32_t timeout = TIMER_MAX;", "uint32_t count = 0;", "long long VAR_2;", "if (!(VAR_0->cr & GPT_CR_EN)) {", "return;", "}", "if (VAR_1) {", "if ((VAR_0->cr & GPT_CR_FRR) && (VAR_0->next_timeout != TIMER_MAX)) {", "count = imx_gpt_update_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 29 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 69 ...
10,534
ram_addr_t qemu_ram_alloc(ram_addr_t size, MemoryRegion *mr, Error **errp) { return qemu_ram_alloc_from_ptr(size, NULL, mr, errp); }
false
qemu
62be4e3a5041e84304aa23637da623a205c53ecc
ram_addr_t qemu_ram_alloc(ram_addr_t size, MemoryRegion *mr, Error **errp) { return qemu_ram_alloc_from_ptr(size, NULL, mr, errp); }
{ "code": [], "line_no": [] }
ram_addr_t FUNC_0(ram_addr_t size, MemoryRegion *mr, Error **errp) { return qemu_ram_alloc_from_ptr(size, NULL, mr, errp); }
[ "ram_addr_t FUNC_0(ram_addr_t size, MemoryRegion *mr, Error **errp)\n{", "return qemu_ram_alloc_from_ptr(size, NULL, mr, errp);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,535
bool write_list_to_cpustate(ARMCPU *cpu) { int i; bool ok = true; for (i = 0; i < cpu->cpreg_array_len; i++) { uint32_t regidx = kvm_to_cpreg_id(cpu->cpreg_indexes[i]); uint64_t v = cpu->cpreg_values[i]; const ARMCPRegInfo *ri; ri = get_arm_cp_reginfo(cpu->cp_regs...
false
qemu
7a0e58fa648736a75f2a6943afd2ab08ea15b8e0
bool write_list_to_cpustate(ARMCPU *cpu) { int i; bool ok = true; for (i = 0; i < cpu->cpreg_array_len; i++) { uint32_t regidx = kvm_to_cpreg_id(cpu->cpreg_indexes[i]); uint64_t v = cpu->cpreg_values[i]; const ARMCPRegInfo *ri; ri = get_arm_cp_reginfo(cpu->cp_regs...
{ "code": [], "line_no": [] }
bool FUNC_0(ARMCPU *cpu) { int VAR_0; bool ok = true; for (VAR_0 = 0; VAR_0 < cpu->cpreg_array_len; VAR_0++) { uint32_t regidx = kvm_to_cpreg_id(cpu->cpreg_indexes[VAR_0]); uint64_t v = cpu->cpreg_values[VAR_0]; const ARMCPRegInfo *ri; ri = get_arm_cp_reginfo(cpu-...
[ "bool FUNC_0(ARMCPU *cpu)\n{", "int VAR_0;", "bool ok = true;", "for (VAR_0 = 0; VAR_0 < cpu->cpreg_array_len; VAR_0++) {", "uint32_t regidx = kvm_to_cpreg_id(cpu->cpreg_indexes[VAR_0]);", "uint64_t v = cpu->cpreg_values[VAR_0];", "const ARMCPRegInfo *ri;", "ri = get_arm_cp_reginfo(cpu->cp_regs, regid...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
10,536
static int trap_msix(S390PCIBusDevice *pbdev, uint64_t offset, uint8_t pcias) { if (pbdev->msix.available && pbdev->msix.table_bar == pcias && offset >= pbdev->msix.table_offset && offset <= pbdev->msix.table_offset + (pbdev->msix.entries - 1) * PCI_MSIX_ENTRY_SIZE) { ...
false
qemu
2f21b8d431030bcb7478ee9521bdfd3d0ef3901d
static int trap_msix(S390PCIBusDevice *pbdev, uint64_t offset, uint8_t pcias) { if (pbdev->msix.available && pbdev->msix.table_bar == pcias && offset >= pbdev->msix.table_offset && offset <= pbdev->msix.table_offset + (pbdev->msix.entries - 1) * PCI_MSIX_ENTRY_SIZE) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(S390PCIBusDevice *VAR_0, uint64_t VAR_1, uint8_t VAR_2) { if (VAR_0->msix.available && VAR_0->msix.table_bar == VAR_2 && VAR_1 >= VAR_0->msix.table_offset && VAR_1 <= VAR_0->msix.table_offset + (VAR_0->msix.entries - 1) * PCI_MSIX_ENTRY_SIZE) { retur...
[ "static int FUNC_0(S390PCIBusDevice *VAR_0, uint64_t VAR_1, uint8_t VAR_2)\n{", "if (VAR_0->msix.available && VAR_0->msix.table_bar == VAR_2 &&\nVAR_1 >= VAR_0->msix.table_offset &&\nVAR_1 <= VAR_0->msix.table_offset +\n(VAR_0->msix.entries - 1) * PCI_MSIX_ENTRY_SIZE) {", "return 1;", "} else {", "return 0;...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
10,537
static bool local_is_mapped_file_metadata(FsContext *fs_ctx, const char *name) { return !strcmp(name, VIRTFS_META_DIR); }
false
qemu
81ffbf5ab1458e357a761f1272105a55829b351e
static bool local_is_mapped_file_metadata(FsContext *fs_ctx, const char *name) { return !strcmp(name, VIRTFS_META_DIR); }
{ "code": [], "line_no": [] }
static bool FUNC_0(FsContext *fs_ctx, const char *name) { return !strcmp(name, VIRTFS_META_DIR); }
[ "static bool FUNC_0(FsContext *fs_ctx, const char *name)\n{", "return !strcmp(name, VIRTFS_META_DIR);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,538
static void cpu_pre_save(void *opaque) { ARMCPU *cpu = opaque; if (!write_cpustate_to_list(cpu)) { /* This should never fail. */ abort(); } cpu->cpreg_vmstate_array_len = cpu->cpreg_array_len; memcpy(cpu->cpreg_vmstate_indexes, cpu->cpreg_indexes, cpu->cpreg_a...
false
qemu
ff047453f56713aa627e63aade1a9046ccd3bdfd
static void cpu_pre_save(void *opaque) { ARMCPU *cpu = opaque; if (!write_cpustate_to_list(cpu)) { abort(); } cpu->cpreg_vmstate_array_len = cpu->cpreg_array_len; memcpy(cpu->cpreg_vmstate_indexes, cpu->cpreg_indexes, cpu->cpreg_array_len * sizeof(uint64_t));...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { ARMCPU *cpu = VAR_0; if (!write_cpustate_to_list(cpu)) { abort(); } cpu->cpreg_vmstate_array_len = cpu->cpreg_array_len; memcpy(cpu->cpreg_vmstate_indexes, cpu->cpreg_indexes, cpu->cpreg_array_len * sizeof(uint64_t)); me...
[ "static void FUNC_0(void *VAR_0)\n{", "ARMCPU *cpu = VAR_0;", "if (!write_cpustate_to_list(cpu)) {", "abort();", "}", "cpu->cpreg_vmstate_array_len = cpu->cpreg_array_len;", "memcpy(cpu->cpreg_vmstate_indexes, cpu->cpreg_indexes,\ncpu->cpreg_array_len * sizeof(uint64_t));", "memcpy(cpu->cpreg_vmstate_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ] ]
10,540
static void gen_arith (CPUState *env, DisasContext *ctx, uint32_t opc, int rd, int rs, int rt) { const char *opn = "arith"; TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL); TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL); if (rd == 0 && opc != OPC_ADD && opc != OPC_SUB && opc ...
false
qemu
507563e85db880ff875f0a9498a1cf58a50cfad3
static void gen_arith (CPUState *env, DisasContext *ctx, uint32_t opc, int rd, int rs, int rt) { const char *opn = "arith"; TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL); TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL); if (rd == 0 && opc != OPC_ADD && opc != OPC_SUB && opc ...
{ "code": [], "line_no": [] }
static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2, int VAR_3, int VAR_4, int VAR_5) { const char *VAR_6 = "arith"; TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL); TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL); if (VAR_3 == 0 && VAR_2 != OPC_ADD && VAR_2 != OP...
[ "static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{", "const char *VAR_6 = \"arith\";", "TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL);", "TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL);", "if (VAR_3 == 0 && VAR_2 != OPC_ADD && VAR_2 != OPC_SUB\n&& VAR_2 !=...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ...
10,541
static int proxy_open2(FsContext *fs_ctx, V9fsPath *dir_path, const char *name, int flags, FsCred *credp, V9fsFidOpenState *fs) { V9fsString fullname; v9fs_string_init(&fullname); v9fs_string_sprintf(&fullname, "%s/%s", dir_path->data, name); fs->fd = v9fs_request(fs_ctx...
false
qemu
494a8ebe713055d3946183f4b395f85a18b43e9e
static int proxy_open2(FsContext *fs_ctx, V9fsPath *dir_path, const char *name, int flags, FsCred *credp, V9fsFidOpenState *fs) { V9fsString fullname; v9fs_string_init(&fullname); v9fs_string_sprintf(&fullname, "%s/%s", dir_path->data, name); fs->fd = v9fs_request(fs_ctx...
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2, int VAR_3, FsCred *VAR_4, V9fsFidOpenState *VAR_5) { V9fsString fullname; v9fs_string_init(&fullname); v9fs_string_sprintf(&fullname, "%s/%s", VAR_1->data, VAR_2); VAR_5->fd = v9fs_request(VAR_0->pri...
[ "static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2,\nint VAR_3, FsCred *VAR_4, V9fsFidOpenState *VAR_5)\n{", "V9fsString fullname;", "v9fs_string_init(&fullname);", "v9fs_string_sprintf(&fullname, \"%s/%s\", VAR_1->data, VAR_2);", "VAR_5->fd = v9fs_request(VAR_0->private, T_CREATE, NULL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
10,542
void memory_region_add_subregion_overlap(MemoryRegion *mr, hwaddr offset, MemoryRegion *subregion, int priority) { subregion->may_overlap = true; subregion->priority = priority; ...
false
qemu
b61359781958759317ee6fd1a45b59be0b7dbbe1
void memory_region_add_subregion_overlap(MemoryRegion *mr, hwaddr offset, MemoryRegion *subregion, int priority) { subregion->may_overlap = true; subregion->priority = priority; ...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, MemoryRegion *VAR_2, int VAR_3) { VAR_2->may_overlap = true; VAR_2->VAR_3 = VAR_3; memory_region_add_subregion_common(VAR_0, VAR_1,...
[ "void FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nMemoryRegion *VAR_2,\nint VAR_3)\n{", "VAR_2->may_overlap = true;", "VAR_2->VAR_3 = VAR_3;", "memory_region_add_subregion_common(VAR_0, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
10,543
void hd_geometry_guess(BlockBackend *blk, uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs, int *ptrans) { int cylinders, heads, secs, translation; if (guess_disk_lchs(blk, &cylinders, &heads, &secs) < 0) { /* no LCHS guess: use a standard physical...
false
qemu
0eb28a42284ec32e6f283985d2d638474a05eba4
void hd_geometry_guess(BlockBackend *blk, uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs, int *ptrans) { int cylinders, heads, secs, translation; if (guess_disk_lchs(blk, &cylinders, &heads, &secs) < 0) { guess_chs_for_size(blk, pcyls, ...
{ "code": [], "line_no": [] }
void FUNC_0(BlockBackend *VAR_0, uint32_t *VAR_1, uint32_t *VAR_2, uint32_t *VAR_3, int *VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8; if (guess_disk_lchs(VAR_0, &VAR_5, &VAR_6, &VAR_7) < 0) { guess_chs_for_size(VAR_0, VAR_1, VAR_2, VAR_3); ...
[ "void FUNC_0(BlockBackend *VAR_0,\nuint32_t *VAR_1, uint32_t *VAR_2, uint32_t *VAR_3,\nint *VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8;", "if (guess_disk_lchs(VAR_0, &VAR_5, &VAR_6, &VAR_7) < 0) {", "guess_chs_for_size(VAR_0, VAR_1, VAR_2, VAR_3);", "VAR_8 = hd_bios_chs_auto_trans(*VAR_1, *VAR_2, *VAR_3);"...
[ 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 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ...
10,544
int net_init_vde(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan) { const char *sock; const char *group; int port, mode; sock = qemu_opt_get(opts, "sock"); group = qemu_opt_get(opts, "group"); port = qemu_opt_get_number(opts, "port", 0); mode = qemu_opt_get_numbe...
false
qemu
62112d181ca33fea976100c4335dfc3e2f727e6c
int net_init_vde(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan) { const char *sock; const char *group; int port, mode; sock = qemu_opt_get(opts, "sock"); group = qemu_opt_get(opts, "group"); port = qemu_opt_get_number(opts, "port", 0); mode = qemu_opt_get_numbe...
{ "code": [], "line_no": [] }
int FUNC_0(QemuOpts *VAR_0, Monitor *VAR_1, const char *VAR_2, VLANState *VAR_3) { const char *VAR_4; const char *VAR_5; int VAR_6, VAR_7; VAR_4 = qemu_opt_get(VAR_0, "VAR_4"); VAR_5 = qemu_opt_get(VAR_0, "VAR_5"); VAR_6 = qemu_opt_get_number(VAR_0, "VAR_6", 0); VAR_7 = qemu_opt...
[ "int FUNC_0(QemuOpts *VAR_0, Monitor *VAR_1, const char *VAR_2, VLANState *VAR_3)\n{", "const char *VAR_4;", "const char *VAR_5;", "int VAR_6, VAR_7;", "VAR_4 = qemu_opt_get(VAR_0, \"VAR_4\");", "VAR_5 = qemu_opt_get(VAR_0, \"VAR_5\");", "VAR_6 = qemu_opt_get_number(VAR_0, \"VAR_6\", 0);", "VAR_7 = q...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
10,545
int read_ffserver_streams(AVFormatContext *s, const char *filename) { int i; AVFormatContext *ic; ic = av_open_input_file(filename, FFM_PACKET_SIZE); if (!ic) return -EIO; /* copy stream format */ s->nb_streams = ic->nb_streams; for(i=0;i<ic->nb_streams;i++) { AVS...
false
FFmpeg
a38469e1da7b4829a2fba4279d8420a33f96832e
int read_ffserver_streams(AVFormatContext *s, const char *filename) { int i; AVFormatContext *ic; ic = av_open_input_file(filename, FFM_PACKET_SIZE); if (!ic) return -EIO; s->nb_streams = ic->nb_streams; for(i=0;i<ic->nb_streams;i++) { AVStream *st; st =...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1) { int VAR_2; AVFormatContext *ic; ic = av_open_input_file(VAR_1, FFM_PACKET_SIZE); if (!ic) return -EIO; VAR_0->nb_streams = ic->nb_streams; for(VAR_2=0;VAR_2<ic->nb_streams;VAR_2++) { AVStream *st; s...
[ "int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)\n{", "int VAR_2;", "AVFormatContext *ic;", "ic = av_open_input_file(VAR_1, FFM_PACKET_SIZE);", "if (!ic)\nreturn -EIO;", "VAR_0->nb_streams = ic->nb_streams;", "for(VAR_2=0;VAR_2<ic->nb_streams;VAR_2++) {", "AVStream *st;", "st = av_mallocz(size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
10,546
void ff_restore_parser_state(AVFormatContext *s, AVParserState *state) { int i; AVStream *st; AVParserStreamState *ss; ff_read_frame_flush(s); if (!state) return; avio_seek(s->pb, state->fpos, SEEK_SET); // copy context structures s->cur_st ...
false
FFmpeg
27c7ca9c12bb42d5c44d46f24cd970469d0ef55a
void ff_restore_parser_state(AVFormatContext *s, AVParserState *state) { int i; AVStream *st; AVParserStreamState *ss; ff_read_frame_flush(s); if (!state) return; avio_seek(s->pb, state->fpos, SEEK_SET); s->cur_st = state->cur_st; s...
{ "code": [], "line_no": [] }
void FUNC_0(AVFormatContext *VAR_0, AVParserState *VAR_1) { int VAR_2; AVStream *st; AVParserStreamState *ss; ff_read_frame_flush(VAR_0); if (!VAR_1) return; avio_seek(VAR_0->pb, VAR_1->fpos, SEEK_SET); VAR_0->cur_st = VAR_1->cur_st; ...
[ "void FUNC_0(AVFormatContext *VAR_0, AVParserState *VAR_1)\n{", "int VAR_2;", "AVStream *st;", "AVParserStreamState *ss;", "ff_read_frame_flush(VAR_0);", "if (!VAR_1)\nreturn;", "avio_seek(VAR_0->pb, VAR_1->fpos, SEEK_SET);", "VAR_0->cur_st = VAR_1->cur_st;", "VAR_0->packet...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
10,548
int ff_img_read_header(AVFormatContext *s1) { VideoDemuxData *s = s1->priv_data; int first_index = 1, last_index = 1; AVStream *st; enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE; s1->ctx_flags |= AVFMTCTX_NOHEADER; st = avformat_new_stream(s1, NULL); if (!st) { return AVE...
false
FFmpeg
e9e87822022fc81f92866f870ecedfd2f6272ac9
int ff_img_read_header(AVFormatContext *s1) { VideoDemuxData *s = s1->priv_data; int first_index = 1, last_index = 1; AVStream *st; enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE; s1->ctx_flags |= AVFMTCTX_NOHEADER; st = avformat_new_stream(s1, NULL); if (!st) { return AVE...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0) { VideoDemuxData *s = VAR_0->priv_data; int VAR_1 = 1, VAR_2 = 1; AVStream *st; enum AVPixelFormat VAR_3 = AV_PIX_FMT_NONE; VAR_0->ctx_flags |= AVFMTCTX_NOHEADER; st = avformat_new_stream(VAR_0, NULL); if (!st) { return AVERROR(ENOMEM);...
[ "int FUNC_0(AVFormatContext *VAR_0)\n{", "VideoDemuxData *s = VAR_0->priv_data;", "int VAR_1 = 1, VAR_2 = 1;", "AVStream *st;", "enum AVPixelFormat VAR_3 = AV_PIX_FMT_NONE;", "VAR_0->ctx_flags |= AVFMTCTX_NOHEADER;", "st = avformat_new_stream(VAR_0, NULL);", "if (!st) {", "return AVERROR(ENOMEM);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 53, 55 ], [...
10,549
static av_always_inline void decode_bgr_1(HYuvContext *s, int count, int decorrelate, int alpha) { int i; OPEN_READER(re, &s->gb); for (i = 0; i < count; i++) { unsigned int index; int code, n; UPDATE_CACHE(re, &s->gb); i...
false
FFmpeg
0d632b35a04f4a54e7cd228c85cbad82549182ec
static av_always_inline void decode_bgr_1(HYuvContext *s, int count, int decorrelate, int alpha) { int i; OPEN_READER(re, &s->gb); for (i = 0; i < count; i++) { unsigned int index; int code, n; UPDATE_CACHE(re, &s->gb); i...
{ "code": [], "line_no": [] }
static av_always_inline void FUNC_0(HYuvContext *s, int count, int decorrelate, int alpha) { int VAR_0; OPEN_READER(re, &s->gb); for (VAR_0 = 0; VAR_0 < count; VAR_0++) { unsigned int VAR_1; int VAR_2, VAR_3; UPDATE_CACHE(re, &s->...
[ "static av_always_inline void FUNC_0(HYuvContext *s, int count,\nint decorrelate, int alpha)\n{", "int VAR_0;", "OPEN_READER(re, &s->gb);", "for (VAR_0 = 0; VAR_0 < count; VAR_0++) {", "unsigned int VAR_1;", "int VAR_2, VAR_3;", "UPDATE_CACHE(re, &s->gb);", "VAR_1 = SHOW_UBITS(re, &s->gb, VLC_BITS);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 49 ], [ 51 ...
10,550
static int dnxhd_init_rc(DNXHDEncContext *ctx) { CHECKED_ALLOCZ(ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry)); if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD) CHECKED_ALLOCZ(ctx->mb_cmp, ctx->m.mb_num*sizeof(RCCMPEntry)); ctx->frame_bits = (ctx->cid_table->coding_unit_size - 640 - ...
false
FFmpeg
d31dbec3742e488156621b9ca21069f8c05aabf0
static int dnxhd_init_rc(DNXHDEncContext *ctx) { CHECKED_ALLOCZ(ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry)); if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD) CHECKED_ALLOCZ(ctx->mb_cmp, ctx->m.mb_num*sizeof(RCCMPEntry)); ctx->frame_bits = (ctx->cid_table->coding_unit_size - 640 - ...
{ "code": [], "line_no": [] }
static int FUNC_0(DNXHDEncContext *VAR_0) { CHECKED_ALLOCZ(VAR_0->mb_rc, 8160*VAR_0->m.avctx->qmax*sizeof(RCEntry)); if (VAR_0->m.avctx->mb_decision != FF_MB_DECISION_RD) CHECKED_ALLOCZ(VAR_0->mb_cmp, VAR_0->m.mb_num*sizeof(RCCMPEntry)); VAR_0->frame_bits = (VAR_0->cid_table->coding_unit_size...
[ "static int FUNC_0(DNXHDEncContext *VAR_0)\n{", "CHECKED_ALLOCZ(VAR_0->mb_rc, 8160*VAR_0->m.avctx->qmax*sizeof(RCEntry));", "if (VAR_0->m.avctx->mb_decision != FF_MB_DECISION_RD)\nCHECKED_ALLOCZ(VAR_0->mb_cmp, VAR_0->m.mb_num*sizeof(RCCMPEntry));", "VAR_0->frame_bits = (VAR_0->cid_table->coding_unit_size - 64...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ] ]
10,551
static int mpeg1_decode_picture(AVCodecContext *avctx, UINT8 *buf, int buf_size) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int ref, f_code; init_get_bits(&s->gb, buf, buf_size); ref = get_bits(&s->gb, 10); /* temporal re...
false
FFmpeg
68f593b48433842f3407586679fe07f3e5199ab9
static int mpeg1_decode_picture(AVCodecContext *avctx, UINT8 *buf, int buf_size) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int ref, f_code; init_get_bits(&s->gb, buf, buf_size); ref = get_bits(&s->gb, 10); s->pict_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, UINT8 *VAR_1, int VAR_2) { Mpeg1Context *s1 = VAR_0->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int VAR_3, VAR_4; init_get_bits(&s->gb, VAR_1, VAR_2); VAR_3 = get_bits(&s->gb, 10); s->pict_type = get_bi...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nUINT8 *VAR_1, int VAR_2)\n{", "Mpeg1Context *s1 = VAR_0->priv_data;", "MpegEncContext *s = &s1->mpeg_enc_ctx;", "int VAR_3, VAR_4;", "init_get_bits(&s->gb, VAR_1, VAR_2);", "VAR_3 = get_bits(&s->gb, 10);", "s->pict_type = get_bits(&s->gb, 3);", "dprintf(\"pic...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
10,552
static int mpeg1_find_frame_end(MpegEncContext *s, uint8_t *buf, int buf_size){ ParseContext *pc= &s->parse_context; int i; uint32_t state; state= pc->state; i=0; if(!pc->frame_start_found){ for(i=0; i<buf_size; i++){ state= (state<<8) | buf[i]; ...
false
FFmpeg
bb463d81020a2f3c5cf3403e18f980171773f48a
static int mpeg1_find_frame_end(MpegEncContext *s, uint8_t *buf, int buf_size){ ParseContext *pc= &s->parse_context; int i; uint32_t state; state= pc->state; i=0; if(!pc->frame_start_found){ for(i=0; i<buf_size; i++){ state= (state<<8) | buf[i]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1, int VAR_2){ ParseContext *pc= &VAR_0->parse_context; int VAR_3; uint32_t state; state= pc->state; VAR_3=0; if(!pc->frame_start_found){ for(VAR_3=0; VAR_3<VAR_2; VAR_3++){ state= (state<<8) | VAR_1[VA...
[ "static int FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1, int VAR_2){", "ParseContext *pc= &VAR_0->parse_context;", "int VAR_3;", "uint32_t state;", "state= pc->state;", "VAR_3=0;", "if(!pc->frame_start_found){", "for(VAR_3=0; VAR_3<VAR_2; VAR_3++){", "state= (state<<8) | VAR_1[VAR_3];", "if(state...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], ...
10,553
static int mov_read_mvhd(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int i; int64_t creation_time; int version = avio_r8(pb); /* version */ avio_rb24(pb); /* flags */ if (version == 1) { creation_time = avio_rb64(pb); avio_rb64(pb); } else { creation_time ...
false
FFmpeg
ab61b79b1c707a9ea0512238d837ea3e8b8395ed
static int mov_read_mvhd(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int i; int64_t creation_time; int version = avio_r8(pb); avio_rb24(pb); if (version == 1) { creation_time = avio_rb64(pb); avio_rb64(pb); } else { creation_time = avio_rb32(pb); ...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { int VAR_3; int64_t creation_time; int VAR_4 = avio_r8(VAR_1); avio_rb24(VAR_1); if (VAR_4 == 1) { creation_time = avio_rb64(VAR_1); avio_rb64(VAR_1); } else { creation_time = avio_rb32...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "int VAR_3;", "int64_t creation_time;", "int VAR_4 = avio_r8(VAR_1);", "avio_rb24(VAR_1);", "if (VAR_4 == 1) {", "creation_time = avio_rb64(VAR_1);", "avio_rb64(VAR_1);", "} else {", "creation_time = avio_rb32(VAR_1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ...
10,555
static int decode_packet(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty, Jpeg2000ResLevel *rlevel, int precno, int layno, uint8_t *expn, int numgbits) { int bandno, cblkny, cblknx, cblkno, ret; if (!(ret = get_bits(s, 1))){ j2k_flush(s); return 0; } ...
false
FFmpeg
914ab4cd1c59eae10771f2d6a892ec6b6f36b0e2
static int decode_packet(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty, Jpeg2000ResLevel *rlevel, int precno, int layno, uint8_t *expn, int numgbits) { int bandno, cblkny, cblknx, cblkno, ret; if (!(ret = get_bits(s, 1))){ j2k_flush(s); return 0; } ...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1, Jpeg2000ResLevel *VAR_2, int VAR_3, int VAR_4, uint8_t *VAR_5, int VAR_6) { int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; if (!(VAR_11 = get_bits(VAR_0, 1))){ j2k_flush(VAR_0); return 0; ...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1, Jpeg2000ResLevel *VAR_2, int VAR_3,\nint VAR_4, uint8_t *VAR_5, int VAR_6)\n{", "int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "if (!(VAR_11 = get_bits(VAR_0, 1))){", "j2k_flush(VAR_0);", "return 0;", "} else if (VAR_11 < 0)", "r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 55...
10,557
static void avc_luma_vt_and_aver_dst_8x8_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride) { int32_t loop_cnt; int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t ...
false
FFmpeg
72dbc610be3272ba36603f78a39cc2d2d8fe0cc3
static void avc_luma_vt_and_aver_dst_8x8_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride) { int32_t loop_cnt; int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t ...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1, uint8_t *VAR_2, int32_t VAR_3) { int32_t loop_cnt; int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t filt_const2 = 0x1fb; v16u8 ...
[ "static void FUNC_0(const uint8_t *VAR_0,\nint32_t VAR_1,\nuint8_t *VAR_2, int32_t VAR_3)\n{", "int32_t loop_cnt;", "int16_t filt_const0 = 0xfb01;", "int16_t filt_const1 = 0x1414;", "int16_t filt_const2 = 0x1fb;", "v16u8 dst0, dst1, dst2, dst3;", "v16i8 src0, src1, src2, src3, src4, src7, src8, src9, sr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [...
10,558
int main (int argc, char **argv) { int ret = 0, got_frame; if (argc != 4 && argc != 5) { fprintf(stderr, "usage: %s [-refcount=<old|new_norefcount|new_refcount>] " "input_file video_output_file audio_output_file\n" "API example program to show how to read frames f...
false
FFmpeg
50a28b13936be3e62254d5a73ab2ca6ffb001bcf
int main (int argc, char **argv) { int ret = 0, got_frame; if (argc != 4 && argc != 5) { fprintf(stderr, "usage: %s [-refcount=<old|new_norefcount|new_refcount>] " "input_file video_output_file audio_output_file\n" "API example program to show how to read frames f...
{ "code": [], "line_no": [] }
int FUNC_0 (int VAR_0, char **VAR_1) { int VAR_2 = 0, VAR_3; if (VAR_0 != 4 && VAR_0 != 5) { fprintf(stderr, "usage: %s [-refcount=<old|new_norefcount|new_refcount>] " "input_file video_output_file audio_output_file\n" "API example program to show how to read fram...
[ "int FUNC_0 (int VAR_0, char **VAR_1)\n{", "int VAR_2 = 0, VAR_3;", "if (VAR_0 != 4 && VAR_0 != 5) {", "fprintf(stderr, \"usage: %s [-refcount=<old|new_norefcount|new_refcount>] \"\n\"input_file video_output_file audio_output_file\\n\"\n\"API example program to show how to read frames from an input file.\\n\"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
10,559
void ff_celp_lp_synthesis_filterf(float *out, const float* filter_coeffs, const float* in, int buffer_length, int filter_length) { int i,n; // Avoids a +1 in the inner...
false
FFmpeg
b1ade3d1821a29174963b28cd0caa5f7ed394998
void ff_celp_lp_synthesis_filterf(float *out, const float* filter_coeffs, const float* in, int buffer_length, int filter_length) { int i,n; filter_length++; ...
{ "code": [], "line_no": [] }
void FUNC_0(float *VAR_0, const float* VAR_1, const float* VAR_2, int VAR_3, int VAR_4) { int VAR_5,VAR_6; VAR_4++; for (VAR_6 = 0; VAR_6 < VAR_3; VAR_6++...
[ "void FUNC_0(float *VAR_0,\nconst float* VAR_1,\nconst float* VAR_2,\nint VAR_3,\nint VAR_4)\n{", "int VAR_5,VAR_6;", "VAR_4++;", "for (VAR_6 = 0; VAR_6 < VAR_3; VAR_6++) {", "VAR_0[VAR_6] = VAR_2[VAR_6];", "for (VAR_5 = 1; VAR_5 < VAR_4; VAR_5++)", "VAR_0[VAR_6] -= VAR_1[VAR_5-1] * VAR_0[VAR_6-VAR_5];"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
10,560
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { BinkDemuxContext *bink = s->priv_data; AVStream *vst = s->streams[0]; if (!s->pb->seekable) return -1; /* seek to the first frame */ if (avio_seek(s->pb, vst->index_entries[0].pos, SEEK_SET)...
false
FFmpeg
83548fe894cdb455cc127f754d09905b6d23c173
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { BinkDemuxContext *bink = s->priv_data; AVStream *vst = s->streams[0]; if (!s->pb->seekable) return -1; if (avio_seek(s->pb, vst->index_entries[0].pos, SEEK_SET) < 0) return -1; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { BinkDemuxContext *bink = VAR_0->priv_data; AVStream *vst = VAR_0->streams[0]; if (!VAR_0->pb->seekable) return -1; if (avio_seek(VAR_0->pb, vst->index_entries[0].pos, SEEK_SET) < 0) return -...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)\n{", "BinkDemuxContext *bink = VAR_0->priv_data;", "AVStream *vst = VAR_0->streams[0];", "if (!VAR_0->pb->seekable)\nreturn -1;", "if (avio_seek(VAR_0->pb, vst->index_entries[0].pos, SEEK_SET) < 0)\nreturn -1;", "bink->video_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
10,561
static int dvvideo_decode_frame(AVCodecContext *avctx, void *data, int *data_size, UINT8 *buf, int buf_size) { DVVideoDecodeContext *s = avctx->priv_data; int sct, dsf, apt, ds, nb_dif_segs, vs, width, height, i, packet_size; unsigned ...
false
FFmpeg
adb4328917f8b4e0ea9462615ca9e9b5baa7334d
static int dvvideo_decode_frame(AVCodecContext *avctx, void *data, int *data_size, UINT8 *buf, int buf_size) { DVVideoDecodeContext *s = avctx->priv_data; int sct, dsf, apt, ds, nb_dif_segs, vs, width, height, i, packet_size; unsigned ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, UINT8 *VAR_3, int VAR_4) { DVVideoDecodeContext *s = VAR_0->priv_data; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14; unsigned VAR_15; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nUINT8 *VAR_3, int VAR_4)\n{", "DVVideoDecodeContext *s = VAR_0->priv_data;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14;", "unsigned VAR_15;", "UINT8 *buf_ptr;", "const UINT16 *VAR_16;", "AVPicture *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 45 ], [ 47, 49 ], [ 51 ...
10,562
static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap) { AudioData *s = s1->priv_data; AVStream *st; int ret; if (!ap || ap->sample_rate <= 0 || ap->channels <= 0) return -1; st = av_new_stream(s1, 0); if (!st) { return -ENOMEM; } s->samp...
false
FFmpeg
c04c3282b4334ff64cfd69d40fea010602e830fd
static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap) { AudioData *s = s1->priv_data; AVStream *st; int ret; if (!ap || ap->sample_rate <= 0 || ap->channels <= 0) return -1; st = av_new_stream(s1, 0); if (!st) { return -ENOMEM; } s->samp...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { AudioData *s = VAR_0->priv_data; AVStream *st; int VAR_2; if (!VAR_1 || VAR_1->sample_rate <= 0 || VAR_1->channels <= 0) return -1; st = av_new_stream(VAR_0, 0); if (!st) { return -ENOMEM; } ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "AudioData *s = VAR_0->priv_data;", "AVStream *st;", "int VAR_2;", "if (!VAR_1 || VAR_1->sample_rate <= 0 || VAR_1->channels <= 0)\nreturn -1;", "st = av_new_stream(VAR_0, 0);", "if (!st) {", "return -ENOMEM;", "}", "s->sam...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [...
10,563
char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms) { snprintf(buf, buf_size, "%s%s%s%s%s", perms & AV_PERM_READ ? "r" : "", perms & AV_PERM_WRITE ? "w" : "", perms & AV_PERM_PRESERVE ? "p" : "", perms & AV_PERM_REUSE ? "u" : "...
false
FFmpeg
0ccabeeaef77e240f2a44f78271a8914a23e239b
char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms) { snprintf(buf, buf_size, "%s%s%s%s%s", perms & AV_PERM_READ ? "r" : "", perms & AV_PERM_WRITE ? "w" : "", perms & AV_PERM_PRESERVE ? "p" : "", perms & AV_PERM_REUSE ? "u" : "...
{ "code": [], "line_no": [] }
char *FUNC_0(char *VAR_0, size_t VAR_1, int VAR_2) { snprintf(VAR_0, VAR_1, "%s%s%s%s%s", VAR_2 & AV_PERM_READ ? "r" : "", VAR_2 & AV_PERM_WRITE ? "w" : "", VAR_2 & AV_PERM_PRESERVE ? "p" : "", VAR_2 & AV_PERM_REUSE ? "u" : "", VA...
[ "char *FUNC_0(char *VAR_0, size_t VAR_1, int VAR_2)\n{", "snprintf(VAR_0, VAR_1, \"%s%s%s%s%s\",\nVAR_2 & AV_PERM_READ ? \"r\" : \"\",\nVAR_2 & AV_PERM_WRITE ? \"w\" : \"\",\nVAR_2 & AV_PERM_PRESERVE ? \"p\" : \"\",\nVAR_2 & AV_PERM_REUSE ? \"u\" : \"\",\nVAR_2 & AV_PERM_REUSE2 ? \"U\" : \"\");",...
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ] ]
10,565
static void gif_copy_img_rect(const uint32_t *src, uint32_t *dst, int linesize, int l, int t, int w, int h) { const int y_start = t * linesize; const uint32_t *src_px, *src_pr, *src_py = src + y_start, *dst_py = dst + y_start; const ...
false
FFmpeg
c10350358da58600884292c08a8690289b81de29
static void gif_copy_img_rect(const uint32_t *src, uint32_t *dst, int linesize, int l, int t, int w, int h) { const int y_start = t * linesize; const uint32_t *src_px, *src_pr, *src_py = src + y_start, *dst_py = dst + y_start; const ...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint32_t *VAR_0, uint32_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { const int VAR_7 = VAR_4 * VAR_2; const uint32_t *VAR_8, *src_pr, *src_py = VAR_0 + VAR_7, *dst_py = VAR_1 + VAR_7; co...
[ "static void FUNC_0(const uint32_t *VAR_0, uint32_t *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{", "const int VAR_7 = VAR_4 * VAR_2;", "const uint32_t *VAR_8, *src_pr,\n*src_py = VAR_0 + VAR_7,\n*dst_py = VAR_1 + VAR_7;", "const uint32_t *VAR_9 = src_py + VAR_4 * VAR_2;", "uint32_t *ds...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
10,566
static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AlacEncodeContext *s = avctx->priv_data; int out_bytes, max_frame_size, ret; s->frame_size = frame->nb_samples; if (frame->nb_samples < DEFAULT_FRAME_S...
false
FFmpeg
bcaf64b605442e1622d16da89d4ec0e7730b8a8c
static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AlacEncodeContext *s = avctx->priv_data; int out_bytes, max_frame_size, ret; s->frame_size = frame->nb_samples; if (frame->nb_samples < DEFAULT_FRAME_S...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { AlacEncodeContext *s = VAR_0->priv_data; int VAR_4, VAR_5, VAR_6; s->frame_size = VAR_2->nb_samples; if (VAR_2->nb_samples < DEFAULT_FRAME_SIZE) VAR_5 = get_max_f...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "AlacEncodeContext *s = VAR_0->priv_data;", "int VAR_4, VAR_5, VAR_6;", "s->frame_size = VAR_2->nb_samples;", "if (VAR_2->nb_samples < DEFAULT_FRAME_SIZE)\nVAR_5 = get_max_frame_size(s->frame_size, VAR_0->chan...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19, 21 ], [ 23, 25 ], [ 29, 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 57 ], [ 61 ], [...
10,567
static int bmdma_rw_buf(IDEDMA *dma, int is_write) { BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); IDEState *s = bmdma_active_if(bm); struct { uint32_t addr; uint32_t size; } prd; int l, len; for(;;) { l = s->io_buffer_size - s->io_buffer_index; i...
false
qemu
552908fef5b67ad9d96b76d7cb8371ebc26c9bc8
static int bmdma_rw_buf(IDEDMA *dma, int is_write) { BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); IDEState *s = bmdma_active_if(bm); struct { uint32_t addr; uint32_t size; } prd; int l, len; for(;;) { l = s->io_buffer_size - s->io_buffer_index; i...
{ "code": [], "line_no": [] }
static int FUNC_0(IDEDMA *VAR_0, int VAR_1) { BMDMAState *bm = DO_UPCAST(BMDMAState, VAR_0, VAR_0); IDEState *s = bmdma_active_if(bm); struct { uint32_t addr; uint32_t size; } VAR_2; int VAR_3, VAR_4; for(;;) { VAR_3 = s->io_buffer_size - s->io_buffer_index; ...
[ "static int FUNC_0(IDEDMA *VAR_0, int VAR_1)\n{", "BMDMAState *bm = DO_UPCAST(BMDMAState, VAR_0, VAR_0);", "IDEState *s = bmdma_active_if(bm);", "struct {", "uint32_t addr;", "uint32_t size;", "} VAR_2;", "int VAR_3, VAR_4;", "for(;;) {", "VAR_3 = s->io_buffer_size - s->io_buffer_index;", "if (V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
10,568
static void gen_dmfc0 (DisasContext *ctx, int reg, int sel) { const char *rn = "invalid"; switch (reg) { case 0: switch (sel) { case 0: gen_op_mfc0_index(); rn = "Index"; break; case 1: // gen_op_dmfc0_mvpcontrol(); /* MT ASE */...
false
qemu
b29a0341d7ed7e7df4bf77a41db8e614f1ddb645
static void gen_dmfc0 (DisasContext *ctx, int reg, int sel) { const char *rn = "invalid"; switch (reg) { case 0: switch (sel) { case 0: gen_op_mfc0_index(); rn = "Index"; break; case 1: rn = "MVPControl"; case 2...
{ "code": [], "line_no": [] }
static void FUNC_0 (DisasContext *VAR_0, int VAR_1, int VAR_2) { const char *VAR_3 = "invalid"; switch (VAR_1) { case 0: switch (VAR_2) { case 0: gen_op_mfc0_index(); VAR_3 = "Index"; break; case 1: VAR_3 = "MVPControl"; ...
[ "static void FUNC_0 (DisasContext *VAR_0, int VAR_1, int VAR_2)\n{", "const char *VAR_3 = \"invalid\";", "switch (VAR_1) {", "case 0:\nswitch (VAR_2) {", "case 0:\ngen_op_mfc0_index();", "VAR_3 = \"Index\";", "break;", "case 1:\nVAR_3 = \"MVPControl\";", "case 2:\nVAR_3 = \"MVPConf0\";", "case 3:\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 27 ], [ 31, 35 ], [ 39, 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 59, 61 ], [ 63...
10,569
static void create_cpu(const char *cpu_model, qemu_irq *cbus_irq, qemu_irq *i8259_irq) { CPUMIPSState *env; MIPSCPU *cpu; int i; if (cpu_model == NULL) { #ifdef TARGET_MIPS64 cpu_model = "20Kc"; #else cpu_model = "24Kf"; #endif } for (i = 0; ...
false
qemu
bff384a4fbd5d0e86939092e74e766ef0f5f592c
static void create_cpu(const char *cpu_model, qemu_irq *cbus_irq, qemu_irq *i8259_irq) { CPUMIPSState *env; MIPSCPU *cpu; int i; if (cpu_model == NULL) { #ifdef TARGET_MIPS64 cpu_model = "20Kc"; #else cpu_model = "24Kf"; #endif } for (i = 0; ...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, qemu_irq *VAR_1, qemu_irq *VAR_2) { CPUMIPSState *env; MIPSCPU *cpu; int VAR_3; if (VAR_0 == NULL) { #ifdef TARGET_MIPS64 VAR_0 = "20Kc"; #else VAR_0 = "24Kf"; #endif } for (VAR_3 = 0; VAR_3 < smp_cpus; V...
[ "static void FUNC_0(const char *VAR_0,\nqemu_irq *VAR_1, qemu_irq *VAR_2)\n{", "CPUMIPSState *env;", "MIPSCPU *cpu;", "int VAR_3;", "if (VAR_0 == NULL) {", "#ifdef TARGET_MIPS64\nVAR_0 = \"20Kc\";", "#else\nVAR_0 = \"24Kf\";", "#endif\n}", "for (VAR_3 = 0; VAR_3 < smp_cpus; VAR_3++) {", "cpu = cpu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ...
10,570
void qed_release(BDRVQEDState *s) { aio_context_release(bdrv_get_aio_context(s->bs)); }
false
qemu
1f01e50b8330c24714ddca5841fdbb703076b121
void qed_release(BDRVQEDState *s) { aio_context_release(bdrv_get_aio_context(s->bs)); }
{ "code": [], "line_no": [] }
void FUNC_0(BDRVQEDState *VAR_0) { aio_context_release(bdrv_get_aio_context(VAR_0->bs)); }
[ "void FUNC_0(BDRVQEDState *VAR_0)\n{", "aio_context_release(bdrv_get_aio_context(VAR_0->bs));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,571
int v9fs_co_readlink(V9fsPDU *pdu, V9fsPath *path, V9fsString *buf) { int err; ssize_t len; V9fsState *s = pdu->s; if (v9fs_request_cancelled(pdu)) { return -EINTR; } buf->data = g_malloc(PATH_MAX); v9fs_path_read_lock(s); v9fs_co_run_in_worker( { ...
false
qemu
4fa4ce7107c6ec432f185307158c5df91ce54308
int v9fs_co_readlink(V9fsPDU *pdu, V9fsPath *path, V9fsString *buf) { int err; ssize_t len; V9fsState *s = pdu->s; if (v9fs_request_cancelled(pdu)) { return -EINTR; } buf->data = g_malloc(PATH_MAX); v9fs_path_read_lock(s); v9fs_co_run_in_worker( { ...
{ "code": [], "line_no": [] }
int FUNC_0(V9fsPDU *VAR_0, V9fsPath *VAR_1, V9fsString *VAR_2) { int VAR_3; ssize_t len; V9fsState *s = VAR_0->s; if (v9fs_request_cancelled(VAR_0)) { return -EINTR; } VAR_2->data = g_malloc(PATH_MAX); v9fs_path_read_lock(s); v9fs_co_run_in_worker( { ...
[ "int FUNC_0(V9fsPDU *VAR_0, V9fsPath *VAR_1, V9fsString *VAR_2)\n{", "int VAR_3;", "ssize_t len;", "V9fsState *s = VAR_0->s;", "if (v9fs_request_cancelled(VAR_0)) {", "return -EINTR;", "}", "VAR_2->data = g_malloc(PATH_MAX);", "v9fs_path_read_lock(s);", "v9fs_co_run_in_worker(\n{", "len = s->ops...
[ 0, 0, 0, 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 ...
10,572
int nbd_receive_negotiate(QIOChannel *ioc, const char *name, uint16_t *flags, QCryptoTLSCreds *tlscreds, const char *hostname, QIOChannel **outioc, off_t *size, Error **errp) { char buf[256]; uint64_t magic, s; int rc; ...
false
qemu
d1fdf257d52822695f5ace6c586e059aa17d4b79
int nbd_receive_negotiate(QIOChannel *ioc, const char *name, uint16_t *flags, QCryptoTLSCreds *tlscreds, const char *hostname, QIOChannel **outioc, off_t *size, Error **errp) { char buf[256]; uint64_t magic, s; int rc; ...
{ "code": [], "line_no": [] }
int FUNC_0(QIOChannel *VAR_0, const char *VAR_1, uint16_t *VAR_2, QCryptoTLSCreds *VAR_3, const char *VAR_4, QIOChannel **VAR_5, off_t *VAR_6, Error **VAR_7) { char VAR_8[256]; uint64_t magic, s; int VAR_9; bool zeroes...
[ "int FUNC_0(QIOChannel *VAR_0, const char *VAR_1, uint16_t *VAR_2,\nQCryptoTLSCreds *VAR_3, const char *VAR_4,\nQIOChannel **VAR_5,\noff_t *VAR_6, Error **VAR_7)\n{", "char VAR_8[256];", "uint64_t magic, s;", "int VAR_9;", "bool zeroes = true;", "TRACE(\"Receiving negotiation VAR_3=%p VAR_4=%s.\",\nVAR_3,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
10,573
void spapr_events_fdt_skel(void *fdt, uint32_t epow_irq) { uint32_t epow_irq_ranges[] = {cpu_to_be32(epow_irq), cpu_to_be32(1)}; uint32_t epow_interrupts[] = {cpu_to_be32(epow_irq), 0}; _FDT((fdt_begin_node(fdt, "event-sources"))); _FDT((fdt_property(fdt, "interrupt-controller", NULL, 0))); ...
false
qemu
31fe14d15d08d613ff38abb249911e98c7966b86
void spapr_events_fdt_skel(void *fdt, uint32_t epow_irq) { uint32_t epow_irq_ranges[] = {cpu_to_be32(epow_irq), cpu_to_be32(1)}; uint32_t epow_interrupts[] = {cpu_to_be32(epow_irq), 0}; _FDT((fdt_begin_node(fdt, "event-sources"))); _FDT((fdt_property(fdt, "interrupt-controller", NULL, 0))); ...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, uint32_t VAR_1) { uint32_t epow_irq_ranges[] = {cpu_to_be32(VAR_1), cpu_to_be32(1)}; uint32_t epow_interrupts[] = {cpu_to_be32(VAR_1), 0}; _FDT((fdt_begin_node(VAR_0, "event-sources"))); _FDT((fdt_property(VAR_0, "interrupt-controller", NULL, 0))); _FDT((fdt_proper...
[ "void FUNC_0(void *VAR_0, uint32_t VAR_1)\n{", "uint32_t epow_irq_ranges[] = {cpu_to_be32(VAR_1), cpu_to_be32(1)};", "uint32_t epow_interrupts[] = {cpu_to_be32(VAR_1), 0};", "_FDT((fdt_begin_node(VAR_0, \"event-sources\")));", "_FDT((fdt_property(VAR_0, \"interrupt-controller\", NULL, 0)));", "_FDT((fdt_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ] ]
10,574
static void vfio_put_device(VFIOPCIDevice *vdev) { QLIST_REMOVE(vdev, next); vdev->vbasedev.group = NULL; trace_vfio_put_device(vdev->vbasedev.fd); close(vdev->vbasedev.fd); g_free(vdev->vbasedev.name); if (vdev->msix) { g_free(vdev->msix); vdev->msix = NULL; } }
false
qemu
b47d8efa9f430c332bf96ce6eede169eb48422ad
static void vfio_put_device(VFIOPCIDevice *vdev) { QLIST_REMOVE(vdev, next); vdev->vbasedev.group = NULL; trace_vfio_put_device(vdev->vbasedev.fd); close(vdev->vbasedev.fd); g_free(vdev->vbasedev.name); if (vdev->msix) { g_free(vdev->msix); vdev->msix = NULL; } }
{ "code": [], "line_no": [] }
static void FUNC_0(VFIOPCIDevice *VAR_0) { QLIST_REMOVE(VAR_0, next); VAR_0->vbasedev.group = NULL; trace_vfio_put_device(VAR_0->vbasedev.fd); close(VAR_0->vbasedev.fd); g_free(VAR_0->vbasedev.name); if (VAR_0->msix) { g_free(VAR_0->msix); VAR_0->msix = NULL; } }
[ "static void FUNC_0(VFIOPCIDevice *VAR_0)\n{", "QLIST_REMOVE(VAR_0, next);", "VAR_0->vbasedev.group = NULL;", "trace_vfio_put_device(VAR_0->vbasedev.fd);", "close(VAR_0->vbasedev.fd);", "g_free(VAR_0->vbasedev.name);", "if (VAR_0->msix) {", "g_free(VAR_0->msix);", "VAR_0->msix = NULL;", "}", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
10,576
static int open_self_cmdline(void *cpu_env, int fd) { int fd_orig = -1; bool word_skipped = false; fd_orig = open("/proc/self/cmdline", O_RDONLY); if (fd_orig < 0) { return fd_orig; } while (true) { ssize_t nb_read; char buf[128]; char *cp_buf = buf...
false
qemu
ba4b3f668abf1fcde204c8f3185ea6edeec6eaa3
static int open_self_cmdline(void *cpu_env, int fd) { int fd_orig = -1; bool word_skipped = false; fd_orig = open("/proc/self/cmdline", O_RDONLY); if (fd_orig < 0) { return fd_orig; } while (true) { ssize_t nb_read; char buf[128]; char *cp_buf = buf...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, int VAR_1) { int VAR_2 = -1; bool word_skipped = false; VAR_2 = open("/proc/self/cmdline", O_RDONLY); if (VAR_2 < 0) { return VAR_2; } while (true) { ssize_t nb_read; char VAR_3[128]; char *VAR_4 = VAR_3; nb...
[ "static int FUNC_0(void *VAR_0, int VAR_1)\n{", "int VAR_2 = -1;", "bool word_skipped = false;", "VAR_2 = open(\"/proc/self/cmdline\", O_RDONLY);", "if (VAR_2 < 0) {", "return VAR_2;", "}", "while (true) {", "ssize_t nb_read;", "char VAR_3[128];", "char *VAR_4 = VAR_3;", "nb_read = read(VAR_2,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...