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
14,687
yuv2mono_2_c_template(SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum PixelFormat target) { const ...
true
FFmpeg
4860625236475da20d0da954017e8c7fe412dea2
yuv2mono_2_c_template(SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum PixelFormat target) { const ...
{ "code": [ " int yalpha1 = 4095 - yalpha;", " int yalpha1 = 4095 - yalpha;", " int yalpha1 = 4095 - yalpha;", " int yalpha1 = 4095 - yalpha;" ], "line_no": [ 17, 17, 17, 17 ] }
FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2], const int16_t *VAR_2[2], const int16_t *VAR_3[2], const int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, enum PixelFormat VAR_10) { const int...
[ "FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2],\nconst int16_t *VAR_2[2], const int16_t *VAR_3[2],\nconst int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, int VAR_9,\nenum PixelFormat VAR_10)\n{", "const int16_t *VAR_11 = VAR_1[0], *buf1 = VAR_1[1];", "const uint8_t * const VAR_12 = d...
[ 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 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
14,689
static int xwma_read_header(AVFormatContext *s, AVFormatParameters *ap) { int64_t size, av_uninit(data_size); uint32_t dpds_table_size = 0; uint32_t *dpds_table = 0; unsigned int tag; AVIOContext *pb = s->pb; AVStream *st; XWMAContext *xwma = s->priv_data; int i; /* The f...
true
FFmpeg
ca402f32e392590a81a1381dab41c4f9c2c2f98a
static int xwma_read_header(AVFormatContext *s, AVFormatParameters *ap) { int64_t size, av_uninit(data_size); uint32_t dpds_table_size = 0; uint32_t *dpds_table = 0; unsigned int tag; AVIOContext *pb = s->pb; AVStream *st; XWMAContext *xwma = s->priv_data; int i; ...
{ "code": [ " ff_get_wav_header(pb, st->codec, size);", " ff_get_wav_header(pb, st->codec, size);" ], "line_no": [ 67, 67 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { int64_t size, av_uninit(data_size); uint32_t dpds_table_size = 0; uint32_t *dpds_table = 0; unsigned int VAR_2; AVIOContext *pb = VAR_0->pb; AVStream *st; XWMAContext *xwma = VAR_0->priv_data; int VAR_3; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "int64_t size, av_uninit(data_size);", "uint32_t dpds_table_size = 0;", "uint32_t *dpds_table = 0;", "unsigned int VAR_2;", "AVIOContext *pb = VAR_0->pb;", "AVStream *st;", "XWMAContext *xwma = VAR_0->priv_data;", "int VAR_3;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 59 ], [...
14,690
void qmp_migrate_set_parameters(bool has_compress_level, int64_t compress_level, bool has_compress_threads, int64_t compress_threads, bool has_decompress_threads, ...
true
qemu
69ef1f36b0f882fc5ba9491fb272fa5f83ac1d3d
void qmp_migrate_set_parameters(bool has_compress_level, int64_t compress_level, bool has_compress_threads, int64_t compress_threads, bool has_decompress_threads, ...
{ "code": [], "line_no": [] }
void FUNC_0(bool VAR_0, int64_t VAR_1, bool VAR_2, int64_t VAR_3, bool VAR_4, int64_t VAR_5, bool VAR_6, ...
[ "void FUNC_0(bool VAR_0,\nint64_t VAR_1,\nbool VAR_2,\nint64_t VAR_3,\nbool VAR_4,\nint64_t VAR_5,\nbool VAR_6,\nint64_t VAR_7,\nbool VAR_8,\nint64_t VAR_9,\nError **VAR_10)\n{", "MigrationState *s = migrate_get_current();", "if (VAR_0 && (VAR_1 < 0 || VAR_1 > 9)) {", "error_setg(VAR_10, QERR_INVALID_PARAMETE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49, 51 ], [ 53 ], [ 55 ], [ 57, 59 ], [ 61, 63,...
14,691
static int swf_write_packet(AVFormatContext *s, int stream_index, const uint8_t *buf, int size, int64_t pts) { AVCodecContext *codec = &s->streams[stream_index]->codec; if (codec->codec_type == CODEC_TYPE_AUDIO) return swf_write_audio(s, buf, size); else re...
true
FFmpeg
747a0554ea8ad09404c1f5b80239ebd8d71b291e
static int swf_write_packet(AVFormatContext *s, int stream_index, const uint8_t *buf, int size, int64_t pts) { AVCodecContext *codec = &s->streams[stream_index]->codec; if (codec->codec_type == CODEC_TYPE_AUDIO) return swf_write_audio(s, buf, size); else re...
{ "code": [ " return swf_write_audio(s, buf, size);" ], "line_no": [ 11 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, const uint8_t *VAR_2, int VAR_3, int64_t VAR_4) { AVCodecContext *codec = &VAR_0->streams[VAR_1]->codec; if (codec->codec_type == CODEC_TYPE_AUDIO) return swf_write_audio(VAR_0, VAR_2, VAR_3); else return...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nconst uint8_t *VAR_2, int VAR_3, int64_t VAR_4)\n{", "AVCodecContext *codec = &VAR_0->streams[VAR_1]->codec;", "if (codec->codec_type == CODEC_TYPE_AUDIO)\nreturn swf_write_audio(VAR_0, VAR_2, VAR_3);", "else\nreturn swf_write_video(VAR_0, codec, VAR_2, V...
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ] ]
14,692
static void hScale16To15_c(SwsContext *c, int16_t *dst, int dstW, const uint8_t *_src, const int16_t *filter, const int16_t *filterPos, int filterSize) { int i; const uint16_t *src = (const uint16_t *) _src; int sh = av_pix_fmt_descriptors[c->srcFo...
true
FFmpeg
2254b559cbcfc0418135f09add37c0a5866b1981
static void hScale16To15_c(SwsContext *c, int16_t *dst, int dstW, const uint8_t *_src, const int16_t *filter, const int16_t *filterPos, int filterSize) { int i; const uint16_t *src = (const uint16_t *) _src; int sh = av_pix_fmt_descriptors[c->srcFo...
{ "code": [ " const int16_t *filterPos, int filterSize)", " const int16_t *filterPos, int filterSize)" ], "line_no": [ 5, 5 ] }
static void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3, const int16_t *VAR_4, const int16_t *VAR_5, int VAR_6) { int VAR_7; const uint16_t *VAR_8 = (const uint16_t *) VAR_3; int VAR_9 = av_pix_fmt_descriptors[VAR_0->s...
[ "static void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3,\nconst int16_t *VAR_4,\nconst int16_t *VAR_5, int VAR_6)\n{", "int VAR_7;", "const uint16_t *VAR_8 = (const uint16_t *) VAR_3;", "int VAR_9 = av_pix_fmt_descriptors[VAR_0->srcFormat].comp[0].depth_minus1;", "for (VAR_7 =...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
14,693
static int __qemu_rdma_delete_block(RDMAContext *rdma, ram_addr_t block_offset) { RDMALocalBlocks *local = &rdma->local_ram_blocks; RDMALocalBlock *block = g_hash_table_lookup(rdma->blockmap, (void *) block_offset); RDMALocalBlock *old = local->block; int x; assert(block); if...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int __qemu_rdma_delete_block(RDMAContext *rdma, ram_addr_t block_offset) { RDMALocalBlocks *local = &rdma->local_ram_blocks; RDMALocalBlock *block = g_hash_table_lookup(rdma->blockmap, (void *) block_offset); RDMALocalBlock *old = local->block; int x; assert(block); if...
{ "code": [], "line_no": [] }
static int FUNC_0(RDMAContext *VAR_0, ram_addr_t VAR_1) { RDMALocalBlocks *local = &VAR_0->local_ram_blocks; RDMALocalBlock *block = g_hash_table_lookup(VAR_0->blockmap, (void *) VAR_1); RDMALocalBlock *old = local->block; int VAR_2; assert(block); if (block->pmr) { ...
[ "static int FUNC_0(RDMAContext *VAR_0, ram_addr_t VAR_1)\n{", "RDMALocalBlocks *local = &VAR_0->local_ram_blocks;", "RDMALocalBlock *block = g_hash_table_lookup(VAR_0->blockmap,\n(void *) VAR_1);", "RDMALocalBlock *old = local->block;", "int VAR_2;", "assert(block);", "if (block->pmr) {", "int VAR_3;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
14,695
static int decode_extradata(ADTSContext *adts, uint8_t *buf, int size) { GetBitContext gb; init_get_bits(&gb, buf, size * 8); adts->objecttype = get_bits(&gb, 5) - 1; adts->sample_rate_index = get_bits(&gb, 4); adts->channel_conf = get_bits(&gb, 4); adts->write_adts = 1; return...
true
FFmpeg
dd44d9e316c17f473eff9f4a5a94ad0d7adb157e
static int decode_extradata(ADTSContext *adts, uint8_t *buf, int size) { GetBitContext gb; init_get_bits(&gb, buf, size * 8); adts->objecttype = get_bits(&gb, 5) - 1; adts->sample_rate_index = get_bits(&gb, 4); adts->channel_conf = get_bits(&gb, 4); adts->write_adts = 1; return...
{ "code": [ "static int decode_extradata(ADTSContext *adts, uint8_t *buf, int size)" ], "line_no": [ 1 ] }
static int FUNC_0(ADTSContext *VAR_0, uint8_t *VAR_1, int VAR_2) { GetBitContext gb; init_get_bits(&gb, VAR_1, VAR_2 * 8); VAR_0->objecttype = get_bits(&gb, 5) - 1; VAR_0->sample_rate_index = get_bits(&gb, 4); VAR_0->channel_conf = get_bits(&gb, 4); VAR_0->write_adts = 1; retur...
[ "static int FUNC_0(ADTSContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "GetBitContext gb;", "init_get_bits(&gb, VAR_1, VAR_2 * 8);", "VAR_0->objecttype = get_bits(&gb, 5) - 1;", "VAR_0->sample_rate_index = get_bits(&gb, 4);", "VAR_0->channel_conf = get_bits(&gb, 4);", "VAR_0->write_adts = 1;", "return...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ] ]
14,696
static void tcg_out_st (TCGContext *s, TCGType type, int arg, int arg1, tcg_target_long arg2) { if (type == TCG_TYPE_I32) tcg_out_ldst (s, arg, arg1, arg2, STW, STWX); else tcg_out_ldst (s, arg, arg1, arg2, STD, STDX); }
true
qemu
828808f5ece20fd606218e000139799921c89d93
static void tcg_out_st (TCGContext *s, TCGType type, int arg, int arg1, tcg_target_long arg2) { if (type == TCG_TYPE_I32) tcg_out_ldst (s, arg, arg1, arg2, STW, STWX); else tcg_out_ldst (s, arg, arg1, arg2, STD, STDX); }
{ "code": [ " tcg_out_ldst (s, arg, arg1, arg2, STD, STDX);" ], "line_no": [ 13 ] }
static void FUNC_0 (TCGContext *VAR_0, TCGType VAR_1, int VAR_2, int VAR_3, tcg_target_long VAR_4) { if (VAR_1 == TCG_TYPE_I32) tcg_out_ldst (VAR_0, VAR_2, VAR_3, VAR_4, STW, STWX); else tcg_out_ldst (VAR_0, VAR_2, VAR_3, VAR_4, STD, STDX); }
[ "static void FUNC_0 (TCGContext *VAR_0, TCGType VAR_1, int VAR_2, int VAR_3,\ntcg_target_long VAR_4)\n{", "if (VAR_1 == TCG_TYPE_I32)\ntcg_out_ldst (VAR_0, VAR_2, VAR_3, VAR_4, STW, STWX);", "else\ntcg_out_ldst (VAR_0, VAR_2, VAR_3, VAR_4, STD, STDX);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ] ]
14,697
static void raw_probe_alignment(BlockDriverState *bs, int fd, Error **errp) { BDRVRawState *s = bs->opaque; char *buf; /* For /dev/sg devices the alignment is not really used. With buffered I/O, we don't have any restrictions. */ if (bs->sg || !s->needs_alignment) { bs->request_a...
true
qemu
22d182e82b4ba2fb78b2cc22bcec4e6a440b0ad6
static void raw_probe_alignment(BlockDriverState *bs, int fd, Error **errp) { BDRVRawState *s = bs->opaque; char *buf; if (bs->sg || !s->needs_alignment) { bs->request_alignment = 1; s->buf_align = 1; return; } bs->request_alignment = 0; s->buf_align...
{ "code": [ " if (pread(fd, buf + align, MAX_BLOCKSIZE, 0) >= 0) {", " if (pread(fd, buf, align, 0) >= 0) {" ], "line_no": [ 71, 95 ] }
static void FUNC_0(BlockDriverState *VAR_0, int VAR_1, Error **VAR_2) { BDRVRawState *s = VAR_0->opaque; char *VAR_3; if (VAR_0->sg || !s->needs_alignment) { VAR_0->request_alignment = 1; s->buf_align = 1; return; } VAR_0->request_alignment = 0; s->b...
[ "static void FUNC_0(BlockDriverState *VAR_0, int VAR_1, Error **VAR_2)\n{", "BDRVRawState *s = VAR_0->opaque;", "char *VAR_3;", "if (VAR_0->sg || !s->needs_alignment) {", "VAR_0->request_alignment = 1;", "s->buf_align = 1;", "return;", "}", "VAR_0->request_alignment = 0;", "s->buf_align = 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], ...
14,698
static void alpha_cpu_realizefn(DeviceState *dev, Error **errp) { AlphaCPUClass *acc = ALPHA_CPU_GET_CLASS(dev); acc->parent_realize(dev, errp); }
true
qemu
14a10fc39923b3af07c8c46d22cb20843bee3a72
static void alpha_cpu_realizefn(DeviceState *dev, Error **errp) { AlphaCPUClass *acc = ALPHA_CPU_GET_CLASS(dev); acc->parent_realize(dev, errp); }
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { AlphaCPUClass *acc = ALPHA_CPU_GET_CLASS(VAR_0); acc->parent_realize(VAR_0, VAR_1); }
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "AlphaCPUClass *acc = ALPHA_CPU_GET_CLASS(VAR_0);", "acc->parent_realize(VAR_0, VAR_1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ] ]
14,699
static void add_pixels_clamped_mmx(const DCTELEM *block, UINT8 *pixels, int line_size) { const DCTELEM *p; UINT8 *pix; int i; /* read the pixels */ p = block; pix = pixels; MOVQ_ZERO(mm7); i = 4; while (i) { __asm __volatile( "movq %2, %%mm0\n\t" "movq 8%2, %%mm1\...
true
FFmpeg
cd8e5f9637b42f0caafbb0ab470e3f133cb5f200
static void add_pixels_clamped_mmx(const DCTELEM *block, UINT8 *pixels, int line_size) { const DCTELEM *p; UINT8 *pix; int i; p = block; pix = pixels; MOVQ_ZERO(mm7); i = 4; while (i) { __asm __volatile( "movq %2, %%mm0\n\t" "movq 8%2, %%mm1\n\t" "movq 16%2, %...
{ "code": [ " while (i) {", "\t\t\"movq\t%2, %%mm0\\n\\t\"", "\t\t\"movq\t8%2, %%mm1\\n\\t\"", "\t\t\"movq\t16%2, %%mm2\\n\\t\"", "\t\t\"movq\t24%2, %%mm3\\n\\t\"", "\t\t:\"m\"(*p)", " i--;", " };" ], "line_no": [ 23, 27, 29, 31, 33, 69, 77,...
static void FUNC_0(const DCTELEM *VAR_0, UINT8 *VAR_1, int VAR_2) { const DCTELEM *VAR_3; UINT8 *pix; int VAR_4; VAR_3 = VAR_0; pix = VAR_1; MOVQ_ZERO(mm7); VAR_4 = 4; while (VAR_4) { __asm __volatile( "movq %2, %%mm0\n\t" "movq 8%2, %%mm1\n\t" "movq 16%2, %%m...
[ "static void FUNC_0(const DCTELEM *VAR_0, UINT8 *VAR_1, int VAR_2)\n{", "const DCTELEM *VAR_3;", "UINT8 *pix;", "int VAR_4;", "VAR_3 = VAR_0;", "pix = VAR_1;", "MOVQ_ZERO(mm7);", "VAR_4 = 4;", "while (VAR_4) {", "__asm __volatile(\n\"movq\t%2, %%mm0\\n\\t\"\n\"movq\t8%2, %%mm1\\n\\t\"\n\"movq\t16%...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 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,...
14,700
struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *system_memory, unsigned long sdram_size, const char *core) { int i; struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) g_malloc0(sizeof(struct omap_mpu_state_s)); qemu_irq dma_irqs[6]; Drive...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *system_memory, unsigned long sdram_size, const char *core) { int i; struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) g_malloc0(sizeof(struct omap_mpu_state_s)); qemu_irq dma_irqs[6]; Drive...
{ "code": [ " struct omap_mpu_state_s *s = (struct omap_mpu_state_s *)", " g_malloc0(sizeof(struct omap_mpu_state_s));", " struct omap_mpu_state_s *s = (struct omap_mpu_state_s *)", " g_malloc0(sizeof(struct omap_mpu_state_s));" ], "line_no": [ 11, 13, 11, ...
struct omap_mpu_state_s *FUNC_0(MemoryRegion *VAR_0, unsigned long VAR_1, const char *VAR_2) { int VAR_3; struct omap_mpu_state_s *VAR_4 = (struct omap_mpu_state_s *) g_malloc0(sizeof(struct omap_mpu_state_s)); qemu_irq dma_irqs[6]; DriveInfo *dinfo; ...
[ "struct omap_mpu_state_s *FUNC_0(MemoryRegion *VAR_0,\nunsigned long VAR_1,\nconst char *VAR_2)\n{", "int VAR_3;", "struct omap_mpu_state_s *VAR_4 = (struct omap_mpu_state_s *)\ng_malloc0(sizeof(struct omap_mpu_state_s));", "qemu_irq dma_irqs[6];", "DriveInfo *dinfo;", "SysBusDevice *busdev;", "if (!VAR...
[ 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, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 55 ], [ 61,...
14,701
static void decode_scaling_list(GetBitContext *gb, uint8_t *factors, int size, const uint8_t *jvt_list, const uint8_t *fallback_list) { int i, last = 8, next = 8; const uint8_t *scan = size == 16 ? ff_zigzag_scan : ff_zigzag_direct; if (!...
true
FFmpeg
cbd622be997e8307a409efc3b4bbe8765147def2
static void decode_scaling_list(GetBitContext *gb, uint8_t *factors, int size, const uint8_t *jvt_list, const uint8_t *fallback_list) { int i, last = 8, next = 8; const uint8_t *scan = size == 16 ? ff_zigzag_scan : ff_zigzag_direct; if (!...
{ "code": [ " if (next)", " next = (last + get_se_golomb(gb)) & 0xff;" ], "line_no": [ 21, 23 ] }
static void FUNC_0(GetBitContext *VAR_0, uint8_t *VAR_1, int VAR_2, const uint8_t *VAR_3, const uint8_t *VAR_4) { int VAR_5, VAR_6 = 8, VAR_7 = 8; const uint8_t *VAR_8 = VAR_2 == 16 ? ff_zigzag_scan : ff_zigzag_direct; if (!get_bits1(VAR_...
[ "static void FUNC_0(GetBitContext *VAR_0, uint8_t *VAR_1, int VAR_2,\nconst uint8_t *VAR_3,\nconst uint8_t *VAR_4)\n{", "int VAR_5, VAR_6 = 8, VAR_7 = 8;", "const uint8_t *VAR_8 = VAR_2 == 16 ? ff_zigzag_scan : ff_zigzag_direct;", "if (!get_bits1(VAR_0))\nmemcpy(VAR_1, VAR_4, VAR_2 * sizeof(uint8_t));", "el...
[ 0, 0, 0, 0, 0, 1, 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 ] ]
14,702
PCIDevice *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn) { VirtIONet *n; static int virtio_net_id; n = (VirtIONet *)virtio_init_pci(bus, "virtio-net", 6900, 0x1000, 0, VIRTIO_ID_NET, 0x02, 0x00, 0x00, ...
false
qemu
554c97dd43e021b626c78ed5bd72bca33d5cb99c
PCIDevice *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn) { VirtIONet *n; static int virtio_net_id; n = (VirtIONet *)virtio_init_pci(bus, "virtio-net", 6900, 0x1000, 0, VIRTIO_ID_NET, 0x02, 0x00, 0x00, ...
{ "code": [], "line_no": [] }
PCIDevice *FUNC_0(PCIBus *bus, NICInfo *nd, int devfn) { VirtIONet *n; static int VAR_0; n = (VirtIONet *)virtio_init_pci(bus, "virtio-net", 6900, 0x1000, 0, VIRTIO_ID_NET, 0x02, 0x00, 0x00, ...
[ "PCIDevice *FUNC_0(PCIBus *bus, NICInfo *nd, int devfn)\n{", "VirtIONet *n;", "static int VAR_0;", "n = (VirtIONet *)virtio_init_pci(bus, \"virtio-net\", 6900, 0x1000,\n0, VIRTIO_ID_NET,\n0x02, 0x00, 0x00,\n6, sizeof(VirtIONet));", "if (!n)\nreturn NULL;", "n->vdev.get_config = virtio_net_update_config;",...
[ 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57...
14,703
CharDriverState *chr_baum_init(void) { BaumDriverState *baum; CharDriverState *chr; brlapi_handle_t *handle; #ifdef CONFIG_SDL SDL_SysWMinfo info; #endif int tty; baum = g_malloc0(sizeof(BaumDriverState)); baum->chr = chr = g_malloc0(sizeof(CharDriverState)); chr->opaque =...
false
qemu
bd5c51ee6c4f1c79cae5ad2516d711a27b4ea8ec
CharDriverState *chr_baum_init(void) { BaumDriverState *baum; CharDriverState *chr; brlapi_handle_t *handle; #ifdef CONFIG_SDL SDL_SysWMinfo info; #endif int tty; baum = g_malloc0(sizeof(BaumDriverState)); baum->chr = chr = g_malloc0(sizeof(CharDriverState)); chr->opaque =...
{ "code": [], "line_no": [] }
CharDriverState *FUNC_0(void) { BaumDriverState *baum; CharDriverState *chr; brlapi_handle_t *handle; #ifdef CONFIG_SDL SDL_SysWMinfo info; #endif int VAR_0; baum = g_malloc0(sizeof(BaumDriverState)); baum->chr = chr = g_malloc0(sizeof(CharDriverState)); chr->opaque = baum...
[ "CharDriverState *FUNC_0(void)\n{", "BaumDriverState *baum;", "CharDriverState *chr;", "brlapi_handle_t *handle;", "#ifdef CONFIG_SDL\nSDL_SysWMinfo info;", "#endif\nint VAR_0;", "baum = g_malloc0(sizeof(BaumDriverState));", "baum->chr = chr = g_malloc0(sizeof(CharDriverState));", "chr->opaque = bau...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
14,704
static int all_vcpus_paused(void) { CPUState *penv = first_cpu; while (penv) { if (!penv->stopped) return 0; penv = (CPUState *)penv->next_cpu; } return 1; }
false
qemu
0ab07c623c629acfbc792e5a174129c19faefbb7
static int all_vcpus_paused(void) { CPUState *penv = first_cpu; while (penv) { if (!penv->stopped) return 0; penv = (CPUState *)penv->next_cpu; } return 1; }
{ "code": [], "line_no": [] }
static int FUNC_0(void) { CPUState *penv = first_cpu; while (penv) { if (!penv->stopped) return 0; penv = (CPUState *)penv->next_cpu; } return 1; }
[ "static int FUNC_0(void)\n{", "CPUState *penv = first_cpu;", "while (penv) {", "if (!penv->stopped)\nreturn 0;", "penv = (CPUState *)penv->next_cpu;", "}", "return 1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
14,705
uint32_t lm4549_read(lm4549_state *s, target_phys_addr_t offset) { uint16_t *regfile = s->regfile; uint32_t value = 0; /* Read the stored value */ assert(offset < 128); value = regfile[offset]; DPRINTF("read [0x%02x] = 0x%04x\n", offset, value); return value; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
uint32_t lm4549_read(lm4549_state *s, target_phys_addr_t offset) { uint16_t *regfile = s->regfile; uint32_t value = 0; assert(offset < 128); value = regfile[offset]; DPRINTF("read [0x%02x] = 0x%04x\n", offset, value); return value; }
{ "code": [], "line_no": [] }
uint32_t FUNC_0(lm4549_state *s, target_phys_addr_t offset) { uint16_t *regfile = s->regfile; uint32_t value = 0; assert(offset < 128); value = regfile[offset]; DPRINTF("read [0x%02x] = 0x%04x\n", offset, value); return value; }
[ "uint32_t FUNC_0(lm4549_state *s, target_phys_addr_t offset)\n{", "uint16_t *regfile = s->regfile;", "uint32_t value = 0;", "assert(offset < 128);", "value = regfile[offset];", "DPRINTF(\"read [0x%02x] = 0x%04x\\n\", offset, value);", "return value;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ] ]
14,707
static void kvm_log_stop(MemoryListener *listener, MemoryRegionSection *section) { int r; r = kvm_dirty_pages_log_change(section->offset_within_address_space, int128_get64(section->size), false); if (r < 0) { abort(); } }
false
qemu
b2dfd71c4843a762f2befe702adb249cf55baf66
static void kvm_log_stop(MemoryListener *listener, MemoryRegionSection *section) { int r; r = kvm_dirty_pages_log_change(section->offset_within_address_space, int128_get64(section->size), false); if (r < 0) { abort(); } }
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryListener *VAR_0, MemoryRegionSection *VAR_1) { int VAR_2; VAR_2 = kvm_dirty_pages_log_change(VAR_1->offset_within_address_space, int128_get64(VAR_1->size), false); if (VAR_2 < 0) { abort(); } }
[ "static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1)\n{", "int VAR_2;", "VAR_2 = kvm_dirty_pages_log_change(VAR_1->offset_within_address_space,\nint128_get64(VAR_1->size), false);", "if (VAR_2 < 0) {", "abort();", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
14,708
int kvm_arch_init_vcpu(CPUState *cs) { int i, ret, arraylen; uint64_t v; struct kvm_one_reg r; struct kvm_reg_list rl; struct kvm_reg_list *rlp; ARMCPU *cpu = ARM_CPU(cs); if (cpu->kvm_target == QEMU_KVM_ARM_TARGET_NONE) { fprintf(stderr, "KVM is not supported for this gue...
false
qemu
75c9a1a0473cc5ca9756d11b236c715c7bc0ba67
int kvm_arch_init_vcpu(CPUState *cs) { int i, ret, arraylen; uint64_t v; struct kvm_one_reg r; struct kvm_reg_list rl; struct kvm_reg_list *rlp; ARMCPU *cpu = ARM_CPU(cs); if (cpu->kvm_target == QEMU_KVM_ARM_TARGET_NONE) { fprintf(stderr, "KVM is not supported for this gue...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0) { int VAR_1, VAR_2, VAR_3; uint64_t v; struct kvm_one_reg VAR_4; struct kvm_reg_list VAR_5; struct kvm_reg_list *VAR_6; ARMCPU *cpu = ARM_CPU(VAR_0); if (cpu->kvm_target == QEMU_KVM_ARM_TARGET_NONE) { fprintf(stderr, "KVM is not supported for th...
[ "int FUNC_0(CPUState *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "uint64_t v;", "struct kvm_one_reg VAR_4;", "struct kvm_reg_list VAR_5;", "struct kvm_reg_list *VAR_6;", "ARMCPU *cpu = ARM_CPU(VAR_0);", "if (cpu->kvm_target == QEMU_KVM_ARM_TARGET_NONE) {", "fprintf(stderr, \"KVM is not supported for th...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ...
14,709
static int cpu_ppc_handle_mmu_fault(CPUPPCState *env, target_ulong address, int rw, int mmu_idx) { CPUState *cs = CPU(ppc_env_get_cpu(env)); PowerPCCPU *cpu = POWERPC_CPU(cs); mmu_ctx_t ctx; int access_type; int ret = 0; if (rw == 2) { /* co...
false
qemu
36778660d7fd0748a6129916e47ecedd67bdb758
static int cpu_ppc_handle_mmu_fault(CPUPPCState *env, target_ulong address, int rw, int mmu_idx) { CPUState *cs = CPU(ppc_env_get_cpu(env)); PowerPCCPU *cpu = POWERPC_CPU(cs); mmu_ctx_t ctx; int access_type; int ret = 0; if (rw == 2) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, int VAR_2, int VAR_3) { CPUState *cs = CPU(ppc_env_get_cpu(VAR_0)); PowerPCCPU *cpu = POWERPC_CPU(cs); mmu_ctx_t ctx; int VAR_4; int VAR_5 = 0; if (VAR_2 == 2) { VAR_2 = 0; ...
[ "static int FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1,\nint VAR_2, int VAR_3)\n{", "CPUState *cs = CPU(ppc_env_get_cpu(VAR_0));", "PowerPCCPU *cpu = POWERPC_CPU(cs);", "mmu_ctx_t ctx;", "int VAR_4;", "int VAR_5 = 0;", "if (VAR_2 == 2) {", "VAR_2 = 0;", "VAR_4 = ACCESS_CODE;", "} else {", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [...
14,710
START_TEST(qdict_get_try_str_test) { const char *p; const char *key = "key"; const char *str = "string"; qdict_put(tests_dict, key, qstring_from_str(str)); p = qdict_get_try_str(tests_dict, key); fail_unless(p != NULL); fail_unless(strcmp(p, str) == 0); }
false
qemu
ac531cb6e542b1e61d668604adf9dc5306a948c0
START_TEST(qdict_get_try_str_test) { const char *p; const char *key = "key"; const char *str = "string"; qdict_put(tests_dict, key, qstring_from_str(str)); p = qdict_get_try_str(tests_dict, key); fail_unless(p != NULL); fail_unless(strcmp(p, str) == 0); }
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { const char *VAR_1; const char *VAR_2 = "VAR_2"; const char *VAR_3 = "string"; qdict_put(tests_dict, VAR_2, qstring_from_str(VAR_3)); VAR_1 = qdict_get_try_str(tests_dict, VAR_2); fail_unless(VAR_1 != NULL); fail_unless(strcmp(VAR_1, VAR_3) == 0); }
[ "FUNC_0(VAR_0)\n{", "const char *VAR_1;", "const char *VAR_2 = \"VAR_2\";", "const char *VAR_3 = \"string\";", "qdict_put(tests_dict, VAR_2, qstring_from_str(VAR_3));", "VAR_1 = qdict_get_try_str(tests_dict, VAR_2);", "fail_unless(VAR_1 != NULL);", "fail_unless(strcmp(VAR_1, VAR_3) == 0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
14,711
int swri_realloc_audio(AudioData *a, int count){ int i, countb; AudioData old; if(count < 0 || count > INT_MAX/2/a->bps/a->ch_count) return AVERROR(EINVAL); if(a->count >= count) return 0; count*=2; countb= FFALIGN(count*a->bps, ALIGN); old= *a; av_ass...
false
FFmpeg
b3928a1cc65462a72fea538fcf082cbc8f373e37
int swri_realloc_audio(AudioData *a, int count){ int i, countb; AudioData old; if(count < 0 || count > INT_MAX/2/a->bps/a->ch_count) return AVERROR(EINVAL); if(a->count >= count) return 0; count*=2; countb= FFALIGN(count*a->bps, ALIGN); old= *a; av_ass...
{ "code": [], "line_no": [] }
int FUNC_0(AudioData *VAR_0, int VAR_1){ int VAR_2, VAR_3; AudioData old; if(VAR_1 < 0 || VAR_1 > INT_MAX/2/VAR_0->bps/VAR_0->ch_count) return AVERROR(EINVAL); if(VAR_0->VAR_1 >= VAR_1) return 0; VAR_1*=2; VAR_3= FFALIGN(VAR_1*VAR_0->bps, ALIGN); old= *VAR_0;...
[ "int FUNC_0(AudioData *VAR_0, int VAR_1){", "int VAR_2, VAR_3;", "AudioData old;", "if(VAR_1 < 0 || VAR_1 > INT_MAX/2/VAR_0->bps/VAR_0->ch_count)\nreturn AVERROR(EINVAL);", "if(VAR_0->VAR_1 >= VAR_1)\nreturn 0;", "VAR_1*=2;", "VAR_3= FFALIGN(VAR_1*VAR_0->bps, ALIGN);", "old= *VAR_0;", "av_assert0(VA...
[ 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 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
14,712
static void virtio_scsi_command_complete(SCSIRequest *r, uint32_t status, size_t resid) { VirtIOSCSIReq *req = r->hba_private; uint8_t sense[SCSI_SENSE_BUF_SIZE]; uint32_t sense_len; if (r->io_canceled) { return; } req->resp.cmd->resp...
false
qemu
3eff1f46f08a360a4ae9f834ce9fef4c45bf6f0f
static void virtio_scsi_command_complete(SCSIRequest *r, uint32_t status, size_t resid) { VirtIOSCSIReq *req = r->hba_private; uint8_t sense[SCSI_SENSE_BUF_SIZE]; uint32_t sense_len; if (r->io_canceled) { return; } req->resp.cmd->resp...
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIRequest *VAR_0, uint32_t VAR_1, size_t VAR_2) { VirtIOSCSIReq *req = VAR_0->hba_private; uint8_t sense[SCSI_SENSE_BUF_SIZE]; uint32_t sense_len; if (VAR_0->io_canceled) { return; } req->resp.cmd->response = VIRT...
[ "static void FUNC_0(SCSIRequest *VAR_0, uint32_t VAR_1,\nsize_t VAR_2)\n{", "VirtIOSCSIReq *req = VAR_0->hba_private;", "uint8_t sense[SCSI_SENSE_BUF_SIZE];", "uint32_t sense_len;", "if (VAR_0->io_canceled) {", "return;", "}", "req->resp.cmd->response = VIRTIO_SCSI_S_OK;", "req->resp.cmd->VAR_1 = VA...
[ 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
14,714
static void bitband_writeb(void *opaque, target_phys_addr_t offset, uint32_t value) { uint32_t addr; uint8_t mask; uint8_t v; addr = bitband_addr(opaque, offset); mask = (1 << ((offset >> 2) & 7)); cpu_physical_memory_read(addr, &v, 1); if (value & 1) ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void bitband_writeb(void *opaque, target_phys_addr_t offset, uint32_t value) { uint32_t addr; uint8_t mask; uint8_t v; addr = bitband_addr(opaque, offset); mask = (1 << ((offset >> 2) & 7)); cpu_physical_memory_read(addr, &v, 1); if (value & 1) ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { uint32_t addr; uint8_t mask; uint8_t v; addr = bitband_addr(VAR_0, VAR_1); mask = (1 << ((VAR_1 >> 2) & 7)); cpu_physical_memory_read(addr, &v, 1); if (VAR_2 & 1) v |= mas...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "uint32_t addr;", "uint8_t mask;", "uint8_t v;", "addr = bitband_addr(VAR_0, VAR_1);", "mask = (1 << ((VAR_1 >> 2) & 7));", "cpu_physical_memory_read(addr, &v, 1);", "if (VAR_2 & 1)\nv |= mask;", "else\nv &= ~mask;", ...
[ 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 ] ]
14,715
void bdrv_enable_copy_on_read(BlockDriverState *bs) { bs->copy_on_read++; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
void bdrv_enable_copy_on_read(BlockDriverState *bs) { bs->copy_on_read++; }
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0) { VAR_0->copy_on_read++; }
[ "void FUNC_0(BlockDriverState *VAR_0)\n{", "VAR_0->copy_on_read++;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
14,717
static void s390_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); S390CPU *cpu = S390_CPU(obj); CPUS390XState *env = &cpu->env; static bool inited; static int cpu_num = 0; #if !defined(CONFIG_USER_ONLY) struct tm tm; #endif cs->env_ptr = env; cpu_exec_init(env); #if !defi...
false
qemu
7107e5a756317151666d47d1bc1e170293babaff
static void s390_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); S390CPU *cpu = S390_CPU(obj); CPUS390XState *env = &cpu->env; static bool inited; static int cpu_num = 0; #if !defined(CONFIG_USER_ONLY) struct tm tm; #endif cs->env_ptr = env; cpu_exec_init(env); #if !defi...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { CPUState *cs = CPU(VAR_0); S390CPU *cpu = S390_CPU(VAR_0); CPUS390XState *env = &cpu->env; static bool VAR_1; static int VAR_2 = 0; #if !defined(CONFIG_USER_ONLY) struct VAR_3 VAR_3; #endif cs->env_ptr = env; cpu_exec_init(env); #if !defi...
[ "static void FUNC_0(Object *VAR_0)\n{", "CPUState *cs = CPU(VAR_0);", "S390CPU *cpu = S390_CPU(VAR_0);", "CPUS390XState *env = &cpu->env;", "static bool VAR_1;", "static int VAR_2 = 0;", "#if !defined(CONFIG_USER_ONLY)\nstruct VAR_3 VAR_3;", "#endif\ncs->env_ptr = env;", "cpu_exec_init(env);", "#i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [...
14,718
static void t_gen_lsr(TCGv d, TCGv a, TCGv b) { TCGv t0, t_31; t0 = tcg_temp_new(TCG_TYPE_TL); t_31 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_shr_tl(d, a, b); tcg_gen_movi_tl(t_31, 31); tcg_gen_sub_tl(t0, t_31, b); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_and_tl(t0, t0, d); tcg_gen_xor_tl(d, d, t0); tc...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static void t_gen_lsr(TCGv d, TCGv a, TCGv b) { TCGv t0, t_31; t0 = tcg_temp_new(TCG_TYPE_TL); t_31 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_shr_tl(d, a, b); tcg_gen_movi_tl(t_31, 31); tcg_gen_sub_tl(t0, t_31, b); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_and_tl(t0, t0, d); tcg_gen_xor_tl(d, d, t0); tc...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2) { TCGv t0, t_31; t0 = tcg_temp_new(TCG_TYPE_TL); t_31 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_shr_tl(VAR_0, VAR_1, VAR_2); tcg_gen_movi_tl(t_31, 31); tcg_gen_sub_tl(t0, t_31, VAR_2); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_and_tl(t0, t0, VAR_0); t...
[ "static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "TCGv t0, t_31;", "t0 = tcg_temp_new(TCG_TYPE_TL);", "t_31 = tcg_temp_new(TCG_TYPE_TL);", "tcg_gen_shr_tl(VAR_0, VAR_1, VAR_2);", "tcg_gen_movi_tl(t_31, 31);", "tcg_gen_sub_tl(t0, t_31, VAR_2);", "tcg_gen_sar_tl(t0, t0, t_31);", "tcg_gen_a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
14,719
void nbd_client_new(NBDExport *exp, int csock, void (*close_fn)(NBDClient *)) { NBDClient *client; client = g_malloc0(sizeof(NBDClient)); client->refcount = 1; client->exp = exp; client->sock = csock; client->can_read = true; if (nbd_send_negotiate(client)) { shutdown(client...
false
qemu
1a6245a5b0b4e8d822c739b403fc67c8a7bc8d12
void nbd_client_new(NBDExport *exp, int csock, void (*close_fn)(NBDClient *)) { NBDClient *client; client = g_malloc0(sizeof(NBDClient)); client->refcount = 1; client->exp = exp; client->sock = csock; client->can_read = true; if (nbd_send_negotiate(client)) { shutdown(client...
{ "code": [], "line_no": [] }
VAR_3voidVAR_3 VAR_3nbd_client_newVAR_3(VAR_3NBDExportVAR_3 *VAR_3VAR_0VAR_3, VAR_3intVAR_3 VAR_3VAR_1VAR_3, VAR_3voidVAR_3 (*VAR_3VAR_2VAR_3)(VAR_3NBDClientVAR_3 *)) { VAR_3NBDClientVAR_3 *VAR_3clientVAR_3; VAR_3clientVAR_3 = VAR_3g_malloc0VAR_3(VAR_3sizeofVAR_3(VAR_3NBDClientVAR_3)); VAR_3clientVAR_3-...
[ "VAR_3voidVAR_3 VAR_3nbd_client_newVAR_3(VAR_3NBDExportVAR_3 *VAR_3VAR_0VAR_3, VAR_3intVAR_3 VAR_3VAR_1VAR_3, VAR_3voidVAR_3 (*VAR_3VAR_2VAR_3)(VAR_3NBDClientVAR_3 *))\n{", "VAR_3NBDClientVAR_3 *VAR_3clientVAR_3;", "VAR_3clientVAR_3 = VAR_3g_malloc0VAR_3(VAR_3sizeofVAR_3(VAR_3NBDClientVAR_3));", "VAR_3clientV...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
14,720
static void do_info_status(Monitor *mon, QObject **ret_data) { *ret_data = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i }", runstate_is_running(), singlestep); }
false
qemu
9e37b9dc5bf037453e062ee515014875cd05068d
static void do_info_status(Monitor *mon, QObject **ret_data) { *ret_data = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i }", runstate_is_running(), singlestep); }
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, QObject **VAR_1) { *VAR_1 = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i }", runstate_is_running(), singlestep); }
[ "static void FUNC_0(Monitor *VAR_0, QObject **VAR_1)\n{", "*VAR_1 = qobject_from_jsonf(\"{ 'running': %i, 'singlestep': %i }\",", "runstate_is_running(), singlestep);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
14,721
int event_notifier_test_and_clear(EventNotifier *e) { uint64_t value; int r = read(e->fd, &value, sizeof(value)); return r == sizeof(value); }
false
qemu
d0cc2fbfa607678866475383c508be84818ceb64
int event_notifier_test_and_clear(EventNotifier *e) { uint64_t value; int r = read(e->fd, &value, sizeof(value)); return r == sizeof(value); }
{ "code": [], "line_no": [] }
int FUNC_0(EventNotifier *VAR_0) { uint64_t value; int VAR_1 = read(VAR_0->fd, &value, sizeof(value)); return VAR_1 == sizeof(value); }
[ "int FUNC_0(EventNotifier *VAR_0)\n{", "uint64_t value;", "int VAR_1 = read(VAR_0->fd, &value, sizeof(value));", "return VAR_1 == sizeof(value);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
14,722
static int x8_decode_intra_mb(IntraX8Context *const w, const int chroma) { MpegEncContext *const s = w->s; uint8_t *scantable; int final, run, level; int ac_mode, dc_mode, est_run, dc_level; int pos, n; int zeros_only; int use_quant_matrix; int sign; assert(w->orient < ...
false
FFmpeg
577393321c389ad2973bec6168a8045c94a9e099
static int x8_decode_intra_mb(IntraX8Context *const w, const int chroma) { MpegEncContext *const s = w->s; uint8_t *scantable; int final, run, level; int ac_mode, dc_mode, est_run, dc_level; int pos, n; int zeros_only; int use_quant_matrix; int sign; assert(w->orient < ...
{ "code": [], "line_no": [] }
static int FUNC_0(IntraX8Context *const VAR_0, const int VAR_1) { MpegEncContext *const s = VAR_0->s; uint8_t *scantable; int VAR_2, VAR_3, VAR_4; int VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9, VAR_10; int VAR_11; int VAR_12; int VAR_13; assert(VAR_0->orient < 12); s->...
[ "static int FUNC_0(IntraX8Context *const VAR_0, const int VAR_1)\n{", "MpegEncContext *const s = VAR_0->s;", "uint8_t *scantable;", "int VAR_2, VAR_3, VAR_4;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9, VAR_10;", "int VAR_11;", "int VAR_12;", "int VAR_13;", "assert(VAR_0->orient < 12);", "s-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35, 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
14,724
static void bdrv_move_feature_fields(BlockDriverState *bs_dest, BlockDriverState *bs_src) { /* move some fields that need to stay attached to the device */ bs_dest->open_flags = bs_src->open_flags; /* dev info */ bs_dest->dev_ops = bs_src->...
false
qemu
2b584959ed300ddff4acba0d7554becad5f274fd
static void bdrv_move_feature_fields(BlockDriverState *bs_dest, BlockDriverState *bs_src) { bs_dest->open_flags = bs_src->open_flags; bs_dest->dev_ops = bs_src->dev_ops; bs_dest->dev_opaque = bs_src->dev_opaque; bs_dest-...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1) { VAR_0->open_flags = VAR_1->open_flags; VAR_0->dev_ops = VAR_1->dev_ops; VAR_0->dev_opaque = VAR_1->dev_opaque; VAR_0->dev = VAR_1->dev...
[ "static void FUNC_0(BlockDriverState *VAR_0,\nBlockDriverState *VAR_1)\n{", "VAR_0->open_flags = VAR_1->open_flags;", "VAR_0->dev_ops = VAR_1->dev_ops;", "VAR_0->dev_opaque = VAR_1->dev_opaque;", "VAR_0->dev = VAR_1->dev;", "VAR_0->buffer_alignment = VAR_1->buff...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ], ...
14,725
static void mmubooke_create_initial_mapping(CPUPPCState *env) { struct boot_info *bi = env->load_info; ppcmas_tlb_t *tlb = booke206_get_tlbm(env, 1, 0, 0); hwaddr size, dt_end; int ps; /* Our initial TLB entry needs to cover everything from 0 to the device tree top */ dt_end = b...
false
qemu
cefd3cdbdd9fc9a7d5ab324291904074d2aa69a0
static void mmubooke_create_initial_mapping(CPUPPCState *env) { struct boot_info *bi = env->load_info; ppcmas_tlb_t *tlb = booke206_get_tlbm(env, 1, 0, 0); hwaddr size, dt_end; int ps; dt_end = bi->dt_base + bi->dt_size; ps = booke206_page_size_to_tlb(dt_end) + 1; if (ps & ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUPPCState *VAR_0) { struct boot_info *VAR_1 = VAR_0->load_info; ppcmas_tlb_t *tlb = booke206_get_tlbm(VAR_0, 1, 0, 0); hwaddr size, dt_end; int VAR_2; dt_end = VAR_1->dt_base + VAR_1->dt_size; VAR_2 = booke206_page_size_to_tlb(dt_end) + 1; if (VAR_2 & 1...
[ "static void FUNC_0(CPUPPCState *VAR_0)\n{", "struct boot_info *VAR_1 = VAR_0->load_info;", "ppcmas_tlb_t *tlb = booke206_get_tlbm(VAR_0, 1, 0, 0);", "hwaddr size, dt_end;", "int VAR_2;", "dt_end = VAR_1->dt_base + VAR_1->dt_size;", "VAR_2 = booke206_page_size_to_tlb(dt_end) + 1;", "if (VAR_2 & 1) {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
14,726
static unsigned int dec_bound_m(DisasContext *dc) { TCGv l[2]; int memsize = memsize_zz(dc); int insn_len; DIS(fprintf (logfile, "bound.%d [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2)); l[0] = tcg_temp_local_new(TCG_TYPE_TL); l[1] = tcg_temp_lo...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_bound_m(DisasContext *dc) { TCGv l[2]; int memsize = memsize_zz(dc); int insn_len; DIS(fprintf (logfile, "bound.%d [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2)); l[0] = tcg_temp_local_new(TCG_TYPE_TL); l[1] = tcg_temp_lo...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv l[2]; int VAR_1 = memsize_zz(VAR_0); int VAR_2; DIS(fprintf (logfile, "bound.%d [$r%u%s, $r%u\n", memsize_char(VAR_1), VAR_0->op1, VAR_0->postinc ? "+]" : "]", VAR_0->op2)); l[0] = tcg_temp_local_new(TCG_TYPE_TL); l[1] = tcg_temp...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv l[2];", "int VAR_1 = memsize_zz(VAR_0);", "int VAR_2;", "DIS(fprintf (logfile, \"bound.%d [$r%u%s, $r%u\\n\",\nmemsize_char(VAR_1),\nVAR_0->op1, VAR_0->postinc ? \"+]\" : \"]\",\nVAR_0->op2));", "l[0] = tcg_temp_local_new(TCG_TYPE_TL);", "l[1] ...
[ 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 ] ]
14,727
void omap_badwidth_write16(void *opaque, target_phys_addr_t addr, uint32_t value) { uint16_t val16 = value; OMAP_16B_REG(addr); cpu_physical_memory_write(addr, (void *) &val16, 2); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void omap_badwidth_write16(void *opaque, target_phys_addr_t addr, uint32_t value) { uint16_t val16 = value; OMAP_16B_REG(addr); cpu_physical_memory_write(addr, (void *) &val16, 2); }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { uint16_t val16 = VAR_2; OMAP_16B_REG(VAR_1); cpu_physical_memory_write(VAR_1, (void *) &val16, 2); }
[ "void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "uint16_t val16 = VAR_2;", "OMAP_16B_REG(VAR_1);", "cpu_physical_memory_write(VAR_1, (void *) &val16, 2);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
14,728
static inline void gen_op_fcmped(int fccno, TCGv_i64 r_rs1, TCGv_i64 r_rs2) { gen_helper_fcmped(cpu_env, r_rs1, r_rs2); }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
static inline void gen_op_fcmped(int fccno, TCGv_i64 r_rs1, TCGv_i64 r_rs2) { gen_helper_fcmped(cpu_env, r_rs1, r_rs2); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(int VAR_0, TCGv_i64 VAR_1, TCGv_i64 VAR_2) { gen_helper_fcmped(cpu_env, VAR_1, VAR_2); }
[ "static inline void FUNC_0(int VAR_0, TCGv_i64 VAR_1, TCGv_i64 VAR_2)\n{", "gen_helper_fcmped(cpu_env, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
14,729
static void hid_pointer_event(DeviceState *dev, QemuConsole *src, InputEvent *evt) { static const int bmap[INPUT_BUTTON__MAX] = { [INPUT_BUTTON_LEFT] = 0x01, [INPUT_BUTTON_RIGHT] = 0x02, [INPUT_BUTTON_MIDDLE] = 0x04, }; HIDState *hs = (HIDStat...
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
static void hid_pointer_event(DeviceState *dev, QemuConsole *src, InputEvent *evt) { static const int bmap[INPUT_BUTTON__MAX] = { [INPUT_BUTTON_LEFT] = 0x01, [INPUT_BUTTON_RIGHT] = 0x02, [INPUT_BUTTON_MIDDLE] = 0x04, }; HIDState *hs = (HIDStat...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1, InputEvent *VAR_2) { static const int VAR_3[INPUT_BUTTON__MAX] = { [INPUT_BUTTON_LEFT] = 0x01, [INPUT_BUTTON_RIGHT] = 0x02, [INPUT_BUTTON_MIDDLE] = 0x04, }; HIDState *hs = (HIDState *)...
[ "static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,\nInputEvent *VAR_2)\n{", "static const int VAR_3[INPUT_BUTTON__MAX] = {", "[INPUT_BUTTON_LEFT] = 0x01,\n[INPUT_BUTTON_RIGHT] = 0x02,\n[INPUT_BUTTON_MIDDLE] = 0x04,\n};", "HIDState *hs = (HIDState *)VAR_0;", "HIDPointerEvent *e;", "InputMoveEve...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
14,730
static int aio_read_f(BlockBackend *blk, int argc, char **argv) { int nr_iov, c; struct aio_ctx *ctx = g_new0(struct aio_ctx, 1); ctx->blk = blk; while ((c = getopt(argc, argv, "CP:qv")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; c...
false
qemu
b062ad86dcd33ab39be5060b0655d8e13834b167
static int aio_read_f(BlockBackend *blk, int argc, char **argv) { int nr_iov, c; struct aio_ctx *ctx = g_new0(struct aio_ctx, 1); ctx->blk = blk; while ((c = getopt(argc, argv, "CP:qv")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; c...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2) { int VAR_3, VAR_4; struct aio_ctx *VAR_5 = g_new0(struct aio_ctx, 1); VAR_5->VAR_0 = VAR_0; while ((VAR_4 = getopt(VAR_1, VAR_2, "CP:qv")) != EOF) { switch (VAR_4) { case 'C': VAR_5->Cflag = 1; ...
[ "static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)\n{", "int VAR_3, VAR_4;", "struct aio_ctx *VAR_5 = g_new0(struct aio_ctx, 1);", "VAR_5->VAR_0 = VAR_0;", "while ((VAR_4 = getopt(VAR_1, VAR_2, \"CP:qv\")) != EOF) {", "switch (VAR_4) {", "case 'C':\nVAR_5->Cflag = 1;", "break;", "case ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47...
14,731
static inline void _cpu_ppc_store_decr(PowerPCCPU *cpu, uint32_t decr, uint32_t value, int is_excp) { ppc_tb_t *tb_env = cpu->env.tb_env; __cpu_ppc_store_decr(cpu, &tb_env->decr_next, tb_env->decr_timer, &cpu_ppc_decr_excp, decr, value, is_e...
false
qemu
e81a982aa5398269a2cc344091ffa4930bdd242f
static inline void _cpu_ppc_store_decr(PowerPCCPU *cpu, uint32_t decr, uint32_t value, int is_excp) { ppc_tb_t *tb_env = cpu->env.tb_env; __cpu_ppc_store_decr(cpu, &tb_env->decr_next, tb_env->decr_timer, &cpu_ppc_decr_excp, decr, value, is_e...
{ "code": [], "line_no": [] }
static inline void FUNC_0(PowerPCCPU *VAR_0, uint32_t VAR_1, uint32_t VAR_2, int VAR_3) { ppc_tb_t *tb_env = VAR_0->env.tb_env; __cpu_ppc_store_decr(VAR_0, &tb_env->decr_next, tb_env->decr_timer, &cpu_ppc_decr_excp, VAR_1, VAR_2, VAR_3); }
[ "static inline void FUNC_0(PowerPCCPU *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, int VAR_3)\n{", "ppc_tb_t *tb_env = VAR_0->env.tb_env;", "__cpu_ppc_store_decr(VAR_0, &tb_env->decr_next, tb_env->decr_timer,\n&cpu_ppc_decr_excp, VAR_1, VAR_2, VAR_3);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 15 ] ]
14,732
static GSList *gd_vc_init(GtkDisplayState *s, VirtualConsole *vc, int index, GSList *group, GtkWidget *view_menu) { const char *label; char buffer[32]; char path[32]; #if VTE_CHECK_VERSION(0, 26, 0) VtePty *pty; #endif GIOChannel *chan; GtkWidget *scrolled_win...
false
qemu
b1e749c02172583ca85bb3a964a9b39221f9ac39
static GSList *gd_vc_init(GtkDisplayState *s, VirtualConsole *vc, int index, GSList *group, GtkWidget *view_menu) { const char *label; char buffer[32]; char path[32]; #if VTE_CHECK_VERSION(0, 26, 0) VtePty *pty; #endif GIOChannel *chan; GtkWidget *scrolled_win...
{ "code": [], "line_no": [] }
static GSList *FUNC_0(GtkDisplayState *s, VirtualConsole *vc, int index, GSList *group, GtkWidget *view_menu) { const char *VAR_0; char VAR_1[32]; char VAR_2[32]; #if VTE_CHECK_VERSION(0, 26, 0) VtePty *pty; #endif GIOChannel *chan; GtkWidget *scrolled_window;...
[ "static GSList *FUNC_0(GtkDisplayState *s, VirtualConsole *vc, int index, GSList *group,\nGtkWidget *view_menu)\n{", "const char *VAR_0;", "char VAR_1[32];", "char VAR_2[32];", "#if VTE_CHECK_VERSION(0, 26, 0)\nVtePty *pty;", "#endif\nGIOChannel *chan;", "GtkWidget *scrolled_window;", "GtkAdjustment *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
14,733
static void patch_reloc(uint8_t *code_ptr, int type, tcg_target_long value, tcg_target_long addend) { value += addend; switch (type) { case R_SPARC_32: if (value != (uint32_t)value) tcg_abort(); *(uint32_t *)code_ptr = value; break; c...
false
qemu
57e49b40745ceb6c198cc58274b705afb5f20493
static void patch_reloc(uint8_t *code_ptr, int type, tcg_target_long value, tcg_target_long addend) { value += addend; switch (type) { case R_SPARC_32: if (value != (uint32_t)value) tcg_abort(); *(uint32_t *)code_ptr = value; break; c...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, tcg_target_long VAR_2, tcg_target_long VAR_3) { VAR_2 += VAR_3; switch (VAR_1) { case R_SPARC_32: if (VAR_2 != (uint32_t)VAR_2) tcg_abort(); *(uint32_t *)VAR_0 = VAR_2; break; case R_SPARC...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1,\ntcg_target_long VAR_2, tcg_target_long VAR_3)\n{", "VAR_2 += VAR_3;", "switch (VAR_1) {", "case R_SPARC_32:\nif (VAR_2 != (uint32_t)VAR_2)\ntcg_abort();", "*(uint32_t *)VAR_0 = VAR_2;", "break;", "case R_SPARC_WDISP22:\nVAR_2 -= (long)VAR_0;", "VAR_2 >>=...
[ 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 ] ]
14,734
static void frame_end(MpegEncContext *s) { int i; if (s->unrestricted_mv && s->current_picture.reference && !s->intra_only) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->avctx->pix_fmt); int hshift = desc->log2_chroma_w; int vshift = desc->log2_chrom...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static void frame_end(MpegEncContext *s) { int i; if (s->unrestricted_mv && s->current_picture.reference && !s->intra_only) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->avctx->pix_fmt); int hshift = desc->log2_chroma_w; int vshift = desc->log2_chrom...
{ "code": [], "line_no": [] }
static void FUNC_0(MpegEncContext *VAR_0) { int VAR_1; if (VAR_0->unrestricted_mv && VAR_0->current_picture.reference && !VAR_0->intra_only) { const AVPixFmtDescriptor *VAR_2 = av_pix_fmt_desc_get(VAR_0->avctx->pix_fmt); int VAR_3 = VAR_2->log2_chroma_w; int VAR...
[ "static void FUNC_0(MpegEncContext *VAR_0)\n{", "int VAR_1;", "if (VAR_0->unrestricted_mv &&\nVAR_0->current_picture.reference &&\n!VAR_0->intra_only) {", "const AVPixFmtDescriptor *VAR_2 = av_pix_fmt_desc_get(VAR_0->avctx->pix_fmt);", "int VAR_3 = VAR_2->log2_chroma_w;", "int VAR_4 = VAR_2->log2_chroma_h...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27 ], [ 29, 31, 33, 35, 37, 39 ], [ 41, 43, 45, 47, 49, 51 ], [ 53 ], [ 57 ], [ 61 ], ...
14,735
static uint64_t sectors_covered_by_bitmap_cluster(const BDRVQcow2State *s, const BdrvDirtyBitmap *bitmap) { uint32_t sector_granularity = bdrv_dirty_bitmap_granularity(bitmap) >> BDRV_SECTOR_BITS; return (uint64_t)sector_granularity * (s->clus...
false
qemu
113754f3a83dac7989ca94c4408a494560df1d73
static uint64_t sectors_covered_by_bitmap_cluster(const BDRVQcow2State *s, const BdrvDirtyBitmap *bitmap) { uint32_t sector_granularity = bdrv_dirty_bitmap_granularity(bitmap) >> BDRV_SECTOR_BITS; return (uint64_t)sector_granularity * (s->clus...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(const BDRVQcow2State *s, const BdrvDirtyBitmap *bitmap) { uint32_t sector_granularity = bdrv_dirty_bitmap_granularity(bitmap) >> BDRV_SECTOR_BITS; return (uint64_t)sector_granularity * (s->cluster_size << 3); }
[ "static uint64_t FUNC_0(const BDRVQcow2State *s,\nconst BdrvDirtyBitmap *bitmap)\n{", "uint32_t sector_granularity =\nbdrv_dirty_bitmap_granularity(bitmap) >> BDRV_SECTOR_BITS;", "return (uint64_t)sector_granularity * (s->cluster_size << 3);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 13 ], [ 15 ] ]
14,736
static int vmdk_open_sparse(BlockDriverState *bs, BlockDriverState *file, int flags, char *buf, Error **errp) { uint32_t magic; magic = ldl_be_p(buf); switch (magic) { case VMDK3_MAGIC: return vmdk_open_vmfs_sparse(bs, fil...
false
qemu
76abe4071d111a9ca6dcc9b9689a831c39ffa718
static int vmdk_open_sparse(BlockDriverState *bs, BlockDriverState *file, int flags, char *buf, Error **errp) { uint32_t magic; magic = ldl_be_p(buf); switch (magic) { case VMDK3_MAGIC: return vmdk_open_vmfs_sparse(bs, fil...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1, int VAR_2, char *VAR_3, Error **VAR_4) { uint32_t magic; magic = ldl_be_p(VAR_3); switch (magic) { case VMDK3_MAGIC: return vmdk_open_vmfs_sparse(VAR_0, V...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nBlockDriverState *VAR_1, int VAR_2,\nchar *VAR_3, Error **VAR_4)\n{", "uint32_t magic;", "magic = ldl_be_p(VAR_3);", "switch (magic) {", "case VMDK3_MAGIC:\nreturn vmdk_open_vmfs_sparse(VAR_0, VAR_1, VAR_2, VAR_4);", "break;", "case VMDK4_MAGIC:\nreturn vmdk_...
[ 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 ] ]
14,737
static void tcg_reg_alloc_op(TCGContext *s, const TCGOpDef *def, TCGOpcode opc, const TCGArg *args, uint16_t dead_args, uint8_t sync_args) { TCGRegSet allocated_regs; int i, k, nb_iargs, nb_oargs, reg; TCGArg arg;...
false
qemu
b3a62939561e07bc34493444fa926b6137cba4e8
static void tcg_reg_alloc_op(TCGContext *s, const TCGOpDef *def, TCGOpcode opc, const TCGArg *args, uint16_t dead_args, uint8_t sync_args) { TCGRegSet allocated_regs; int i, k, nb_iargs, nb_oargs, reg; TCGArg arg;...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, const TCGOpDef *VAR_1, TCGOpcode VAR_2, const TCGArg *VAR_3, uint16_t VAR_4, uint8_t VAR_5) { TCGRegSet allocated_regs; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; TCGArg arg; ...
[ "static void FUNC_0(TCGContext *VAR_0,\nconst TCGOpDef *VAR_1, TCGOpcode VAR_2,\nconst TCGArg *VAR_3, uint16_t VAR_4,\nuint8_t VAR_5)\n{", "TCGRegSet allocated_regs;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "TCGArg arg;", "const TCGArgConstraint *VAR_11;", "TCGTemp *ts;", "TCGArg new_args[TCG_MAX_OP...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 35, 37, 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
14,738
static void arm_cpu_class_init(ObjectClass *oc, void *data) { ARMCPUClass *acc = ARM_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(acc); DeviceClass *dc = DEVICE_CLASS(oc); acc->parent_realize = dc->realize; dc->realize = arm_cpu_realizefn; dc->props = arm_cpu_properties; acc->parent_reset = cc->r...
true
qemu
4c315c27661502a0813b129e41c0bf640c34a8d6
static void arm_cpu_class_init(ObjectClass *oc, void *data) { ARMCPUClass *acc = ARM_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(acc); DeviceClass *dc = DEVICE_CLASS(oc); acc->parent_realize = dc->realize; dc->realize = arm_cpu_realizefn; dc->props = arm_cpu_properties; acc->parent_reset = cc->r...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { ARMCPUClass *acc = ARM_CPU_CLASS(VAR_0); CPUClass *cc = CPU_CLASS(acc); DeviceClass *dc = DEVICE_CLASS(VAR_0); acc->parent_realize = dc->realize; dc->realize = arm_cpu_realizefn; dc->props = arm_cpu_properties; acc->parent_reset = cc->res...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "ARMCPUClass *acc = ARM_CPU_CLASS(VAR_0);", "CPUClass *cc = CPU_CLASS(acc);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "acc->parent_realize = dc->realize;", "dc->realize = arm_cpu_realizefn;", "dc->props = arm_cpu_properties;", "acc->parent_re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18, 19 ], [ 20, 21 ], [ 22 ],...
14,739
static int mp3info(void *data, int *byteSize, int *samplesPerFrame, int *sampleRate, int *isMono ) { uint8_t *dataTmp = (uint8_t *)data; uint32_t header = ( (uint32_t)dataTmp[0] << 24 ) | ( (uint32_t)dataTmp[1] << 16 ) | ( (uint32_t)dataTmp[2] << 8 ) | (uint32_t)dataTmp[3]; int layerID = 3 - ((header >>...
true
FFmpeg
747a0554ea8ad09404c1f5b80239ebd8d71b291e
static int mp3info(void *data, int *byteSize, int *samplesPerFrame, int *sampleRate, int *isMono ) { uint8_t *dataTmp = (uint8_t *)data; uint32_t header = ( (uint32_t)dataTmp[0] << 24 ) | ( (uint32_t)dataTmp[1] << 16 ) | ( (uint32_t)dataTmp[2] << 8 ) | (uint32_t)dataTmp[3]; int layerID = 3 - ((header >>...
{ "code": [ " *byteSize = ( ( ( ( *samplesPerFrame * (bitRate / bitsPerSlot) ) / *sampleRate ) + isPadded ) * bitsPerSlot);" ], "line_no": [ 79 ] }
static int FUNC_0(void *VAR_0, int *VAR_1, int *VAR_2, int *VAR_3, int *VAR_4 ) { uint8_t *dataTmp = (uint8_t *)VAR_0; uint32_t header = ( (uint32_t)dataTmp[0] << 24 ) | ( (uint32_t)dataTmp[1] << 16 ) | ( (uint32_t)dataTmp[2] << 8 ) | (uint32_t)dataTmp[3]; int VAR_5 = 3 - ((header >> 17) & 0x03); i...
[ "static int FUNC_0(void *VAR_0, int *VAR_1, int *VAR_2, int *VAR_3, int *VAR_4 )\n{", "uint8_t *dataTmp = (uint8_t *)VAR_0;", "uint32_t header = ( (uint32_t)dataTmp[0] << 24 ) | ( (uint32_t)dataTmp[1] << 16 ) | ( (uint32_t)dataTmp[2] << 8 ) | (uint32_t)dataTmp[3];", "int VAR_5 = 3 - ((header >> 17) & 0x03);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
14,742
void slirp_input(const uint8_t *pkt, int pkt_len) { struct mbuf *m; int proto; if (pkt_len < ETH_HLEN) return; proto = ntohs(*(uint16_t *)(pkt + 12)); switch(proto) { case ETH_P_ARP: arp_input(pkt, pkt_len); break; case ETH_P_IP: m = m_get(); ...
true
qemu
e8e880a72e63d0587f03aa670be3de683b881ca8
void slirp_input(const uint8_t *pkt, int pkt_len) { struct mbuf *m; int proto; if (pkt_len < ETH_HLEN) return; proto = ntohs(*(uint16_t *)(pkt + 12)); switch(proto) { case ETH_P_ARP: arp_input(pkt, pkt_len); break; case ETH_P_IP: m = m_get(); ...
{ "code": [], "line_no": [] }
void FUNC_0(const uint8_t *VAR_0, int VAR_1) { struct mbuf *VAR_2; int VAR_3; if (VAR_1 < ETH_HLEN) return; VAR_3 = ntohs(*(uint16_t *)(VAR_0 + 12)); switch(VAR_3) { case ETH_P_ARP: arp_input(VAR_0, VAR_1); break; case ETH_P_IP: VAR_2 = m_get()...
[ "void FUNC_0(const uint8_t *VAR_0, int VAR_1)\n{", "struct mbuf *VAR_2;", "int VAR_3;", "if (VAR_1 < ETH_HLEN)\nreturn;", "VAR_3 = ntohs(*(uint16_t *)(VAR_0 + 12));", "switch(VAR_3) {", "case ETH_P_ARP:\narp_input(VAR_0, VAR_1);", "break;", "case ETH_P_IP:\nVAR_2 = m_get();", "if (!VAR_2)\nreturn;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 40 ], [ 42 ], [ 46 ], [ 48 ], [ 52 ], [ 54 ], [ 56, 58 ] ]
14,743
void OPPROTO op_srl_T0_T1 (void) { T0 = T0 >> T1; RETURN(); }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
void OPPROTO op_srl_T0_T1 (void) { T0 = T0 >> T1; RETURN(); }
{ "code": [ " RETURN();", " T0 = T0 >> T1;", " RETURN();" ], "line_no": [ 7, 5, 7 ] }
void VAR_0 op_srl_T0_T1 (void) { T0 = T0 >> T1; RETURN(); }
[ "void VAR_0 op_srl_T0_T1 (void)\n{", "T0 = T0 >> T1;", "RETURN();", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
14,744
void ff_decode_dxt3(const uint8_t *s, uint8_t *dst, const unsigned int w, const unsigned int h, const unsigned int stride) { unsigned int bx, by, qstride = stride/4; uint32_t *d = (uint32_t *) dst; for (by=0; by < h/4; by++, d += stride-w) for (bx=0; b...
true
FFmpeg
919f3554387e043bdfe10c6369356d1104882183
void ff_decode_dxt3(const uint8_t *s, uint8_t *dst, const unsigned int w, const unsigned int h, const unsigned int stride) { unsigned int bx, by, qstride = stride/4; uint32_t *d = (uint32_t *) dst; for (by=0; by < h/4; by++, d += stride-w) for (bx=0; b...
{ "code": [ "void ff_decode_dxt3(const uint8_t *s, uint8_t *dst,", " for (bx=0; bx < w/4; bx++, s+=16, d+=4)", " dxt1_decode_pixels(s+8, d, qstride, 1, AV_RL64(s));" ], "line_no": [ 1, 15, 17 ] }
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, const unsigned int VAR_2, const unsigned int VAR_3, const unsigned int VAR_4) { unsigned int VAR_5, VAR_6, VAR_7 = VAR_4/4; uint32_t *d = (uint32_t *) VAR_1; for (VAR_6=0; VAR_6 < VAR_3/4; VAR_6++, d += VAR_4-VA...
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1,\nconst unsigned int VAR_2, const unsigned int VAR_3,\nconst unsigned int VAR_4) {", "unsigned int VAR_5, VAR_6, VAR_7 = VAR_4/4;", "uint32_t *d = (uint32_t *) VAR_1;", "for (VAR_6=0; VAR_6 < VAR_3/4; VAR_6++, d += VAR_4-VAR_2)", "for (VAR_5=0; VAR_5 < VAR_2...
[ 1, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
14,746
static void gen_mtdcr(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv dcrn; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } /* NIP cannot be restored if the memory exception c...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_mtdcr(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv dcrn; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } gen_update_nip(ctx, ctx->nip - 4); dcrn ...
{ "code": [ " if (unlikely(ctx->pr)) {", " if (unlikely(ctx->pr)) {", "#if defined(CONFIG_USER_ONLY)", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#else", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#endif", "#if d...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); #else TCGv dcrn; if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } gen_update_nip(VAR_0, VAR_0->nip - 4); ...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "#else\nTCGv dcrn;", "if (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "return;", "}", "gen_update_nip(VAR_0, VAR_0->nip - 4);", "dcrn ...
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ] ]
14,747
static void avc_luma_mid_and_aver_dst_8w_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height) { uint32_t loop_cnt; v16i8 src0, src...
false
FFmpeg
1181d93231e9b807965724587d363c1cfd5a1d0d
static void avc_luma_mid_and_aver_dst_8w_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height) { uint32_t loop_cnt; v16i8 src0, src...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1, uint8_t *VAR_2, int32_t VAR_3, int32_t VAR_4) { uint32_t loop_cnt; v16i8 src0, src1, src2, src3, src4; v16i8 m...
[ "static void FUNC_0(const uint8_t *VAR_0,\nint32_t VAR_1,\nuint8_t *VAR_2, int32_t VAR_3,\nint32_t VAR_4)\n{", "uint32_t loop_cnt;", "v16i8 src0, src1, src2, src3, src4;", "v16i8 mask0, mask1, mask2;", "v8i16 hz_out0, hz_out1, hz_out2, hz_out3;", "v8i16 hz_out4, hz_out5, hz_out6, hz_out7, hz_out8;", "v1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
14,748
static void check_mc(void) { LOCAL_ALIGNED_32(uint8_t, buf, [72 * 72 * 2]); LOCAL_ALIGNED_32(uint8_t, dst0, [64 * 64 * 2]); LOCAL_ALIGNED_32(uint8_t, dst1, [64 * 64 * 2]); VP9DSPContext dsp; int op, hsize, bit_depth, filter, dx, dy; declare_func(void, uint8_t *dst, ptrdiff_t dst_stride, ...
false
FFmpeg
a860adb49c4cd9c1271778cb7c2930c25efb2a97
static void check_mc(void) { LOCAL_ALIGNED_32(uint8_t, buf, [72 * 72 * 2]); LOCAL_ALIGNED_32(uint8_t, dst0, [64 * 64 * 2]); LOCAL_ALIGNED_32(uint8_t, dst1, [64 * 64 * 2]); VP9DSPContext dsp; int op, hsize, bit_depth, filter, dx, dy; declare_func(void, uint8_t *dst, ptrdiff_t dst_stride, ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { LOCAL_ALIGNED_32(uint8_t, buf, [72 * 72 * 2]); LOCAL_ALIGNED_32(uint8_t, dst0, [64 * 64 * 2]); LOCAL_ALIGNED_32(uint8_t, dst1, [64 * 64 * 2]); VP9DSPContext dsp; int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5; declare_func(void, uint8_t *dst, ptrdiff_t dst_stride,...
[ "static void FUNC_0(void)\n{", "LOCAL_ALIGNED_32(uint8_t, buf, [72 * 72 * 2]);", "LOCAL_ALIGNED_32(uint8_t, dst0, [64 * 64 * 2]);", "LOCAL_ALIGNED_32(uint8_t, dst1, [64 * 64 * 2]);", "VP9DSPContext dsp;", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "declare_func(void, uint8_t *dst, ptrdiff_t dst_st...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
14,749
static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat *pix_fmts) { InputStream *ist = s->opaque; const enum AVPixelFormat *p; int ret; for (p = pix_fmts; *p != -1; p++) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(*p); const HWAccel *hwaccel;...
false
FFmpeg
b0cd14fb1dab4b044f7fe6b53ac635409849de77
static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat *pix_fmts) { InputStream *ist = s->opaque; const enum AVPixelFormat *p; int ret; for (p = pix_fmts; *p != -1; p++) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(*p); const HWAccel *hwaccel;...
{ "code": [], "line_no": [] }
static enum AVPixelFormat FUNC_0(AVCodecContext *VAR_0, const enum AVPixelFormat *VAR_1) { InputStream *ist = VAR_0->opaque; const enum AVPixelFormat *VAR_2; int VAR_3; for (VAR_2 = VAR_1; *VAR_2 != -1; VAR_2++) { const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(*VAR_2); co...
[ "static enum AVPixelFormat FUNC_0(AVCodecContext *VAR_0, const enum AVPixelFormat *VAR_1)\n{", "InputStream *ist = VAR_0->opaque;", "const enum AVPixelFormat *VAR_2;", "int VAR_3;", "for (VAR_2 = VAR_1; *VAR_2 != -1; VAR_2++) {", "const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(*VAR_2);", "const 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29, 31, 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49, 51 ], [ 53 ], [ 55 ], [...
14,751
void qdev_prop_allow_set_link_before_realize(Object *obj, const char *name, Object *val, Error **errp) { DeviceState *dev = DEVICE(obj); if (dev->realized) { error_setg(errp, "Attempt to set link property '%s' on device '%s' " "(typ...
true
qemu
8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a
void qdev_prop_allow_set_link_before_realize(Object *obj, const char *name, Object *val, Error **errp) { DeviceState *dev = DEVICE(obj); if (dev->realized) { error_setg(errp, "Attempt to set link property '%s' on device '%s' " "(typ...
{ "code": [ "void qdev_prop_allow_set_link_before_realize(Object *obj, const char *name,", "void qdev_prop_allow_set_link_before_realize(Object *obj, const char *name," ], "line_no": [ 1, 1 ] }
void FUNC_0(Object *VAR_0, const char *VAR_1, Object *VAR_2, Error **VAR_3) { DeviceState *dev = DEVICE(VAR_0); if (dev->realized) { error_setg(VAR_3, "Attempt to set link property '%s' on device '%s' " "(type '%s') after it was rea...
[ "void FUNC_0(Object *VAR_0, const char *VAR_1,\nObject *VAR_2, Error **VAR_3)\n{", "DeviceState *dev = DEVICE(VAR_0);", "if (dev->realized) {", "error_setg(VAR_3, \"Attempt to set link property '%s' on device '%s' \"\n\"(type '%s') after it was realized\",\nVAR_1, dev->id, object_get_typename(VAR_0));", "}"...
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ] ]
14,752
static void uninit(struct vf_instance *vf) { free(vf->priv); }
true
FFmpeg
2f11aa141a01f97c5d2a015bd9dbdb27314b79c4
static void uninit(struct vf_instance *vf) { free(vf->priv); }
{ "code": [ "static void uninit(struct vf_instance *vf)", " free(vf->priv);" ], "line_no": [ 1, 5 ] }
static void FUNC_0(struct vf_instance *VAR_0) { free(VAR_0->priv); }
[ "static void FUNC_0(struct vf_instance *VAR_0)\n{", "free(VAR_0->priv);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
14,753
static av_cold int encode_init(AVCodecContext *avctx) { NellyMoserEncodeContext *s = avctx->priv_data; int i, ret; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Nellymoser supports only 1 channel\n"); return AVERROR(EINVAL); } if (avctx->sample_rate != 8000 && ...
true
FFmpeg
03ef5047d15904ed34976c6ba11c9176529ee9e7
static av_cold int encode_init(AVCodecContext *avctx) { NellyMoserEncodeContext *s = avctx->priv_data; int i, ret; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Nellymoser supports only 1 channel\n"); return AVERROR(EINVAL); } if (avctx->sample_rate != 8000 && ...
{ "code": [ " ff_sine_window_init(ff_sine_128, 128);" ], "line_no": [ 55 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { NellyMoserEncodeContext *s = avctx->priv_data; int VAR_0, VAR_1; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Nellymoser supports only 1 channel\n"); return AVERROR(EINVAL); } if (avctx->sample_rate != 8000 &&...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "NellyMoserEncodeContext *s = avctx->priv_data;", "int VAR_0, VAR_1;", "if (avctx->channels != 1) {", "av_log(avctx, AV_LOG_ERROR, \"Nellymoser supports only 1 channel\\n\");", "return AVERROR(EINVAL);", "}", "if (avctx->sample_rate != 8000 && avc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 55...
14,754
static int ass_encode_frame(AVCodecContext *avctx, unsigned char *buf, int bufsize, const AVSubtitle *sub) { ASSEncodeContext *s = avctx->priv_data; int i, len, total_len = 0; for (i=0; i<sub->num_rects; i++) { char ass_line[2048]; ...
true
FFmpeg
860a0810583f54ccbde912aebda8711f18eab8eb
static int ass_encode_frame(AVCodecContext *avctx, unsigned char *buf, int bufsize, const AVSubtitle *sub) { ASSEncodeContext *s = avctx->priv_data; int i, len, total_len = 0; for (i=0; i<sub->num_rects; i++) { char ass_line[2048]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, const AVSubtitle *VAR_3) { ASSEncodeContext *s = VAR_0->priv_data; int VAR_4, VAR_5, VAR_6 = 0; for (VAR_4=0; VAR_4<VAR_3->num_rects; VAR_4++) { char ass_line[20...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nunsigned char *VAR_1, int VAR_2,\nconst AVSubtitle *VAR_3)\n{", "ASSEncodeContext *s = VAR_0->priv_data;", "int VAR_4, VAR_5, VAR_6 = 0;", "for (VAR_4=0; VAR_4<VAR_3->num_rects; VAR_4++) {", "char ass_line[2048];", "const char *ass = VAR_3->rects[VAR_4]->ass;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [...
14,755
static void lsp2lpc(int16_t *lpc) { int f1[LPC_ORDER / 2 + 1]; int f2[LPC_ORDER / 2 + 1]; int i, j; /* Calculate negative cosine */ for (j = 0; j < LPC_ORDER; j++) { int index = (lpc[j] >> 7) & 0x1FF; int offset = lpc[j] & 0x7f; int temp1 = cos_tab[index...
true
FFmpeg
4ace2d22192f3995911ec926940125dcb29d606a
static void lsp2lpc(int16_t *lpc) { int f1[LPC_ORDER / 2 + 1]; int f2[LPC_ORDER / 2 + 1]; int i, j; for (j = 0; j < LPC_ORDER; j++) { int index = (lpc[j] >> 7) & 0x1FF; int offset = lpc[j] & 0x7f; int temp1 = cos_tab[index] << 16; int temp2 ...
{ "code": [ " int temp1 = cos_tab[index] << 16;", " ((offset << 8) + 0x80) << 1;", " f1[1] = (lpc[0] << 14) + (lpc[2] << 14);", " f2[1] = (lpc[1] << 14) + (lpc[3] << 14);", " f1[1] = ((lpc[2 * i] << 16 >> i) + f1[1]) >> 1;", " f2[1] =...
static void FUNC_0(int16_t *VAR_0) { int VAR_1[LPC_ORDER / 2 + 1]; int VAR_2[LPC_ORDER / 2 + 1]; int VAR_3, VAR_4; for (VAR_4 = 0; VAR_4 < LPC_ORDER; VAR_4++) { int index = (VAR_0[VAR_4] >> 7) & 0x1FF; int offset = VAR_0[VAR_4] & 0x7f; int temp1 = cos_t...
[ "static void FUNC_0(int16_t *VAR_0)\n{", "int VAR_1[LPC_ORDER / 2 + 1];", "int VAR_2[LPC_ORDER / 2 + 1];", "int VAR_3, VAR_4;", "for (VAR_4 = 0; VAR_4 < LPC_ORDER; VAR_4++) {", "int index = (VAR_0[VAR_4] >> 7) & 0x1FF;", "int offset = VAR_0[VAR_4] & 0x7f;", "int temp1 = cos_tab[index] << 16...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 69 ], [ 71 ], [...
14,756
static void blockdev_backup_abort(BlkActionState *common) { BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, common, common); BlockDriverState *bs = state->bs; /* Only cancel if it's the job we started */ if (bs && bs->job && bs->job == state->job) { block_job_cancel_sync(bs->...
true
qemu
111049a4ecefc9cf1ac75c773f4c5c165f27fe63
static void blockdev_backup_abort(BlkActionState *common) { BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, common, common); BlockDriverState *bs = state->bs; if (bs && bs->job && bs->job == state->job) { block_job_cancel_sync(bs->job); } }
{ "code": [ " BlockDriverState *bs = state->bs;", " if (bs && bs->job && bs->job == state->job) {", " block_job_cancel_sync(bs->job);", " BlockDriverState *bs = state->bs;", " if (bs && bs->job && bs->job == state->job) {", " block_job_cancel_sync(bs->job);" ], "l...
static void FUNC_0(BlkActionState *VAR_0) { BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, VAR_0, VAR_0); BlockDriverState *bs = state->bs; if (bs && bs->job && bs->job == state->job) { block_job_cancel_sync(bs->job); } }
[ "static void FUNC_0(BlkActionState *VAR_0)\n{", "BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, VAR_0, VAR_0);", "BlockDriverState *bs = state->bs;", "if (bs && bs->job && bs->job == state->job) {", "block_job_cancel_sync(bs->job);", "}", "}" ]
[ 0, 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
14,757
static void pc_init_pci_1_2(QEMUMachineInitArgs *args) { disable_kvm_pv_eoi(); enable_compat_apic_id_mode(); pc_sysfw_flash_vs_rom_bug_compatible = true; has_pvpanic = false; pc_init_pci(args); }
true
qemu
9e1c2ec8fd8d9a9ee299ea86c5f6c986fe25e838
static void pc_init_pci_1_2(QEMUMachineInitArgs *args) { disable_kvm_pv_eoi(); enable_compat_apic_id_mode(); pc_sysfw_flash_vs_rom_bug_compatible = true; has_pvpanic = false; pc_init_pci(args); }
{ "code": [ " pc_sysfw_flash_vs_rom_bug_compatible = true;", " pc_sysfw_flash_vs_rom_bug_compatible = true;", " pc_sysfw_flash_vs_rom_bug_compatible = true;", " pc_sysfw_flash_vs_rom_bug_compatible = true;" ], "line_no": [ 9, 9, 9, 9 ] }
static void FUNC_0(QEMUMachineInitArgs *VAR_0) { disable_kvm_pv_eoi(); enable_compat_apic_id_mode(); pc_sysfw_flash_vs_rom_bug_compatible = true; has_pvpanic = false; pc_init_pci(VAR_0); }
[ "static void FUNC_0(QEMUMachineInitArgs *VAR_0)\n{", "disable_kvm_pv_eoi();", "enable_compat_apic_id_mode();", "pc_sysfw_flash_vs_rom_bug_compatible = true;", "has_pvpanic = false;", "pc_init_pci(VAR_0);", "}" ]
[ 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
14,759
static int decode_nal_sei_message(GetBitContext *gb, void *logctx, HEVCSEI *s, const HEVCParamSets *ps, int nal_unit_type) { int payload_type = 0; int payload_size = 0; int byte = 0xFF; av_log(logctx, AV_LOG_DEBUG, "Decoding SEI\n"); while (byte == 0xFF) { ...
true
FFmpeg
991ef6e5b9a6a9d95e274ff6bff52db1c82b3808
static int decode_nal_sei_message(GetBitContext *gb, void *logctx, HEVCSEI *s, const HEVCParamSets *ps, int nal_unit_type) { int payload_type = 0; int payload_size = 0; int byte = 0xFF; av_log(logctx, AV_LOG_DEBUG, "Decoding SEI\n"); while (byte == 0xFF) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(GetBitContext *VAR_0, void *VAR_1, HEVCSEI *VAR_2, const HEVCParamSets *VAR_3, int VAR_4) { int VAR_5 = 0; int VAR_6 = 0; int VAR_7 = 0xFF; av_log(VAR_1, AV_LOG_DEBUG, "Decoding SEI\n"); while (VAR_7 == 0xFF) { VAR_7 = ...
[ "static int FUNC_0(GetBitContext *VAR_0, void *VAR_1, HEVCSEI *VAR_2,\nconst HEVCParamSets *VAR_3, int VAR_4)\n{", "int VAR_5 = 0;", "int VAR_6 = 0;", "int VAR_7 = 0xFF;", "av_log(VAR_1, AV_LOG_DEBUG, \"Decoding SEI\\n\");", "while (VAR_7 == 0xFF) {", "VAR_7 = get_bits(VAR_0, 8);", "VAR_5 += ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
14,760
static void parse_type_number(Visitor *v, const char *name, double *obj, Error **errp) { StringInputVisitor *siv = to_siv(v); char *endp = (char *) siv->string; double val; errno = 0; if (siv->string) { val = strtod(siv->string, &endp); } if ...
true
qemu
f332e830e38b3ff3953ef02ac04e409ae53769c5
static void parse_type_number(Visitor *v, const char *name, double *obj, Error **errp) { StringInputVisitor *siv = to_siv(v); char *endp = (char *) siv->string; double val; errno = 0; if (siv->string) { val = strtod(siv->string, &endp); } if ...
{ "code": [ " error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : \"null\",", " if (siv->string) {", " error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : \"null\",", " if (siv->string) {", " if (siv->string) {", " error_setg(errp, QERR_INVALID_PAR...
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, double *VAR_2, Error **VAR_3) { StringInputVisitor *siv = to_siv(VAR_0); char *VAR_4 = (char *) siv->string; double VAR_5; errno = 0; if (siv->string) { VAR_5 = strtod(siv->string, &VAR_4); } ...
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, double *VAR_2,\nError **VAR_3)\n{", "StringInputVisitor *siv = to_siv(VAR_0);", "char *VAR_4 = (char *) siv->string;", "double VAR_5;", "errno = 0;", "if (siv->string) {", "VAR_5 = strtod(siv->string, &VAR_4);", "}", "if (!siv->string || errno |...
[ 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
14,761
int arm_set_cpu_off(uint64_t cpuid) { CPUState *target_cpu_state; ARMCPU *target_cpu; DPRINTF("cpu %" PRId64 "\n", cpuid); /* change to the cpu we are powering up */ target_cpu_state = arm_get_cpu_by_id(cpuid); if (!target_cpu_state) { return QEMU_ARM_POWERCTL_INVALID_PARAM; ...
true
qemu
062ba099e01ff1474be98c0a4f3da351efab5d9d
int arm_set_cpu_off(uint64_t cpuid) { CPUState *target_cpu_state; ARMCPU *target_cpu; DPRINTF("cpu %" PRId64 "\n", cpuid); target_cpu_state = arm_get_cpu_by_id(cpuid); if (!target_cpu_state) { return QEMU_ARM_POWERCTL_INVALID_PARAM; } target_cpu = ARM_CPU(target_cp...
{ "code": [ " if (target_cpu->powered_off) {", " target_cpu->powered_off = true;", " target_cpu_state->halted = 1;", " target_cpu_state->exception_index = EXCP_HLT;", " cpu_loop_exit(target_cpu_state);", " if (target_cpu->powered_off) {" ], "line_no": [ 27, 41, ...
int FUNC_0(uint64_t VAR_0) { CPUState *target_cpu_state; ARMCPU *target_cpu; DPRINTF("cpu %" PRId64 "\n", VAR_0); target_cpu_state = arm_get_cpu_by_id(VAR_0); if (!target_cpu_state) { return QEMU_ARM_POWERCTL_INVALID_PARAM; } target_cpu = ARM_CPU(target_cpu_state);...
[ "int FUNC_0(uint64_t VAR_0)\n{", "CPUState *target_cpu_state;", "ARMCPU *target_cpu;", "DPRINTF(\"cpu %\" PRId64 \"\\n\", VAR_0);", "target_cpu_state = arm_get_cpu_by_id(VAR_0);", "if (!target_cpu_state) {", "return QEMU_ARM_POWERCTL_INVALID_PARAM;", "}", "target_cpu = ARM_CPU(target_cpu_state);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55...
14,762
static int read_packet(AVFormatContext *s, AVPacket *pkt) { FilmstripDemuxContext *film = s->priv_data; AVStream *st = s->streams[0]; if (s->pb->eof_reached) return AVERROR(EIO); pkt->dts = avio_tell(s->pb) / (st->codec->width * (st->codec->height + film->leading)...
true
FFmpeg
b46b233baffc2076a1a17a264ba9553ae0d4878f
static int read_packet(AVFormatContext *s, AVPacket *pkt) { FilmstripDemuxContext *film = s->priv_data; AVStream *st = s->streams[0]; if (s->pb->eof_reached) return AVERROR(EIO); pkt->dts = avio_tell(s->pb) / (st->codec->width * (st->codec->height + film->leading)...
{ "code": [ " avio_skip(s->pb, st->codec->width * film->leading * 4);" ], "line_no": [ 21 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { FilmstripDemuxContext *film = VAR_0->priv_data; AVStream *st = VAR_0->streams[0]; if (VAR_0->pb->eof_reached) return AVERROR(EIO); VAR_1->dts = avio_tell(VAR_0->pb) / (st->codec->width * (st->codec->heig...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "FilmstripDemuxContext *film = VAR_0->priv_data;", "AVStream *st = VAR_0->streams[0];", "if (VAR_0->pb->eof_reached)\nreturn AVERROR(EIO);", "VAR_1->dts = avio_tell(VAR_0->pb) / (st->codec->width * (st->codec->height + film->leading) * 4);", ...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ] ]
14,763
static int get_physical_address_code(CPUState *env, target_phys_addr_t *physical, int *prot, target_ulong address, int is_user) { unsigned int i; uint64_t context; int is_nucleus; if ((env->lsu & IMMU_E) == 0 || (env->pst...
true
qemu
299b520cd4092be3c53f8380b81315c33927d9d3
static int get_physical_address_code(CPUState *env, target_phys_addr_t *physical, int *prot, target_ulong address, int is_user) { unsigned int i; uint64_t context; int is_nucleus; if ((env->lsu & IMMU_E) == 0 || (env->pst...
{ "code": [ " int is_nucleus;", " context = env->dmmu.mmu_primary_context & 0x1fff;", " is_nucleus = env->tl > 0;", " address, context, physical,", " is_nucleus)) {", " int is_nucleus;", " context = env->dmmu.mm...
static int FUNC_0(CPUState *VAR_0, target_phys_addr_t *VAR_1, int *VAR_2, target_ulong VAR_3, int VAR_4) { unsigned int VAR_5; uint64_t context; int VAR_6; if ((VAR_0->lsu & IMMU_E) == 0 || (VAR_0->pstate & PS_RED) != 0) ...
[ "static int FUNC_0(CPUState *VAR_0,\ntarget_phys_addr_t *VAR_1, int *VAR_2,\ntarget_ulong VAR_3, int VAR_4)\n{", "unsigned int VAR_5;", "uint64_t context;", "int VAR_6;", "if ((VAR_0->lsu & IMMU_E) == 0 || (VAR_0->pstate & PS_RED) != 0) {", "*VAR_1 = ultrasparc_truncate_physical(VAR_3);", "*VAR_2 = PAGE...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 41, 43, 45 ], [ 49 ], [ 51, 53 ], [ 57 ], [ 59 ], [...
14,764
int ff_mjpeg_decode_sof(MJpegDecodeContext *s) { int len, nb_components, i, width, height, bits, pix_fmt_id, ret; int h_count[MAX_COMPONENTS]; int v_count[MAX_COMPONENTS]; s->cur_scan = 0; s->upscale_h = s->upscale_v = 0; /* XXX: verify len field validity */ len = get_bits(&s->gb, 16); ...
true
FFmpeg
0db1f2c2c78db18999fccd46a156408e5e87c8a1
int ff_mjpeg_decode_sof(MJpegDecodeContext *s) { int len, nb_components, i, width, height, bits, pix_fmt_id, ret; int h_count[MAX_COMPONENTS]; int v_count[MAX_COMPONENTS]; s->cur_scan = 0; s->upscale_h = s->upscale_v = 0; len = get_bits(&s->gb, 16); s->avctx->bits_per_raw_sample = ...
{ "code": [], "line_no": [] }
int FUNC_0(MJpegDecodeContext *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9[MAX_COMPONENTS]; int VAR_10[MAX_COMPONENTS]; VAR_0->cur_scan = 0; VAR_0->upscale_h = VAR_0->upscale_v = 0; VAR_1 = get_bits(&VAR_0->gb, 16); VAR_0->avctx->bits_per_raw_sampl...
[ "int FUNC_0(MJpegDecodeContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9[MAX_COMPONENTS];", "int VAR_10[MAX_COMPONENTS];", "VAR_0->cur_scan = 0;", "VAR_0->upscale_h = VAR_0->upscale_v = 0;", "VAR_1 = get_bits(&VAR_0->gb, 16);", "VAR_0->avctx->bits_per_r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 9 ], [ 10, 11 ], [ 12, 13 ], [ 14, 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21, 22 ], [ 24, 25 ], [ ...
14,765
static void ahci_shutdown(AHCIQState *ahci) { QOSState *qs = ahci->parent; free_ahci_device(ahci->dev); g_free(ahci); qtest_shutdown(qs); }
true
qemu
259342d34dbdfb304374f569feec26317edd97c9
static void ahci_shutdown(AHCIQState *ahci) { QOSState *qs = ahci->parent; free_ahci_device(ahci->dev); g_free(ahci); qtest_shutdown(qs); }
{ "code": [], "line_no": [] }
static void FUNC_0(AHCIQState *VAR_0) { QOSState *qs = VAR_0->parent; free_ahci_device(VAR_0->dev); g_free(VAR_0); qtest_shutdown(qs); }
[ "static void FUNC_0(AHCIQState *VAR_0)\n{", "QOSState *qs = VAR_0->parent;", "free_ahci_device(VAR_0->dev);", "g_free(VAR_0);", "qtest_shutdown(qs);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ] ]
14,766
static int gif_parse_next_image(GifState *s) { ByteIOContext *f = s->f; int ret, code; for (;;) { code = url_fgetc(f); #ifdef DEBUG printf("gif: code=%02x '%c'\n", code, code); #endif switch (code) { case ',': if (gif_read_image(s) < 0) ...
true
FFmpeg
0b54f3c0878a3acaa9142e4f24942e762d97e350
static int gif_parse_next_image(GifState *s) { ByteIOContext *f = s->f; int ret, code; for (;;) { code = url_fgetc(f); #ifdef DEBUG printf("gif: code=%02x '%c'\n", code, code); #endif switch (code) { case ',': if (gif_read_image(s) < 0) ...
{ "code": [ " break;", " goto the_end;", " for (;;) {", " break;", " the_end:", " ByteIOContext *f = s->f;", "#ifdef DEBUG", "#endif", " ByteIOContext *f = s->f;", "#ifdef DEBUG", "#endif", "#ifdef DEBUG", "#endif", "#i...
static int FUNC_0(GifState *VAR_0) { ByteIOContext *f = VAR_0->f; int VAR_1, VAR_2; for (;;) { VAR_2 = url_fgetc(f); #ifdef DEBUG printf("gif: VAR_2=%02x '%c'\n", VAR_2, VAR_2); #endif switch (VAR_2) { case ',': if (gif_read_image(VAR_0) < 0) ...
[ "static int FUNC_0(GifState *VAR_0)\n{", "ByteIOContext *f = VAR_0->f;", "int VAR_1, VAR_2;", "for (;;) {", "VAR_2 = url_fgetc(f);", "#ifdef DEBUG\nprintf(\"gif: VAR_2=%02x '%c'\\n\", VAR_2, VAR_2);", "#endif\nswitch (VAR_2) {", "case ',':\nif (gif_read_image(VAR_0) < 0)\nreturn AVERROR(EIO);", "VAR...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43, 45 ], [ 47 ], [ 49, 51, 55...
14,767
void net_client_uninit(NICInfo *nd) { nd->vlan->nb_guest_devs--; nb_nics--; nd->used = 0; free((void *)nd->model); }
true
qemu
a9796703447fc5c5691b749915f0f627f47f05a9
void net_client_uninit(NICInfo *nd) { nd->vlan->nb_guest_devs--; nb_nics--; nd->used = 0; free((void *)nd->model); }
{ "code": [ " nd->used = 0;", " free((void *)nd->model);" ], "line_no": [ 9, 11 ] }
void FUNC_0(NICInfo *VAR_0) { VAR_0->vlan->nb_guest_devs--; nb_nics--; VAR_0->used = 0; free((void *)VAR_0->model); }
[ "void FUNC_0(NICInfo *VAR_0)\n{", "VAR_0->vlan->nb_guest_devs--;", "nb_nics--;", "VAR_0->used = 0;", "free((void *)VAR_0->model);", "}" ]
[ 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
14,768
static int virtio_net_device_exit(DeviceState *qdev) { VirtIONet *n = VIRTIO_NET(qdev); VirtIODevice *vdev = VIRTIO_DEVICE(qdev); int i; /* This will stop vhost backend if appropriate. */ virtio_net_set_status(vdev, 0); unregister_savevm(qdev, "virtio-net", n); if (n->netclient...
true
qemu
3786cff5eb384d058395a2729af627fa3253d056
static int virtio_net_device_exit(DeviceState *qdev) { VirtIONet *n = VIRTIO_NET(qdev); VirtIODevice *vdev = VIRTIO_DEVICE(qdev); int i; virtio_net_set_status(vdev, 0); unregister_savevm(qdev, "virtio-net", n); if (n->netclient_name) { g_free(n->netclient_name); ...
{ "code": [ "static int virtio_net_device_exit(DeviceState *qdev)", " VirtIONet *n = VIRTIO_NET(qdev);", " VirtIODevice *vdev = VIRTIO_DEVICE(qdev);", " unregister_savevm(qdev, \"virtio-net\", n);", " return 0;" ], "line_no": [ 1, 5, 7, 19, 83 ] }
static int FUNC_0(DeviceState *VAR_0) { VirtIONet *n = VIRTIO_NET(VAR_0); VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); int VAR_1; virtio_net_set_status(vdev, 0); unregister_savevm(VAR_0, "virtio-net", n); if (n->netclient_name) { g_free(n->netclient_name); n->n...
[ "static int FUNC_0(DeviceState *VAR_0)\n{", "VirtIONet *n = VIRTIO_NET(VAR_0);", "VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);", "int VAR_1;", "virtio_net_set_status(vdev, 0);", "unregister_savevm(VAR_0, \"virtio-net\", n);", "if (n->netclient_name) {", "g_free(n->netclient_name);", "n->netclient_name...
[ 1, 1, 1, 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, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ...
14,769
static void residue_encode(vorbis_enc_context *venc, vorbis_enc_residue *rc, PutBitContext *pb, float *coeffs, int samples, int real_ch) { int pass, i, j, p, k; int psize = rc->partition_size; int partitions = (rc->end - rc->begin) / psize; ...
true
FFmpeg
1ba08c94f5bb4d1c3c2d3651b5e01edb4ce172e2
static void residue_encode(vorbis_enc_context *venc, vorbis_enc_residue *rc, PutBitContext *pb, float *coeffs, int samples, int real_ch) { int pass, i, j, p, k; int psize = rc->partition_size; int partitions = (rc->end - rc->begin) / psize; ...
{ "code": [ "static void residue_encode(vorbis_enc_context *venc, vorbis_enc_residue *rc,", " PutBitContext *pb, float *coeffs, int samples,", " int real_ch)", " put_codeword(pb, book, entry);", " flo...
static void FUNC_0(vorbis_enc_context *VAR_0, vorbis_enc_residue *VAR_1, PutBitContext *VAR_2, float *VAR_3, int VAR_4, int VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; int VAR_11 = VAR_1->partition_size; int VAR_12 = (VAR_1->end - VAR_1->...
[ "static void FUNC_0(vorbis_enc_context *VAR_0, vorbis_enc_residue *VAR_1,\nPutBitContext *VAR_2, float *VAR_3, int VAR_4,\nint VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "int VAR_11 = VAR_1->partition_size;", "int VAR_12 = (VAR_1->end - VAR_1->begin) / VAR_11;", "int VAR_13 = (VAR_1->type...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [...
14,771
static void rtc_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = rtc_realizefn; dc->no_user = 1; dc->vmsd = &vmstate_rtc; dc->props = mc146818rtc_properties; }
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void rtc_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = rtc_realizefn; dc->no_user = 1; dc->vmsd = &vmstate_rtc; dc->props = mc146818rtc_properties; }
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = rtc_realizefn; dc->no_user = 1; dc->vmsd = &vmstate_rtc; dc->props = mc146818rtc_properties; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = rtc_realizefn;", "dc->no_user = 1;", "dc->vmsd = &vmstate_rtc;", "dc->props = mc146818rtc_properties;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
14,773
static int megasas_handle_dcmd(MegasasState *s, MegasasCmd *cmd) { int opcode, len; int retval = 0; const struct dcmd_cmd_tbl_t *cmdptr = dcmd_cmd_tbl; opcode = le32_to_cpu(cmd->frame->dcmd.opcode); trace_megasas_handle_dcmd(cmd->index, opcode); len = megasas_map_dcmd(s, cmd); if (...
true
qemu
765a707000e838c30b18d712fe6cb3dd8e0435f3
static int megasas_handle_dcmd(MegasasState *s, MegasasCmd *cmd) { int opcode, len; int retval = 0; const struct dcmd_cmd_tbl_t *cmdptr = dcmd_cmd_tbl; opcode = le32_to_cpu(cmd->frame->dcmd.opcode); trace_megasas_handle_dcmd(cmd->index, opcode); len = megasas_map_dcmd(s, cmd); if (...
{ "code": [ " int opcode, len;", " len = megasas_map_dcmd(s, cmd);", " if (len < 0) {" ], "line_no": [ 5, 17, 19 ] }
static int FUNC_0(MegasasState *VAR_0, MegasasCmd *VAR_1) { int VAR_2, VAR_3; int VAR_4 = 0; const struct dcmd_cmd_tbl_t *VAR_5 = dcmd_cmd_tbl; VAR_2 = le32_to_cpu(VAR_1->frame->dcmd.VAR_2); trace_megasas_handle_dcmd(VAR_1->index, VAR_2); VAR_3 = megasas_map_dcmd(VAR_0, VAR_1); if ...
[ "static int FUNC_0(MegasasState *VAR_0, MegasasCmd *VAR_1)\n{", "int VAR_2, VAR_3;", "int VAR_4 = 0;", "const struct dcmd_cmd_tbl_t *VAR_5 = dcmd_cmd_tbl;", "VAR_2 = le32_to_cpu(VAR_1->frame->dcmd.VAR_2);", "trace_megasas_handle_dcmd(VAR_1->index, VAR_2);", "VAR_3 = megasas_map_dcmd(VAR_0, VAR_1);", "...
[ 0, 1, 0, 0, 0, 0, 1, 1, 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 ...
14,778
static int64_t alloc_clusters_imrt(BlockDriverState *bs, int cluster_count, uint16_t **refcount_table, int64_t *imrt_nb_clusters, int64_t *first_free_cluster) { BDRVQcowS...
true
qemu
7453c96b78c2b09aa72924f933bb9616e5474194
static int64_t alloc_clusters_imrt(BlockDriverState *bs, int cluster_count, uint16_t **refcount_table, int64_t *imrt_nb_clusters, int64_t *first_free_cluster) { BDRVQcowS...
{ "code": [ " uint16_t **refcount_table,", " if (!(*refcount_table)[cluster]) {", " (*refcount_table)[cluster + i] = 1;", " if (!(*refcount_table)[cluster]) {" ], "line_no": [ 5, 39, 115, 39 ] }
static int64_t FUNC_0(BlockDriverState *bs, int cluster_count, uint16_t **refcount_table, int64_t *imrt_nb_clusters, int64_t *first_free_cluster) { BDRVQcowState *s = bs-...
[ "static int64_t FUNC_0(BlockDriverState *bs,\nint cluster_count,\nuint16_t **refcount_table,\nint64_t *imrt_nb_clusters,\nint64_t *first_free_cluster)\n{", "BDRVQcowState *s = bs->opaque;", "int64_t cluster = *first_free_cluster, i;", "bool first_gap = true;", "int VAR_0;", "int VAR_1;", "for (VAR_0 = 0...
[ 1, 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, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
14,779
static uint64_t grlib_apbuart_read(void *opaque, target_phys_addr_t addr, unsigned size) { UART *uart = opaque; addr &= 0xff; /* Unit registers */ switch (addr) { case DATA_OFFSET: case DATA_OFFSET + 3: /* when only one byte read */ ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t grlib_apbuart_read(void *opaque, target_phys_addr_t addr, unsigned size) { UART *uart = opaque; addr &= 0xff; switch (addr) { case DATA_OFFSET: case DATA_OFFSET + 3: return uart_pop(uart); case STATUS_OFFS...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { UART *uart = opaque; addr &= 0xff; switch (addr) { case DATA_OFFSET: case DATA_OFFSET + 3: return uart_pop(uart); case STATUS_OFFSET: ...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "UART *uart = opaque;", "addr &= 0xff;", "switch (addr) {", "case DATA_OFFSET:\ncase DATA_OFFSET + 3:\nreturn uart_pop(uart);", "case STATUS_OFFSET:\nreturn uart->status;", "case CONTROL_OFFSET:\nreturn uart->control...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 17 ], [ 19, 21, 23 ], [ 27, 31 ], [ 35, 37 ], [ 41, 45 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 57 ] ]
14,780
av_cold void ff_rv34dsp_init(RV34DSPContext *c, DSPContext* dsp) { c->rv34_inv_transform = rv34_inv_transform_noround_c; c->rv34_inv_transform_dc = rv34_inv_transform_dc_noround_c; c->rv34_idct_add = rv34_idct_add_c; c->rv34_idct_dc_add = rv34_idct_dc_add_c; if (HAVE_NEON) ff...
false
FFmpeg
507dce2536fea4b78a9f4973f77e1fa20cfe1b81
av_cold void ff_rv34dsp_init(RV34DSPContext *c, DSPContext* dsp) { c->rv34_inv_transform = rv34_inv_transform_noround_c; c->rv34_inv_transform_dc = rv34_inv_transform_dc_noround_c; c->rv34_idct_add = rv34_idct_add_c; c->rv34_idct_dc_add = rv34_idct_dc_add_c; if (HAVE_NEON) ff...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(RV34DSPContext *c, DSPContext* dsp) { c->rv34_inv_transform = rv34_inv_transform_noround_c; c->rv34_inv_transform_dc = rv34_inv_transform_dc_noround_c; c->rv34_idct_add = rv34_idct_add_c; c->rv34_idct_dc_add = rv34_idct_dc_add_c; if (HAVE_NEON) ff_rv34dsp_...
[ "av_cold void FUNC_0(RV34DSPContext *c, DSPContext* dsp) {", "c->rv34_inv_transform = rv34_inv_transform_noround_c;", "c->rv34_inv_transform_dc = rv34_inv_transform_dc_noround_c;", "c->rv34_idct_add = rv34_idct_add_c;", "c->rv34_idct_dc_add = rv34_idct_dc_add_c;", "if (HAVE_NEON)\nff_rv34dsp_init_ne...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21 ], [ 23 ] ]
14,782
static void memory_region_add_subregion_common(MemoryRegion *mr, hwaddr offset, MemoryRegion *subregion) { MemoryRegion *other; memory_region_transaction_begin(); assert(!subregion->parent); memory_r...
false
qemu
0598701a4947ddbc19391e008cf753f8f22f3c25
static void memory_region_add_subregion_common(MemoryRegion *mr, hwaddr offset, MemoryRegion *subregion) { MemoryRegion *other; memory_region_transaction_begin(); assert(!subregion->parent); memory_r...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, MemoryRegion *VAR_2) { MemoryRegion *other; memory_region_transaction_begin(); assert(!VAR_2->parent); memory_region_ref(VAR_2); VAR_2->pare...
[ "static void FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nMemoryRegion *VAR_2)\n{", "MemoryRegion *other;", "memory_region_transaction_begin();", "assert(!VAR_2->parent);", "memory_region_ref(VAR_2);", "VAR_2->parent = VAR_0;", "VAR_2->addr = VAR_1;", "QTAILQ_FOREACH(other, &VAR_0->subregions, subregio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39 ], [ 41 ], [ 43 ], [ 45, 47, 49, 51, 53, 55,...
14,783
qcrypto_block_luks_open(QCryptoBlock *block, QCryptoBlockOpenOptions *options, QCryptoBlockReadFunc readfunc, void *opaque, unsigned int flags, Error **errp) { QCryptoBlockLUKS *luks; ...
false
qemu
e4a3507e86a1ef1453d603031bca27d5ac4cff3c
qcrypto_block_luks_open(QCryptoBlock *block, QCryptoBlockOpenOptions *options, QCryptoBlockReadFunc readfunc, void *opaque, unsigned int flags, Error **errp) { QCryptoBlockLUKS *luks; ...
{ "code": [], "line_no": [] }
FUNC_0(QCryptoBlock *VAR_0, QCryptoBlockOpenOptions *VAR_1, QCryptoBlockReadFunc VAR_2, void *VAR_3, unsigned int VAR_4, Error **VAR_5) { QCryptoBlockLUKS *luks; Error *local_err = NUL...
[ "FUNC_0(QCryptoBlock *VAR_0,\nQCryptoBlockOpenOptions *VAR_1,\nQCryptoBlockReadFunc VAR_2,\nvoid *VAR_3,\nunsigned int VAR_4,\nError **VAR_5)\n{", "QCryptoBlockLUKS *luks;", "Error *local_err = NULL;", "int VAR_6 = 0;", "size_t i;", "ssize_t rv;", "uint8_t *masterkey = NULL;", "size_t masterkeylen;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
14,784
static void rng_egd_free_requests(RngEgd *s) { GSList *i; for (i = s->parent.requests; i; i = i->next) { rng_egd_free_request(i->data); } g_slist_free(s->parent.requests); s->parent.requests = NULL; }
false
qemu
9f14b0add1dcdbfa2ee61051d068211fb0a1fcc9
static void rng_egd_free_requests(RngEgd *s) { GSList *i; for (i = s->parent.requests; i; i = i->next) { rng_egd_free_request(i->data); } g_slist_free(s->parent.requests); s->parent.requests = NULL; }
{ "code": [], "line_no": [] }
static void FUNC_0(RngEgd *VAR_0) { GSList *i; for (i = VAR_0->parent.requests; i; i = i->next) { rng_egd_free_request(i->data); } g_slist_free(VAR_0->parent.requests); VAR_0->parent.requests = NULL; }
[ "static void FUNC_0(RngEgd *VAR_0)\n{", "GSList *i;", "for (i = VAR_0->parent.requests; i; i = i->next) {", "rng_egd_free_request(i->data);", "}", "g_slist_free(VAR_0->parent.requests);", "VAR_0->parent.requests = NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ] ]
14,785
static void test_qemu_strtoull_octal(void) { const char *str = "0123"; char f = 'X'; const char *endptr = &f; uint64_t res = 999; int err; err = qemu_strtoull(str, &endptr, 8, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0123); g_assert(endptr == str + s...
false
qemu
bc7c08a2c375acb7ae4d433054415588b176d34c
static void test_qemu_strtoull_octal(void) { const char *str = "0123"; char f = 'X'; const char *endptr = &f; uint64_t res = 999; int err; err = qemu_strtoull(str, &endptr, 8, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0123); g_assert(endptr == str + s...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { const char *VAR_0 = "0123"; char VAR_1 = 'X'; const char *VAR_2 = &VAR_1; uint64_t res = 999; int VAR_3; VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 8, &res); g_assert_cmpint(VAR_3, ==, 0); g_assert_cmpint(res, ==, 0123); g_assert(VAR_2 == VAR_0 + st...
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = \"0123\";", "char VAR_1 = 'X';", "const char *VAR_2 = &VAR_1;", "uint64_t res = 999;", "int VAR_3;", "VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 8, &res);", "g_assert_cmpint(VAR_3, ==, 0);", "g_assert_cmpint(res, ==, 0123);", "g_assert(VAR_2 == VAR_0 +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
14,786
static inline void gen_ins(DisasContext *s, int ot) { gen_string_movl_A0_EDI(s); gen_op_movl_T0_0(); gen_op_st_T0_A0(ot + s->mem_index); gen_op_mov_TN_reg(OT_WORD, 1, R_EDX); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[1]); tcg_gen_andi_i32(cpu_tmp2_i32, cpu_tmp2_i32, 0xffff); tcg_gen_h...
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static inline void gen_ins(DisasContext *s, int ot) { gen_string_movl_A0_EDI(s); gen_op_movl_T0_0(); gen_op_st_T0_A0(ot + s->mem_index); gen_op_mov_TN_reg(OT_WORD, 1, R_EDX); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[1]); tcg_gen_andi_i32(cpu_tmp2_i32, cpu_tmp2_i32, 0xffff); tcg_gen_h...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { gen_string_movl_A0_EDI(VAR_0); gen_op_movl_T0_0(); gen_op_st_T0_A0(VAR_1 + VAR_0->mem_index); gen_op_mov_TN_reg(OT_WORD, 1, R_EDX); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[1]); tcg_gen_andi_i32(cpu_tmp2_i32, cpu_tmp2_i32, 0xffff...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "gen_string_movl_A0_EDI(VAR_0);", "gen_op_movl_T0_0();", "gen_op_st_T0_A0(VAR_1 + VAR_0->mem_index);", "gen_op_mov_TN_reg(OT_WORD, 1, R_EDX);", "tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[1]);", "tcg_gen_andi_i32(cpu_tmp2_i32, cpu_tmp2_i32, 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 ...
14,787
static void vapic_map_rom_writable(VAPICROMState *s) { target_phys_addr_t rom_paddr = s->rom_state_paddr & ROM_BLOCK_MASK; MemoryRegionSection section; MemoryRegion *as; size_t rom_size; uint8_t *ram; as = sysbus_address_space(&s->busdev); if (s->rom_mapped_writable) { m...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void vapic_map_rom_writable(VAPICROMState *s) { target_phys_addr_t rom_paddr = s->rom_state_paddr & ROM_BLOCK_MASK; MemoryRegionSection section; MemoryRegion *as; size_t rom_size; uint8_t *ram; as = sysbus_address_space(&s->busdev); if (s->rom_mapped_writable) { m...
{ "code": [], "line_no": [] }
static void FUNC_0(VAPICROMState *VAR_0) { target_phys_addr_t rom_paddr = VAR_0->rom_state_paddr & ROM_BLOCK_MASK; MemoryRegionSection section; MemoryRegion *as; size_t rom_size; uint8_t *ram; as = sysbus_address_space(&VAR_0->busdev); if (VAR_0->rom_mapped_writable) { m...
[ "static void FUNC_0(VAPICROMState *VAR_0)\n{", "target_phys_addr_t rom_paddr = VAR_0->rom_state_paddr & ROM_BLOCK_MASK;", "MemoryRegionSection section;", "MemoryRegion *as;", "size_t rom_size;", "uint8_t *ram;", "as = sysbus_address_space(&VAR_0->busdev);", "if (VAR_0->rom_mapped_writable) {", "memo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 51 ], [ 53 ], [ 55 ], [ 59, 61 ], [...
14,790
void block_job_resume(BlockJob *job) { job->paused = false; block_job_iostatus_reset(job); if (job->co && !job->busy) { qemu_coroutine_enter(job->co, NULL); } }
false
qemu
751ebd76e654bd1e65da08ecf694325282b4cfcc
void block_job_resume(BlockJob *job) { job->paused = false; block_job_iostatus_reset(job); if (job->co && !job->busy) { qemu_coroutine_enter(job->co, NULL); } }
{ "code": [], "line_no": [] }
void FUNC_0(BlockJob *VAR_0) { VAR_0->paused = false; block_job_iostatus_reset(VAR_0); if (VAR_0->co && !VAR_0->busy) { qemu_coroutine_enter(VAR_0->co, NULL); } }
[ "void FUNC_0(BlockJob *VAR_0)\n{", "VAR_0->paused = false;", "block_job_iostatus_reset(VAR_0);", "if (VAR_0->co && !VAR_0->busy) {", "qemu_coroutine_enter(VAR_0->co, NULL);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
14,792
static inline void vring_used_write(VirtQueue *vq, VRingUsedElem *uelem, int i) { hwaddr pa; virtio_tswap32s(vq->vdev, &uelem->id); virtio_tswap32s(vq->vdev, &uelem->len); pa = vq->vring.used + offsetof(VRingUsed, ring[i]); address_space_write(&address_spac...
false
qemu
8607f5c3072caeebbe0217df28651fffd3a79fd9
static inline void vring_used_write(VirtQueue *vq, VRingUsedElem *uelem, int i) { hwaddr pa; virtio_tswap32s(vq->vdev, &uelem->id); virtio_tswap32s(vq->vdev, &uelem->len); pa = vq->vring.used + offsetof(VRingUsed, ring[i]); address_space_write(&address_spac...
{ "code": [], "line_no": [] }
static inline void FUNC_0(VirtQueue *VAR_0, VRingUsedElem *VAR_1, int VAR_2) { hwaddr pa; virtio_tswap32s(VAR_0->vdev, &VAR_1->id); virtio_tswap32s(VAR_0->vdev, &VAR_1->len); pa = VAR_0->vring.used + offsetof(VRingUsed, ring[VAR_2]); address_space_write(&ad...
[ "static inline void FUNC_0(VirtQueue *VAR_0, VRingUsedElem *VAR_1,\nint VAR_2)\n{", "hwaddr pa;", "virtio_tswap32s(VAR_0->vdev, &VAR_1->id);", "virtio_tswap32s(VAR_0->vdev, &VAR_1->len);", "pa = VAR_0->vring.used + offsetof(VRingUsed, ring[VAR_2]);", "address_space_write(&address_space_memory, pa, MEMTXAT...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ] ]
14,793
static int writev_f(BlockBackend *blk, int argc, char **argv) { struct timeval t1, t2; int Cflag = 0, qflag = 0; int c, cnt; char *buf; int64_t offset; /* Some compilers get confused and warn if this is not initialized. */ int total = 0; int nr_iov; int pattern = 0xcd; ...
false
qemu
b062ad86dcd33ab39be5060b0655d8e13834b167
static int writev_f(BlockBackend *blk, int argc, char **argv) { struct timeval t1, t2; int Cflag = 0, qflag = 0; int c, cnt; char *buf; int64_t offset; int total = 0; int nr_iov; int pattern = 0xcd; QEMUIOVector qiov; while ((c = getopt(argc, argv, "CqP:")) != ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2) { struct timeval VAR_3, VAR_4; int VAR_5 = 0, VAR_6 = 0; int VAR_7, VAR_8; char *VAR_9; int64_t offset; int VAR_10 = 0; int VAR_11; int VAR_12 = 0xcd; QEMUIOVector qiov; while ((VAR_7 = getopt(VAR_...
[ "static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)\n{", "struct timeval VAR_3, VAR_4;", "int VAR_5 = 0, VAR_6 = 0;", "int VAR_7, VAR_8;", "char *VAR_9;", "int64_t offset;", "int VAR_10 = 0;", "int VAR_11;", "int VAR_12 = 0xcd;", "QEMUIOVector qiov;", "while ((VAR_7 = getopt(VAR_1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
14,794
static int cow_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVCowState *s = bs->opaque; struct cow_header_v2 cow_header; int bitmap_size; int64_t size; int ret; /* see if it is a cow image */ ret = bdrv_pread(bs->file, 0, &cow_header,...
false
qemu
550830f9351291c585c963204ad9127998b1c1ce
static int cow_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVCowState *s = bs->opaque; struct cow_header_v2 cow_header; int bitmap_size; int64_t size; int ret; ret = bdrv_pread(bs->file, 0, &cow_header, sizeof(cow_header)); if ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVCowState *s = VAR_0->opaque; struct cow_header_v2 VAR_4; int VAR_5; int64_t size; int VAR_6; VAR_6 = bdrv_pread(VAR_0->file, 0, &VAR_4, sizeof(VAR_4)); if (VAR_6 < 0)...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVCowState *s = VAR_0->opaque;", "struct cow_header_v2 VAR_4;", "int VAR_5;", "int64_t size;", "int VAR_6;", "VAR_6 = bdrv_pread(VAR_0->file, 0, &VAR_4, sizeof(VAR_4));", "if (VAR_6 < 0) {", "goto fail;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51,...
14,795
static void pc_compat_2_2(MachineState *machine) { pc_compat_2_3(machine); rsdp_in_ram = false; machine->suppress_vmdesc = true; }
false
qemu
7102fa7073b2cefb33ab4012a11f15fbf297a74b
static void pc_compat_2_2(MachineState *machine) { pc_compat_2_3(machine); rsdp_in_ram = false; machine->suppress_vmdesc = true; }
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { pc_compat_2_3(VAR_0); rsdp_in_ram = false; VAR_0->suppress_vmdesc = true; }
[ "static void FUNC_0(MachineState *VAR_0)\n{", "pc_compat_2_3(VAR_0);", "rsdp_in_ram = false;", "VAR_0->suppress_vmdesc = true;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
14,796
void spapr_core_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { MachineState *machine = MACHINE(OBJECT(hotplug_dev)); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(OBJECT(hotplug_dev)); sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(hotplug_dev)); ...
false
qemu
df3c286c53ac51e7267f2761c7a0c62e11b6e815
void spapr_core_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { MachineState *machine = MACHINE(OBJECT(hotplug_dev)); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(OBJECT(hotplug_dev)); sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(hotplug_dev)); ...
{ "code": [], "line_no": [] }
void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1, Error **VAR_2) { MachineState *machine = MACHINE(OBJECT(VAR_0)); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(OBJECT(VAR_0)); sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(VAR_0)); int VAR_3 = max_cpus / smp_thre...
[ "void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1,\nError **VAR_2)\n{", "MachineState *machine = MACHINE(OBJECT(VAR_0));", "sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(OBJECT(VAR_0));", "sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(VAR_0));", "int VAR_3 = max_cpus / smp_threads;", "int VAR_4;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
14,797
static void scsi_disk_emulate_unmap(SCSIDiskReq *r, uint8_t *inbuf) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint8_t *p = inbuf; int len = r->req.cmd.xfer; UnmapCBData *data; /* Reject ANCHOR=1. */ if (r->req.cmd.buf[1] & 0x1) { goto invalid_field; ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void scsi_disk_emulate_unmap(SCSIDiskReq *r, uint8_t *inbuf) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint8_t *p = inbuf; int len = r->req.cmd.xfer; UnmapCBData *data; if (r->req.cmd.buf[1] & 0x1) { goto invalid_field; } if (len < 8) ...
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIDiskReq *VAR_0, uint8_t *VAR_1) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0->req.dev); uint8_t *p = VAR_1; int VAR_2 = VAR_0->req.cmd.xfer; UnmapCBData *data; if (VAR_0->req.cmd.buf[1] & 0x1) { goto invalid_field; } if (VAR_2 < ...
[ "static void FUNC_0(SCSIDiskReq *VAR_0, uint8_t *VAR_1)\n{", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0->req.dev);", "uint8_t *p = VAR_1;", "int VAR_2 = VAR_0->req.cmd.xfer;", "UnmapCBData *data;", "if (VAR_0->req.cmd.buf[1] & 0x1) {", "goto invalid_field;", "}", "if (VAR_2 < 8) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
14,798
int bdrv_is_encrypted(BlockDriverState *bs) { if (bs->backing_hd && bs->backing_hd->encrypted) return 1; return bs->encrypted; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int bdrv_is_encrypted(BlockDriverState *bs) { if (bs->backing_hd && bs->backing_hd->encrypted) return 1; return bs->encrypted; }
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0) { if (VAR_0->backing_hd && VAR_0->backing_hd->encrypted) return 1; return VAR_0->encrypted; }
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "if (VAR_0->backing_hd && VAR_0->backing_hd->encrypted)\nreturn 1;", "return VAR_0->encrypted;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
14,799
void eth_get_protocols(const struct iovec *iov, int iovcnt, bool *isip4, bool *isip6, bool *isudp, bool *istcp, size_t *l3hdr_off, size_t *l4hdr_off, size_t *l5hdr_off, eth_ip6...
false
qemu
2c5e564f4d8309ee0f47029ab461c4c4459f43c4
void eth_get_protocols(const struct iovec *iov, int iovcnt, bool *isip4, bool *isip6, bool *isudp, bool *istcp, size_t *l3hdr_off, size_t *l4hdr_off, size_t *l5hdr_off, eth_ip6...
{ "code": [], "line_no": [] }
void FUNC_0(const struct iovec *VAR_0, int VAR_1, bool *VAR_2, bool *VAR_3, bool *VAR_4, bool *VAR_5, size_t *VAR_6, size_t *VAR_7, size_t *VAR_8, eth_ip6_hdr_info *VAR_9, ...
[ "void FUNC_0(const struct iovec *VAR_0, int VAR_1,\nbool *VAR_2, bool *VAR_3,\nbool *VAR_4, bool *VAR_5,\nsize_t *VAR_6,\nsize_t *VAR_7,\nsize_t *VAR_8,\neth_ip6_hdr_info *VAR_9,\neth_ip4_hdr_info *VAR_10,\neth_l4_hdr_info *VAR_11)\n{", "int VAR_12;", "bool fragment = false;", "size_t l2hdr_len = eth_get_l2_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 63 ...
14,800
static void apic_bus_deliver(const uint32_t *deliver_bitmask, uint8_t delivery_mode, uint8_t vector_num, uint8_t polarity, uint8_t trigger_mode) { APICState *apic_iter; switch (delivery_mode) { case APIC_DM_L...
false
qemu
b09ea7d55cfab5a75912bb56ed1fcd757604a759
static void apic_bus_deliver(const uint32_t *deliver_bitmask, uint8_t delivery_mode, uint8_t vector_num, uint8_t polarity, uint8_t trigger_mode) { APICState *apic_iter; switch (delivery_mode) { case APIC_DM_L...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint32_t *VAR_0, uint8_t VAR_1, uint8_t VAR_2, uint8_t VAR_3, uint8_t VAR_4) { APICState *apic_iter; switch (VAR_1) { case APIC_DM_LOWPRI: { ...
[ "static void FUNC_0(const uint32_t *VAR_0,\nuint8_t VAR_1,\nuint8_t VAR_2, uint8_t VAR_3,\nuint8_t VAR_4)\n{", "APICState *apic_iter;", "switch (VAR_1) {", "case APIC_DM_LOWPRI:\n{", "int VAR_5, VAR_6;", "VAR_6 = -1;", "for(VAR_5 = 0; VAR_5 < MAX_APIC_WORDS; VAR_5++) {", "if (VAR_0[VAR_5]) {", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
14,802
static void print_sdp(void) { char sdp[16384]; int i; AVFormatContext **avc = av_malloc(sizeof(*avc) * nb_output_files); if (!avc) exit_program(1); for (i = 0; i < nb_output_files; i++) avc[i] = output_files[i]->ctx; av_sdp_create(avc, nb_output_files, sdp, sizeof(sd...
false
FFmpeg
1c169782cae6c5c430ff62e7d7272dc9d0e8d527
static void print_sdp(void) { char sdp[16384]; int i; AVFormatContext **avc = av_malloc(sizeof(*avc) * nb_output_files); if (!avc) exit_program(1); for (i = 0; i < nb_output_files; i++) avc[i] = output_files[i]->ctx; av_sdp_create(avc, nb_output_files, sdp, sizeof(sd...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { char VAR_0[16384]; int VAR_1; AVFormatContext **avc = av_malloc(sizeof(*avc) * nb_output_files); if (!avc) exit_program(1); for (VAR_1 = 0; VAR_1 < nb_output_files; VAR_1++) avc[VAR_1] = output_files[VAR_1]->ctx; av_sdp_create(avc, nb_outpu...
[ "static void FUNC_0(void)\n{", "char VAR_0[16384];", "int VAR_1;", "AVFormatContext **avc = av_malloc(sizeof(*avc) * nb_output_files);", "if (!avc)\nexit_program(1);", "for (VAR_1 = 0; VAR_1 < nb_output_files; VAR_1++)", "avc[VAR_1] = output_files[VAR_1]->ctx;", "av_sdp_create(avc, nb_output_files, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
14,803
void memory_region_iommu_replay(MemoryRegion *mr, Notifier *n, bool is_write) { hwaddr addr, granularity; IOMMUTLBEntry iotlb; granularity = memory_region_iommu_get_min_page_size(mr); for (addr = 0; addr < memory_region_size(mr); addr += granularity) { iotlb = mr->iommu_ops->translate(...
false
qemu
cdb3081269347fd9271fd1b7a9df312e2953bdd9
void memory_region_iommu_replay(MemoryRegion *mr, Notifier *n, bool is_write) { hwaddr addr, granularity; IOMMUTLBEntry iotlb; granularity = memory_region_iommu_get_min_page_size(mr); for (addr = 0; addr < memory_region_size(mr); addr += granularity) { iotlb = mr->iommu_ops->translate(...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, Notifier *VAR_1, bool VAR_2) { hwaddr addr, granularity; IOMMUTLBEntry iotlb; granularity = memory_region_iommu_get_min_page_size(VAR_0); for (addr = 0; addr < memory_region_size(VAR_0); addr += granularity) { iotlb = VAR_0->iommu_ops->translate(VAR_0, ...
[ "void FUNC_0(MemoryRegion *VAR_0, Notifier *VAR_1, bool VAR_2)\n{", "hwaddr addr, granularity;", "IOMMUTLBEntry iotlb;", "granularity = memory_region_iommu_get_min_page_size(VAR_0);", "for (addr = 0; addr < memory_region_size(VAR_0); addr += granularity) {", "iotlb = VAR_0->iommu_ops->translate(VAR_0, add...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
14,804
static void pic_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned int size) { struct etrax_pic *fs = opaque; D(printf("%s addr=%x val=%x\n", __func__, addr, value)); if (addr == R_RW_MASK) { fs->regs[R_RW_MASK] = value; pic_update(fs); ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void pic_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned int size) { struct etrax_pic *fs = opaque; D(printf("%s addr=%x val=%x\n", __func__, addr, value)); if (addr == R_RW_MASK) { fs->regs[R_RW_MASK] = value; pic_update(fs); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned int VAR_3) { struct etrax_pic *VAR_4 = VAR_0; D(printf("%s VAR_1=%x val=%x\n", __func__, VAR_1, VAR_2)); if (VAR_1 == R_RW_MASK) { VAR_4->regs[R_RW_MASK] = VAR_2; pic_update(VAR_...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{", "struct etrax_pic *VAR_4 = VAR_0;", "D(printf(\"%s VAR_1=%x val=%x\\n\", __func__, VAR_1, VAR_2));", "if (VAR_1 == R_RW_MASK) {", "VAR_4->regs[R_RW_MASK] = VAR_2;", "pic_update(VAR_4);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
14,805
static int pci_cmd646_ide_initfn(PCIDevice *dev) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev); uint8_t *pci_conf = d->dev.config; qemu_irq *irq; int i; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_CMD); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_CMD_646); pci_con...
false
qemu
c04ca0756da8087e15579915d55fdca816c9ef4e
static int pci_cmd646_ide_initfn(PCIDevice *dev) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev); uint8_t *pci_conf = d->dev.config; qemu_irq *irq; int i; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_CMD); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_CMD_646); pci_con...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { PCIIDEState *d = DO_UPCAST(PCIIDEState, VAR_0, VAR_0); uint8_t *pci_conf = d->VAR_0.config; qemu_irq *irq; int VAR_1; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_CMD); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_CMD_646); pci_conf[P...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "PCIIDEState *d = DO_UPCAST(PCIIDEState, VAR_0, VAR_0);", "uint8_t *pci_conf = d->VAR_0.config;", "qemu_irq *irq;", "int VAR_1;", "pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_CMD);", "pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_CMD_646);", "pci_conf[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ...
14,806
uint8_t *smbios_get_table(size_t *length) { smbios_validate_table(); *length = smbios_entries_len; return smbios_entries; }
false
qemu
fc3b32958a80bca13309e2695de07b43dd788421
uint8_t *smbios_get_table(size_t *length) { smbios_validate_table(); *length = smbios_entries_len; return smbios_entries; }
{ "code": [], "line_no": [] }
uint8_t *FUNC_0(size_t *length) { smbios_validate_table(); *length = smbios_entries_len; return smbios_entries; }
[ "uint8_t *FUNC_0(size_t *length)\n{", "smbios_validate_table();", "*length = smbios_entries_len;", "return smbios_entries;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
14,807
int qemu_fsdev_add(QemuOpts *opts) { struct FsTypeListEntry *fsle; int i; if (qemu_opts_id(opts) == NULL) { fprintf(stderr, "fsdev: No id specified\n"); return -1; } for (i = 0; i < ARRAY_SIZE(FsTypes); i++) { if (strcmp(FsTypes[i].name, qemu_opt_get(opts, "fsty...
false
qemu
9ce56db6f0de81fd81972029073ff8008830bc02
int qemu_fsdev_add(QemuOpts *opts) { struct FsTypeListEntry *fsle; int i; if (qemu_opts_id(opts) == NULL) { fprintf(stderr, "fsdev: No id specified\n"); return -1; } for (i = 0; i < ARRAY_SIZE(FsTypes); i++) { if (strcmp(FsTypes[i].name, qemu_opt_get(opts, "fsty...
{ "code": [], "line_no": [] }
int FUNC_0(QemuOpts *VAR_0) { struct FsTypeListEntry *VAR_1; int VAR_2; if (qemu_opts_id(VAR_0) == NULL) { fprintf(stderr, "fsdev: No id specified\n"); return -1; } for (VAR_2 = 0; VAR_2 < ARRAY_SIZE(FsTypes); VAR_2++) { if (strcmp(FsTypes[VAR_2].name, qemu_opt_...
[ "int FUNC_0(QemuOpts *VAR_0)\n{", "struct FsTypeListEntry *VAR_1;", "int VAR_2;", "if (qemu_opts_id(VAR_0) == NULL) {", "fprintf(stderr, \"fsdev: No id specified\\n\");", "return -1;", "}", "for (VAR_2 = 0; VAR_2 < ARRAY_SIZE(FsTypes); VAR_2++) {", "if (strcmp(FsTypes[VAR_2].name, qemu_opt_get(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], ...
14,809
build_madt(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info, VirtAcpiCpuInfo *cpuinfo) { int madt_start = table_data->len; const MemMapEntry *memmap = guest_info->memmap; const int *irqmap = guest_info->irqmap; AcpiMultipleApicTable *madt; AcpiMadtGenericDistributor *g...
false
qemu
b92ad3949bc9cacd1652b4e07e7f6003b9e512af
build_madt(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info, VirtAcpiCpuInfo *cpuinfo) { int madt_start = table_data->len; const MemMapEntry *memmap = guest_info->memmap; const int *irqmap = guest_info->irqmap; AcpiMultipleApicTable *madt; AcpiMadtGenericDistributor *g...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2, VirtAcpiCpuInfo *VAR_3) { int VAR_4 = VAR_0->len; const MemMapEntry *VAR_5 = VAR_2->VAR_5; const int *VAR_6 = VAR_2->VAR_6; AcpiMultipleApicTable *madt; AcpiMadtGenericDistributor *gicd; AcpiMadtGenericMsiFrame *gic_ms...
[ "FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2,\nVirtAcpiCpuInfo *VAR_3)\n{", "int VAR_4 = VAR_0->len;", "const MemMapEntry *VAR_5 = VAR_2->VAR_5;", "const int *VAR_6 = VAR_2->VAR_6;", "AcpiMultipleApicTable *madt;", "AcpiMadtGenericDistributor *gicd;", "AcpiMadtGenericMsiFrame *gic_msi;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...