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
13,470
void qemu_spice_destroy_host_primary(SimpleSpiceDisplay *ssd) { dprint(1, "%s:\n", __FUNCTION__); qemu_mutex_unlock_iothread(); ssd->worker->destroy_primary_surface(ssd->worker, 0); qemu_mutex_lock_iothread(); }
true
qemu
196a778428989217b82de042725dc8eb29c8f8d8
void qemu_spice_destroy_host_primary(SimpleSpiceDisplay *ssd) { dprint(1, "%s:\n", __FUNCTION__); qemu_mutex_unlock_iothread(); ssd->worker->destroy_primary_surface(ssd->worker, 0); qemu_mutex_lock_iothread(); }
{ "code": [ " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_iothread();", " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_iothread();", " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_iothread();", " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_...
void FUNC_0(SimpleSpiceDisplay *VAR_0) { dprint(1, "%s:\n", __FUNCTION__); qemu_mutex_unlock_iothread(); VAR_0->worker->destroy_primary_surface(VAR_0->worker, 0); qemu_mutex_lock_iothread(); }
[ "void FUNC_0(SimpleSpiceDisplay *VAR_0)\n{", "dprint(1, \"%s:\\n\", __FUNCTION__);", "qemu_mutex_unlock_iothread();", "VAR_0->worker->destroy_primary_surface(VAR_0->worker, 0);", "qemu_mutex_lock_iothread();", "}" ]
[ 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,471
static void copy_context_reset(AVCodecContext *avctx) { av_opt_free(avctx); av_freep(&avctx->rc_override); av_freep(&avctx->intra_matrix); av_freep(&avctx->inter_matrix); av_freep(&avctx->extradata); av_freep(&avctx->subtitle_header); av_buffer_unref(&avctx->hw_frames_ctx); avctx->subtit...
true
FFmpeg
cac8de2da5c4935773128335c11b806faa73e19d
static void copy_context_reset(AVCodecContext *avctx) { av_opt_free(avctx); av_freep(&avctx->rc_override); av_freep(&avctx->intra_matrix); av_freep(&avctx->inter_matrix); av_freep(&avctx->extradata); av_freep(&avctx->subtitle_header); av_buffer_unref(&avctx->hw_frames_ctx); avctx->subtit...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0) { av_opt_free(VAR_0); av_freep(&VAR_0->rc_override); av_freep(&VAR_0->intra_matrix); av_freep(&VAR_0->inter_matrix); av_freep(&VAR_0->extradata); av_freep(&VAR_0->subtitle_header); av_buffer_unref(&VAR_0->hw_frames_ctx); VAR_0->subtitle_header_si...
[ "static void FUNC_0(AVCodecContext *VAR_0)\n{", "av_opt_free(VAR_0);", "av_freep(&VAR_0->rc_override);", "av_freep(&VAR_0->intra_matrix);", "av_freep(&VAR_0->inter_matrix);", "av_freep(&VAR_0->extradata);", "av_freep(&VAR_0->subtitle_header);", "av_buffer_unref(&VAR_0->hw_frames_ctx);", "VAR_0->subt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ] ]
13,472
int ff_audio_mix_init(AVAudioResampleContext *avr) { int ret; if (avr->internal_sample_fmt != AV_SAMPLE_FMT_S16P && avr->internal_sample_fmt != AV_SAMPLE_FMT_FLTP) { av_log(avr, AV_LOG_ERROR, "Unsupported internal format for " "mixing: %s\n", av_get_sample_...
true
FFmpeg
8821ae649e61097ec57ca58472c3e4239c82913c
int ff_audio_mix_init(AVAudioResampleContext *avr) { int ret; if (avr->internal_sample_fmt != AV_SAMPLE_FMT_S16P && avr->internal_sample_fmt != AV_SAMPLE_FMT_FLTP) { av_log(avr, AV_LOG_ERROR, "Unsupported internal format for " "mixing: %s\n", av_get_sample_...
{ "code": [ " if (!avr->am->matrix) {" ], "line_no": [ 27 ] }
int FUNC_0(AVAudioResampleContext *VAR_0) { int VAR_1; if (VAR_0->internal_sample_fmt != AV_SAMPLE_FMT_S16P && VAR_0->internal_sample_fmt != AV_SAMPLE_FMT_FLTP) { av_log(VAR_0, AV_LOG_ERROR, "Unsupported internal format for " "mixing: %s\n", av_get_sample_f...
[ "int FUNC_0(AVAudioResampleContext *VAR_0)\n{", "int VAR_1;", "if (VAR_0->internal_sample_fmt != AV_SAMPLE_FMT_S16P &&\nVAR_0->internal_sample_fmt != AV_SAMPLE_FMT_FLTP) {", "av_log(VAR_0, AV_LOG_ERROR, \"Unsupported internal format for \"\n\"mixing: %s\\n\",\nav_get_sample_fmt_name(VAR_0->internal_sample_fmt...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 45, 47, 49, 51, 53, 55, 57 ], [ 59 ], ...
13,473
static inline void RENAME(rgb16ToY)(uint8_t *dst, uint8_t *src, int width) { int i; for(i=0; i<width; i++) { int d= ((uint16_t*)src)[i]; int r= d&0x1F; int g= (d>>5)&0x3F; int b= (d>>11)&0x1F; dst[i]= ((2*RY*r + GY*g + 2*BY*b)>>(RGB2YUV_SHIFT-2)) + 16; } }
true
FFmpeg
2da0d70d5eebe42f9fcd27ee554419ebe2a5da06
static inline void RENAME(rgb16ToY)(uint8_t *dst, uint8_t *src, int width) { int i; for(i=0; i<width; i++) { int d= ((uint16_t*)src)[i]; int r= d&0x1F; int g= (d>>5)&0x3F; int b= (d>>11)&0x1F; dst[i]= ((2*RY*r + GY*g + 2*BY*b)>>(RGB2YUV_SHIFT-2)) + 16; } }
{ "code": [ "\tint i;", "\tint i;", "\tint i;", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", ...
static inline void FUNC_0(rgb16ToY)(uint8_t *dst, uint8_t *src, int width) { int VAR_0; for(VAR_0=0; VAR_0<width; VAR_0++) { int d= ((uint16_t*)src)[VAR_0]; int r= d&0x1F; int g= (d>>5)&0x3F; int b= (d>>11)&0x1F; dst[VAR_0]= ((2*RY*r + GY*g + 2*BY*b)>>(RGB2YUV_SHIFT-2)) + 16; } }
[ "static inline void FUNC_0(rgb16ToY)(uint8_t *dst, uint8_t *src, int width)\n{", "int VAR_0;", "for(VAR_0=0; VAR_0<width; VAR_0++)", "{", "int d= ((uint16_t*)src)[VAR_0];", "int r= d&0x1F;", "int g= (d>>5)&0x3F;", "int b= (d>>11)&0x1F;", "dst[VAR_0]= ((2*RY*r + GY*g + 2*BY*b)>>(RGB2YUV_SHIFT-2)) + 1...
[ 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
13,474
static void aux_slave_dev_print(Monitor *mon, DeviceState *dev, int indent) { AUXBus *bus = AUX_BUS(qdev_get_parent_bus(dev)); AUXSlave *s; /* Don't print anything if the device is I2C "bridge". */ if (aux_bus_is_bridge(bus, dev)) { return; } s = AUX_SLAVE(dev); monito...
true
qemu
e0dadc1e9ef1f35208e5d2af9c7740c18a0b769f
static void aux_slave_dev_print(Monitor *mon, DeviceState *dev, int indent) { AUXBus *bus = AUX_BUS(qdev_get_parent_bus(dev)); AUXSlave *s; if (aux_bus_is_bridge(bus, dev)) { return; } s = AUX_SLAVE(dev); monitor_printf(mon, "%*smemory " TARGET_FMT_plx "/" TARGET_FMT_...
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, DeviceState *VAR_1, int VAR_2) { AUXBus *bus = AUX_BUS(qdev_get_parent_bus(VAR_1)); AUXSlave *s; if (aux_bus_is_bridge(bus, VAR_1)) { return; } s = AUX_SLAVE(VAR_1); monitor_printf(VAR_0, "%*smemory " TARGET_FMT_plx "/" TARGET_FMT_pl...
[ "static void FUNC_0(Monitor *VAR_0, DeviceState *VAR_1, int VAR_2)\n{", "AUXBus *bus = AUX_BUS(qdev_get_parent_bus(VAR_1));", "AUXSlave *s;", "if (aux_bus_is_bridge(bus, VAR_1)) {", "return;", "}", "s = AUX_SLAVE(VAR_1);", "monitor_printf(VAR_0, \"%*smemory \" TARGET_FMT_plx \"/\" TARGET_FMT_plx \"\\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25, 27, 29, 31 ], [ 33 ] ]
13,475
void palette8tobgr16(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette) { unsigned i; for(i=0; i<num_pixels; i++) ((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[ src[i] ]); }
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
void palette8tobgr16(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette) { unsigned i; for(i=0; i<num_pixels; i++) ((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[ src[i] ]); }
{ "code": [ "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "void palette8tobgr16(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tuns...
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned VAR_2, const uint8_t *VAR_3) { unsigned VAR_4; for(VAR_4=0; VAR_4<VAR_2; VAR_4++) ((uint16_t *)VAR_1)[VAR_4] = bswap_16(((uint16_t *)VAR_3)[ VAR_0[VAR_4] ]); }
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned VAR_2, const uint8_t *VAR_3)\n{", "unsigned VAR_4;", "for(VAR_4=0; VAR_4<VAR_2; VAR_4++)", "((uint16_t *)VAR_1)[VAR_4] = bswap_16(((uint16_t *)VAR_3)[ VAR_0[VAR_4] ]);", "}" ]
[ 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
13,476
static int vda_h264_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) { VDAContext *vda = avctx->internal->hwaccel_priv_data; struct vda_context *vda_ctx = avctx->hwaccel_context; void...
false
FFmpeg
67afcefb35932b420998f6f3fda46c7c85848a3f
static int vda_h264_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) { VDAContext *vda = avctx->internal->hwaccel_priv_data; struct vda_context *vda_ctx = avctx->hwaccel_context; void...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, uint32_t VAR_2) { VDAContext *vda = VAR_0->internal->hwaccel_priv_data; struct vda_context *VAR_3 = VAR_0->hwaccel_context; void *VAR_4; i...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1,\nuint32_t VAR_2)\n{", "VDAContext *vda = VAR_0->internal->hwaccel_priv_data;", "struct vda_context *VAR_3 = VAR_0->hwaccel_context;", "void *VAR_4;", "if (!VAR_3->decoder)\nreturn -1;", "VAR_4 = av_fast_realloc(vd...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23, 25, 27 ], [ 29, 31 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ] ]
13,477
static void print_tag(const char *str, unsigned int tag, int size) { dprintf(NULL, "%s: tag=%c%c%c%c size=0x%x\n", str, tag & 0xff, (tag >> 8) & 0xff, (tag >> 16) & 0xff, (tag >> 24) & 0xff, size); }
false
FFmpeg
3e8c4f96890294e1b7de2d22ab3cfec7e1d7c48f
static void print_tag(const char *str, unsigned int tag, int size) { dprintf(NULL, "%s: tag=%c%c%c%c size=0x%x\n", str, tag & 0xff, (tag >> 8) & 0xff, (tag >> 16) & 0xff, (tag >> 24) & 0xff, size); }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, unsigned int VAR_1, int VAR_2) { dprintf(NULL, "%s: VAR_1=%c%c%c%c VAR_2=0x%x\n", VAR_0, VAR_1 & 0xff, (VAR_1 >> 8) & 0xff, (VAR_1 >> 16) & 0xff, (VAR_1 >> 24) & 0xff, VAR_2); }
[ "static void FUNC_0(const char *VAR_0, unsigned int VAR_1, int VAR_2)\n{", "dprintf(NULL, \"%s: VAR_1=%c%c%c%c VAR_2=0x%x\\n\",\nVAR_0, VAR_1 & 0xff,\n(VAR_1 >> 8) & 0xff,\n(VAR_1 >> 16) & 0xff,\n(VAR_1 >> 24) & 0xff,\nVAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15 ], [ 17 ] ]
13,478
static void h264_loop_filter_strength_mmx2( int16_t bS[2][4][4], uint8_t nnz[40], int8_t ref[2][40], int16_t mv[2][40][2], int bidir, int edges, int step, int mask_mv0, int mask_mv1, int field ) { __asm__ volatile( "movq %0, %%mm7 \n" "movq %1, %%mm6 \...
false
FFmpeg
b829b4ce29185625ab8cbcf0ce7a83cf8181ac3b
static void h264_loop_filter_strength_mmx2( int16_t bS[2][4][4], uint8_t nnz[40], int8_t ref[2][40], int16_t mv[2][40][2], int bidir, int edges, int step, int mask_mv0, int mask_mv1, int field ) { __asm__ volatile( "movq %0, %%mm7 \n" "movq %1, %%mm6 \...
{ "code": [], "line_no": [] }
static void FUNC_0( int16_t VAR_0[2][4][4], uint8_t VAR_1[40], int8_t VAR_2[2][40], int16_t VAR_3[2][40][2], int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9 ) { __asm__ volatile( "movq %0, %%mm7 \n" "movq %1, %%mm6 \n" ::"m"(f...
[ "static void FUNC_0( int16_t VAR_0[2][4][4], uint8_t VAR_1[40], int8_t VAR_2[2][40], int16_t VAR_3[2][40][2],\nint VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9 ) {", "__asm__ volatile(\n\"movq %0, %%mm7 \\n\"\n\"movq %1, %%mm6 \\n\"\n::\"m\"(ff_pb_1), \"m\"(ff_pb_3)\n);", "if(VAR_9)\n__asm__ vol...
[ 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71,...
13,479
void float_to_int16_vfp(int16_t *dst, const float *src, int len) { asm volatile( "fldmias %[src]!, {s16-s23}\n\t" "ftosis s0, s16\n\t" "ftosis s1, s17\n\t" "ftosis s2, s18\n\t" "ftosis s3, s19\n\t" "ftosis s4, s20\n\t" ...
true
FFmpeg
28215b3700723da0c0beb93945702b6fb2b3596d
void float_to_int16_vfp(int16_t *dst, const float *src, int len) { asm volatile( "fldmias %[src]!, {s16-s23}\n\t" "ftosis s0, s16\n\t" "ftosis s1, s17\n\t" "ftosis s2, s18\n\t" "ftosis s3, s19\n\t" "ftosis s4, s20\n\t" ...
{ "code": [ " asm volatile(\r", " \"1:\\n\\t\"\r", " \"bgt 1b\\n\\t\"\r", " : \"s0\", \"s1\", \"s2\", \"s3\", \"s4\", \"s5\", \"s6\", \"s7\",\r", " \"s16\", \"s17\", \"s18\", \"s19\", \"s20\", \"s21\", \"s22\", \"s23\",\r", " \"cc\", \"memory...
void FUNC_0(int16_t *VAR_0, const float *VAR_1, int VAR_2) { asm volatile( "fldmias %[VAR_1]!, {s16-s23}\n\t" "ftosis s0, s16\n\t" "ftosis s1, s17\n\t" "ftosis s2, s18\n\t" "ftosis s3, s19\n\t" "ftosis s4, s20\n\t" "fto...
[ "void FUNC_0(int16_t *VAR_0, const float *VAR_1, int VAR_2)\n{", "asm volatile(\n\"fldmias %[VAR_1]!, {s16-s23}\\n\\t\"", "\"ftosis s0, s16\\n\\t\"\n\"ftosis s1, s17\\n\\t\"\n\"ftosis s2, s18\\n\\t\"\n\"ftosis s3, s19\\n\\t\"\n\"ftosis s4, s20\\n\\t\"\n\"ftosis s5, s21\\n\\t\"\n\"ftos...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,...
13,480
int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src) { dst->pts = src->pts; dst->pos = av_frame_get_pkt_pos(src); dst->format = src->format; switch (dst->type) { case AVMEDIA_TYPE_VIDEO: dst->video->w = src->width; dst->video->h ...
true
FFmpeg
91141f2a13bcb36b849335d1d10c01b596d773bb
int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src) { dst->pts = src->pts; dst->pos = av_frame_get_pkt_pos(src); dst->format = src->format; switch (dst->type) { case AVMEDIA_TYPE_VIDEO: dst->video->w = src->width; dst->video->h ...
{ "code": [], "line_no": [] }
int FUNC_0(AVFilterBufferRef *VAR_0, const AVFrame *VAR_1) { VAR_0->pts = VAR_1->pts; VAR_0->pos = av_frame_get_pkt_pos(VAR_1); VAR_0->format = VAR_1->format; switch (VAR_0->type) { case AVMEDIA_TYPE_VIDEO: VAR_0->video->w = VAR_1->width; VAR_0->vide...
[ "int FUNC_0(AVFilterBufferRef *VAR_0, const AVFrame *VAR_1)\n{", "VAR_0->pts = VAR_1->pts;", "VAR_0->pos = av_frame_get_pkt_pos(VAR_1);", "VAR_0->format = VAR_1->format;", "switch (VAR_0->type) {", "case AVMEDIA_TYPE_VIDEO:\nVAR_0->video->w = VAR_1->width;", "VAR_0->video->h ...
[ 0, 0, 0, 0, 0, 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 ...
13,481
void coroutine_fn qemu_coroutine_yield(void) { Coroutine *self = qemu_coroutine_self(); Coroutine *to = self->caller; trace_qemu_coroutine_yield(self, to); if (!to) { fprintf(stderr, "Co-routine is yielding to no one\n"); abort(); } self->caller = NULL; corout...
true
qemu
315a1309defd8ddf910c6c17e28cbbd7faf92f2e
void coroutine_fn qemu_coroutine_yield(void) { Coroutine *self = qemu_coroutine_self(); Coroutine *to = self->caller; trace_qemu_coroutine_yield(self, to); if (!to) { fprintf(stderr, "Co-routine is yielding to no one\n"); abort(); } self->caller = NULL; corout...
{ "code": [ " coroutine_swap(self, to);" ], "line_no": [ 27 ] }
void VAR_0 qemu_coroutine_yield(void) { Coroutine *self = qemu_coroutine_self(); Coroutine *to = self->caller; trace_qemu_coroutine_yield(self, to); if (!to) { fprintf(stderr, "Co-routine is yielding to no one\n"); abort(); } self->caller = NULL; coroutine_swa...
[ "void VAR_0 qemu_coroutine_yield(void)\n{", "Coroutine *self = qemu_coroutine_self();", "Coroutine *to = self->caller;", "trace_qemu_coroutine_yield(self, to);", "if (!to) {", "fprintf(stderr, \"Co-routine is yielding to no one\\n\");", "abort();", "}", "self->caller = NULL;", "coroutine_swap(self...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
13,482
int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt, const char *filename, void *logctx, unsigned int offset, unsigned int max_probe_size) { AVProbeData pd = { filename ? filename : "", NULL, -offset }; unsigned char *buf = NULL; int pr...
true
FFmpeg
f19341e17a0ece29613cc583daaee6ec58aea9c5
int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt, const char *filename, void *logctx, unsigned int offset, unsigned int max_probe_size) { AVProbeData pd = { filename ? filename : "", NULL, -offset }; unsigned char *buf = NULL; int pr...
{ "code": [ "int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt,", " const char *filename, void *logctx,", "int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt,", " const char *filename, void *logctx,", " ...
int FUNC_0(ByteIOContext **VAR_0, AVInputFormat **VAR_1, const char *VAR_2, void *VAR_3, unsigned int VAR_4, unsigned int VAR_5) { AVProbeData pd = { VAR_2 ? VAR_2 : "", NULL, -VAR_4 }; unsigned char *VAR_6 = NULL; int VAR_7; if (!VAR_5) { ...
[ "int FUNC_0(ByteIOContext **VAR_0, AVInputFormat **VAR_1,\nconst char *VAR_2, void *VAR_3,\nunsigned int VAR_4, unsigned int VAR_5)\n{", "AVProbeData pd = { VAR_2 ? VAR_2 : \"\", NULL, -VAR_4 };", "unsigned char *VAR_6 = NULL;", "int VAR_7;", "if (!VAR_5) {", "VAR_5 = PROBE_BUF_MAX;", "} else if (VAR_5 ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
13,484
void hmp_sendkey(Monitor *mon, const QDict *qdict) { const char *keys = qdict_get_str(qdict, "keys"); KeyValueList *keylist, *head = NULL, *tmp = NULL; int has_hold_time = qdict_haskey(qdict, "hold-time"); int hold_time = qdict_get_try_int(qdict, "hold-time", -1); Error *err = NULL; char ...
true
qemu
64ffbe04eaafebf4045a3ace52a360c14959d196
void hmp_sendkey(Monitor *mon, const QDict *qdict) { const char *keys = qdict_get_str(qdict, "keys"); KeyValueList *keylist, *head = NULL, *tmp = NULL; int has_hold_time = qdict_haskey(qdict, "hold-time"); int hold_time = qdict_get_try_int(qdict, "hold-time", -1); Error *err = NULL; char ...
{ "code": [ " char keyname_buf[16];", " pstrcpy(keyname_buf, sizeof(keyname_buf), keys);", " if (!strncmp(keyname_buf, \"<\", 1) && keyname_len == 1) {", " pstrcpy(keyname_buf, sizeof(keyname_buf), \"less\");", " keyname_buf[keyname_len] = 0;", " if (s...
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2"); KeyValueList *keylist, *head = NULL, *tmp = NULL; int VAR_3 = qdict_haskey(VAR_1, "hold-time"); int VAR_4 = qdict_get_try_int(VAR_1, "hold-time", -1); Error *err = NULL; char VAR_5[16]; ...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");", "KeyValueList *keylist, *head = NULL, *tmp = NULL;", "int VAR_3 = qdict_haskey(VAR_1, \"hold-time\");", "int VAR_4 = qdict_get_try_int(VAR_1, \"hold-time\", -1);", "Error *err = NULL;", "char VA...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
13,485
static void s390_cpu_class_init(ObjectClass *oc, void *data) { S390CPUClass *scc = S390_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(scc); DeviceClass *dc = DEVICE_CLASS(oc); scc->parent_realize = dc->realize; dc->realize = s390_cpu_realizefn; scc->parent_reset = cc->reset; cc->reset ...
true
qemu
9b4f38e182d18cac217f04b8b7fddf760a5b9d44
static void s390_cpu_class_init(ObjectClass *oc, void *data) { S390CPUClass *scc = S390_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(scc); DeviceClass *dc = DEVICE_CLASS(oc); scc->parent_realize = dc->realize; dc->realize = s390_cpu_realizefn; scc->parent_reset = cc->reset; cc->reset ...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { S390CPUClass *scc = S390_CPU_CLASS(VAR_0); CPUClass *cc = CPU_CLASS(scc); DeviceClass *dc = DEVICE_CLASS(VAR_0); scc->parent_realize = dc->realize; dc->realize = s390_cpu_realizefn; scc->parent_reset = cc->reset; cc->reset = s...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "S390CPUClass *scc = S390_CPU_CLASS(VAR_0);", "CPUClass *cc = CPU_CLASS(scc);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "scc->parent_realize = dc->realize;", "dc->realize = s390_cpu_realizefn;", "scc->parent_reset = cc->reset;", "cc->reset = ...
[ 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 41, 43 ], [ 45 ], [ 47 ] ]
13,486
static void hpet_device_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = hpet_realize; dc->reset = hpet_reset; dc->vmsd = &vmstate_hpet; dc->props = hpet_device_properties; }
true
qemu
e4f4fb1eca795e36f363b4647724221e774523c1
static void hpet_device_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = hpet_realize; dc->reset = hpet_reset; dc->vmsd = &vmstate_hpet; dc->props = hpet_device_properties; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = hpet_realize; dc->reset = hpet_reset; dc->vmsd = &vmstate_hpet; dc->props = hpet_device_properties; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = hpet_realize;", "dc->reset = hpet_reset;", "dc->vmsd = &vmstate_hpet;", "dc->props = hpet_device_properties;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 22 ] ]
13,487
static void vp8_filter_mb_row(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) { VP8Context *s = avctx->priv_data; VP8ThreadData *td = &s->thread_data[threadnr]; int mb_x, mb_y = td->thread_mb_pos >> 16, num_jobs = s->num_jobs; AVFrame *curframe = s->curfr...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
static void vp8_filter_mb_row(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) { VP8Context *s = avctx->priv_data; VP8ThreadData *td = &s->thread_data[threadnr]; int mb_x, mb_y = td->thread_mb_pos >> 16, num_jobs = s->num_jobs; AVFrame *curframe = s->curfr...
{ "code": [ " int jobnr, int threadnr)", " filter_mb(s, dst, f, mb_x, mb_y);" ], "line_no": [ 3, 101 ] }
static void FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3) { VP8Context *s = VAR_0->priv_data; VP8ThreadData *td = &s->thread_data[VAR_3]; int VAR_4, VAR_5 = td->thread_mb_pos >> 16, VAR_6 = s->VAR_6; AVFrame *curframe = s->curframe->tf.f; VP8Ma...
[ "static void FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint VAR_2, int VAR_3)\n{", "VP8Context *s = VAR_0->priv_data;", "VP8ThreadData *td = &s->thread_data[VAR_3];", "int VAR_4, VAR_5 = td->thread_mb_pos >> 16, VAR_6 = s->VAR_6;", "AVFrame *curframe = s->curframe->tf.f;", "VP8Macroblock *mb;", "VP8Thr...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27 ], [ 31, 33 ], [ 35, 37 ], [ 41, 43 ], [ 45, 47 ], [ 49, 51 ], [ 53, 55 ...
13,489
static int cllc_decode_frame(AVCodecContext *avctx, void *data, int *got_picture_ptr, AVPacket *avpkt) { CLLCContext *ctx = avctx->priv_data; AVFrame *pic = data; uint8_t *src = avpkt->data; uint32_t info_tag, info_offset; int data_size; GetBitContext gb; ...
false
FFmpeg
e6fb844f7b736e72da364032d251283bce9e63ad
static int cllc_decode_frame(AVCodecContext *avctx, void *data, int *got_picture_ptr, AVPacket *avpkt) { CLLCContext *ctx = avctx->priv_data; AVFrame *pic = data; uint8_t *src = avpkt->data; uint32_t info_tag, info_offset; int data_size; GetBitContext gb; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { CLLCContext *ctx = VAR_0->priv_data; AVFrame *pic = VAR_1; uint8_t *src = VAR_3->VAR_1; uint32_t info_tag, info_offset; int VAR_4; GetBitContext gb; int VAR_5, VAR_6; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "CLLCContext *ctx = VAR_0->priv_data;", "AVFrame *pic = VAR_1;", "uint8_t *src = VAR_3->VAR_1;", "uint32_t info_tag, info_offset;", "int VAR_4;", "GetBitContext gb;", "int VAR_5, VAR_6;", "info_offset = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
13,490
static void test_event_c(TestEventData *data, const void *unused) { QDict *d, *d_data, *d_b; UserDefOne b; UserDefZero z; z.integer = 2; b.base = &z; b.string = g_strdup("test1"); b.has_enum1 = false; d_b = qdict_new(); qdict_put(d_b, "integer"...
false
qemu
ddf21908961073199f3d186204da4810f2ea150b
static void test_event_c(TestEventData *data, const void *unused) { QDict *d, *d_data, *d_b; UserDefOne b; UserDefZero z; z.integer = 2; b.base = &z; b.string = g_strdup("test1"); b.has_enum1 = false; d_b = qdict_new(); qdict_put(d_b, "integer"...
{ "code": [], "line_no": [] }
static void FUNC_0(TestEventData *VAR_0, const void *VAR_1) { QDict *d, *d_data, *d_b; UserDefOne b; UserDefZero z; z.integer = 2; b.base = &z; b.string = g_strdup("test1"); b.has_enum1 = false; d_b = qdict_new(); qdict_put(d_b, "integer", qint...
[ "static void FUNC_0(TestEventData *VAR_0,\nconst void *VAR_1)\n{", "QDict *d, *d_data, *d_b;", "UserDefOne b;", "UserDefZero z;", "z.integer = 2;", "b.base = &z;", "b.string = g_strdup(\"test1\");", "b.has_enum1 = false;", "d_b = qdict_new();", "qdict_put(d_b, \"integer\", qint_from_int(2));", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], ...
13,491
static void enable_logging(void) { ga_enable_logging(ga_state); }
false
qemu
f22d85e9e67262db34504f4079745f9843da6a92
static void enable_logging(void) { ga_enable_logging(ga_state); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { ga_enable_logging(ga_state); }
[ "static void FUNC_0(void)\n{", "ga_enable_logging(ga_state);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,492
static void h264_v_loop_filter_luma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0) { h264_loop_filter_luma_c(pix, stride, 1, alpha, beta, tc0); }
false
FFmpeg
dd561441b1e849df7d8681c6f32af82d4088dafd
static void h264_v_loop_filter_luma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0) { h264_loop_filter_luma_c(pix, stride, 1, alpha, beta, tc0); }
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int8_t *VAR_4) { h264_loop_filter_luma_c(VAR_0, VAR_1, 1, VAR_2, VAR_3, VAR_4); }
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int8_t *VAR_4)\n{", "h264_loop_filter_luma_c(VAR_0, VAR_1, 1, VAR_2, VAR_3, VAR_4);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,493
static void qemu_aio_wait_nonblocking(void) { qemu_notify_event(); qemu_aio_wait(); }
false
qemu
c4d9d19645a484298a67e9021060bc7c2b081d0f
static void qemu_aio_wait_nonblocking(void) { qemu_notify_event(); qemu_aio_wait(); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { qemu_notify_event(); qemu_aio_wait(); }
[ "static void FUNC_0(void)\n{", "qemu_notify_event();", "qemu_aio_wait();", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
13,495
void qmp_block_job_set_speed(const char *device, int64_t value, Error **errp) { BlockJob *job = find_block_job(device); if (!job) { error_set(errp, QERR_DEVICE_NOT_ACTIVE, device); return; } if (block_job_set_speed(job, value) < 0) { error_set(errp, QERR_NOT_SUPPORTED...
false
qemu
9e6636c72d8d6f0605e23ed820c8487686882b12
void qmp_block_job_set_speed(const char *device, int64_t value, Error **errp) { BlockJob *job = find_block_job(device); if (!job) { error_set(errp, QERR_DEVICE_NOT_ACTIVE, device); return; } if (block_job_set_speed(job, value) < 0) { error_set(errp, QERR_NOT_SUPPORTED...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, int64_t VAR_1, Error **VAR_2) { BlockJob *job = find_block_job(VAR_0); if (!job) { error_set(VAR_2, QERR_DEVICE_NOT_ACTIVE, VAR_0); return; } if (block_job_set_speed(job, VAR_1) < 0) { error_set(VAR_2, QERR_NOT_SUPPORTED); } }
[ "void FUNC_0(const char *VAR_0, int64_t VAR_1, Error **VAR_2)\n{", "BlockJob *job = find_block_job(VAR_0);", "if (!job) {", "error_set(VAR_2, QERR_DEVICE_NOT_ACTIVE, VAR_0);", "return;", "}", "if (block_job_set_speed(job, VAR_1) < 0) {", "error_set(VAR_2, QERR_NOT_SUPPORTED);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
13,496
int virtqueue_pop(VirtQueue *vq, VirtQueueElement *elem) { unsigned int i, head, max; hwaddr desc_pa = vq->vring.desc; VirtIODevice *vdev = vq->vdev; if (!virtqueue_num_heads(vq, vq->last_avail_idx)) return 0; /* When we start there are none of either input nor output. */ ele...
false
qemu
51b19ebe4320f3dcd93cea71235c1219318ddfd2
int virtqueue_pop(VirtQueue *vq, VirtQueueElement *elem) { unsigned int i, head, max; hwaddr desc_pa = vq->vring.desc; VirtIODevice *vdev = vq->vdev; if (!virtqueue_num_heads(vq, vq->last_avail_idx)) return 0; elem->out_num = elem->in_num = 0; max = vq->vring.num; ...
{ "code": [], "line_no": [] }
int FUNC_0(VirtQueue *VAR_0, VirtQueueElement *VAR_1) { unsigned int VAR_2, VAR_3, VAR_4; hwaddr desc_pa = VAR_0->vring.desc; VirtIODevice *vdev = VAR_0->vdev; if (!virtqueue_num_heads(VAR_0, VAR_0->last_avail_idx)) return 0; VAR_1->out_num = VAR_1->in_num = 0; VAR_4 ...
[ "int FUNC_0(VirtQueue *VAR_0, VirtQueueElement *VAR_1)\n{", "unsigned int VAR_2, VAR_3, VAR_4;", "hwaddr desc_pa = VAR_0->vring.desc;", "VirtIODevice *vdev = VAR_0->vdev;", "if (!virtqueue_num_heads(VAR_0, VAR_0->last_avail_idx))\nreturn 0;", "VAR_1->out_num = VAR_1->in_num = 0;", "VAR_4 = VAR_0->vring....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ], [...
13,497
void qemu_main_loop_start(void) { qemu_system_ready = 1; qemu_cond_broadcast(&qemu_system_cond); }
false
qemu
fa7d1867578b6a1afc39d4ece8629a1e92baddd7
void qemu_main_loop_start(void) { qemu_system_ready = 1; qemu_cond_broadcast(&qemu_system_cond); }
{ "code": [], "line_no": [] }
void FUNC_0(void) { qemu_system_ready = 1; qemu_cond_broadcast(&qemu_system_cond); }
[ "void FUNC_0(void)\n{", "qemu_system_ready = 1;", "qemu_cond_broadcast(&qemu_system_cond);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
13,498
static void spr_read_tbl (DisasContext *ctx, int gprn, int sprn) { if (use_icount) { gen_io_start(); } gen_helper_load_tbl(cpu_gpr[gprn], cpu_env); if (use_icount) { gen_io_end(); gen_stop_exception(ctx); } }
false
qemu
bd79255d2571a3c68820117caf94ea9afe1d527e
static void spr_read_tbl (DisasContext *ctx, int gprn, int sprn) { if (use_icount) { gen_io_start(); } gen_helper_load_tbl(cpu_gpr[gprn], cpu_env); if (use_icount) { gen_io_end(); gen_stop_exception(ctx); } }
{ "code": [], "line_no": [] }
static void FUNC_0 (DisasContext *VAR_0, int VAR_1, int VAR_2) { if (use_icount) { gen_io_start(); } gen_helper_load_tbl(cpu_gpr[VAR_1], cpu_env); if (use_icount) { gen_io_end(); gen_stop_exception(VAR_0); } }
[ "static void FUNC_0 (DisasContext *VAR_0, int VAR_1, int VAR_2)\n{", "if (use_icount) {", "gen_io_start();", "}", "gen_helper_load_tbl(cpu_gpr[VAR_1], cpu_env);", "if (use_icount) {", "gen_io_end();", "gen_stop_exception(VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
13,500
static void arm_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); ARMCPU *cpu = ARM_CPU(obj); static bool inited; cs->env_ptr = &cpu->env; cpu_exec_init(&cpu->env); cpu->cp_regs = g_hash_table_new_full(g_int_hash, g_int_equal, g_free, g_free); ...
false
qemu
98128601ac8ff23df8a4c48acff00f9614613463
static void arm_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); ARMCPU *cpu = ARM_CPU(obj); static bool inited; cs->env_ptr = &cpu->env; cpu_exec_init(&cpu->env); cpu->cp_regs = g_hash_table_new_full(g_int_hash, g_int_equal, g_free, g_free); ...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { CPUState *cs = CPU(VAR_0); ARMCPU *cpu = ARM_CPU(VAR_0); static bool VAR_1; cs->env_ptr = &cpu->env; cpu_exec_init(&cpu->env); cpu->cp_regs = g_hash_table_new_full(g_int_hash, g_int_equal, g_free, g_free); ...
[ "static void FUNC_0(Object *VAR_0)\n{", "CPUState *cs = CPU(VAR_0);", "ARMCPU *cpu = ARM_CPU(VAR_0);", "static bool VAR_1;", "cs->env_ptr = &cpu->env;", "cpu_exec_init(&cpu->env);", "cpu->cp_regs = g_hash_table_new_full(g_int_hash, g_int_equal,\ng_free, g_free);", "#ifndef CONFIG_USER_ONLY\nif (kvm_en...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 23, 27 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49, 51 ], [ 53, 55 ], [ 57, 69 ], [ 71 ...
13,501
uint32_t ide_status_read(void *opaque, uint32_t addr) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); int ret; if ((!bus->ifs[0].bs && !bus->ifs[1].bs) || (s != bus->ifs && !s->bs)) ret = 0; else ret = s->status; #ifdef DEBUG_IDE printf("ide: rea...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
uint32_t ide_status_read(void *opaque, uint32_t addr) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); int ret; if ((!bus->ifs[0].bs && !bus->ifs[1].bs) || (s != bus->ifs && !s->bs)) ret = 0; else ret = s->status; #ifdef DEBUG_IDE printf("ide: rea...
{ "code": [], "line_no": [] }
uint32_t FUNC_0(void *opaque, uint32_t addr) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); int VAR_0; if ((!bus->ifs[0].bs && !bus->ifs[1].bs) || (s != bus->ifs && !s->bs)) VAR_0 = 0; else VAR_0 = s->status; #ifdef DEBUG_IDE printf("ide: read s...
[ "uint32_t FUNC_0(void *opaque, uint32_t addr)\n{", "IDEBus *bus = opaque;", "IDEState *s = idebus_active_if(bus);", "int VAR_0;", "if ((!bus->ifs[0].bs && !bus->ifs[1].bs) ||\n(s != bus->ifs && !s->bs))\nVAR_0 = 0;", "else\nVAR_0 = s->status;", "#ifdef DEBUG_IDE\nprintf(\"ide: read status addr=0x%x val=...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ] ]
13,502
static int net_slirp_init(Monitor *mon, VLANState *vlan, const char *model, const char *name, int restricted, const char *vnetwork, const char *vhost, const char *vhostname, const char *tftp_export, const char *b...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static int net_slirp_init(Monitor *mon, VLANState *vlan, const char *model, const char *name, int restricted, const char *vnetwork, const char *vhost, const char *vhostname, const char *tftp_export, const char *b...
{ "code": [], "line_no": [] }
static int FUNC_0(Monitor *VAR_0, VLANState *VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, const char *VAR_5, const char *VAR_6, const char *VAR_7, const char *VAR_8, const char *VAR_9, const char *VAR_...
[ "static int FUNC_0(Monitor *VAR_0, VLANState *VAR_1, const char *VAR_2,\nconst char *VAR_3, int VAR_4,\nconst char *VAR_5, const char *VAR_6,\nconst char *VAR_7, const char *VAR_8,\nconst char *VAR_9, const char *VAR_10,\nconst char *VAR_11, const char *VAR_12,\nconst char *VAR_13)\n{", "struct in_addr VAR_14 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
13,503
int av_opt_set_pixel_fmt(void *obj, const char *name, enum AVPixelFormat fmt, int search_flags) { return set_format(obj, name, fmt, search_flags, AV_OPT_TYPE_PIXEL_FMT, "pixel", AV_PIX_FMT_NB-1); }
false
FFmpeg
c9ff32215b433d505f251c1f212b1fa0a5e17b73
int av_opt_set_pixel_fmt(void *obj, const char *name, enum AVPixelFormat fmt, int search_flags) { return set_format(obj, name, fmt, search_flags, AV_OPT_TYPE_PIXEL_FMT, "pixel", AV_PIX_FMT_NB-1); }
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, const char *VAR_1, enum AVPixelFormat VAR_2, int VAR_3) { return set_format(VAR_0, VAR_1, VAR_2, VAR_3, AV_OPT_TYPE_PIXEL_FMT, "pixel", AV_PIX_FMT_NB-1); }
[ "int FUNC_0(void *VAR_0, const char *VAR_1, enum AVPixelFormat VAR_2, int VAR_3)\n{", "return set_format(VAR_0, VAR_1, VAR_2, VAR_3, AV_OPT_TYPE_PIXEL_FMT, \"pixel\", AV_PIX_FMT_NB-1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,505
static void eval_cond_jmp(DisasContext *dc, TCGv pc_true, TCGv pc_false) { int l1; l1 = gen_new_label(); /* Conditional jmp. */ tcg_gen_mov_tl(cpu_SR[SR_PC], pc_false); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, l1); tcg_gen_mov_tl(cpu_SR[SR_PC], pc_true); gen_set_label(l1); ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static void eval_cond_jmp(DisasContext *dc, TCGv pc_true, TCGv pc_false) { int l1; l1 = gen_new_label(); tcg_gen_mov_tl(cpu_SR[SR_PC], pc_false); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, l1); tcg_gen_mov_tl(cpu_SR[SR_PC], pc_true); gen_set_label(l1); }
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2) { int VAR_3; VAR_3 = gen_new_label(); tcg_gen_mov_tl(cpu_SR[SR_PC], VAR_2); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, VAR_3); tcg_gen_mov_tl(cpu_SR[SR_PC], VAR_1); gen_set_label(VAR_3); }
[ "static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "int VAR_3;", "VAR_3 = gen_new_label();", "tcg_gen_mov_tl(cpu_SR[SR_PC], VAR_2);", "tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, VAR_3);", "tcg_gen_mov_tl(cpu_SR[SR_PC], VAR_1);", "gen_set_label(VAR_3);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
13,506
void parse_numa_opts(MachineState *ms) { int i; const CPUArchIdList *possible_cpus; MachineClass *mc = MACHINE_GET_CLASS(ms); for (i = 0; i < MAX_NODES; i++) { numa_info[i].node_cpu = bitmap_new(max_cpus); } if (qemu_opts_foreach(qemu_find_opts("numa"), parse_numa, ms, NULL))...
false
qemu
1171ae9a5b132dc631728ff17688d05ed4534181
void parse_numa_opts(MachineState *ms) { int i; const CPUArchIdList *possible_cpus; MachineClass *mc = MACHINE_GET_CLASS(ms); for (i = 0; i < MAX_NODES; i++) { numa_info[i].node_cpu = bitmap_new(max_cpus); } if (qemu_opts_foreach(qemu_find_opts("numa"), parse_numa, ms, NULL))...
{ "code": [], "line_no": [] }
void FUNC_0(MachineState *VAR_0) { int VAR_1; const CPUArchIdList *VAR_2; MachineClass *mc = MACHINE_GET_CLASS(VAR_0); for (VAR_1 = 0; VAR_1 < MAX_NODES; VAR_1++) { numa_info[VAR_1].node_cpu = bitmap_new(max_cpus); } if (qemu_opts_foreach(qemu_find_opts("numa"), parse_numa, V...
[ "void FUNC_0(MachineState *VAR_0)\n{", "int VAR_1;", "const CPUArchIdList *VAR_2;", "MachineClass *mc = MACHINE_GET_CLASS(VAR_0);", "for (VAR_1 = 0; VAR_1 < MAX_NODES; VAR_1++) {", "numa_info[VAR_1].node_cpu = bitmap_new(max_cpus);", "}", "if (qemu_opts_foreach(qemu_find_opts(\"numa\"), parse_numa, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 57 ], [ 59 ...
13,507
void tcg_dump_ops(TCGContext *s) { char buf[128]; TCGOp *op; int oi; for (oi = s->gen_first_op_idx; oi >= 0; oi = op->next) { int i, k, nb_oargs, nb_iargs, nb_cargs; const TCGOpDef *def; const TCGArg *args; TCGOpcode c; op = &s->gen_op_buf[oi]; ...
false
qemu
1f00b27f17518a1bcb4cedca49eaec96a4d560bd
void tcg_dump_ops(TCGContext *s) { char buf[128]; TCGOp *op; int oi; for (oi = s->gen_first_op_idx; oi >= 0; oi = op->next) { int i, k, nb_oargs, nb_iargs, nb_cargs; const TCGOpDef *def; const TCGArg *args; TCGOpcode c; op = &s->gen_op_buf[oi]; ...
{ "code": [], "line_no": [] }
void FUNC_0(TCGContext *VAR_0) { char VAR_1[128]; TCGOp *op; int VAR_2; for (VAR_2 = VAR_0->gen_first_op_idx; VAR_2 >= 0; VAR_2 = op->next) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; const TCGOpDef *VAR_8; const TCGArg *VAR_9; TCGOpcode c; op = &VAR_0-...
[ "void FUNC_0(TCGContext *VAR_0)\n{", "char VAR_1[128];", "TCGOp *op;", "int VAR_2;", "for (VAR_2 = VAR_0->gen_first_op_idx; VAR_2 >= 0; VAR_2 = op->next) {", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "const TCGOpDef *VAR_8;", "const TCGArg *VAR_9;", "TCGOpcode c;", "op = &VAR_0->gen_op_buf[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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ...
13,508
static void spapr_cpu_init(sPAPRMachineState *spapr, PowerPCCPU *cpu, Error **errp) { CPUPPCState *env = &cpu->env; /* Set time-base frequency to 512 MHz */ cpu_ppc_tb_init(env, SPAPR_TIMEBASE_FREQ); /* Enable PAPR mode in TCG or KVM */ cpu_ppc_set_papr(cpu, PPC...
false
qemu
66d5c492dd3a92fbb6f01f3957fbe3fe5a18613e
static void spapr_cpu_init(sPAPRMachineState *spapr, PowerPCCPU *cpu, Error **errp) { CPUPPCState *env = &cpu->env; cpu_ppc_tb_init(env, SPAPR_TIMEBASE_FREQ); cpu_ppc_set_papr(cpu, PPC_VIRTUAL_HYPERVISOR(spapr)); if (spapr->max_compat_pvr) { Er...
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPRMachineState *VAR_0, PowerPCCPU *VAR_1, Error **VAR_2) { CPUPPCState *env = &VAR_1->env; cpu_ppc_tb_init(env, SPAPR_TIMEBASE_FREQ); cpu_ppc_set_papr(VAR_1, PPC_VIRTUAL_HYPERVISOR(VAR_0)); if (VAR_0->max_compat_pvr) { Err...
[ "static void FUNC_0(sPAPRMachineState *VAR_0, PowerPCCPU *VAR_1,\nError **VAR_2)\n{", "CPUPPCState *env = &VAR_1->env;", "cpu_ppc_tb_init(env, SPAPR_TIMEBASE_FREQ);", "cpu_ppc_set_papr(VAR_1, PPC_VIRTUAL_HYPERVISOR(VAR_0));", "if (VAR_0->max_compat_pvr) {", "Error *local_err = NULL;", "ppc_set_compat(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ] ]
13,509
uint32_t HELPER(lcdbr)(CPUS390XState *env, uint32_t f1, uint32_t f2) { env->fregs[f1].d = float64_chs(env->fregs[f2].d); return set_cc_nz_f64(env->fregs[f1].d); }
false
qemu
5d7fd045cafeac1831c1999cb9e1251b7906c6b2
uint32_t HELPER(lcdbr)(CPUS390XState *env, uint32_t f1, uint32_t f2) { env->fregs[f1].d = float64_chs(env->fregs[f2].d); return set_cc_nz_f64(env->fregs[f1].d); }
{ "code": [], "line_no": [] }
uint32_t FUNC_0(lcdbr)(CPUS390XState *env, uint32_t f1, uint32_t f2) { env->fregs[f1].d = float64_chs(env->fregs[f2].d); return set_cc_nz_f64(env->fregs[f1].d); }
[ "uint32_t FUNC_0(lcdbr)(CPUS390XState *env, uint32_t f1, uint32_t f2)\n{", "env->fregs[f1].d = float64_chs(env->fregs[f2].d);", "return set_cc_nz_f64(env->fregs[f1].d);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
13,510
static int no_run_out (HWVoiceOut *hw, int live) { NoVoiceOut *no = (NoVoiceOut *) hw; int decr, samples; int64_t now; int64_t ticks; int64_t bytes; now = qemu_get_clock (vm_clock); ticks = now - no->old_ticks; bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_...
false
qemu
74475455442398a64355428b37422d14ccc293cb
static int no_run_out (HWVoiceOut *hw, int live) { NoVoiceOut *no = (NoVoiceOut *) hw; int decr, samples; int64_t now; int64_t ticks; int64_t bytes; now = qemu_get_clock (vm_clock); ticks = now - no->old_ticks; bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_...
{ "code": [], "line_no": [] }
static int FUNC_0 (HWVoiceOut *VAR_0, int VAR_1) { NoVoiceOut *no = (NoVoiceOut *) VAR_0; int VAR_2, VAR_3; int64_t now; int64_t ticks; int64_t bytes; now = qemu_get_clock (vm_clock); ticks = now - no->old_ticks; bytes = muldiv64 (ticks, VAR_0->info.bytes_per_second, get_ticks...
[ "static int FUNC_0 (HWVoiceOut *VAR_0, int VAR_1)\n{", "NoVoiceOut *no = (NoVoiceOut *) VAR_0;", "int VAR_2, VAR_3;", "int64_t now;", "int64_t ticks;", "int64_t bytes;", "now = qemu_get_clock (vm_clock);", "ticks = now - no->old_ticks;", "bytes = muldiv64 (ticks, VAR_0->info.bytes_per_second, get_ti...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
13,511
void do_interrupt(int intno, int is_int, int error_code, unsigned int next_eip, int is_hw) { #ifdef DEBUG_PCALL if (loglevel) { static int count; fprintf(logfile, "%d: interrupt: vector=%02x error_code=%04x int=%d\n", count, intno, error_code, is_int); ...
false
qemu
8e682019e37c8f8939244fcf44a592fa6347d127
void do_interrupt(int intno, int is_int, int error_code, unsigned int next_eip, int is_hw) { #ifdef DEBUG_PCALL if (loglevel) { static int count; fprintf(logfile, "%d: interrupt: vector=%02x error_code=%04x int=%d\n", count, intno, error_code, is_int); ...
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0, int VAR_1, int VAR_2, unsigned int VAR_3, int VAR_4) { #ifdef DEBUG_PCALL if (loglevel) { static int count; fprintf(logfile, "%d: interrupt: vector=%02x VAR_2=%04x int=%d\n", count, VAR_0, VAR_2, VAR_1); cpu_x86_dump_state(env...
[ "void FUNC_0(int VAR_0, int VAR_1, int VAR_2,\nunsigned int VAR_3, int VAR_4)\n{", "#ifdef DEBUG_PCALL\nif (loglevel) {", "static int count;", "fprintf(logfile, \"%d: interrupt: vector=%02x VAR_2=%04x int=%d\\n\",\ncount, VAR_0, VAR_2, VAR_1);", "cpu_x86_dump_state(env, logfile, X86_DUMP_CCOP);", "#if 0\n...
[ 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 ], [ 45 ], [...
13,512
static void coroutine_fn wait_for_overlapping_requests(BlockDriverState *bs, int64_t offset, unsigned int bytes) { BdrvTrackedRequest *req; int64_t cluster_offset; unsigned int cluster_bytes; bool retry; /* If we touch the same cluster it counts as an overlap. This guarantees ...
false
qemu
65afd211c71fc91750d8a18f9604c1e57a5202fb
static void coroutine_fn wait_for_overlapping_requests(BlockDriverState *bs, int64_t offset, unsigned int bytes) { BdrvTrackedRequest *req; int64_t cluster_offset; unsigned int cluster_bytes; bool retry; round_bytes_to_clusters(bs, offset, bytes, &cluster_offset, &cl...
{ "code": [], "line_no": [] }
static void VAR_0 wait_for_overlapping_requests(BlockDriverState *bs, int64_t offset, unsigned int bytes) { BdrvTrackedRequest *req; int64_t cluster_offset; unsigned int cluster_bytes; bool retry; round_bytes_to_clusters(bs, offset, bytes, &cluster_offset, &cluster_b...
[ "static void VAR_0 wait_for_overlapping_requests(BlockDriverState *bs,\nint64_t offset, unsigned int bytes)\n{", "BdrvTrackedRequest *req;", "int64_t cluster_offset;", "unsigned int cluster_bytes;", "bool retry;", "round_bytes_to_clusters(bs, offset, bytes, &cluster_offset, &cluster_bytes);", "do {", ...
[ 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 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ] ]
13,514
static int parse_source_parameters(AVCodecContext *avctx, GetBitContext *gb, dirac_source_params *source) { AVRational frame_rate = {0,0}; unsigned luma_depth = 8, luma_offset = 16; int idx; int chroma_x_shift, chroma_y_shift; /* [DIRAC_STD] 10.3.2 Frame s...
false
FFmpeg
57bdd67646cfffa2921a8b28bb5f88cfe5c0989e
static int parse_source_parameters(AVCodecContext *avctx, GetBitContext *gb, dirac_source_params *source) { AVRational frame_rate = {0,0}; unsigned luma_depth = 8, luma_offset = 16; int idx; int chroma_x_shift, chroma_y_shift; if (get_bits1(gb)...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1, dirac_source_params *VAR_2) { AVRational frame_rate = {0,0}; unsigned VAR_3 = 8, VAR_4 = 16; int VAR_5; int VAR_6, VAR_7; if (get_bits1(VAR_1)) { VAR_2->width = svq3_get_u...
[ "static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1,\ndirac_source_params *VAR_2)\n{", "AVRational frame_rate = {0,0};", "unsigned VAR_3 = 8, VAR_4 = 16;", "int VAR_5;", "int VAR_6, VAR_7;", "if (get_bits1(VAR_1)) {", "VAR_2->width = svq3_get_ue_golomb(VAR_1);", "VAR_2->height = svq3_get_u...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 37, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 59, 63 ], [ 65, 67 ], [ 73 ], [...
13,516
static void grlib_gptimer_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { GPTimerUnit *unit = opaque; target_phys_addr_t timer_addr; int id; addr &= 0xff; /* Unit registers */ switch (addr) { c...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void grlib_gptimer_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { GPTimerUnit *unit = opaque; target_phys_addr_t timer_addr; int id; addr &= 0xff; switch (addr) { case SCALER_OFFSET: ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { GPTimerUnit *unit = VAR_0; target_phys_addr_t timer_addr; int VAR_4; VAR_1 &= 0xff; switch (VAR_1) { case SCALER_OFFSET: ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "GPTimerUnit *unit = VAR_0;", "target_phys_addr_t timer_addr;", "int VAR_4;", "VAR_1 &= 0xff;", "switch (VAR_1) {", "case SCALER_OFFSET:\nVAR_2 &= 0xFFFF;", "unit->scaler = 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 53 ], [ 55 ], [ 59,...
13,518
static bool cmd_write_multiple(IDEState *s, uint8_t cmd) { bool lba48 = (cmd == WIN_MULTWRITE_EXT); int n; if (!s->bs || !s->mult_sectors) { ide_abort_command(s); return true; } ide_cmd_lba48_transform(s, lba48); s->req_nb_sectors = s->mult_sectors; n = MIN(s-...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static bool cmd_write_multiple(IDEState *s, uint8_t cmd) { bool lba48 = (cmd == WIN_MULTWRITE_EXT); int n; if (!s->bs || !s->mult_sectors) { ide_abort_command(s); return true; } ide_cmd_lba48_transform(s, lba48); s->req_nb_sectors = s->mult_sectors; n = MIN(s-...
{ "code": [], "line_no": [] }
static bool FUNC_0(IDEState *s, uint8_t cmd) { bool lba48 = (cmd == WIN_MULTWRITE_EXT); int VAR_0; if (!s->bs || !s->mult_sectors) { ide_abort_command(s); return true; } ide_cmd_lba48_transform(s, lba48); s->req_nb_sectors = s->mult_sectors; VAR_0 = MIN(s->nse...
[ "static bool FUNC_0(IDEState *s, uint8_t cmd)\n{", "bool lba48 = (cmd == WIN_MULTWRITE_EXT);", "int VAR_0;", "if (!s->bs || !s->mult_sectors) {", "ide_abort_command(s);", "return true;", "}", "ide_cmd_lba48_transform(s, lba48);", "s->req_nb_sectors = s->mult_sectors;", "VAR_0 = MIN(s->nsector, s->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ] ]
13,519
static int pxb_map_irq_fn(PCIDevice *pci_dev, int pin) { PCIDevice *pxb = pci_dev->bus->parent_dev; /* * The bios does not index the pxb slot number when * it computes the IRQ because it resides on bus 0 * and not on the current bus. * However QEMU routes the irq through bus 0 and a...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static int pxb_map_irq_fn(PCIDevice *pci_dev, int pin) { PCIDevice *pxb = pci_dev->bus->parent_dev; return pin - PCI_SLOT(pxb->devfn); }
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0, int VAR_1) { PCIDevice *pxb = VAR_0->bus->parent_dev; return VAR_1 - PCI_SLOT(pxb->devfn); }
[ "static int FUNC_0(PCIDevice *VAR_0, int VAR_1)\n{", "PCIDevice *pxb = VAR_0->bus->parent_dev;", "return VAR_1 - PCI_SLOT(pxb->devfn);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 31 ], [ 33 ] ]
13,520
static int flac_read_header(AVFormatContext *s, AVFormatParameters *ap) { int ret, metadata_last=0, metadata_type, metadata_size, found_streaminfo=0; uint8_t header[4]; uint8_t *buffer=NULL; AVStream *st = avformat_new_stream(s, NULL); if (!st) return AVE...
false
FFmpeg
17c84f4ed2dcc617b45a0e305725bfca7bc0bfd1
static int flac_read_header(AVFormatContext *s, AVFormatParameters *ap) { int ret, metadata_last=0, metadata_type, metadata_size, found_streaminfo=0; uint8_t header[4]; uint8_t *buffer=NULL; AVStream *st = avformat_new_stream(s, NULL); if (!st) return AVE...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { int VAR_2, VAR_3=0, VAR_4, VAR_5, VAR_6=0; uint8_t header[4]; uint8_t *buffer=NULL; AVStream *st = avformat_new_stream(VAR_0, NULL); if (!st) return AVERROR(ENOMEM); st->codec->co...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{", "int VAR_2, VAR_3=0, VAR_4, VAR_5, VAR_6=0;", "uint8_t header[4];", "uint8_t *buffer=NULL;", "AVStream *st = avformat_new_stream(VAR_0, NULL);", "if (!st)\nreturn AVERROR(ENOMEM);", "st->codec->codec_type = AVMEDIA_TYPE_AUDIO;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 55, 57,...
13,522
static void vc1_loop_filter(uint8_t* src, int step, int stride, int len, int pq) { int i; int filt3; for(i = 0; i < len; i += 4){ filt3 = vc1_filter_line(src + 2*step, stride, pq); if(filt3){ vc1_filter_line(src + 0*step, stride, pq); vc1_filter_line(src + 1...
false
FFmpeg
3992526b3c43278945d00fac6e2ba5cb8f810ef3
static void vc1_loop_filter(uint8_t* src, int step, int stride, int len, int pq) { int i; int filt3; for(i = 0; i < len; i += 4){ filt3 = vc1_filter_line(src + 2*step, stride, pq); if(filt3){ vc1_filter_line(src + 0*step, stride, pq); vc1_filter_line(src + 1...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t* VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5; int VAR_6; for(VAR_5 = 0; VAR_5 < VAR_3; VAR_5 += 4){ VAR_6 = vc1_filter_line(VAR_0 + 2*VAR_1, VAR_2, VAR_4); if(VAR_6){ vc1_filter_line(VAR_0 + 0*VAR_1, VAR_2, VAR_4); ...
[ "static void FUNC_0(uint8_t* VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5;", "int VAR_6;", "for(VAR_5 = 0; VAR_5 < VAR_3; VAR_5 += 4){", "VAR_6 = vc1_filter_line(VAR_0 + 2*VAR_1, VAR_2, VAR_4);", "if(VAR_6){", "vc1_filter_line(VAR_0 + 0*VAR_1, VAR_2, VAR_4);", "vc1_filter_line(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
13,523
static av_cold int nvenc_open_session(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS encode_session_params = { 0 }; NVENCST...
false
FFmpeg
0d021cc8b30a6f81c27fbeca7f99f1ee7a20acf8
static av_cold int nvenc_open_session(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS encode_session_params = { 0 }; NVENCST...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS encode_session_params = { 0 }; NVENCSTATUS nv_stat...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "NvencContext *ctx = avctx->priv_data;", "NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;", "NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;", "NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS encode_session_params = { 0 };", "NVENCSTATUS nv_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
13,525
static int parse_playlist(HLSContext *c, const char *url, struct variant *var, AVIOContext *in) { int ret = 0, is_segment = 0, is_variant = 0, bandwidth = 0; int64_t duration = 0; enum KeyType key_type = KEY_NONE; uint8_t iv[16] = ""; int has_iv = 0; char key[MA...
false
FFmpeg
0c73a5a53cc97f4291bbe9e1e68226edf6161744
static int parse_playlist(HLSContext *c, const char *url, struct variant *var, AVIOContext *in) { int ret = 0, is_segment = 0, is_variant = 0, bandwidth = 0; int64_t duration = 0; enum KeyType key_type = KEY_NONE; uint8_t iv[16] = ""; int has_iv = 0; char key[MA...
{ "code": [], "line_no": [] }
static int FUNC_0(HLSContext *VAR_0, const char *VAR_1, struct variant *VAR_2, AVIOContext *VAR_3) { int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7 = 0; int64_t duration = 0; enum KeyType VAR_8 = KEY_NONE; uint8_t iv[16] = ""; int VAR_9 = 0; char VAR_10[MAX_URL_SIZE...
[ "static int FUNC_0(HLSContext *VAR_0, const char *VAR_1,\nstruct variant *VAR_2, AVIOContext *VAR_3)\n{", "int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7 = 0;", "int64_t duration = 0;", "enum KeyType VAR_8 = KEY_NONE;", "uint8_t iv[16] = \"\";", "int VAR_9 = 0;", "char VAR_10[MAX_URL_SIZE] = \"\";", "char...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 49 ], [ 51 ...
13,526
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); /* get intra prediction modes from stream */ for(block=0;block<4;block++) { int nA,nB,p...
true
FFmpeg
4a71da0f3ab7f5542decd11c81994f849d5b2c78
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0;block<4;block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[...
{ "code": [ " int block, pred_mode_uv;" ], "line_no": [ 5 ] }
static int FUNC_0(AVSContext *VAR_0, int VAR_1) { GetBitContext *gb = &VAR_0->s.gb; int VAR_2, VAR_3; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(VAR_0); for(VAR_2=0;VAR_2<4;VAR_2++) { int VAR_4,VAR_5,VAR_6; int VAR_7 = ff_cavs_scan3x...
[ "static int FUNC_0(AVSContext *VAR_0, int VAR_1) {", "GetBitContext *gb = &VAR_0->s.gb;", "int VAR_2, VAR_3;", "uint8_t top[18];", "uint8_t *left = NULL;", "uint8_t *d;", "ff_cavs_init_mb(VAR_0);", "for(VAR_2=0;VAR_2<4;VAR_2++) {", "int VAR_4,VAR_5,VAR_6;", "int VAR_7 = ff_cavs_scan3x3[VAR_2];", ...
[ 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 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
13,527
static void test_visitor_in_alternate(TestInputVisitorData *data, const void *unused) { Visitor *v; Error *err = NULL; UserDefAlternate *tmp; v = visitor_input_test_init(data, "42"); visit_type_UserDefAlternate(v, &tmp, NULL, &error_abort); g_asser...
true
qemu
a12a5a1a0132527afe87c079e4aae4aad372bd94
static void test_visitor_in_alternate(TestInputVisitorData *data, const void *unused) { Visitor *v; Error *err = NULL; UserDefAlternate *tmp; v = visitor_input_test_init(data, "42"); visit_type_UserDefAlternate(v, &tmp, NULL, &error_abort); g_asser...
{ "code": [ " error_free(err);", " g_assert(err);", " error_free(err);", " g_assert(err);", " error_free(err);", " g_assert(err);", " error_free(err);", " g_assert(err);", " error_free(err);", " g_assert(err);", " error_free(err);", " ...
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { Visitor *v; Error *err = NULL; UserDefAlternate *tmp; v = visitor_input_test_init(VAR_0, "42"); visit_type_UserDefAlternate(v, &tmp, NULL, &error_abort); g_assert_cmpint(tmp->type...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "Visitor *v;", "Error *err = NULL;", "UserDefAlternate *tmp;", "v = visitor_input_test_init(VAR_0, \"42\");", "visit_type_UserDefAlternate(v, &tmp, NULL, &error_abort);", "g_assert_cmpint(tmp->type, ==, USER_DEF_ALTERNATE_KIND_I);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
13,528
void qht_statistics_init(struct qht *ht, struct qht_stats *stats) { struct qht_map *map; int i; map = atomic_rcu_read(&ht->map); stats->head_buckets = map->n_buckets; stats->used_head_buckets = 0; stats->entries = 0; qdist_init(&stats->chain); qdist_init(&stats->occupancy); ...
true
qemu
7266ae91a111001abda65c79299c9b7e365456b6
void qht_statistics_init(struct qht *ht, struct qht_stats *stats) { struct qht_map *map; int i; map = atomic_rcu_read(&ht->map); stats->head_buckets = map->n_buckets; stats->used_head_buckets = 0; stats->entries = 0; qdist_init(&stats->chain); qdist_init(&stats->occupancy); ...
{ "code": [ " stats->head_buckets = map->n_buckets;" ], "line_no": [ 15 ] }
void FUNC_0(struct qht *VAR_0, struct qht_stats *VAR_1) { struct qht_map *VAR_2; int VAR_3; VAR_2 = atomic_rcu_read(&VAR_0->VAR_2); VAR_1->head_buckets = VAR_2->n_buckets; VAR_1->used_head_buckets = 0; VAR_1->entries = 0; qdist_init(&VAR_1->chain); qdist_init(&VAR_1->occupan...
[ "void FUNC_0(struct qht *VAR_0, struct qht_stats *VAR_1)\n{", "struct qht_map *VAR_2;", "int VAR_3;", "VAR_2 = atomic_rcu_read(&VAR_0->VAR_2);", "VAR_1->head_buckets = VAR_2->n_buckets;", "VAR_1->used_head_buckets = 0;", "VAR_1->entries = 0;", "qdist_init(&VAR_1->chain);", "qdist_init(&VAR_1->occupa...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
13,530
void qemu_system_vmstop_request(RunState state) { vmstop_requested = state; qemu_notify_event(); }
true
qemu
74892d2468b9f0c56b915ce94848d6f7fac39740
void qemu_system_vmstop_request(RunState state) { vmstop_requested = state; qemu_notify_event(); }
{ "code": [ "void qemu_system_vmstop_request(RunState state)", " vmstop_requested = state;", " qemu_notify_event();" ], "line_no": [ 1, 5, 7 ] }
void FUNC_0(RunState VAR_0) { vmstop_requested = VAR_0; qemu_notify_event(); }
[ "void FUNC_0(RunState VAR_0)\n{", "vmstop_requested = VAR_0;", "qemu_notify_event();", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
13,531
static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame, int frame_off) { unsigned val, saved_val = 0; int tmplen = src_len; const uint8_t *src, *source_end = source + src_len; uint8_t *frame_end = frame + SCREEN_WIDE * SCREEN_HIGH; uint8_t *dst, *dst_end; int len, ...
true
FFmpeg
29692023b2f1e0580a4065f4c9b62bafd89ab337
static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame, int frame_off) { unsigned val, saved_val = 0; int tmplen = src_len; const uint8_t *src, *source_end = source + src_len; uint8_t *frame_end = frame + SCREEN_WIDE * SCREEN_HIGH; uint8_t *dst, *dst_end; int len, ...
{ "code": [ " val |= *src << shift;" ], "line_no": [ 109 ] }
static int FUNC_0(const uint8_t *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3) { unsigned VAR_4, VAR_5 = 0; int VAR_6 = VAR_1; const uint8_t *VAR_7, *source_end = VAR_0 + VAR_1; uint8_t *frame_end = VAR_2 + SCREEN_WIDE * SCREEN_HIGH; uint8_t *dst, *dst_end; int VAR_8, VAR_9; int VAR_1...
[ "static int FUNC_0(const uint8_t *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3)\n{", "unsigned VAR_4, VAR_5 = 0;", "int VAR_6 = VAR_1;", "const uint8_t *VAR_7, *source_end = VAR_0 + VAR_1;", "uint8_t *frame_end = VAR_2 + SCREEN_WIDE * SCREEN_HIGH;", "uint8_t *dst, *dst_end;", "int VAR_8, VAR_9;", "int ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
13,532
static size_t save_page_header(RAMState *rs, RAMBlock *block, ram_addr_t offset) { size_t size, len; if (block == rs->last_sent_block) { offset |= RAM_SAVE_FLAG_CONTINUE; } qemu_put_be64(rs->f, offset); size = 8; if (!(offset & RAM_SAVE_FLAG_CONTINUE)) { len = strlen...
true
qemu
2bf3aa85f08186b8162b76e7e8efe5b5a44306a6
static size_t save_page_header(RAMState *rs, RAMBlock *block, ram_addr_t offset) { size_t size, len; if (block == rs->last_sent_block) { offset |= RAM_SAVE_FLAG_CONTINUE; } qemu_put_be64(rs->f, offset); size = 8; if (!(offset & RAM_SAVE_FLAG_CONTINUE)) { len = strlen...
{ "code": [ "static size_t save_page_header(RAMState *rs, RAMBlock *block, ram_addr_t offset)", " qemu_put_be64(rs->f, offset);", " qemu_put_byte(rs->f, len);", " qemu_put_buffer(rs->f, (uint8_t *)block->idstr, len);" ], "line_no": [ 1, 15, 25, 27 ] }
static size_t FUNC_0(RAMState *rs, RAMBlock *block, ram_addr_t offset) { size_t size, len; if (block == rs->last_sent_block) { offset |= RAM_SAVE_FLAG_CONTINUE; } qemu_put_be64(rs->f, offset); size = 8; if (!(offset & RAM_SAVE_FLAG_CONTINUE)) { len = strlen(block->id...
[ "static size_t FUNC_0(RAMState *rs, RAMBlock *block, ram_addr_t offset)\n{", "size_t size, len;", "if (block == rs->last_sent_block) {", "offset |= RAM_SAVE_FLAG_CONTINUE;", "}", "qemu_put_be64(rs->f, offset);", "size = 8;", "if (!(offset & RAM_SAVE_FLAG_CONTINUE)) {", "len = strlen(block->idstr);",...
[ 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
13,533
static void ebus_mmio_mapfunc(PCIDevice *pci_dev, int region_num, pcibus_t addr, pcibus_t size, int type) { EBUS_DPRINTF("Mapping region %d registers at %" FMT_PCIBUS "\n", region_num, addr); switch (region_num) { case 0: isa_mmio_init(addr, 0x10...
true
qemu
c5e6fb7e4ac6e7083682e7f45d27d1e73b3a1a97
static void ebus_mmio_mapfunc(PCIDevice *pci_dev, int region_num, pcibus_t addr, pcibus_t size, int type) { EBUS_DPRINTF("Mapping region %d registers at %" FMT_PCIBUS "\n", region_num, addr); switch (region_num) { case 0: isa_mmio_init(addr, 0x10...
{ "code": [ "static void ebus_mmio_mapfunc(PCIDevice *pci_dev, int region_num,", " pcibus_t addr, pcibus_t size, int type)", " EBUS_DPRINTF(\"Mapping region %d registers at %\" FMT_PCIBUS \"\\n\",", " region_num, addr);", " switch (region_num) {",...
static void FUNC_0(PCIDevice *VAR_0, int VAR_1, pcibus_t VAR_2, pcibus_t VAR_3, int VAR_4) { EBUS_DPRINTF("Mapping region %d registers at %" FMT_PCIBUS "\n", VAR_1, VAR_2); switch (VAR_1) { case 0: isa_mmio_init(VAR_2, 0x1000000); break;...
[ "static void FUNC_0(PCIDevice *VAR_0, int VAR_1,\npcibus_t VAR_2, pcibus_t VAR_3, int VAR_4)\n{", "EBUS_DPRINTF(\"Mapping region %d registers at %\" FMT_PCIBUS \"\\n\",\nVAR_1, VAR_2);", "switch (VAR_1) {", "case 0:\nisa_mmio_init(VAR_2, 0x1000000);", "break;", "case 1:\nisa_mmio_init(VAR_2, 0x800000);", ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ] ]
13,534
int ff_wma_end(AVCodecContext *avctx) { WMACodecContext *s = avctx->priv_data; int i; for(i = 0; i < s->nb_block_sizes; i++) ff_mdct_end(&s->mdct_ctx[i]); for(i = 0; i < s->nb_block_sizes; i++) av_free(s->windows[i]); if (s->use_exp_vlc) { free_vlc(&s->exp_vlc); ...
true
FFmpeg
2c79288d4e0bcb8d3a8a908813fc9cc586dd7fdd
int ff_wma_end(AVCodecContext *avctx) { WMACodecContext *s = avctx->priv_data; int i; for(i = 0; i < s->nb_block_sizes; i++) ff_mdct_end(&s->mdct_ctx[i]); for(i = 0; i < s->nb_block_sizes; i++) av_free(s->windows[i]); if (s->use_exp_vlc) { free_vlc(&s->exp_vlc); ...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0) { WMACodecContext *s = VAR_0->priv_data; int VAR_1; for(VAR_1 = 0; VAR_1 < s->nb_block_sizes; VAR_1++) ff_mdct_end(&s->mdct_ctx[VAR_1]); for(VAR_1 = 0; VAR_1 < s->nb_block_sizes; VAR_1++) av_free(s->windows[VAR_1]); if (s->use_exp_vlc) { ...
[ "int FUNC_0(AVCodecContext *VAR_0)\n{", "WMACodecContext *s = VAR_0->priv_data;", "int VAR_1;", "for(VAR_1 = 0; VAR_1 < s->nb_block_sizes; VAR_1++)", "ff_mdct_end(&s->mdct_ctx[VAR_1]);", "for(VAR_1 = 0; VAR_1 < s->nb_block_sizes; VAR_1++)", "av_free(s->windows[VAR_1]);", "if (s->use_exp_vlc) {", "fr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 42 ], [ 46 ], [ 48...
13,535
int ff_h264_ref_picture(H264Context *h, H264Picture *dst, H264Picture *src) { int ret, i; av_assert0(!dst->f->buf[0]); av_assert0(src->f->buf[0]); av_assert0(src->tf.f == src->f); dst->tf.f = dst->f; ret = ff_thread_ref_frame(&dst->tf, &src->tf); if (ret < 0) goto fail; ...
true
FFmpeg
52a44d50beb2ecf77213c9445649dcfd7ef44e92
int ff_h264_ref_picture(H264Context *h, H264Picture *dst, H264Picture *src) { int ret, i; av_assert0(!dst->f->buf[0]); av_assert0(src->f->buf[0]); av_assert0(src->tf.f == src->f); dst->tf.f = dst->f; ret = ff_thread_ref_frame(&dst->tf, &src->tf); if (ret < 0) goto fail; ...
{ "code": [ " if (!dst->qscale_table_buf || !dst->mb_type_buf)", " if (!dst->motion_val_buf[i] || !dst->ref_index_buf[i])", " if (!dst->hwaccel_priv_buf)" ], "line_no": [ 31, 47, 63 ] }
int FUNC_0(H264Context *VAR_0, H264Picture *VAR_1, H264Picture *VAR_2) { int VAR_3, VAR_4; av_assert0(!VAR_1->f->buf[0]); av_assert0(VAR_2->f->buf[0]); av_assert0(VAR_2->tf.f == VAR_2->f); VAR_1->tf.f = VAR_1->f; VAR_3 = ff_thread_ref_frame(&VAR_1->tf, &VAR_2->tf); if (VAR_3 < 0)...
[ "int FUNC_0(H264Context *VAR_0, H264Picture *VAR_1, H264Picture *VAR_2)\n{", "int VAR_3, VAR_4;", "av_assert0(!VAR_1->f->buf[0]);", "av_assert0(VAR_2->f->buf[0]);", "av_assert0(VAR_2->tf.f == VAR_2->f);", "VAR_1->tf.f = VAR_1->f;", "VAR_3 = ff_thread_ref_frame(&VAR_1->tf, &VAR_2->tf);", "if (VAR_3 < 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], ...
13,536
static void arm926_initfn(Object *obj) { ARMCPU *cpu = ARM_CPU(obj); cpu->dtb_compatible = "arm,arm926"; set_feature(&cpu->env, ARM_FEATURE_V5); set_feature(&cpu->env, ARM_FEATURE_VFP); set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS); set_feature(&cpu->env, ARM_FEATURE_CACHE_TEST_CLE...
true
qemu
c99a55d38dd5b5131f3fcbbaf41828a09ee62544
static void arm926_initfn(Object *obj) { ARMCPU *cpu = ARM_CPU(obj); cpu->dtb_compatible = "arm,arm926"; set_feature(&cpu->env, ARM_FEATURE_V5); set_feature(&cpu->env, ARM_FEATURE_VFP); set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS); set_feature(&cpu->env, ARM_FEATURE_CACHE_TEST_CLE...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { ARMCPU *cpu = ARM_CPU(VAR_0); cpu->dtb_compatible = "arm,arm926"; set_feature(&cpu->env, ARM_FEATURE_V5); set_feature(&cpu->env, ARM_FEATURE_VFP); set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS); set_feature(&cpu->env, ARM_FEATURE_CACHE_TEST_CLEAN)...
[ "static void FUNC_0(Object *VAR_0)\n{", "ARMCPU *cpu = ARM_CPU(VAR_0);", "cpu->dtb_compatible = \"arm,arm926\";", "set_feature(&cpu->env, ARM_FEATURE_V5);", "set_feature(&cpu->env, ARM_FEATURE_VFP);", "set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS);", "set_feature(&cpu->env, ARM_FEATURE_CACHE_TEST_C...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 20 ], [ 22 ], [ 24 ], [ 26 ], [ 28 ] ]
13,537
static int get_cluster_offset(BlockDriverState *bs, VmdkExtent *extent, VmdkMetaData *m_data, uint64_t offset, bool allocate, uint64_t *cluster_offset, ...
true
qemu
d1319b077a4bd980ca1b8a167b02b519330dd26b
static int get_cluster_offset(BlockDriverState *bs, VmdkExtent *extent, VmdkMetaData *m_data, uint64_t offset, bool allocate, uint64_t *cluster_offset, ...
{ "code": [ " int32_t cluster_sector;" ], "line_no": [ 29 ] }
static int FUNC_0(BlockDriverState *VAR_0, VmdkExtent *VAR_1, VmdkMetaData *VAR_2, uint64_t VAR_3, bool VAR_4, uint64_t *VAR_5, uint64...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nVmdkExtent *VAR_1,\nVmdkMetaData *VAR_2,\nuint64_t VAR_3,\nbool VAR_4,\nuint64_t *VAR_5,\nuint64_t VAR_6,\nuint64_t VAR_7)\n{", "unsigned int VAR_8, VAR_9, VAR_10;", "int VAR_11, VAR_12, VAR_13;", "uint32_t min_count, *l2_table;", "bool zeroed = false;", "int64...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
13,538
static int check(AVIOContext *pb, int64_t pos, uint32_t *ret_header) { int64_t ret = avio_seek(pb, pos, SEEK_SET); uint8_t header_buf[4]; unsigned header; MPADecodeHeader sd; if (ret < 0) return CHECK_SEEK_FAILED; ret = avio_read(pb, &header_buf[0], 4); if (ret < 0) ...
true
FFmpeg
ab87df9a47cd31bfcae9acd84c04705a149dfc14
static int check(AVIOContext *pb, int64_t pos, uint32_t *ret_header) { int64_t ret = avio_seek(pb, pos, SEEK_SET); uint8_t header_buf[4]; unsigned header; MPADecodeHeader sd; if (ret < 0) return CHECK_SEEK_FAILED; ret = avio_read(pb, &header_buf[0], 4); if (ret < 0) ...
{ "code": [ " if (ret < 0)" ], "line_no": [ 13 ] }
static int FUNC_0(AVIOContext *VAR_0, int64_t VAR_1, uint32_t *VAR_2) { int64_t ret = avio_seek(VAR_0, VAR_1, SEEK_SET); uint8_t header_buf[4]; unsigned VAR_3; MPADecodeHeader sd; if (ret < 0) return CHECK_SEEK_FAILED; ret = avio_read(VAR_0, &header_buf[0], 4); if (ret < 0...
[ "static int FUNC_0(AVIOContext *VAR_0, int64_t VAR_1, uint32_t *VAR_2)\n{", "int64_t ret = avio_seek(VAR_0, VAR_1, SEEK_SET);", "uint8_t header_buf[4];", "unsigned VAR_3;", "MPADecodeHeader sd;", "if (ret < 0)\nreturn CHECK_SEEK_FAILED;", "ret = avio_read(VAR_0, &header_buf[0], 4);", "if (ret < 0)\nre...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 39, 41 ], [ 43 ], [ 45 ] ]
13,539
static uint64_t icp_pit_read(void *opaque, hwaddr offset, unsigned size) { icp_pit_state *s = (icp_pit_state *)opaque; int n; /* ??? Don't know the PrimeCell ID for this device. */ n = offset >> 8; if (n > 2) { qemu_log_mask(LOG_GUEST_ERROR, "%s: Bad t...
true
qemu
cba933b2257ef0ad241756a0ff86bc0acda685ca
static uint64_t icp_pit_read(void *opaque, hwaddr offset, unsigned size) { icp_pit_state *s = (icp_pit_state *)opaque; int n; n = offset >> 8; if (n > 2) { qemu_log_mask(LOG_GUEST_ERROR, "%s: Bad timer %d\n", __func__, n); } return arm_tim...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr offset, unsigned size) { icp_pit_state *s = (icp_pit_state *)opaque; int VAR_0; VAR_0 = offset >> 8; if (VAR_0 > 2) { qemu_log_mask(LOG_GUEST_ERROR, "%s: Bad timer %d\VAR_0", __func__, VAR_0); } ...
[ "static uint64_t FUNC_0(void *opaque, hwaddr offset,\nunsigned size)\n{", "icp_pit_state *s = (icp_pit_state *)opaque;", "int VAR_0;", "VAR_0 = offset >> 8;", "if (VAR_0 > 2) {", "qemu_log_mask(LOG_GUEST_ERROR, \"%s: Bad timer %d\\VAR_0\", __func__, VAR_0);", "}", "return arm_timer_read(s->timer[VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 22 ], [ 26 ], [ 28 ] ]
13,540
static void get_aac_sample_rates(AVFormatContext *s, AVCodecContext *codec, int *sample_rate, int *output_sample_rate) { MPEG4AudioConfig mp4ac; if (avpriv_mpeg4audio_get_config(&mp4ac, codec->extradata, codec->extradata_size * 8, 1) <...
false
FFmpeg
51da7d02748cc54b7d009115e76efa940b99a8ef
static void get_aac_sample_rates(AVFormatContext *s, AVCodecContext *codec, int *sample_rate, int *output_sample_rate) { MPEG4AudioConfig mp4ac; if (avpriv_mpeg4audio_get_config(&mp4ac, codec->extradata, codec->extradata_size * 8, 1) <...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVCodecContext *VAR_1, int *VAR_2, int *VAR_3) { MPEG4AudioConfig mp4ac; if (avpriv_mpeg4audio_get_config(&mp4ac, VAR_1->extradata, VAR_1->extradata_size * 8, 1) < 0) { av_log(VAR_0, ...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVCodecContext *VAR_1,\nint *VAR_2, int *VAR_3)\n{", "MPEG4AudioConfig mp4ac;", "if (avpriv_mpeg4audio_get_config(&mp4ac, VAR_1->extradata,\nVAR_1->extradata_size * 8, 1) < 0) {", "av_log(VAR_0, AV_LOG_WARNING,\n\"Error parsing AAC extradata, unable to determine sam...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
13,541
static void inter_recon(AVCodecContext *ctx) { static const uint8_t bwlog_tab[2][N_BS_SIZES] = { { 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4 }, { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4 }, }; VP9Context *s = ctx->priv_data; VP9Block *b = s->b; int row = s->row, col = s->col; T...
true
FFmpeg
c2871568cffe5c8a32ac7db35febf4267746395b
static void inter_recon(AVCodecContext *ctx) { static const uint8_t bwlog_tab[2][N_BS_SIZES] = { { 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4 }, { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4 }, }; VP9Context *s = ctx->priv_data; VP9Block *b = s->b; int row = s->row, col = s->col; T...
{ "code": [ " ThreadFrame *tref1 = &s->refs[s->refidx[b->ref[0]]];", " AVFrame *ref1 = tref1->f;", " ThreadFrame *tref2 = b->comp ? &s->refs[s->refidx[b->ref[1]]] : NULL;", " AVFrame *ref2 = b->comp ? tref2->f : NULL;", " int w = ctx->width, h = ctx->height;", " ...
static void FUNC_0(AVCodecContext *VAR_0) { static const uint8_t VAR_1[2][N_BS_SIZES] = { { 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4 }, { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4 }, }; VP9Context *s = VAR_0->priv_data; VP9Block *b = s->b; int VAR_2 = s->VAR_2, VAR_3 = s->VAR_3; ...
[ "static void FUNC_0(AVCodecContext *VAR_0)\n{", "static const uint8_t VAR_1[2][N_BS_SIZES] = {", "{ 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4 },", "{ 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4 },", "};", "VP9Context *s = VAR_0->priv_data;", "VP9Block *b = s->b;", "int VAR_2 = s->VAR_2, VAR_3 = s->VAR_3;", "T...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45, 47, 49,...
13,542
static void matroska_merge_packets(AVPacket *out, AVPacket *in) { out->data = av_realloc(out->data, out->size+in->size); memcpy(out->data+out->size, in->data, in->size); out->size += in->size; av_destruct_packet(in); av_free(in); }
true
FFmpeg
956c901c68eff78288f40e3c8f41ee2fa081d4a8
static void matroska_merge_packets(AVPacket *out, AVPacket *in) { out->data = av_realloc(out->data, out->size+in->size); memcpy(out->data+out->size, in->data, in->size); out->size += in->size; av_destruct_packet(in); av_free(in); }
{ "code": [ "static void matroska_merge_packets(AVPacket *out, AVPacket *in)", " out->data = av_realloc(out->data, out->size+in->size);" ], "line_no": [ 1, 5 ] }
static void FUNC_0(AVPacket *VAR_0, AVPacket *VAR_1) { VAR_0->data = av_realloc(VAR_0->data, VAR_0->size+VAR_1->size); memcpy(VAR_0->data+VAR_0->size, VAR_1->data, VAR_1->size); VAR_0->size += VAR_1->size; av_destruct_packet(VAR_1); av_free(VAR_1); }
[ "static void FUNC_0(AVPacket *VAR_0, AVPacket *VAR_1)\n{", "VAR_0->data = av_realloc(VAR_0->data, VAR_0->size+VAR_1->size);", "memcpy(VAR_0->data+VAR_0->size, VAR_1->data, VAR_1->size);", "VAR_0->size += VAR_1->size;", "av_destruct_packet(VAR_1);", "av_free(VAR_1);", "}" ]
[ 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,543
static int decode_pal(MSS12Context *ctx, ArithCoder *acoder) { int i, ncol, r, g, b; uint32_t *pal = ctx->pal + 256 - ctx->free_colours; if (!ctx->free_colours) return 0; ncol = arith_get_number(acoder, ctx->free_colours + 1); for (i = 0; i < ncol; i++) { r = arith_get_bi...
true
FFmpeg
b12d92efd6c0d48665383a9baecc13e7ebbd8a22
static int decode_pal(MSS12Context *ctx, ArithCoder *acoder) { int i, ncol, r, g, b; uint32_t *pal = ctx->pal + 256 - ctx->free_colours; if (!ctx->free_colours) return 0; ncol = arith_get_number(acoder, ctx->free_colours + 1); for (i = 0; i < ncol; i++) { r = arith_get_bi...
{ "code": [ " *pal++ = (0xFF << 24) | (r << 16) | (g << 8) | b;" ], "line_no": [ 27 ] }
static int FUNC_0(MSS12Context *VAR_0, ArithCoder *VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; uint32_t *pal = VAR_0->pal + 256 - VAR_0->free_colours; if (!VAR_0->free_colours) return 0; VAR_3 = arith_get_number(VAR_1, VAR_0->free_colours + 1); for (VAR_2 = 0; VAR_2 < VAR_3; V...
[ "static int FUNC_0(MSS12Context *VAR_0, ArithCoder *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "uint32_t *pal = VAR_0->pal + 256 - VAR_0->free_colours;", "if (!VAR_0->free_colours)\nreturn 0;", "VAR_3 = arith_get_number(VAR_1, VAR_0->free_colours + 1);", "for (VAR_2 = 0; VAR_2 < VAR_3; VAR_2++)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
13,544
int ff_mpeg4_decode_video_packet_header(MpegEncContext *s) { int mb_num_bits= av_log2(s->mb_num - 1) + 1; int header_extension=0, mb_num, len; /* is there enough space left for a video packet + header */ if( get_bits_count(&s->gb) > s->gb.size_in_bits-20) return -1; for(len=0; len<32; len+...
true
FFmpeg
f875a732e36786d49f3650e3235272891a820600
int ff_mpeg4_decode_video_packet_header(MpegEncContext *s) { int mb_num_bits= av_log2(s->mb_num - 1) + 1; int header_extension=0, mb_num, len; if( get_bits_count(&s->gb) > s->gb.size_in_bits-20) return -1; for(len=0; len<32; len++){ if(get_bits1(&s->gb)) break; } if(l...
{ "code": [ " mpeg4_decode_sprite_trajectory(s, &s->gb);" ], "line_no": [ 137 ] }
int FUNC_0(MpegEncContext *VAR_0) { int VAR_1= av_log2(VAR_0->VAR_3 - 1) + 1; int VAR_2=0, VAR_3, VAR_4; if( get_bits_count(&VAR_0->gb) > VAR_0->gb.size_in_bits-20) return -1; for(VAR_4=0; VAR_4<32; VAR_4++){ if(get_bits1(&VAR_0->gb)) break; } if(VAR_4!=ff_mpeg4_get_v...
[ "int FUNC_0(MpegEncContext *VAR_0)\n{", "int VAR_1= av_log2(VAR_0->VAR_3 - 1) + 1;", "int VAR_2=0, VAR_3, VAR_4;", "if( get_bits_count(&VAR_0->gb) > VAR_0->gb.size_in_bits-20) return -1;", "for(VAR_4=0; VAR_4<32; VAR_4++){", "if(get_bits1(&VAR_0->gb)) break;", "}", "if(VAR_4!=ff_mpeg4_get_video_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, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
13,545
static inline void gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb, int search_pc) { DisasContext dc1, *dc = &dc1; CPUBreakpoint *bp; uint16_t *gen_opc_end; int j, lj; targe...
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static inline void gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb, int search_pc) { DisasContext dc1, *dc = &dc1; CPUBreakpoint *bp; uint16_t *gen_opc_end; int j, lj; targe...
{ "code": [ " TCGv tmp = new_tmp();", " num_temps = 0;", " TCGv tmp = new_tmp();", " if (num_temps) {", " fprintf(stderr, \"Internal resource leak before %08x\\n\", dc->pc);", " num_temps = 0;" ], "line_no": [ 175, 29, 175, 313,...
static inline void FUNC_0(CPUState *VAR_0, TranslationBlock *VAR_1, int VAR_2) { DisasContext dc1, *dc = &dc1; CPUBreakpoint *bp; uint16_t *gen_opc_end; int VAR_3, VAR_4; target_ulong pc_start...
[ "static inline void FUNC_0(CPUState *VAR_0,\nTranslationBlock *VAR_1,\nint VAR_2)\n{", "DisasContext dc1, *dc = &dc1;", "CPUBreakpoint *bp;", "uint16_t *gen_opc_end;", "int VAR_3, VAR_4;", "target_ulong pc_start;", "uint32_t next_page_start;", "int VAR_5;", "int VAR_6;", "num_temps = 0;", "pc_st...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 33 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
13,547
static int write_representation(AVFormatContext *s, AVStream *stream, int id, int output_width, int output_height, int output_sample_rate) { AVDictionaryEntry *irange = av_dict_get(stream->metadata, INITIALIZATION_RANGE, NULL, 0); AVDictionaryE...
true
FFmpeg
26f2e2f3f73f0da088e6765291d0839ebb077b03
static int write_representation(AVFormatContext *s, AVStream *stream, int id, int output_width, int output_height, int output_sample_rate) { AVDictionaryEntry *irange = av_dict_get(stream->metadata, INITIALIZATION_RANGE, NULL, 0); AVDictionaryE...
{ "code": [ " avio_printf(s->pb, \">\\n\");", "static int write_representation(AVFormatContext *s, AVStream *stream, int id,", " if (!irange || cues_start == NULL || cues_end == NULL || filename == NULL ||", " !bandwidth) {", " avio_printf(s->pb, \"<Representation id=\\\"%d\\\"\", ...
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { AVDictionaryEntry *irange = av_dict_get(VAR_1->metadata, INITIALIZATION_RANGE, NULL, 0); AVDictionaryEntry *cues_start = av_dict_get(VAR_1-...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint VAR_5) {", "AVDictionaryEntry *irange = av_dict_get(VAR_1->metadata, INITIALIZATION_RANGE, NULL, 0);", "AVDictionaryEntry *cues_start = av_dict_get(VAR_1->metadata, CUES_START, NULL, 0);", "AVDictionaryEntry *cu...
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [...
13,549
static int thp_read_header(AVFormatContext *s, AVFormatParameters *ap) { ThpDemuxContext *thp = s->priv_data; AVStream *st; AVIOContext *pb = s->pb; int64_t fsize= avio_size(pb); int i; /* Read the file header. */ avio_rb32(pb); /...
false
FFmpeg
a0009754442b339dd6f07f8fe4f803f272866912
static int thp_read_header(AVFormatContext *s, AVFormatParameters *ap) { ThpDemuxContext *thp = s->priv_data; AVStream *st; AVIOContext *pb = s->pb; int64_t fsize= avio_size(pb); int i; avio_rb32(pb); thp->version = ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { ThpDemuxContext *thp = VAR_0->priv_data; AVStream *st; AVIOContext *pb = VAR_0->pb; int64_t fsize= avio_size(pb); int VAR_2; avio_rb32(pb); thp->version ...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{", "ThpDemuxContext *thp = VAR_0->priv_data;", "AVStream *st;", "AVIOContext *pb = VAR_0->pb;", "int64_t fsize= avio_size(pb);", "int VAR_2;", "avio_rb32(pb);", "thp->version = avio_rb32(pb);", "avio_rb32(pb);", "avio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
13,550
void av_free(void *ptr) { #if CONFIG_MEMALIGN_HACK if (ptr) free((char *)ptr - ((char *)ptr)[-1]); #elif HAVE_ALIGNED_MALLOC _aligned_free(ptr); #else free(ptr); #endif }
false
FFmpeg
4fb311c804098d78e5ce5f527f9a9c37536d3a08
void av_free(void *ptr) { #if CONFIG_MEMALIGN_HACK if (ptr) free((char *)ptr - ((char *)ptr)[-1]); #elif HAVE_ALIGNED_MALLOC _aligned_free(ptr); #else free(ptr); #endif }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { #if CONFIG_MEMALIGN_HACK if (VAR_0) free((char *)VAR_0 - ((char *)VAR_0)[-1]); #elif HAVE_ALIGNED_MALLOC _aligned_free(VAR_0); #else free(VAR_0); #endif }
[ "void FUNC_0(void *VAR_0)\n{", "#if CONFIG_MEMALIGN_HACK\nif (VAR_0)\nfree((char *)VAR_0 - ((char *)VAR_0)[-1]);", "#elif HAVE_ALIGNED_MALLOC\n_aligned_free(VAR_0);", "#else\nfree(VAR_0);", "#endif\n}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ] ]
13,551
static inline int check_bidir_mv(MpegEncContext * s, int motion_fx, int motion_fy, int motion_bx, int motion_by, int pred_fx, int pred_fy, int pred_bx, int pred_by, int size, int h) { //FIXME optimize? //FIXME...
false
FFmpeg
5b4da8a38a5ed211df9504c85ce401c30af86b97
static inline int check_bidir_mv(MpegEncContext * s, int motion_fx, int motion_fy, int motion_bx, int motion_by, int pred_fx, int pred_fy, int pred_bx, int pred_by, int size, int h) { MotionEstCon...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MpegEncContext * 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, int VAR_9, int VAR_10) { MotionEstContext * const c= &VAR_0...
[ "static inline int FUNC_0(MpegEncContext * VAR_0,\nint VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint VAR_5, int VAR_6,\nint VAR_7, int VAR_8,\nint VAR_9, int VAR_10)\n{", "MotionEstContext * const c= &VAR_0->me;", "uint8_t * const mv_penalty_f= c->mv_penalty[VAR_0->f_code] + MAX_MV;", "uint8_t * const mv_pena...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
13,553
static int init_prec(Jpeg2000Band *band, Jpeg2000ResLevel *reslevel, Jpeg2000Component *comp, int precno, int bandno, int reslevelno, int log2_band_prec_width, int log2_band_prec_height) { Jpeg2000Prec *p...
true
FFmpeg
3d5822d9cf07d08bce82903e4715658f46b01b5c
static int init_prec(Jpeg2000Band *band, Jpeg2000ResLevel *reslevel, Jpeg2000Component *comp, int precno, int bandno, int reslevelno, int log2_band_prec_width, int log2_band_prec_height) { Jpeg2000Prec *p...
{ "code": [ " cblk->zero = 0;" ], "line_no": [ 205 ] }
static int FUNC_0(Jpeg2000Band *VAR_0, Jpeg2000ResLevel *VAR_1, Jpeg2000Component *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { Jpeg2000Prec *prec = VAR_0->prec + VAR_3; int VAR_8,...
[ "static int FUNC_0(Jpeg2000Band *VAR_0,\nJpeg2000ResLevel *VAR_1,\nJpeg2000Component *VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nint VAR_6,\nint VAR_7)\n{", "Jpeg2000Prec *prec = VAR_0->prec + VAR_3;", "int VAR_8, VAR_9;", "prec->decoded_layers = 0;", "prec->coord[0][0] = ((VAR_0->coord[0][0] >> VAR_6) + 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, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 33, 35 ], [ 41, 43 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 61, 63 ], [ 65 ], [ 67 ], [ 71, 73, 75, 77 ], [ 79,...
13,557
static int qcow2_write_compressed(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { BDRVQcowState *s = bs->opaque; z_stream strm; int ret, out_len; uint8_t *out_buf; uint64_t cluster_offset; if (nb_sectors == 0) { ...
true
qemu
f9bff971436b5924ca3c3203c6a3dcd6437bd430
static int qcow2_write_compressed(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { BDRVQcowState *s = bs->opaque; z_stream strm; int ret, out_len; uint8_t *out_buf; uint64_t cluster_offset; if (nb_sectors == 0) { ...
{ "code": [ " ret = qcow2_pre_write_overlap_check(bs, QCOW2_OL_DEFAULT,", " sector_num * BDRV_SECTOR_SIZE,", " s->cluster_sectors * BDRV_SECTOR_SIZE);", " if (ret < 0) {", " goto fail;" ], "line_no": [ 129, 131, 133, 135, ...
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, const uint8_t *VAR_2, int VAR_3) { BDRVQcowState *s = VAR_0->opaque; z_stream strm; int VAR_4, VAR_5; uint8_t *out_buf; uint64_t cluster_offset; if (VAR_3 == 0) { cluster_of...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{", "BDRVQcowState *s = VAR_0->opaque;", "z_stream strm;", "int VAR_4, VAR_5;", "uint8_t *out_buf;", "uint64_t cluster_offset;", "if (VAR_3 == 0) {", "cluster_offset = bdrv_getlength(VAR_0->file);", "cluste...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55,...
13,558
static void test_init(void) { uint64_t barsize; dev = get_device(); dev_base = qpci_iomap(dev, 0, &barsize); g_assert(dev_base != NULL); qpci_device_enable(dev); test_timer(); }
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static void test_init(void) { uint64_t barsize; dev = get_device(); dev_base = qpci_iomap(dev, 0, &barsize); g_assert(dev_base != NULL); qpci_device_enable(dev); test_timer(); }
{ "code": [ " dev_base = qpci_iomap(dev, 0, &barsize);", " g_assert(dev_base != NULL);" ], "line_no": [ 13, 17 ] }
static void FUNC_0(void) { uint64_t barsize; dev = get_device(); dev_base = qpci_iomap(dev, 0, &barsize); g_assert(dev_base != NULL); qpci_device_enable(dev); test_timer(); }
[ "static void FUNC_0(void)\n{", "uint64_t barsize;", "dev = get_device();", "dev_base = qpci_iomap(dev, 0, &barsize);", "g_assert(dev_base != NULL);", "qpci_device_enable(dev);", "test_timer();", "}" ]
[ 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ] ]
13,559
void gen_intermediate_code(CPUPPCState *env, struct TranslationBlock *tb) { PowerPCCPU *cpu = ppc_env_get_cpu(env); CPUState *cs = CPU(cpu); DisasContext ctx, *ctxp = &ctx; opc_handler_t **table, *handler; target_ulong pc_start; int num_insns; int max_insns; pc_start = tb->pc;...
true
qemu
323ad19bcc601d3ec9cb6f0f5b4d67b602fc519e
void gen_intermediate_code(CPUPPCState *env, struct TranslationBlock *tb) { PowerPCCPU *cpu = ppc_env_get_cpu(env); CPUState *cs = CPU(cpu); DisasContext ctx, *ctxp = &ctx; opc_handler_t **table, *handler; target_ulong pc_start; int num_insns; int max_insns; pc_start = tb->pc;...
{ "code": [ " LOG_DISAS(\"translate opcode %08x (%02x %02x %02x) (%s)\\n\",", " ctx.opcode, opc1(ctx.opcode), opc2(ctx.opcode),", " opc3(ctx.opcode), ctx.le_mode ? \"little\" : \"big\");", " \"%02x - %02x - %02x (%08x) \" TARGET_FMT...
void FUNC_0(CPUPPCState *VAR_0, struct TranslationBlock *VAR_1) { PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0); CPUState *cs = CPU(cpu); DisasContext ctx, *ctxp = &ctx; opc_handler_t **table, *handler; target_ulong pc_start; int VAR_2; int VAR_3; pc_start = VAR_1->pc; ctx.nip...
[ "void FUNC_0(CPUPPCState *VAR_0, struct TranslationBlock *VAR_1)\n{", "PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);", "CPUState *cs = CPU(cpu);", "DisasContext ctx, *ctxp = &ctx;", "opc_handler_t **table, *handler;", "target_ulong pc_start;", "int VAR_2;", "int VAR_3;", "pc_start = VAR_1->pc;", "ctx....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ...
13,560
static void smptebars_fill_picture(AVFilterContext *ctx, AVFrame *picref) { TestSourceContext *test = ctx->priv; FFDrawColor color; int r_w, r_h, w_h, p_w, p_h, i, tmp, x = 0; const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(picref->format); r_w = FFALIGN((test->w + 6) / 7, 1 << pixde...
true
FFmpeg
bd252ff6fae71c02110e7144dae2779b3692f8d7
static void smptebars_fill_picture(AVFilterContext *ctx, AVFrame *picref) { TestSourceContext *test = ctx->priv; FFDrawColor color; int r_w, r_h, w_h, p_w, p_h, i, tmp, x = 0; const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(picref->format); r_w = FFALIGN((test->w + 6) / 7, 1 << pixde...
{ "code": [ " FFDrawColor color;", "#define DRAW_COLOR(rgba, x, y, w, h) \\", " ff_draw_color(&test->draw, &color, rgba); \\", " ff_fill_rectangle(&test->draw, &color, \\", " pic...
static void FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1) { TestSourceContext *test = VAR_0->priv; FFDrawColor color; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0; const AVPixFmtDescriptor *VAR_10 = av_pix_fmt_desc_get(VAR_1->format); VAR_2 = FFALIGN((test->w + 6) / 7, 1 <...
[ "static void FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)\n{", "TestSourceContext *test = VAR_0->priv;", "FFDrawColor color;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0;", "const AVPixFmtDescriptor *VAR_10 = av_pix_fmt_desc_get(VAR_1->format);", "VAR_2 = FFALIGN((test->w + 6) / 7, ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31, 33, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
13,561
static coroutine_fn void nbd_read_reply_entry(void *opaque) { NBDClientSession *s = opaque; uint64_t i; int ret; for (;;) { assert(s->reply.handle == 0); ret = nbd_receive_reply(s->ioc, &s->reply); if (ret < 0) { break; } /* There's no n...
false
qemu
a12a712a7dfbd2e2f4882ef2c90a9b2162166dd7
static coroutine_fn void nbd_read_reply_entry(void *opaque) { NBDClientSession *s = opaque; uint64_t i; int ret; for (;;) { assert(s->reply.handle == 0); ret = nbd_receive_reply(s->ioc, &s->reply); if (ret < 0) { break; } ...
{ "code": [], "line_no": [] }
static coroutine_fn void FUNC_0(void *opaque) { NBDClientSession *s = opaque; uint64_t i; int VAR_0; for (;;) { assert(s->reply.handle == 0); VAR_0 = nbd_receive_reply(s->ioc, &s->reply); if (VAR_0 < 0) { break; } i = HAN...
[ "static coroutine_fn void FUNC_0(void *opaque)\n{", "NBDClientSession *s = opaque;", "uint64_t i;", "int VAR_0;", "for (;;) {", "assert(s->reply.handle == 0);", "VAR_0 = nbd_receive_reply(s->ioc, &s->reply);", "if (VAR_0 < 0) {", "break;", "}", "i = HANDLE_TO_INDEX(s, s->reply.handle);", "if (...
[ 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 67 ], [ 69 ], [ 71 ], [ 73 ], [ 75 ] ]
13,562
static int mp_pacl_removexattr(FsContext *ctx, const char *path, const char *name) { int ret; char buffer[PATH_MAX]; ret = lremovexattr(rpath(ctx, path, buffer), MAP_ACL_ACCESS); if (ret == -1 && errno == ENODATA) { /* * We don't get ENODATA error...
false
qemu
4fa4ce7107c6ec432f185307158c5df91ce54308
static int mp_pacl_removexattr(FsContext *ctx, const char *path, const char *name) { int ret; char buffer[PATH_MAX]; ret = lremovexattr(rpath(ctx, path, buffer), MAP_ACL_ACCESS); if (ret == -1 && errno == ENODATA) { errno = 0; ret...
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2) { int VAR_3; char VAR_4[PATH_MAX]; VAR_3 = lremovexattr(rpath(VAR_0, VAR_1, VAR_4), MAP_ACL_ACCESS); if (VAR_3 == -1 && errno == ENODATA) { errno = 0; VAR_3...
[ "static int FUNC_0(FsContext *VAR_0,\nconst char *VAR_1, const char *VAR_2)\n{", "int VAR_3;", "char VAR_4[PATH_MAX];", "VAR_3 = lremovexattr(rpath(VAR_0, VAR_1, VAR_4), MAP_ACL_ACCESS);", "if (VAR_3 == -1 && errno == ENODATA) {", "errno = 0;", "VAR_3 = 0;", "}", "return VAR_3;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
13,563
float32 HELPER(ucf64_adds)(float32 a, float32 b, CPUUniCore32State *env) { return float32_add(a, b, &env->ucf64.fp_status); }
false
qemu
e8ede0a8bb5298a6979bcf7ed84ef64a64a4e3fe
float32 HELPER(ucf64_adds)(float32 a, float32 b, CPUUniCore32State *env) { return float32_add(a, b, &env->ucf64.fp_status); }
{ "code": [], "line_no": [] }
float32 FUNC_0(ucf64_adds)(float32 a, float32 b, CPUUniCore32State *env) { return float32_add(a, b, &env->ucf64.fp_status); }
[ "float32 FUNC_0(ucf64_adds)(float32 a, float32 b, CPUUniCore32State *env)\n{", "return float32_add(a, b, &env->ucf64.fp_status);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,564
static void test_validate_fail_struct(TestInputVisitorData *data, const void *unused) { TestStruct *p = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(data, "{ 'integer': -42, 'boolean': true, 'string': 'foo', 'extra': 42 }"); visit_type...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_validate_fail_struct(TestInputVisitorData *data, const void *unused) { TestStruct *p = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(data, "{ 'integer': -42, 'boolean': true, 'string': 'foo', 'extra': 42 }"); visit_type...
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { TestStruct *p = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(VAR_0, "{ 'integer': -42, 'boolean': true, 'string': 'foo', 'extra': 42 }"); visit_type_TestStruct(v, NUL...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "TestStruct *p = NULL;", "Error *err = NULL;", "Visitor *v;", "v = validate_test_init(VAR_0, \"{ 'integer': -42, 'boolean': true, 'string': 'foo', 'extra': 42 }\");", "visit_type_TestStruct(v, NULL, &p, &err);", "error_free_or_abo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
13,566
static int ram_load_postcopy(QEMUFile *f) { int flags = 0, ret = 0; bool place_needed = false; bool matching_page_sizes = qemu_host_page_size == TARGET_PAGE_SIZE; MigrationIncomingState *mis = migration_incoming_get_current(); /* Temporary page that is later 'placed' */ void *postcopy_hos...
false
qemu
4c4bad486186fed9631b4ceb7c06d24e9fa65e6f
static int ram_load_postcopy(QEMUFile *f) { int flags = 0, ret = 0; bool place_needed = false; bool matching_page_sizes = qemu_host_page_size == TARGET_PAGE_SIZE; MigrationIncomingState *mis = migration_incoming_get_current(); void *postcopy_host_page = postcopy_get_tmp_page(mis); v...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0) { int VAR_1 = 0, VAR_2 = 0; bool place_needed = false; bool matching_page_sizes = qemu_host_page_size == TARGET_PAGE_SIZE; MigrationIncomingState *mis = migration_incoming_get_current(); void *VAR_3 = postcopy_get_tmp_page(mis); void *VAR_4 = NULL;...
[ "static int FUNC_0(QEMUFile *VAR_0)\n{", "int VAR_1 = 0, VAR_2 = 0;", "bool place_needed = false;", "bool matching_page_sizes = qemu_host_page_size == TARGET_PAGE_SIZE;", "MigrationIncomingState *mis = migration_incoming_get_current();", "void *VAR_3 = postcopy_get_tmp_page(mis);", "void *VAR_4 = 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 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
13,567
static uint64_t pmsav7_read(CPUARMState *env, const ARMCPRegInfo *ri) { uint32_t *u32p = *(uint32_t **)raw_ptr(env, ri); if (!u32p) { return 0; } u32p += env->pmsav7.rnr; return *u32p; }
false
qemu
1bc04a8880374407c4b12d82ceb8752e12ff5336
static uint64_t pmsav7_read(CPUARMState *env, const ARMCPRegInfo *ri) { uint32_t *u32p = *(uint32_t **)raw_ptr(env, ri); if (!u32p) { return 0; } u32p += env->pmsav7.rnr; return *u32p; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri) { uint32_t *u32p = *(uint32_t **)raw_ptr(env, ri); if (!u32p) { return 0; } u32p += env->pmsav7.rnr; return *u32p; }
[ "static uint64_t FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri)\n{", "uint32_t *u32p = *(uint32_t **)raw_ptr(env, ri);", "if (!u32p) {", "return 0;", "}", "u32p += env->pmsav7.rnr;", "return *u32p;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ] ]
13,568
static int gt64120_pci_init(PCIDevice *d) { /* FIXME: Malta specific hw assumptions ahead */ pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_MARVELL); pci_config_set_device_id(d->config, PCI_DEVICE_ID_MARVELL_GT6412X); pci_set_word(d->config + PCI_COMMAND, 0); pci_set_word(d->config + PCI_ST...
false
qemu
231f5f43dc8ee40c86b00473df67226721d00832
static int gt64120_pci_init(PCIDevice *d) { pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_MARVELL); pci_config_set_device_id(d->config, PCI_DEVICE_ID_MARVELL_GT6412X); pci_set_word(d->config + PCI_COMMAND, 0); pci_set_word(d->config + PCI_STATUS, PCI_STATUS_FAST_BACK | P...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_MARVELL); pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_MARVELL_GT6412X); pci_set_word(VAR_0->config + PCI_COMMAND, 0); pci_set_word(VAR_0->config + PCI_STATUS, PCI_STATUS_FAS...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_MARVELL);", "pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_MARVELL_GT6412X);", "pci_set_word(VAR_0->config + PCI_COMMAND, 0);", "pci_set_word(VAR_0->config + PCI_STATUS,\nPCI_STATUS_FAST_BACK | PCI_STATU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
13,570
static int vtd_page_walk(VTDContextEntry *ce, uint64_t start, uint64_t end, vtd_page_walk_hook hook_fn, void *private, bool notify_unmap) { dma_addr_t addr = vtd_ce_get_slpt_base(ce); uint32_t level = vtd_ce_get_level(ce); if (!vtd_iova_range_check(s...
false
qemu
37f51384ae05bd50f83308339dbffa3e78404874
static int vtd_page_walk(VTDContextEntry *ce, uint64_t start, uint64_t end, vtd_page_walk_hook hook_fn, void *private, bool notify_unmap) { dma_addr_t addr = vtd_ce_get_slpt_base(ce); uint32_t level = vtd_ce_get_level(ce); if (!vtd_iova_range_check(s...
{ "code": [], "line_no": [] }
static int FUNC_0(VTDContextEntry *VAR_0, uint64_t VAR_1, uint64_t VAR_2, vtd_page_walk_hook VAR_3, void *VAR_4, bool VAR_5) { dma_addr_t addr = vtd_ce_get_slpt_base(VAR_0); uint32_t level = vtd_ce_get_level(VAR_0); if (!vtd_iova_range_check(VAR_1, V...
[ "static int FUNC_0(VTDContextEntry *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nvtd_page_walk_hook VAR_3, void *VAR_4,\nbool VAR_5)\n{", "dma_addr_t addr = vtd_ce_get_slpt_base(VAR_0);", "uint32_t level = vtd_ce_get_level(VAR_0);", "if (!vtd_iova_range_check(VAR_1, VAR_0)) {", "return -VTD_FR_ADDR_BEYOND_MGAW;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ] ]
13,572
static int omx_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { OMXCodecContext *s = avctx->priv_data; int ret = 0; OMX_BUFFERHEADERTYPE* buffer; OMX_ERRORTYPE err; if (frame) { uint8_t *dst[4]; int lin...
false
FFmpeg
bd83c295fc1b7f8001e5d134b912af86cd62c3f2
static int omx_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { OMXCodecContext *s = avctx->priv_data; int ret = 0; OMX_BUFFERHEADERTYPE* buffer; OMX_ERRORTYPE err; if (frame) { uint8_t *dst[4]; int lin...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { OMXCodecContext *s = VAR_0->priv_data; int VAR_4 = 0; OMX_BUFFERHEADERTYPE* buffer; OMX_ERRORTYPE err; if (VAR_2) { uint8_t *dst[4]; int VAR_5[4]; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "OMXCodecContext *s = VAR_0->priv_data;", "int VAR_4 = 0;", "OMX_BUFFERHEADERTYPE* buffer;", "OMX_ERRORTYPE err;", "if (VAR_2) {", "uint8_t *dst[4];", "int VAR_5[4];", "int VAR_6;", "buffer = get_buf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45, 47, 49, 51 ], [ 59 ...
13,573
void kvm_arm_reset_vcpu(ARMCPU *cpu) { /* Feed the kernel back its initial register state */ memmove(cpu->cpreg_values, cpu->cpreg_reset_values, cpu->cpreg_array_len * sizeof(cpu->cpreg_values[0])); if (!write_list_to_kvmstate(cpu)) { abort(); } }
false
qemu
75c9a1a0473cc5ca9756d11b236c715c7bc0ba67
void kvm_arm_reset_vcpu(ARMCPU *cpu) { memmove(cpu->cpreg_values, cpu->cpreg_reset_values, cpu->cpreg_array_len * sizeof(cpu->cpreg_values[0])); if (!write_list_to_kvmstate(cpu)) { abort(); } }
{ "code": [], "line_no": [] }
void FUNC_0(ARMCPU *VAR_0) { memmove(VAR_0->cpreg_values, VAR_0->cpreg_reset_values, VAR_0->cpreg_array_len * sizeof(VAR_0->cpreg_values[0])); if (!write_list_to_kvmstate(VAR_0)) { abort(); } }
[ "void FUNC_0(ARMCPU *VAR_0)\n{", "memmove(VAR_0->cpreg_values, VAR_0->cpreg_reset_values,\nVAR_0->cpreg_array_len * sizeof(VAR_0->cpreg_values[0]));", "if (!write_list_to_kvmstate(VAR_0)) {", "abort();", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
13,574
static void vmsvga_update_display(void *opaque) { struct vmsvga_state_s *s = opaque; DisplaySurface *surface; bool dirty = false; if (!s->enable) { s->vga.hw_ops->gfx_update(&s->vga); return; } vmsvga_check_size(s); surface = qemu_console_surface(s->vga.con); ...
false
qemu
2d1a35bef0ed96b3f23535e459c552414ccdbafd
static void vmsvga_update_display(void *opaque) { struct vmsvga_state_s *s = opaque; DisplaySurface *surface; bool dirty = false; if (!s->enable) { s->vga.hw_ops->gfx_update(&s->vga); return; } vmsvga_check_size(s); surface = qemu_console_surface(s->vga.con); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { struct vmsvga_state_s *VAR_1 = VAR_0; DisplaySurface *surface; bool dirty = false; if (!VAR_1->enable) { VAR_1->vga.hw_ops->gfx_update(&VAR_1->vga); return; } vmsvga_check_size(VAR_1); surface = qemu_console_surface(VAR_1->vga.c...
[ "static void FUNC_0(void *VAR_0)\n{", "struct vmsvga_state_s *VAR_1 = VAR_0;", "DisplaySurface *surface;", "bool dirty = false;", "if (!VAR_1->enable) {", "VAR_1->vga.hw_ops->gfx_update(&VAR_1->vga);", "return;", "}", "vmsvga_check_size(VAR_1);", "surface = qemu_console_surface(VAR_1->vga.con);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 43 ], [ 45 ], [ 47, 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59,...
13,575
static void bdrv_io_limits_intercept(BlockDriverState *bs, int nb_sectors, bool is_write) { /* does this io must wait */ bool must_wait = throttle_schedule_timer(&bs->throttle_state, is_write); /* if must wait or any request o...
false
qemu
d5103588aa39157c8eea3bb5fb6780bbd8be21b7
static void bdrv_io_limits_intercept(BlockDriverState *bs, int nb_sectors, bool is_write) { bool must_wait = throttle_schedule_timer(&bs->throttle_state, is_write); if (must_wait || !qemu_co_queue_empty(&bs->th...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, int VAR_1, bool VAR_2) { bool must_wait = throttle_schedule_timer(&VAR_0->throttle_state, VAR_2); if (must_wait || !qemu_co_queue_empty(&VAR_0->throttled_reqs[VAR_2])...
[ "static void FUNC_0(BlockDriverState *VAR_0,\nint VAR_1,\nbool VAR_2)\n{", "bool must_wait = throttle_schedule_timer(&VAR_0->throttle_state, VAR_2);", "if (must_wait ||\n!qemu_co_queue_empty(&VAR_0->throttled_reqs[VAR_2])) {", "qemu_co_queue_wait(&VAR_0->throttled_reqs[VAR_2]);", "}", "throttle_account(&V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 11 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 29, 31, 33 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ] ]
13,576
static void ide_cfata_identify(IDEState *s) { uint16_t *p; uint32_t cur_sec; p = (uint16_t *) s->identify_data; if (s->identify_set) goto fill_buffer; memset(p, 0, sizeof(s->identify_data)); cur_sec = s->cylinders * s->heads * s->sectors; put_le16(p + 0, 0x848a); /...
false
qemu
27e0c9a1bbd166a67c16291016fba298a8e47140
static void ide_cfata_identify(IDEState *s) { uint16_t *p; uint32_t cur_sec; p = (uint16_t *) s->identify_data; if (s->identify_set) goto fill_buffer; memset(p, 0, sizeof(s->identify_data)); cur_sec = s->cylinders * s->heads * s->sectors; put_le16(p + 0, 0x848a); ...
{ "code": [], "line_no": [] }
static void FUNC_0(IDEState *VAR_0) { uint16_t *p; uint32_t cur_sec; p = (uint16_t *) VAR_0->identify_data; if (VAR_0->identify_set) goto fill_buffer; memset(p, 0, sizeof(VAR_0->identify_data)); cur_sec = VAR_0->cylinders * VAR_0->heads * VAR_0->sectors; put_le16(p +...
[ "static void FUNC_0(IDEState *VAR_0)\n{", "uint16_t *p;", "uint32_t cur_sec;", "p = (uint16_t *) VAR_0->identify_data;", "if (VAR_0->identify_set)\ngoto fill_buffer;", "memset(p, 0, sizeof(VAR_0->identify_data));", "cur_sec = VAR_0->cylinders * VAR_0->heads * VAR_0->sectors;", "put_le16(p + 0, 0x848a)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51...
13,577
static void test_qga_file_ops(gconstpointer fix) { const TestFixture *fixture = fix; const unsigned char helloworld[] = "Hello World!\n"; const char *b64; gchar *cmd, *path, *enc; unsigned char *dec; QDict *ret, *val; int64_t id, eof; gsize count; FILE *f; char tmp[100...
false
qemu
0a982b1bf3953dc8640c4d6e619fb1132ebbebc3
static void test_qga_file_ops(gconstpointer fix) { const TestFixture *fixture = fix; const unsigned char helloworld[] = "Hello World!\n"; const char *b64; gchar *cmd, *path, *enc; unsigned char *dec; QDict *ret, *val; int64_t id, eof; gsize count; FILE *f; char tmp[100...
{ "code": [], "line_no": [] }
static void FUNC_0(gconstpointer VAR_0) { const TestFixture *VAR_1 = VAR_0; const unsigned char VAR_2[] = "Hello World!\n"; const char *VAR_3; gchar *cmd, *path, *enc; unsigned char *VAR_4; QDict *ret, *val; int64_t id, eof; gsize count; FILE *f; char VAR_5[100]; ...
[ "static void FUNC_0(gconstpointer VAR_0)\n{", "const TestFixture *VAR_1 = VAR_0;", "const unsigned char VAR_2[] = \"Hello World!\\n\";", "const char *VAR_3;", "gchar *cmd, *path, *enc;", "unsigned char *VAR_4;", "QDict *ret, *val;", "int64_t id, eof;", "gsize count;", "FILE *f;", "char VAR_5[100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ...
13,578
static inline uint64_t tcg_opc_movi_a(int qp, TCGReg dst, int64_t src) { assert(src == sextract64(src, 0, 22)); return tcg_opc_a5(qp, OPC_ADDL_A5, dst, src, TCG_REG_R0); }
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static inline uint64_t tcg_opc_movi_a(int qp, TCGReg dst, int64_t src) { assert(src == sextract64(src, 0, 22)); return tcg_opc_a5(qp, OPC_ADDL_A5, dst, src, TCG_REG_R0); }
{ "code": [], "line_no": [] }
static inline uint64_t FUNC_0(int qp, TCGReg dst, int64_t src) { assert(src == sextract64(src, 0, 22)); return tcg_opc_a5(qp, OPC_ADDL_A5, dst, src, TCG_REG_R0); }
[ "static inline uint64_t FUNC_0(int qp, TCGReg dst, int64_t src)\n{", "assert(src == sextract64(src, 0, 22));", "return tcg_opc_a5(qp, OPC_ADDL_A5, dst, src, TCG_REG_R0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
13,579
bool qemu_clock_run_timers(QEMUClockType type) { return timerlist_run_timers(main_loop_tlg.tl[type]); }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
bool qemu_clock_run_timers(QEMUClockType type) { return timerlist_run_timers(main_loop_tlg.tl[type]); }
{ "code": [], "line_no": [] }
bool FUNC_0(QEMUClockType type) { return timerlist_run_timers(main_loop_tlg.tl[type]); }
[ "bool FUNC_0(QEMUClockType type)\n{", "return timerlist_run_timers(main_loop_tlg.tl[type]);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,580
static int net_slirp_init(VLANState *vlan, const char *model, const char *name) { if (!slirp_inited) { slirp_inited = 1; slirp_init(slirp_restrict, slirp_ip); } slirp_vc = qemu_new_vlan_client(vlan, model, name, slirp_receive, NULL, NULL, NULL); ...
false
qemu
8d6249a73adefb2468154b7da70c61b23e393d5b
static int net_slirp_init(VLANState *vlan, const char *model, const char *name) { if (!slirp_inited) { slirp_inited = 1; slirp_init(slirp_restrict, slirp_ip); } slirp_vc = qemu_new_vlan_client(vlan, model, name, slirp_receive, NULL, NULL, NULL); ...
{ "code": [], "line_no": [] }
static int FUNC_0(VLANState *VAR_0, const char *VAR_1, const char *VAR_2) { if (!slirp_inited) { slirp_inited = 1; slirp_init(slirp_restrict, slirp_ip); } slirp_vc = qemu_new_vlan_client(VAR_0, VAR_1, VAR_2, slirp_receive, NULL, NULL, NULL); sl...
[ "static int FUNC_0(VLANState *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "if (!slirp_inited) {", "slirp_inited = 1;", "slirp_init(slirp_restrict, slirp_ip);", "}", "slirp_vc = qemu_new_vlan_client(VAR_0, VAR_1, VAR_2,\nslirp_receive, NULL, NULL, NULL);", "slirp_vc->info_str[0] = '\\0';", "retur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ] ]
13,581
static int assigned_device_pci_cap_init(PCIDevice *pci_dev, Error **errp) { AssignedDevice *dev = PCI_ASSIGN(pci_dev); PCIRegion *pci_region = dev->real_device.regions; int ret, pos; /* Clear initial capabilities pointer and status copied from hw */ pci_set_byte(pci_dev->config + PCI_CAPABIL...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
static int assigned_device_pci_cap_init(PCIDevice *pci_dev, Error **errp) { AssignedDevice *dev = PCI_ASSIGN(pci_dev); PCIRegion *pci_region = dev->real_device.regions; int ret, pos; pci_set_byte(pci_dev->config + PCI_CAPABILITY_LIST, 0); pci_set_word(pci_dev->config + PCI_STATUS, ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { AssignedDevice *dev = PCI_ASSIGN(VAR_0); PCIRegion *pci_region = dev->real_device.regions; int VAR_2, VAR_3; pci_set_byte(VAR_0->config + PCI_CAPABILITY_LIST, 0); pci_set_word(VAR_0->config + PCI_STATUS, pci_get_wor...
[ "static int FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "AssignedDevice *dev = PCI_ASSIGN(VAR_0);", "PCIRegion *pci_region = dev->real_device.regions;", "int VAR_2, VAR_3;", "pci_set_byte(VAR_0->config + PCI_CAPABILITY_LIST, 0);", "pci_set_word(VAR_0->config + PCI_STATUS,\npci_get_word(VAR_0->config + PC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17, 19, 21 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
13,582
static inline void gen_intermediate_code_internal(UniCore32CPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUUniCore32State *env = &cpu->env; DisasContext dc1, *dc = &dc1; CPUBreakpoint *bp; uint16_t *gen_opc_end; int j, lj; target_ulong pc_start;...
false
qemu
cd42d5b23691ad73edfd6dbcfc935a960a9c5a65
static inline void gen_intermediate_code_internal(UniCore32CPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUUniCore32State *env = &cpu->env; DisasContext dc1, *dc = &dc1; CPUBreakpoint *bp; uint16_t *gen_opc_end; int j, lj; target_ulong pc_start;...
{ "code": [], "line_no": [] }
static inline void FUNC_0(UniCore32CPU *VAR_0, TranslationBlock *VAR_1, bool VAR_2) { CPUState *cs = CPU(VAR_0); CPUUniCore32State *env = &VAR_0->env; DisasContext dc1, *dc = &dc1; CPUBreakpoint *bp; uint16_t *gen_opc_end; int VAR_3, VAR_4; target_ulong pc_start; uint32...
[ "static inline void FUNC_0(UniCore32CPU *VAR_0,\nTranslationBlock *VAR_1, bool VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "CPUUniCore32State *env = &VAR_0->env;", "DisasContext dc1, *dc = &dc1;", "CPUBreakpoint *bp;", "uint16_t *gen_opc_end;", "int VAR_3, VAR_4;", "target_ulong pc_start;", "uint32_t ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 35 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
13,583
static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx, DECODER_BUFFER_DESC *bs, DECODER_BUFFER_DESC *sc) { const struct MpegEncContext *s = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; ...
false
FFmpeg
4dec101acc393fbfe9a8ce0237b9efbae3f20139
static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx, DECODER_BUFFER_DESC *bs, DECODER_BUFFER_DESC *sc) { const struct MpegEncContext *s = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, DECODER_BUFFER_DESC *VAR_1, DECODER_BUFFER_DESC *VAR_2) { const struct MpegEncContext *VAR_3 = VAR_0->priv_data; AVDXVAContext *ctx = VAR_0->hwaccel_context; struct dxva2_...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nDECODER_BUFFER_DESC *VAR_1,\nDECODER_BUFFER_DESC *VAR_2)\n{", "const struct MpegEncContext *VAR_3 = VAR_0->priv_data;", "AVDXVAContext *ctx = VAR_0->hwaccel_context;", "struct dxva2_picture_context *VAR_4 =\nVAR_3->current_picture_ptr->hwaccel_picture_private;", "c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39, 41, 43, 45, 47 ], [ 49 ], [ 51,...
13,584
static void piix4_reset(void *opaque) { PIIX4PMState *s = opaque; uint8_t *pci_conf = s->dev.config; pci_conf[0x58] = 0; pci_conf[0x59] = 0; pci_conf[0x5a] = 0; pci_conf[0x5b] = 0; }
false
qemu
3c892168a02b4ff9ef8c398599940b8f16a32437
static void piix4_reset(void *opaque) { PIIX4PMState *s = opaque; uint8_t *pci_conf = s->dev.config; pci_conf[0x58] = 0; pci_conf[0x59] = 0; pci_conf[0x5a] = 0; pci_conf[0x5b] = 0; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { PIIX4PMState *s = VAR_0; uint8_t *pci_conf = s->dev.config; pci_conf[0x58] = 0; pci_conf[0x59] = 0; pci_conf[0x5a] = 0; pci_conf[0x5b] = 0; }
[ "static void FUNC_0(void *VAR_0)\n{", "PIIX4PMState *s = VAR_0;", "uint8_t *pci_conf = s->dev.config;", "pci_conf[0x58] = 0;", "pci_conf[0x59] = 0;", "pci_conf[0x5a] = 0;", "pci_conf[0x5b] = 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
13,585
static void vgafb_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { MilkymistVgafbState *s = opaque; trace_milkymist_vgafb_memory_write(addr, value); addr >>= 2; switch (addr) { case R_CTRL: s->regs[addr] = value; vgafb...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void vgafb_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { MilkymistVgafbState *s = opaque; trace_milkymist_vgafb_memory_write(addr, value); addr >>= 2; switch (addr) { case R_CTRL: s->regs[addr] = value; vgafb...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { MilkymistVgafbState *s = VAR_0; trace_milkymist_vgafb_memory_write(VAR_1, VAR_2); VAR_1 >>= 2; switch (VAR_1) { case R_CTRL: s->regs[VAR_1] = VAR_2; vgafb_...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2,\nunsigned VAR_3)\n{", "MilkymistVgafbState *s = VAR_0;", "trace_milkymist_vgafb_memory_write(VAR_1, VAR_2);", "VAR_1 >>= 2;", "switch (VAR_1) {", "case R_CTRL:\ns->regs[VAR_1] = VAR_2;", "vgafb_resize(s);", "break;", "case 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27, 29, 31, 33, 35, 37, 39, 41, 43, 45 ], [ 47 ], [ 49, 51 ], [ 53, 55 ], [ 57 ], ...
13,586
static int get_phys_addr_v5(CPUARMState *env, uint32_t address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, int *prot, target_ulong *page_size) { CPUState *cs = CPU(arm_env_get_cpu(env)); int code; uint32_t table; uint32_t desc; ...
false
qemu
0fbf5238203041f734c51b49778223686f14366b
static int get_phys_addr_v5(CPUARMState *env, uint32_t address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, int *prot, target_ulong *page_size) { CPUState *cs = CPU(arm_env_get_cpu(env)); int code; uint32_t table; uint32_t desc; ...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUARMState *VAR_0, uint32_t VAR_1, int VAR_2, ARMMMUIdx VAR_3, hwaddr *VAR_4, int *VAR_5, target_ulong *VAR_6) { CPUState *cs = CPU(arm_env_get_cpu(VAR_0)); int VAR_7; uint32_t table; uint32_t desc; int VAR_8; in...
[ "static int FUNC_0(CPUARMState *VAR_0, uint32_t VAR_1, int VAR_2,\nARMMMUIdx VAR_3, hwaddr *VAR_4,\nint *VAR_5, target_ulong *VAR_6)\n{", "CPUState *cs = CPU(arm_env_get_cpu(VAR_0));", "int VAR_7;", "uint32_t table;", "uint32_t desc;", "int VAR_8;", "int VAR_9;", "int VAR_10 = 0;", "int 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...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
13,587
static void qjson_initfn(Object *obj) { QJSON *json = QJSON(obj); json->str = qstring_from_str("{ "); json->omit_comma = true; }
false
qemu
17b74b98676aee5bc470b173b1e528d2fce2cf18
static void qjson_initfn(Object *obj) { QJSON *json = QJSON(obj); json->str = qstring_from_str("{ "); json->omit_comma = true; }
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { QJSON *json = QJSON(VAR_0); json->str = qstring_from_str("{ "); json->omit_comma = true; }
[ "static void FUNC_0(Object *VAR_0)\n{", "QJSON *json = QJSON(VAR_0);", "json->str = qstring_from_str(\"{ \");", "json->omit_comma = true;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
13,588
cac_applet_pki_reset(VCard *card, int channel) { VCardAppletPrivate *applet_private = NULL; CACPKIAppletData *pki_applet = NULL; applet_private = vcard_get_current_applet_private(card, channel); assert(applet_private); pki_applet = &(applet_private->u.pki_data); pki_applet->cert_buffer ...
false
qemu
1687a089f103f9b7a1b4a1555068054cb46ee9e9
cac_applet_pki_reset(VCard *card, int channel) { VCardAppletPrivate *applet_private = NULL; CACPKIAppletData *pki_applet = NULL; applet_private = vcard_get_current_applet_private(card, channel); assert(applet_private); pki_applet = &(applet_private->u.pki_data); pki_applet->cert_buffer ...
{ "code": [], "line_no": [] }
FUNC_0(VCard *VAR_0, int VAR_1) { VCardAppletPrivate *applet_private = NULL; CACPKIAppletData *pki_applet = NULL; applet_private = vcard_get_current_applet_private(VAR_0, VAR_1); assert(applet_private); pki_applet = &(applet_private->u.pki_data); pki_applet->cert_buffer = NULL; if ...
[ "FUNC_0(VCard *VAR_0, int VAR_1)\n{", "VCardAppletPrivate *applet_private = NULL;", "CACPKIAppletData *pki_applet = NULL;", "applet_private = vcard_get_current_applet_private(VAR_0, VAR_1);", "assert(applet_private);", "pki_applet = &(applet_private->u.pki_data);", "pki_applet->cert_buffer = NULL;", "...
[ 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 ] ]
13,590
static void coroutine_fn bdrv_rw_co_entry(void *opaque) { RwCo *rwco = opaque; if (!rwco->is_write) { rwco->ret = bdrv_co_do_preadv(rwco->bs, rwco->offset, rwco->qiov->size, rwco->qiov, rwco->flags); } else { ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static void coroutine_fn bdrv_rw_co_entry(void *opaque) { RwCo *rwco = opaque; if (!rwco->is_write) { rwco->ret = bdrv_co_do_preadv(rwco->bs, rwco->offset, rwco->qiov->size, rwco->qiov, rwco->flags); } else { ...
{ "code": [], "line_no": [] }
static void VAR_0 bdrv_rw_co_entry(void *opaque) { RwCo *rwco = opaque; if (!rwco->is_write) { rwco->ret = bdrv_co_do_preadv(rwco->bs, rwco->offset, rwco->qiov->size, rwco->qiov, rwco->flags); } else { rwco...
[ "static void VAR_0 bdrv_rw_co_entry(void *opaque)\n{", "RwCo *rwco = opaque;", "if (!rwco->is_write) {", "rwco->ret = bdrv_co_do_preadv(rwco->bs, rwco->offset,\nrwco->qiov->size, rwco->qiov,\nrwco->flags);", "} else {", "rwco->ret = bdrv_co_do_pwritev(rwco->bs, rwco->offset,\nrwco->qiov->size, rwco->qiov,...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13, 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ] ]