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
4,423
void helper_discard_movcal_backup(CPUSH4State *env) { memory_content *current = env->movcal_backup; while(current) { memory_content *next = current->next; free (current); env->movcal_backup = current = next; if (current == NULL) env->movcal_backup_tail = &(env->movcal_backup); } }...
true
qemu
01a720125f5e2f0a23d2682b39dead2fcc820066
void helper_discard_movcal_backup(CPUSH4State *env) { memory_content *current = env->movcal_backup; while(current) { memory_content *next = current->next; free (current); env->movcal_backup = current = next; if (current == NULL) env->movcal_backup_tail = &(env->movcal_backup); } }...
{ "code": [ "\tfree (current);" ], "line_no": [ 15 ] }
void FUNC_0(CPUSH4State *VAR_0) { memory_content *current = VAR_0->movcal_backup; while(current) { memory_content *next = current->next; free (current); VAR_0->movcal_backup = current = next; if (current == NULL) VAR_0->movcal_backup_tail = &(VAR_0->movcal_backup); } }
[ "void FUNC_0(CPUSH4State *VAR_0)\n{", "memory_content *current = VAR_0->movcal_backup;", "while(current)\n{", "memory_content *next = current->next;", "free (current);", "VAR_0->movcal_backup = current = next;", "if (current == NULL)\nVAR_0->movcal_backup_tail = &(VAR_0->movcal_backup);", "}", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ] ]
4,425
static FlatView *address_space_get_flatview(AddressSpace *as) { FlatView *view; rcu_read_lock(); view = atomic_rcu_read(&as->current_map); flatview_ref(view); rcu_read_unlock(); return view; }
true
qemu
447b0d0b9ee8a0ac216c3186e0f3c427a1001f0c
static FlatView *address_space_get_flatview(AddressSpace *as) { FlatView *view; rcu_read_lock(); view = atomic_rcu_read(&as->current_map); flatview_ref(view); rcu_read_unlock(); return view; }
{ "code": [ " view = atomic_rcu_read(&as->current_map);", " flatview_ref(view);" ], "line_no": [ 11, 13 ] }
static FlatView *FUNC_0(AddressSpace *as) { FlatView *view; rcu_read_lock(); view = atomic_rcu_read(&as->current_map); flatview_ref(view); rcu_read_unlock(); return view; }
[ "static FlatView *FUNC_0(AddressSpace *as)\n{", "FlatView *view;", "rcu_read_lock();", "view = atomic_rcu_read(&as->current_map);", "flatview_ref(view);", "rcu_read_unlock();", "return view;", "}" ]
[ 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
4,426
static int dx2_decode_slice_444(GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) { int x, y; int width = frame->width; int ystride = frame->linesize[0]; int ustride = frame->linesize[1]; int vstrid...
true
FFmpeg
6e1a167c5564085385488b4f579e9efb987d4bfa
static int dx2_decode_slice_444(GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) { int x, y; int width = frame->width; int ystride = frame->linesize[0]; int ustride = frame->linesize[1]; int vstrid...
{ "code": [ " for (y = 0; y < left && get_bits_left(gb) > 16; y++) {", " for (y = 0; y < left && get_bits_left(gb) > 16; y++) {", " for (y = 0; y < left && get_bits_left(gb) > 16; y++) {" ], "line_no": [ 33, 33, 33 ] }
static int FUNC_0(GetBitContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3, uint8_t VAR_4[3][8]) { int VAR_5, VAR_6; int VAR_7 = VAR_1->VAR_7; int VAR_8 = VAR_1->linesize[0]; int VAR_9 = VAR_1->linesize[1]; int VAR_10 = ...
[ "static int FUNC_0(GetBitContext *VAR_0, AVFrame *VAR_1,\nint VAR_2, int VAR_3,\nuint8_t VAR_4[3][8])\n{", "int VAR_5, VAR_6;", "int VAR_7 = VAR_1->VAR_7;", "int VAR_8 = VAR_1->linesize[0];", "int VAR_9 = VAR_1->linesize[1];", "int VAR_10 = VAR_1->linesize[2];", "uint8_t *Y = VAR_1->data[0] + VAR_8 *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
4,428
static size_t qemu_rdma_fill(RDMAContext *rdma, uint8_t *buf, int size, int idx) { size_t len = 0; if (rdma->wr_data[idx].control_len) { DDDPRINTF("RDMA %" PRId64 " of %d bytes already in buffer\n", rdma->wr_data[idx].control_len, size); ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static size_t qemu_rdma_fill(RDMAContext *rdma, uint8_t *buf, int size, int idx) { size_t len = 0; if (rdma->wr_data[idx].control_len) { DDDPRINTF("RDMA %" PRId64 " of %d bytes already in buffer\n", rdma->wr_data[idx].control_len, size); ...
{ "code": [], "line_no": [] }
static size_t FUNC_0(RDMAContext *rdma, uint8_t *buf, int size, int idx) { size_t len = 0; if (rdma->wr_data[idx].control_len) { DDDPRINTF("RDMA %" PRId64 " of %d bytes already in buffer\n", rdma->wr_data[idx].control_len, size); len = ...
[ "static size_t FUNC_0(RDMAContext *rdma, uint8_t *buf,\nint size, int idx)\n{", "size_t len = 0;", "if (rdma->wr_data[idx].control_len) {", "DDDPRINTF(\"RDMA %\" PRId64 \" of %d bytes already in buffer\\n\",\nrdma->wr_data[idx].control_len, size);", "len = MIN(size, rdma->wr_data[idx].control_len);", "mem...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
4,429
static void new_audio_stream(AVFormatContext *oc, int file_idx) { AVStream *st; AVOutputStream *ost; AVCodec *codec= NULL; AVCodecContext *audio_enc; enum CodecID codec_id; st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0); if (!st) { ...
true
FFmpeg
4618637aca3b771b0bfb8fe15f3a080dacf9f0c0
static void new_audio_stream(AVFormatContext *oc, int file_idx) { AVStream *st; AVOutputStream *ost; AVCodec *codec= NULL; AVCodecContext *audio_enc; enum CodecID codec_id; st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0); if (!st) { ...
{ "code": [ " enum CodecID codec_id;", " enum CodecID codec_id;", " enum CodecID codec_id;" ], "line_no": [ 13, 13, 13 ] }
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1) { AVStream *st; AVOutputStream *ost; AVCodec *codec= NULL; AVCodecContext *audio_enc; enum CodecID VAR_2; st = av_new_stream(VAR_0, VAR_0->nb_streams < nb_streamid_map ? streamid_map[VAR_0->nb_streams] : 0); if (!st) { ...
[ "static void FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "AVStream *st;", "AVOutputStream *ost;", "AVCodec *codec= NULL;", "AVCodecContext *audio_enc;", "enum CodecID VAR_2;", "st = av_new_stream(VAR_0, VAR_0->nb_streams < nb_streamid_map ? streamid_map[VAR_0->nb_streams] : 0);", "if (!st) {", "f...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [...
4,430
uint32_t helper_efdctuf (uint64_t val) { CPU_DoubleU u; float64 tmp; u.ll = val; /* NaN are not treated the same way IEEE 754 does */ if (unlikely(float64_is_nan(u.d))) return 0; tmp = uint64_to_float64(1ULL << 32, &env->vec_status); u.d = float64_mul(u.d, tmp, &env->vec_s...
false
qemu
185698715dfb18c82ad2a5dbc169908602d43e81
uint32_t helper_efdctuf (uint64_t val) { CPU_DoubleU u; float64 tmp; u.ll = val; if (unlikely(float64_is_nan(u.d))) return 0; tmp = uint64_to_float64(1ULL << 32, &env->vec_status); u.d = float64_mul(u.d, tmp, &env->vec_status); return float64_to_uint32(u.d, &env->v...
{ "code": [], "line_no": [] }
uint32_t FUNC_0 (uint64_t val) { CPU_DoubleU u; float64 tmp; u.ll = val; if (unlikely(float64_is_nan(u.d))) return 0; tmp = uint64_to_float64(1ULL << 32, &env->vec_status); u.d = float64_mul(u.d, tmp, &env->vec_status); return float64_to_uint32(u.d, &env->vec_statu...
[ "uint32_t FUNC_0 (uint64_t val)\n{", "CPU_DoubleU u;", "float64 tmp;", "u.ll = val;", "if (unlikely(float64_is_nan(u.d)))\nreturn 0;", "tmp = uint64_to_float64(1ULL << 32, &env->vec_status);", "u.d = float64_mul(u.d, tmp, &env->vec_status);", "return float64_to_uint32(u.d, &env->vec_status);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
4,431
static void bt_dummy_lmp_disconnect_master(struct bt_link_s *link) { fprintf(stderr, "%s: stray LMP_detach received, fixme\n", __func__); exit(-1); }
false
qemu
bf937a7965c1d1a6dce4f615d0ead2e2ab505004
static void bt_dummy_lmp_disconnect_master(struct bt_link_s *link) { fprintf(stderr, "%s: stray LMP_detach received, fixme\n", __func__); exit(-1); }
{ "code": [], "line_no": [] }
static void FUNC_0(struct bt_link_s *VAR_0) { fprintf(stderr, "%s: stray LMP_detach received, fixme\n", __func__); exit(-1); }
[ "static void FUNC_0(struct bt_link_s *VAR_0)\n{", "fprintf(stderr, \"%s: stray LMP_detach received, fixme\\n\", __func__);", "exit(-1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
4,432
static CharDriverState *qemu_chr_open_win_path(const char *filename) { CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr_close; if (w...
false
qemu
bd5c51ee6c4f1c79cae5ad2516d711a27b4ea8ec
static CharDriverState *qemu_chr_open_win_path(const char *filename) { CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr_close; if (w...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(const char *filename) { CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr_close; if (win_chr_init(chr,...
[ "static CharDriverState *FUNC_0(const char *filename)\n{", "CharDriverState *chr;", "WinCharState *s;", "chr = g_malloc0(sizeof(CharDriverState));", "s = g_malloc0(sizeof(WinCharState));", "chr->opaque = s;", "chr->chr_write = win_chr_write;", "chr->chr_close = win_chr_close;", "if (win_chr_init(chr...
[ 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 ] ]
4,433
void HELPER(pka)(CPUS390XState *env, uint64_t dest, uint64_t src, uint32_t srclen) { uintptr_t ra = GETPC(); int i; /* The destination operand is always 16 bytes long. */ const int destlen = 16; /* The operands are processed from right to left. */ src += srclen - 1; ...
false
qemu
4e256bef6552ee0b4c0c844077b44e4c7fcc05fc
void HELPER(pka)(CPUS390XState *env, uint64_t dest, uint64_t src, uint32_t srclen) { uintptr_t ra = GETPC(); int i; const int destlen = 16; src += srclen - 1; dest += destlen - 1; for (i = 0; i < destlen; i++) { uint8_t b = 0; ...
{ "code": [], "line_no": [] }
void FUNC_0(pka)(CPUS390XState *env, uint64_t dest, uint64_t src, uint32_t srclen) { uintptr_t ra = GETPC(); int VAR_0; const int VAR_1 = 16; src += srclen - 1; dest += VAR_1 - 1; for (VAR_0 = 0; VAR_0 < VAR_1; VAR_0++) { uint8_t b = 0; ...
[ "void FUNC_0(pka)(CPUS390XState *env, uint64_t dest, uint64_t src,\nuint32_t srclen)\n{", "uintptr_t ra = GETPC();", "int VAR_0;", "const int VAR_1 = 16;", "src += srclen - 1;", "dest += VAR_1 - 1;", "for (VAR_0 = 0; VAR_0 < VAR_1; VAR_0++) {", "uint8_t b = 0;", "if (VAR_0 == 0) {", "b = 0xc;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
4,434
static void piix3_update_irq_levels(PIIX3State *piix3) { int pirq; piix3->pic_levels = 0; for (pirq = 0; pirq < PIIX_NUM_PIRQS; pirq++) { piix3_set_irq_level(piix3, pirq, pci_bus_get_irq_level(piix3->dev.bus, pirq)); } }
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void piix3_update_irq_levels(PIIX3State *piix3) { int pirq; piix3->pic_levels = 0; for (pirq = 0; pirq < PIIX_NUM_PIRQS; pirq++) { piix3_set_irq_level(piix3, pirq, pci_bus_get_irq_level(piix3->dev.bus, pirq)); } }
{ "code": [], "line_no": [] }
static void FUNC_0(PIIX3State *VAR_0) { int VAR_1; VAR_0->pic_levels = 0; for (VAR_1 = 0; VAR_1 < PIIX_NUM_PIRQS; VAR_1++) { piix3_set_irq_level(VAR_0, VAR_1, pci_bus_get_irq_level(VAR_0->dev.bus, VAR_1)); } }
[ "static void FUNC_0(PIIX3State *VAR_0)\n{", "int VAR_1;", "VAR_0->pic_levels = 0;", "for (VAR_1 = 0; VAR_1 < PIIX_NUM_PIRQS; VAR_1++) {", "piix3_set_irq_level(VAR_0, VAR_1,\npci_bus_get_irq_level(VAR_0->dev.bus, VAR_1));", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ] ]
4,435
static int get_pci_config_device(QEMUFile *f, void *pv, size_t size) { PCIDevice *s = container_of(pv, PCIDevice, config); uint8_t *config; int i; assert(size == pci_config_size(s)); config = qemu_malloc(size); qemu_get_buffer(f, config, size); for (i = 0; i < size; ++i) { ...
false
qemu
f9aebe2ef52ff0dcb733999f57e00a7b430303c6
static int get_pci_config_device(QEMUFile *f, void *pv, size_t size) { PCIDevice *s = container_of(pv, PCIDevice, config); uint8_t *config; int i; assert(size == pci_config_size(s)); config = qemu_malloc(size); qemu_get_buffer(f, config, size); for (i = 0; i < size; ++i) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2) { PCIDevice *s = container_of(VAR_1, PCIDevice, config); uint8_t *config; int VAR_3; assert(VAR_2 == pci_config_size(s)); config = qemu_malloc(VAR_2); qemu_get_buffer(VAR_0, config, VAR_2); for (VAR_3 = 0; VAR_3 < VAR_...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{", "PCIDevice *s = container_of(VAR_1, PCIDevice, config);", "uint8_t *config;", "int VAR_3;", "assert(VAR_2 == pci_config_size(s));", "config = qemu_malloc(VAR_2);", "qemu_get_buffer(VAR_0, config, VAR_2);", "for (VAR_3 = 0; VAR_3 < VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ] ]
4,436
static int smacker_decode_tree(GetBitContext *gb, HuffContext *hc, uint32_t prefix, int length) { if(length > 32) { av_log(NULL, AV_LOG_ERROR, "length too long\n"); return AVERROR_INVALIDDATA; } if(!get_bits1(gb)){ //Leaf if(hc->current >= 256){ av_log(NULL, AV_LO...
false
FFmpeg
2c69fcc2ffe671649e56dc981e9f4cd9d46a61be
static int smacker_decode_tree(GetBitContext *gb, HuffContext *hc, uint32_t prefix, int length) { if(length > 32) { av_log(NULL, AV_LOG_ERROR, "length too long\n"); return AVERROR_INVALIDDATA; } if(!get_bits1(gb)){ if(hc->current >= 256){ av_log(NULL, AV_LOG_ERRO...
{ "code": [], "line_no": [] }
static int FUNC_0(GetBitContext *VAR_0, HuffContext *VAR_1, uint32_t VAR_2, int VAR_3) { if(VAR_3 > 32) { av_log(NULL, AV_LOG_ERROR, "VAR_3 too long\n"); return AVERROR_INVALIDDATA; } if(!get_bits1(VAR_0)){ if(VAR_1->current >= 256){ av_log(NULL, AV_LOG_ERROR, "T...
[ "static int FUNC_0(GetBitContext *VAR_0, HuffContext *VAR_1, uint32_t VAR_2, int VAR_3)\n{", "if(VAR_3 > 32) {", "av_log(NULL, AV_LOG_ERROR, \"VAR_3 too long\\n\");", "return AVERROR_INVALIDDATA;", "}", "if(!get_bits1(VAR_0)){", "if(VAR_1->current >= 256){", "av_log(NULL, AV_LOG_ERROR, \"Tree size exc...
[ 0, 0, 0, 0, 0, 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,...
4,437
static void usb_hub_handle_attach(USBDevice *dev) { USBHubState *s = DO_UPCAST(USBHubState, dev, dev); int i; for (i = 0; i < NUM_PORTS; i++) { usb_port_location(&s->ports[i].port, dev->port, i+1); } }
false
qemu
891fb2cd4592b6fe76106a69e0ca40efbf82726a
static void usb_hub_handle_attach(USBDevice *dev) { USBHubState *s = DO_UPCAST(USBHubState, dev, dev); int i; for (i = 0; i < NUM_PORTS; i++) { usb_port_location(&s->ports[i].port, dev->port, i+1); } }
{ "code": [], "line_no": [] }
static void FUNC_0(USBDevice *VAR_0) { USBHubState *s = DO_UPCAST(USBHubState, VAR_0, VAR_0); int VAR_1; for (VAR_1 = 0; VAR_1 < NUM_PORTS; VAR_1++) { usb_port_location(&s->ports[VAR_1].port, VAR_0->port, VAR_1+1); } }
[ "static void FUNC_0(USBDevice *VAR_0)\n{", "USBHubState *s = DO_UPCAST(USBHubState, VAR_0, VAR_0);", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < NUM_PORTS; VAR_1++) {", "usb_port_location(&s->ports[VAR_1].port, VAR_0->port, VAR_1+1);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
4,438
static void __attribute__((destructor)) coroutine_pool_cleanup(void) { Coroutine *co; Coroutine *tmp; QSLIST_FOREACH_SAFE(co, &pool, pool_next, tmp) { QSLIST_REMOVE_HEAD(&pool, pool_next); qemu_coroutine_delete(co); } qemu_mutex_destroy(&pool_lock); }
false
qemu
4d68e86bb10159099da0798f74e7512955f15eec
static void __attribute__((destructor)) coroutine_pool_cleanup(void) { Coroutine *co; Coroutine *tmp; QSLIST_FOREACH_SAFE(co, &pool, pool_next, tmp) { QSLIST_REMOVE_HEAD(&pool, pool_next); qemu_coroutine_delete(co); } qemu_mutex_destroy(&pool_lock); }
{ "code": [], "line_no": [] }
static void __attribute__((destructor)) FUNC_0(void) { Coroutine *co; Coroutine *tmp; QSLIST_FOREACH_SAFE(co, &pool, pool_next, tmp) { QSLIST_REMOVE_HEAD(&pool, pool_next); qemu_coroutine_delete(co); } qemu_mutex_destroy(&pool_lock); }
[ "static void __attribute__((destructor)) FUNC_0(void)\n{", "Coroutine *co;", "Coroutine *tmp;", "QSLIST_FOREACH_SAFE(co, &pool, pool_next, tmp) {", "QSLIST_REMOVE_HEAD(&pool, pool_next);", "qemu_coroutine_delete(co);", "}", "qemu_mutex_destroy(&pool_lock);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
4,439
pvscsi_on_cmd_setup_rings(PVSCSIState *s) { PVSCSICmdDescSetupRings *rc = (PVSCSICmdDescSetupRings *) s->curr_cmd_data; trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS"); pvscsi_dbg_dump_tx_rings_config(rc); if (pvscsi_ring_init_data(&s->rings, rc) < 0) { return PVSCSI_COM...
false
qemu
7f61f4690dd153be98900a2a508b88989e692753
pvscsi_on_cmd_setup_rings(PVSCSIState *s) { PVSCSICmdDescSetupRings *rc = (PVSCSICmdDescSetupRings *) s->curr_cmd_data; trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS"); pvscsi_dbg_dump_tx_rings_config(rc); if (pvscsi_ring_init_data(&s->rings, rc) < 0) { return PVSCSI_COM...
{ "code": [], "line_no": [] }
FUNC_0(PVSCSIState *VAR_0) { PVSCSICmdDescSetupRings *rc = (PVSCSICmdDescSetupRings *) VAR_0->curr_cmd_data; trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS"); pvscsi_dbg_dump_tx_rings_config(rc); if (pvscsi_ring_init_data(&VAR_0->rings, rc) < 0) { return PVSCSI_COMMAND_PR...
[ "FUNC_0(PVSCSIState *VAR_0)\n{", "PVSCSICmdDescSetupRings *rc =\n(PVSCSICmdDescSetupRings *) VAR_0->curr_cmd_data;", "trace_pvscsi_on_cmd_arrived(\"PVSCSI_CMD_SETUP_RINGS\");", "pvscsi_dbg_dump_tx_rings_config(rc);", "if (pvscsi_ring_init_data(&VAR_0->rings, rc) < 0) {", "return PVSCSI_COMMAND_PROCESSING_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
4,441
static void omap1_mpu_reset(void *opaque) { struct omap_mpu_state_s *mpu = (struct omap_mpu_state_s *) opaque; omap_inth_reset(mpu->ih[0]); omap_inth_reset(mpu->ih[1]); omap_dma_reset(mpu->dma); omap_mpu_timer_reset(mpu->timer[0]); omap_mpu_timer_reset(mpu->timer[1]); omap_mpu_time...
false
qemu
0919ac787641db11024912651f3bc5764d4f1286
static void omap1_mpu_reset(void *opaque) { struct omap_mpu_state_s *mpu = (struct omap_mpu_state_s *) opaque; omap_inth_reset(mpu->ih[0]); omap_inth_reset(mpu->ih[1]); omap_dma_reset(mpu->dma); omap_mpu_timer_reset(mpu->timer[0]); omap_mpu_timer_reset(mpu->timer[1]); omap_mpu_time...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { struct omap_mpu_state_s *VAR_1 = (struct omap_mpu_state_s *) VAR_0; omap_inth_reset(VAR_1->ih[0]); omap_inth_reset(VAR_1->ih[1]); omap_dma_reset(VAR_1->dma); omap_mpu_timer_reset(VAR_1->timer[0]); omap_mpu_timer_reset(VAR_1->timer[1]); omap_mpu_tim...
[ "static void FUNC_0(void *VAR_0)\n{", "struct omap_mpu_state_s *VAR_1 = (struct omap_mpu_state_s *) VAR_0;", "omap_inth_reset(VAR_1->ih[0]);", "omap_inth_reset(VAR_1->ih[1]);", "omap_dma_reset(VAR_1->dma);", "omap_mpu_timer_reset(VAR_1->timer[0]);", "omap_mpu_timer_reset(VAR_1->timer[1]);", "omap_mpu_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
4,444
size_t slirp_socket_can_recv(struct in_addr guest_addr, int guest_port) { struct iovec iov[2]; struct socket *so; if (!link_up) return 0; so = slirp_find_ctl_socket(guest_addr, guest_port); if (!so || so->so_state & SS_NOFDREF) return 0; if (!CONN_CANFRCV(so) || so->so_snd.sb_cc >= (...
false
qemu
b5302e1a9d8a47bd29a3e1876fba34be111728a2
size_t slirp_socket_can_recv(struct in_addr guest_addr, int guest_port) { struct iovec iov[2]; struct socket *so; if (!link_up) return 0; so = slirp_find_ctl_socket(guest_addr, guest_port); if (!so || so->so_state & SS_NOFDREF) return 0; if (!CONN_CANFRCV(so) || so->so_snd.sb_cc >= (...
{ "code": [], "line_no": [] }
size_t FUNC_0(struct in_addr guest_addr, int guest_port) { struct iovec VAR_0[2]; struct socket *VAR_1; if (!link_up) return 0; VAR_1 = slirp_find_ctl_socket(guest_addr, guest_port); if (!VAR_1 || VAR_1->so_state & SS_NOFDREF) return 0; if (!CONN_CANFRCV(VAR_1) || VAR_1->so_snd.sb_cc...
[ "size_t FUNC_0(struct in_addr guest_addr, int guest_port)\n{", "struct iovec VAR_0[2];", "struct socket *VAR_1;", "if (!link_up)\nreturn 0;", "VAR_1 = slirp_find_ctl_socket(guest_addr, guest_port);", "if (!VAR_1 || VAR_1->so_state & SS_NOFDREF)\nreturn 0;", "if (!CONN_CANFRCV(VAR_1) || VAR_1->so_snd.sb_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 21, 23 ], [ 27, 29 ], [ 33 ], [ 35 ] ]
4,445
static int bdrv_open_common(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret, open_flags; assert(drv != NULL); trace_bdrv_open_common(bs, filename, flags, drv->format_name); bs->file = NULL; bs->total_sectors = 0; bs->encrypted = 0; bs->va...
false
qemu
e7c637967e6aad195b5f30cfd995913c9e0b4666
static int bdrv_open_common(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret, open_flags; assert(drv != NULL); trace_bdrv_open_common(bs, filename, flags, drv->format_name); bs->file = NULL; bs->total_sectors = 0; bs->encrypted = 0; bs->va...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2, BlockDriver *VAR_3) { int VAR_4, VAR_5; assert(VAR_3 != NULL); trace_bdrv_open_common(VAR_0, VAR_1, VAR_2, VAR_3->format_name); VAR_0->file = NULL; VAR_0->total_sectors = 0; VAR_0->encrypted = 0; VAR_...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1,\nint VAR_2, BlockDriver *VAR_3)\n{", "int VAR_4, VAR_5;", "assert(VAR_3 != NULL);", "trace_bdrv_open_common(VAR_0, VAR_1, VAR_2, VAR_3->format_name);", "VAR_0->file = NULL;", "VAR_0->total_sectors = 0;", "VAR_0->encrypted = 0;", "VAR_0->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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 65 ], [ 75...
4,446
static void qxl_log_cmd_draw_copy(PCIQXLDevice *qxl, QXLCopy *copy, int group_id) { fprintf(stderr, " src %" PRIx64, copy->src_bitmap); qxl_log_image(qxl, copy->src_bitmap, group_id); fprintf(stderr, " area"); qxl_log_rect(&copy->src_area); fprintf(stderr, " rop %d", copy->rop_des...
false
qemu
fae2afb10e3fdceab612c62a2b1e8b944ff578d9
static void qxl_log_cmd_draw_copy(PCIQXLDevice *qxl, QXLCopy *copy, int group_id) { fprintf(stderr, " src %" PRIx64, copy->src_bitmap); qxl_log_image(qxl, copy->src_bitmap, group_id); fprintf(stderr, " area"); qxl_log_rect(&copy->src_area); fprintf(stderr, " rop %d", copy->rop_des...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0, QXLCopy *VAR_1, int VAR_2) { fprintf(stderr, " src %" PRIx64, VAR_1->src_bitmap); qxl_log_image(VAR_0, VAR_1->src_bitmap, VAR_2); fprintf(stderr, " area"); qxl_log_rect(&VAR_1->src_area); fprintf(stderr, " rop %d", VAR_1->rop_descriptor); }...
[ "static void FUNC_0(PCIQXLDevice *VAR_0, QXLCopy *VAR_1, int VAR_2)\n{", "fprintf(stderr, \" src %\" PRIx64,\nVAR_1->src_bitmap);", "qxl_log_image(VAR_0, VAR_1->src_bitmap, VAR_2);", "fprintf(stderr, \" area\");", "qxl_log_rect(&VAR_1->src_area);", "fprintf(stderr, \" rop %d\", VAR_1->rop_descriptor);", ...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
4,448
int qemu_paio_cancel(int fd, struct qemu_paiocb *aiocb) { int ret; pthread_mutex_lock(&lock); if (!aiocb->active) { TAILQ_REMOVE(&request_list, aiocb, node); aiocb->ret = -ECANCELED; ret = QEMU_PAIO_CANCELED; } else if (aiocb->ret == -EINPROGRESS) ret = QEMU_PA...
false
qemu
8653c0158c23ec592f0041ab48b83d6cc6d152fe
int qemu_paio_cancel(int fd, struct qemu_paiocb *aiocb) { int ret; pthread_mutex_lock(&lock); if (!aiocb->active) { TAILQ_REMOVE(&request_list, aiocb, node); aiocb->ret = -ECANCELED; ret = QEMU_PAIO_CANCELED; } else if (aiocb->ret == -EINPROGRESS) ret = QEMU_PA...
{ "code": [], "line_no": [] }
int FUNC_0(int VAR_0, struct qemu_paiocb *VAR_1) { int VAR_2; pthread_mutex_lock(&lock); if (!VAR_1->active) { TAILQ_REMOVE(&request_list, VAR_1, node); VAR_1->VAR_2 = -ECANCELED; VAR_2 = QEMU_PAIO_CANCELED; } else if (VAR_1->VAR_2 == -EINPROGRESS) VAR_2 = QEMU...
[ "int FUNC_0(int VAR_0, struct qemu_paiocb *VAR_1)\n{", "int VAR_2;", "pthread_mutex_lock(&lock);", "if (!VAR_1->active) {", "TAILQ_REMOVE(&request_list, VAR_1, node);", "VAR_1->VAR_2 = -ECANCELED;", "VAR_2 = QEMU_PAIO_CANCELED;", "} else if (VAR_1->VAR_2 == -EINPROGRESS)", "VAR_2 = QEMU_PAIO_NOTCANC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ] ]
4,449
int qdev_unplug(DeviceState *dev) { if (!dev->parent_bus->allow_hotplug) { qerror_report(QERR_BUS_NO_HOTPLUG, dev->parent_bus->name); return -1; } assert(dev->info->unplug != NULL); if (dev->ref != 0) { qerror_report(QERR_DEVICE_IN_USE, dev->id?:""); return -1;...
false
qemu
024a6fbdb9d8cbc4d7f833b23db51c9d1004bc47
int qdev_unplug(DeviceState *dev) { if (!dev->parent_bus->allow_hotplug) { qerror_report(QERR_BUS_NO_HOTPLUG, dev->parent_bus->name); return -1; } assert(dev->info->unplug != NULL); if (dev->ref != 0) { qerror_report(QERR_DEVICE_IN_USE, dev->id?:""); return -1;...
{ "code": [], "line_no": [] }
int FUNC_0(DeviceState *VAR_0) { if (!VAR_0->parent_bus->allow_hotplug) { qerror_report(QERR_BUS_NO_HOTPLUG, VAR_0->parent_bus->name); return -1; } assert(VAR_0->info->unplug != NULL); if (VAR_0->ref != 0) { qerror_report(QERR_DEVICE_IN_USE, VAR_0->id?:""); ret...
[ "int FUNC_0(DeviceState *VAR_0)\n{", "if (!VAR_0->parent_bus->allow_hotplug) {", "qerror_report(QERR_BUS_NO_HOTPLUG, VAR_0->parent_bus->name);", "return -1;", "}", "assert(VAR_0->info->unplug != NULL);", "if (VAR_0->ref != 0) {", "qerror_report(QERR_DEVICE_IN_USE, VAR_0->id?:\"\");", "return -1;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ] ]
4,450
int kvm_irqchip_update_msi_route(KVMState *s, int virq, MSIMessage msg, PCIDevice *dev) { struct kvm_irq_routing_entry kroute = {}; if (kvm_gsi_direct_mapping()) { return 0; } if (!kvm_irqchip_in_kernel()) { return -ENOSYS; } krout...
false
qemu
88c725c78e87eecb061f882177c7a6a2ac1059ad
int kvm_irqchip_update_msi_route(KVMState *s, int virq, MSIMessage msg, PCIDevice *dev) { struct kvm_irq_routing_entry kroute = {}; if (kvm_gsi_direct_mapping()) { return 0; } if (!kvm_irqchip_in_kernel()) { return -ENOSYS; } krout...
{ "code": [], "line_no": [] }
int FUNC_0(KVMState *VAR_0, int VAR_1, MSIMessage VAR_2, PCIDevice *VAR_3) { struct kvm_irq_routing_entry VAR_4 = {}; if (kvm_gsi_direct_mapping()) { return 0; } if (!kvm_irqchip_in_kernel()) { return -ENOSYS; } VAR_4.gsi = VAR_1; ...
[ "int FUNC_0(KVMState *VAR_0, int VAR_1, MSIMessage VAR_2,\nPCIDevice *VAR_3)\n{", "struct kvm_irq_routing_entry VAR_4 = {};", "if (kvm_gsi_direct_mapping()) {", "return 0;", "}", "if (!kvm_irqchip_in_kernel()) {", "return -ENOSYS;", "}", "VAR_4.gsi = VAR_1;", "VAR_4.type = KVM_IRQ_ROUTING_MSI;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
4,451
static const MemoryRegionPortio *find_portio(MemoryRegion *mr, uint64_t offset, unsigned width, bool write) { const MemoryRegionPortio *mrp; for (mrp = mr->ops->old_portio; mrp->size; ++mrp) { if (offset >= mrp->offset && offset < mrp->offset + mrp->le...
false
qemu
b40acf99bef69fa8ab0f9092ff162fde945eec12
static const MemoryRegionPortio *find_portio(MemoryRegion *mr, uint64_t offset, unsigned width, bool write) { const MemoryRegionPortio *mrp; for (mrp = mr->ops->old_portio; mrp->size; ++mrp) { if (offset >= mrp->offset && offset < mrp->offset + mrp->le...
{ "code": [], "line_no": [] }
static const MemoryRegionPortio *FUNC_0(MemoryRegion *mr, uint64_t offset, unsigned width, bool write) { const MemoryRegionPortio *VAR_0; for (VAR_0 = mr->ops->old_portio; VAR_0->size; ++VAR_0) { if (offset >= VAR_0->offset && offset < VAR_0->offset + ...
[ "static const MemoryRegionPortio *FUNC_0(MemoryRegion *mr, uint64_t offset,\nunsigned width, bool write)\n{", "const MemoryRegionPortio *VAR_0;", "for (VAR_0 = mr->ops->old_portio; VAR_0->size; ++VAR_0) {", "if (offset >= VAR_0->offset && offset < VAR_0->offset + VAR_0->len\n&& width == VAR_0->size\n&& (write...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
4,452
static void gen_mftr(CPUMIPSState *env, DisasContext *ctx, int rt, int rd, int u, int sel, int h) { int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); TCGv t0 = tcg_temp_local_new(); if ((env->CP0_VPEConf0 & (1 << CP0VPEC0_MVP)) == 0 && ((env->tcs[other_tc]....
false
qemu
7f6613cedc59fa849105668ae971dc31004bca1c
static void gen_mftr(CPUMIPSState *env, DisasContext *ctx, int rt, int rd, int u, int sel, int h) { int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); TCGv t0 = tcg_temp_local_new(); if ((env->CP0_VPEConf0 & (1 << CP0VPEC0_MVP)) == 0 && ((env->tcs[other_tc]....
{ "code": [], "line_no": [] }
static void FUNC_0(CPUMIPSState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7 = VAR_0->CP0_VPEControl & (0xff << CP0VPECo_TargTC); TCGv t0 = tcg_temp_local_new(); if ((VAR_0->CP0_VPEConf0 & (1 << CP0VPEC0_MVP)) == 0 && ((...
[ "static void FUNC_0(CPUMIPSState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{", "int VAR_7 = VAR_0->CP0_VPEControl & (0xff << CP0VPECo_TargTC);", "TCGv t0 = tcg_temp_local_new();", "if ((VAR_0->CP0_VPEConf0 & (1 << CP0VPEC0_MVP)) == 0 &&\n((VAR_0->tcs[VAR_7].CP0_TCBi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15, 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ...
4,453
static void dbdma_cmdptr_save(DBDMA_channel *ch) { DBDMA_DPRINTF("dbdma_cmdptr_save 0x%08x\n", be32_to_cpu(ch->regs[DBDMA_CMDPTR_LO])); DBDMA_DPRINTF("xfer_status 0x%08x res_count 0x%04x\n", le16_to_cpu(ch->current.xfer_status), le16_to_cpu(ch->current...
false
qemu
ad674e53b5cce265fadafbde2c6a4f190345cd00
static void dbdma_cmdptr_save(DBDMA_channel *ch) { DBDMA_DPRINTF("dbdma_cmdptr_save 0x%08x\n", be32_to_cpu(ch->regs[DBDMA_CMDPTR_LO])); DBDMA_DPRINTF("xfer_status 0x%08x res_count 0x%04x\n", le16_to_cpu(ch->current.xfer_status), le16_to_cpu(ch->current...
{ "code": [], "line_no": [] }
static void FUNC_0(DBDMA_channel *VAR_0) { DBDMA_DPRINTF("FUNC_0 0x%08x\n", be32_to_cpu(VAR_0->regs[DBDMA_CMDPTR_LO])); DBDMA_DPRINTF("xfer_status 0x%08x res_count 0x%04x\n", le16_to_cpu(VAR_0->current.xfer_status), le16_to_cpu(VAR_0->current.res_count...
[ "static void FUNC_0(DBDMA_channel *VAR_0)\n{", "DBDMA_DPRINTF(\"FUNC_0 0x%08x\\n\",\nbe32_to_cpu(VAR_0->regs[DBDMA_CMDPTR_LO]));", "DBDMA_DPRINTF(\"xfer_status 0x%08x res_count 0x%04x\\n\",\nle16_to_cpu(VAR_0->current.xfer_status),\nle16_to_cpu(VAR_0->current.res_count));", "cpu_physical_memory_write(be32_to_...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11, 13 ], [ 15, 17 ], [ 19 ] ]
4,454
void helper_ldl_raw(uint64_t t0, uint64_t t1) { ldl_raw(t1, t0); }
false
qemu
2374e73edafff0586cbfb67c333c5a7588f81fd5
void helper_ldl_raw(uint64_t t0, uint64_t t1) { ldl_raw(t1, t0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint64_t VAR_0, uint64_t VAR_1) { ldl_raw(VAR_1, VAR_0); }
[ "void FUNC_0(uint64_t VAR_0, uint64_t VAR_1)\n{", "ldl_raw(VAR_1, VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
4,455
uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function, uint32_t index, int reg) { struct kvm_cpuid2 *cpuid; int i, max; uint32_t ret = 0; uint32_t cpuid_1_edx; int has_kvm_features = 0; max = 1; while ((cpuid = try_get_cpuid(e...
false
qemu
ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386
uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function, uint32_t index, int reg) { struct kvm_cpuid2 *cpuid; int i, max; uint32_t ret = 0; uint32_t cpuid_1_edx; int has_kvm_features = 0; max = 1; while ((cpuid = try_get_cpuid(e...
{ "code": [], "line_no": [] }
uint32_t FUNC_0(CPUState *env, uint32_t function, uint32_t index, int reg) { struct kvm_cpuid2 *VAR_0; int VAR_1, VAR_2; uint32_t ret = 0; uint32_t cpuid_1_edx; int VAR_3 = 0; VAR_2 = 1; while ((VAR_0 = try_get_cpuid(env->kvm_state, VAR_2)) ==...
[ "uint32_t FUNC_0(CPUState *env, uint32_t function,\nuint32_t index, int reg)\n{", "struct kvm_cpuid2 *VAR_0;", "int VAR_1, VAR_2;", "uint32_t ret = 0;", "uint32_t cpuid_1_edx;", "int VAR_3 = 0;", "VAR_2 = 1;", "while ((VAR_0 = try_get_cpuid(env->kvm_state, VAR_2)) == NULL) {", "VAR_2 *= 2;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
4,456
int chsc_sei_nt2_have_event(void) { S390pciState *s = S390_PCI_HOST_BRIDGE( object_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL)); if (!s) { return 0; } return !QTAILQ_EMPTY(&s->pending_sei); }
false
qemu
e7d336959b7c01699702dcda4b54a822972d74a8
int chsc_sei_nt2_have_event(void) { S390pciState *s = S390_PCI_HOST_BRIDGE( object_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL)); if (!s) { return 0; } return !QTAILQ_EMPTY(&s->pending_sei); }
{ "code": [], "line_no": [] }
int FUNC_0(void) { S390pciState *s = S390_PCI_HOST_BRIDGE( object_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL)); if (!s) { return 0; } return !QTAILQ_EMPTY(&s->pending_sei); }
[ "int FUNC_0(void)\n{", "S390pciState *s = S390_PCI_HOST_BRIDGE(\nobject_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL));", "if (!s) {", "return 0;", "}", "return !QTAILQ_EMPTY(&s->pending_sei);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
4,457
static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc) { int addr_regl, addr_reg1, addr_meml; int data_regl, data_regh, data_reg1, data_reg2; int mem_index, s_bits; #if defined(CONFIG_SOFTMMU) uint8_t *label1_ptr, *label2_ptr; int sp_args; #endif...
false
qemu
355b194369d02df7a97d554eef2a9cffe98d736f
static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc) { int addr_regl, addr_reg1, addr_meml; int data_regl, data_regh, data_reg1, data_reg2; int mem_index, s_bits; #if defined(CONFIG_SOFTMMU) uint8_t *label1_ptr, *label2_ptr; int sp_args; #endif...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5; int VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11; #if defined(CONFIG_SOFTMMU) uint8_t *label1_ptr, *label2_ptr; int sp_args; #endif #if TARGET_LONG_BITS == 64 # i...
[ "static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1,\nint VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11;", "#if defined(CONFIG_SOFTMMU)\nuint8_t *label1_ptr, *label2_ptr;", "int sp_args;", "#endif\n#if TARGET_LONG_BITS == 64\n# if defined(CONFIG_SO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21, 23, 25 ], [ 27, 29 ], [ 31, 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [...
4,458
static inline void RENAME(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
[ "static inline void FUNC_0(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused)\n{", "#if COMPILE_TEMPLATE_MMX\n__asm__ volatile(\n\"movq \"MANGLE(bm01010101)\", %%mm4 \\n\\t\"\n\"mov %0, %%\"REG_a\" \\n\\t\"\n\"1: ...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61, 63 ] ]
4,459
static int usb_msd_handle_data(USBDevice *dev, USBPacket *p) { MSDState *s = (MSDState *)dev; int ret = 0; struct usb_msd_cbw cbw; uint8_t devep = p->devep; switch (p->pid) { case USB_TOKEN_OUT: if (devep != 2) goto fail; switch (s->mode) { case...
false
qemu
c39ce112b60ffafbaf700853e32bea74cbb2c148
static int usb_msd_handle_data(USBDevice *dev, USBPacket *p) { MSDState *s = (MSDState *)dev; int ret = 0; struct usb_msd_cbw cbw; uint8_t devep = p->devep; switch (p->pid) { case USB_TOKEN_OUT: if (devep != 2) goto fail; switch (s->mode) { case...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1) { MSDState *s = (MSDState *)VAR_0; int VAR_2 = 0; struct usb_msd_cbw VAR_3; uint8_t devep = VAR_1->devep; switch (VAR_1->pid) { case USB_TOKEN_OUT: if (devep != 2) goto fail; switch (s->mode) { ...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{", "MSDState *s = (MSDState *)VAR_0;", "int VAR_2 = 0;", "struct usb_msd_cbw VAR_3;", "uint8_t devep = VAR_1->devep;", "switch (VAR_1->pid) {", "case USB_TOKEN_OUT:\nif (devep != 2)\ngoto fail;", "switch (s->mode) {", "case USB_MSDM_CBW:\nif (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
4,460
static bool main_loop_should_exit(void) { RunState r; ShutdownCause request; if (qemu_debug_requested()) { vm_stop(RUN_STATE_DEBUG); } if (qemu_suspend_requested()) { qemu_system_suspend(); } request = qemu_shutdown_requested(); if (request) { qemu_k...
false
qemu
08fba7ac9b618516a5f1d096f78a7e2837fe0594
static bool main_loop_should_exit(void) { RunState r; ShutdownCause request; if (qemu_debug_requested()) { vm_stop(RUN_STATE_DEBUG); } if (qemu_suspend_requested()) { qemu_system_suspend(); } request = qemu_shutdown_requested(); if (request) { qemu_k...
{ "code": [], "line_no": [] }
static bool FUNC_0(void) { RunState r; ShutdownCause request; if (qemu_debug_requested()) { vm_stop(RUN_STATE_DEBUG); } if (qemu_suspend_requested()) { qemu_system_suspend(); } request = qemu_shutdown_requested(); if (request) { qemu_kill_report(); ...
[ "static bool FUNC_0(void)\n{", "RunState r;", "ShutdownCause request;", "if (qemu_debug_requested()) {", "vm_stop(RUN_STATE_DEBUG);", "}", "if (qemu_suspend_requested()) {", "qemu_system_suspend();", "}", "request = qemu_shutdown_requested();", "if (request) {", "qemu_kill_report();", "qapi_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
4,462
soread(so) struct socket *so; { int n, nn, lss, total; struct sbuf *sb = &so->so_snd; int len = sb->sb_datalen - sb->sb_cc; struct iovec iov[2]; int mss = so->so_tcpcb->t_maxseg; DEBUG_CALL("soread"); DEBUG_ARG("so = %lx", (long )so); /* * No need to check if there's enough room to read. ...
false
qemu
17444c9c84fd0c8679499198fd4ee3b155fb297f
soread(so) struct socket *so; { int n, nn, lss, total; struct sbuf *sb = &so->so_snd; int len = sb->sb_datalen - sb->sb_cc; struct iovec iov[2]; int mss = so->so_tcpcb->t_maxseg; DEBUG_CALL("soread"); DEBUG_ARG("so = %lx", (long )so); len = sb->sb_datalen - sb->sb_cc; iov[0].io...
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) struct socket *VAR_0; { int VAR_1, VAR_2, VAR_3, VAR_4; struct sbuf *VAR_5 = &VAR_0->so_snd; int VAR_6 = VAR_5->sb_datalen - VAR_5->sb_cc; struct iovec VAR_7[2]; int VAR_8 = VAR_0->so_tcpcb->t_maxseg; DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %lx", (long )VAR_0); VAR_6 ...
[ "FUNC_0(VAR_0)\nstruct socket *VAR_0;", "{", "int VAR_1, VAR_2, VAR_3, VAR_4;", "struct sbuf *VAR_5 = &VAR_0->so_snd;", "int VAR_6 = VAR_5->sb_datalen - VAR_5->sb_cc;", "struct iovec VAR_7[2];", "int VAR_8 = VAR_0->so_tcpcb->t_maxseg;", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %lx\", (long )V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ...
4,463
static inline bool object_property_is_link(ObjectProperty *prop) { return strstart(prop->type, "link<", NULL); }
false
qemu
64607d088132abdb25bf30d93e97d0c8df7b364c
static inline bool object_property_is_link(ObjectProperty *prop) { return strstart(prop->type, "link<", NULL); }
{ "code": [], "line_no": [] }
static inline bool FUNC_0(ObjectProperty *prop) { return strstart(prop->type, "link<", NULL); }
[ "static inline bool FUNC_0(ObjectProperty *prop)\n{", "return strstart(prop->type, \"link<\", NULL);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
4,464
static uint64_t mpcore_scu_read(void *opaque, target_phys_addr_t offset, unsigned size) { mpcore_priv_state *s = (mpcore_priv_state *)opaque; int id; /* SCU */ switch (offset) { case 0x00: /* Control. */ return s->scu_control; case 0x04: /* Confi...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t mpcore_scu_read(void *opaque, target_phys_addr_t offset, unsigned size) { mpcore_priv_state *s = (mpcore_priv_state *)opaque; int id; switch (offset) { case 0x00: return s->scu_control; case 0x04: id = ((1 << s->num_cpu...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size) { mpcore_priv_state *s = (mpcore_priv_state *)opaque; int VAR_0; switch (offset) { case 0x00: return s->scu_control; case 0x04: VAR_0 = ((1 << s->num_cpu) -...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{", "mpcore_priv_state *s = (mpcore_priv_state *)opaque;", "int VAR_0;", "switch (offset) {", "case 0x00:\nreturn s->scu_control;", "case 0x04:\nVAR_0 = ((1 << s->num_cpu) - 1) << 4;", "return VAR_0 | (s->num_cpu - 1);", ...
[ 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 ] ]
4,465
static int64_t run_opencl_bench(AVOpenCLExternalEnv *ext_opencl_env) { int i, arg = 0, width = 1920, height = 1088; int64_t start, ret = 0; cl_int status; size_t kernel_len; char *inbuf; int *mask; int buf_size = width * height * sizeof(char); int mask_size = sizeof(uint32_t) * ...
true
FFmpeg
d712a5cddbfc12e21384f97a291aa64ea7e8005f
static int64_t run_opencl_bench(AVOpenCLExternalEnv *ext_opencl_env) { int i, arg = 0, width = 1920, height = 1088; int64_t start, ret = 0; cl_int status; size_t kernel_len; char *inbuf; int *mask; int buf_size = width * height * sizeof(char); int mask_size = sizeof(uint32_t) * ...
{ "code": [ " int *mask;" ], "line_no": [ 15 ] }
static int64_t FUNC_0(AVOpenCLExternalEnv *ext_opencl_env) { int VAR_0, VAR_1 = 0, VAR_2 = 1920, VAR_3 = 1088; int64_t start, ret = 0; cl_int status; size_t kernel_len; char *VAR_4; int *VAR_5; int VAR_6 = VAR_2 * VAR_3 * sizeof(char); int VAR_7 = sizeof(uint32_t) * 128; ...
[ "static int64_t FUNC_0(AVOpenCLExternalEnv *ext_opencl_env)\n{", "int VAR_0, VAR_1 = 0, VAR_2 = 1920, VAR_3 = 1088;", "int64_t start, ret = 0;", "cl_int status;", "size_t kernel_len;", "char *VAR_4;", "int *VAR_5;", "int VAR_6 = VAR_2 * VAR_3 * sizeof(char);", "int VAR_7 = sizeof(uint32_t) * 128;", ...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
4,466
static int local_symlink(FsContext *fs_ctx, const char *oldpath, const char *newpath, FsCred *credp) { int err = -1; int serrno = 0; /* Determine the security model */ if (fs_ctx->fs_sm == SM_MAPPED) { int fd; ssize_t oldpath_size, write_size; fd = open(rpath(f...
true
qemu
f35bde2f8fb55541d4d7ddca50d64ce5a6ef384c
static int local_symlink(FsContext *fs_ctx, const char *oldpath, const char *newpath, FsCred *credp) { int err = -1; int serrno = 0; if (fs_ctx->fs_sm == SM_MAPPED) { int fd; ssize_t oldpath_size, write_size; fd = open(rpath(fs_ctx, newpath), O_CREAT|O_EXCL|O_...
{ "code": [ " oldpath_size = strlen(oldpath) + 1;" ], "line_no": [ 33 ] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2, FsCred *VAR_3) { int VAR_4 = -1; int VAR_5 = 0; if (VAR_0->fs_sm == SM_MAPPED) { int VAR_6; ssize_t oldpath_size, write_size; VAR_6 = open(rpath(VAR_0, VAR_2), O_CREAT|O_EXCL|O_RDWR, ...
[ "static int FUNC_0(FsContext *VAR_0, const char *VAR_1,\nconst char *VAR_2, FsCred *VAR_3)\n{", "int VAR_4 = -1;", "int VAR_5 = 0;", "if (VAR_0->fs_sm == SM_MAPPED) {", "int VAR_6;", "ssize_t oldpath_size, write_size;", "VAR_6 = open(rpath(VAR_0, VAR_2), O_CREAT|O_EXCL|O_RDWR,\nSM_LOCAL_MODE_BITS);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
4,467
static int parse_strk(AVFormatContext *s, FourxmDemuxContext *fourxm, uint8_t *buf, int size, int left) { AVStream *st; int track; /* check that there is enough data */ if (size != strk_SIZE || left < size + 8) return AVERROR_INVALIDDATA; ...
true
FFmpeg
e3f13d3a87274d537d319a84e9104f44f84ec3b2
static int parse_strk(AVFormatContext *s, FourxmDemuxContext *fourxm, uint8_t *buf, int size, int left) { AVStream *st; int track; if (size != strk_SIZE || left < size + 8) return AVERROR_INVALIDDATA; track = AV_RL32(buf + 8); if (...
{ "code": [ " fourxm->tracks[track].bits <= 0) {" ], "line_no": [ 63 ] }
static int FUNC_0(AVFormatContext *VAR_0, FourxmDemuxContext *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4) { AVStream *st; int VAR_5; if (VAR_3 != strk_SIZE || VAR_4 < VAR_3 + 8) return AVERROR_INVALIDDATA; VAR_5 = AV_RL32(VAR_2 + 8); ...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nFourxmDemuxContext *VAR_1, uint8_t *VAR_2, int VAR_3,\nint VAR_4)\n{", "AVStream *st;", "int VAR_5;", "if (VAR_3 != strk_SIZE || VAR_4 < VAR_3 + 8)\nreturn AVERROR_INVALIDDATA;", "VAR_5 = AV_RL32(VAR_2 + 8);", "if ((unsigned)VAR_5 >= UINT_MAX / sizeof(AudioTrack...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
4,468
void yuv2rgb_altivec_init_tables (SwsContext *c, const int inv_table[4],int brightness,int contrast, int saturation) { union { signed short tmp[8] __attribute__ ((aligned(16))); vector signed short vec; } buf; buf.tmp[0] = ( (0xffffLL) * contrast>>8 )>>9; //cy buf.tmp[1] = -256*brightness; /...
true
FFmpeg
428098165de4c3edfe42c1b7f00627d287015863
void yuv2rgb_altivec_init_tables (SwsContext *c, const int inv_table[4],int brightness,int contrast, int saturation) { union { signed short tmp[8] __attribute__ ((aligned(16))); vector signed short vec; } buf; buf.tmp[0] = ( (0xffffLL) * contrast>>8 )>>9; buf.tmp[1] = -256*brightness; b...
{ "code": [ " union {", " \tsigned short tmp[8] __attribute__ ((aligned(16)));", "\tvector signed short vec;", "\t} buf;", " c->CSHIFT = (vector unsigned short)vec_splat_u16(2);", " c->CY = vec_splat ((vector signed short)buf.vec, 0);", " c->OY = vec_splat ((vector signed short)buf....
void FUNC_0 (SwsContext *VAR_0, const int VAR_1[4],int VAR_2,int VAR_3, int VAR_4) { union { signed short tmp[8] __attribute__ ((aligned(16))); vector signed short vec; } VAR_5; VAR_5.tmp[0] = ( (0xffffLL) * VAR_3>>8 )>>9; VAR_5.tmp[1] = -256*VAR_2; VAR_5.tmp[2] = (VAR_1[0]>>3) *(VAR_3...
[ "void FUNC_0 (SwsContext *VAR_0, const int VAR_1[4],int VAR_2,int VAR_3, int VAR_4)\n{", "union {", "signed short tmp[8] __attribute__ ((aligned(16)));", "vector signed short vec;", "} VAR_5;", "VAR_5.tmp[0] = ( (0xffffLL) * VAR_3>>8 )>>9;", "VAR_5.tmp[1] = -256*VAR_2;", "VAR_5.tmp[2] = (VAR_1[0]>>...
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [...
4,469
static void control_out(VirtIODevice *vdev, VirtQueue *vq) { VirtQueueElement elem; VirtIOSerial *vser; vser = DO_UPCAST(VirtIOSerial, vdev, vdev); while (virtqueue_pop(vq, &elem)) { handle_control_message(vser, elem.out_sg[0].iov_base); virtqueue_push(vq, &elem, elem.out_sg[0...
true
qemu
e61da14d60ba1cceacad8396adcb9662c7f690af
static void control_out(VirtIODevice *vdev, VirtQueue *vq) { VirtQueueElement elem; VirtIOSerial *vser; vser = DO_UPCAST(VirtIOSerial, vdev, vdev); while (virtqueue_pop(vq, &elem)) { handle_control_message(vser, elem.out_sg[0].iov_base); virtqueue_push(vq, &elem, elem.out_sg[0...
{ "code": [ " handle_control_message(vser, elem.out_sg[0].iov_base);", " virtqueue_push(vq, &elem, elem.out_sg[0].iov_len);" ], "line_no": [ 17, 19 ] }
static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1) { VirtQueueElement elem; VirtIOSerial *vser; vser = DO_UPCAST(VirtIOSerial, VAR_0, VAR_0); while (virtqueue_pop(VAR_1, &elem)) { handle_control_message(vser, elem.out_sg[0].iov_base); virtqueue_push(VAR_1, &elem, elem.o...
[ "static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{", "VirtQueueElement elem;", "VirtIOSerial *vser;", "vser = DO_UPCAST(VirtIOSerial, VAR_0, VAR_0);", "while (virtqueue_pop(VAR_1, &elem)) {", "handle_control_message(vser, elem.out_sg[0].iov_base);", "virtqueue_push(VAR_1, &elem, elem.out_sg[0...
[ 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
4,470
static int img_amend(int argc, char **argv) { Error *err = NULL; int c, ret = 0; char *options = NULL; QemuOptsList *create_opts = NULL; QemuOpts *opts = NULL; const char *fmt = NULL, *filename, *cache; int flags; bool quiet = false, progress = false; BlockBackend *blk = NU...
true
qemu
e814dffcc9810ed77fe99081be9751b620a894c4
static int img_amend(int argc, char **argv) { Error *err = NULL; int c, ret = 0; char *options = NULL; QemuOptsList *create_opts = NULL; QemuOpts *opts = NULL; const char *fmt = NULL, *filename, *cache; int flags; bool quiet = false, progress = false; BlockBackend *blk = NU...
{ "code": [ " goto out;" ], "line_no": [ 59 ] }
static int FUNC_0(int VAR_0, char **VAR_1) { Error *err = NULL; int VAR_2, VAR_3 = 0; char *VAR_4 = NULL; QemuOptsList *create_opts = NULL; QemuOpts *opts = NULL; const char *VAR_5 = NULL, *VAR_6, *VAR_7; int VAR_8; bool quiet = false, progress = false; BlockBackend *blk = ...
[ "static int FUNC_0(int VAR_0, char **VAR_1)\n{", "Error *err = NULL;", "int VAR_2, VAR_3 = 0;", "char *VAR_4 = NULL;", "QemuOptsList *create_opts = NULL;", "QemuOpts *opts = NULL;", "const char *VAR_5 = NULL, *VAR_6, *VAR_7;", "int VAR_8;", "bool quiet = false, progress = false;", "BlockBackend *b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45, 47 ...
4,471
static void powernv_populate_chip(PnvChip *chip, void *fdt) { PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip); char *typename = pnv_core_typename(pcc->cpu_model); size_t typesize = object_type_get_instance_size(typename); int i; for (i = 0; i < chip->nr_cores; i++) { PnvCore *pnv_core = PNV_COR...
true
qemu
967b75230b9720ea2b3ae49f38f8287026125f9f
static void powernv_populate_chip(PnvChip *chip, void *fdt) { PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip); char *typename = pnv_core_typename(pcc->cpu_model); size_t typesize = object_type_get_instance_size(typename); int i; for (i = 0; i < chip->nr_cores; i++) { PnvCore *pnv_core = PNV_COR...
{ "code": [], "line_no": [] }
static void FUNC_0(PnvChip *VAR_0, void *VAR_1) { PnvChipClass *pcc = PNV_CHIP_GET_CLASS(VAR_0); char *VAR_2 = pnv_core_typename(pcc->cpu_model); size_t typesize = object_type_get_instance_size(VAR_2); int VAR_3; for (VAR_3 = 0; VAR_3 < VAR_0->nr_cores; VAR_3++) { PnvCore *pnv_core = PNV_COR...
[ "static void FUNC_0(PnvChip *VAR_0, void *VAR_1)\n{", "PnvChipClass *pcc = PNV_CHIP_GET_CLASS(VAR_0);", "char *VAR_2 = pnv_core_typename(pcc->cpu_model);", "size_t typesize = object_type_get_instance_size(VAR_2);", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < VAR_0->nr_cores; VAR_3++) {", "PnvCore *pnv_core =...
[ 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 ] ]
4,472
static int virtio_rng_load_device(VirtIODevice *vdev, QEMUFile *f, int version_id) { /* We may have an element ready but couldn't process it due to a quota * limit. Make sure to try again after live migration when the quota may * have been reset. */ virti...
true
qemu
db12451decf7dfe0f083564183e135f2095228b9
static int virtio_rng_load_device(VirtIODevice *vdev, QEMUFile *f, int version_id) { virtio_rng_process(VIRTIO_RNG(vdev)); return 0; }
{ "code": [ "static int virtio_rng_load_device(VirtIODevice *vdev, QEMUFile *f,", " int version_id)", " virtio_rng_process(VIRTIO_RNG(vdev));" ], "line_no": [ 1, 3, 15 ] }
static int FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1, int VAR_2) { virtio_rng_process(VIRTIO_RNG(VAR_0)); return 0; }
[ "static int FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1,\nint VAR_2)\n{", "virtio_rng_process(VIRTIO_RNG(VAR_0));", "return 0;", "}" ]
[ 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 15 ], [ 19 ], [ 21 ] ]
4,473
static inline int mpeg1_fast_decode_block_inter(MpegEncContext *s, int16_t *block, int n) { int level, i, j, run; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = s->intra_scantable.permutated; const int qscale = s->qscale; { OPEN_READER(re, &s->gb); i = -1;...
true
FFmpeg
0a59055167eea3087a36d9091501d3bb52ed8ebe
static inline int mpeg1_fast_decode_block_inter(MpegEncContext *s, int16_t *block, int n) { int level, i, j, run; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = s->intra_scantable.permutated; const int qscale = s->qscale; { OPEN_READER(re, &s->gb); i = -1;...
{ "code": [ " if (((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)" ], "line_no": [ 41 ] }
static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = VAR_0->intra_scantable.permutated; const int VAR_7 = VAR_0->VAR_7; { OPEN_READER(re, &VAR_0->gb); VA...
[ "static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "RLTable *rl = &ff_rl_mpeg1;", "uint8_t * const scantable = VAR_0->intra_scantable.permutated;", "const int VAR_7 = VAR_0->VAR_7;", "{", "OPEN_READER(re, &VAR_0->gb);", "VAR_4 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 51 ...
4,474
static int usb_net_handle_datain(USBNetState *s, USBPacket *p) { int ret = USB_RET_NAK; if (s->in_ptr > s->in_len) { s->in_ptr = s->in_len = 0; ret = USB_RET_NAK; return ret; } if (!s->in_len) { ret = USB_RET_NAK; return ret; } ret = s->in_le...
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static int usb_net_handle_datain(USBNetState *s, USBPacket *p) { int ret = USB_RET_NAK; if (s->in_ptr > s->in_len) { s->in_ptr = s->in_len = 0; ret = USB_RET_NAK; return ret; } if (!s->in_len) { ret = USB_RET_NAK; return ret; } ret = s->in_le...
{ "code": [ " int i;", " fprintf(stderr, \":\");", " for (i = 0; i < ret; i++) {", " if (!(i & 15))", " fprintf(stderr, \"\\n%04x:\", i);", " fprintf(stderr, \" %02x\", p->data[i]);", " fprintf(stderr, \"\\n\\n\");", " ...
static int FUNC_0(USBNetState *VAR_0, USBPacket *VAR_1) { int VAR_2 = USB_RET_NAK; if (VAR_0->in_ptr > VAR_0->in_len) { VAR_0->in_ptr = VAR_0->in_len = 0; VAR_2 = USB_RET_NAK; return VAR_2; } if (!VAR_0->in_len) { VAR_2 = USB_RET_NAK; return VAR_2; ...
[ "static int FUNC_0(USBNetState *VAR_0, USBPacket *VAR_1)\n{", "int VAR_2 = USB_RET_NAK;", "if (VAR_0->in_ptr > VAR_0->in_len) {", "VAR_0->in_ptr = VAR_0->in_len = 0;", "VAR_2 = USB_RET_NAK;", "return VAR_2;", "}", "if (!VAR_0->in_len) {", "VAR_2 = USB_RET_NAK;", "return VAR_2;", "}", "VAR_2 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 49...
4,475
static void read_xing_toc(AVFormatContext *s, int64_t filesize, int64_t duration) { int i; MP3DecContext *mp3 = s->priv_data; int fill_index = mp3->usetoc == 1 && duration > 0; if (!filesize && !(filesize = avio_size(s->pb))) { av_log(s, AV_LOG_WARNING, "Cannot determine file si...
false
FFmpeg
5e6ce28dabe002a6130f17b59c454bdee33088f7
static void read_xing_toc(AVFormatContext *s, int64_t filesize, int64_t duration) { int i; MP3DecContext *mp3 = s->priv_data; int fill_index = mp3->usetoc == 1 && duration > 0; if (!filesize && !(filesize = avio_size(s->pb))) { av_log(s, AV_LOG_WARNING, "Cannot determine file si...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1, int64_t VAR_2) { int VAR_3; MP3DecContext *mp3 = VAR_0->priv_data; int VAR_4 = mp3->usetoc == 1 && VAR_2 > 0; if (!VAR_1 && !(VAR_1 = avio_size(VAR_0->pb))) { av_log(VAR_0, AV_LOG_WARNING, "Cannot determine file size, ski...
[ "static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1, int64_t VAR_2)\n{", "int VAR_3;", "MP3DecContext *mp3 = VAR_0->priv_data;", "int VAR_4 = mp3->usetoc == 1 && VAR_2 > 0;", "if (!VAR_1 &&\n!(VAR_1 = avio_size(VAR_0->pb))) {", "av_log(VAR_0, AV_LOG_WARNING, \"Cannot determine file size, skipping TO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ] ]
4,476
void ff_put_h264_qpel8_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { copy_width8_msa(src, stride, dst, stride, 8); }
false
FFmpeg
0105ed551cb9610c62b6920a301125781e1161a0
void ff_put_h264_qpel8_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { copy_width8_msa(src, stride, dst, stride, 8); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { copy_width8_msa(VAR_1, VAR_2, VAR_0, VAR_2, 8); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "copy_width8_msa(VAR_1, VAR_2, VAR_0, VAR_2, 8);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
4,477
static int ape_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; APEContext *s = avctx->priv_data; int16_t *samples = data; uint32_t nblocks;...
false
FFmpeg
4315c7d35aa946fb3a0da9a30f08fb4e0ca8edfb
static int ape_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; APEContext *s = avctx->priv_data; int16_t *samples = data; uint32_t nblocks;...
{ "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; APEContext *s = VAR_0->priv_data; int16_t *samples = VAR_1; uint32_t nblocks; int VA...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "APEContext *s = VAR_0->priv_data;", "int16_t *samples = VAR_1;", "uint32_t nblocks;", "int VAR_6;", "int VAR_7;", "int VAR_8;", "if (BLOCK...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
4,480
static void sun4uv_init(ram_addr_t RAM_size, const char *boot_devices, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, const struct hwdef *hwdef) { CPUSt...
true
qemu
07caea315a85ebfe90851f9c2e4ef3fdd24117b5
static void sun4uv_init(ram_addr_t RAM_size, const char *boot_devices, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, const struct hwdef *hwdef) { CPUSt...
{ "code": [ " pci_nic_init(&nd_table[i], \"ne2k_pci\", NULL);", " pci_nic_init(&nd_table[i], \"ne2k_pci\", NULL);", " pci_nic_init(&nd_table[i], \"ne2k_pci\", NULL);" ], "line_no": [ 107, 107, 107 ] }
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, const struct VAR_6 *VAR_6) { CPUState *env; m48t59_t *nvram; unsigned in...
[ "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,\nconst struct VAR_6 *VAR_6)\n{", "CPUState *env;", "m48t59_t *nvram;", "unsigned int VAR_7;", "long VAR_8, VAR_9;", "PCIBus *pci_bus, *pci_bus2, *pci_bus3;", "qemu_irq ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 41 ], [ 45 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 59 ], [...
4,481
bool bdrv_all_can_snapshot(BlockDriverState **first_bad_bs) { bool ok = true; BlockDriverState *bs; BdrvNextIterator it; for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acquire(ctx); if (bdrv_is_inserted(bs...
true
qemu
5e003f17ec518cd96f5d2ac23ce9e14144426235
bool bdrv_all_can_snapshot(BlockDriverState **first_bad_bs) { bool ok = true; BlockDriverState *bs; BdrvNextIterator it; for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acquire(ctx); if (bdrv_is_inserted(bs...
{ "code": [ " BlockDriverState *bs;" ], "line_no": [ 7 ] }
bool FUNC_0(BlockDriverState **first_bad_bs) { bool ok = true; BlockDriverState *bs; BdrvNextIterator it; for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acquire(ctx); if (bdrv_is_inserted(bs) && !bdrv_is_r...
[ "bool FUNC_0(BlockDriverState **first_bad_bs)\n{", "bool ok = true;", "BlockDriverState *bs;", "BdrvNextIterator it;", "for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) {", "AioContext *ctx = bdrv_get_aio_context(bs);", "aio_context_acquire(ctx);", "if (bdrv_is_inserted(bs) && !bdrv_is_read_only(bs...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 32 ], [ 34 ], [ 36 ], [ 40, 42 ], [ 44 ], [ 46 ] ]
4,482
static void ps2_reset_keyboard(PS2KbdState *s) { trace_ps2_reset_keyboard(s); s->scan_enabled = 1; s->scancode_set = 2; ps2_set_ledstate(s, 0); }
true
qemu
6e24ee0c1e4b6c0c9c748acab77ecd113c942a4d
static void ps2_reset_keyboard(PS2KbdState *s) { trace_ps2_reset_keyboard(s); s->scan_enabled = 1; s->scancode_set = 2; ps2_set_ledstate(s, 0); }
{ "code": [], "line_no": [] }
static void FUNC_0(PS2KbdState *VAR_0) { trace_ps2_reset_keyboard(VAR_0); VAR_0->scan_enabled = 1; VAR_0->scancode_set = 2; ps2_set_ledstate(VAR_0, 0); }
[ "static void FUNC_0(PS2KbdState *VAR_0)\n{", "trace_ps2_reset_keyboard(VAR_0);", "VAR_0->scan_enabled = 1;", "VAR_0->scancode_set = 2;", "ps2_set_ledstate(VAR_0, 0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 12 ], [ 14 ] ]
4,483
int qemu_savevm_state_complete(QEMUFile *f) { SaveStateEntry *se; TAILQ_FOREACH(se, &savevm_handlers, entry) { if (se->save_live_state == NULL) continue; /* Section type */ qemu_put_byte(f, QEMU_VM_SECTION_END); qemu_put_be32(f, se->section_id); ...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
int qemu_savevm_state_complete(QEMUFile *f) { SaveStateEntry *se; TAILQ_FOREACH(se, &savevm_handlers, entry) { if (se->save_live_state == NULL) continue; qemu_put_byte(f, QEMU_VM_SECTION_END); qemu_put_be32(f, se->section_id); se->save_live_sta...
{ "code": [], "line_no": [] }
int FUNC_0(QEMUFile *VAR_0) { SaveStateEntry *se; TAILQ_FOREACH(se, &savevm_handlers, entry) { if (se->save_live_state == NULL) continue; qemu_put_byte(VAR_0, QEMU_VM_SECTION_END); qemu_put_be32(VAR_0, se->section_id); se->save_live_state(VAR_0...
[ "int FUNC_0(QEMUFile *VAR_0)\n{", "SaveStateEntry *se;", "TAILQ_FOREACH(se, &savevm_handlers, entry) {", "if (se->save_live_state == NULL)\ncontinue;", "qemu_put_byte(VAR_0, QEMU_VM_SECTION_END);", "qemu_put_be32(VAR_0, se->section_id);", "se->save_live_state(VAR_0, QEMU_VM_SECTION_END, se->opaque);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [ 67...
4,484
static GenericList *next_list(Visitor *v, GenericList **list, size_t size) { StringOutputVisitor *sov = to_sov(v); GenericList *ret = NULL; if (*list) { if (sov->head) { ret = *list; } else { ret = (*list)->next; } if (sov->head) { ...
false
qemu
d9f62dde1303286b24ac8ce88be27e2b9b9c5f46
static GenericList *next_list(Visitor *v, GenericList **list, size_t size) { StringOutputVisitor *sov = to_sov(v); GenericList *ret = NULL; if (*list) { if (sov->head) { ret = *list; } else { ret = (*list)->next; } if (sov->head) { ...
{ "code": [], "line_no": [] }
static GenericList *FUNC_0(Visitor *v, GenericList **list, size_t size) { StringOutputVisitor *sov = to_sov(v); GenericList *ret = NULL; if (*list) { if (sov->head) { ret = *list; } else { ret = (*list)->next; } if (sov->head) { ...
[ "static GenericList *FUNC_0(Visitor *v, GenericList **list, size_t size)\n{", "StringOutputVisitor *sov = to_sov(v);", "GenericList *ret = NULL;", "if (*list) {", "if (sov->head) {", "ret = *list;", "} else {", "ret = (*list)->next;", "}", "if (sov->head) {", "if (ret && ret->next == 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 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
4,485
static void curl_multi_timeout_do(void *arg) { #ifdef NEED_CURL_TIMER_CALLBACK BDRVCURLState *s = (BDRVCURLState *)arg; int running; if (!s->multi) { return; } aio_context_acquire(s->aio_context); curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running); c...
false
qemu
ba3186c4e473963ba83b5792f3d02d4ac0a76ba5
static void curl_multi_timeout_do(void *arg) { #ifdef NEED_CURL_TIMER_CALLBACK BDRVCURLState *s = (BDRVCURLState *)arg; int running; if (!s->multi) { return; } aio_context_acquire(s->aio_context); curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running); c...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { #ifdef NEED_CURL_TIMER_CALLBACK BDRVCURLState *s = (BDRVCURLState *)VAR_0; int running; if (!s->multi) { return; } aio_context_acquire(s->aio_context); curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running); curl_multi_c...
[ "static void FUNC_0(void *VAR_0)\n{", "#ifdef NEED_CURL_TIMER_CALLBACK\nBDRVCURLState *s = (BDRVCURLState *)VAR_0;", "int running;", "if (!s->multi) {", "return;", "}", "aio_context_acquire(s->aio_context);", "curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running);", "curl_multi_check_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ] ]
4,486
static int virtio_pci_ioeventfd_assign(DeviceState *d, EventNotifier *notifier, int n, bool assign) { VirtIOPCIProxy *proxy = to_virtio_pci_proxy(d); VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); VirtQueue *vq = virtio_get_queue(vdev, n); bool lega...
false
qemu
9a4c0e220d8a4f82b5665d0ee95ef94d8e1509d5
static int virtio_pci_ioeventfd_assign(DeviceState *d, EventNotifier *notifier, int n, bool assign) { VirtIOPCIProxy *proxy = to_virtio_pci_proxy(d); VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); VirtQueue *vq = virtio_get_queue(vdev, n); bool lega...
{ "code": [], "line_no": [] }
static int FUNC_0(DeviceState *VAR_0, EventNotifier *VAR_1, int VAR_2, bool VAR_3) { VirtIOPCIProxy *proxy = to_virtio_pci_proxy(VAR_0); VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus); VirtQueue *vq = virtio_get_queue(vdev, VAR_2); bool legacy = !(pr...
[ "static int FUNC_0(DeviceState *VAR_0, EventNotifier *VAR_1,\nint VAR_2, bool VAR_3)\n{", "VirtIOPCIProxy *proxy = to_virtio_pci_proxy(VAR_0);", "VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);", "VirtQueue *vq = virtio_get_queue(vdev, VAR_2);", "bool legacy = !(proxy->flags & VIRTIO_PCI_FLAG_DISAB...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [...
4,487
static uint64_t esp_pci_io_read(void *opaque, target_phys_addr_t addr, unsigned int size) { PCIESPState *pci = opaque; uint32_t ret; if (addr < 0x40) { /* SCSI core reg */ ret = esp_reg_read(&pci->esp, addr >> 2); } else if (addr < 0x60) { ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t esp_pci_io_read(void *opaque, target_phys_addr_t addr, unsigned int size) { PCIESPState *pci = opaque; uint32_t ret; if (addr < 0x40) { ret = esp_reg_read(&pci->esp, addr >> 2); } else if (addr < 0x60) { ret = ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned int size) { PCIESPState *pci = opaque; uint32_t ret; if (addr < 0x40) { ret = esp_reg_read(&pci->esp, addr >> 2); } else if (addr < 0x60) { ret = esp_pci_d...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned int size)\n{", "PCIESPState *pci = opaque;", "uint32_t ret;", "if (addr < 0x40) {", "ret = esp_reg_read(&pci->esp, addr >> 2);", "} else if (addr < 0x60) {", "ret = esp_pci_dma_read(pci, (addr - 0x40) >> 2);", "} else if (addr ==...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ] ]
4,489
sorecvfrom(struct socket *so) { struct sockaddr_storage addr; socklen_t addrlen = sizeof(struct sockaddr_storage); DEBUG_CALL("sorecvfrom"); DEBUG_ARG("so = %p", so); if (so->so_type == IPPROTO_ICMP) { /* This is a "ping" reply */ char buff[256]; int len; len = recvfrom(so->s, buff, 256, ...
false
qemu
5379229a2708df3a1506113315214c3ce5325859
sorecvfrom(struct socket *so) { struct sockaddr_storage addr; socklen_t addrlen = sizeof(struct sockaddr_storage); DEBUG_CALL("sorecvfrom"); DEBUG_ARG("so = %p", so); if (so->so_type == IPPROTO_ICMP) { char buff[256]; int len; len = recvfrom(so->s, buff, 256, 0, (struct sockaddr *)&...
{ "code": [], "line_no": [] }
FUNC_0(struct socket *VAR_0) { struct sockaddr_storage VAR_1; socklen_t addrlen = sizeof(struct sockaddr_storage); DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %p", VAR_0); if (VAR_0->so_type == IPPROTO_ICMP) { char VAR_2[256]; int VAR_5; VAR_5 = recvfrom(VAR_0->s, VAR_2, 256, 0, (struc...
[ "FUNC_0(struct socket *VAR_0)\n{", "struct sockaddr_storage VAR_1;", "socklen_t addrlen = sizeof(struct sockaddr_storage);", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %p\", VAR_0);", "if (VAR_0->so_type == IPPROTO_ICMP) {", "char VAR_2[256];", "int VAR_5;", "VAR_5 = recvfrom(VAR_0->s, VAR_2, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57...
4,490
static int pxa2xx_rtc_init(SysBusDevice *dev) { PXA2xxRTCState *s = FROM_SYSBUS(PXA2xxRTCState, dev); struct tm tm; int wom; int iomemtype; s->rttr = 0x7fff; s->rtsr = 0; qemu_get_timedate(&tm, 0); wom = ((tm.tm_mday - 1) / 7) + 1; s->last_rcnr = (uint32_t) mktimegm(&...
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
static int pxa2xx_rtc_init(SysBusDevice *dev) { PXA2xxRTCState *s = FROM_SYSBUS(PXA2xxRTCState, dev); struct tm tm; int wom; int iomemtype; s->rttr = 0x7fff; s->rtsr = 0; qemu_get_timedate(&tm, 0); wom = ((tm.tm_mday - 1) / 7) + 1; s->last_rcnr = (uint32_t) mktimegm(&...
{ "code": [], "line_no": [] }
static int FUNC_0(SysBusDevice *VAR_0) { PXA2xxRTCState *s = FROM_SYSBUS(PXA2xxRTCState, VAR_0); struct VAR_1 VAR_1; int VAR_2; int VAR_3; s->rttr = 0x7fff; s->rtsr = 0; qemu_get_timedate(&VAR_1, 0); VAR_2 = ((VAR_1.tm_mday - 1) / 7) + 1; s->last_rcnr = (uint32_t) mkt...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "PXA2xxRTCState *s = FROM_SYSBUS(PXA2xxRTCState, VAR_0);", "struct VAR_1 VAR_1;", "int VAR_2;", "int VAR_3;", "s->rttr = 0x7fff;", "s->rtsr = 0;", "qemu_get_timedate(&VAR_1, 0);", "VAR_2 = ((VAR_1.tm_mday - 1) / 7) + 1;", "s->last_rcnr = (uint32_t) mkti...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
4,491
static int transcode(AVFormatContext **output_files, int nb_output_files, AVFormatContext **input_files, int nb_input_files, AVStreamMap *stream_maps, int nb_stream_maps) { int ret = 0, i, j, k, n, nb_istreams = 0, nb_ostreams...
false
FFmpeg
f5a669c229425cdac828c230addf10d6d9cbe3a7
static int transcode(AVFormatContext **output_files, int nb_output_files, AVFormatContext **input_files, int nb_input_files, AVStreamMap *stream_maps, int nb_stream_maps) { int ret = 0, i, j, k, n, nb_istreams = 0, nb_ostreams...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext **VAR_0, int VAR_1, AVFormatContext **VAR_2, int VAR_3, AVStreamMap *VAR_4, int VAR_5) { int VAR_6 = 0, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11 = 0, VAR_12 = 0, VAR_13; AVFormatContext *is, *...
[ "static int FUNC_0(AVFormatContext **VAR_0,\nint VAR_1,\nAVFormatContext **VAR_2,\nint VAR_3,\nAVStreamMap *VAR_4, int VAR_5)\n{", "int VAR_6 = 0, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11 = 0, VAR_12 = 0, VAR_13;", "AVFormatContext *is, *os;", "AVCodecContext *codec, *icodec;", "AVOutputStream *ost, **ost_table ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41 ], [ 43, 45 ], [ 51 ], [...
4,492
static void kqemu_vfree(void *ptr) { /* may be useful some day, but currently we do not need to free */ }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
static void kqemu_vfree(void *ptr) { }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { }
[ "static void FUNC_0(void *VAR_0)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 7 ] ]
4,493
static inline void gen_movcf_ps (int fs, int fd, int cc, int tf) { int cond; TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32); TCGv r_tmp2 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fph0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp1 = tcg_temp_local...
false
qemu
9bf3eb2ca542dd9306cb2e72fc68e02ba3e56e2e
static inline void gen_movcf_ps (int fs, int fd, int cc, int tf) { int cond; TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32); TCGv r_tmp2 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fph0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp1 = tcg_temp_local...
{ "code": [], "line_no": [] }
static inline void FUNC_0 (int VAR_0, int VAR_1, int VAR_2, int VAR_3) { int VAR_4; TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32); TCGv r_tmp2 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fph0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp1 = tcg_tem...
[ "static inline void FUNC_0 (int VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4;", "TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32);", "TCGv r_tmp2 = tcg_temp_local_new(TCG_TYPE_I32);", "TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32);", "TCGv fph0 = tcg_temp_local_new(TCG_TYPE_I32);", "TCGv fp1 = tc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
4,496
static void bmdma_writeb(void *opaque, uint32_t addr, uint32_t val) { BMDMAState *bm = opaque; PCIIDEState *pci_dev = pci_from_bm(bm); #ifdef DEBUG_IDE printf("bmdma: writeb 0x%02x : 0x%02x\n", addr, val); #endif switch(addr & 3) { case 1: pci_dev->dev.config[MRDMODE] = ...
false
qemu
70ae65f5d91462e1905a53236179fde21cda3a2f
static void bmdma_writeb(void *opaque, uint32_t addr, uint32_t val) { BMDMAState *bm = opaque; PCIIDEState *pci_dev = pci_from_bm(bm); #ifdef DEBUG_IDE printf("bmdma: writeb 0x%02x : 0x%02x\n", addr, val); #endif switch(addr & 3) { case 1: pci_dev->dev.config[MRDMODE] = ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { BMDMAState *bm = VAR_0; PCIIDEState *pci_dev = pci_from_bm(bm); #ifdef DEBUG_IDE printf("bmdma: writeb 0x%02x : 0x%02x\n", VAR_1, VAR_2); #endif switch(VAR_1 & 3) { case 1: pci_dev->dev.config[MRDMODE] = ...
[ "static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "BMDMAState *bm = VAR_0;", "PCIIDEState *pci_dev = pci_from_bm(bm);", "#ifdef DEBUG_IDE\nprintf(\"bmdma: writeb 0x%02x : 0x%02x\\n\", VAR_1, VAR_2);", "#endif\nswitch(VAR_1 & 3) {", "case 1:\npci_dev->dev.config[MRDMODE] =\n(pci_dev->de...
[ 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 ] ]
4,497
static uint64_t empty_slot_read(void *opaque, target_phys_addr_t addr, unsigned size) { DPRINTF("read from " TARGET_FMT_plx "\n", addr); return 0; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t empty_slot_read(void *opaque, target_phys_addr_t addr, unsigned size) { DPRINTF("read from " TARGET_FMT_plx "\n", addr); return 0; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { DPRINTF("read from " TARGET_FMT_plx "\n", addr); return 0; }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "DPRINTF(\"read from \" TARGET_FMT_plx \"\\n\", addr);", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
4,498
static pxa2xx_timer_info *pxa2xx_timer_init(target_phys_addr_t base, qemu_irq *irqs) { int i; int iomemtype; pxa2xx_timer_info *s; s = (pxa2xx_timer_info *) qemu_mallocz(sizeof(pxa2xx_timer_info)); s->irq_enabled = 0; s->oldclock = 0; s->clock = 0; s->lastload...
false
qemu
e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf
static pxa2xx_timer_info *pxa2xx_timer_init(target_phys_addr_t base, qemu_irq *irqs) { int i; int iomemtype; pxa2xx_timer_info *s; s = (pxa2xx_timer_info *) qemu_mallocz(sizeof(pxa2xx_timer_info)); s->irq_enabled = 0; s->oldclock = 0; s->clock = 0; s->lastload...
{ "code": [], "line_no": [] }
static pxa2xx_timer_info *FUNC_0(target_phys_addr_t base, qemu_irq *irqs) { int VAR_0; int VAR_1; pxa2xx_timer_info *s; s = (pxa2xx_timer_info *) qemu_mallocz(sizeof(pxa2xx_timer_info)); s->irq_enabled = 0; s->oldclock = 0; s->clock = 0; s->lastload = qemu_get...
[ "static pxa2xx_timer_info *FUNC_0(target_phys_addr_t base,\nqemu_irq *irqs)\n{", "int VAR_0;", "int VAR_1;", "pxa2xx_timer_info *s;", "s = (pxa2xx_timer_info *) qemu_mallocz(sizeof(pxa2xx_timer_info));", "s->irq_enabled = 0;", "s->oldclock = 0;", "s->clock = 0;", "s->lastload = qemu_get_clock(vm_clo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49,...
4,499
static int do_subchannel_work(SubchDev *sch) { if (sch->do_subchannel_work) { return sch->do_subchannel_work(sch); } else { return -EINVAL; } }
false
qemu
9ea63c05d90ba85d819f9b2472ce6dfba7a403b4
static int do_subchannel_work(SubchDev *sch) { if (sch->do_subchannel_work) { return sch->do_subchannel_work(sch); } else { return -EINVAL; } }
{ "code": [], "line_no": [] }
static int FUNC_0(SubchDev *VAR_0) { if (VAR_0->FUNC_0) { return VAR_0->FUNC_0(VAR_0); } else { return -EINVAL; } }
[ "static int FUNC_0(SubchDev *VAR_0)\n{", "if (VAR_0->FUNC_0) {", "return VAR_0->FUNC_0(VAR_0);", "} else {", "return -EINVAL;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
4,500
void block_job_enter(BlockJob *job) { if (job->co && !job->busy) { bdrv_coroutine_enter(blk_bs(job->blk), job->co); } }
false
qemu
eb05e011e248c6fb6baee295e14fd206e136028c
void block_job_enter(BlockJob *job) { if (job->co && !job->busy) { bdrv_coroutine_enter(blk_bs(job->blk), job->co); } }
{ "code": [], "line_no": [] }
void FUNC_0(BlockJob *VAR_0) { if (VAR_0->co && !VAR_0->busy) { bdrv_coroutine_enter(blk_bs(VAR_0->blk), VAR_0->co); } }
[ "void FUNC_0(BlockJob *VAR_0)\n{", "if (VAR_0->co && !VAR_0->busy) {", "bdrv_coroutine_enter(blk_bs(VAR_0->blk), VAR_0->co);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
4,501
static int get_physical_address (CPUMIPSState *env, hwaddr *physical, int *prot, target_ulong real_address, int rw, int access_type, int mmu_idx) { /* User mode can only access useg/xuseg */ int user_mode = mmu_idx == MIPS_HFLAG_UM; int s...
false
qemu
480e79aedd322fcfac17052caff21626ea7c78e2
static int get_physical_address (CPUMIPSState *env, hwaddr *physical, int *prot, target_ulong real_address, int rw, int access_type, int mmu_idx) { int user_mode = mmu_idx == MIPS_HFLAG_UM; int supervisor_mode = mmu_idx == MIPS_HFLAG_SM;...
{ "code": [], "line_no": [] }
static int FUNC_0 (CPUMIPSState *VAR_0, hwaddr *VAR_1, int *VAR_2, target_ulong VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7 = VAR_6 == MIPS_HFLAG_UM; int VAR_8 = VAR_6 == MIPS_HFLAG_SM; int VAR_9 = !VAR_7 && !VAR_8; #if def...
[ "static int FUNC_0 (CPUMIPSState *VAR_0, hwaddr *VAR_1,\nint *VAR_2, target_ulong VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{", "int VAR_7 = VAR_6 == MIPS_HFLAG_UM;", "int VAR_8 = VAR_6 == MIPS_HFLAG_SM;", "int VAR_9 = !VAR_7 && !VAR_8;", "#if defined(TARGET_MIPS64)\nint UX = (VAR_0->CP0_Status & (1 << CP0S...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 35, 37, 39, 41, 43, 47, 49, 53 ], [ 57 ], [ 59 ], [ 63 ], [ 65 ], ...
4,502
static int rv30_decode_mb_info(RV34DecContext *r) { static const int rv30_p_types[6] = { RV34_MB_SKIP, RV34_MB_P_16x16, RV34_MB_P_8x8, -1, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 }; static const int rv30_b_types[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_IN...
false
FFmpeg
979bea13003ef489d95d2538ac2fb1c26c6f103b
static int rv30_decode_mb_info(RV34DecContext *r) { static const int rv30_p_types[6] = { RV34_MB_SKIP, RV34_MB_P_16x16, RV34_MB_P_8x8, -1, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 }; static const int rv30_b_types[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_IN...
{ "code": [], "line_no": [] }
static int FUNC_0(RV34DecContext *VAR_0) { static const int VAR_1[6] = { RV34_MB_SKIP, RV34_MB_P_16x16, RV34_MB_P_8x8, -1, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 }; static const int VAR_2[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA...
[ "static int FUNC_0(RV34DecContext *VAR_0)\n{", "static const int VAR_1[6] = { RV34_MB_SKIP, RV34_MB_P_16x16, RV34_MB_P_8x8, -1, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 };", "static const int VAR_2[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ] ]
4,503
static ssize_t test_block_write_func(QCryptoBlock *block, size_t offset, const uint8_t *buf, size_t buflen, Error **errp, void *op...
false
qemu
375092332eeaa6e47561ce47fd36144cdaf964d0
static ssize_t test_block_write_func(QCryptoBlock *block, size_t offset, const uint8_t *buf, size_t buflen, Error **errp, void *op...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(QCryptoBlock *block, size_t offset, const uint8_t *buf, size_t buflen, Error **errp, void *opaque) { B...
[ "static ssize_t FUNC_0(QCryptoBlock *block,\nsize_t offset,\nconst uint8_t *buf,\nsize_t buflen,\nError **errp,\nvoid *opaque)\n{", "Buffer *header = opaque;", "g_assert_cmpint(buflen + offset, <=, header->capacity);", "memcpy(header->buffer + offset, buf, buflen);", "header->offset = offset + buflen;", "...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
4,504
int net_init_vde(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { /* FIXME error_setg(errp, ...) on failure */ const NetdevVdeOptions *vde; assert(opts->type == NET_CLIENT_OPTIONS_KIND_VDE); vde = opts->u.vde; /* missing optional value...
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
int net_init_vde(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { const NetdevVdeOptions *vde; assert(opts->type == NET_CLIENT_OPTIONS_KIND_VDE); vde = opts->u.vde; if (net_vde_init(peer, "vde", name, vde->sock, vde->port, vde->...
{ "code": [], "line_no": [] }
int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1, NetClientState *VAR_2, Error **VAR_3) { const NetdevVdeOptions *VAR_4; assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_VDE); VAR_4 = VAR_0->u.VAR_4; if (net_vde_init(VAR_2, "VAR_4", VAR_1, VAR_4->sock, VAR_...
[ "int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,\nNetClientState *VAR_2, Error **VAR_3)\n{", "const NetdevVdeOptions *VAR_4;", "assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_VDE);", "VAR_4 = VAR_0->u.VAR_4;", "if (net_vde_init(VAR_2, \"VAR_4\", VAR_1, VAR_4->sock, VAR_4->port, VAR_4->group,\nVA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 13 ], [ 15 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
4,505
static void tcx_rstip_writel(void *opaque, hwaddr addr, uint64_t val, unsigned size) { TCXState *s = opaque; int i; uint32_t col; if (!(addr & 4)) { s->tmpblit = val; } else { addr = (addr >> 3) & 0xfffff; col = cpu_to_be32(s->tmpblit)...
false
qemu
973945804d95878375b487c0c5c9b2556c5e4543
static void tcx_rstip_writel(void *opaque, hwaddr addr, uint64_t val, unsigned size) { TCXState *s = opaque; int i; uint32_t col; if (!(addr & 4)) { s->tmpblit = val; } else { addr = (addr >> 3) & 0xfffff; col = cpu_to_be32(s->tmpblit)...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { TCXState *s = VAR_0; int VAR_4; uint32_t col; if (!(VAR_1 & 4)) { s->tmpblit = VAR_2; } else { VAR_1 = (VAR_1 >> 3) & 0xfffff; col = cpu_to_be32(s->tmpblit...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "TCXState *s = VAR_0;", "int VAR_4;", "uint32_t col;", "if (!(VAR_1 & 4)) {", "s->tmpblit = VAR_2;", "} else {", "VAR_1 = (VAR_1 >> 3) & 0xfffff;", "col = cpu_to_be32(s->tmpblit);", "if (s->depth == 24) {", "for...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
4,506
static int load_flat_file(struct linux_binprm * bprm, struct lib_info *libinfo, int id, abi_ulong *extra_stack) { struct flat_hdr * hdr; abi_ulong textpos = 0, datapos = 0; abi_long result; abi_ulong realdatastart = 0; abi_ulong text_len, data_len, bss_len, stack_len, flags; abi_ulong ...
false
qemu
c3109ba1b109f84929abbfe0462d910d5aa8617c
static int load_flat_file(struct linux_binprm * bprm, struct lib_info *libinfo, int id, abi_ulong *extra_stack) { struct flat_hdr * hdr; abi_ulong textpos = 0, datapos = 0; abi_long result; abi_ulong realdatastart = 0; abi_ulong text_len, data_len, bss_len, stack_len, flags; abi_ulong ...
{ "code": [], "line_no": [] }
static int FUNC_0(struct linux_binprm * VAR_0, struct lib_info *VAR_1, int VAR_2, abi_ulong *VAR_3) { struct flat_hdr * VAR_4; abi_ulong textpos = 0, datapos = 0; abi_long result; abi_ulong realdatastart = 0; abi_ulong text_len, data_len, bss_len, stack_len, flags; abi_ulong memp = 0; ...
[ "static int FUNC_0(struct linux_binprm * VAR_0,\nstruct lib_info *VAR_1, int VAR_2, abi_ulong *VAR_3)\n{", "struct flat_hdr * VAR_4;", "abi_ulong textpos = 0, datapos = 0;", "abi_long result;", "abi_ulong realdatastart = 0;", "abi_ulong text_len, data_len, bss_len, stack_len, flags;", "abi_ulong memp = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
4,507
static void tcg_out_bc(TCGContext *s, int bc, int label_index) { TCGLabel *l = &s->labels[label_index]; if (l->has_value) { tcg_out32(s, bc | reloc_pc14_val(s->code_ptr, l->u.value_ptr)); } else { tcg_out_reloc(s, s->code_ptr, R_PPC_REL14, label_index, 0); tcg_out_bc_noaddr(...
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static void tcg_out_bc(TCGContext *s, int bc, int label_index) { TCGLabel *l = &s->labels[label_index]; if (l->has_value) { tcg_out32(s, bc | reloc_pc14_val(s->code_ptr, l->u.value_ptr)); } else { tcg_out_reloc(s, s->code_ptr, R_PPC_REL14, label_index, 0); tcg_out_bc_noaddr(...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2) { TCGLabel *l = &VAR_0->labels[VAR_2]; if (l->has_value) { tcg_out32(VAR_0, VAR_1 | reloc_pc14_val(VAR_0->code_ptr, l->u.value_ptr)); } else { tcg_out_reloc(VAR_0, VAR_0->code_ptr, R_PPC_REL14, VAR_2, 0); tcg_out_bc...
[ "static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2)\n{", "TCGLabel *l = &VAR_0->labels[VAR_2];", "if (l->has_value) {", "tcg_out32(VAR_0, VAR_1 | reloc_pc14_val(VAR_0->code_ptr, l->u.value_ptr));", "} else {", "tcg_out_reloc(VAR_0, VAR_0->code_ptr, R_PPC_REL14, VAR_2, 0);", "tcg_out_bc_noaddr(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
4,508
static void rng_egd_free_request(RngRequest *req) { g_free(req->data); g_free(req); }
false
qemu
9f14b0add1dcdbfa2ee61051d068211fb0a1fcc9
static void rng_egd_free_request(RngRequest *req) { g_free(req->data); g_free(req); }
{ "code": [], "line_no": [] }
static void FUNC_0(RngRequest *VAR_0) { g_free(VAR_0->data); g_free(VAR_0); }
[ "static void FUNC_0(RngRequest *VAR_0)\n{", "g_free(VAR_0->data);", "g_free(VAR_0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
4,509
static int vhdx_create_bat(BlockDriverState *bs, BDRVVHDXState *s, uint64_t image_size, VHDXImageType type, bool use_zero_blocks, uint64_t file_offset, uint32_t length) { int ret = 0; uint64_t data_file_offset; uint64_t ...
false
qemu
a011898d25b8a26a311d56dfe37e8d3a4374ec65
static int vhdx_create_bat(BlockDriverState *bs, BDRVVHDXState *s, uint64_t image_size, VHDXImageType type, bool use_zero_blocks, uint64_t file_offset, uint32_t length) { int ret = 0; uint64_t data_file_offset; uint64_t ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1, uint64_t VAR_2, VHDXImageType VAR_3, bool VAR_4, uint64_t VAR_5, uint32_t VAR_6) { int VAR_7 = 0; uint64_t data_file_offset; uint64_t total_sectors = 0; ...
[ "static int FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1,\nuint64_t VAR_2, VHDXImageType VAR_3,\nbool VAR_4, uint64_t VAR_5,\nuint32_t VAR_6)\n{", "int VAR_7 = 0;", "uint64_t data_file_offset;", "uint64_t total_sectors = 0;", "uint64_t sector_num = 0;", "uint64_t unused;", "int VAR_8;", "VHDXS...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 37 ], [ 39 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
4,510
int kvm_set_signal_mask(CPUState *cpu, const sigset_t *sigset) { struct kvm_signal_mask *sigmask; int r; if (!sigset) { return kvm_vcpu_ioctl(cpu, KVM_SET_SIGNAL_MASK, NULL); } sigmask = g_malloc(sizeof(*sigmask) + sizeof(*sigset)); sigmask->len = 8; memcpy(sigmask->si...
false
qemu
aed6efb90cc43faf45f1e40425646c55d37a340f
int kvm_set_signal_mask(CPUState *cpu, const sigset_t *sigset) { struct kvm_signal_mask *sigmask; int r; if (!sigset) { return kvm_vcpu_ioctl(cpu, KVM_SET_SIGNAL_MASK, NULL); } sigmask = g_malloc(sizeof(*sigmask) + sizeof(*sigset)); sigmask->len = 8; memcpy(sigmask->si...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0, const sigset_t *VAR_1) { struct kvm_signal_mask *VAR_2; int VAR_3; if (!VAR_1) { return kvm_vcpu_ioctl(VAR_0, KVM_SET_SIGNAL_MASK, NULL); } VAR_2 = g_malloc(sizeof(*VAR_2) + sizeof(*VAR_1)); VAR_2->len = 8; memcpy(VAR_2->VAR_1, VAR_1, sizeof...
[ "int FUNC_0(CPUState *VAR_0, const sigset_t *VAR_1)\n{", "struct kvm_signal_mask *VAR_2;", "int VAR_3;", "if (!VAR_1) {", "return kvm_vcpu_ioctl(VAR_0, KVM_SET_SIGNAL_MASK, NULL);", "}", "VAR_2 = g_malloc(sizeof(*VAR_2) + sizeof(*VAR_1));", "VAR_2->len = 8;", "memcpy(VAR_2->VAR_1, VAR_1, sizeof(*VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
4,512
unsigned avutil_version(void) { av_assert0(AV_PIX_FMT_VDA_VLD == 81); //check if the pix fmt enum has not had anything inserted or removed by mistake av_assert0(AV_SAMPLE_FMT_DBLP == 9); av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4); av_assert0(AV_PICTURE_TYPE_BI == 7); av_assert0(LIBAVUTIL_VERSION...
false
FFmpeg
e701cd96c2d5dc034e7615967d208db3d953e111
unsigned avutil_version(void) { av_assert0(AV_PIX_FMT_VDA_VLD == 81); av_assert0(AV_SAMPLE_FMT_DBLP == 9); av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4); av_assert0(AV_PICTURE_TYPE_BI == 7); av_assert0(LIBAVUTIL_VERSION_MICRO >= 100); av_assert0(HAVE_MMX2 == HAVE_MMXEXT); if (av_sat_da...
{ "code": [], "line_no": [] }
unsigned FUNC_0(void) { av_assert0(AV_PIX_FMT_VDA_VLD == 81); av_assert0(AV_SAMPLE_FMT_DBLP == 9); av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4); av_assert0(AV_PICTURE_TYPE_BI == 7); av_assert0(LIBAVUTIL_VERSION_MICRO >= 100); av_assert0(HAVE_MMX2 == HAVE_MMXEXT); if (av_sat_dadd32(1, ...
[ "unsigned FUNC_0(void)\n{", "av_assert0(AV_PIX_FMT_VDA_VLD == 81);", "av_assert0(AV_SAMPLE_FMT_DBLP == 9);", "av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4);", "av_assert0(AV_PICTURE_TYPE_BI == 7);", "av_assert0(LIBAVUTIL_VERSION_MICRO >= 100);", "av_assert0(HAVE_MMX2 == HAVE_MMXEXT);", "if (av_sat_dadd32(1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ] ]
4,513
static int udp_open(URLContext *h, const char *uri, int flags) { char hostname[1024], localaddr[1024] = ""; int port, udp_fd = -1, tmp, bind_ret = -1; UDPContext *s = h->priv_data; int is_output; const char *p; char buf[256]; struct sockaddr_storage my_addr; int len; int re...
false
FFmpeg
281bde27894f994d0982ab9283f15d6073ae352c
static int udp_open(URLContext *h, const char *uri, int flags) { char hostname[1024], localaddr[1024] = ""; int port, udp_fd = -1, tmp, bind_ret = -1; UDPContext *s = h->priv_data; int is_output; const char *p; char buf[256]; struct sockaddr_storage my_addr; int len; int re...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2) { char VAR_3[1024], VAR_4[1024] = ""; int VAR_5, VAR_6 = -1, VAR_7, VAR_8 = -1; UDPContext *s = VAR_0->priv_data; int VAR_9; const char *VAR_10; char VAR_11[256]; struct sockaddr_storage VAR_12; int VAR_13; ...
[ "static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)\n{", "char VAR_3[1024], VAR_4[1024] = \"\";", "int VAR_5, VAR_6 = -1, VAR_7, VAR_8 = -1;", "UDPContext *s = VAR_0->priv_data;", "int VAR_9;", "const char *VAR_10;", "char VAR_11[256];", "struct sockaddr_storage VAR_12;", "int VAR_13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
4,515
static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; TXDContext * const s = avctx->priv_data; AVFrame *picture = data; AVFrame * const p = &s->picture; unsigned int version, w, h, d3d_for...
true
FFmpeg
919f3554387e043bdfe10c6369356d1104882183
static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; TXDContext * const s = avctx->priv_data; AVFrame *picture = data; AVFrame * const p = &s->picture; unsigned int version, w, h, d3d_for...
{ "code": [ " const uint8_t *buf = avpkt->data;", " const uint8_t *cur = buf;", " const uint32_t *palette = (const uint32_t *)(cur + 88);", " version = AV_RL32(cur);", " d3d_format = AV_RL32(cur+76);", " w = AV_RL16(cur+80);", " h ...
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; TXDContext * const s = VAR_0->priv_data; AVFrame *picture = VAR_1; AVFrame * const p = &s->picture; unsigned int VAR_5, VAR_6, VAR_7, VAR_8, VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3) {", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "TXDContext * const s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "AVFrame * const p = &s->picture;", "unsigned int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR...
[ 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ...
4,516
void virtio_scsi_dataplane_start(VirtIOSCSI *s) { int i; int rc; BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s); if (s->dataplane_started || s->dataplane_starting || s->...
true
qemu
a8f2e5c8fffbaf7fbd4f0efc8efbeebade78008f
void virtio_scsi_dataplane_start(VirtIOSCSI *s) { int i; int rc; BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s); if (s->dataplane_started || s->dataplane_starting || s->...
{ "code": [ " rc = virtio_scsi_vring_init(s, vs->ctrl_vq, 0);", " rc = virtio_scsi_vring_init(s, vs->event_vq, 1);", " rc = virtio_scsi_vring_init(s, vs->cmd_vqs[i], i + 2);" ], "line_no": [ 53, 61, 71 ] }
void FUNC_0(VirtIOSCSI *VAR_0) { int VAR_1; int VAR_2; BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(VAR_0); if (VAR_0->dataplane_started || VAR_0->dataplane_starting || ...
[ "void FUNC_0(VirtIOSCSI *VAR_0)\n{", "int VAR_1;", "int VAR_2;", "BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0)));", "VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);", "VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(VAR_0);", "if (VAR_0->dataplane_started ||\nVAR_0->dataplane_starting ||\nVAR_0->dat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 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 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
4,517
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret; char tmp_filename[PATH_MAX]; if (flags & BDRV_O_SNAPSHOT) { BlockDriverState *bs1; int64_t total_size; int is_protocol = 0; BlockDriver *bdrv_qcow2; ...
true
qemu
c2d76497b6eafcaedc806e07804e7bed55a98a0b
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret; char tmp_filename[PATH_MAX]; if (flags & BDRV_O_SNAPSHOT) { BlockDriverState *bs1; int64_t total_size; int is_protocol = 0; BlockDriver *bdrv_qcow2; ...
{ "code": [ " get_tmp_filename(tmp_filename, sizeof(tmp_filename));" ], "line_no": [ 63 ] }
int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2, BlockDriver *VAR_3) { int VAR_4; char VAR_5[PATH_MAX]; if (VAR_2 & BDRV_O_SNAPSHOT) { BlockDriverState *bs1; int64_t total_size; int VAR_6 = 0; BlockDriver *bdrv_qcow2; QEMUOpt...
[ "int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2,\nBlockDriver *VAR_3)\n{", "int VAR_4;", "char VAR_5[PATH_MAX];", "if (VAR_2 & BDRV_O_SNAPSHOT) {", "BlockDriverState *bs1;", "int64_t total_size;", "int VAR_6 = 0;", "BlockDriver *bdrv_qcow2;", "QEMUOptionParameter *options;", "cha...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53, 55 ], [ 59 ...
4,518
void helper_booke206_tlbwe(void) { uint32_t tlbncfg, tlbn; ppcmas_tlb_t *tlb; uint32_t size_tlb, size_ps; switch (env->spr[SPR_BOOKE_MAS0] & MAS0_WQ_MASK) { case MAS0_WQ_ALWAYS: /* good to go, write that entry */ break; case MAS0_WQ_COND: /* XXX check if reserved */ ...
true
qemu
5935ee072d6fbcdf28ff6132ba6d8c3a1356bb0a
void helper_booke206_tlbwe(void) { uint32_t tlbncfg, tlbn; ppcmas_tlb_t *tlb; uint32_t size_tlb, size_ps; switch (env->spr[SPR_BOOKE_MAS0] & MAS0_WQ_MASK) { case MAS0_WQ_ALWAYS: break; case MAS0_WQ_COND: if (0) { return; break; case MAS0_...
{ "code": [], "line_no": [] }
void FUNC_0(void) { uint32_t tlbncfg, tlbn; ppcmas_tlb_t *tlb; uint32_t size_tlb, size_ps; switch (env->spr[SPR_BOOKE_MAS0] & MAS0_WQ_MASK) { case MAS0_WQ_ALWAYS: break; case MAS0_WQ_COND: if (0) { return; break; case MAS0_WQ_CLR_RSRV: ...
[ "void FUNC_0(void)\n{", "uint32_t tlbncfg, tlbn;", "ppcmas_tlb_t *tlb;", "uint32_t size_tlb, size_ps;", "switch (env->spr[SPR_BOOKE_MAS0] & MAS0_WQ_MASK) {", "case MAS0_WQ_ALWAYS:\nbreak;", "case MAS0_WQ_COND:\nif (0) {", "return;", "break;", "case MAS0_WQ_CLR_RSRV:\nreturn;", "default:\nreturn;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7, 9 ], [ 10, 12 ], [ 13 ], [ 14 ], [ 15, 17 ], [ 18, 20 ], [ 21, 22 ], [ 24 ], [ 25 ], [ 26 ], [ 27 ], [ 28 ], [ ...
4,520
static void s390_qemu_cpu_model_initfn(Object *obj) { }
true
qemu
ad5afd07b628cd0610ea322ad60b5ad03aa250c8
static void s390_qemu_cpu_model_initfn(Object *obj) { }
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { }
[ "static void FUNC_0(Object *VAR_0)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 2 ], [ 3 ] ]
4,523
static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { AVFilterContext *ctx = inlink->dst; TileContext *tile = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; if (tile->current) return 0; outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, ...
false
FFmpeg
6f3d2fb18bb6225c27e22a95846c42f2093dc3b7
static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { AVFilterContext *ctx = inlink->dst; TileContext *tile = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; if (tile->current) return 0; outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; TileContext *tile = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; if (tile->current) return 0; outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, ...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "TileContext *tile = ctx->priv;", "AVFilterLink *outlink = ctx->outputs[0];", "if (tile->current)\nreturn 0;", "outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE,\noutlink->w, outli...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31, 33, 35, 37 ], [ 39 ], [ 41 ] ]
4,526
static int v4l2_read_header(AVFormatContext *ctx) { struct video_data *s = ctx->priv_data; AVStream *st; int res = 0; uint32_t desired_format; enum AVCodecID codec_id = AV_CODEC_ID_NONE; enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE; struct v4l2_input input = { 0 }; st = avform...
false
FFmpeg
931da6a5e9dd54563fe5d4d30b7bd4d0a0218c87
static int v4l2_read_header(AVFormatContext *ctx) { struct video_data *s = ctx->priv_data; AVStream *st; int res = 0; uint32_t desired_format; enum AVCodecID codec_id = AV_CODEC_ID_NONE; enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE; struct v4l2_input input = { 0 }; st = avform...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { struct video_data *VAR_1 = VAR_0->priv_data; AVStream *st; int VAR_2 = 0; uint32_t desired_format; enum AVCodecID VAR_3 = AV_CODEC_ID_NONE; enum AVPixelFormat VAR_4 = AV_PIX_FMT_NONE; struct v4l2_input VAR_5 = { 0 }; st = avformat_ne...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "struct video_data *VAR_1 = VAR_0->priv_data;", "AVStream *st;", "int VAR_2 = 0;", "uint32_t desired_format;", "enum AVCodecID VAR_3 = AV_CODEC_ID_NONE;", "enum AVPixelFormat VAR_4 = AV_PIX_FMT_NONE;", "struct v4l2_input VAR_5 = { 0 };", "st = avformat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29, 35, 37 ], [ 39, 43 ], [ 45, 47 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [...
4,527
static int output_frame(H264Context *h, AVFrame *dst, Picture *srcp) { AVFrame *src = &srcp->f; int i; int ret = av_frame_ref(dst, src); if (ret < 0) return ret; av_dict_set(&dst->metadata, "stereo_mode", ff_h264_sei_stereo_mode(h), 0); if (!srcp->crop) return 0; ...
false
FFmpeg
8c55ff393340998faae887dfac19e7ef128e1e58
static int output_frame(H264Context *h, AVFrame *dst, Picture *srcp) { AVFrame *src = &srcp->f; int i; int ret = av_frame_ref(dst, src); if (ret < 0) return ret; av_dict_set(&dst->metadata, "stereo_mode", ff_h264_sei_stereo_mode(h), 0); if (!srcp->crop) return 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0, AVFrame *VAR_1, Picture *VAR_2) { AVFrame *src = &VAR_2->f; int VAR_3; int VAR_4 = av_frame_ref(VAR_1, src); if (VAR_4 < 0) return VAR_4; av_dict_set(&VAR_1->metadata, "stereo_mode", ff_h264_sei_stereo_mode(VAR_0), 0); if (!VAR_2->crop) ...
[ "static int FUNC_0(H264Context *VAR_0, AVFrame *VAR_1, Picture *VAR_2)\n{", "AVFrame *src = &VAR_2->f;", "int VAR_3;", "int VAR_4 = av_frame_ref(VAR_1, src);", "if (VAR_4 < 0)\nreturn VAR_4;", "av_dict_set(&VAR_1->metadata, \"stereo_mode\", ff_h264_sei_stereo_mode(VAR_0), 0);", "if (!VAR_2->crop)\nretur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
4,528
static int flac_write_header(struct AVFormatContext *s) { int ret; AVCodecContext *codec = s->streams[0]->codec; FlacMuxerContext *c = s->priv_data; if (!c->write_header) return 0; ret = ff_flac_write_header(s->pb, codec, 0); if (ret) return ret; ret = flac_...
false
FFmpeg
0c1959b056f6ccaa2eee2c824352ba93c8e36d52
static int flac_write_header(struct AVFormatContext *s) { int ret; AVCodecContext *codec = s->streams[0]->codec; FlacMuxerContext *c = s->priv_data; if (!c->write_header) return 0; ret = ff_flac_write_header(s->pb, codec, 0); if (ret) return ret; ret = flac_...
{ "code": [], "line_no": [] }
static int FUNC_0(struct AVFormatContext *VAR_0) { int VAR_1; AVCodecContext *codec = VAR_0->streams[0]->codec; FlacMuxerContext *c = VAR_0->priv_data; if (!c->write_header) return 0; VAR_1 = ff_flac_write_header(VAR_0->pb, codec, 0); if (VAR_1) return VAR_1; ...
[ "static int FUNC_0(struct AVFormatContext *VAR_0)\n{", "int VAR_1;", "AVCodecContext *codec = VAR_0->streams[0]->codec;", "FlacMuxerContext *c = VAR_0->priv_data;", "if (!c->write_header)\nreturn 0;", "VAR_1 = ff_flac_write_header(VAR_0->pb, codec, 0);", "if (VAR_1)\nreturn VAR_1;", "VAR_1 = flac_wr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 27, 29 ], [ 31, 33 ], [ 45 ], [ 49 ], [ 51 ] ]
4,529
int ff_qsv_enc_init(AVCodecContext *avctx, QSVEncContext *q) { int opaque_alloc = 0; int ret; q->param.IOPattern = MFX_IOPATTERN_IN_SYSTEM_MEMORY; q->param.AsyncDepth = q->async_depth; q->async_fifo = av_fifo_alloc((1 + q->async_depth) * (sizeof(AVPacket...
false
FFmpeg
a1335149fd610b16459d9281b611282cac51c950
int ff_qsv_enc_init(AVCodecContext *avctx, QSVEncContext *q) { int opaque_alloc = 0; int ret; q->param.IOPattern = MFX_IOPATTERN_IN_SYSTEM_MEMORY; q->param.AsyncDepth = q->async_depth; q->async_fifo = av_fifo_alloc((1 + q->async_depth) * (sizeof(AVPacket...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, QSVEncContext *VAR_1) { int VAR_2 = 0; int VAR_3; VAR_1->param.IOPattern = MFX_IOPATTERN_IN_SYSTEM_MEMORY; VAR_1->param.AsyncDepth = VAR_1->async_depth; VAR_1->async_fifo = av_fifo_alloc((1 + VAR_1->async_depth) * (sizeo...
[ "int FUNC_0(AVCodecContext *VAR_0, QSVEncContext *VAR_1)\n{", "int VAR_2 = 0;", "int VAR_3;", "VAR_1->param.IOPattern = MFX_IOPATTERN_IN_SYSTEM_MEMORY;", "VAR_1->param.AsyncDepth = VAR_1->async_depth;", "VAR_1->async_fifo = av_fifo_alloc((1 + VAR_1->async_depth) *\n(sizeof(AVPacket) + sizeof(mfxSyncPoint...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51, 53 ], [ 57 ], [ 59...
4,531
void st_print_trace(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...)) { unsigned int i; for (i = 0; i < TRACE_BUF_LEN; i++) { TraceRecord record; if (!get_trace_record(i, &record)) { continue; } stream_printf(stream, "Event %" PRIu64 ...
true
qemu
88affa1c77c9019f3450f851495997897bd14e40
void st_print_trace(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...)) { unsigned int i; for (i = 0; i < TRACE_BUF_LEN; i++) { TraceRecord record; if (!get_trace_record(i, &record)) { continue; } stream_printf(stream, "Event %" PRIu64 ...
{ "code": [ "void st_print_trace(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...))", " unsigned int i;", " for (i = 0; i < TRACE_BUF_LEN; i++) {", " TraceRecord record;", " if (!get_trace_record(i, &record)) {", " continue;", " st...
void FUNC_0(FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...)) { unsigned int VAR_3; for (VAR_3 = 0; VAR_3 < TRACE_BUF_LEN; VAR_3++) { TraceRecord record; if (!get_trace_record(VAR_3, &record)) { continue; } VAR_1(VAR_2, "Event %" PRIu64 " : %...
[ "void FUNC_0(FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))\n{", "unsigned int VAR_3;", "for (VAR_3 = 0; VAR_3 < TRACE_BUF_LEN; VAR_3++) {", "TraceRecord record;", "if (!get_trace_record(VAR_3, &record)) {", "continue;", "}", "VAR_1(VAR_2, \"Event %\" PRIu64 \" : %\" PRIx64 \" %\" PRI...
[ 1, 1, 1, 1, 1, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27, 29 ], [ 31 ], [ 33 ] ]
4,532
static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) { GetBitContext *gb=&vc->gb; uint_fast16_t i,j,k; vc->floor_count=get_bits(gb, 6)+1; vc->floors=av_mallocz(vc->floor_count * sizeof(vorbis_floor)); for (i=0;i<vc->floor_count;++i) { vorbis_floor *floor_setup=&vc->floors...
false
FFmpeg
993092dcd3fb7ec84fdd1cd3b28a3973740b22bf
static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) { GetBitContext *gb=&vc->gb; uint_fast16_t i,j,k; vc->floor_count=get_bits(gb, 6)+1; vc->floors=av_mallocz(vc->floor_count * sizeof(vorbis_floor)); for (i=0;i<vc->floor_count;++i) { vorbis_floor *floor_setup=&vc->floors...
{ "code": [], "line_no": [] }
static int FUNC_0(vorbis_context *VAR_0) { GetBitContext *gb=&VAR_0->gb; uint_fast16_t i,j,k; VAR_0->floor_count=get_bits(gb, 6)+1; VAR_0->floors=av_mallocz(VAR_0->floor_count * sizeof(vorbis_floor)); for (i=0;i<VAR_0->floor_count;++i) { vorbis_floor *floor_setup=&VAR_0->floors[i...
[ "static int FUNC_0(vorbis_context *VAR_0) {", "GetBitContext *gb=&VAR_0->gb;", "uint_fast16_t i,j,k;", "VAR_0->floor_count=get_bits(gb, 6)+1;", "VAR_0->floors=av_mallocz(VAR_0->floor_count * sizeof(vorbis_floor));", "for (i=0;i<VAR_0->floor_count;++i) {", "vorbis_floor *floor_setup=&VAR_0->floors[i];", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], ...
4,533
void qemu_anon_ram_free(void *ptr, size_t size) { trace_qemu_anon_ram_free(ptr, size); if (ptr) { munmap(ptr, size); } }
true
qemu
9fac18f03a9040b67ec38e14d3e1ed34db9c7e06
void qemu_anon_ram_free(void *ptr, size_t size) { trace_qemu_anon_ram_free(ptr, size); if (ptr) { munmap(ptr, size); } }
{ "code": [ " munmap(ptr, size);" ], "line_no": [ 9 ] }
void FUNC_0(void *VAR_0, size_t VAR_1) { trace_qemu_anon_ram_free(VAR_0, VAR_1); if (VAR_0) { munmap(VAR_0, VAR_1); } }
[ "void FUNC_0(void *VAR_0, size_t VAR_1)\n{", "trace_qemu_anon_ram_free(VAR_0, VAR_1);", "if (VAR_0) {", "munmap(VAR_0, VAR_1);", "}", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
4,534
void qemu_run_all_timers(void) { /* rearm timer, if not periodic */ if (alarm_timer->expired) { alarm_timer->expired = 0; qemu_rearm_alarm_timer(alarm_timer); } alarm_timer->pending = 0; /* vm time timers */ if (vm_running) { qemu_run_timers(vm_clock); ...
true
qemu
ca5a2a4b12bd44762a5106c9352eafd878bbd52f
void qemu_run_all_timers(void) { if (alarm_timer->expired) { alarm_timer->expired = 0; qemu_rearm_alarm_timer(alarm_timer); } alarm_timer->pending = 0; if (vm_running) { qemu_run_timers(vm_clock); } qemu_run_timers(rt_clock); qemu_run_time...
{ "code": [ " alarm_timer->pending = 0;" ], "line_no": [ 17 ] }
void FUNC_0(void) { if (alarm_timer->expired) { alarm_timer->expired = 0; qemu_rearm_alarm_timer(alarm_timer); } alarm_timer->pending = 0; if (vm_running) { qemu_run_timers(vm_clock); } qemu_run_timers(rt_clock); qemu_run_timers(host_clock...
[ "void FUNC_0(void)\n{", "if (alarm_timer->expired) {", "alarm_timer->expired = 0;", "qemu_rearm_alarm_timer(alarm_timer);", "}", "alarm_timer->pending = 0;", "if (vm_running) {", "qemu_run_timers(vm_clock);", "}", "qemu_run_timers(rt_clock);", "qemu_run_timers(host_clock);", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
4,535
static void mips_jazz_init(MemoryRegion *address_space, MemoryRegion *address_space_io, ram_addr_t ram_size, const char *cpu_model, enum jazz_model_e jazz_model) { char *filename; int bios_size, n;...
true
qemu
c8057f951d64de93bfd01569c0a725baa9f94372
static void mips_jazz_init(MemoryRegion *address_space, MemoryRegion *address_space_io, ram_addr_t ram_size, const char *cpu_model, enum jazz_model_e jazz_model) { char *filename; int bios_size, n;...
{ "code": [ " } else if (strcmp(nd->model, \"?\") == 0) {" ], "line_no": [ 269 ] }
static void FUNC_0(MemoryRegion *VAR_0, MemoryRegion *VAR_1, ram_addr_t VAR_2, const char *VAR_3, enum jazz_model_e VAR_4) { char *VAR_5; int VAR_6, VAR_7; MIPSCPU *cpu; CPUMIPSState *env...
[ "static void FUNC_0(MemoryRegion *VAR_0,\nMemoryRegion *VAR_1,\nram_addr_t VAR_2,\nconst char *VAR_3,\nenum jazz_model_e VAR_4)\n{", "char *VAR_5;", "int VAR_6, VAR_7;", "MIPSCPU *cpu;", "CPUMIPSState *env;", "qemu_irq *rc4030, *i8259;", "rc4030_dma *dmas;", "void* VAR_8;", "MemoryRegion *rtc = g_ne...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
4,536
static int qemu_rdma_close(void *opaque) { DPRINTF("Shutting down connection.\n"); QEMUFileRDMA *r = opaque; if (r->rdma) { qemu_rdma_cleanup(r->rdma); g_free(r->rdma); } g_free(r); return 0; }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int qemu_rdma_close(void *opaque) { DPRINTF("Shutting down connection.\n"); QEMUFileRDMA *r = opaque; if (r->rdma) { qemu_rdma_cleanup(r->rdma); g_free(r->rdma); } g_free(r); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { DPRINTF("Shutting down connection.\n"); QEMUFileRDMA *r = VAR_0; if (r->rdma) { qemu_rdma_cleanup(r->rdma); g_free(r->rdma); } g_free(r); return 0; }
[ "static int FUNC_0(void *VAR_0)\n{", "DPRINTF(\"Shutting down connection.\\n\");", "QEMUFileRDMA *r = VAR_0;", "if (r->rdma) {", "qemu_rdma_cleanup(r->rdma);", "g_free(r->rdma);", "}", "g_free(r);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
4,537
static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE], int total_gain){ int v, bsize, ch, coef_nb_bits, parse_exponents; float mdct_norm; int nb_coefs[MAX_CHANNELS]; static const int fixed_exp[25]={20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20}; ...
true
FFmpeg
c3da9f506038aea306dd1b9ce48db94ca251a08d
static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE], int total_gain){ int v, bsize, ch, coef_nb_bits, parse_exponents; float mdct_norm; int nb_coefs[MAX_CHANNELS]; static const int fixed_exp[25]={20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20}; ...
{ "code": [ " if(abs_level == 0x71B && (s->avctx->flags & CODEC_FLAG_BITEXACT)) abs_level=0x71A;" ], "line_no": [ 297 ] }
static int FUNC_0(WMACodecContext *VAR_0, float (*VAR_1)[BLOCK_MAX_SIZE], int VAR_2){ int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; float VAR_8; int VAR_9[MAX_CHANNELS]; static const int VAR_10[25]={20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20}; if (VAR_0->use_var...
[ "static int FUNC_0(WMACodecContext *VAR_0, float (*VAR_1)[BLOCK_MAX_SIZE], int VAR_2){", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "float VAR_8;", "int VAR_9[MAX_CHANNELS];", "static const int VAR_10[25]={20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20};", "if (VAR_0->use_variab...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
4,538
static void check(int a, int b, bool expected) { struct qht_stats stats; int i; for (i = a; i < b; i++) { void *p; uint32_t hash; int32_t val; val = i; hash = i; p = qht_lookup(&ht, is_equal, &val, hash); g_assert_true(!!p == expected);...
true
qemu
9c7d64eb2a47033c9697fb4a5a540af1aa3915ab
static void check(int a, int b, bool expected) { struct qht_stats stats; int i; for (i = a; i < b; i++) { void *p; uint32_t hash; int32_t val; val = i; hash = i; p = qht_lookup(&ht, is_equal, &val, hash); g_assert_true(!!p == expected);...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, bool VAR_2) { struct qht_stats VAR_3; int VAR_4; for (VAR_4 = VAR_0; VAR_4 < VAR_1; VAR_4++) { void *VAR_5; uint32_t hash; int32_t val; val = VAR_4; hash = VAR_4; VAR_5 = qht_lookup(&ht, is_equal, &val, h...
[ "static void FUNC_0(int VAR_0, int VAR_1, bool VAR_2)\n{", "struct qht_stats VAR_3;", "int VAR_4;", "for (VAR_4 = VAR_0; VAR_4 < VAR_1; VAR_4++) {", "void *VAR_5;", "uint32_t hash;", "int32_t val;", "val = VAR_4;", "hash = VAR_4;", "VAR_5 = qht_lookup(&ht, is_equal, &val, hash);", "g_assert_true...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 12 ], [ 14 ], [ 16 ], [ 18 ], [ 22 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48...
4,541
int net_init_netmap(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { const NetdevNetmapOptions *netmap_opts = opts->u.netmap; struct nm_desc *nmd; NetClientState *nc; Error *err = NULL; NetmapState *s; nmd = netmap_open(netmap_op...
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
int net_init_netmap(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { const NetdevNetmapOptions *netmap_opts = opts->u.netmap; struct nm_desc *nmd; NetClientState *nc; Error *err = NULL; NetmapState *s; nmd = netmap_open(netmap_op...
{ "code": [], "line_no": [] }
int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1, NetClientState *VAR_2, Error **VAR_3) { const NetdevNetmapOptions *VAR_4 = VAR_0->u.netmap; struct nm_desc *VAR_5; NetClientState *nc; Error *err = NULL; NetmapState *s; VAR_5 = netmap_open(VAR_4, &err); ...
[ "int FUNC_0(const NetClientOptions *VAR_0,\nconst char *VAR_1, NetClientState *VAR_2, Error **VAR_3)\n{", "const NetdevNetmapOptions *VAR_4 = VAR_0->u.netmap;", "struct nm_desc *VAR_5;", "NetClientState *nc;", "Error *err = NULL;", "NetmapState *s;", "VAR_5 = netmap_open(VAR_4, &err);", "if (err) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
4,542
static void pc_init1(MachineState *machine, const char *host_type, const char *pci_type) { PCMachineState *pcms = PC_MACHINE(machine); PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms); MemoryRegion *system_memory = get_system_memory(); MemoryRegion *system_io = get_system_io(...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
static void pc_init1(MachineState *machine, const char *host_type, const char *pci_type) { PCMachineState *pcms = PC_MACHINE(machine); PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms); MemoryRegion *system_memory = get_system_memory(); MemoryRegion *system_io = get_system_io(...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0, const char *VAR_1, const char *VAR_2) { PCMachineState *pcms = PC_MACHINE(VAR_0); PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms); MemoryRegion *system_memory = get_system_memory(); MemoryRegion *system_io = get_system_io(); int V...
[ "static void FUNC_0(MachineState *VAR_0,\nconst char *VAR_1, const char *VAR_2)\n{", "PCMachineState *pcms = PC_MACHINE(VAR_0);", "PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms);", "MemoryRegion *system_memory = get_system_memory();", "MemoryRegion *system_io = get_system_io();", "int VAR_3;", "PCIBu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
4,543
int ff_amf_get_field_value(const uint8_t *data, const uint8_t *data_end, const uint8_t *name, uint8_t *dst, int dst_size) { int namelen = strlen(name); int len; while (*data != AMF_DATA_TYPE_OBJECT && data < data_end) { len = ff_amf_tag_size(data, data_end); ...
false
FFmpeg
ffcc82219cef0928bed2d558b19ef6ea35634130
int ff_amf_get_field_value(const uint8_t *data, const uint8_t *data_end, const uint8_t *name, uint8_t *dst, int dst_size) { int namelen = strlen(name); int len; while (*data != AMF_DATA_TYPE_OBJECT && data < data_end) { len = ff_amf_tag_size(data, data_end); ...
{ "code": [], "line_no": [] }
int FUNC_0(const uint8_t *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4) { int VAR_5 = strlen(VAR_2); int VAR_6; while (*VAR_0 != AMF_DATA_TYPE_OBJECT && VAR_0 < VAR_1) { VAR_6 = ff_amf_tag_size(VAR_0, VAR_1); if (VAR_6 < 0) ...
[ "int FUNC_0(const uint8_t *VAR_0, const uint8_t *VAR_1,\nconst uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4)\n{", "int VAR_5 = strlen(VAR_2);", "int VAR_6;", "while (*VAR_0 != AMF_DATA_TYPE_OBJECT && VAR_0 < VAR_1) {", "VAR_6 = ff_amf_tag_size(VAR_0, VAR_1);", "if (VAR_6 < 0)\nVAR_6 = VAR_1 - 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, 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 ], [...
4,544
static int raw_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRawState *s = bs->opaque; int access_flags, create_flags; DWORD overlapped; s->type = FTYPE_FILE; if ((flags & BDRV_O_ACCESS) == O_RDWR) { access_flags = GENERIC_READ | GENERIC_WRITE; } else { ...
false
qemu
54421cb17bc744bad15f2b1adb4adefdaea83c10
static int raw_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRawState *s = bs->opaque; int access_flags, create_flags; DWORD overlapped; s->type = FTYPE_FILE; if ((flags & BDRV_O_ACCESS) == O_RDWR) { access_flags = GENERIC_READ | GENERIC_WRITE; } else { ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2) { BDRVRawState *s = VAR_0->opaque; int VAR_3, VAR_4; DWORD overlapped; s->type = FTYPE_FILE; if ((VAR_2 & BDRV_O_ACCESS) == O_RDWR) { VAR_3 = GENERIC_READ | GENERIC_WRITE; } else { VAR_3 = GENER...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{", "BDRVRawState *s = VAR_0->opaque;", "int VAR_3, VAR_4;", "DWORD overlapped;", "s->type = FTYPE_FILE;", "if ((VAR_2 & BDRV_O_ACCESS) == O_RDWR) {", "VAR_3 = GENERIC_READ | GENERIC_WRITE;", "} else {", "VAR_3 = GENERIC_READ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47, 49,...