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
16,573
void ff_read_frame_flush(AVFormatContext *s) { AVStream *st; int i, j; flush_packet_queue(s); s->cur_st = NULL; /* for each stream, reset read state */ for(i = 0; i < s->nb_streams; i++) { st = s->streams[i]; if (st->parser) { av_parser_close(st->par...
false
FFmpeg
27c7ca9c12bb42d5c44d46f24cd970469d0ef55a
void ff_read_frame_flush(AVFormatContext *s) { AVStream *st; int i, j; flush_packet_queue(s); s->cur_st = NULL; for(i = 0; i < s->nb_streams; i++) { st = s->streams[i]; if (st->parser) { av_parser_close(st->parser); st->parser = NULL; ...
{ "code": [], "line_no": [] }
void FUNC_0(AVFormatContext *VAR_0) { AVStream *st; int VAR_1, VAR_2; flush_packet_queue(VAR_0); VAR_0->cur_st = NULL; for(VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) { st = VAR_0->streams[VAR_1]; if (st->parser) { av_parser_close(st->parser); ...
[ "void FUNC_0(AVFormatContext *VAR_0)\n{", "AVStream *st;", "int VAR_1, VAR_2;", "flush_packet_queue(VAR_0);", "VAR_0->cur_st = NULL;", "for(VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) {", "st = VAR_0->streams[VAR_1];", "if (st->parser) {", "av_parser_close(st->parser);", "st->parser = NULL;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ], [ 57...
16,574
void av_register_input_format(AVInputFormat *format) { AVInputFormat **p = &first_iformat; while (*p != NULL) p = &(*p)->next; *p = format; format->next = NULL; }
false
FFmpeg
4b1f5e5090abed6c618c8ba380cd7d28d140f867
void av_register_input_format(AVInputFormat *format) { AVInputFormat **p = &first_iformat; while (*p != NULL) p = &(*p)->next; *p = format; format->next = NULL; }
{ "code": [], "line_no": [] }
void FUNC_0(AVInputFormat *VAR_0) { AVInputFormat **p = &first_iformat; while (*p != NULL) p = &(*p)->next; *p = VAR_0; VAR_0->next = NULL; }
[ "void FUNC_0(AVInputFormat *VAR_0)\n{", "AVInputFormat **p = &first_iformat;", "while (*p != NULL)\np = &(*p)->next;", "*p = VAR_0;", "VAR_0->next = NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ] ]
16,575
static void set_http_options(AVFormatContext *s, AVDictionary **options, HLSContext *c) { const char *proto = avio_find_protocol_name(s->filename); int http_base_proto = !av_strcasecmp(proto, "http") || !av_strcasecmp(proto, "https"); if (c->method) { av_dict_set(options, "method", c->method,...
false
FFmpeg
0c0aef1caf0cb5dd3b294f9fff923175036bd985
static void set_http_options(AVFormatContext *s, AVDictionary **options, HLSContext *c) { const char *proto = avio_find_protocol_name(s->filename); int http_base_proto = !av_strcasecmp(proto, "http") || !av_strcasecmp(proto, "https"); if (c->method) { av_dict_set(options, "method", c->method,...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVDictionary **VAR_1, HLSContext *VAR_2) { const char *VAR_3 = avio_find_protocol_name(VAR_0->filename); int VAR_4 = !av_strcasecmp(VAR_3, "http") || !av_strcasecmp(VAR_3, "https"); if (VAR_2->method) { av_dict_set(VAR_1, "method", VAR_2->method, 0);...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVDictionary **VAR_1, HLSContext *VAR_2)\n{", "const char *VAR_3 = avio_find_protocol_name(VAR_0->filename);", "int VAR_4 = !av_strcasecmp(VAR_3, \"http\") || !av_strcasecmp(VAR_3, \"https\");", "if (VAR_2->method) {", "av_dict_set(VAR_1, \"method\", VAR_2->method...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
16,576
static int mov_read_ctts(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; unsigned int i, entries; get_byte(pb); /* version */ get_be24(pb); /* flags */ entries = get_be32(pb); dprintf(c->f...
false
FFmpeg
6a63ff19b6a7fe3bc32c7fb4a62fca8f65786432
static int mov_read_ctts(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; unsigned int i, entries; get_byte(pb); get_be24(pb); entries = get_be32(pb); dprintf(c->fc, "track[%i].ctts.entri...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; unsigned int VAR_3, VAR_4; get_byte(VAR_1); get_be24(VAR_1); VAR_4 = get_be32(VAR_1); dprintf(VAR_0->fc,...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "MOVStreamContext *sc = st->priv_data;", "unsigned int VAR_3, VAR_4;", "get_byte(VAR_1);", "get_be24(VAR_1);", "VAR_4 = get_be32(VAR_1);", "dprintf(VAR_0->fc, ...
[ 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 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
16,579
int cpu_cris_handle_mmu_fault (CPUState *env, target_ulong address, int rw, int mmu_idx, int is_softmmu) { struct cris_mmu_result res; int prot, miss; int r = -1; target_ulong phy; D(printf ("%s addr=%x pc=%x rw=%x\n", __func__, address, env->pc, rw)); miss = cris_mmu_tran...
false
qemu
58aebb946acff82c62383f350cab593e55cc13dc
int cpu_cris_handle_mmu_fault (CPUState *env, target_ulong address, int rw, int mmu_idx, int is_softmmu) { struct cris_mmu_result res; int prot, miss; int r = -1; target_ulong phy; D(printf ("%s addr=%x pc=%x rw=%x\n", __func__, address, env->pc, rw)); miss = cris_mmu_tran...
{ "code": [], "line_no": [] }
int FUNC_0 (CPUState *VAR_0, target_ulong VAR_1, int VAR_2, int VAR_3, int VAR_4) { struct cris_mmu_result VAR_5; int VAR_6, VAR_7; int VAR_8 = -1; target_ulong phy; D(printf ("%s addr=%x pc=%x VAR_2=%x\n", __func__, VAR_1, VAR_0->pc, VAR_2)); VAR_7 = cris_mmu_translate(&V...
[ "int FUNC_0 (CPUState *VAR_0, target_ulong VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{", "struct cris_mmu_result VAR_5;", "int VAR_6, VAR_7;", "int VAR_8 = -1;", "target_ulong phy;", "D(printf (\"%s addr=%x pc=%x VAR_2=%x\\n\", __func__, VAR_1, VAR_0->pc, VAR_2));", "VAR_7 = cris_mmu_translate(&VAR_5, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29, 31, 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 61 ...
16,580
static av_always_inline void rv40_adaptive_loop_filter(uint8_t *src, const int step, const int stride, const int dmode, const int lim_q1, const int lim_p1, const int alpha, ...
false
FFmpeg
d8edf1b515ae9fbcea2103305241d130c16e1003
static av_always_inline void rv40_adaptive_loop_filter(uint8_t *src, const int step, const int stride, const int dmode, const int lim_q1, const int lim_p1, const int alpha, ...
{ "code": [], "line_no": [] }
static av_always_inline void FUNC_0(uint8_t *src, const int step, const int stride, const int dmode, const int lim_q1, const int lim_p1, const int alpha, ...
[ "static av_always_inline void FUNC_0(uint8_t *src, const int step,\nconst int stride, const int dmode,\nconst int lim_q1, const int lim_p1,\nconst int alpha,\nconst int beta, const int beta2,\nconst int chroma, const int edge)\n{", "int VAR_0[4], VAR_1[4], VAR_2[4], VAR_3[4];", "int VAR_4 = 0, VAR_5 = 0, VAR_6 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ...
16,581
void framebuffer_update_display( DisplayState *ds, MemoryRegion *address_space, target_phys_addr_t base, int cols, /* Width in pixels. */ int rows, /* Height in pixels. */ int src_width, /* Length of source line, in bytes. */ int dest_row_pitch, /* Bytes between adjacent horizontal...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void framebuffer_update_display( DisplayState *ds, MemoryRegion *address_space, target_phys_addr_t base, int cols, int rows, int src_width, int dest_row_pitch, int dest_col_pitch, int invalidate, drawfn fn, void *opaque, int *first_row, int *last_r...
{ "code": [], "line_no": [] }
void FUNC_0( DisplayState *VAR_0, MemoryRegion *VAR_1, target_phys_addr_t VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, drawfn VAR_9, void *VAR_10, int *VAR_11, int *VAR_12 ) { target_phys_addr_t src_len; uint8...
[ "void FUNC_0(\nDisplayState *VAR_0,\nMemoryRegion *VAR_1,\ntarget_phys_addr_t VAR_2,\nint VAR_3,\nint VAR_4,\nint VAR_5,\nint VAR_6,\nint VAR_7,\nint VAR_8,\ndrawfn VAR_9,\nvoid *VAR_10,\nint *VAR_11,\nint *VAR_12 )\n{", "target_phys_addr_t src_len;", "uint8_t *dest;", "uint8_t *src;", "uint8_t *src_base;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
16,583
build_mcfg(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info) { AcpiTableMcfg *mcfg; const MemMapEntry *memmap = guest_info->memmap; int len = sizeof(*mcfg) + sizeof(mcfg->allocation[0]); mcfg = acpi_data_push(table_data, len); mcfg->allocation[0].address = cpu_to_le64(memmap[VIR...
false
qemu
37ad223c515da2fe9f1c679768cb5ccaa42e57e1
build_mcfg(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info) { AcpiTableMcfg *mcfg; const MemMapEntry *memmap = guest_info->memmap; int len = sizeof(*mcfg) + sizeof(mcfg->allocation[0]); mcfg = acpi_data_push(table_data, len); mcfg->allocation[0].address = cpu_to_le64(memmap[VIR...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2) { AcpiTableMcfg *mcfg; const MemMapEntry *VAR_3 = VAR_2->VAR_3; int VAR_4 = sizeof(*mcfg) + sizeof(mcfg->allocation[0]); mcfg = acpi_data_push(VAR_0, VAR_4); mcfg->allocation[0].address = cpu_to_le64(VAR_3[VIRT_PCIE_ECAM].base); ...
[ "FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2)\n{", "AcpiTableMcfg *mcfg;", "const MemMapEntry *VAR_3 = VAR_2->VAR_3;", "int VAR_4 = sizeof(*mcfg) + sizeof(mcfg->allocation[0]);", "mcfg = acpi_data_push(VAR_0, VAR_4);", "mcfg->allocation[0].address = cpu_to_le64(VAR_3[VIRT_PCIE_ECAM].base);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ] ]
16,586
static void bdrv_raw_init(void) { bdrv_register(&bdrv_raw); bdrv_register(&bdrv_host_device); }
false
qemu
84a12e6648444f517055138a7d7f25a22d7e1029
static void bdrv_raw_init(void) { bdrv_register(&bdrv_raw); bdrv_register(&bdrv_host_device); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { bdrv_register(&bdrv_raw); bdrv_register(&bdrv_host_device); }
[ "static void FUNC_0(void)\n{", "bdrv_register(&bdrv_raw);", "bdrv_register(&bdrv_host_device);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
16,587
void helper_lock(void) { spin_lock(&global_cpu_lock); }
false
qemu
677ef6230b603571ae05125db469f7b4c8912a77
void helper_lock(void) { spin_lock(&global_cpu_lock); }
{ "code": [], "line_no": [] }
void FUNC_0(void) { spin_lock(&global_cpu_lock); }
[ "void FUNC_0(void)\n{", "spin_lock(&global_cpu_lock);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
16,588
static void handle_input(VirtIODevice *vdev, VirtQueue *vq) { VirtIORNG *vrng = DO_UPCAST(VirtIORNG, vdev, vdev); size_t size; size = pop_an_elem(vrng); if (size) { rng_backend_request_entropy(vrng->rng, size, chr_read, vrng); } }
false
qemu
904d6f588063fb5ad2b61998acdf1e73fb465067
static void handle_input(VirtIODevice *vdev, VirtQueue *vq) { VirtIORNG *vrng = DO_UPCAST(VirtIORNG, vdev, vdev); size_t size; size = pop_an_elem(vrng); if (size) { rng_backend_request_entropy(vrng->rng, size, chr_read, vrng); } }
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1) { VirtIORNG *vrng = DO_UPCAST(VirtIORNG, VAR_0, VAR_0); size_t size; size = pop_an_elem(vrng); if (size) { rng_backend_request_entropy(vrng->rng, size, chr_read, vrng); } }
[ "static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{", "VirtIORNG *vrng = DO_UPCAST(VirtIORNG, VAR_0, VAR_0);", "size_t size;", "size = pop_an_elem(vrng);", "if (size) {", "rng_backend_request_entropy(vrng->rng, size, chr_read, vrng);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
16,589
bool vfio_blacklist_opt_rom(VFIOPCIDevice *vdev) { PCIDevice *pdev = &vdev->pdev; uint16_t vendor_id, device_id; int count = 0; vendor_id = pci_get_word(pdev->config + PCI_VENDOR_ID); device_id = pci_get_word(pdev->config + PCI_DEVICE_ID); while (count < ARRAY_SIZE(romblacklist)) { ...
false
qemu
056dfcb695cde3c62b7dc1d5ed6d2e38b3a73e29
bool vfio_blacklist_opt_rom(VFIOPCIDevice *vdev) { PCIDevice *pdev = &vdev->pdev; uint16_t vendor_id, device_id; int count = 0; vendor_id = pci_get_word(pdev->config + PCI_VENDOR_ID); device_id = pci_get_word(pdev->config + PCI_DEVICE_ID); while (count < ARRAY_SIZE(romblacklist)) { ...
{ "code": [], "line_no": [] }
bool FUNC_0(VFIOPCIDevice *vdev) { PCIDevice *pdev = &vdev->pdev; uint16_t vendor_id, device_id; int VAR_0 = 0; vendor_id = pci_get_word(pdev->config + PCI_VENDOR_ID); device_id = pci_get_word(pdev->config + PCI_DEVICE_ID); while (VAR_0 < ARRAY_SIZE(romblacklist)) { if (rombl...
[ "bool FUNC_0(VFIOPCIDevice *vdev)\n{", "PCIDevice *pdev = &vdev->pdev;", "uint16_t vendor_id, device_id;", "int VAR_0 = 0;", "vendor_id = pci_get_word(pdev->config + PCI_VENDOR_ID);", "device_id = pci_get_word(pdev->config + PCI_DEVICE_ID);", "while (VAR_0 < ARRAY_SIZE(romblacklist)) {", "if (romblack...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
16,590
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) { if (devfn < 0) { ...
false
qemu
fb23162885f7fd8cf7334bed22c25ac32c7d8b9d
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) { if (devfn < 0) { ...
{ "code": [], "line_no": [] }
static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) { if (devfn < 0) { for(dev...
[ "static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus,\nconst char *name, int devfn,\nPCIConfigReadFunc *config_read,\nPCIConfigWriteFunc *config_write)\n{", "if (devfn < 0) {", "for(devfn = bus->devfn_min ; devfn < 256; devfn += 8) {", "if (!bus->devices[devfn])\ngoto found;", "}", "return NULL;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
16,591
static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *src = avpkt->data; int buf_size = avpkt->size; PCMDecode *s = avctx->priv_data; int sample_size, c, n, ret, samples_per_block; uint8_t *...
false
FFmpeg
00dd9a6d6a5c3cc209082023595354a81aff9bb9
static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *src = avpkt->data; int buf_size = avpkt->size; PCMDecode *s = avctx->priv_data; int sample_size, c, n, ret, samples_per_block; uint8_t *...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; PCMDecode *s = VAR_0->priv_data; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; uint8_t *samples; int32_t *d...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "PCMDecode *s = VAR_0->priv_data;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "uint8_t *samples;", "int32_t *dst_int32_t;", "VAR_6 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
16,592
void bmdma_cmd_writeb(BMDMAState *bm, uint32_t val) { #ifdef DEBUG_IDE printf("%s: 0x%08x\n", __func__, val); #endif /* Ignore writes to SSBM if it keeps the old value */ if ((val & BM_CMD_START) != (bm->cmd & BM_CMD_START)) { if (!(val & BM_CMD_START)) { /* * We ...
false
qemu
922453bca6a927bb527068ae8679d587cfa45dbc
void bmdma_cmd_writeb(BMDMAState *bm, uint32_t val) { #ifdef DEBUG_IDE printf("%s: 0x%08x\n", __func__, val); #endif if ((val & BM_CMD_START) != (bm->cmd & BM_CMD_START)) { if (!(val & BM_CMD_START)) { if (bm->bus->dma->aiocb) { ...
{ "code": [], "line_no": [] }
void FUNC_0(BMDMAState *VAR_0, uint32_t VAR_1) { #ifdef DEBUG_IDE printf("%s: 0x%08x\n", __func__, VAR_1); #endif if ((VAR_1 & BM_CMD_START) != (VAR_0->cmd & BM_CMD_START)) { if (!(VAR_1 & BM_CMD_START)) { if (VAR_0->bus->dma->aiocb) { ...
[ "void FUNC_0(BMDMAState *VAR_0, uint32_t VAR_1)\n{", "#ifdef DEBUG_IDE\nprintf(\"%s: 0x%08x\\n\", __func__, VAR_1);", "#endif\nif ((VAR_1 & BM_CMD_START) != (VAR_0->cmd & BM_CMD_START)) {", "if (!(VAR_1 & BM_CMD_START)) {", "if (VAR_0->bus->dma->aiocb) {", "qemu_aio_flush();", "assert(VAR_0->bus->dma->a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 15 ], [ 17 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63, 65 ], [ 67 ], [ 69 ], [ 71 ], [ 75 ], [...
16,593
static void virtio_9p_get_config(VirtIODevice *vdev, uint8_t *config) { struct virtio_9p_config *cfg; V9fsState *s = to_virtio_9p(vdev); cfg = g_malloc0(sizeof(struct virtio_9p_config) + s->tag_len); stw_raw(&cfg->tag_len, s->tag_len); memcpy(cfg->tag, s->tag, s->tag...
false
qemu
e9a0152ba182c5ce9929ee60f83a37b61a1d5195
static void virtio_9p_get_config(VirtIODevice *vdev, uint8_t *config) { struct virtio_9p_config *cfg; V9fsState *s = to_virtio_9p(vdev); cfg = g_malloc0(sizeof(struct virtio_9p_config) + s->tag_len); stw_raw(&cfg->tag_len, s->tag_len); memcpy(cfg->tag, s->tag, s->tag...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, uint8_t *VAR_1) { struct virtio_9p_config *VAR_2; V9fsState *s = to_virtio_9p(VAR_0); VAR_2 = g_malloc0(sizeof(struct virtio_9p_config) + s->tag_len); stw_raw(&VAR_2->tag_len, s->tag_len); memcpy(VAR_2->tag, s->tag, s->tag_len)...
[ "static void FUNC_0(VirtIODevice *VAR_0, uint8_t *VAR_1)\n{", "struct virtio_9p_config *VAR_2;", "V9fsState *s = to_virtio_9p(VAR_0);", "VAR_2 = g_malloc0(sizeof(struct virtio_9p_config) +\ns->tag_len);", "stw_raw(&VAR_2->tag_len, s->tag_len);", "memcpy(VAR_2->tag, s->tag, s->tag_len);", "memcpy(VAR_1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
16,594
static NetSocketState *net_socket_fd_init_dgram(NetClientState *peer, const char *model, const char *name, int fd, int is_connected) { struct sockaddr_in saddr; i...
false
qemu
ed6273e26fdfb94a282dbbf1234a75422c6b4c4b
static NetSocketState *net_socket_fd_init_dgram(NetClientState *peer, const char *model, const char *name, int fd, int is_connected) { struct sockaddr_in saddr; i...
{ "code": [], "line_no": [] }
static NetSocketState *FUNC_0(NetClientState *peer, const char *model, const char *name, int fd, int is_connected) { struct sockaddr_in VAR_0; int VAR_1; soc...
[ "static NetSocketState *FUNC_0(NetClientState *peer,\nconst char *model,\nconst char *name,\nint fd, int is_connected)\n{", "struct sockaddr_in VAR_0;", "int VAR_1;", "socklen_t saddr_len;", "NetClientState *nc;", "NetSocketState *s;", "if (is_connected) {", "if (getsockname(fd, (struct sockaddr *) &V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [ 63 ], [ 65 ...
16,595
static int qcow2_create2(const char *filename, int64_t total_size, const char *backing_file, const char *backing_format, int flags, size_t cluster_size, int prealloc, QEMUOptionParameter *options, int version, Error ...
false
qemu
c9fbb99d41b05acf0d7b93deb2fcdbf9047c238e
static int qcow2_create2(const char *filename, int64_t total_size, const char *backing_file, const char *backing_format, int flags, size_t cluster_size, int prealloc, QEMUOptionParameter *options, int version, Error ...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, int64_t VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, size_t VAR_5, int VAR_6, QEMUOptionParameter *VAR_7, int VAR_8, Error **VAR_9) { int VAR_10; VAR_1...
[ "static int FUNC_0(const char *VAR_0, int64_t VAR_1,\nconst char *VAR_2, const char *VAR_3,\nint VAR_4, size_t VAR_5, int VAR_6,\nQEMUOptionParameter *VAR_7, int VAR_8,\nError **VAR_9)\n{", "int VAR_10;", "VAR_10 = ffs(VAR_5) - 1;", "if (VAR_10 < MIN_CLUSTER_BITS || VAR_10 > MAX_CLUSTER_BITS ||\n(1 << VAR_10)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 15 ], [ 17 ], [ 19, 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 71 ], [ 73 ], [ 75 ], [ 77 ], [...
16,598
static void tci_out_label(TCGContext *s, TCGArg arg) { TCGLabel *label = &s->labels[arg]; if (label->has_value) { tcg_out_i(s, label->u.value); assert(label->u.value); } else { tcg_out_reloc(s, s->code_ptr, sizeof(tcg_target_ulong), arg, 0); s->code_ptr += sizeof(tcg_...
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static void tci_out_label(TCGContext *s, TCGArg arg) { TCGLabel *label = &s->labels[arg]; if (label->has_value) { tcg_out_i(s, label->u.value); assert(label->u.value); } else { tcg_out_reloc(s, s->code_ptr, sizeof(tcg_target_ulong), arg, 0); s->code_ptr += sizeof(tcg_...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGArg VAR_1) { TCGLabel *label = &VAR_0->labels[VAR_1]; if (label->has_value) { tcg_out_i(VAR_0, label->u.value); assert(label->u.value); } else { tcg_out_reloc(VAR_0, VAR_0->code_ptr, sizeof(tcg_target_ulong), VAR_1, 0); VAR_0->...
[ "static void FUNC_0(TCGContext *VAR_0, TCGArg VAR_1)\n{", "TCGLabel *label = &VAR_0->labels[VAR_1];", "if (label->has_value) {", "tcg_out_i(VAR_0, label->u.value);", "assert(label->u.value);", "} else {", "tcg_out_reloc(VAR_0, VAR_0->code_ptr, sizeof(tcg_target_ulong), VAR_1, 0);", "VAR_0->code_ptr +=...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
16,599
uint32_t lduw_le_phys(target_phys_addr_t addr) { return lduw_phys_internal(addr, DEVICE_LITTLE_ENDIAN); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
uint32_t lduw_le_phys(target_phys_addr_t addr) { return lduw_phys_internal(addr, DEVICE_LITTLE_ENDIAN); }
{ "code": [], "line_no": [] }
uint32_t FUNC_0(target_phys_addr_t addr) { return lduw_phys_internal(addr, DEVICE_LITTLE_ENDIAN); }
[ "uint32_t FUNC_0(target_phys_addr_t addr)\n{", "return lduw_phys_internal(addr, DEVICE_LITTLE_ENDIAN);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
16,600
int get_async_context_id(void) { return async_context->id; }
false
qemu
384acbf46b70edf0d2c1648aa1a92a90bcf7057d
int get_async_context_id(void) { return async_context->id; }
{ "code": [], "line_no": [] }
int FUNC_0(void) { return async_context->id; }
[ "int FUNC_0(void)\n{", "return async_context->id;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
16,601
static void piix4_pm_realize(PCIDevice *dev, Error **errp) { PIIX4PMState *s = PIIX4_PM(dev); uint8_t *pci_conf; pci_conf = dev->config; pci_conf[0x06] = 0x80; pci_conf[0x07] = 0x02; pci_conf[0x09] = 0x00; pci_conf[0x3d] = 0x01; // interrupt pin 1 /* APM */ apm_init(dev...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void piix4_pm_realize(PCIDevice *dev, Error **errp) { PIIX4PMState *s = PIIX4_PM(dev); uint8_t *pci_conf; pci_conf = dev->config; pci_conf[0x06] = 0x80; pci_conf[0x07] = 0x02; pci_conf[0x09] = 0x00; pci_conf[0x3d] = 0x01; apm_init(dev, &s->apm, apm_ctrl_changed...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { PIIX4PMState *s = PIIX4_PM(VAR_0); uint8_t *pci_conf; pci_conf = VAR_0->config; pci_conf[0x06] = 0x80; pci_conf[0x07] = 0x02; pci_conf[0x09] = 0x00; pci_conf[0x3d] = 0x01; apm_init(VAR_0, &s->apm, apm_ctrl_changed,...
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "PIIX4PMState *s = PIIX4_PM(VAR_0);", "uint8_t *pci_conf;", "pci_conf = VAR_0->config;", "pci_conf[0x06] = 0x80;", "pci_conf[0x07] = 0x02;", "pci_conf[0x09] = 0x00;", "pci_conf[0x3d] = 0x01;", "apm_init(VAR_0, &s->apm, apm_ctrl_changed, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 29 ], [ 35 ], [ 37 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 61 ], ...
16,603
static always_inline void gen_qemu_ldg (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I64); tcg_gen_qemu_ld64(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_g, t0, tmp); tcg_temp_free(tmp); }
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static always_inline void gen_qemu_ldg (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I64); tcg_gen_qemu_ld64(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_g, t0, tmp); tcg_temp_free(tmp); }
{ "code": [], "line_no": [] }
static always_inline void FUNC_0 (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I64); tcg_gen_qemu_ld64(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_g, t0, tmp); tcg_temp_free(tmp); }
[ "static always_inline void FUNC_0 (TCGv t0, TCGv t1, int flags)\n{", "TCGv tmp = tcg_temp_new(TCG_TYPE_I64);", "tcg_gen_qemu_ld64(tmp, t1, flags);", "tcg_gen_helper_1_1(helper_memory_to_g, t0, tmp);", "tcg_temp_free(tmp);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
16,604
static void register_subpage(MemoryRegionSection *section) { subpage_t *subpage; target_phys_addr_t base = section->offset_within_address_space & TARGET_PAGE_MASK; MemoryRegionSection *existing = phys_page_find(base >> TARGET_PAGE_BITS); MemoryRegionSection subsection = { .offset_...
false
qemu
ac1970fbe8ad5a70174f462109ac0f6c7bf1bc43
static void register_subpage(MemoryRegionSection *section) { subpage_t *subpage; target_phys_addr_t base = section->offset_within_address_space & TARGET_PAGE_MASK; MemoryRegionSection *existing = phys_page_find(base >> TARGET_PAGE_BITS); MemoryRegionSection subsection = { .offset_...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryRegionSection *VAR_0) { subpage_t *subpage; target_phys_addr_t base = VAR_0->offset_within_address_space & TARGET_PAGE_MASK; MemoryRegionSection *existing = phys_page_find(base >> TARGET_PAGE_BITS); MemoryRegionSection subsection = { .offset_within_address...
[ "static void FUNC_0(MemoryRegionSection *VAR_0)\n{", "subpage_t *subpage;", "target_phys_addr_t base = VAR_0->offset_within_address_space\n& TARGET_PAGE_MASK;", "MemoryRegionSection *existing = phys_page_find(base >> TARGET_PAGE_BITS);", "MemoryRegionSection subsection = {", ".offset_within_address_space ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
16,605
static void do_fp_st(DisasContext *s, int srcidx, TCGv_i64 tcg_addr, int size) { /* This writes the bottom N bits of a 128 bit wide vector to memory */ TCGv_i64 tmp = tcg_temp_new_i64(); tcg_gen_ld_i64(tmp, cpu_env, fp_reg_offset(srcidx, MO_64)); if (size < 4) { tcg_gen_qemu_st_i64(tmp, tc...
false
qemu
90e496386fe7fd32c189561f846b7913f95b8cf4
static void do_fp_st(DisasContext *s, int srcidx, TCGv_i64 tcg_addr, int size) { TCGv_i64 tmp = tcg_temp_new_i64(); tcg_gen_ld_i64(tmp, cpu_env, fp_reg_offset(srcidx, MO_64)); if (size < 4) { tcg_gen_qemu_st_i64(tmp, tcg_addr, get_mem_index(s), MO_TE + size); } else { TCGv_i...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv_i64 VAR_2, int VAR_3) { TCGv_i64 tmp = tcg_temp_new_i64(); tcg_gen_ld_i64(tmp, cpu_env, fp_reg_offset(VAR_1, MO_64)); if (VAR_3 < 4) { tcg_gen_qemu_st_i64(tmp, VAR_2, get_mem_index(VAR_0), MO_TE + VAR_3); } else { TCGv_...
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv_i64 VAR_2, int VAR_3)\n{", "TCGv_i64 tmp = tcg_temp_new_i64();", "tcg_gen_ld_i64(tmp, cpu_env, fp_reg_offset(VAR_1, MO_64));", "if (VAR_3 < 4) {", "tcg_gen_qemu_st_i64(tmp, VAR_2, get_mem_index(VAR_0), MO_TE + VAR_3);", "} else {", "TCGv_i64 tcg_h...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
16,606
bool cpu_physical_memory_is_io(target_phys_addr_t phys_addr) { MemoryRegionSection *section; section = phys_page_find(phys_addr >> TARGET_PAGE_BITS); return !(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr)); }
false
qemu
ac1970fbe8ad5a70174f462109ac0f6c7bf1bc43
bool cpu_physical_memory_is_io(target_phys_addr_t phys_addr) { MemoryRegionSection *section; section = phys_page_find(phys_addr >> TARGET_PAGE_BITS); return !(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr)); }
{ "code": [], "line_no": [] }
bool FUNC_0(target_phys_addr_t phys_addr) { MemoryRegionSection *section; section = phys_page_find(phys_addr >> TARGET_PAGE_BITS); return !(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr)); }
[ "bool FUNC_0(target_phys_addr_t phys_addr)\n{", "MemoryRegionSection *section;", "section = phys_page_find(phys_addr >> TARGET_PAGE_BITS);", "return !(memory_region_is_ram(section->mr) ||\nmemory_region_is_romd(section->mr));", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17 ] ]
16,607
void qemu_start_warp_timer(void) { int64_t clock; int64_t deadline; if (!use_icount) { return; } /* Nothing to do if the VM is stopped: QEMU_CLOCK_VIRTUAL timers * do not fire, so computing the deadline does not make sense. */ if (!runstate_is_running()) { ...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
void qemu_start_warp_timer(void) { int64_t clock; int64_t deadline; if (!use_icount) { return; } if (!runstate_is_running()) { return; } if (!replay_checkpoint(CHECKPOINT_CLOCK_WARP_START)) { return; } if (!all_cpu_threads_...
{ "code": [], "line_no": [] }
void FUNC_0(void) { int64_t clock; int64_t deadline; if (!use_icount) { return; } if (!runstate_is_running()) { return; } if (!replay_checkpoint(CHECKPOINT_CLOCK_WARP_START)) { return; } if (!all_cpu_threads_idle()) { ...
[ "void FUNC_0(void)\n{", "int64_t clock;", "int64_t deadline;", "if (!use_icount) {", "return;", "}", "if (!runstate_is_running()) {", "return;", "}", "if (!replay_checkpoint(CHECKPOINT_CLOCK_WARP_START)) {", "return;", "}", "if (!all_cpu_threads_idle()) {", "return;", "}", "if (qtest_e...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ], [ 57 ], [ 63 ], [ 65...
16,608
sdhci_writefn(void *opaque, hwaddr off, uint64_t val, unsigned sz) { SDHCIState *s = (SDHCIState *)opaque; SDHCI_GET_CLASS(s)->mem_write(s, off, val, sz); }
false
qemu
d368ba4376b2c1c24175c74b3733b8fe64dbe8a6
sdhci_writefn(void *opaque, hwaddr off, uint64_t val, unsigned sz) { SDHCIState *s = (SDHCIState *)opaque; SDHCI_GET_CLASS(s)->mem_write(s, off, val, sz); }
{ "code": [], "line_no": [] }
FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { SDHCIState *s = (SDHCIState *)VAR_0; SDHCI_GET_CLASS(s)->mem_write(s, VAR_1, VAR_2, VAR_3); }
[ "FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3)\n{", "SDHCIState *s = (SDHCIState *)VAR_0;", "SDHCI_GET_CLASS(s)->mem_write(s, VAR_1, VAR_2, VAR_3);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
16,609
static void rtas_set_xive(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { struct ics_state *ics = spapr->icp->ics; uint32_t nr, server, priority; if ((nargs != 3) || (nret != 1)) { ...
false
qemu
210b580b106fa798149e28aa13c66b325a43204e
static void rtas_set_xive(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { struct ics_state *ics = spapr->icp->ics; uint32_t nr, server, priority; if ((nargs != 3) || (nret != 1)) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1, uint32_t VAR_2, target_ulong VAR_3, uint32_t VAR_4, target_ulong VAR_5) { struct ics_state *VAR_6 = VAR_0->icp->VAR_6; uint32_t nr, server, priority; if ((VAR_2 != 3) || (VAR_4 != 1)) { ...
[ "static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, target_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{", "struct ics_state *VAR_6 = VAR_0->icp->VAR_6;", "uint32_t nr, server, priority;", "if ((VAR_2 != 3) || (VAR_4 != 1)) {", "rtas_st(VAR_5, 0, -3);", "return;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ] ]
16,610
static void test_validate_fail_list(TestInputVisitorData *data, const void *unused) { UserDefOneList *head = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(data, "[ { 'string': 'string0', 'integer': 42 }, { 'string': 'string1', 'integer': 43 }, {...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_validate_fail_list(TestInputVisitorData *data, const void *unused) { UserDefOneList *head = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(data, "[ { 'string': 'string0', 'integer': 42 }, { 'string': 'string1', 'integer': 43 }, {...
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { UserDefOneList *head = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(VAR_0, "[ { 'string': 'string0', 'integer': 42 }, { 'string': 'string1', 'integer': 43 }, { 'string': 'stri...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "UserDefOneList *head = NULL;", "Error *err = NULL;", "Visitor *v;", "v = validate_test_init(VAR_0, \"[ { 'string': 'string0', 'integer': 42 }, { 'string': 'string1', 'integer': 43 }, { 'string': 'string2', 'integer': 44, 'extra': 'gg...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
16,611
static int migrate_fd_cleanup(MigrationState *s) { int ret = 0; qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); if (s->file) { DPRINTF("closing file\n"); if (qemu_fclose(s->file) != 0) { ret = -1; } s->file = NULL; } else { if (s->m...
false
qemu
a6d34a949c3546404d403bda61a5e37431b4a6ad
static int migrate_fd_cleanup(MigrationState *s) { int ret = 0; qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); if (s->file) { DPRINTF("closing file\n"); if (qemu_fclose(s->file) != 0) { ret = -1; } s->file = NULL; } else { if (s->m...
{ "code": [], "line_no": [] }
static int FUNC_0(MigrationState *VAR_0) { int VAR_1 = 0; qemu_set_fd_handler2(VAR_0->fd, NULL, NULL, NULL, NULL); if (VAR_0->file) { DPRINTF("closing file\n"); if (qemu_fclose(VAR_0->file) != 0) { VAR_1 = -1; } VAR_0->file = NULL; } else { ...
[ "static int FUNC_0(MigrationState *VAR_0)\n{", "int VAR_1 = 0;", "qemu_set_fd_handler2(VAR_0->fd, NULL, NULL, NULL, NULL);", "if (VAR_0->file) {", "DPRINTF(\"closing file\\n\");", "if (qemu_fclose(VAR_0->file) != 0) {", "VAR_1 = -1;", "}", "VAR_0->file = NULL;", "} else {", "if (VAR_0->mon) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49...
16,612
static bool all_cpu_threads_idle(void) { CPUState *env; for (env = first_cpu; env != NULL; env = env->next_cpu) { if (!cpu_thread_is_idle(env)) { return false; } } return true; }
true
qemu
ab33fcda9f96b9195dfb3fcf5bd9bb5383caeaea
static bool all_cpu_threads_idle(void) { CPUState *env; for (env = first_cpu; env != NULL; env = env->next_cpu) { if (!cpu_thread_is_idle(env)) { return false; } } return true; }
{ "code": [ "static bool all_cpu_threads_idle(void)" ], "line_no": [ 1 ] }
static bool FUNC_0(void) { CPUState *env; for (env = first_cpu; env != NULL; env = env->next_cpu) { if (!cpu_thread_is_idle(env)) { return false; } } return true; }
[ "static bool FUNC_0(void)\n{", "CPUState *env;", "for (env = first_cpu; env != NULL; env = env->next_cpu) {", "if (!cpu_thread_is_idle(env)) {", "return false;", "}", "}", "return true;", "}" ]
[ 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
16,613
static int vpc_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) { BDRVVPCState *s = (BDRVVPCState *)bs->opaque; VHDFooter *footer = (VHDFooter *) s->footer_buf; if (cpu_to_be32(footer->type) != VHD_FIXED) { bdi->cluster_size = s->block_size; } bdi->unallocated_blocks_are_zero ...
true
qemu
0d4cc3e715f5794077895345577725539afe81eb
static int vpc_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) { BDRVVPCState *s = (BDRVVPCState *)bs->opaque; VHDFooter *footer = (VHDFooter *) s->footer_buf; if (cpu_to_be32(footer->type) != VHD_FIXED) { bdi->cluster_size = s->block_size; } bdi->unallocated_blocks_are_zero ...
{ "code": [ " if (cpu_to_be32(footer->type) != VHD_FIXED) {" ], "line_no": [ 11 ] }
static int FUNC_0(BlockDriverState *VAR_0, BlockDriverInfo *VAR_1) { BDRVVPCState *s = (BDRVVPCState *)VAR_0->opaque; VHDFooter *footer = (VHDFooter *) s->footer_buf; if (cpu_to_be32(footer->type) != VHD_FIXED) { VAR_1->cluster_size = s->block_size; } VAR_1->unallocated_blocks_are...
[ "static int FUNC_0(BlockDriverState *VAR_0, BlockDriverInfo *VAR_1)\n{", "BDRVVPCState *s = (BDRVVPCState *)VAR_0->opaque;", "VHDFooter *footer = (VHDFooter *) s->footer_buf;", "if (cpu_to_be32(footer->type) != VHD_FIXED) {", "VAR_1->cluster_size = s->block_size;", "}", "VAR_1->unallocated_blocks_are_ze...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
16,615
static int read_header_openmpt(AVFormatContext *s) { AVStream *st; OpenMPTContext *openmpt = s->priv_data; int64_t size = avio_size(s->pb); if (!size) return AVERROR_INVALIDDATA; char *buf = av_malloc(size); int ret; if (!buf) return AVERROR(ENOMEM); size =...
true
FFmpeg
bd8201566d754384105923bb1fb3bb3a5c08cc8b
static int read_header_openmpt(AVFormatContext *s) { AVStream *st; OpenMPTContext *openmpt = s->priv_data; int64_t size = avio_size(s->pb); if (!size) return AVERROR_INVALIDDATA; char *buf = av_malloc(size); int ret; if (!buf) return AVERROR(ENOMEM); size =...
{ "code": [ " if (!size)" ], "line_no": [ 11 ] }
static int FUNC_0(AVFormatContext *VAR_0) { AVStream *st; OpenMPTContext *openmpt = VAR_0->priv_data; int64_t size = avio_size(VAR_0->pb); if (!size) return AVERROR_INVALIDDATA; char *VAR_1 = av_malloc(size); int VAR_2; if (!VAR_1) return AVERROR(ENOMEM); s...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVStream *st;", "OpenMPTContext *openmpt = VAR_0->priv_data;", "int64_t size = avio_size(VAR_0->pb);", "if (!size)\nreturn AVERROR_INVALIDDATA;", "char *VAR_1 = av_malloc(size);", "int VAR_2;", "if (!VAR_1)\nreturn AVERROR(ENOMEM);", "size = avio_read...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51 ], [...
16,616
void helper_mtc0_hwrena(CPUMIPSState *env, target_ulong arg1) { env->CP0_HWREna = arg1 & 0x0000000F; }
true
qemu
d279279e2b5cd40dbcc863fb66a695990f304077
void helper_mtc0_hwrena(CPUMIPSState *env, target_ulong arg1) { env->CP0_HWREna = arg1 & 0x0000000F; }
{ "code": [ " env->CP0_HWREna = arg1 & 0x0000000F;" ], "line_no": [ 5 ] }
void FUNC_0(CPUMIPSState *VAR_0, target_ulong VAR_1) { VAR_0->CP0_HWREna = VAR_1 & 0x0000000F; }
[ "void FUNC_0(CPUMIPSState *VAR_0, target_ulong VAR_1)\n{", "VAR_0->CP0_HWREna = VAR_1 & 0x0000000F;", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
16,617
void qemu_cpu_kick(void *_env) { CPUState *env = _env; qemu_cond_broadcast(env->halt_cond); qemu_thread_signal(env->thread, SIG_IPI); }
true
qemu
aa2c364b4cf2fae4d9c8acf53ee4436ed533902d
void qemu_cpu_kick(void *_env) { CPUState *env = _env; qemu_cond_broadcast(env->halt_cond); qemu_thread_signal(env->thread, SIG_IPI); }
{ "code": [ " qemu_thread_signal(env->thread, SIG_IPI);" ], "line_no": [ 9 ] }
void FUNC_0(void *VAR_0) { CPUState *env = VAR_0; qemu_cond_broadcast(env->halt_cond); qemu_thread_signal(env->thread, SIG_IPI); }
[ "void FUNC_0(void *VAR_0)\n{", "CPUState *env = VAR_0;", "qemu_cond_broadcast(env->halt_cond);", "qemu_thread_signal(env->thread, SIG_IPI);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
16,618
iscsi_inquiry_cb(struct iscsi_context *iscsi, int status, void *command_data, void *opaque) { struct IscsiTask *itask = opaque; struct scsi_task *task = command_data; struct scsi_inquiry_standard *inq; if (status != 0) { itask->status = 1; itask->complete = 1...
true
qemu
e829b0bb054ed3389e5b22dad61875e51674e629
iscsi_inquiry_cb(struct iscsi_context *iscsi, int status, void *command_data, void *opaque) { struct IscsiTask *itask = opaque; struct scsi_task *task = command_data; struct scsi_inquiry_standard *inq; if (status != 0) { itask->status = 1; itask->complete = 1...
{ "code": [ " struct IscsiTask *itask = opaque;", " struct scsi_task *task = command_data;", " if (status != 0) {", " itask->status = 1;", " itask->complete = 1;", " scsi_free_scsi_task(task);", " itask->status = 1;", " itask->complete = ...
FUNC_0(struct iscsi_context *VAR_0, int VAR_1, void *VAR_2, void *VAR_3) { struct IscsiTask *VAR_4 = VAR_3; struct scsi_task *VAR_5 = VAR_2; struct scsi_inquiry_standard *VAR_6; if (VAR_1 != 0) { VAR_4->VAR_1 = 1; VAR_4->complete = 1; scsi_free_scsi_...
[ "FUNC_0(struct iscsi_context *VAR_0, int VAR_1, void *VAR_2,\nvoid *VAR_3)\n{", "struct IscsiTask *VAR_4 = VAR_3;", "struct scsi_task *VAR_5 = VAR_2;", "struct scsi_inquiry_standard *VAR_6;", "if (VAR_1 != 0) {", "VAR_4->VAR_1 = 1;", "VAR_4->complete = 1;", "scsi_free_scsi_task(VAR_5);", "return;"...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
16,619
static inline uint8_t mipsdsp_lshift8(uint8_t a, uint8_t s, CPUMIPSState *env) { uint8_t sign; uint8_t discard; if (s == 0) { return a; } else { sign = (a >> 7) & 0x01; if (sign != 0) { discard = (((0x01 << (8 - s)) - 1) << s) | ((a >...
true
qemu
29851ee7c8bd3fb8542e21cd0270c73132590350
static inline uint8_t mipsdsp_lshift8(uint8_t a, uint8_t s, CPUMIPSState *env) { uint8_t sign; uint8_t discard; if (s == 0) { return a; } else { sign = (a >> 7) & 0x01; if (sign != 0) { discard = (((0x01 << (8 - s)) - 1) << s) | ((a >...
{ "code": [ " uint8_t sign;", " if (s == 0) {", " return a;", " } else {", " sign = (a >> 7) & 0x01;", " if (sign != 0) {", " discard = (((0x01 << (8 - s)) - 1) << s) |", " ((a >> (6 - (s - 1))) & ((0x01 << s) - 1));", "...
static inline uint8_t FUNC_0(uint8_t a, uint8_t s, CPUMIPSState *env) { uint8_t sign; uint8_t discard; if (s == 0) { return a; } else { sign = (a >> 7) & 0x01; if (sign != 0) { discard = (((0x01 << (8 - s)) - 1) << s) | ((a >> (6 - (s...
[ "static inline uint8_t FUNC_0(uint8_t a, uint8_t s, CPUMIPSState *env)\n{", "uint8_t sign;", "uint8_t discard;", "if (s == 0) {", "return a;", "} else {", "sign = (a >> 7) & 0x01;", "if (sign != 0) {", "discard = (((0x01 << (8 - s)) - 1) << s) |\n((a >> (6 - (s - 1))) & ((0x01 << s) - 1));", "} el...
[ 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
16,620
static void dwt_encode97_float(DWTContext *s, float *t) { int lev, w = s->linelen[s->ndeclevels-1][0]; float *line = s->f_linebuf; line += 5; for (lev = s->ndeclevels-1; lev >= 0; lev--){ int lh = s->linelen[lev][0], lv = s->linelen[lev][1], mh = s->mod...
true
FFmpeg
1c495b0bf690995c45f79f4f19500921e14ec78a
static void dwt_encode97_float(DWTContext *s, float *t) { int lev, w = s->linelen[s->ndeclevels-1][0]; float *line = s->f_linebuf; line += 5; for (lev = s->ndeclevels-1; lev >= 0; lev--){ int lh = s->linelen[lev][0], lv = s->linelen[lev][1], mh = s->mod...
{ "code": [ " t[w*lp + j] = F_LFTG_X * l[i] / 2;", " t[w*lp + j] = F_LFTG_K * l[i] / 2;", " t[w*j + lp] = F_LFTG_X * l[i] / 2;", " t[w*j + lp] = F_LFTG_K * l[i] / 2;" ], "line_no": [ 55, 59, 89, 93 ] }
static void FUNC_0(DWTContext *VAR_0, float *VAR_1) { int VAR_2, VAR_3 = VAR_0->linelen[VAR_0->ndeclevels-1][0]; float *VAR_4 = VAR_0->f_linebuf; VAR_4 += 5; for (VAR_2 = VAR_0->ndeclevels-1; VAR_2 >= 0; VAR_2--){ int VAR_5 = VAR_0->linelen[VAR_2][0], VAR_6 = VAR_0-...
[ "static void FUNC_0(DWTContext *VAR_0, float *VAR_1)\n{", "int VAR_2,\nVAR_3 = VAR_0->linelen[VAR_0->ndeclevels-1][0];", "float *VAR_4 = VAR_0->f_linebuf;", "VAR_4 += 5;", "for (VAR_2 = VAR_0->ndeclevels-1; VAR_2 >= 0; VAR_2--){", "int VAR_5 = VAR_0->linelen[VAR_2][0],\nVAR_6 = VAR_0->linelen[VAR_2][1],\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19, 21, 23, 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
16,621
static void taihu_405ep_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const cha...
true
qemu
e98ccb3fbba94d0b2165caabf7aeee370d4ce900
static void taihu_405ep_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const cha...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5) { char *VAR_6; qemu_irq *pi...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5)\n{", "char *VAR_6;", "qemu_irq *pic;", "ram_addr_t bios_offset;", "target_phys_addr_t ram_bases[2], ram_sizes[2];", "long VAR_7;", "target_ulong kernel_base, initrd_b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ...
16,622
int ff_jpeg2000_init_component(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty, Jpeg2000QuantStyle *qntsty, int cbps, int dx, int dy, AVCodecContext *avctx) { uint8_t log2_band_prec...
false
FFmpeg
10306e9c5fcc28bd9310a9b38f21540e9e1433e9
int ff_jpeg2000_init_component(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty, Jpeg2000QuantStyle *qntsty, int cbps, int dx, int dy, AVCodecContext *avctx) { uint8_t log2_band_prec...
{ "code": [], "line_no": [] }
int FUNC_0(Jpeg2000Component *VAR_0, Jpeg2000CodingStyle *VAR_1, Jpeg2000QuantStyle *VAR_2, int VAR_3, int VAR_4, int VAR_5, AVCodecContext *VAR_6) { uint8_t log2_band_prec_width, log2_b...
[ "int FUNC_0(Jpeg2000Component *VAR_0,\nJpeg2000CodingStyle *VAR_1,\nJpeg2000QuantStyle *VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nAVCodecContext *VAR_6)\n{", "uint8_t log2_band_prec_width, log2_band_prec_height;", "int VAR_7, VAR_8, VAR_9 = 0, VAR_10, VAR_11, VAR_12;", "uint32_t csize;", "if (!VAR_1->nresle...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33, 35, 37 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57 ], [...
16,623
static void bonito_writel(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIBonitoState *s = opaque; uint32_t saddr; int reset = 0; saddr = (addr - BONITO_REGBASE) >> 2; DPRINTF("bonito_writel "TARGET_FMT_plx" val %x saddr %x\n", addr, val,...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void bonito_writel(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIBonitoState *s = opaque; uint32_t saddr; int reset = 0; saddr = (addr - BONITO_REGBASE) >> 2; DPRINTF("bonito_writel "TARGET_FMT_plx" val %x saddr %x\n", addr, val,...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { PCIBonitoState *s = VAR_0; uint32_t saddr; int VAR_4 = 0; saddr = (VAR_1 - BONITO_REGBASE) >> 2; DPRINTF("FUNC_0 "TARGET_FMT_plx" VAR_2 %x saddr %x\n", VAR_1, VAR_2, saddr...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PCIBonitoState *s = VAR_0;", "uint32_t saddr;", "int VAR_4 = 0;", "saddr = (VAR_1 - BONITO_REGBASE) >> 2;", "DPRINTF(\"FUNC_0 \"TARGET_FMT_plx\" VAR_2 %x saddr %x\\n\", VAR_1, VAR_2, saddr);", "switch (sadd...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69 ...
16,625
static int aacPlus_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { aacPlusAudioContext *s = avctx->priv_data; int32_t *input_buffer = (int32_t *)frame->data[0]; int ret; if ((ret = ff_alloc_packet2(avctx, pkt, s->max_out...
false
FFmpeg
bcaf64b605442e1622d16da89d4ec0e7730b8a8c
static int aacPlus_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { aacPlusAudioContext *s = avctx->priv_data; int32_t *input_buffer = (int32_t *)frame->data[0]; int ret; if ((ret = ff_alloc_packet2(avctx, pkt, s->max_out...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { aacPlusAudioContext *s = VAR_0->priv_data; int32_t *input_buffer = (int32_t *)VAR_2->data[0]; int VAR_4; if ((VAR_4 = ff_alloc_packet2(VAR_0, VAR_1, s->max_output_bytes))...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "aacPlusAudioContext *s = VAR_0->priv_data;", "int32_t *input_buffer = (int32_t *)VAR_2->data[0];", "int VAR_4;", "if ((VAR_4 = ff_alloc_packet2(VAR_0, VAR_1, s->max_output_bytes)))\nreturn VAR_4;", "VAR_1->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
16,626
static void test_acpi_fadt_table(test_data *data) { AcpiFadtDescriptorRev1 *fadt_table = &data->fadt_table; uint32_t addr; /* FADT table comes first */ addr = data->rsdt_tables_addr[0]; ACPI_READ_TABLE_HEADER(fadt_table, addr); ACPI_READ_FIELD(fadt_table->firmware_ctrl, addr); AC...
false
qemu
77af8a2b95b79699de650965d5228772743efe84
static void test_acpi_fadt_table(test_data *data) { AcpiFadtDescriptorRev1 *fadt_table = &data->fadt_table; uint32_t addr; addr = data->rsdt_tables_addr[0]; ACPI_READ_TABLE_HEADER(fadt_table, addr); ACPI_READ_FIELD(fadt_table->firmware_ctrl, addr); ACPI_READ_FIELD(fadt_table->ds...
{ "code": [], "line_no": [] }
static void FUNC_0(test_data *VAR_0) { AcpiFadtDescriptorRev1 *fadt_table = &VAR_0->fadt_table; uint32_t addr; addr = VAR_0->rsdt_tables_addr[0]; ACPI_READ_TABLE_HEADER(fadt_table, addr); ACPI_READ_FIELD(fadt_table->firmware_ctrl, addr); ACPI_READ_FIELD(fadt_table->dsdt, addr); ...
[ "static void FUNC_0(test_data *VAR_0)\n{", "AcpiFadtDescriptorRev1 *fadt_table = &VAR_0->fadt_table;", "uint32_t addr;", "addr = VAR_0->rsdt_tables_addr[0];", "ACPI_READ_TABLE_HEADER(fadt_table, addr);", "ACPI_READ_FIELD(fadt_table->firmware_ctrl, addr);", "ACPI_READ_FIELD(fadt_table->dsdt, addr);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
16,627
opts_end_list(Visitor *v) { OptsVisitor *ov = to_ov(v); assert(ov->list_mode == LM_STARTED || ov->list_mode == LM_IN_PROGRESS || ov->list_mode == LM_SIGNED_INTERVAL || ov->list_mode == LM_UNSIGNED_INTERVAL); ov->repeated_opts = NULL; ov->list_mode = LM_NONE; }...
false
qemu
d9f62dde1303286b24ac8ce88be27e2b9b9c5f46
opts_end_list(Visitor *v) { OptsVisitor *ov = to_ov(v); assert(ov->list_mode == LM_STARTED || ov->list_mode == LM_IN_PROGRESS || ov->list_mode == LM_SIGNED_INTERVAL || ov->list_mode == LM_UNSIGNED_INTERVAL); ov->repeated_opts = NULL; ov->list_mode = LM_NONE; }...
{ "code": [], "line_no": [] }
FUNC_0(Visitor *VAR_0) { OptsVisitor *ov = to_ov(VAR_0); assert(ov->list_mode == LM_STARTED || ov->list_mode == LM_IN_PROGRESS || ov->list_mode == LM_SIGNED_INTERVAL || ov->list_mode == LM_UNSIGNED_INTERVAL); ov->repeated_opts = NULL; ov->list_mode = LM_NONE; ...
[ "FUNC_0(Visitor *VAR_0)\n{", "OptsVisitor *ov = to_ov(VAR_0);", "assert(ov->list_mode == LM_STARTED ||\nov->list_mode == LM_IN_PROGRESS ||\nov->list_mode == LM_SIGNED_INTERVAL ||\nov->list_mode == LM_UNSIGNED_INTERVAL);", "ov->repeated_opts = NULL;", "ov->list_mode = LM_NONE;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ] ]
16,629
static void rate_start (SpiceRateCtl *rate) { memset (rate, 0, sizeof (*rate)); rate->start_ticks = qemu_get_clock (vm_clock); }
false
qemu
74475455442398a64355428b37422d14ccc293cb
static void rate_start (SpiceRateCtl *rate) { memset (rate, 0, sizeof (*rate)); rate->start_ticks = qemu_get_clock (vm_clock); }
{ "code": [], "line_no": [] }
static void FUNC_0 (SpiceRateCtl *VAR_0) { memset (VAR_0, 0, sizeof (*VAR_0)); VAR_0->start_ticks = qemu_get_clock (vm_clock); }
[ "static void FUNC_0 (SpiceRateCtl *VAR_0)\n{", "memset (VAR_0, 0, sizeof (*VAR_0));", "VAR_0->start_ticks = qemu_get_clock (vm_clock);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
16,630
void cpu_inject_ext(S390CPU *cpu, uint32_t code, uint32_t param, uint64_t param64) { CPUS390XState *env = &cpu->env; if (env->ext_index == MAX_EXT_QUEUE - 1) { /* ugh - can't queue anymore. Let's drop. */ return; } env->ext_index++; assert(env->ext_in...
false
qemu
6482b0ffd12ce83810c10b1a3884a75eba2ade1a
void cpu_inject_ext(S390CPU *cpu, uint32_t code, uint32_t param, uint64_t param64) { CPUS390XState *env = &cpu->env; if (env->ext_index == MAX_EXT_QUEUE - 1) { return; } env->ext_index++; assert(env->ext_index < MAX_EXT_QUEUE); env->ext_queue[...
{ "code": [], "line_no": [] }
void FUNC_0(S390CPU *VAR_0, uint32_t VAR_1, uint32_t VAR_2, uint64_t VAR_3) { CPUS390XState *env = &VAR_0->env; if (env->ext_index == MAX_EXT_QUEUE - 1) { return; } env->ext_index++; assert(env->ext_index < MAX_EXT_QUEUE); env->ext_queue[env->...
[ "void FUNC_0(S390CPU *VAR_0, uint32_t VAR_1, uint32_t VAR_2,\nuint64_t VAR_3)\n{", "CPUS390XState *env = &VAR_0->env;", "if (env->ext_index == MAX_EXT_QUEUE - 1) {", "return;", "}", "env->ext_index++;", "assert(env->ext_index < MAX_EXT_QUEUE);", "env->ext_queue[env->ext_index].VAR_1 = VAR_1;", "env-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
16,631
static void virtio_serial_device_realize(DeviceState *dev, Error **errp) { VirtIODevice *vdev = VIRTIO_DEVICE(dev); VirtIOSerial *vser = VIRTIO_SERIAL(dev); uint32_t i, max_supported_ports; if (!vser->serial.max_virtserial_ports) { error_setg(errp, "Maximum number of serial ports not spe...
false
qemu
a06b1dae4706fccb9394b35e88d1905dabec85e7
static void virtio_serial_device_realize(DeviceState *dev, Error **errp) { VirtIODevice *vdev = VIRTIO_DEVICE(dev); VirtIOSerial *vser = VIRTIO_SERIAL(dev); uint32_t i, max_supported_ports; if (!vser->serial.max_virtserial_ports) { error_setg(errp, "Maximum number of serial ports not spe...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); VirtIOSerial *vser = VIRTIO_SERIAL(VAR_0); uint32_t i, max_supported_ports; if (!vser->serial.max_virtserial_ports) { error_setg(VAR_1, "Maximum number of serial ports not specified"); ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);", "VirtIOSerial *vser = VIRTIO_SERIAL(VAR_0);", "uint32_t i, max_supported_ports;", "if (!vser->serial.max_virtserial_ports) {", "error_setg(VAR_1, \"Maximum number of serial ports not specified\");", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 43, 45 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ...
16,632
void object_property_set_qobject(Object *obj, QObject *value, const char *name, Error **errp) { Visitor *v; /* TODO: Should we reject, rather than ignore, excess input? */ v = qmp_input_visitor_new(value, false); object_property_set(obj, v, name, errp); visit_...
false
qemu
09e68369a88d7de0f988972bf28eec1b80cc47f9
void object_property_set_qobject(Object *obj, QObject *value, const char *name, Error **errp) { Visitor *v; v = qmp_input_visitor_new(value, false); object_property_set(obj, v, name, errp); visit_free(v); }
{ "code": [], "line_no": [] }
void FUNC_0(Object *VAR_0, QObject *VAR_1, const char *VAR_2, Error **VAR_3) { Visitor *v; v = qmp_input_visitor_new(VAR_1, false); object_property_set(VAR_0, v, VAR_2, VAR_3); visit_free(v); }
[ "void FUNC_0(Object *VAR_0, QObject *VAR_1,\nconst char *VAR_2, Error **VAR_3)\n{", "Visitor *v;", "v = qmp_input_visitor_new(VAR_1, false);", "object_property_set(VAR_0, v, VAR_2, VAR_3);", "visit_free(v);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
16,634
static uint32_t pci_apb_ioreadb (void *opaque, target_phys_addr_t addr) { uint32_t val; val = cpu_inb(addr & IOPORTS_MASK); return val; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint32_t pci_apb_ioreadb (void *opaque, target_phys_addr_t addr) { uint32_t val; val = cpu_inb(addr & IOPORTS_MASK); return val; }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr) { uint32_t val; val = cpu_inb(addr & IOPORTS_MASK); return val; }
[ "static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr)\n{", "uint32_t val;", "val = cpu_inb(addr & IOPORTS_MASK);", "return val;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
16,635
static void virtio_blk_device_unrealize(DeviceState *dev, Error **errp) { VirtIODevice *vdev = VIRTIO_DEVICE(dev); VirtIOBlock *s = VIRTIO_BLK(dev); remove_migration_state_change_notifier(&s->migration_state_notifier); virtio_blk_data_plane_destroy(s->dataplane); s->dataplane = NULL; qe...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void virtio_blk_device_unrealize(DeviceState *dev, Error **errp) { VirtIODevice *vdev = VIRTIO_DEVICE(dev); VirtIOBlock *s = VIRTIO_BLK(dev); remove_migration_state_change_notifier(&s->migration_state_notifier); virtio_blk_data_plane_destroy(s->dataplane); s->dataplane = NULL; qe...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); VirtIOBlock *s = VIRTIO_BLK(VAR_0); remove_migration_state_change_notifier(&s->migration_state_notifier); virtio_blk_data_plane_destroy(s->dataplane); s->dataplane = NULL; qemu_del_vm_chan...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);", "VirtIOBlock *s = VIRTIO_BLK(VAR_0);", "remove_migration_state_change_notifier(&s->migration_state_notifier);", "virtio_blk_data_plane_destroy(s->dataplane);", "s->dataplane = NULL;", "qemu_del_vm_c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
16,636
static int exif_decode_tag(AVCodecContext *avctx, GetByteContext *gbytes, int le, int depth, AVDictionary **metadata) { int ret, cur_pos; unsigned id, count; enum TiffTypes type; if (depth > 2) { return 0; } ff_tread_tag(gbytes, le, &id, &type, &co...
false
FFmpeg
ce87711df563a9d2d0537a062b86bb91b15ea1a0
static int exif_decode_tag(AVCodecContext *avctx, GetByteContext *gbytes, int le, int depth, AVDictionary **metadata) { int ret, cur_pos; unsigned id, count; enum TiffTypes type; if (depth > 2) { return 0; } ff_tread_tag(gbytes, le, &id, &type, &co...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, GetByteContext *VAR_1, int VAR_2, int VAR_3, AVDictionary **VAR_4) { int VAR_5, VAR_6; unsigned VAR_7, VAR_8; enum TiffTypes VAR_9; if (VAR_3 > 2) { return 0; } ff_tread_tag(VAR_1, VAR_2, &VAR_7, &VAR_9, &VA...
[ "static int FUNC_0(AVCodecContext *VAR_0, GetByteContext *VAR_1, int VAR_2,\nint VAR_3, AVDictionary **VAR_4)\n{", "int VAR_5, VAR_6;", "unsigned VAR_7, VAR_8;", "enum TiffTypes VAR_9;", "if (VAR_3 > 2) {", "return 0;", "}", "ff_tread_tag(VAR_1, VAR_2, &VAR_7, &VAR_9, &VAR_8, &VAR_6);", "if (!bytest...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [...
16,637
static int setup_sigcontext(struct target_sigcontext *sc, CPUAlphaState *env, abi_ulong frame_addr, target_sigset_t *set) { int i, err = 0; __put_user(on_sig_stack(frame_addr), &sc->sc_onstack); __put_user(set->sig[0], &sc->sc_mask); __put_user(env->pc, &sc->sc_pc); ...
false
qemu
41ecc72ba5932381208e151bf2d2149a0342beff
static int setup_sigcontext(struct target_sigcontext *sc, CPUAlphaState *env, abi_ulong frame_addr, target_sigset_t *set) { int i, err = 0; __put_user(on_sig_stack(frame_addr), &sc->sc_onstack); __put_user(set->sig[0], &sc->sc_mask); __put_user(env->pc, &sc->sc_pc); ...
{ "code": [], "line_no": [] }
static int FUNC_0(struct target_sigcontext *VAR_0, CPUAlphaState *VAR_1, abi_ulong VAR_2, target_sigset_t *VAR_3) { int VAR_4, VAR_5 = 0; __put_user(on_sig_stack(VAR_2), &VAR_0->sc_onstack); __put_user(VAR_3->sig[0], &VAR_0->sc_mask); __put_user(VAR_1->pc, &VAR_0->sc_...
[ "static int FUNC_0(struct target_sigcontext *VAR_0, CPUAlphaState *VAR_1,\nabi_ulong VAR_2, target_sigset_t *VAR_3)\n{", "int VAR_4, VAR_5 = 0;", "__put_user(on_sig_stack(VAR_2), &VAR_0->sc_onstack);", "__put_user(VAR_3->sig[0], &VAR_0->sc_mask);", "__put_user(VAR_1->pc, &VAR_0->sc_pc);", "__put_user(8, &...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], ...
16,638
static const char *full_name(QObjectInputVisitor *qiv, const char *name) { StackObject *so; char buf[32]; if (qiv->errname) { g_string_truncate(qiv->errname, 0); } else { qiv->errname = g_string_new(""); } QSLIST_FOREACH(so , &qiv->stack, node) { if (qobject...
false
qemu
a4a1c70dc759e5b81627e96564f344ab43ea86eb
static const char *full_name(QObjectInputVisitor *qiv, const char *name) { StackObject *so; char buf[32]; if (qiv->errname) { g_string_truncate(qiv->errname, 0); } else { qiv->errname = g_string_new(""); } QSLIST_FOREACH(so , &qiv->stack, node) { if (qobject...
{ "code": [], "line_no": [] }
static const char *FUNC_0(QObjectInputVisitor *VAR_0, const char *VAR_1) { StackObject *so; char VAR_2[32]; if (VAR_0->errname) { g_string_truncate(VAR_0->errname, 0); } else { VAR_0->errname = g_string_new(""); } QSLIST_FOREACH(so , &VAR_0->stack, node) { i...
[ "static const char *FUNC_0(QObjectInputVisitor *VAR_0, const char *VAR_1)\n{", "StackObject *so;", "char VAR_2[32];", "if (VAR_0->errname) {", "g_string_truncate(VAR_0->errname, 0);", "} else {", "VAR_0->errname = g_string_new(\"\");", "}", "QSLIST_FOREACH(so , &VAR_0->stack, node) {", "if (qobjec...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47...
16,639
static void tcg_out_tlb_read (TCGContext *s, int r0, int r1, int r2, int addr_reg, int s_bits, int offset) { #ifdef TARGET_LONG_BITS tcg_out_rld (s, RLDICL, addr_reg, addr_reg, 0, 32); tcg_out32 (s, (RLWINM | RA (r0) | RS (addr_reg) ...
false
qemu
880e52b8b037d5878c1120a15b45ebf6ac690d31
static void tcg_out_tlb_read (TCGContext *s, int r0, int r1, int r2, int addr_reg, int s_bits, int offset) { #ifdef TARGET_LONG_BITS tcg_out_rld (s, RLDICL, addr_reg, addr_reg, 0, 32); tcg_out32 (s, (RLWINM | RA (r0) | RS (addr_reg) ...
{ "code": [], "line_no": [] }
static void FUNC_0 (TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { #ifdef TARGET_LONG_BITS tcg_out_rld (VAR_0, RLDICL, VAR_4, VAR_4, 0, 32); tcg_out32 (VAR_0, (RLWINM | RA (VAR_1) | RS (VAR_4) ...
[ "static void FUNC_0 (TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{", "#ifdef TARGET_LONG_BITS\ntcg_out_rld (VAR_0, RLDICL, VAR_4, VAR_4, 0, 32);", "tcg_out32 (VAR_0, (RLWINM\n| RA (VAR_1)\n| RS (VAR_4)\n| SH (32 - (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS))\n| MB (32 - (C...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 13, 15, 17, 19, 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39, 41, 43, 45, 47 ], [ 49, 51, 53, 55 ], [ 57, 59, 61 ], [ 65 ], [...
16,640
float32 HELPER(ucf64_si2sf)(float32 x, CPUUniCore32State *env) { return int32_to_float32(ucf64_stoi(x), &env->ucf64.fp_status); }
false
qemu
e8ede0a8bb5298a6979bcf7ed84ef64a64a4e3fe
float32 HELPER(ucf64_si2sf)(float32 x, CPUUniCore32State *env) { return int32_to_float32(ucf64_stoi(x), &env->ucf64.fp_status); }
{ "code": [], "line_no": [] }
float32 FUNC_0(ucf64_si2sf)(float32 x, CPUUniCore32State *env) { return int32_to_float32(ucf64_stoi(x), &env->ucf64.fp_status); }
[ "float32 FUNC_0(ucf64_si2sf)(float32 x, CPUUniCore32State *env)\n{", "return int32_to_float32(ucf64_stoi(x), &env->ucf64.fp_status);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
16,641
static void v7m_push_stack(ARMCPU *cpu) { /* Do the "set up stack frame" part of exception entry, * similar to pseudocode PushStack(). */ CPUARMState *env = &cpu->env; uint32_t xpsr = xpsr_read(env); /* Align stack pointer if the guest wants that */ if ((env->regs[13] & 4) && (en...
false
qemu
9d40cd8a68cfc7606f4548cc9e812bab15c6dc28
static void v7m_push_stack(ARMCPU *cpu) { CPUARMState *env = &cpu->env; uint32_t xpsr = xpsr_read(env); if ((env->regs[13] & 4) && (env->v7m.ccr & R_V7M_CCR_STKALIGN_MASK)) { env->regs[13] -= 4; xpsr |= XPSR_SPREALIGN; } v7m_push(env, xpsr); v7m_p...
{ "code": [], "line_no": [] }
static void FUNC_0(ARMCPU *VAR_0) { CPUARMState *env = &VAR_0->env; uint32_t xpsr = xpsr_read(env); if ((env->regs[13] & 4) && (env->v7m.ccr & R_V7M_CCR_STKALIGN_MASK)) { env->regs[13] -= 4; xpsr |= XPSR_SPREALIGN; } v7m_push(env, xpsr); v7m_push(...
[ "static void FUNC_0(ARMCPU *VAR_0)\n{", "CPUARMState *env = &VAR_0->env;", "uint32_t xpsr = xpsr_read(env);", "if ((env->regs[13] & 4) && (env->v7m.ccr & R_V7M_CCR_STKALIGN_MASK)) {", "env->regs[13] -= 4;", "xpsr |= XPSR_SPREALIGN;", "}", "v7m_push(env, xpsr);", "v7m_push(env, env->regs[15]);", "v...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
16,642
int bdrv_attach(BlockDriverState *bs, DeviceState *qdev) { if (bs->peer) { return -EBUSY; } bs->peer = qdev; return 0; }
false
qemu
fa879d62eb51253d00b6920ce1d1d9d261370a49
int bdrv_attach(BlockDriverState *bs, DeviceState *qdev) { if (bs->peer) { return -EBUSY; } bs->peer = qdev; return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, DeviceState *VAR_1) { if (VAR_0->peer) { return -EBUSY; } VAR_0->peer = VAR_1; return 0; }
[ "int FUNC_0(BlockDriverState *VAR_0, DeviceState *VAR_1)\n{", "if (VAR_0->peer) {", "return -EBUSY;", "}", "VAR_0->peer = VAR_1;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
16,643
static void vnc_init_timer(VncDisplay *vd) { vd->timer_interval = VNC_REFRESH_INTERVAL_BASE; if (vd->timer == NULL && !QTAILQ_EMPTY(&vd->clients)) { vd->timer = qemu_new_timer(rt_clock, vnc_refresh, vd); vnc_dpy_resize(vd->ds); vnc_refresh(vd); } }
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
static void vnc_init_timer(VncDisplay *vd) { vd->timer_interval = VNC_REFRESH_INTERVAL_BASE; if (vd->timer == NULL && !QTAILQ_EMPTY(&vd->clients)) { vd->timer = qemu_new_timer(rt_clock, vnc_refresh, vd); vnc_dpy_resize(vd->ds); vnc_refresh(vd); } }
{ "code": [], "line_no": [] }
static void FUNC_0(VncDisplay *VAR_0) { VAR_0->timer_interval = VNC_REFRESH_INTERVAL_BASE; if (VAR_0->timer == NULL && !QTAILQ_EMPTY(&VAR_0->clients)) { VAR_0->timer = qemu_new_timer(rt_clock, vnc_refresh, VAR_0); vnc_dpy_resize(VAR_0->ds); vnc_refresh(VAR_0); } }
[ "static void FUNC_0(VncDisplay *VAR_0)\n{", "VAR_0->timer_interval = VNC_REFRESH_INTERVAL_BASE;", "if (VAR_0->timer == NULL && !QTAILQ_EMPTY(&VAR_0->clients)) {", "VAR_0->timer = qemu_new_timer(rt_clock, vnc_refresh, VAR_0);", "vnc_dpy_resize(VAR_0->ds);", "vnc_refresh(VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
16,644
static int pxa2xx_pic_load(QEMUFile *f, void *opaque, int version_id) { PXA2xxPICState *s = (PXA2xxPICState *) opaque; int i; for (i = 0; i < 2; i ++) qemu_get_be32s(f, &s->int_enabled[i]); for (i = 0; i < 2; i ++) qemu_get_be32s(f, &s->int_pending[i]); for (i = 0; i < 2; i...
false
qemu
e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf
static int pxa2xx_pic_load(QEMUFile *f, void *opaque, int version_id) { PXA2xxPICState *s = (PXA2xxPICState *) opaque; int i; for (i = 0; i < 2; i ++) qemu_get_be32s(f, &s->int_enabled[i]); for (i = 0; i < 2; i ++) qemu_get_be32s(f, &s->int_pending[i]); for (i = 0; i < 2; i...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { PXA2xxPICState *s = (PXA2xxPICState *) VAR_1; int VAR_3; for (VAR_3 = 0; VAR_3 < 2; VAR_3 ++) qemu_get_be32s(VAR_0, &s->int_enabled[VAR_3]); for (VAR_3 = 0; VAR_3 < 2; VAR_3 ++) qemu_get_be32s(VAR_0, &s->int_pending[VA...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "PXA2xxPICState *s = (PXA2xxPICState *) VAR_1;", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < 2; VAR_3 ++)", "qemu_get_be32s(VAR_0, &s->int_enabled[VAR_3]);", "for (VAR_3 = 0; VAR_3 < 2; VAR_3 ++)", "qemu_get_be32s(VAR_0, &s->int_pending[VAR_3])...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
16,645
static void lsi_mmio_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { LSIState *s = opaque; lsi_reg_writeb(s, addr & 0xff, val); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void lsi_mmio_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { LSIState *s = opaque; lsi_reg_writeb(s, addr & 0xff, val); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { LSIState *s = VAR_0; lsi_reg_writeb(s, VAR_1 & 0xff, VAR_2); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "LSIState *s = VAR_0;", "lsi_reg_writeb(s, VAR_1 & 0xff, VAR_2);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ] ]
16,646
static void pmac_ide_writew (void *opaque, target_phys_addr_t addr, uint32_t val) { MACIOIDEState *d = opaque; addr = (addr & 0xFFF) >> 4; val = bswap16(val); if (addr == 0) { ide_data_writew(&d->bus, 0, val); } }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void pmac_ide_writew (void *opaque, target_phys_addr_t addr, uint32_t val) { MACIOIDEState *d = opaque; addr = (addr & 0xFFF) >> 4; val = bswap16(val); if (addr == 0) { ide_data_writew(&d->bus, 0, val); } }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { MACIOIDEState *d = VAR_0; VAR_1 = (VAR_1 & 0xFFF) >> 4; VAR_2 = bswap16(VAR_2); if (VAR_1 == 0) { ide_data_writew(&d->bus, 0, VAR_2); } }
[ "static void FUNC_0 (void *VAR_0,\ntarget_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "MACIOIDEState *d = VAR_0;", "VAR_1 = (VAR_1 & 0xFFF) >> 4;", "VAR_2 = bswap16(VAR_2);", "if (VAR_1 == 0) {", "ide_data_writew(&d->bus, 0, VAR_2);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
16,647
make_setup_request (AVFormatContext *s, const char *host, int port, int lower_transport, const char *real_challenge) { RTSPState *rt = s->priv_data; int rtx, j, i, err, interleave = 0; RTSPStream *rtsp_st; RTSPMessageHeader reply1, *reply = &reply1; char cmd[2048]; co...
false
FFmpeg
c89658008705d949c319df3fa6f400c481ad73e1
make_setup_request (AVFormatContext *s, const char *host, int port, int lower_transport, const char *real_challenge) { RTSPState *rt = s->priv_data; int rtx, j, i, err, interleave = 0; RTSPStream *rtsp_st; RTSPMessageHeader reply1, *reply = &reply1; char cmd[2048]; co...
{ "code": [], "line_no": [] }
FUNC_0 (AVFormatContext *VAR_0, const char *VAR_1, int VAR_2, int VAR_3, const char *VAR_4) { RTSPState *rt = VAR_0->priv_data; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0; RTSPStream *rtsp_st; RTSPMessageHeader reply1, *reply = &reply1; char VAR_10[2048]; const char *V...
[ "FUNC_0 (AVFormatContext *VAR_0, const char *VAR_1, int VAR_2,\nint VAR_3, const char *VAR_4)\n{", "RTSPState *rt = VAR_0->priv_data;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0;", "RTSPStream *rtsp_st;", "RTSPMessageHeader reply1, *reply = &reply1;", "char VAR_10[2048];", "const char *VAR_11;", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 33 ], [ 45 ], [ 47 ], [ 61, 63 ], [ 65 ], [ 69 ], [ 71 ], [ 73, 75, 77 ...
16,649
static void test_dst_table(AcpiSdtTable *sdt_table, uint32_t addr) { uint8_t checksum; memset(sdt_table, 0, sizeof(*sdt_table)); ACPI_READ_TABLE_HEADER(&sdt_table->header, addr); sdt_table->aml_len = le32_to_cpu(sdt_table->header.length) - sizeof(AcpiTableHeader); ...
false
qemu
03010579835a17450693888f8b35a66817668d68
static void test_dst_table(AcpiSdtTable *sdt_table, uint32_t addr) { uint8_t checksum; memset(sdt_table, 0, sizeof(*sdt_table)); ACPI_READ_TABLE_HEADER(&sdt_table->header, addr); sdt_table->aml_len = le32_to_cpu(sdt_table->header.length) - sizeof(AcpiTableHeader); ...
{ "code": [], "line_no": [] }
static void FUNC_0(AcpiSdtTable *VAR_0, uint32_t VAR_1) { uint8_t checksum; memset(VAR_0, 0, sizeof(*VAR_0)); ACPI_READ_TABLE_HEADER(&VAR_0->header, VAR_1); VAR_0->aml_len = le32_to_cpu(VAR_0->header.length) - sizeof(AcpiTableHeader); VAR_0->aml = g_malloc0(VAR_0-...
[ "static void FUNC_0(AcpiSdtTable *VAR_0, uint32_t VAR_1)\n{", "uint8_t checksum;", "memset(VAR_0, 0, sizeof(*VAR_0));", "ACPI_READ_TABLE_HEADER(&VAR_0->header, VAR_1);", "VAR_0->aml_len = le32_to_cpu(VAR_0->header.length)\n- sizeof(AcpiTableHeader);", "VAR_0->aml = g_malloc0(VAR_0->aml_len);", "ACPI_REA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25, 27, 29, 31 ], [ 33 ], [ 35 ] ]
16,650
static void piix4_device_plug_cb(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { PIIX4PMState *s = PIIX4_PM(hotplug_dev); if (s->acpi_memory_hotplug.is_enabled && object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) { if (object_dynamic_cast(OBJ...
false
qemu
2bed1ba77fae50bc8b5e68ede2d80b652b30c3b8
static void piix4_device_plug_cb(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { PIIX4PMState *s = PIIX4_PM(hotplug_dev); if (s->acpi_memory_hotplug.is_enabled && object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) { if (object_dynamic_cast(OBJ...
{ "code": [], "line_no": [] }
static void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1, Error **VAR_2) { PIIX4PMState *s = PIIX4_PM(VAR_0); if (s->acpi_memory_hotplug.is_enabled && object_dynamic_cast(OBJECT(VAR_1), TYPE_PC_DIMM)) { if (object_dynamic_cast(OBJECT(VAR_1), TYPE_NVDI...
[ "static void FUNC_0(HotplugHandler *VAR_0,\nDeviceState *VAR_1, Error **VAR_2)\n{", "PIIX4PMState *s = PIIX4_PM(VAR_0);", "if (s->acpi_memory_hotplug.is_enabled &&\nobject_dynamic_cast(OBJECT(VAR_1), TYPE_PC_DIMM)) {", "if (object_dynamic_cast(OBJECT(VAR_1), TYPE_NVDIMM)) {", "nvdimm_acpi_plug_cb(VAR_0, VAR...
[ 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...
16,652
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *buf) { AVFilterContext *ctx = inlink->dst; ASyncContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; int nb_channels = av_get_channel_layout_nb_channels(buf->audio->channel_layout); int64_t pts = (buf->pts == A...
false
FFmpeg
8083332c2de9ee189f96844ff4c2d9be1844116f
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *buf) { AVFilterContext *ctx = inlink->dst; ASyncContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; int nb_channels = av_get_channel_layout_nb_channels(buf->audio->channel_layout); int64_t pts = (buf->pts == A...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; ASyncContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; int VAR_2 = av_get_channel_layout_nb_channels(VAR_1->audio->channel_layout); int64_t pts = (VAR_1->pts == AV_NOPTS_...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "ASyncContext *s = ctx->priv;", "AVFilterLink *outlink = ctx->outputs[0];", "int VAR_2 = av_get_channel_layout_nb_channels(VAR_1->audio->channel_layout);", "int64_t pts = (VAR_1->pts == AV_N...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 53 ], [ 55 ], [...
16,653
static void test_tco2_status_bits(void) { TestData d; uint16_t ticks = 8; uint16_t val; int ret; d.args = NULL; d.noreboot = true; test_init(&d); stop_tco(&d); clear_tco_status(&d); reset_on_second_timeout(true); set_tco_timeout(&d, ticks); load_tco(&d); ...
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static void test_tco2_status_bits(void) { TestData d; uint16_t ticks = 8; uint16_t val; int ret; d.args = NULL; d.noreboot = true; test_init(&d); stop_tco(&d); clear_tco_status(&d); reset_on_second_timeout(true); set_tco_timeout(&d, ticks); load_tco(&d); ...
{ "code": [ " val = qpci_io_readw(d.dev, d.tco_io_base + TCO2_STS);", " val = qpci_io_readw(d.dev, d.tco_io_base + TCO2_STS);", " qpci_io_writew(d.dev, d.tco_io_base + TCO2_STS, val);", " g_assert_cmpint(qpci_io_readw(d.dev, d.tco_io_base + TCO2_STS), ==, 0);" ], "line_no": [ 39, ...
static void FUNC_0(void) { TestData d; uint16_t ticks = 8; uint16_t val; int VAR_0; d.args = NULL; d.noreboot = true; test_init(&d); stop_tco(&d); clear_tco_status(&d); reset_on_second_timeout(true); set_tco_timeout(&d, ticks); load_tco(&d); start_tc...
[ "static void FUNC_0(void)\n{", "TestData d;", "uint16_t ticks = 8;", "uint16_t val;", "int VAR_0;", "d.args = NULL;", "d.noreboot = true;", "test_init(&d);", "stop_tco(&d);", "clear_tco_status(&d);", "reset_on_second_timeout(true);", "set_tco_timeout(&d, ticks);", "load_tco(&d);", "start_t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
16,654
static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int j, entries, pseudo_stream_id; get_byte(pb); /* version */ get_be24(pb); /* flags */ entries = get_be32(pb); f...
false
FFmpeg
6a63ff19b6a7fe3bc32c7fb4a62fca8f65786432
static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int j, entries, pseudo_stream_id; get_byte(pb); get_be24(pb); entries = get_be32(pb); for(pseudo_stream_id=0; p...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int VAR_3, VAR_4, VAR_5; get_byte(VAR_1); get_be24(VAR_1); VAR_4 = get_be32(VAR_1); for(VAR_5=0; VAR_5...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "MOVStreamContext *sc = st->priv_data;", "int VAR_3, VAR_4, VAR_5;", "get_byte(VAR_1);", "get_be24(VAR_1);", "VAR_4 = get_be32(VAR_1);", "for(VAR_5=0; VAR_5<VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53,...
16,655
void rgb15tobgr24(const uint8_t *src, uint8_t *dst, unsigned int src_size) { const uint16_t *end; uint8_t *d = (uint8_t *)dst; const uint16_t *s = (uint16_t *)src; end = s + src_size/2; while(s < end) { register uint16_t bgr; bgr = *s++; *d++ = (bgr&0x7C00)>>7; *d++ = (bgr&0x3E0)>>2; *d++ = ...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
void rgb15tobgr24(const uint8_t *src, uint8_t *dst, unsigned int src_size) { const uint16_t *end; uint8_t *d = (uint8_t *)dst; const uint16_t *s = (uint16_t *)src; end = s + src_size/2; while(s < end) { register uint16_t bgr; bgr = *s++; *d++ = (bgr&0x7C00)>>7; *d++ = (bgr&0x3E0)>>2; *d++ = ...
{ "code": [ "void rgb15tobgr24(const uint8_t *src, uint8_t *dst, unsigned int src_size)" ], "line_no": [ 1 ] }
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2) { const uint16_t *VAR_3; uint8_t *d = (uint8_t *)VAR_1; const uint16_t *VAR_4 = (uint16_t *)VAR_0; VAR_3 = VAR_4 + VAR_2/2; while(VAR_4 < VAR_3) { register uint16_t VAR_5; VAR_5 = *VAR_4++; *d++ = (VAR_5&0x7C00)>>7; *d++ = (V...
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)\n{", "const uint16_t *VAR_3;", "uint8_t *d = (uint8_t *)VAR_1;", "const uint16_t *VAR_4 = (uint16_t *)VAR_0;", "VAR_3 = VAR_4 + VAR_2/2;", "while(VAR_4 < VAR_3)\n{", "register uint16_t VAR_5;", "VAR_5 = *VAR_4++;", "*d++ = (VAR_5...
[ 1, 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 ] ]
16,656
int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples) { BufferSinkContext *s = ctx->priv; AVFilterLink *link = ctx->inputs[0]; AVFrame *cur_frame; int ret = 0; if (!s->audio_fifo) { int nb_channels = link->channels; if (!(s->audio_fifo = av_a...
true
FFmpeg
d8dccf69ff2df7014a2bb8e0e17828a820f45b27
int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples) { BufferSinkContext *s = ctx->priv; AVFilterLink *link = ctx->inputs[0]; AVFrame *cur_frame; int ret = 0; if (!s->audio_fifo) { int nb_channels = link->channels; if (!(s->audio_fifo = av_a...
{ "code": [ "int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples)" ], "line_no": [ 1 ] }
int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1, int VAR_2) { BufferSinkContext *s = VAR_0->priv; AVFilterLink *link = VAR_0->inputs[0]; AVFrame *cur_frame; int VAR_3 = 0; if (!s->audio_fifo) { int VAR_4 = link->channels; if (!(s->audio_fifo = av_audio_fifo_alloc(link->...
[ "int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1, int VAR_2)\n{", "BufferSinkContext *s = VAR_0->priv;", "AVFilterLink *link = VAR_0->inputs[0];", "AVFrame *cur_frame;", "int VAR_3 = 0;", "if (!s->audio_fifo) {", "int VAR_4 = link->channels;", "if (!(s->audio_fifo = av_audio_fifo_alloc(link->forma...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
16,657
static int rtsp_parse_request(HTTPContext *c) { const char *p, *p1, *p2; char cmd[32]; char url[1024]; char protocol[32]; char line[1024]; int len; RTSPMessageHeader header1, *header = &header1; c->buffer_ptr[0] = '\0'; p = c->buffer; get_word(cmd, sizeof(cmd), &p)...
true
FFmpeg
c966c91279f8bca0f1d4865779519b077a2221f0
static int rtsp_parse_request(HTTPContext *c) { const char *p, *p1, *p2; char cmd[32]; char url[1024]; char protocol[32]; char line[1024]; int len; RTSPMessageHeader header1, *header = &header1; c->buffer_ptr[0] = '\0'; p = c->buffer; get_word(cmd, sizeof(cmd), &p)...
{ "code": [ " p1 = strchr(p, '\\n');" ], "line_no": [ 83 ] }
static int FUNC_0(HTTPContext *VAR_0) { const char *VAR_1, *VAR_2, *VAR_3; char VAR_4[32]; char VAR_5[1024]; char VAR_6[32]; char VAR_7[1024]; int VAR_8; RTSPMessageHeader header1, *header = &header1; VAR_0->buffer_ptr[0] = '\0'; VAR_1 = VAR_0->buffer; get_word(VAR...
[ "static int FUNC_0(HTTPContext *VAR_0)\n{", "const char *VAR_1, *VAR_2, *VAR_3;", "char VAR_4[32];", "char VAR_5[1024];", "char VAR_6[32];", "char VAR_7[1024];", "int VAR_8;", "RTSPMessageHeader header1, *header = &header1;", "VAR_0->buffer_ptr[0] = '\\0';", "VAR_1 = VAR_0->buffer;", "get_word(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
16,658
void cpu_dump_state (CPUPPCState *env, FILE *f, fprintf_function cpu_fprintf, int flags) { #define RGPL 4 #define RFPL 4 int i; cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR " TARGET_FMT_lx " XER " TARGET_FMT_lx "\n", env->nip, env->lr, e...
true
qemu
29979a8d2596d33b474c11efb376ed47ba1d44d3
void cpu_dump_state (CPUPPCState *env, FILE *f, fprintf_function cpu_fprintf, int flags) { #define RGPL 4 #define RFPL 4 int i; cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR " TARGET_FMT_lx " XER " TARGET_FMT_lx "\n", env->nip, env->lr, e...
{ "code": [], "line_no": [] }
void FUNC_0 (CPUPPCState *VAR_0, FILE *VAR_1, fprintf_function VAR_2, int VAR_3) { #define RGPL 4 #define RFPL 4 int VAR_4; VAR_2(VAR_1, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR " TARGET_FMT_lx " XER " TARGET_FMT_lx "\n", VAR_0->nip, VAR_0->lr, VAR...
[ "void FUNC_0 (CPUPPCState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,\nint VAR_3)\n{", "#define RGPL 4\n#define RFPL 4\nint VAR_4;", "VAR_2(VAR_1, \"NIP \" TARGET_FMT_lx \" LR \" TARGET_FMT_lx \" CTR \"\nTARGET_FMT_lx \" XER \" TARGET_FMT_lx \"\\n\",\nVAR_0->nip, VAR_0->lr, VAR_0->ctr, VAR_0->xer);", "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 ]
[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ], [ 10, 11, 12 ], [ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], [ 24, 25 ], [ 26, 27 ], [ 28 ], [ 29, 30 ], [ 31 ],...
16,661
pvscsi_init_msi(PVSCSIState *s) { int res; PCIDevice *d = PCI_DEVICE(s); res = msi_init(d, PVSCSI_MSI_OFFSET(s), PVSCSI_MSIX_NUM_VECTORS, PVSCSI_USE_64BIT, PVSCSI_PER_VECTOR_MASK); if (res < 0) { trace_pvscsi_init_msi_fail(res); s->msi_used = false; } el...
true
qemu
1108b2f8a939fb5778d384149e2f1b99062a72da
pvscsi_init_msi(PVSCSIState *s) { int res; PCIDevice *d = PCI_DEVICE(s); res = msi_init(d, PVSCSI_MSI_OFFSET(s), PVSCSI_MSIX_NUM_VECTORS, PVSCSI_USE_64BIT, PVSCSI_PER_VECTOR_MASK); if (res < 0) { trace_pvscsi_init_msi_fail(res); s->msi_used = false; } el...
{ "code": [ " PCIDevice *d = PCI_DEVICE(s);", " int res;", " s->msi_used = false;", " } else {", " s->msi_used = true;", " PVSCSI_USE_64BIT, PVSCSI_PER_VECTOR_MASK);" ], "line_no": [ 7, 5, 19, 21, 23, 13 ] }
FUNC_0(PVSCSIState *VAR_0) { int VAR_1; PCIDevice *d = PCI_DEVICE(VAR_0); VAR_1 = msi_init(d, PVSCSI_MSI_OFFSET(VAR_0), PVSCSI_MSIX_NUM_VECTORS, PVSCSI_USE_64BIT, PVSCSI_PER_VECTOR_MASK); if (VAR_1 < 0) { trace_pvscsi_init_msi_fail(VAR_1); VAR_0->msi_used = f...
[ "FUNC_0(PVSCSIState *VAR_0)\n{", "int VAR_1;", "PCIDevice *d = PCI_DEVICE(VAR_0);", "VAR_1 = msi_init(d, PVSCSI_MSI_OFFSET(VAR_0), PVSCSI_MSIX_NUM_VECTORS,\nPVSCSI_USE_64BIT, PVSCSI_PER_VECTOR_MASK);", "if (VAR_1 < 0) {", "trace_pvscsi_init_msi_fail(VAR_1);", "VAR_0->msi_used = false;", "} else {", ...
[ 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
16,662
static void map_val_34_to_20(INTFLOAT par[PS_MAX_NR_IIDICC]) { #if USE_FIXED par[ 0] = (int)(((int64_t)(par[ 0] + (par[ 1]>>1)) * 1431655765 + \ 0x40000000) >> 31); par[ 1] = (int)(((int64_t)((par[ 1]>>1) + par[ 2]) * 1431655765 + \ 0x40000000) >> 31); par[...
true
FFmpeg
0764fe1d09833ae4dcf9e427df09378d0d6a3386
static void map_val_34_to_20(INTFLOAT par[PS_MAX_NR_IIDICC]) { #if USE_FIXED par[ 0] = (int)(((int64_t)(par[ 0] + (par[ 1]>>1)) * 1431655765 + \ 0x40000000) >> 31); par[ 1] = (int)(((int64_t)((par[ 1]>>1) + par[ 2]) * 1431655765 + \ 0x40000000) >> 31); par[...
{ "code": [ " par[ 0] = (int)(((int64_t)(par[ 0] + (par[ 1]>>1)) * 1431655765 + \\", " par[ 1] = (int)(((int64_t)((par[ 1]>>1) + par[ 2]) * 1431655765 + \\", " par[ 2] = (int)(((int64_t)(par[ 3] + (par[ 4]>>1)) * 1431655765 + \\", " par[ 3] = (int)(((int64_t)((par[ 4]>>1) + par[ 5]) * 1431...
static void FUNC_0(INTFLOAT VAR_0[PS_MAX_NR_IIDICC]) { #if USE_FIXED VAR_0[ 0] = (int)(((int64_t)(VAR_0[ 0] + (VAR_0[ 1]>>1)) * 1431655765 + \ 0x40000000) >> 31); VAR_0[ 1] = (int)(((int64_t)((VAR_0[ 1]>>1) + VAR_0[ 2]) * 1431655765 + \ 0x40000000) >> 31); ...
[ "static void FUNC_0(INTFLOAT VAR_0[PS_MAX_NR_IIDICC])\n{", "#if USE_FIXED\nVAR_0[ 0] = (int)(((int64_t)(VAR_0[ 0] + (VAR_0[ 1]>>1)) * 1431655765 + \\\n0x40000000) >> 31);", "VAR_0[ 1] = (int)(((int64_t)((VAR_0[ 1]>>1) + VAR_0[ 2]) * 1431655765 + \\\n0x40000000) >> 31);", "VAR_0[ 2] = (int)(((int64_t)(VAR_0[ 3...
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
16,663
GuestFileWrite *qmp_guest_file_write(int64_t handle, const char *buf_b64, bool has_count, int64_t count, Error **errp) { GuestFileWrite *write_data = NULL; guchar *buf; gsize buf_len; int write_count; GuestFileHandle *gfh = gu...
true
qemu
895b00f62a7e86724dc7352d67c7808d37366130
GuestFileWrite *qmp_guest_file_write(int64_t handle, const char *buf_b64, bool has_count, int64_t count, Error **errp) { GuestFileWrite *write_data = NULL; guchar *buf; gsize buf_len; int write_count; GuestFileHandle *gfh = gu...
{ "code": [], "line_no": [] }
GuestFileWrite *FUNC_0(int64_t handle, const char *buf_b64, bool has_count, int64_t count, Error **errp) { GuestFileWrite *write_data = NULL; guchar *buf; gsize buf_len; int VAR_0; GuestFileHandle *gfh = guest_file_handle_find...
[ "GuestFileWrite *FUNC_0(int64_t handle, const char *buf_b64,\nbool has_count, int64_t count,\nError **errp)\n{", "GuestFileWrite *write_data = NULL;", "guchar *buf;", "gsize buf_len;", "int VAR_0;", "GuestFileHandle *gfh = guest_file_handle_find(handle, errp);", "FILE *fh;", "if (!gfh) {", "fh = gfh...
[ 0, 0, 0, 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 ], [ ...
16,665
static void fill_picture_parameters(AVCodecContext *avctx, struct dxva_context *ctx, const VC1Context *v, DXVA_PictureParameters *pp) { const MpegEncContext *s = &v->s; const Picture *current_picture = s->current_picture_ptr; me...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static void fill_picture_parameters(AVCodecContext *avctx, struct dxva_context *ctx, const VC1Context *v, DXVA_PictureParameters *pp) { const MpegEncContext *s = &v->s; const Picture *current_picture = s->current_picture_ptr; me...
{ "code": [ " pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->next_picture.f);", " pp->wDeblockedPictureIndex = ff_dxva2_get_surface_index(ctx, &current_picture->f);", " pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->last_picture.f);", " p...
static void FUNC_0(AVCodecContext *VAR_0, struct dxva_context *VAR_1, const VC1Context *VAR_2, DXVA_PictureParameters *VAR_3) { const MpegEncContext *VAR_4 = &VAR_2->VAR_4; const Picture *VAR_5 = VAR_4->current_picture_ptr; mems...
[ "static void FUNC_0(AVCodecContext *VAR_0,\nstruct dxva_context *VAR_1, const VC1Context *VAR_2,\nDXVA_PictureParameters *VAR_3)\n{", "const MpegEncContext *VAR_4 = &VAR_2->VAR_4;", "const Picture *VAR_5 = VAR_4->current_picture_ptr;", "memset(VAR_3, 0, sizeof(*VAR_3));", "VAR_3->wDecodedPictureIndex =\n...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [...
16,667
static av_always_inline void sbr_hf_apply_noise(int (*Y)[2], const SoftFloat *s_m, const SoftFloat *q_filt, int noise, int p...
true
FFmpeg
d549f026d8b64b879c3ce3b8c7d153c82aa5eb52
static av_always_inline void sbr_hf_apply_noise(int (*Y)[2], const SoftFloat *s_m, const SoftFloat *q_filt, int noise, int p...
{ "code": [ "static av_always_inline void sbr_hf_apply_noise(int (*Y)[2],", " if (shift < 30) {", " if (shift < 30) {" ], "line_no": [ 1, 37, 37 ] }
static av_always_inline void FUNC_0(int (*Y)[2], const SoftFloat *s_m, const SoftFloat *q_filt, int noise, int phi_sign0, ...
[ "static av_always_inline void FUNC_0(int (*Y)[2],\nconst SoftFloat *s_m,\nconst SoftFloat *q_filt,\nint noise,\nint phi_sign0,\nint phi_sign1,\nint m_max)\n{", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < m_max; VAR_0++) {", "int VAR_1 = Y[VAR_0][0];", "int VAR_2 = Y[VAR_0][1];", "noise = (noise + 1) & 0x1ff;",...
[ 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, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
16,668
av_cold void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) { #if HAVE_ALTIVEC if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) return; if (bit_depth == 8) { c->h264_idct_add = h264_idct_add_altivec; if ...
true
FFmpeg
a03a642d5ceb5f2f7c6ebbf56ff365dfbcdb65eb
av_cold void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) { #if HAVE_ALTIVEC if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) return; if (bit_depth == 8) { c->h264_idct_add = h264_idct_add_altivec; if ...
{ "code": [ " if (chroma_format_idc == 1)" ], "line_no": [ 19 ] }
av_cold void FUNC_0(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) { #if HAVE_ALTIVEC if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) return; if (bit_depth == 8) { c->h264_idct_add = h264_idct_add_altivec; if (chroma_forma...
[ "av_cold void FUNC_0(H264DSPContext *c, const int bit_depth,\nconst int chroma_format_idc)\n{", "#if HAVE_ALTIVEC\nif (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))\nreturn;", "if (bit_depth == 8) {", "c->h264_idct_add = h264_idct_add_altivec;", "if (chroma_format_idc == 1)\nc->h264_idct_add8 = h264_idct_add...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
16,669
static av_cold int atrac1_decode_init(AVCodecContext *avctx) { AT1Ctx *q = avctx->priv_data; avctx->sample_fmt = AV_SAMPLE_FMT_FLT; if (avctx->channels < 1 || avctx->channels > AT1_MAX_CHANNELS) { av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %d\n", avctx->cha...
true
FFmpeg
6dc7dd7af45aa1e341b471fd054f85ae2747775b
static av_cold int atrac1_decode_init(AVCodecContext *avctx) { AT1Ctx *q = avctx->priv_data; avctx->sample_fmt = AV_SAMPLE_FMT_FLT; if (avctx->channels < 1 || avctx->channels > AT1_MAX_CHANNELS) { av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %d\n", avctx->cha...
{ "code": [ " ff_mdct_init(&q->mdct_ctx[0], 6, 1, -1.0/ (1 << 15));", " ff_mdct_init(&q->mdct_ctx[1], 8, 1, -1.0/ (1 << 15));", " ff_mdct_init(&q->mdct_ctx[2], 9, 1, -1.0/ (1 << 15));", " AT1Ctx *q = avctx->priv_data;", " return 0;" ], "line_no": [ 47, 49, 51, 5,...
static av_cold int FUNC_0(AVCodecContext *avctx) { AT1Ctx *q = avctx->priv_data; avctx->sample_fmt = AV_SAMPLE_FMT_FLT; if (avctx->channels < 1 || avctx->channels > AT1_MAX_CHANNELS) { av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %d\n", avctx->channels); ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "AT1Ctx *q = avctx->priv_data;", "avctx->sample_fmt = AV_SAMPLE_FMT_FLT;", "if (avctx->channels < 1 || avctx->channels > AT1_MAX_CHANNELS) {", "av_log(avctx, AV_LOG_ERROR, \"Unsupported number of channels: %d\\n\",\navctx->channels);", "return AVERROR...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], ...
16,670
static int query_formats(AVFilterContext *ctx) { AVFilterFormats *formats = NULL; int fmt; for (fmt = 0; fmt < AV_PIX_FMT_NB; fmt++) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt); if (!(desc->flags & PIX_FMT_PAL || fmt == AV_PIX_FMT_NV21 || fmt...
true
FFmpeg
63a99622876ff79a07862167f243a7d3823b7315
static int query_formats(AVFilterContext *ctx) { AVFilterFormats *formats = NULL; int fmt; for (fmt = 0; fmt < AV_PIX_FMT_NB; fmt++) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt); if (!(desc->flags & PIX_FMT_PAL || fmt == AV_PIX_FMT_NV21 || fmt...
{ "code": [ " if (!(desc->flags & PIX_FMT_PAL ||", " fmt == AV_PIX_FMT_NV21 ||", " fmt == AV_PIX_FMT_NV12))" ], "line_no": [ 15, 17, 19 ] }
static int FUNC_0(AVFilterContext *VAR_0) { AVFilterFormats *formats = NULL; int VAR_1; for (VAR_1 = 0; VAR_1 < AV_PIX_FMT_NB; VAR_1++) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(VAR_1); if (!(desc->flags & PIX_FMT_PAL || VAR_1 == AV_PIX_FMT_NV21 || ...
[ "static int FUNC_0(AVFilterContext *VAR_0)\n{", "AVFilterFormats *formats = NULL;", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < AV_PIX_FMT_NB; VAR_1++) {", "const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(VAR_1);", "if (!(desc->flags & PIX_FMT_PAL ||\nVAR_1 == AV_PIX_FMT_NV21 ||\nVAR_1 == AV_PIX_FMT_NV12)...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17, 19, 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ] ]
16,671
Object *container_get(Object *root, const char *path) { Object *obj, *child; gchar **parts; int i; parts = g_strsplit(path, "/", 0); assert(parts != NULL && parts[0] != NULL && !parts[0][0]); obj = root; for (i = 1; parts[i] != NULL; i++, obj = child) { child = object_re...
true
qemu
f8df5f922152a47b3889921d249e00dab766d950
Object *container_get(Object *root, const char *path) { Object *obj, *child; gchar **parts; int i; parts = g_strsplit(path, "/", 0); assert(parts != NULL && parts[0] != NULL && !parts[0][0]); obj = root; for (i = 1; parts[i] != NULL; i++, obj = child) { child = object_re...
{ "code": [], "line_no": [] }
Object *FUNC_0(Object *root, const char *path) { Object *obj, *child; gchar **parts; int VAR_0; parts = g_strsplit(path, "/", 0); assert(parts != NULL && parts[0] != NULL && !parts[0][0]); obj = root; for (VAR_0 = 1; parts[VAR_0] != NULL; VAR_0++, obj = child) { child = ...
[ "Object *FUNC_0(Object *root, const char *path)\n{", "Object *obj, *child;", "gchar **parts;", "int VAR_0;", "parts = g_strsplit(path, \"/\", 0);", "assert(parts != NULL && parts[0] != NULL && !parts[0][0]);", "obj = root;", "for (VAR_0 = 1; parts[VAR_0] != NULL; VAR_0++, obj = child) {", "child = o...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 32 ], [ 34 ], [ 38 ], [ 42 ], [ 44 ] ]
16,672
int ff_h264_decode_ref_pic_list_reordering(H264Context *h){ int list, index, pic_structure, i; print_short_term(h); print_long_term(h); for(list=0; list<h->list_count; list++){ for (i = 0; i < h->ref_count[list]; i++) COPY_PICTURE(&h->ref_list[list][i], &h->default_ref_list...
true
FFmpeg
01a0283c92b124f185ce4e814a1c5b600f1135e0
int ff_h264_decode_ref_pic_list_reordering(H264Context *h){ int list, index, pic_structure, i; print_short_term(h); print_long_term(h); for(list=0; list<h->list_count; list++){ for (i = 0; i < h->ref_count[list]; i++) COPY_PICTURE(&h->ref_list[list][i], &h->default_ref_list...
{ "code": [ " if (!h->ref_list[list][index].f.data[0]) {", " if (h->default_ref_list[list][0].f.data[0])" ], "line_no": [ 203, 213 ] }
int FUNC_0(H264Context *VAR_0){ int VAR_1, VAR_2, VAR_3, VAR_4; print_short_term(VAR_0); print_long_term(VAR_0); for(VAR_1=0; VAR_1<VAR_0->list_count; VAR_1++){ for (VAR_4 = 0; VAR_4 < VAR_0->ref_count[VAR_1]; VAR_4++) COPY_PICTURE(&VAR_0->ref_list[VAR_1][VAR_4], &VAR_0->de...
[ "int FUNC_0(H264Context *VAR_0){", "int VAR_1, VAR_2, VAR_3, VAR_4;", "print_short_term(VAR_0);", "print_long_term(VAR_0);", "for(VAR_1=0; VAR_1<VAR_0->list_count; VAR_1++){", "for (VAR_4 = 0; VAR_4 < VAR_0->ref_count[VAR_1]; VAR_4++)", "COPY_PICTURE(&VAR_0->ref_list[VAR_1][VAR_4], &VAR_0->default_ref_l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55...
16,673
static void nfs_client_close(NFSClient *client) { if (client->context) { if (client->fh) { nfs_close(client->context, client->fh); } aio_set_fd_handler(client->aio_context, nfs_get_fd(client->context), false, NULL, NULL, NULL, NULL); nfs...
true
qemu
113fe792fd4931dd0538f03859278b8719ee4fa2
static void nfs_client_close(NFSClient *client) { if (client->context) { if (client->fh) { nfs_close(client->context, client->fh); } aio_set_fd_handler(client->aio_context, nfs_get_fd(client->context), false, NULL, NULL, NULL, NULL); nfs...
{ "code": [ " memset(client, 0, sizeof(NFSClient));" ], "line_no": [ 21 ] }
static void FUNC_0(NFSClient *VAR_0) { if (VAR_0->context) { if (VAR_0->fh) { nfs_close(VAR_0->context, VAR_0->fh); } aio_set_fd_handler(VAR_0->aio_context, nfs_get_fd(VAR_0->context), false, NULL, NULL, NULL, NULL); nfs_destroy_context(...
[ "static void FUNC_0(NFSClient *VAR_0)\n{", "if (VAR_0->context) {", "if (VAR_0->fh) {", "nfs_close(VAR_0->context, VAR_0->fh);", "}", "aio_set_fd_handler(VAR_0->aio_context, nfs_get_fd(VAR_0->context),\nfalse, NULL, NULL, NULL, NULL);", "nfs_destroy_context(VAR_0->context);", "}", "memset(VAR_0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
16,674
static void musicpal_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { CPUState *env; qemu_irq *cpu_pic; qemu_irq pic[32]; DeviceState *dev...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
static void musicpal_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { CPUState *env; qemu_irq *cpu_pic; qemu_irq pic[32]; DeviceState *dev...
{ "code": [ " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " ...
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5) { CPUState *env; qemu_irq *cpu_pic; qemu_irq pic[32]; DeviceState *dev; DeviceState *i2c_dev; DeviceState *lc...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5)\n{", "CPUState *env;", "qemu_irq *cpu_pic;", "qemu_irq pic[32];", "DeviceState *dev;", "DeviceState *i2c_dev;", "DeviceState *lcd_dev;", "DeviceState *key_dev;", "#...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
16,675
size_t qemu_mempath_getpagesize(const char *mem_path) { #ifdef CONFIG_LINUX struct statfs fs; int ret; do { ret = statfs(mem_path, &fs); } while (ret != 0 && errno == EINTR); if (ret != 0) { fprintf(stderr, "Couldn't statfs() memory path: %s\n", strerror...
true
qemu
57d1f6d7ce23e79a8ebe4a57bd2363b269b4664b
size_t qemu_mempath_getpagesize(const char *mem_path) { #ifdef CONFIG_LINUX struct statfs fs; int ret; do { ret = statfs(mem_path, &fs); } while (ret != 0 && errno == EINTR); if (ret != 0) { fprintf(stderr, "Couldn't statfs() memory path: %s\n", strerror...
{ "code": [], "line_no": [] }
size_t FUNC_0(const char *mem_path) { #ifdef CONFIG_LINUX struct statfs fs; int ret; do { ret = statfs(mem_path, &fs); } while (ret != 0 && errno == EINTR); if (ret != 0) { fprintf(stderr, "Couldn't statfs() memory path: %s\n", strerror(errno)); ...
[ "size_t FUNC_0(const char *mem_path)\n{", "#ifdef CONFIG_LINUX\nstruct statfs fs;", "int ret;", "do {", "ret = statfs(mem_path, &fs);", "} while (ret != 0 && errno == EINTR);", "if (ret != 0) {", "fprintf(stderr, \"Couldn't statfs() memory path: %s\\n\",\nstrerror(errno));", "exit(1);", "}", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 48 ], [ 50 ] ]
16,676
static int nbd_send_negotiate(NBDClient *client) { int csock = client->sock; char buf[8 + 8 + 8 + 128]; int rc; const int myflags = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM | NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA); /* Negotiation header without options: [...
true
qemu
8ffaaba0e939f2a284bb23d1f6f7f9e2104a97e2
static int nbd_send_negotiate(NBDClient *client) { int csock = client->sock; char buf[8 + 8 + 8 + 128]; int rc; const int myflags = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM | NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA); socket_...
{ "code": [ " memset(buf + 28, 0, 124);" ], "line_no": [ 81 ] }
static int FUNC_0(NBDClient *VAR_0) { int VAR_1 = VAR_0->sock; char VAR_2[8 + 8 + 8 + 128]; int VAR_3; const int VAR_4 = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM | NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA); socket_set_block(V...
[ "static int FUNC_0(NBDClient *VAR_0)\n{", "int VAR_1 = VAR_0->sock;", "char VAR_2[8 + 8 + 8 + 128];", "int VAR_3;", "const int VAR_4 = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |\nNBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA);", "socket_set_block(VAR_1);", "VAR_3 = -EINVAL;", "TRACE(\"Beginning negotiation....
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 69 ], [ 71 ], [ 73 ], [ 75 ], [ 77 ], [ 79 ], [ 81 ], [ 85 ], [...
16,677
static void dmix_sub_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len) { int i; for (i = 0; i < len; i++) dst[i] -= mul15(src[i], coeff); }
true
FFmpeg
9244b839b788e4677019041907ff5a4378a23490
static void dmix_sub_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len) { int i; for (i = 0; i < len; i++) dst[i] -= mul15(src[i], coeff); }
{ "code": [ " dst[i] -= mul15(src[i], coeff);" ], "line_no": [ 11 ] }
static void FUNC_0(int32_t *VAR_0, const int32_t *VAR_1, int VAR_2, ptrdiff_t VAR_3) { int VAR_4; for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) VAR_0[VAR_4] -= mul15(VAR_1[VAR_4], VAR_2); }
[ "static void FUNC_0(int32_t *VAR_0, const int32_t *VAR_1, int VAR_2, ptrdiff_t VAR_3)\n{", "int VAR_4;", "for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++)", "VAR_0[VAR_4] -= mul15(VAR_1[VAR_4], VAR_2);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
16,678
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { AVStream *st = s->streams[0]; CaffContext *caf = s->priv_data; int64_t pos; timestamp = FFMAX(timestamp, 0); if (caf->frames_per_packet > 0 && caf->bytes_per_packet > 0) { ...
true
FFmpeg
75f418064ecf5c2713151cbe6b3a716d2c047f1d
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { AVStream *st = s->streams[0]; CaffContext *caf = s->priv_data; int64_t pos; timestamp = FFMAX(timestamp, 0); if (caf->frames_per_packet > 0 && caf->bytes_per_packet > 0) { ...
{ "code": [ " avio_seek(s->pb, pos + caf->data_start, SEEK_SET);" ], "line_no": [ 49 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { AVStream *st = VAR_0->streams[0]; CaffContext *caf = VAR_0->priv_data; int64_t pos; VAR_2 = FFMAX(VAR_2, 0); if (caf->frames_per_packet > 0 && caf->bytes_per_packet > 0) { ...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int VAR_3)\n{", "AVStream *st = VAR_0->streams[0];", "CaffContext *caf = VAR_0->priv_data;", "int64_t pos;", "VAR_2 = FFMAX(VAR_2, 0);", "if (caf->frames_per_packet > 0 && caf->bytes_per_packet > 0) {", "pos = caf->bytes_per_packet * ...
[ 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 ], [ 15 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
16,679
static int tta_read_header(AVFormatContext *s) { TTAContext *c = s->priv_data; AVStream *st; int i, channels, bps, samplerate; uint64_t framepos, start_offset; uint32_t nb_samples, crc; ff_id3v1_read(s); start_offset = avio_tell(s->pb); ffio_init_checksum(s->pb, tta_check_cr...
true
FFmpeg
6a0cd529a35190d9374b0b26504e71857cd67b83
static int tta_read_header(AVFormatContext *s) { TTAContext *c = s->priv_data; AVStream *st; int i, channels, bps, samplerate; uint64_t framepos, start_offset; uint32_t nb_samples, crc; ff_id3v1_read(s); start_offset = avio_tell(s->pb); ffio_init_checksum(s->pb, tta_check_cr...
{ "code": [ " av_add_index_entry(st, framepos, i * c->frame_size, size, 0,", " AVINDEX_KEYFRAME);" ], "line_no": [ 135, 137 ] }
static int FUNC_0(AVFormatContext *VAR_0) { TTAContext *c = VAR_0->priv_data; AVStream *st; int VAR_1, VAR_2, VAR_3, VAR_4; uint64_t framepos, start_offset; uint32_t nb_samples, crc; ff_id3v1_read(VAR_0); start_offset = avio_tell(VAR_0->pb); ffio_init_checksum(VAR_0->pb, tta...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "TTAContext *c = VAR_0->priv_data;", "AVStream *st;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "uint64_t framepos, start_offset;", "uint32_t nb_samples, crc;", "ff_id3v1_read(VAR_0);", "start_offset = avio_tell(VAR_0->pb);", "ffio_init_checksum(VAR_0->pb, tt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
16,680
static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]) { int plane, i, j; for (plane=0; plane<4; plane++) { int length= (plane==0 || plane==3) ? c->srcW : -((-c->srcW )>>c->chrD...
true
FFmpeg
55eda370cb6fe9e4c21539f3f90fd940fcf7a103
static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]) { int plane, i, j; for (plane=0; plane<4; plane++) { int length= (plane==0 || plane==3) ? c->srcW : -((-c->srcW )>>c->chrD...
{ "code": [ " dither_8x8_1, 1); \\", " dither_8x8_1, 1); \\", " dither_8x8_3, 2); \\", " dither_8x8_128, 7); \\", " dither_...
static int FUNC_0(SwsContext *VAR_0, const uint8_t* VAR_1[], int VAR_2[], int VAR_3, int VAR_4, uint8_t* VAR_5[], int VAR_6[]) { int VAR_7, VAR_8, VAR_9; for (VAR_7=0; VAR_7<4; VAR_7++) { int VAR_10= (VAR_7==0 || VAR_7==3) ? VAR_0->srcW : -((-VAR_0->srcW )>>VAR_0->chr...
[ "static int FUNC_0(SwsContext *VAR_0, const uint8_t* VAR_1[], int VAR_2[], int VAR_3,\nint VAR_4, uint8_t* VAR_5[], int VAR_6[])\n{", "int VAR_7, VAR_8, VAR_9;", "for (VAR_7=0; VAR_7<4; VAR_7++) {", "int VAR_10= (VAR_7==0 || VAR_7==3) ? VAR_0->srcW : -((-VAR_0->srcW )>>VAR_0->chrDstHSubSample);", "int VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
16,681
static int nbd_co_receive_offset_data_payload(NBDClientSession *s, uint64_t orig_offset, QEMUIOVector *qiov, Error **errp) { QEMUIOVector sub_qiov; uint64_t offset; size_t data_size; int ret; NBDStruc...
true
qemu
b4176cb314995ad225d6c2b531568801feb04f3f
static int nbd_co_receive_offset_data_payload(NBDClientSession *s, uint64_t orig_offset, QEMUIOVector *qiov, Error **errp) { QEMUIOVector sub_qiov; uint64_t offset; size_t data_size; int ret; NBDStruc...
{ "code": [ " if (chunk->length < sizeof(offset)) {" ], "line_no": [ 25 ] }
static int FUNC_0(NBDClientSession *VAR_0, uint64_t VAR_1, QEMUIOVector *VAR_2, Error **VAR_3) { QEMUIOVector sub_qiov; uint64_t offset; size_t data_size; int VAR_4; NBDStructuredReplyChunk *chunk = &...
[ "static int FUNC_0(NBDClientSession *VAR_0,\nuint64_t VAR_1,\nQEMUIOVector *VAR_2, Error **VAR_3)\n{", "QEMUIOVector sub_qiov;", "uint64_t offset;", "size_t data_size;", "int VAR_4;", "NBDStructuredReplyChunk *chunk = &VAR_0->reply.structured;", "assert(nbd_reply_is_structured(&VAR_0->reply));", "if (...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53,...
16,682
void xen_pt_msi_disable(XenPCIPassthroughState *s) { XenPTMSI *msi = s->msi; if (!msi) { return; } xen_pt_msi_set_enable(s, false); msi_msix_disable(s, msi_addr64(msi), msi->data, msi->pirq, false, msi->initialized); /* clear msi info */ msi->fl...
true
qemu
c976437c7dba9c7444fb41df45468968aaa326ad
void xen_pt_msi_disable(XenPCIPassthroughState *s) { XenPTMSI *msi = s->msi; if (!msi) { return; } xen_pt_msi_set_enable(s, false); msi_msix_disable(s, msi_addr64(msi), msi->data, msi->pirq, false, msi->initialized); msi->flags = 0; msi->m...
{ "code": [ " msi->flags = 0;" ], "line_no": [ 29 ] }
void FUNC_0(XenPCIPassthroughState *VAR_0) { XenPTMSI *msi = VAR_0->msi; if (!msi) { return; } xen_pt_msi_set_enable(VAR_0, false); msi_msix_disable(VAR_0, msi_addr64(msi), msi->data, msi->pirq, false, msi->initialized); msi->flags = 0; ms...
[ "void FUNC_0(XenPCIPassthroughState *VAR_0)\n{", "XenPTMSI *msi = VAR_0->msi;", "if (!msi) {", "return;", "}", "xen_pt_msi_set_enable(VAR_0, false);", "msi_msix_disable(VAR_0, msi_addr64(msi), msi->data, msi->pirq, false,\nmsi->initialized);", "msi->flags = 0;", "msi->mapped = false;", "msi->pirq ...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21, 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
16,683
static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW, int xInc, int16_t *filter, int16_t *filterPos, long filterSize) { #ifdef HAVE_MMX assert(filterSize % 4 == 0 && filterSize>0); if(filterSize==4) // Always true for upscaling, sometimes for down, too. { long counter= -2*d...
true
FFmpeg
2da0d70d5eebe42f9fcd27ee554419ebe2a5da06
static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW, int xInc, int16_t *filter, int16_t *filterPos, long filterSize) { #ifdef HAVE_MMX assert(filterSize % 4 == 0 && filterSize>0); if(filterSize==4) { long counter= -2*dstW; filter-= counter*2; filterPos-= counter/2; ...
{ "code": [ "\t\tasm volatile(", "\t\tasm volatile(", "\tint i;", "\tfor(i=0; i<dstW; i++)", "#endif", "#endif", "#endif", "#endif", "#endif", "\tint i;", "#endif", "#endif", "#endif", "#endif", "\tint i;", "#endif", "#endif", "#endif", "#end...
static inline void FUNC_0(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW, int xInc, int16_t *filter, int16_t *filterPos, long filterSize) { #ifdef HAVE_MMX assert(filterSize % 4 == 0 && filterSize>0); if(filterSize==4) { long counter= -2*dstW; filter-= counter*2; filterPos-= counter/2; ...
[ "static inline void FUNC_0(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW, int xInc,\nint16_t *filter, int16_t *filterPos, long filterSize)\n{", "#ifdef HAVE_MMX\nassert(filterSize % 4 == 0 && filterSize>0);", "if(filterSize==4)\n{", "long counter= -2*dstW;", "filter-= counter*2;", "filterPos-= co...
[ 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,...
16,684
static void qpeg_decode_inter(QpegContext *qctx, uint8_t *dst, int stride, int width, int height, int delta, const uint8_t *ctable, uint8_t *refdata) { int i, j; int code; int filled = 0; int orig_height; ...
true
FFmpeg
bba9d8bdfb208b0ec2ccf182530347151ee3528b
static void qpeg_decode_inter(QpegContext *qctx, uint8_t *dst, int stride, int width, int height, int delta, const uint8_t *ctable, uint8_t *refdata) { int i, j; int code; int filled = 0; int orig_height; ...
{ "code": [ " (height - me_y - me_h < 0) || (height - me_y > orig_height) ||", " av_log(NULL, AV_LOG_ERROR, \"Bogus motion vector (%i,%i), block size %ix%i at %i,%i\\n\"," ], "line_no": [ 101, 105 ] }
static void FUNC_0(QpegContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, const uint8_t *VAR_6, uint8_t *VAR_7) { int VAR_8, VAR_9; int VAR_10; int VAR_11 = 0; int VAR_12; ...
[ "static void FUNC_0(QpegContext *VAR_0, uint8_t *VAR_1,\nint VAR_2, int VAR_3, int VAR_4,\nint VAR_5, const uint8_t *VAR_6,\nuint8_t *VAR_7)\n{", "int VAR_8, VAR_9;", "int VAR_10;", "int VAR_11 = 0;", "int VAR_12;", "for(VAR_8 = 0; VAR_8 < VAR_4; VAR_8++)", "memcpy(VAR_7 + (VAR_8 * VAR_3), VAR_1 + (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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
16,686
static int unpack(const uint8_t *src, const uint8_t *src_end, unsigned char *dst, int width, int height) { unsigned char *dst_end = dst + width*height; int size,size1,size2,offset,run; unsigned char *dst_start = dst; if (src[0] & 0x01) src += 5; else src += 2; if (src...
true
FFmpeg
decae20f3662650ecb9602c0c760af275a1e7db3
static int unpack(const uint8_t *src, const uint8_t *src_end, unsigned char *dst, int width, int height) { unsigned char *dst_end = dst + width*height; int size,size1,size2,offset,run; unsigned char *dst_start = dst; if (src[0] & 0x01) src += 5; else src += 2; if (src...
{ "code": [ " int size,size1,size2,offset,run;" ], "line_no": [ 5 ] }
static int FUNC_0(const uint8_t *VAR_0, const uint8_t *VAR_1, unsigned char *VAR_2, int VAR_3, int VAR_4) { unsigned char *VAR_5 = VAR_2 + VAR_3*VAR_4; int VAR_6,VAR_7,VAR_8,VAR_9,VAR_10; unsigned char *VAR_11 = VAR_2; if (VAR_0[0] & 0x01) VAR_0 += 5; else VAR_0 += 2; ...
[ "static int FUNC_0(const uint8_t *VAR_0, const uint8_t *VAR_1, unsigned char *VAR_2, int VAR_3, int VAR_4) {", "unsigned char *VAR_5 = VAR_2 + VAR_3*VAR_4;", "int VAR_6,VAR_7,VAR_8,VAR_9,VAR_10;", "unsigned char *VAR_11 = VAR_2;", "if (VAR_0[0] & 0x01)\nVAR_0 += 5;", "else\nVAR_0 += 2;", "if (VAR_0+3>VA...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], ...
16,687
void qmp_block_resize(bool has_device, const char *device, bool has_node_name, const char *node_name, int64_t size, Error **errp) { Error *local_err = NULL; BlockDriverState *bs; int ret; bs = bdrv_lookup_bs(has_device ? device : NULL, ...
true
qemu
9c75e168bc388094c04aabb6fc59c91abe06e81c
void qmp_block_resize(bool has_device, const char *device, bool has_node_name, const char *node_name, int64_t size, Error **errp) { Error *local_err = NULL; BlockDriverState *bs; int ret; bs = bdrv_lookup_bs(has_device ? device : NULL, ...
{ "code": [], "line_no": [] }
void FUNC_0(bool VAR_0, const char *VAR_1, bool VAR_2, const char *VAR_3, int64_t VAR_4, Error **VAR_5) { Error *local_err = NULL; BlockDriverState *bs; int VAR_6; bs = bdrv_lookup_bs(VAR_0 ? VAR_1 : NULL, VAR_2 ? VAR_3 : NULL, ...
[ "void FUNC_0(bool VAR_0, const char *VAR_1,\nbool VAR_2, const char *VAR_3,\nint64_t VAR_4, Error **VAR_5)\n{", "Error *local_err = NULL;", "BlockDriverState *bs;", "int VAR_6;", "bs = bdrv_lookup_bs(VAR_0 ? VAR_1 : NULL,\nVAR_2 ? VAR_3 : NULL,\n&local_err);", "if (local_err) {", "error_propagate(VAR_5,...
[ 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 ], [ 18 ], [ 19 ], [ 20 ], [ 21, 22 ], [ 23, 24 ], [ 25 ],...
16,688
static int32_t bmdma_prepare_buf(IDEDMA *dma, int32_t limit) { BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); IDEState *s = bmdma_active_if(bm); PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); struct { uint32_t addr; uint32_t size; } prd; int l, len; pci_dma_sgli...
true
qemu
9fbf0fa81fca8f527669dd4fa72662d66e7d6329
static int32_t bmdma_prepare_buf(IDEDMA *dma, int32_t limit) { BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); IDEState *s = bmdma_active_if(bm); PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); struct { uint32_t addr; uint32_t size; } prd; int l, len; pci_dma_sgli...
{ "code": [ " if (s->sg.size > INT32_MAX) {", " error_report(\"IDE: sglist describes more than 2GiB.\");", " break;" ], "line_no": [ 93, 95, 97 ] }
static int32_t FUNC_0(IDEDMA *dma, int32_t limit) { BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); IDEState *s = bmdma_active_if(bm); PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); struct { uint32_t addr; uint32_t size; } VAR_0; int VAR_1, VAR_2; pci_dma_sglist_...
[ "static int32_t FUNC_0(IDEDMA *dma, int32_t limit)\n{", "BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma);", "IDEState *s = bmdma_active_if(bm);", "PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev);", "struct {", "uint32_t addr;", "uint32_t size;", "} VAR_0;", "int VAR_1, VAR_2;", "pci_dma_sglist_init(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
16,689
static inline void RENAME(yvu9toyv12)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride) { /* Y Plane */ memcpy(ydst, ysrc, width*height); /* XXX: implement upscaling for U,V */ }
true
FFmpeg
6e42e6c4b410dbef8b593c2d796a5dad95f89ee4
static inline void RENAME(yvu9toyv12)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride) { memcpy(ydst, ysrc, width*height); }
{ "code": [ "\tuint8_t *ydst, uint8_t *udst, uint8_t *vdst,", "\tlong width, long height, long lumStride, long chromStride)", "\tmemcpy(ydst, ysrc, width*height);" ], "line_no": [ 3, 5, 11 ] }
static inline void FUNC_0(yvu9toyv12)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride) { memcpy(ydst, ysrc, width*height); }
[ "static inline void FUNC_0(yvu9toyv12)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc,\nuint8_t *ydst, uint8_t *udst, uint8_t *vdst,\nlong width, long height, long lumStride, long chromStride)\n{", "memcpy(ydst, ysrc, width*height);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 11 ], [ 17 ] ]
16,690
void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len) { assert(qiov->nalloc != -1); if (qiov->niov == qiov->nalloc) { qiov->nalloc = 2 * qiov->nalloc + 1; qiov->iov = g_realloc(qiov->iov, qiov->nalloc * sizeof(struct iovec)); } qiov->iov[qiov->niov].iov_base = base; ...
true
qemu
e1cf5582644ef63528993fb2b88dd3b43b9914c6
void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len) { assert(qiov->nalloc != -1); if (qiov->niov == qiov->nalloc) { qiov->nalloc = 2 * qiov->nalloc + 1; qiov->iov = g_realloc(qiov->iov, qiov->nalloc * sizeof(struct iovec)); } qiov->iov[qiov->niov].iov_base = base; ...
{ "code": [ " qiov->iov = g_realloc(qiov->iov, qiov->nalloc * sizeof(struct iovec));" ], "line_no": [ 13 ] }
void FUNC_0(QEMUIOVector *VAR_0, void *VAR_1, size_t VAR_2) { assert(VAR_0->nalloc != -1); if (VAR_0->niov == VAR_0->nalloc) { VAR_0->nalloc = 2 * VAR_0->nalloc + 1; VAR_0->iov = g_realloc(VAR_0->iov, VAR_0->nalloc * sizeof(struct iovec)); } VAR_0->iov[VAR_0->niov].iov_base = VA...
[ "void FUNC_0(QEMUIOVector *VAR_0, void *VAR_1, size_t VAR_2)\n{", "assert(VAR_0->nalloc != -1);", "if (VAR_0->niov == VAR_0->nalloc) {", "VAR_0->nalloc = 2 * VAR_0->nalloc + 1;", "VAR_0->iov = g_realloc(VAR_0->iov, VAR_0->nalloc * sizeof(struct iovec));", "}", "VAR_0->iov[VAR_0->niov].iov_base = VAR_1;"...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
16,691
int ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts) { if (ctb_addr_ts == s->ps.pps->ctb_addr_rs_to_ts[s->sh.slice_ctb_addr_rs]) { int ret = cabac_init_decoder(s); if (ret < 0) return ret; if (s->sh.dependent_slice_segment_flag == 0 || (s->ps.pps->tiles_enab...
true
FFmpeg
4ff94558f23a5de43aed4ca3429963dd1d995250
int ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts) { if (ctb_addr_ts == s->ps.pps->ctb_addr_rs_to_ts[s->sh.slice_ctb_addr_rs]) { int ret = cabac_init_decoder(s); if (ret < 0) return ret; if (s->sh.dependent_slice_segment_flag == 0 || (s->ps.pps->tiles_enab...
{ "code": [ " cabac_reinit(s->HEVClc);", " int ret = cabac_init_decoder(s);", " if (ret < 0)", " return ret;", " cabac_reinit(s->HEVClc);", " int ret = cabac_init_decoder(s);", " ...
int FUNC_0(HEVCContext *VAR_0, int VAR_1) { if (VAR_1 == VAR_0->ps.pps->ctb_addr_rs_to_ts[VAR_0->sh.slice_ctb_addr_rs]) { int VAR_3 = cabac_init_decoder(VAR_0); if (VAR_3 < 0) return VAR_3; if (VAR_0->sh.dependent_slice_segment_flag == 0 || (VAR_0->ps.pps->tile...
[ "int FUNC_0(HEVCContext *VAR_0, int VAR_1)\n{", "if (VAR_1 == VAR_0->ps.pps->ctb_addr_rs_to_ts[VAR_0->sh.slice_ctb_addr_rs]) {", "int VAR_3 = cabac_init_decoder(VAR_0);", "if (VAR_3 < 0)\nreturn VAR_3;", "if (VAR_0->sh.dependent_slice_segment_flag == 0 ||\n(VAR_0->ps.pps->tiles_enabled_flag &&\nVAR_0->ps.pp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15, 17, 19 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [ 51 ], [...