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
19,254
static BlockDriverAIOCB *qcow_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { QCowAIOCB *acb; acb = qemu_aio_get(bs, cb, opaque); if (!acb) return NULL; acb->hd_aiocb = NULL; acb...
false
qemu
e268ca52328eb0460ae0d10b7f4313a63d5b000c
static BlockDriverAIOCB *qcow_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { QCowAIOCB *acb; acb = qemu_aio_get(bs, cb, opaque); if (!acb) return NULL; acb->hd_aiocb = NULL; acb...
{ "code": [], "line_no": [] }
static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { QCowAIOCB *acb; acb = qemu_aio_get(bs, cb, opaque); if (!acb) return NULL; acb->hd_aiocb = NULL; acb->sector...
[ "static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque)\n{", "QCowAIOCB *acb;", "acb = qemu_aio_get(bs, cb, opaque);", "if (!acb)\nreturn NULL;", "acb->hd_aiocb = NULL;", "acb->sector_num = sector_num;", ...
[ 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 ], [ 41 ], [ 43 ], [ 45 ] ]
19,255
void armv7m_nvic_set_pending(void *opaque, int irq) { NVICState *s = (NVICState *)opaque; VecInfo *vec; assert(irq > ARMV7M_EXCP_RESET && irq < s->num_irq); vec = &s->vectors[irq]; trace_nvic_set_pending(irq, vec->enabled, vec->prio); if (irq >= ARMV7M_EXCP_HARD && irq < ARMV7M_EX...
false
qemu
2fb50a33401a2415b71ddc291e8a77bcd2f9e547
void armv7m_nvic_set_pending(void *opaque, int irq) { NVICState *s = (NVICState *)opaque; VecInfo *vec; assert(irq > ARMV7M_EXCP_RESET && irq < s->num_irq); vec = &s->vectors[irq]; trace_nvic_set_pending(irq, vec->enabled, vec->prio); if (irq >= ARMV7M_EXCP_HARD && irq < ARMV7M_EX...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, int VAR_1) { NVICState *s = (NVICState *)VAR_0; VecInfo *vec; assert(VAR_1 > ARMV7M_EXCP_RESET && VAR_1 < s->num_irq); vec = &s->vectors[VAR_1]; trace_nvic_set_pending(VAR_1, vec->enabled, vec->prio); if (VAR_1 >= ARMV7M_EXCP_HARD && VAR_1 < ARMV7M_EXCP_PE...
[ "void FUNC_0(void *VAR_0, int VAR_1)\n{", "NVICState *s = (NVICState *)VAR_0;", "VecInfo *vec;", "assert(VAR_1 > ARMV7M_EXCP_RESET && VAR_1 < s->num_irq);", "vec = &s->vectors[VAR_1];", "trace_nvic_set_pending(VAR_1, vec->enabled, vec->prio);", "if (VAR_1 >= ARMV7M_EXCP_HARD && VAR_1 < ARMV7M_EXCP_PENDS...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 23 ], [ 65 ], [ 67 ], [ 71 ], [ 73 ], [ 75 ], [ 77 ], [ 79 ], [ 81 ], [ 83 ], [ 87 ], [ 89 ], [ 101, 103, ...
19,257
static void generate_bootsect(target_phys_addr_t option_rom, uint32_t gpr[8], uint16_t segs[6], uint16_t ip) { uint8_t rom[512], *p, *reloc; uint8_t sum; int i; memset(rom, 0, sizeof(rom)); p = rom; /* Make sure we have an option rom signature */ *p...
false
qemu
45a50b1668822c23afc2a89f724654e176518bc4
static void generate_bootsect(target_phys_addr_t option_rom, uint32_t gpr[8], uint16_t segs[6], uint16_t ip) { uint8_t rom[512], *p, *reloc; uint8_t sum; int i; memset(rom, 0, sizeof(rom)); p = rom; *p++ = 0x55; *p++ = 0xaa; *p++ ...
{ "code": [], "line_no": [] }
static void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1[8], uint16_t VAR_2[6], uint16_t VAR_3) { uint8_t rom[512], *p, *reloc; uint8_t sum; int VAR_4; memset(rom, 0, sizeof(rom)); p = rom; *p++ = 0x55; *p++ = 0xaa; *p++ = 1; ...
[ "static void FUNC_0(target_phys_addr_t VAR_0,\nuint32_t VAR_1[8], uint16_t VAR_2[6], uint16_t VAR_3)\n{", "uint8_t rom[512], *p, *reloc;", "uint8_t sum;", "int VAR_4;", "memset(rom, 0, sizeof(rom));", "p = rom;", "*p++ = 0x55;", "*p++ = 0xaa;", "*p++ = 1;", "*p++ = 0x50;", "*p++ = 0x1e;", "*p+...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 31 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ], [...
19,258
static int gxf_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; pkt_type_t pkt_type; int pkt_len; while (!url_feof(pb)) { int track_type, track_id, ret; int field_nr; int stream_index; if (!parse_packet_header(pb, &pkt_type, &pkt_len)) { ...
false
FFmpeg
99f296b30462e6b940aff712920a3fe6b8ba5cc6
static int gxf_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; pkt_type_t pkt_type; int pkt_len; while (!url_feof(pb)) { int track_type, track_id, ret; int field_nr; int stream_index; if (!parse_packet_header(pb, &pkt_type, &pkt_len)) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { ByteIOContext *pb = VAR_0->pb; pkt_type_t pkt_type; int VAR_2; while (!url_feof(pb)) { int VAR_3, VAR_4, VAR_5; int VAR_6; int VAR_7; if (!parse_packet_header(pb, &pkt_type, &VAR_2)) { if (!...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) {", "ByteIOContext *pb = VAR_0->pb;", "pkt_type_t pkt_type;", "int VAR_2;", "while (!url_feof(pb)) {", "int VAR_3, VAR_4, VAR_5;", "int VAR_6;", "int VAR_7;", "if (!parse_packet_header(pb, &pkt_type, &VAR_2)) {", "if (!url_feof(pb))\nav_l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
19,259
static int usb_hid_handle_data(USBDevice *dev, USBPacket *p) { USBHIDState *us = DO_UPCAST(USBHIDState, dev, dev); HIDState *hs = &us->hid; uint8_t buf[p->iov.size]; int ret = 0; switch (p->pid) { case USB_TOKEN_IN: if (p->devep == 1) { int64_t curtime = qemu_get_c...
false
qemu
38931fa8cfb074a08ce65fd1982bd4a5bef9d6fb
static int usb_hid_handle_data(USBDevice *dev, USBPacket *p) { USBHIDState *us = DO_UPCAST(USBHIDState, dev, dev); HIDState *hs = &us->hid; uint8_t buf[p->iov.size]; int ret = 0; switch (p->pid) { case USB_TOKEN_IN: if (p->devep == 1) { int64_t curtime = qemu_get_c...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1) { USBHIDState *us = DO_UPCAST(USBHIDState, VAR_0, VAR_0); HIDState *hs = &us->hid; uint8_t buf[VAR_1->iov.size]; int VAR_2 = 0; switch (VAR_1->pid) { case USB_TOKEN_IN: if (VAR_1->devep == 1) { int64_t curtime =...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{", "USBHIDState *us = DO_UPCAST(USBHIDState, VAR_0, VAR_0);", "HIDState *hs = &us->hid;", "uint8_t buf[VAR_1->iov.size];", "int VAR_2 = 0;", "switch (VAR_1->pid) {", "case USB_TOKEN_IN:\nif (VAR_1->devep == 1) {", "int64_t curtime = qemu_get_clo...
[ 0, 0, 0, 0, 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 ], [ 45 ...
19,260
tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *cpustate, uint8_t *tb_ptr) { tcg_target_ulong next_tb = 0; env = cpustate; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; assert(tb_ptr); for (;;) { #if defined(GETPC) tci_tb_ptr = (uintptr_t)tb_ptr; #endif TCGOpcode opc = tb...
false
qemu
03fc0548b70393b0c8d43703591a9e34fb8e3123
tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *cpustate, uint8_t *tb_ptr) { tcg_target_ulong next_tb = 0; env = cpustate; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; assert(tb_ptr); for (;;) { #if defined(GETPC) tci_tb_ptr = (uintptr_t)tb_ptr; #endif TCGOpcode opc = tb...
{ "code": [], "line_no": [] }
tcg_target_ulong FUNC_0(CPUArchState *cpustate, uint8_t *tb_ptr) { tcg_target_ulong next_tb = 0; env = cpustate; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; assert(tb_ptr); for (;;) { #if defined(GETPC) tci_tb_ptr = (uintptr_t)tb_ptr; #endif TCGOpcode opc = tb_ptr[0]; ...
[ "tcg_target_ulong FUNC_0(CPUArchState *cpustate, uint8_t *tb_ptr)\n{", "tcg_target_ulong next_tb = 0;", "env = cpustate;", "tci_reg[TCG_AREG0] = (tcg_target_ulong)env;", "assert(tb_ptr);", "for (;;) {", "#if defined(GETPC)\ntci_tb_ptr = (uintptr_t)tb_ptr;", "#endif\nTCGOpcode opc = tb_ptr[0];", "#if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], ...
19,261
void *g_realloc_n(void *ptr, size_t nmemb, size_t size) { size_t sz; __coverity_negative_sink__(nmemb); __coverity_negative_sink__(size); sz = nmemb * size; __coverity_escape__(ptr); ptr = __coverity_alloc__(size); /* * Memory beyond the old size isn't actually initialized. ...
false
qemu
7ad4c7200111d20eb97eed4f46b6026e3f0b0eef
void *g_realloc_n(void *ptr, size_t nmemb, size_t size) { size_t sz; __coverity_negative_sink__(nmemb); __coverity_negative_sink__(size); sz = nmemb * size; __coverity_escape__(ptr); ptr = __coverity_alloc__(size); __coverity_writeall__(ptr); __coverity_mark_as_afm...
{ "code": [], "line_no": [] }
void *FUNC_0(void *VAR_0, size_t VAR_1, size_t VAR_2) { size_t sz; __coverity_negative_sink__(VAR_1); __coverity_negative_sink__(VAR_2); sz = VAR_1 * VAR_2; __coverity_escape__(VAR_0); VAR_0 = __coverity_alloc__(VAR_2); __coverity_writeall__(VAR_0); __coverity_mark...
[ "void *FUNC_0(void *VAR_0, size_t VAR_1, size_t VAR_2)\n{", "size_t sz;", "__coverity_negative_sink__(VAR_1);", "__coverity_negative_sink__(VAR_2);", "sz = VAR_1 * VAR_2;", "__coverity_escape__(VAR_0);", "VAR_0 = __coverity_alloc__(VAR_2);", "__coverity_writeall__(VAR_0);", "__coverity_mark_as_afm_a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
19,262
static void net_socket_send_dgram(void *opaque) { NetSocketState *s = opaque; int size; size = qemu_recv(s->fd, s->buf, sizeof(s->buf), 0); if (size < 0) return; if (size == 0) { /* end of connection */ net_socket_read_poll(s, false); net_socket_write_poll...
false
qemu
6e99c631f116221d169ea53953d91b8aa74d297a
static void net_socket_send_dgram(void *opaque) { NetSocketState *s = opaque; int size; size = qemu_recv(s->fd, s->buf, sizeof(s->buf), 0); if (size < 0) return; if (size == 0) { net_socket_read_poll(s, false); net_socket_write_poll(s, false); re...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { NetSocketState *s = VAR_0; int VAR_1; VAR_1 = qemu_recv(s->fd, s->buf, sizeof(s->buf), 0); if (VAR_1 < 0) return; if (VAR_1 == 0) { net_socket_read_poll(s, false); net_socket_write_poll(s, false); return; } ...
[ "static void FUNC_0(void *VAR_0)\n{", "NetSocketState *s = VAR_0;", "int VAR_1;", "VAR_1 = qemu_recv(s->fd, s->buf, sizeof(s->buf), 0);", "if (VAR_1 < 0)\nreturn;", "if (VAR_1 == 0) {", "net_socket_read_poll(s, false);", "net_socket_write_poll(s, false);", "return;", "}", "qemu_send_packet(&s->n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
19,263
static int tight_fill_palette(VncState *vs, int x, int y, size_t count, uint32_t *bg, uint32_t *fg, struct QDict **palette) { int max; max = count / tight_conf[vs->tight_compression].idx_max_colors_divisor; if (max < 2 && count >= ...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
static int tight_fill_palette(VncState *vs, int x, int y, size_t count, uint32_t *bg, uint32_t *fg, struct QDict **palette) { int max; max = count / tight_conf[vs->tight_compression].idx_max_colors_divisor; if (max < 2 && count >= ...
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, size_t VAR_3, uint32_t *VAR_4, uint32_t *VAR_5, struct QDict **VAR_6) { int VAR_7; VAR_7 = VAR_3 / tight_conf[VAR_0->tight_compression].idx_max_colors_divisor; if (VAR_7 < 2 && ...
[ "static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2,\nsize_t VAR_3, uint32_t *VAR_4, uint32_t *VAR_5,\nstruct QDict **VAR_6)\n{", "int VAR_7;", "VAR_7 = VAR_3 / tight_conf[VAR_0->tight_compression].idx_max_colors_divisor;", "if (VAR_7 < 2 &&\nVAR_3 >= tight_conf[VAR_0->tight_compression].mono_min_rect_si...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
19,265
static int term_can_read(void *opaque) { return 128; }
false
qemu
7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1
static int term_can_read(void *opaque) { return 128; }
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { return 128; }
[ "static int FUNC_0(void *VAR_0)\n{", "return 128;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
19,266
void do_tlbwi (void) { /* Discard cached TLB entries. We could avoid doing this if the tlbwi is just upgrading access permissions on the current entry; that might be a further win. */ mips_tlb_flush_extra (env, MIPS_TLB_NB); /* Wildly undefined effects for CP0_index containing a too ...
false
qemu
2ee4aed86ff2ba38a0e1846de18a9aec38d73015
void do_tlbwi (void) { mips_tlb_flush_extra (env, MIPS_TLB_NB); invalidate_tlb(env->CP0_index & (MIPS_TLB_NB - 1), 0); fill_tlb(env->CP0_index & (MIPS_TLB_NB - 1)); }
{ "code": [], "line_no": [] }
void FUNC_0 (void) { mips_tlb_flush_extra (env, MIPS_TLB_NB); invalidate_tlb(env->CP0_index & (MIPS_TLB_NB - 1), 0); fill_tlb(env->CP0_index & (MIPS_TLB_NB - 1)); }
[ "void FUNC_0 (void)\n{", "mips_tlb_flush_extra (env, MIPS_TLB_NB);", "invalidate_tlb(env->CP0_index & (MIPS_TLB_NB - 1), 0);", "fill_tlb(env->CP0_index & (MIPS_TLB_NB - 1));", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 11 ], [ 19 ], [ 21 ], [ 23 ] ]
19,267
static void tcg_out_modrm_sib_offset(TCGContext *s, int opc, int r, int rm, int index, int shift, intptr_t offset) { int mod, len; if (index < 0 && rm < 0) { if (TCG_TARGET_REG_BITS == 64) { /* Try for a rip-relative addressing mode. This has rep...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static void tcg_out_modrm_sib_offset(TCGContext *s, int opc, int r, int rm, int index, int shift, intptr_t offset) { int mod, len; if (index < 0 && rm < 0) { if (TCG_TARGET_REG_BITS == 64) { intptr_t pc = (intptr_t)s->code_ptr + 5 ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, intptr_t VAR_6) { int VAR_7, VAR_8; if (VAR_4 < 0 && VAR_3 < 0) { if (TCG_TARGET_REG_BITS == 64) { intptr_t pc = (intptr_t)VAR_0->code_ptr...
[ "static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5, intptr_t VAR_6)\n{", "int VAR_7, VAR_8;", "if (VAR_4 < 0 && VAR_3 < 0) {", "if (TCG_TARGET_REG_BITS == 64) {", "intptr_t pc = (intptr_t)VAR_0->code_ptr + 5 + ~VAR_3;", "intptr_t disp = VAR_6 - pc;", "if (disp ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], ...
19,268
static int common_bind(struct common *c) { int mfn; if (xenstore_read_fe_int(&c->xendev, "page-ref", &mfn) == -1) return -1; if (xenstore_read_fe_int(&c->xendev, "event-channel", &c->xendev.remote_port) == -1) return -1; c->page = xc_map_foreign_range(xen_xc, c->xendev.dom, XC_PAGE_...
false
qemu
643f59322432d77165329dfabe2d040d7e30dae8
static int common_bind(struct common *c) { int mfn; if (xenstore_read_fe_int(&c->xendev, "page-ref", &mfn) == -1) return -1; if (xenstore_read_fe_int(&c->xendev, "event-channel", &c->xendev.remote_port) == -1) return -1; c->page = xc_map_foreign_range(xen_xc, c->xendev.dom, XC_PAGE_...
{ "code": [], "line_no": [] }
static int FUNC_0(struct common *VAR_0) { int VAR_1; if (xenstore_read_fe_int(&VAR_0->xendev, "page-ref", &VAR_1) == -1) return -1; if (xenstore_read_fe_int(&VAR_0->xendev, "event-channel", &VAR_0->xendev.remote_port) == -1) return -1; VAR_0->page = xc_map_foreign_range(xen_xc, VAR_0->xende...
[ "static int FUNC_0(struct common *VAR_0)\n{", "int VAR_1;", "if (xenstore_read_fe_int(&VAR_0->xendev, \"page-ref\", &VAR_1) == -1)\nreturn -1;", "if (xenstore_read_fe_int(&VAR_0->xendev, \"event-channel\", &VAR_0->xendev.remote_port) == -1)\nreturn -1;", "VAR_0->page = xc_map_foreign_range(xen_xc, VAR_0->xe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 19, 21, 23 ], [ 25, 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41 ] ]
19,269
static int nvenc_get_frame(AVCodecContext *avctx, AVPacket *pkt) { NVENCContext *ctx = avctx->priv_data; NV_ENCODE_API_FUNCTION_LIST *nv = &ctx->nvel.nvenc_funcs; NV_ENC_LOCK_BITSTREAM params = { 0 }; NVENCOutputSurface *out = NULL; int ret; ret = nvenc_dequeue_...
false
FFmpeg
9d36cab4c0dc5089c023661aef9aeb8b009048fd
static int nvenc_get_frame(AVCodecContext *avctx, AVPacket *pkt) { NVENCContext *ctx = avctx->priv_data; NV_ENCODE_API_FUNCTION_LIST *nv = &ctx->nvel.nvenc_funcs; NV_ENC_LOCK_BITSTREAM params = { 0 }; NVENCOutputSurface *out = NULL; int ret; ret = nvenc_dequeue_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1) { NVENCContext *ctx = VAR_0->priv_data; NV_ENCODE_API_FUNCTION_LIST *nv = &ctx->nvel.nvenc_funcs; NV_ENC_LOCK_BITSTREAM params = { 0 }; NVENCOutputSurface *out = NULL; int VAR_2; VAR_2 = nvenc_dequeue_sur...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1)\n{", "NVENCContext *ctx = VAR_0->priv_data;", "NV_ENCODE_API_FUNCTION_LIST *nv = &ctx->nvel.nvenc_funcs;", "NV_ENC_LOCK_BITSTREAM params = { 0 };", "NVENCOutputSurface *out = NULL;", "int VAR_2;", "VAR_2 = nvenc_dequeue_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 51 ], [ 53, 55 ], [ 59 ...
19,270
static ssize_t rtl8139_do_receive(VLANClientState *nc, const uint8_t *buf, size_t size_, int do_interrupt) { RTL8139State *s = DO_UPCAST(NICState, nc, nc)->opaque; int size = size_; uint32_t packet_header = 0; uint8_t buf1[60]; static const uint8_t broadcast_macaddr[6] = { 0xff, 0...
false
qemu
2c406b8fc8fc09853e74924d7067712d7a75108f
static ssize_t rtl8139_do_receive(VLANClientState *nc, const uint8_t *buf, size_t size_, int do_interrupt) { RTL8139State *s = DO_UPCAST(NICState, nc, nc)->opaque; int size = size_; uint32_t packet_header = 0; uint8_t buf1[60]; static const uint8_t broadcast_macaddr[6] = { 0xff, 0...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(VLANClientState *nc, const uint8_t *buf, size_t size_, int do_interrupt) { RTL8139State *s = DO_UPCAST(NICState, nc, nc)->opaque; int VAR_0 = size_; uint32_t packet_header = 0; uint8_t buf1[60]; static const uint8_t VAR_1[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, ...
[ "static ssize_t FUNC_0(VLANClientState *nc, const uint8_t *buf, size_t size_, int do_interrupt)\n{", "RTL8139State *s = DO_UPCAST(NICState, nc, nc)->opaque;", "int VAR_0 = size_;", "uint32_t packet_header = 0;", "uint8_t buf1[60];", "static const uint8_t VAR_1[6] =\n{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 59 ], [ 63 ], [ 67 ], ...
19,271
static void build_pci_bus_end(PCIBus *bus, void *bus_state) { AcpiBuildPciBusHotplugState *child = bus_state; AcpiBuildPciBusHotplugState *parent = child->parent; GArray *bus_table = build_alloc_array(); DECLARE_BITMAP(slot_hotplug_enable, PCI_SLOT_MAX); DECLARE_BITMAP(slot_device_present, PCI...
false
qemu
b23046abe78f48498a423b802d6d86ba0172d57f
static void build_pci_bus_end(PCIBus *bus, void *bus_state) { AcpiBuildPciBusHotplugState *child = bus_state; AcpiBuildPciBusHotplugState *parent = child->parent; GArray *bus_table = build_alloc_array(); DECLARE_BITMAP(slot_hotplug_enable, PCI_SLOT_MAX); DECLARE_BITMAP(slot_device_present, PCI...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIBus *VAR_0, void *VAR_1) { AcpiBuildPciBusHotplugState *child = VAR_1; AcpiBuildPciBusHotplugState *parent = child->parent; GArray *bus_table = build_alloc_array(); DECLARE_BITMAP(slot_hotplug_enable, PCI_SLOT_MAX); DECLARE_BITMAP(slot_device_present, PCI_SLOT_MAX); ...
[ "static void FUNC_0(PCIBus *VAR_0, void *VAR_1)\n{", "AcpiBuildPciBusHotplugState *child = VAR_1;", "AcpiBuildPciBusHotplugState *parent = child->parent;", "GArray *bus_table = build_alloc_array();", "DECLARE_BITMAP(slot_hotplug_enable, PCI_SLOT_MAX);", "DECLARE_BITMAP(slot_device_present, PCI_SLOT_MAX);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
19,272
static void arm_gicv3_icc_reset(CPUARMState *env, const ARMCPRegInfo *ri) { ARMCPU *cpu; GICv3State *s; GICv3CPUState *c; c = (GICv3CPUState *)env->gicv3state; s = c->gic; cpu = ARM_CPU(c->cpu); /* Initialize to actual HW supported configuration */ kvm_device_access(s->dev_f...
false
qemu
e7d54416cf7a30928a455ddf86ca57d766e9a902
static void arm_gicv3_icc_reset(CPUARMState *env, const ARMCPRegInfo *ri) { ARMCPU *cpu; GICv3State *s; GICv3CPUState *c; c = (GICv3CPUState *)env->gicv3state; s = c->gic; cpu = ARM_CPU(c->cpu); kvm_device_access(s->dev_fd, KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS, ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1) { ARMCPU *cpu; GICv3State *s; GICv3CPUState *c; c = (GICv3CPUState *)VAR_0->gicv3state; s = c->gic; cpu = ARM_CPU(c->cpu); kvm_device_access(s->dev_fd, KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS, ...
[ "static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1)\n{", "ARMCPU *cpu;", "GICv3State *s;", "GICv3CPUState *c;", "c = (GICv3CPUState *)VAR_0->gicv3state;", "s = c->gic;", "cpu = ARM_CPU(c->cpu);", "kvm_device_access(s->dev_fd, KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS,\nKVM_VGIC_ATTR(ICC_CTLR_EL1...
[ 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 ], [ 23, 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
19,273
static bool tb_cmp(const void *p, const void *d) { const TranslationBlock *tb = p; const struct tb_desc *desc = d; if (tb->pc == desc->pc && tb->page_addr[0] == desc->phys_page1 && tb->cs_base == desc->cs_base && tb->flags == desc->flags && tb->trace_vcpu_dstate == ...
false
qemu
84f1c148da2b35fbb5a436597872765257e8914e
static bool tb_cmp(const void *p, const void *d) { const TranslationBlock *tb = p; const struct tb_desc *desc = d; if (tb->pc == desc->pc && tb->page_addr[0] == desc->phys_page1 && tb->cs_base == desc->cs_base && tb->flags == desc->flags && tb->trace_vcpu_dstate == ...
{ "code": [], "line_no": [] }
static bool FUNC_0(const void *p, const void *d) { const TranslationBlock *VAR_0 = p; const struct tb_desc *VAR_1 = d; if (VAR_0->pc == VAR_1->pc && VAR_0->page_addr[0] == VAR_1->phys_page1 && VAR_0->cs_base == VAR_1->cs_base && VAR_0->flags == VAR_1->flags && VAR_0...
[ "static bool FUNC_0(const void *p, const void *d)\n{", "const TranslationBlock *VAR_0 = p;", "const struct tb_desc *VAR_1 = d;", "if (VAR_0->pc == VAR_1->pc &&\nVAR_0->page_addr[0] == VAR_1->phys_page1 &&\nVAR_0->cs_base == VAR_1->cs_base &&\nVAR_0->flags == VAR_1->flags &&\nVAR_0->trace_vcpu_dstate == VAR_1-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15, 17, 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
19,275
static int vnc_display_listen_addr(VncDisplay *vd, SocketAddress *addr, const char *name, QIOChannelSocket ***lsock, guint **lsock_tag, size...
false
qemu
57a6d6d538c596292003d131035dc4f7cb44474d
static int vnc_display_listen_addr(VncDisplay *vd, SocketAddress *addr, const char *name, QIOChannelSocket ***lsock, guint **lsock_tag, size...
{ "code": [], "line_no": [] }
static int FUNC_0(VncDisplay *VAR_0, SocketAddress *VAR_1, const char *VAR_2, QIOChannelSocket ***VAR_3, guint **VAR_4, size_t *VAR_5, ...
[ "static int FUNC_0(VncDisplay *VAR_0,\nSocketAddress *VAR_1,\nconst char *VAR_2,\nQIOChannelSocket ***VAR_3,\nguint **VAR_4,\nsize_t *VAR_5,\nError **VAR_6)\n{", "*VAR_5 = 1;", "*VAR_3 = g_new0(QIOChannelSocket *, 1);", "*VAR_4 = g_new0(guint, 1);", "(*VAR_3)[0] = qio_channel_socket_new();", "qio_channel_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39, 41 ], [ 45 ], [ 47 ] ]
19,276
static SpiceChannelList *qmp_query_spice_channels(void) { SpiceChannelList *cur_item = NULL, *head = NULL; ChannelList *item; QTAILQ_FOREACH(item, &channel_list, link) { SpiceChannelList *chan; char host[NI_MAXHOST], port[NI_MAXSERV]; struct sockaddr *paddr; socklen...
false
qemu
ddf21908961073199f3d186204da4810f2ea150b
static SpiceChannelList *qmp_query_spice_channels(void) { SpiceChannelList *cur_item = NULL, *head = NULL; ChannelList *item; QTAILQ_FOREACH(item, &channel_list, link) { SpiceChannelList *chan; char host[NI_MAXHOST], port[NI_MAXSERV]; struct sockaddr *paddr; socklen...
{ "code": [], "line_no": [] }
static SpiceChannelList *FUNC_0(void) { SpiceChannelList *cur_item = NULL, *head = NULL; ChannelList *item; QTAILQ_FOREACH(item, &channel_list, link) { SpiceChannelList *chan; char host[NI_MAXHOST], port[NI_MAXSERV]; struct sockaddr *paddr; socklen_t plen; ...
[ "static SpiceChannelList *FUNC_0(void)\n{", "SpiceChannelList *cur_item = NULL, *head = NULL;", "ChannelList *item;", "QTAILQ_FOREACH(item, &channel_list, link) {", "SpiceChannelList *chan;", "char host[NI_MAXHOST], port[NI_MAXSERV];", "struct sockaddr *paddr;", "socklen_t plen;", "assert(item->info...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53...
19,277
static int raw_create(const char *filename, QemuOpts *opts, Error **errp) { int fd; int result = 0; int64_t total_size = 0; bool nocow = false; PreallocMode prealloc; char *buf = NULL; Error *local_err = NULL; strstart(filename, "file:", &filename); /* Read out options ...
false
qemu
731de38052b245eab79e417aeac5e1dcebe6437f
static int raw_create(const char *filename, QemuOpts *opts, Error **errp) { int fd; int result = 0; int64_t total_size = 0; bool nocow = false; PreallocMode prealloc; char *buf = NULL; Error *local_err = NULL; strstart(filename, "file:", &filename); total_size = R...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2) { int VAR_3; int VAR_4 = 0; int64_t total_size = 0; bool nocow = false; PreallocMode prealloc; char *VAR_5 = NULL; Error *local_err = NULL; strstart(VAR_0, "file:", &VAR_0); total_size = ROUND_UP...
[ "static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{", "int VAR_3;", "int VAR_4 = 0;", "int64_t total_size = 0;", "bool nocow = false;", "PreallocMode prealloc;", "char *VAR_5 = NULL;", "Error *local_err = NULL;", "strstart(VAR_0, \"file:\", &VAR_0);", "total_size = ROUND_UP(qe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
19,279
main (void) { struct timeval t_m = {0, 0}; struct timezone t_z = {0, 0}; struct timeval t_m1 = {0, 0}; int i; if (gettimeofday (&t_m, &t_z) != 0) err ("gettimeofday"); for (i = 1; i < 10000; i++) if (gettimeofday (&t_m1, NULL) != 0) err ("gettimeofday 1"); else if (t_...
false
qemu
85b3ed1db5e50b66016ef59ca2afce10e753cbc6
main (void) { struct timeval t_m = {0, 0}; struct timezone t_z = {0, 0}; struct timeval t_m1 = {0, 0}; int i; if (gettimeofday (&t_m, &t_z) != 0) err ("gettimeofday"); for (i = 1; i < 10000; i++) if (gettimeofday (&t_m1, NULL) != 0) err ("gettimeofday 1"); else if (t_...
{ "code": [], "line_no": [] }
FUNC_0 (void) { struct timeval VAR_0 = {0, 0}; struct timezone VAR_1 = {0, 0}; struct timeval VAR_2 = {0, 0}; int VAR_3; if (gettimeofday (&VAR_0, &VAR_1) != 0) err ("gettimeofday"); for (VAR_3 = 1; VAR_3 < 10000; VAR_3++) if (gettimeofday (&VAR_2, NULL) != 0) err ("gettimeofday ...
[ "FUNC_0 (void)\n{", "struct timeval VAR_0 = {0, 0};", "struct timezone VAR_1 = {0, 0};", "struct timeval VAR_2 = {0, 0};", "int VAR_3;", "if (gettimeofday (&VAR_0, &VAR_1) != 0)\nerr (\"gettimeofday\");", "for (VAR_3 = 1; VAR_3 < 10000; VAR_3++)", "if (gettimeofday (&VAR_2, NULL) != 0)\nerr (\"gettime...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 27, 29, 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [...
19,280
bool bdrv_chain_contains(BlockDriverState *top, BlockDriverState *base) { while (top && top != base) { top = top->backing_hd; } return top != NULL; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
bool bdrv_chain_contains(BlockDriverState *top, BlockDriverState *base) { while (top && top != base) { top = top->backing_hd; } return top != NULL; }
{ "code": [], "line_no": [] }
bool FUNC_0(BlockDriverState *top, BlockDriverState *base) { while (top && top != base) { top = top->backing_hd; } return top != NULL; }
[ "bool FUNC_0(BlockDriverState *top, BlockDriverState *base)\n{", "while (top && top != base) {", "top = top->backing_hd;", "}", "return top != NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
19,283
static void bonito_ldma_writel(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIBonitoState *s = opaque; ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)] = val & 0xffffffff; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void bonito_ldma_writel(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIBonitoState *s = opaque; ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)] = val & 0xffffffff; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { PCIBonitoState *s = VAR_0; ((uint32_t *)(&s->bonldma))[VAR_1/sizeof(uint32_t)] = VAR_2 & 0xffffffff; }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PCIBonitoState *s = VAR_0;", "((uint32_t *)(&s->bonldma))[VAR_1/sizeof(uint32_t)] = VAR_2 & 0xffffffff;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ] ]
19,284
static uint32_t phys_map_node_alloc(void) { unsigned i; uint32_t ret; ret = next_map.nodes_nb++; assert(ret != PHYS_MAP_NODE_NIL); assert(ret != next_map.nodes_nb_alloc); for (i = 0; i < P_L2_SIZE; ++i) { next_map.nodes[ret][i].skip = 1; next_map.nodes[ret][i].ptr = PH...
false
qemu
53cb28cbfea038f8ad50132dc8a684e638c7d48b
static uint32_t phys_map_node_alloc(void) { unsigned i; uint32_t ret; ret = next_map.nodes_nb++; assert(ret != PHYS_MAP_NODE_NIL); assert(ret != next_map.nodes_nb_alloc); for (i = 0; i < P_L2_SIZE; ++i) { next_map.nodes[ret][i].skip = 1; next_map.nodes[ret][i].ptr = PH...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void) { unsigned VAR_0; uint32_t ret; ret = next_map.nodes_nb++; assert(ret != PHYS_MAP_NODE_NIL); assert(ret != next_map.nodes_nb_alloc); for (VAR_0 = 0; VAR_0 < P_L2_SIZE; ++VAR_0) { next_map.nodes[ret][VAR_0].skip = 1; next_map.nodes[ret][VAR_...
[ "static uint32_t FUNC_0(void)\n{", "unsigned VAR_0;", "uint32_t ret;", "ret = next_map.nodes_nb++;", "assert(ret != PHYS_MAP_NODE_NIL);", "assert(ret != next_map.nodes_nb_alloc);", "for (VAR_0 = 0; VAR_0 < P_L2_SIZE; ++VAR_0) {", "next_map.nodes[ret][VAR_0].skip = 1;", "next_map.nodes[ret][VAR_0].pt...
[ 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 ] ]
19,285
static bool check_overwrapping_aiocb(BDRVSheepdogState *s, SheepdogAIOCB *aiocb) { SheepdogAIOCB *cb; QLIST_FOREACH(cb, &s->inflight_aiocb_head, aiocb_siblings) { if (AIOCBOverwrapping(aiocb, cb)) { return true; } } QLIST_INSERT_HEAD(&s->inflight_aiocb_head, aiocb...
false
qemu
498f21405a286f718a0767c791b7d2db19f4e5bd
static bool check_overwrapping_aiocb(BDRVSheepdogState *s, SheepdogAIOCB *aiocb) { SheepdogAIOCB *cb; QLIST_FOREACH(cb, &s->inflight_aiocb_head, aiocb_siblings) { if (AIOCBOverwrapping(aiocb, cb)) { return true; } } QLIST_INSERT_HEAD(&s->inflight_aiocb_head, aiocb...
{ "code": [], "line_no": [] }
static bool FUNC_0(BDRVSheepdogState *s, SheepdogAIOCB *aiocb) { SheepdogAIOCB *cb; QLIST_FOREACH(cb, &s->inflight_aiocb_head, aiocb_siblings) { if (AIOCBOverwrapping(aiocb, cb)) { return true; } } QLIST_INSERT_HEAD(&s->inflight_aiocb_head, aiocb, aiocb_siblings);...
[ "static bool FUNC_0(BDRVSheepdogState *s, SheepdogAIOCB *aiocb)\n{", "SheepdogAIOCB *cb;", "QLIST_FOREACH(cb, &s->inflight_aiocb_head, aiocb_siblings) {", "if (AIOCBOverwrapping(aiocb, cb)) {", "return true;", "}", "}", "QLIST_INSERT_HEAD(&s->inflight_aiocb_head, aiocb, aiocb_siblings);", "return fa...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
19,286
static MemTxResult gic_cpu_read(GICState *s, int cpu, int offset, uint64_t *data, MemTxAttrs attrs) { switch (offset) { case 0x00: /* Control */ *data = s->cpu_enabled[cpu]; break; case 0x04: /* Priority mask */ *data = s->priority_mask[cpu]; ...
false
qemu
32951860834f09d1c1a0b81d8d7d5529e2d0e074
static MemTxResult gic_cpu_read(GICState *s, int cpu, int offset, uint64_t *data, MemTxAttrs attrs) { switch (offset) { case 0x00: *data = s->cpu_enabled[cpu]; break; case 0x04: *data = s->priority_mask[cpu]; break; case 0x08: ...
{ "code": [], "line_no": [] }
static MemTxResult FUNC_0(GICState *s, int cpu, int offset, uint64_t *data, MemTxAttrs attrs) { switch (offset) { case 0x00: *data = s->cpu_enabled[cpu]; break; case 0x04: *data = s->priority_mask[cpu]; break; case 0x08: ...
[ "static MemTxResult FUNC_0(GICState *s, int cpu, int offset,\nuint64_t *data, MemTxAttrs attrs)\n{", "switch (offset) {", "case 0x00:\n*data = s->cpu_enabled[cpu];", "break;", "case 0x04:\n*data = s->priority_mask[cpu];", "break;", "case 0x08:\nif (s->security_extn && !attrs.secure) {", "*data = s->ab...
[ 0, 0, 0, 0, 0, 0, 0, 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, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49,...
19,287
static int64_t coroutine_fn vpc_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVPCState *s = bs->opaque; VHDFooter *footer = (VHDFooter*) s->footer_buf; int64_t start, offset; bool allocated; int n; if (be32_to_cpu(footer->type) =...
false
qemu
67a0fd2a9bca204d2b39f910a97c7137636a0715
static int64_t coroutine_fn vpc_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVPCState *s = bs->opaque; VHDFooter *footer = (VHDFooter*) s->footer_buf; int64_t start, offset; bool allocated; int n; if (be32_to_cpu(footer->type) =...
{ "code": [], "line_no": [] }
static int64_t VAR_0 vpc_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVPCState *s = bs->opaque; VHDFooter *footer = (VHDFooter*) s->footer_buf; int64_t start, offset; bool allocated; int n; if (be32_to_cpu(footer->type) == VHD_F...
[ "static int64_t VAR_0 vpc_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, int *pnum)\n{", "BDRVVPCState *s = bs->opaque;", "VHDFooter *footer = (VHDFooter*) s->footer_buf;", "int64_t start, offset;", "bool allocated;", "int n;", "if (be32_to_cpu(footer->type) == VHD_FIXED)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 53 ], [...
19,288
static coroutine_fn int sd_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { SheepdogAIOCB acb; int ret; int64_t offset = (sector_num + nb_sectors) * BDRV_SECTOR_SIZE; BDRVSheepdogState *s = bs->opaque; if (offset > s->inode.vd...
false
qemu
acf6e5f0962c4be670d4a93ede77423512521876
static coroutine_fn int sd_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { SheepdogAIOCB acb; int ret; int64_t offset = (sector_num + nb_sectors) * BDRV_SECTOR_SIZE; BDRVSheepdogState *s = bs->opaque; if (offset > s->inode.vd...
{ "code": [], "line_no": [] }
static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { SheepdogAIOCB acb; int VAR_0; int64_t offset = (sector_num + nb_sectors) * BDRV_SECTOR_SIZE; BDRVSheepdogState *s = bs->opaque; if (offset > s->inode.vdi_si...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num,\nint nb_sectors, QEMUIOVector *qiov)\n{", "SheepdogAIOCB acb;", "int VAR_0;", "int64_t offset = (sector_num + nb_sectors) * BDRV_SECTOR_SIZE;", "BDRVSheepdogState *s = bs->opaque;", "if (offset > s->inode.vdi_size) {", "VAR_0 = sd...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ...
19,289
long do_rt_sigreturn(CPUS390XState *env) { rt_sigframe *frame; abi_ulong frame_addr = env->regs[15]; qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (unsigned long long)frame_addr); sigset_t set; if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { goto badfra...
false
qemu
1c275925bfbbc2de84a8f0e09d1dd70bbefb6da3
long do_rt_sigreturn(CPUS390XState *env) { rt_sigframe *frame; abi_ulong frame_addr = env->regs[15]; qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (unsigned long long)frame_addr); sigset_t set; if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { goto badfra...
{ "code": [], "line_no": [] }
long FUNC_0(CPUS390XState *VAR_0) { rt_sigframe *frame; abi_ulong frame_addr = VAR_0->regs[15]; qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (unsigned long long)frame_addr); sigset_t set; if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { goto badframe; ...
[ "long FUNC_0(CPUS390XState *VAR_0)\n{", "rt_sigframe *frame;", "abi_ulong frame_addr = VAR_0->regs[15];", "qemu_log(\"%s: frame_addr 0x%llx\\n\", __FUNCTION__,\n(unsigned long long)frame_addr);", "sigset_t set;", "if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) {", "goto badframe;", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53,...
19,292
static bool tracked_request_overlaps(BdrvTrackedRequest *req, int64_t offset, unsigned int bytes) { /* aaaa bbbb */ if (offset >= req->overlap_offset + req->overlap_bytes) { return false; } /* bbbb aaaa */ if (req->overlap_offset...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static bool tracked_request_overlaps(BdrvTrackedRequest *req, int64_t offset, unsigned int bytes) { if (offset >= req->overlap_offset + req->overlap_bytes) { return false; } if (req->overlap_offset >= offset + bytes) { return false; ...
{ "code": [], "line_no": [] }
static bool FUNC_0(BdrvTrackedRequest *req, int64_t offset, unsigned int bytes) { if (offset >= req->overlap_offset + req->overlap_bytes) { return false; } if (req->overlap_offset >= offset + bytes) { return false; } return tr...
[ "static bool FUNC_0(BdrvTrackedRequest *req,\nint64_t offset, unsigned int bytes)\n{", "if (offset >= req->overlap_offset + req->overlap_bytes) {", "return false;", "}", "if (req->overlap_offset >= offset + bytes) {", "return false;", "}", "return true;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
19,293
static av_cold void init_mv_table(MVTable *tab) { int i, x, y; tab->table_mv_index = av_malloc(sizeof(uint16_t) * 4096); /* mark all entries as not used */ for(i=0;i<4096;i++) tab->table_mv_index[i] = tab->n; for(i=0;i<tab->n;i++) { x = tab->table_mvx[i]; y = tab...
false
FFmpeg
1c6183233d56fb27a4a154e7e64ecab98bd877f1
static av_cold void init_mv_table(MVTable *tab) { int i, x, y; tab->table_mv_index = av_malloc(sizeof(uint16_t) * 4096); for(i=0;i<4096;i++) tab->table_mv_index[i] = tab->n; for(i=0;i<tab->n;i++) { x = tab->table_mvx[i]; y = tab->table_mvy[i]; tab->tabl...
{ "code": [], "line_no": [] }
static av_cold void FUNC_0(MVTable *tab) { int VAR_0, VAR_1, VAR_2; tab->table_mv_index = av_malloc(sizeof(uint16_t) * 4096); for(VAR_0=0;VAR_0<4096;VAR_0++) tab->table_mv_index[VAR_0] = tab->n; for(VAR_0=0;VAR_0<tab->n;VAR_0++) { VAR_1 = tab->table_mvx[VAR_0]; ...
[ "static av_cold void FUNC_0(MVTable *tab)\n{", "int VAR_0, VAR_1, VAR_2;", "tab->table_mv_index = av_malloc(sizeof(uint16_t) * 4096);", "for(VAR_0=0;VAR_0<4096;VAR_0++)", "tab->table_mv_index[VAR_0] = tab->n;", "for(VAR_0=0;VAR_0<tab->n;VAR_0++) {", "VAR_1 = tab->table_mvx[VAR_0];", "VAR_2 = tab->tabl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
19,295
static const QListEntry *qmp_input_push(QmpInputVisitor *qiv, QObject *obj, void *qapi, Error **errp) { GHashTable *h; StackObject *tos = g_new0(StackObject, 1); assert(obj); tos->obj = obj; tos->qapi = qapi; if (qiv->strict && qobject_type(obj...
false
qemu
09e68369a88d7de0f988972bf28eec1b80cc47f9
static const QListEntry *qmp_input_push(QmpInputVisitor *qiv, QObject *obj, void *qapi, Error **errp) { GHashTable *h; StackObject *tos = g_new0(StackObject, 1); assert(obj); tos->obj = obj; tos->qapi = qapi; if (qiv->strict && qobject_type(obj...
{ "code": [], "line_no": [] }
static const QListEntry *FUNC_0(QmpInputVisitor *qiv, QObject *obj, void *qapi, Error **errp) { GHashTable *h; StackObject *tos = g_new0(StackObject, 1); assert(obj); tos->obj = obj; tos->qapi = qapi; if (qiv->strict && qobject_type(obj) == QTY...
[ "static const QListEntry *FUNC_0(QmpInputVisitor *qiv, QObject *obj,\nvoid *qapi, Error **errp)\n{", "GHashTable *h;", "StackObject *tos = g_new0(StackObject, 1);", "assert(obj);", "tos->obj = obj;", "tos->qapi = qapi;", "if (qiv->strict && qobject_type(obj) == QTYPE_QDICT) {", "h = g_hash_table_new(g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ] ]
19,296
int aio_bh_poll(AioContext *ctx) { QEMUBH *bh, **bhp, *next; int ret; bool deleted = false; qemu_lockcnt_inc(&ctx->list_lock); ret = 0; for (bh = atomic_rcu_read(&ctx->first_bh); bh; bh = next) { next = atomic_rcu_read(&bh->next); /* The atomic_xchg is paired with th...
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
int aio_bh_poll(AioContext *ctx) { QEMUBH *bh, **bhp, *next; int ret; bool deleted = false; qemu_lockcnt_inc(&ctx->list_lock); ret = 0; for (bh = atomic_rcu_read(&ctx->first_bh); bh; bh = next) { next = atomic_rcu_read(&bh->next); if (atomic_xchg(...
{ "code": [], "line_no": [] }
int FUNC_0(AioContext *VAR_0) { QEMUBH *bh, **bhp, *next; int VAR_1; bool deleted = false; qemu_lockcnt_inc(&VAR_0->list_lock); VAR_1 = 0; for (bh = atomic_rcu_read(&VAR_0->first_bh); bh; bh = next) { next = atomic_rcu_read(&bh->next); if (atomic_...
[ "int FUNC_0(AioContext *VAR_0)\n{", "QEMUBH *bh, **bhp, *next;", "int VAR_1;", "bool deleted = false;", "qemu_lockcnt_inc(&VAR_0->list_lock);", "VAR_1 = 0;", "for (bh = atomic_rcu_read(&VAR_0->first_bh); bh; bh = next) {", "next = atomic_rcu_read(&bh->next);", "if (atomic_xchg(&bh->scheduled, 0)) {"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 63 ...
19,297
static void test_dispatch_cmd_error(void) { QDict *req = qdict_new(); QObject *resp; qdict_put_obj(req, "execute", QOBJECT(qstring_from_str("user_def_cmd2"))); resp = qmp_dispatch(QOBJECT(req)); assert(resp != NULL); assert(qdict_haskey(qobject_to_qdict(resp), "error")); g_print(...
false
qemu
151c5693258f594541fa9ea585547a0a8dd68abc
static void test_dispatch_cmd_error(void) { QDict *req = qdict_new(); QObject *resp; qdict_put_obj(req, "execute", QOBJECT(qstring_from_str("user_def_cmd2"))); resp = qmp_dispatch(QOBJECT(req)); assert(resp != NULL); assert(qdict_haskey(qobject_to_qdict(resp), "error")); g_print(...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { QDict *req = qdict_new(); QObject *resp; qdict_put_obj(req, "execute", QOBJECT(qstring_from_str("user_def_cmd2"))); resp = qmp_dispatch(QOBJECT(req)); assert(resp != NULL); assert(qdict_haskey(qobject_to_qdict(resp), "error")); g_print("\nresp: %s\n", q...
[ "static void FUNC_0(void)\n{", "QDict *req = qdict_new();", "QObject *resp;", "qdict_put_obj(req, \"execute\", QOBJECT(qstring_from_str(\"user_def_cmd2\")));", "resp = qmp_dispatch(QOBJECT(req));", "assert(resp != NULL);", "assert(qdict_haskey(qobject_to_qdict(resp), \"error\"));", "g_print(\"\\nresp:...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
19,298
int bdrv_truncate(BlockDriverState *bs, int64_t offset) { BlockDriver *drv = bs->drv; int ret; if (!drv) return -ENOMEDIUM; if (!drv->bdrv_truncate) return -ENOTSUP; if (bs->read_only) return -EACCES; ret = drv->bdrv_truncate(bs, offset); if (ret == 0) { ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int bdrv_truncate(BlockDriverState *bs, int64_t offset) { BlockDriver *drv = bs->drv; int ret; if (!drv) return -ENOMEDIUM; if (!drv->bdrv_truncate) return -ENOTSUP; if (bs->read_only) return -EACCES; ret = drv->bdrv_truncate(bs, offset); if (ret == 0) { ...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1) { BlockDriver *drv = VAR_0->drv; int VAR_2; if (!drv) return -ENOMEDIUM; if (!drv->FUNC_0) return -ENOTSUP; if (VAR_0->read_only) return -EACCES; VAR_2 = drv->FUNC_0(VAR_0, VAR_1); if (VAR_2 == 0) { ...
[ "int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1)\n{", "BlockDriver *drv = VAR_0->drv;", "int VAR_2;", "if (!drv)\nreturn -ENOMEDIUM;", "if (!drv->FUNC_0)\nreturn -ENOTSUP;", "if (VAR_0->read_only)\nreturn -EACCES;", "VAR_2 = drv->FUNC_0(VAR_0, VAR_1);", "if (VAR_2 == 0) {", "VAR_2 = refresh_total...
[ 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 ] ]
19,299
static uint64_t dbdma_read(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t value; int channel = addr >> DBDMA_CHANNEL_SHIFT; DBDMAState *s = opaque; DBDMA_channel *ch = &s->channels[channel]; int reg = (addr - (channel << DBDMA_CHANNEL_SHIFT)) >> 2;...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t dbdma_read(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t value; int channel = addr >> DBDMA_CHANNEL_SHIFT; DBDMAState *s = opaque; DBDMA_channel *ch = &s->channels[channel]; int reg = (addr - (channel << DBDMA_CHANNEL_SHIFT)) >> 2;...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t value; int VAR_0 = addr >> DBDMA_CHANNEL_SHIFT; DBDMAState *s = opaque; DBDMA_channel *ch = &s->channels[VAR_0]; int VAR_1 = (addr - (VAR_0 << DBDMA_CHANNEL_SHIFT)) >> 2; ...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "uint32_t value;", "int VAR_0 = addr >> DBDMA_CHANNEL_SHIFT;", "DBDMAState *s = opaque;", "DBDMA_channel *ch = &s->channels[VAR_0];", "int VAR_1 = (addr - (VAR_0 << DBDMA_CHANNEL_SHIFT)) >> 2;", "value = ch->regs[VAR_1];...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41, 43, 45, 47, 51 ], [ 53, 55, 57, 59, 61,...
19,300
static int pxb_dev_initfn(PCIDevice *dev) { PXBDev *pxb = PXB_DEV(dev); DeviceState *ds, *bds; PCIBus *bus; const char *dev_name = NULL; if (pxb->numa_node != NUMA_NODE_UNASSIGNED && pxb->numa_node >= nb_numa_nodes) { error_report("Illegal numa node %d.", pxb->numa_node); ...
false
qemu
02b07434bed8360715198b4cbfdfebd17f7cac32
static int pxb_dev_initfn(PCIDevice *dev) { PXBDev *pxb = PXB_DEV(dev); DeviceState *ds, *bds; PCIBus *bus; const char *dev_name = NULL; if (pxb->numa_node != NUMA_NODE_UNASSIGNED && pxb->numa_node >= nb_numa_nodes) { error_report("Illegal numa node %d.", pxb->numa_node); ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { PXBDev *pxb = PXB_DEV(VAR_0); DeviceState *ds, *bds; PCIBus *bus; const char *VAR_1 = NULL; if (pxb->numa_node != NUMA_NODE_UNASSIGNED && pxb->numa_node >= nb_numa_nodes) { error_report("Illegal numa node %d.", pxb->numa_node); ...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "PXBDev *pxb = PXB_DEV(VAR_0);", "DeviceState *ds, *bds;", "PCIBus *bus;", "const char *VAR_1 = NULL;", "if (pxb->numa_node != NUMA_NODE_UNASSIGNED &&\npxb->numa_node >= nb_numa_nodes) {", "error_report(\"Illegal numa node %d.\", pxb->numa_node);", "return -EI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
19,302
static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) { if (!pitch) { return true; } if (pitch < 0) { int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch; int32_t max = addr ...
false
qemu
5858dd1801883309bdd208d72ddb81c4e9fee30c
static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) { if (!pitch) { return true; } if (pitch < 0) { int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch; int32_t max = addr ...
{ "code": [], "line_no": [] }
static bool FUNC_0(struct CirrusVGAState *s, int32_t pitch, int32_t addr) { if (!pitch) { return true; } if (pitch < 0) { int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch; int32_t max = addr + s->cirrus...
[ "static bool FUNC_0(struct CirrusVGAState *s,\nint32_t pitch, int32_t addr)\n{", "if (!pitch) {", "return true;", "}", "if (pitch < 0) {", "int64_t min = addr\n+ ((int64_t)s->cirrus_blt_height-1) * pitch;", "int32_t max = addr\n+ s->cirrus_blt_width;", "if (min < 0 || max > s->vga.vram_size) {", "re...
[ 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 ], [...
19,303
int cpu_load(QEMUFile *f, void *opaque, int version_id) { CPUCRISState *env = opaque; int i; int s; int mmu; for (i = 0; i < 16; i++) env->regs[i] = qemu_get_be32(f); for (i = 0; i < 16; i++) env->pregs[i] = qemu_get_be32(f); env->pc = qemu_get_be32(f); env->k...
false
qemu
d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342
int cpu_load(QEMUFile *f, void *opaque, int version_id) { CPUCRISState *env = opaque; int i; int s; int mmu; for (i = 0; i < 16; i++) env->regs[i] = qemu_get_be32(f); for (i = 0; i < 16; i++) env->pregs[i] = qemu_get_be32(f); env->pc = qemu_get_be32(f); env->k...
{ "code": [], "line_no": [] }
int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { CPUCRISState *env = VAR_1; int VAR_3; int VAR_4; int VAR_5; for (VAR_3 = 0; VAR_3 < 16; VAR_3++) env->regs[VAR_3] = qemu_get_be32(VAR_0); for (VAR_3 = 0; VAR_3 < 16; VAR_3++) env->pregs[VAR_3] = qemu_get_be32(VAR_0); ...
[ "int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "CPUCRISState *env = VAR_1;", "int VAR_3;", "int VAR_4;", "int VAR_5;", "for (VAR_3 = 0; VAR_3 < 16; VAR_3++)", "env->regs[VAR_3] = qemu_get_be32(VAR_0);", "for (VAR_3 = 0; VAR_3 < 16; VAR_3++)", "env->pregs[VAR_3] = qemu_get_be32(VAR_0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
19,304
static int xvid_strip_vol_header(AVCodecContext *avctx, AVPacket *pkt, unsigned int header_len, unsigned int frame_len) { int vo_len = 0, i; for( i = 0; i < header_len - 3; i++ ) { if( pkt->data[i] == 0x00 && pkt->data[i+1] == 0x...
false
FFmpeg
f929ab0569ff31ed5a59b0b0adb7ce09df3fca39
static int xvid_strip_vol_header(AVCodecContext *avctx, AVPacket *pkt, unsigned int header_len, unsigned int frame_len) { int vo_len = 0, i; for( i = 0; i < header_len - 3; i++ ) { if( pkt->data[i] == 0x00 && pkt->data[i+1] == 0x...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, unsigned int VAR_2, unsigned int VAR_3) { int VAR_4 = 0, VAR_5; for( VAR_5 = 0; VAR_5 < VAR_2 - 3; VAR_5++ ) { if( VAR_1->data[VAR_5] == 0x00 && VAR_1->data[VAR_5+1] == 0x...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nAVPacket *VAR_1,\nunsigned int VAR_2,\nunsigned int VAR_3) {", "int VAR_4 = 0, VAR_5;", "for( VAR_5 = 0; VAR_5 < VAR_2 - 3; VAR_5++ ) {", "if( VAR_1->data[VAR_5] == 0x00 &&\nVAR_1->data[VAR_5+1] == 0x00 &&\nVAR_1->data[VAR_5+2] == 0x01 &&\nVAR_1->data[VAR_5+3] == 0xB...
[ 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 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [...
19,305
static int vfio_setup_pcie_cap(VFIOPCIDevice *vdev, int pos, uint8_t size, Error **errp) { uint16_t flags; uint8_t type; flags = pci_get_word(vdev->pdev.config + pos + PCI_CAP_FLAGS); type = (flags & PCI_EXP_FLAGS_TYPE) >> 4; if (type != PCI_EXP_TYPE_ENDPOIN...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static int vfio_setup_pcie_cap(VFIOPCIDevice *vdev, int pos, uint8_t size, Error **errp) { uint16_t flags; uint8_t type; flags = pci_get_word(vdev->pdev.config + pos + PCI_CAP_FLAGS); type = (flags & PCI_EXP_FLAGS_TYPE) >> 4; if (type != PCI_EXP_TYPE_ENDPOIN...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1, uint8_t VAR_2, Error **VAR_3) { uint16_t flags; uint8_t type; flags = pci_get_word(VAR_0->pdev.config + VAR_1 + PCI_CAP_FLAGS); type = (flags & PCI_EXP_FLAGS_TYPE) >> 4; if (type != PCI_EXP_TYPE_ENDPOINT && ...
[ "static int FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1, uint8_t VAR_2,\nError **VAR_3)\n{", "uint16_t flags;", "uint8_t type;", "flags = pci_get_word(VAR_0->pdev.config + VAR_1 + PCI_CAP_FLAGS);", "type = (flags & PCI_EXP_FLAGS_TYPE) >> 4;", "if (type != PCI_EXP_TYPE_ENDPOINT &&\ntype != PCI_EXP_TYPE_LEG_END ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21, 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 85 ], [ 87 ], [ 89 ], [ 91 ], [ 95 ], [ 97 ...
19,306
static void IRQ_local_pipe (openpic_t *opp, int n_CPU, int n_IRQ) { IRQ_dst_t *dst; IRQ_src_t *src; int priority; dst = &opp->dst[n_CPU]; src = &opp->src[n_IRQ]; priority = IPVP_PRIORITY(src->ipvp); if (priority <= dst->pctp) { /* Too low priority */ DPRINTF("%s: ...
false
qemu
5861a33898bbddfd1a80c2e202cb9352e3b1ba62
static void IRQ_local_pipe (openpic_t *opp, int n_CPU, int n_IRQ) { IRQ_dst_t *dst; IRQ_src_t *src; int priority; dst = &opp->dst[n_CPU]; src = &opp->src[n_IRQ]; priority = IPVP_PRIORITY(src->ipvp); if (priority <= dst->pctp) { DPRINTF("%s: IRQ %d has too low pri...
{ "code": [], "line_no": [] }
static void FUNC_0 (openpic_t *VAR_0, int VAR_1, int VAR_2) { IRQ_dst_t *dst; IRQ_src_t *src; int VAR_3; dst = &VAR_0->dst[VAR_1]; src = &VAR_0->src[VAR_2]; VAR_3 = IPVP_PRIORITY(src->ipvp); if (VAR_3 <= dst->pctp) { DPRINTF("%s: IRQ %d has too low VAR_3 on CPU %...
[ "static void FUNC_0 (openpic_t *VAR_0, int VAR_1, int VAR_2)\n{", "IRQ_dst_t *dst;", "IRQ_src_t *src;", "int VAR_3;", "dst = &VAR_0->dst[VAR_1];", "src = &VAR_0->src[VAR_2];", "VAR_3 = IPVP_PRIORITY(src->ipvp);", "if (VAR_3 <= dst->pctp) {", "DPRINTF(\"%s: IRQ %d has too low VAR_3 on CPU %d\\n\",\n_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51,...
19,308
void armv7m_nvic_complete_irq(void *opaque, int irq) { nvic_state *s = (nvic_state *)opaque; if (irq >= 16) irq += 16; gic_complete_irq(&s->gic, 0, irq); }
false
qemu
f9c6a7f1395c6d88a3bb1a0cb48811994709966e
void armv7m_nvic_complete_irq(void *opaque, int irq) { nvic_state *s = (nvic_state *)opaque; if (irq >= 16) irq += 16; gic_complete_irq(&s->gic, 0, irq); }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, int VAR_1) { nvic_state *s = (nvic_state *)VAR_0; if (VAR_1 >= 16) VAR_1 += 16; gic_complete_irq(&s->gic, 0, VAR_1); }
[ "void FUNC_0(void *VAR_0, int VAR_1)\n{", "nvic_state *s = (nvic_state *)VAR_0;", "if (VAR_1 >= 16)\nVAR_1 += 16;", "gic_complete_irq(&s->gic, 0, VAR_1);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ] ]
19,309
static void amdvi_iommu_notify_flag_changed(MemoryRegion *iommu, IOMMUNotifierFlag old, IOMMUNotifierFlag new) { AMDVIAddressSpace *as = container_of(iommu, AMDVIAddressSpace, iommu); hw_error("device %02x.%02x.%x req...
false
qemu
a3276f786c84d3410be5bc3a4b3e5036745e5a90
static void amdvi_iommu_notify_flag_changed(MemoryRegion *iommu, IOMMUNotifierFlag old, IOMMUNotifierFlag new) { AMDVIAddressSpace *as = container_of(iommu, AMDVIAddressSpace, iommu); hw_error("device %02x.%02x.%x req...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryRegion *VAR_0, IOMMUNotifierFlag VAR_1, IOMMUNotifierFlag VAR_2) { AMDVIAddressSpace *as = container_of(VAR_0, AMDVIAddressSpace, VAR_0); hw_error("device %02x.%02x.%x requires VAR_0 notifier ...
[ "static void FUNC_0(MemoryRegion *VAR_0,\nIOMMUNotifierFlag VAR_1,\nIOMMUNotifierFlag VAR_2)\n{", "AMDVIAddressSpace *as = container_of(VAR_0, AMDVIAddressSpace, VAR_0);", "hw_error(\"device %02x.%02x.%x requires VAR_0 notifier which is not \"\n\"currently supported\", as->bus_num, PCI_SLOT(as->devfn),\nPCI_FUN...
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15, 17 ], [ 19 ] ]
19,310
static int kvm_put_tscdeadline_msr(X86CPU *cpu) { CPUX86State *env = &cpu->env; struct { struct kvm_msrs info; struct kvm_msr_entry entries[1]; } msr_data; struct kvm_msr_entry *msrs = msr_data.entries; if (!has_msr_tsc_deadline) { return 0; } kvm_msr_e...
false
qemu
c7fe4b12984a36b87438080e48aff5e8f6d48ac9
static int kvm_put_tscdeadline_msr(X86CPU *cpu) { CPUX86State *env = &cpu->env; struct { struct kvm_msrs info; struct kvm_msr_entry entries[1]; } msr_data; struct kvm_msr_entry *msrs = msr_data.entries; if (!has_msr_tsc_deadline) { return 0; } kvm_msr_e...
{ "code": [], "line_no": [] }
static int FUNC_0(X86CPU *VAR_0) { CPUX86State *env = &VAR_0->env; struct { struct kvm_msrs info; struct kvm_msr_entry entries[1]; } VAR_1; struct kvm_msr_entry *VAR_2 = VAR_1.entries; if (!has_msr_tsc_deadline) { return 0; } kvm_msr_entry_set(&VAR_2[0]...
[ "static int FUNC_0(X86CPU *VAR_0)\n{", "CPUX86State *env = &VAR_0->env;", "struct {", "struct kvm_msrs info;", "struct kvm_msr_entry entries[1];", "} VAR_1;", "struct kvm_msr_entry *VAR_2 = VAR_1.entries;", "if (!has_msr_tsc_deadline) {", "return 0;", "}", "kvm_msr_entry_set(&VAR_2[0], MSR_IA32_...
[ 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 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ] ]
19,311
static void m5208_sys_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { hw_error("m5208_sys_write: Bad offset 0x%x\n", (int)addr); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void m5208_sys_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { hw_error("m5208_sys_write: Bad offset 0x%x\n", (int)addr); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { hw_error("FUNC_0: Bad offset 0x%x\n", (int)VAR_1); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "hw_error(\"FUNC_0: Bad offset 0x%x\\n\", (int)VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
19,312
static int get_physical_address_data(CPUState *env, target_phys_addr_t *physical, int *prot, target_ulong address, int rw, int is_user) { unsigned int i; uint64_t context; int is_nucleus; if ((env->lsu & DMMU_E) == 0) { /...
true
qemu
299b520cd4092be3c53f8380b81315c33927d9d3
static int get_physical_address_data(CPUState *env, target_phys_addr_t *physical, int *prot, target_ulong address, int rw, int is_user) { unsigned int i; uint64_t context; int is_nucleus; if ((env->lsu & DMMU_E) == 0) { ...
{ "code": [ " int is_nucleus;", " context = env->dmmu.mmu_primary_context & 0x1fff;", " is_nucleus = env->tl > 0;", " address, context, physical,", " is_nucleus)) {", " int is_nucleus;", " context = env->dmmu.mm...
static int FUNC_0(CPUState *VAR_0, target_phys_addr_t *VAR_1, int *VAR_2, target_ulong VAR_3, int VAR_4, int VAR_5) { unsigned int VAR_6; uint64_t context; int VAR_7; if ((VAR_0->lsu & DMMU_E) == 0) { *VAR_1 = u...
[ "static int FUNC_0(CPUState *VAR_0,\ntarget_phys_addr_t *VAR_1, int *VAR_2,\ntarget_ulong VAR_3, int VAR_4, int VAR_5)\n{", "unsigned int VAR_6;", "uint64_t context;", "int VAR_7;", "if ((VAR_0->lsu & DMMU_E) == 0) {", "*VAR_1 = ultrasparc_truncate_physical(VAR_3);", "*VAR_2 = PAGE_READ | PAGE_WRITE;", ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39, 41, 43 ], [ 47, 49 ], [ 51 ], [ 55 ], [ 57 ], [...
19,313
static void sd_response_r1_make(SDState *sd, uint8_t *response) { uint32_t status = sd->card_status; /* Clear the "clear on read" status bits (except APP_CMD) */ sd->card_status &= ~CARD_STATUS_C | APP_CMD; response[0] = (status >> 24) & 0xff; response[1] = (status >> 16) & 0xff; respon...
true
qemu
1d06cb7ab93f879ac25c9f5ef1d1ac8d97a42dfc
static void sd_response_r1_make(SDState *sd, uint8_t *response) { uint32_t status = sd->card_status; sd->card_status &= ~CARD_STATUS_C | APP_CMD; response[0] = (status >> 24) & 0xff; response[1] = (status >> 16) & 0xff; response[2] = (status >> 8) & 0xff; response[3] = (status >> ...
{ "code": [ " sd->card_status &= ~CARD_STATUS_C | APP_CMD;" ], "line_no": [ 9 ] }
static void FUNC_0(SDState *VAR_0, uint8_t *VAR_1) { uint32_t status = VAR_0->card_status; VAR_0->card_status &= ~CARD_STATUS_C | APP_CMD; VAR_1[0] = (status >> 24) & 0xff; VAR_1[1] = (status >> 16) & 0xff; VAR_1[2] = (status >> 8) & 0xff; VAR_1[3] = (status >> 0) & 0xff; }
[ "static void FUNC_0(SDState *VAR_0, uint8_t *VAR_1)\n{", "uint32_t status = VAR_0->card_status;", "VAR_0->card_status &= ~CARD_STATUS_C | APP_CMD;", "VAR_1[0] = (status >> 24) & 0xff;", "VAR_1[1] = (status >> 16) & 0xff;", "VAR_1[2] = (status >> 8) & 0xff;", "VAR_1[3] = (status >> 0) & 0xff;", "}" ]
[ 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
19,314
void FUNC(ff_simple_idct_add)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int i; line_size /= sizeof(pixel); for (i = 0; i < 8; i++) FUNC(idctRowCondDC)(block + i*8); for (i = 0; i < 8; i++) FUNC(idctSparseColAdd)(dest + i, line_size, ...
true
FFmpeg
f78cd0c243b9149c7f604ecf1006d78e344aa6ca
void FUNC(ff_simple_idct_add)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int i; line_size /= sizeof(pixel); for (i = 0; i < 8; i++) FUNC(idctRowCondDC)(block + i*8); for (i = 0; i < 8; i++) FUNC(idctSparseColAdd)(dest + i, line_size, ...
{ "code": [ " FUNC(idctRowCondDC)(block + i*8);", " FUNC(idctRowCondDC)(block + i*8);", " FUNC(idctRowCondDC)(block + i*8);" ], "line_no": [ 17, 17, 17 ] }
void FUNC_0(ff_simple_idct_add)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int VAR_0; line_size /= sizeof(pixel); for (VAR_0 = 0; VAR_0 < 8; VAR_0++) FUNC_0(idctRowCondDC)(block + VAR_0*8); for (VAR_0 = 0; VAR_0 < 8; VAR_0++) FUNC_0(i...
[ "void FUNC_0(ff_simple_idct_add)(uint8_t *dest_, int line_size, DCTELEM *block)\n{", "pixel *dest = (pixel *)dest_;", "int VAR_0;", "line_size /= sizeof(pixel);", "for (VAR_0 = 0; VAR_0 < 8; VAR_0++)", "FUNC_0(idctRowCondDC)(block + VAR_0*8);", "for (VAR_0 = 0; VAR_0 < 8; VAR_0++)", "FUNC_0(idctSparse...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
19,315
static void pci_set_irq(void *opaque, int irq_num, int level) { PCIDevice *pci_dev = opaque; PCIBus *bus; int change; change = level - pci_dev->irq_state[irq_num]; if (!change) return; pci_dev->irq_state[irq_num] = level; for (;;) { bus = pci_dev->bus; ...
true
qemu
d036bb215e0ac1d1fd467239f1d3b7d904cac90a
static void pci_set_irq(void *opaque, int irq_num, int level) { PCIDevice *pci_dev = opaque; PCIBus *bus; int change; change = level - pci_dev->irq_state[irq_num]; if (!change) return; pci_dev->irq_state[irq_num] = level; for (;;) { bus = pci_dev->bus; ...
{ "code": [ " PCIBus *bus;", " change = level - pci_dev->irq_state[irq_num];", " pci_dev->irq_state[irq_num] = level;", " for (;;) {", " bus = pci_dev->bus;", " irq_num = bus->map_irq(pci_dev, irq_num);", " if (bus->set_irq)", " break;", ...
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { PCIDevice *pci_dev = VAR_0; PCIBus *bus; int VAR_3; VAR_3 = VAR_2 - pci_dev->irq_state[VAR_1]; if (!VAR_3) return; pci_dev->irq_state[VAR_1] = VAR_2; for (;;) { bus = pci_dev->bus; VAR_1 = bus->map...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "PCIDevice *pci_dev = VAR_0;", "PCIBus *bus;", "int VAR_3;", "VAR_3 = VAR_2 - pci_dev->irq_state[VAR_1];", "if (!VAR_3)\nreturn;", "pci_dev->irq_state[VAR_1] = VAR_2;", "for (;;) {", "bus = pci_dev->bus;", "VAR_1 = bus->map_irq(pci_dev, V...
[ 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
19,316
static int setup_partitions(VP8Context *s, const uint8_t *buf, int buf_size) { const uint8_t *sizes = buf; int i; s->num_coeff_partitions = 1 << vp8_rac_get_uint(&s->c, 2); buf += 3 * (s->num_coeff_partitions - 1); buf_size -= 3 * (s->num_coeff_partitions - 1); if (buf_size < 0) ...
true
FFmpeg
55d7371fe0c44c025eb0e75215e0685870f31874
static int setup_partitions(VP8Context *s, const uint8_t *buf, int buf_size) { const uint8_t *sizes = buf; int i; s->num_coeff_partitions = 1 << vp8_rac_get_uint(&s->c, 2); buf += 3 * (s->num_coeff_partitions - 1); buf_size -= 3 * (s->num_coeff_partitions - 1); if (buf_size < 0) ...
{ "code": [ " ff_vp56_init_range_decoder(&s->coeff_partition[i], buf, size);", " ff_vp56_init_range_decoder(&s->coeff_partition[i], buf, buf_size);", " return 0;" ], "line_no": [ 35, 43, 47 ] }
static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2) { const uint8_t *VAR_3 = VAR_1; int VAR_4; VAR_0->num_coeff_partitions = 1 << vp8_rac_get_uint(&VAR_0->c, 2); VAR_1 += 3 * (VAR_0->num_coeff_partitions - 1); VAR_2 -= 3 * (VAR_0->num_coeff_partitions - 1); if (...
[ "static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "const uint8_t *VAR_3 = VAR_1;", "int VAR_4;", "VAR_0->num_coeff_partitions = 1 << vp8_rac_get_uint(&VAR_0->c, 2);", "VAR_1 += 3 * (VAR_0->num_coeff_partitions - 1);", "VAR_2 -= 3 * (VAR_0->num_coeff_partitions - 1);", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
19,317
static int load_data(AVFilterContext *ctx, int azim, int elev, float radius) { struct SOFAlizerContext *s = ctx->priv; const int n_samples = s->sofa.n_samples; int n_conv = s->n_conv; /* no. channels to convolve */ int n_fft = s->n_fft; int delay_l[16]; /* broadband delay for each IR */ i...
true
FFmpeg
21234c835d2d003d390d462b6e1b2622e7b02c39
static int load_data(AVFilterContext *ctx, int azim, int elev, float radius) { struct SOFAlizerContext *s = ctx->priv; const int n_samples = s->sofa.n_samples; int n_conv = s->n_conv; int n_fft = s->n_fft; int delay_l[16]; int delay_r[16]; int nb_input_channels = ctx->inputs[0]->ch...
{ "code": [ " data_ir_l = av_malloc_array(n_conv * n_samples, sizeof(*data_ir_l));", " data_ir_r = av_malloc_array(n_conv * n_samples, sizeof(*data_ir_r));", " memcpy(s->data_ir[0], data_ir_l, sizeof(float) * n_conv * n_samples);", " memcpy(s->data_ir[1], data_ir_r, sizeof(...
static int FUNC_0(AVFilterContext *VAR_0, int VAR_1, int VAR_2, float VAR_3) { struct SOFAlizerContext *VAR_4 = VAR_0->priv; const int VAR_5 = VAR_4->sofa.VAR_5; int VAR_6 = VAR_4->VAR_6; int VAR_7 = VAR_4->VAR_7; int VAR_8[16]; int VAR_9[16]; int VAR_10 = VAR_0->inputs[0]->channel...
[ "static int FUNC_0(AVFilterContext *VAR_0, int VAR_1, int VAR_2, float VAR_3)\n{", "struct SOFAlizerContext *VAR_4 = VAR_0->priv;", "const int VAR_5 = VAR_4->sofa.VAR_5;", "int VAR_6 = VAR_4->VAR_6;", "int VAR_7 = VAR_4->VAR_7;", "int VAR_8[16];", "int VAR_9[16];", "int VAR_10 = VAR_0->inputs[0]->chan...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ...
19,318
static int decode_555(GetByteContext *gB, uint16_t *dst, int stride, int keyframe, int w, int h) { int last_symbol = 0, repeat = 0, prev_avail = 0; if (!keyframe) { int x, y, endx, endy, t; #define READ_PAIR(a, b) \ a = bytestream2_get_byte(gB) << 4;...
true
FFmpeg
e273dade78943e22b71d0ddb67cd0d737fc26edf
static int decode_555(GetByteContext *gB, uint16_t *dst, int stride, int keyframe, int w, int h) { int last_symbol = 0, repeat = 0, prev_avail = 0; if (!keyframe) { int x, y, endx, endy, t; #define READ_PAIR(a, b) \ a = bytestream2_get_byte(gB) << 4;...
{ "code": [ " while (b-- > 130)" ], "line_no": [ 73 ] }
static int FUNC_0(GetByteContext *VAR_0, uint16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { int VAR_6 = 0, VAR_7 = 0, VAR_8 = 0; if (!VAR_3) { int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13; #define READ_PAIR(a, VAR_14) \ a = bytestream2_get_b...
[ "static int FUNC_0(GetByteContext *VAR_0, uint16_t *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{", "int VAR_6 = 0, VAR_7 = 0, VAR_8 = 0;", "if (!VAR_3) {", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;", "#define READ_PAIR(a, VAR_14) \\\na = bytestream2_get_byte(VAR_0) << 4; \\", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 55 ], [ 57...
19,319
static int get_rice_un(GetBitContext *gb, int k) { unsigned int v = get_unary(gb, 1, 128); return (v << k) | get_bits_long(gb, k); }
false
FFmpeg
e0706e9cc8f30a8242d2b140edace7bf76170506
static int get_rice_un(GetBitContext *gb, int k) { unsigned int v = get_unary(gb, 1, 128); return (v << k) | get_bits_long(gb, k); }
{ "code": [], "line_no": [] }
static int FUNC_0(GetBitContext *VAR_0, int VAR_1) { unsigned int VAR_2 = get_unary(VAR_0, 1, 128); return (VAR_2 << VAR_1) | get_bits_long(VAR_0, VAR_1); }
[ "static int FUNC_0(GetBitContext *VAR_0, int VAR_1)\n{", "unsigned int VAR_2 = get_unary(VAR_0, 1, 128);", "return (VAR_2 << VAR_1) | get_bits_long(VAR_0, VAR_1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
19,320
static void qmf_32_subbands(DCAContext * s, int chans, float samples_in[32][8], float *samples_out, float scale) { const float *prCoeff; int i; int sb_act = s->subband_activity[chans]; int subindex; scale *= sqrt(1/8.0); /* S...
false
FFmpeg
bf00a73ace9b1aba790b75dcb26d43adfceb769f
static void qmf_32_subbands(DCAContext * s, int chans, float samples_in[32][8], float *samples_out, float scale) { const float *prCoeff; int i; int sb_act = s->subband_activity[chans]; int subindex; scale *= sqrt(1/8.0); ...
{ "code": [], "line_no": [] }
static void FUNC_0(DCAContext * VAR_0, int VAR_1, float VAR_2[32][8], float *VAR_3, float VAR_4) { const float *VAR_5; int VAR_6; int VAR_7 = VAR_0->subband_activity[VAR_1]; int VAR_8; VAR_4 *= sqrt(1/8.0); if (!VAR_0->...
[ "static void FUNC_0(DCAContext * VAR_0, int VAR_1,\nfloat VAR_2[32][8], float *VAR_3,\nfloat VAR_4)\n{", "const float *VAR_5;", "int VAR_6;", "int VAR_7 = VAR_0->subband_activity[VAR_1];", "int VAR_8;", "VAR_4 *= sqrt(1/8.0);", "if (!VAR_0->multirate_inter)\nVAR_5 = fir_32bands_nonperfect;", "else\nVA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 27, 29 ], [ 31, 33 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57, 59, 61, 63 ], [...
19,321
static int vnc_display_connect(VncDisplay *vd, SocketAddressLegacy **saddr, size_t nsaddr, SocketAddressLegacy **wsaddr, size_t nwsaddr, Error **errp) { /...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
static int vnc_display_connect(VncDisplay *vd, SocketAddressLegacy **saddr, size_t nsaddr, SocketAddressLegacy **wsaddr, size_t nwsaddr, Error **errp) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(VncDisplay *VAR_0, SocketAddressLegacy **VAR_1, size_t VAR_2, SocketAddressLegacy **VAR_3, size_t VAR_4, Error **VAR_5) { QIOChann...
[ "static int FUNC_0(VncDisplay *VAR_0,\nSocketAddressLegacy **VAR_1,\nsize_t VAR_2,\nSocketAddressLegacy **VAR_3,\nsize_t VAR_4,\nError **VAR_5)\n{", "QIOChannelSocket *sioc = NULL;", "if (VAR_4 != 0) {", "error_setg(VAR_5, \"Cannot use websockets in reverse mode\");", "return -1;", "}", "if (VAR_2 != 1)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
19,323
int64_t av_get_channel_layout(const char *name) { int i = 0; do { if (!strcmp(channel_layout_map[i].name, name)) return channel_layout_map[i].layout; i++; } while (channel_layout_map[i].name); return 0; }
false
FFmpeg
cc276c85d15272df6e44fb3252657a43cbd49555
int64_t av_get_channel_layout(const char *name) { int i = 0; do { if (!strcmp(channel_layout_map[i].name, name)) return channel_layout_map[i].layout; i++; } while (channel_layout_map[i].name); return 0; }
{ "code": [], "line_no": [] }
int64_t FUNC_0(const char *name) { int VAR_0 = 0; do { if (!strcmp(channel_layout_map[VAR_0].name, name)) return channel_layout_map[VAR_0].layout; VAR_0++; } while (channel_layout_map[VAR_0].name); return 0; }
[ "int64_t FUNC_0(const char *name)\n{", "int VAR_0 = 0;", "do {", "if (!strcmp(channel_layout_map[VAR_0].name, name))\nreturn channel_layout_map[VAR_0].layout;", "VAR_0++;", "} while (channel_layout_map[VAR_0].name);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
19,324
static DevicePropertyInfo *make_device_property_info(ObjectClass *klass, const char *name, const char *default_type, const char *description) { DevicePr...
false
qemu
faabdbb792889bf011a593578d1de51e14616bb7
static DevicePropertyInfo *make_device_property_info(ObjectClass *klass, const char *name, const char *default_type, const char *description) { DevicePr...
{ "code": [], "line_no": [] }
static DevicePropertyInfo *FUNC_0(ObjectClass *klass, const char *name, const char *default_type, const char *description) { DevicePropertyInfo *info; ...
[ "static DevicePropertyInfo *FUNC_0(ObjectClass *klass,\nconst char *name,\nconst char *default_type,\nconst char *description)\n{", "DevicePropertyInfo *info;", "Property *prop;", "do {", "for (prop = DEVICE_CLASS(klass)->props; prop && prop->name; prop++) {", "if (strcmp(name, prop->name) != 0) {", "co...
[ 0, 0, 0, 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 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [...
19,326
static void sun4uv_init(MemoryRegion *address_space_mem, QEMUMachineInitArgs *args, const struct hwdef *hwdef) { SPARCCPU *cpu; M48t59State *nvram; unsigned int i; uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry; PCIBu...
false
qemu
c16547326988cc321c9bff43ed91cbe753e52892
static void sun4uv_init(MemoryRegion *address_space_mem, QEMUMachineInitArgs *args, const struct hwdef *hwdef) { SPARCCPU *cpu; M48t59State *nvram; unsigned int i; uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry; PCIBu...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryRegion *VAR_0, QEMUMachineInitArgs *VAR_1, const struct VAR_2 *VAR_2) { SPARCCPU *cpu; M48t59State *nvram; unsigned int VAR_3; uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry; PCIBus *pci_bus, ...
[ "static void FUNC_0(MemoryRegion *VAR_0,\nQEMUMachineInitArgs *VAR_1,\nconst struct VAR_2 *VAR_2)\n{", "SPARCCPU *cpu;", "M48t59State *nvram;", "unsigned int VAR_3;", "uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry;", "PCIBus *pci_bus, *pci_bus2, *pci_bus3;", "ISABus *isa_bus;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 39 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 59 ], [...
19,327
static void buffered_rate_tick(void *opaque) { QEMUFileBuffered *s = opaque; if (s->has_error) { buffered_close(s); return; } qemu_mod_timer(s->timer, qemu_get_clock(rt_clock) + 100); if (s->freeze_output) return; s->bytes_xfer = 0; buffered_flush...
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
static void buffered_rate_tick(void *opaque) { QEMUFileBuffered *s = opaque; if (s->has_error) { buffered_close(s); return; } qemu_mod_timer(s->timer, qemu_get_clock(rt_clock) + 100); if (s->freeze_output) return; s->bytes_xfer = 0; buffered_flush...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { QEMUFileBuffered *s = VAR_0; if (s->has_error) { buffered_close(s); return; } qemu_mod_timer(s->timer, qemu_get_clock(rt_clock) + 100); if (s->freeze_output) return; s->bytes_xfer = 0; buffered_flush(s); ...
[ "static void FUNC_0(void *VAR_0)\n{", "QEMUFileBuffered *s = VAR_0;", "if (s->has_error) {", "buffered_close(s);", "return;", "}", "qemu_mod_timer(s->timer, qemu_get_clock(rt_clock) + 100);", "if (s->freeze_output)\nreturn;", "s->bytes_xfer = 0;", "buffered_flush(s);", "s->put_ready(s->VAR_0);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 39 ], [ 41 ] ]
19,328
void nbd_client_session_close(NbdClientSession *client) { struct nbd_request request = { .type = NBD_CMD_DISC, .from = 0, .len = 0 }; if (!client->bs) { return; } if (client->sock == -1) { return; } nbd_send_request(client->sock, &requ...
false
qemu
f53a829bb9ef14be800556cbc02d8b20fc1050a7
void nbd_client_session_close(NbdClientSession *client) { struct nbd_request request = { .type = NBD_CMD_DISC, .from = 0, .len = 0 }; if (!client->bs) { return; } if (client->sock == -1) { return; } nbd_send_request(client->sock, &requ...
{ "code": [], "line_no": [] }
void FUNC_0(NbdClientSession *VAR_0) { struct nbd_request VAR_1 = { .type = NBD_CMD_DISC, .from = 0, .len = 0 }; if (!VAR_0->bs) { return; } if (VAR_0->sock == -1) { return; } nbd_send_request(VAR_0->sock, &VAR_1); nbd_teardown_...
[ "void FUNC_0(NbdClientSession *VAR_0)\n{", "struct nbd_request VAR_1 = {", ".type = NBD_CMD_DISC,\n.from = 0,\n.len = 0\n};", "if (!VAR_0->bs) {", "return;", "}", "if (VAR_0->sock == -1) {", "return;", "}", "nbd_send_request(VAR_0->sock, &VAR_1);", "nbd_teardown_connection(VAR_0);", "VAR_0->bs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
19,329
void blk_insert_bs(BlockBackend *blk, BlockDriverState *bs) { bdrv_ref(bs); blk->root = bdrv_root_attach_child(bs, "root", &child_root, blk); notifier_list_notify(&blk->insert_bs_notifiers, blk); if (blk->public.throttle_state) { throttle_timers_attach_aio_context( &blk->pub...
false
qemu
d5e6f437c5508614803d11e59ee16a758dde09ef
void blk_insert_bs(BlockBackend *blk, BlockDriverState *bs) { bdrv_ref(bs); blk->root = bdrv_root_attach_child(bs, "root", &child_root, blk); notifier_list_notify(&blk->insert_bs_notifiers, blk); if (blk->public.throttle_state) { throttle_timers_attach_aio_context( &blk->pub...
{ "code": [], "line_no": [] }
void FUNC_0(BlockBackend *VAR_0, BlockDriverState *VAR_1) { bdrv_ref(VAR_1); VAR_0->root = bdrv_root_attach_child(VAR_1, "root", &child_root, VAR_0); notifier_list_notify(&VAR_0->insert_bs_notifiers, VAR_0); if (VAR_0->public.throttle_state) { throttle_timers_attach_aio_context( ...
[ "void FUNC_0(BlockBackend *VAR_0, BlockDriverState *VAR_1)\n{", "bdrv_ref(VAR_1);", "VAR_0->root = bdrv_root_attach_child(VAR_1, \"root\", &child_root, VAR_0);", "notifier_list_notify(&VAR_0->insert_bs_notifiers, VAR_0);", "if (VAR_0->public.throttle_state) {", "throttle_timers_attach_aio_context(\n&VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ] ]
19,330
static void test_init(TestData *d) { QPCIBus *bus; QTestState *qs; char *s; s = g_strdup_printf("-machine q35 %s", !d->args ? "" : d->args); qs = qtest_start(s); qtest_irq_intercept_in(qs, "ioapic"); g_free(s); bus = qpci_init_pc(); d->dev = qpci_device_find(bus, QPCI_D...
false
qemu
5add35bec1e249bb5345a47008c8f298d4760be4
static void test_init(TestData *d) { QPCIBus *bus; QTestState *qs; char *s; s = g_strdup_printf("-machine q35 %s", !d->args ? "" : d->args); qs = qtest_start(s); qtest_irq_intercept_in(qs, "ioapic"); g_free(s); bus = qpci_init_pc(); d->dev = qpci_device_find(bus, QPCI_D...
{ "code": [], "line_no": [] }
static void FUNC_0(TestData *VAR_0) { QPCIBus *bus; QTestState *qs; char *VAR_1; VAR_1 = g_strdup_printf("-machine q35 %VAR_1", !VAR_0->args ? "" : VAR_0->args); qs = qtest_start(VAR_1); qtest_irq_intercept_in(qs, "ioapic"); g_free(VAR_1); bus = qpci_init_pc(); VAR_0->d...
[ "static void FUNC_0(TestData *VAR_0)\n{", "QPCIBus *bus;", "QTestState *qs;", "char *VAR_1;", "VAR_1 = g_strdup_printf(\"-machine q35 %VAR_1\", !VAR_0->args ? \"\" : VAR_0->args);", "qs = qtest_start(VAR_1);", "qtest_irq_intercept_in(qs, \"ioapic\");", "g_free(VAR_1);", "bus = qpci_init_pc();", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 37 ], [ 41 ], [ 47, 49 ], [ 53, 55 ], [ 59, 61 ], [ 65 ], [...
19,331
START_TEST(qdict_stress_test) { size_t lines; char key[128]; FILE *test_file; QDict *qdict; QString *value; const char *test_file_path = "qdict-test-data.txt"; test_file = fopen(test_file_path, "r"); fail_unless(test_file != NULL); // Create the dict qdict = qdict_...
false
qemu
ac531cb6e542b1e61d668604adf9dc5306a948c0
START_TEST(qdict_stress_test) { size_t lines; char key[128]; FILE *test_file; QDict *qdict; QString *value; const char *test_file_path = "qdict-test-data.txt"; test_file = fopen(test_file_path, "r"); fail_unless(test_file != NULL); qdict = qdict_new(); fail_u...
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { size_t lines; char VAR_1[128]; FILE *test_file; QDict *qdict; QString *value; const char *VAR_2 = "qdict-test-data.txt"; test_file = fopen(VAR_2, "r"); fail_unless(test_file != NULL); qdict = qdict_new(); fail_unless(qdict != NULL); ...
[ "FUNC_0(VAR_0)\n{", "size_t lines;", "char VAR_1[128];", "FILE *test_file;", "QDict *qdict;", "QString *value;", "const char *VAR_2 = \"qdict-test-data.txt\";", "test_file = fopen(VAR_2, \"r\");", "fail_unless(test_file != NULL);", "qdict = qdict_new();", "fail_unless(qdict != NULL);", "for (l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [...
19,332
static int sl_nand_init(SysBusDevice *dev) { SLNANDState *s = SL_NAND(dev); DriveInfo *nand; s->ctl = 0; nand = drive_get(IF_MTD, 0, 0); s->nand = nand_init(nand ? blk_bs(blk_by_legacy_dinfo(nand)) : NULL, s->manf_id, s->chip_id); memory_region_init_io(&s->iom...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static int sl_nand_init(SysBusDevice *dev) { SLNANDState *s = SL_NAND(dev); DriveInfo *nand; s->ctl = 0; nand = drive_get(IF_MTD, 0, 0); s->nand = nand_init(nand ? blk_bs(blk_by_legacy_dinfo(nand)) : NULL, s->manf_id, s->chip_id); memory_region_init_io(&s->iom...
{ "code": [], "line_no": [] }
static int FUNC_0(SysBusDevice *VAR_0) { SLNANDState *s = SL_NAND(VAR_0); DriveInfo *nand; s->ctl = 0; nand = drive_get(IF_MTD, 0, 0); s->nand = nand_init(nand ? blk_bs(blk_by_legacy_dinfo(nand)) : NULL, s->manf_id, s->chip_id); memory_region_init_io(&s->iomem...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "SLNANDState *s = SL_NAND(VAR_0);", "DriveInfo *nand;", "s->ctl = 0;", "nand = drive_get(IF_MTD, 0, 0);", "s->nand = nand_init(nand ? blk_bs(blk_by_legacy_dinfo(nand)) : NULL,\ns->manf_id, s->chip_id);", "memory_region_init_io(&s->iomem, OBJECT(s), &sl_ops, s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
19,333
void kbd_mouse_event(int dx, int dy, int dz, int buttons_state) { QEMUPutMouseEntry *entry; QEMUPutMouseEvent *mouse_event; void *mouse_event_opaque; int width, height; if (!runstate_is_running()) { return; } if (QTAILQ_EMPTY(&mouse_handlers)) { return; } ...
false
qemu
ad02b96ad86baf6dd72a43b04876b2d6ea957112
void kbd_mouse_event(int dx, int dy, int dz, int buttons_state) { QEMUPutMouseEntry *entry; QEMUPutMouseEvent *mouse_event; void *mouse_event_opaque; int width, height; if (!runstate_is_running()) { return; } if (QTAILQ_EMPTY(&mouse_handlers)) { return; } ...
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0, int VAR_1, int VAR_2, int VAR_3) { QEMUPutMouseEntry *entry; QEMUPutMouseEvent *mouse_event; void *VAR_4; int VAR_5, VAR_6; if (!runstate_is_running()) { return; } if (QTAILQ_EMPTY(&mouse_handlers)) { return; } entry = QTAILQ_FIR...
[ "void FUNC_0(int VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "QEMUPutMouseEntry *entry;", "QEMUPutMouseEvent *mouse_event;", "void *VAR_4;", "int VAR_5, VAR_6;", "if (!runstate_is_running()) {", "return;", "}", "if (QTAILQ_EMPTY(&mouse_handlers)) {", "return;", "}", "entry = QTAILQ_FIRST(&mou...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
19,334
static int vmdvideo_decode_init(AVCodecContext *avctx) { VmdVideoContext *s = avctx->priv_data; int i; unsigned int *palette32; int palette_index = 0; unsigned char r, g, b; unsigned char *vmd_header; unsigned char *raw_palette; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_...
false
FFmpeg
32c3047cac9294bb56d23c89a40a22409db5cc70
static int vmdvideo_decode_init(AVCodecContext *avctx) { VmdVideoContext *s = avctx->priv_data; int i; unsigned int *palette32; int palette_index = 0; unsigned char r, g, b; unsigned char *vmd_header; unsigned char *raw_palette; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { VmdVideoContext *s = VAR_0->priv_data; int VAR_1; unsigned int *VAR_2; int VAR_3 = 0; unsigned char VAR_4, VAR_5, VAR_6; unsigned char *VAR_7; unsigned char *VAR_8; s->VAR_0 = VAR_0; VAR_0->pix_fmt = PIX_FMT_PAL8; dsputil_in...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "VmdVideoContext *s = VAR_0->priv_data;", "int VAR_1;", "unsigned int *VAR_2;", "int VAR_3 = 0;", "unsigned char VAR_4, VAR_5, VAR_6;", "unsigned char *VAR_7;", "unsigned char *VAR_8;", "s->VAR_0 = VAR_0;", "VAR_0->pix_fmt = PIX_FMT_PAL8;", "dsputil...
[ 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49, 51 ...
19,335
static int mmap_frag(abi_ulong real_start, abi_ulong start, abi_ulong end, int prot, int flags, int fd, abi_ulong offset) { abi_ulong real_end, addr; void *host_start; int prot1, prot_new; real_end = real_start + qemu_host_page_size; host_start = g...
false
qemu
ee636500d6eab44b83f09cb730b67226b70423b1
static int mmap_frag(abi_ulong real_start, abi_ulong start, abi_ulong end, int prot, int flags, int fd, abi_ulong offset) { abi_ulong real_end, addr; void *host_start; int prot1, prot_new; real_end = real_start + qemu_host_page_size; host_start = g...
{ "code": [], "line_no": [] }
static int FUNC_0(abi_ulong VAR_0, abi_ulong VAR_1, abi_ulong VAR_2, int VAR_3, int VAR_4, int VAR_5, abi_ulong VAR_6) { abi_ulong real_end, addr; void *VAR_7; int VAR_8, VAR_9; real_end = VAR_0 + qemu_host_page_size; VAR_7 = g2h(VAR_0); ...
[ "static int FUNC_0(abi_ulong VAR_0,\nabi_ulong VAR_1, abi_ulong VAR_2,\nint VAR_3, int VAR_4, int VAR_5, abi_ulong VAR_6)\n{", "abi_ulong real_end, addr;", "void *VAR_7;", "int VAR_8, VAR_9;", "real_end = VAR_0 + qemu_host_page_size;", "VAR_7 = g2h(VAR_0);", "VAR_8 = 0;", "for(addr = VAR_0; addr < rea...
[ 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [...
19,336
int qcow2_check_metadata_overlap(BlockDriverState *bs, int ign, int64_t offset, int64_t size) { BDRVQcowState *s = bs->opaque; int chk = QCOW2_OL_DEFAULT & ~ign; int i, j; if (!size) { return 0; } if (chk & QCOW2_OL_MAIN_HEADER) { if...
false
qemu
3e3553905cfc814d59de6d1a634c3a991b2a9257
int qcow2_check_metadata_overlap(BlockDriverState *bs, int ign, int64_t offset, int64_t size) { BDRVQcowState *s = bs->opaque; int chk = QCOW2_OL_DEFAULT & ~ign; int i, j; if (!size) { return 0; } if (chk & QCOW2_OL_MAIN_HEADER) { if...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, int VAR_1, int64_t VAR_2, int64_t VAR_3) { BDRVQcowState *s = VAR_0->opaque; int VAR_4 = QCOW2_OL_DEFAULT & ~VAR_1; int VAR_5, VAR_6; if (!VAR_3) { return 0; } if (VAR_4 & QCOW2_OL_MAIN_HEADER) { i...
[ "int FUNC_0(BlockDriverState *VAR_0, int VAR_1, int64_t VAR_2,\nint64_t VAR_3)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_4 = QCOW2_OL_DEFAULT & ~VAR_1;", "int VAR_5, VAR_6;", "if (!VAR_3) {", "return 0;", "}", "if (VAR_4 & QCOW2_OL_MAIN_HEADER) {", "if (VAR_2 < s->cluster_size) {", "retur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
19,337
void tb_phys_invalidate(TranslationBlock *tb, tb_page_addr_t page_addr) { CPUState *cpu; PageDesc *p; uint32_t h; tb_page_addr_t phys_pc; assert_tb_locked(); atomic_set(&tb->invalid, true); /* remove the TB from the hash list */ phys_pc = tb->page_addr[0] + (tb->pc & ~TARG...
false
qemu
84f1c148da2b35fbb5a436597872765257e8914e
void tb_phys_invalidate(TranslationBlock *tb, tb_page_addr_t page_addr) { CPUState *cpu; PageDesc *p; uint32_t h; tb_page_addr_t phys_pc; assert_tb_locked(); atomic_set(&tb->invalid, true); phys_pc = tb->page_addr[0] + (tb->pc & ~TARGET_PAGE_MASK); h = tb_hash_func(p...
{ "code": [], "line_no": [] }
void FUNC_0(TranslationBlock *VAR_0, tb_page_addr_t VAR_1) { CPUState *cpu; PageDesc *p; uint32_t h; tb_page_addr_t phys_pc; assert_tb_locked(); atomic_set(&VAR_0->invalid, true); phys_pc = VAR_0->VAR_1[0] + (VAR_0->pc & ~TARGET_PAGE_MASK); h = tb_hash_func(phys_pc, ...
[ "void FUNC_0(TranslationBlock *VAR_0, tb_page_addr_t VAR_1)\n{", "CPUState *cpu;", "PageDesc *p;", "uint32_t h;", "tb_page_addr_t phys_pc;", "assert_tb_locked();", "atomic_set(&VAR_0->invalid, true);", "phys_pc = VAR_0->VAR_1[0] + (VAR_0->pc & ~TARGET_PAGE_MASK);", "h = tb_hash_func(phys_pc, VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
19,338
int nbd_client_co_flush(BlockDriverState *bs) { NbdClientSession *client = nbd_get_client_session(bs); struct nbd_request request = { .type = NBD_CMD_FLUSH }; struct nbd_reply reply; ssize_t ret; if (!(client->nbdflags & NBD_FLAG_SEND_FLUSH)) { return 0; } if (client->nb...
false
qemu
a89ef0c357abfbf1f76e2d7418fe3c880e0364bd
int nbd_client_co_flush(BlockDriverState *bs) { NbdClientSession *client = nbd_get_client_session(bs); struct nbd_request request = { .type = NBD_CMD_FLUSH }; struct nbd_reply reply; ssize_t ret; if (!(client->nbdflags & NBD_FLAG_SEND_FLUSH)) { return 0; } if (client->nb...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0) { NbdClientSession *client = nbd_get_client_session(VAR_0); struct nbd_request VAR_1 = { .type = NBD_CMD_FLUSH }; struct nbd_reply VAR_2; ssize_t ret; if (!(client->nbdflags & NBD_FLAG_SEND_FLUSH)) { return 0; } if (client->nbdflags & ...
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "NbdClientSession *client = nbd_get_client_session(VAR_0);", "struct nbd_request VAR_1 = { .type = NBD_CMD_FLUSH };", "struct nbd_reply VAR_2;", "ssize_t ret;", "if (!(client->nbdflags & NBD_FLAG_SEND_FLUSH)) {", "return 0;", "}", "if (client->nbdflags & NBD...
[ 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 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
19,339
void *colo_process_incoming_thread(void *opaque) { MigrationIncomingState *mis = opaque; migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE, MIGRATION_STATUS_COLO); mis->to_src_file = qemu_file_get_return_path(mis->from_src_file); if (!mis->to_src_file) { err...
false
qemu
4f97558e100f66f953ba7576b0ced146e6846997
void *colo_process_incoming_thread(void *opaque) { MigrationIncomingState *mis = opaque; migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE, MIGRATION_STATUS_COLO); mis->to_src_file = qemu_file_get_return_path(mis->from_src_file); if (!mis->to_src_file) { err...
{ "code": [], "line_no": [] }
void *FUNC_0(void *VAR_0) { MigrationIncomingState *mis = VAR_0; migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE, MIGRATION_STATUS_COLO); mis->to_src_file = qemu_file_get_return_path(mis->from_src_file); if (!mis->to_src_file) { error_report("COLO incoming...
[ "void *FUNC_0(void *VAR_0)\n{", "MigrationIncomingState *mis = VAR_0;", "migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE,\nMIGRATION_STATUS_COLO);", "mis->to_src_file = qemu_file_get_return_path(mis->from_src_file);", "if (!mis->to_src_file) {", "error_report(\"COLO incoming thread: Open QEMUFile t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 37 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ] ]
19,340
static int v9fs_receive_status(V9fsProxy *proxy, struct iovec *reply, int *status) { int retval; ProxyHeader header; *status = 0; reply->iov_len = 0; retval = socket_read(proxy->sockfd, reply->iov_base, PROXY_HDR_SZ); if (retval < 0) { return ret...
false
qemu
494a8ebe713055d3946183f4b395f85a18b43e9e
static int v9fs_receive_status(V9fsProxy *proxy, struct iovec *reply, int *status) { int retval; ProxyHeader header; *status = 0; reply->iov_len = 0; retval = socket_read(proxy->sockfd, reply->iov_base, PROXY_HDR_SZ); if (retval < 0) { return ret...
{ "code": [], "line_no": [] }
static int FUNC_0(V9fsProxy *VAR_0, struct iovec *VAR_1, int *VAR_2) { int VAR_3; ProxyHeader header; *VAR_2 = 0; VAR_1->iov_len = 0; VAR_3 = socket_read(VAR_0->sockfd, VAR_1->iov_base, PROXY_HDR_SZ); if (VAR_3 < 0) { return VAR_3; } VA...
[ "static int FUNC_0(V9fsProxy *VAR_0,\nstruct iovec *VAR_1, int *VAR_2)\n{", "int VAR_3;", "ProxyHeader header;", "*VAR_2 = 0;", "VAR_1->iov_len = 0;", "VAR_3 = socket_read(VAR_0->sockfd, VAR_1->iov_base, PROXY_HDR_SZ);", "if (VAR_3 < 0) {", "return VAR_3;", "}", "VAR_1->iov_len = PROXY_HDR_SZ;", ...
[ 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 ...
19,341
static int qemu_peek_byte(QEMUFile *f) { if (f->is_write) abort(); if (f->buf_index >= f->buf_size) { qemu_fill_buffer(f); if (f->buf_index >= f->buf_size) return 0; } return f->buf[f->buf_index]; }
false
qemu
b9ce1454e14ec918acb90d899ce7724f69682f45
static int qemu_peek_byte(QEMUFile *f) { if (f->is_write) abort(); if (f->buf_index >= f->buf_size) { qemu_fill_buffer(f); if (f->buf_index >= f->buf_size) return 0; } return f->buf[f->buf_index]; }
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0) { if (VAR_0->is_write) abort(); if (VAR_0->buf_index >= VAR_0->buf_size) { qemu_fill_buffer(VAR_0); if (VAR_0->buf_index >= VAR_0->buf_size) return 0; } return VAR_0->buf[VAR_0->buf_index]; }
[ "static int FUNC_0(QEMUFile *VAR_0)\n{", "if (VAR_0->is_write)\nabort();", "if (VAR_0->buf_index >= VAR_0->buf_size) {", "qemu_fill_buffer(VAR_0);", "if (VAR_0->buf_index >= VAR_0->buf_size)\nreturn 0;", "}", "return VAR_0->buf[VAR_0->buf_index];", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
19,342
static void kvm_fixup_page_sizes(PowerPCCPU *cpu) { static struct kvm_ppc_smmu_info smmu_info; static bool has_smmu_info; CPUPPCState *env = &cpu->env; long rampagesize; int iq, ik, jq, jk; /* We only handle page sizes for 64-bit server guests for now */ if (!(env->mmu_model & POWE...
false
qemu
08215d8fd8ca15425401adc9e01361cbc6882402
static void kvm_fixup_page_sizes(PowerPCCPU *cpu) { static struct kvm_ppc_smmu_info smmu_info; static bool has_smmu_info; CPUPPCState *env = &cpu->env; long rampagesize; int iq, ik, jq, jk; if (!(env->mmu_model & POWERPC_MMU_64)) { return; } if (!has_smm...
{ "code": [], "line_no": [] }
static void FUNC_0(PowerPCCPU *VAR_0) { static struct kvm_ppc_smmu_info VAR_1; static bool VAR_2; CPUPPCState *env = &VAR_0->env; long VAR_3; int VAR_4, VAR_5, VAR_6, VAR_7; if (!(env->mmu_model & POWERPC_MMU_64)) { return; } if (!VAR_2) { kvm_g...
[ "static void FUNC_0(PowerPCCPU *VAR_0)\n{", "static struct kvm_ppc_smmu_info VAR_1;", "static bool VAR_2;", "CPUPPCState *env = &VAR_0->env;", "long VAR_3;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "if (!(env->mmu_model & POWERPC_MMU_64)) {", "return;", "}", "if (!VAR_2) {", "kvm_get_smmu_info(VAR_0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 57, 59 ], [...
19,343
static unsigned long *iscsi_allocationmap_init(IscsiLun *iscsilun) { return bitmap_try_new(DIV_ROUND_UP(sector_lun2qemu(iscsilun->num_blocks, iscsilun), iscsilun->cluster_sectors)); }
false
qemu
e1123a3b40a1a9a625a29c8ed4debb7e206ea690
static unsigned long *iscsi_allocationmap_init(IscsiLun *iscsilun) { return bitmap_try_new(DIV_ROUND_UP(sector_lun2qemu(iscsilun->num_blocks, iscsilun), iscsilun->cluster_sectors)); }
{ "code": [], "line_no": [] }
static unsigned long *FUNC_0(IscsiLun *VAR_0) { return bitmap_try_new(DIV_ROUND_UP(sector_lun2qemu(VAR_0->num_blocks, VAR_0), VAR_0->cluster_sectors)); }
[ "static unsigned long *FUNC_0(IscsiLun *VAR_0)\n{", "return bitmap_try_new(DIV_ROUND_UP(sector_lun2qemu(VAR_0->num_blocks,\nVAR_0),\nVAR_0->cluster_sectors));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11 ] ]
19,344
static int iscsi_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) { IscsiLun *iscsilun = bs->opaque; bdi->unallocated_blocks_are_zero = !!iscsilun->lbprz; bdi->can_write_zeroes_with_unmap = iscsilun->lbprz && iscsilun->lbp.lbpws; /* Guess the internal cluster (page) size of the iscsi target by ...
false
qemu
b03c38057b7ac4ffb60fa98a26dd4c8d5fa9c54c
static int iscsi_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) { IscsiLun *iscsilun = bs->opaque; bdi->unallocated_blocks_are_zero = !!iscsilun->lbprz; bdi->can_write_zeroes_with_unmap = iscsilun->lbprz && iscsilun->lbp.lbpws; if (iscsilun->bl.opt_unmap_gran * iscsilun->block_size ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BlockDriverInfo *VAR_1) { IscsiLun *iscsilun = VAR_0->opaque; VAR_1->unallocated_blocks_are_zero = !!iscsilun->lbprz; VAR_1->can_write_zeroes_with_unmap = iscsilun->lbprz && iscsilun->lbp.lbpws; if (iscsilun->bl.opt_unmap_gran * iscsilun->block_s...
[ "static int FUNC_0(BlockDriverState *VAR_0, BlockDriverInfo *VAR_1)\n{", "IscsiLun *iscsilun = VAR_0->opaque;", "VAR_1->unallocated_blocks_are_zero = !!iscsilun->lbprz;", "VAR_1->can_write_zeroes_with_unmap = iscsilun->lbprz && iscsilun->lbp.lbpws;", "if (iscsilun->bl.opt_unmap_gran * iscsilun->block_size >...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
19,345
static void set_port(struct sockaddr_storage *ss, int port) { sockaddr_union ssu = (sockaddr_union){.storage = *ss}; if (ss->ss_family == AF_INET) ssu.in.sin_port = htons(port); #if HAVE_STRUCT_SOCKADDR_IN6 else if (ss->ss_family == AF_INET6) ssu.in6.sin6_port = htons(port); #endif ...
false
FFmpeg
474d858fd9551b45a17e1f3a4322de1a88e749b9
static void set_port(struct sockaddr_storage *ss, int port) { sockaddr_union ssu = (sockaddr_union){.storage = *ss}; if (ss->ss_family == AF_INET) ssu.in.sin_port = htons(port); #if HAVE_STRUCT_SOCKADDR_IN6 else if (ss->ss_family == AF_INET6) ssu.in6.sin6_port = htons(port); #endif ...
{ "code": [], "line_no": [] }
static void FUNC_0(struct sockaddr_storage *VAR_0, int VAR_1) { sockaddr_union ssu = (sockaddr_union){.storage = *VAR_0}; if (VAR_0->ss_family == AF_INET) ssu.in.sin_port = htons(VAR_1); #if HAVE_STRUCT_SOCKADDR_IN6 else if (VAR_0->ss_family == AF_INET6) ssu.in6.sin6_port = htons(VAR_...
[ "static void FUNC_0(struct sockaddr_storage *VAR_0, int VAR_1)\n{", "sockaddr_union ssu = (sockaddr_union){.storage = *VAR_0};", "if (VAR_0->ss_family == AF_INET)\nssu.in.sin_port = htons(VAR_1);", "#if HAVE_STRUCT_SOCKADDR_IN6\nelse if (VAR_0->ss_family == AF_INET6)\nssu.in6.sin6_port = htons(VAR_1);", "#e...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13, 15 ], [ 17, 19 ], [ 21 ] ]
19,346
void unregister_savevm(const char *idstr, void *opaque) { SaveStateEntry *se, *new_se; TAILQ_FOREACH_SAFE(se, &savevm_handlers, entry, new_se) { if (strcmp(se->idstr, idstr) == 0 && se->opaque == opaque) { TAILQ_REMOVE(&savevm_handlers, se, entry); qemu_free(se); ...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void unregister_savevm(const char *idstr, void *opaque) { SaveStateEntry *se, *new_se; TAILQ_FOREACH_SAFE(se, &savevm_handlers, entry, new_se) { if (strcmp(se->idstr, idstr) == 0 && se->opaque == opaque) { TAILQ_REMOVE(&savevm_handlers, se, entry); qemu_free(se); ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, void *VAR_1) { SaveStateEntry *se, *new_se; TAILQ_FOREACH_SAFE(se, &savevm_handlers, entry, new_se) { if (strcmp(se->VAR_0, VAR_0) == 0 && se->VAR_1 == VAR_1) { TAILQ_REMOVE(&savevm_handlers, se, entry); qemu_free(se); } } }
[ "void FUNC_0(const char *VAR_0, void *VAR_1)\n{", "SaveStateEntry *se, *new_se;", "TAILQ_FOREACH_SAFE(se, &savevm_handlers, entry, new_se) {", "if (strcmp(se->VAR_0, VAR_0) == 0 && se->VAR_1 == VAR_1) {", "TAILQ_REMOVE(&savevm_handlers, se, entry);", "qemu_free(se);", "}", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
19,347
static int virtio_net_handle_offloads(VirtIONet *n, uint8_t cmd, struct iovec *iov, unsigned int iov_cnt) { VirtIODevice *vdev = VIRTIO_DEVICE(n); uint64_t offloads; size_t s; if (!((1 << VIRTIO_NET_F_CTRL_GUEST_OFFLOADS) & vdev->guest_features)) { r...
false
qemu
ef546f1275f6563e8934dd5e338d29d9f9909ca6
static int virtio_net_handle_offloads(VirtIONet *n, uint8_t cmd, struct iovec *iov, unsigned int iov_cnt) { VirtIODevice *vdev = VIRTIO_DEVICE(n); uint64_t offloads; size_t s; if (!((1 << VIRTIO_NET_F_CTRL_GUEST_OFFLOADS) & vdev->guest_features)) { r...
{ "code": [], "line_no": [] }
static int FUNC_0(VirtIONet *VAR_0, uint8_t VAR_1, struct iovec *VAR_2, unsigned int VAR_3) { VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); uint64_t offloads; size_t s; if (!((1 << VIRTIO_NET_F_CTRL_GUEST_OFFLOADS) & vdev->guest_features)) { return VIRT...
[ "static int FUNC_0(VirtIONet *VAR_0, uint8_t VAR_1,\nstruct iovec *VAR_2, unsigned int VAR_3)\n{", "VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);", "uint64_t offloads;", "size_t s;", "if (!((1 << VIRTIO_NET_F_CTRL_GUEST_OFFLOADS) & vdev->guest_features)) {", "return VIRTIO_NET_ERR;", "}", "s = iov_to_buf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
19,348
static int coroutine_fn sd_co_flush_to_disk(BlockDriverState *bs) { BDRVSheepdogState *s = bs->opaque; SheepdogObjReq hdr = { 0 }; SheepdogObjRsp *rsp = (SheepdogObjRsp *)&hdr; SheepdogInode *inode = &s->inode; int ret; unsigned int wlen = 0, rlen = 0; if (s->cache_flags != SD_FLAG...
false
qemu
477830727821e4bc337f4ac1fd222ffe0b900e1a
static int coroutine_fn sd_co_flush_to_disk(BlockDriverState *bs) { BDRVSheepdogState *s = bs->opaque; SheepdogObjReq hdr = { 0 }; SheepdogObjRsp *rsp = (SheepdogObjRsp *)&hdr; SheepdogInode *inode = &s->inode; int ret; unsigned int wlen = 0, rlen = 0; if (s->cache_flags != SD_FLAG...
{ "code": [], "line_no": [] }
static int VAR_0 sd_co_flush_to_disk(BlockDriverState *bs) { BDRVSheepdogState *s = bs->opaque; SheepdogObjReq hdr = { 0 }; SheepdogObjRsp *rsp = (SheepdogObjRsp *)&hdr; SheepdogInode *inode = &s->inode; int ret; unsigned int wlen = 0, rlen = 0; if (s->cache_flags != SD_FLAG_CMD_CA...
[ "static int VAR_0 sd_co_flush_to_disk(BlockDriverState *bs)\n{", "BDRVSheepdogState *s = bs->opaque;", "SheepdogObjReq hdr = { 0 };", "SheepdogObjRsp *rsp = (SheepdogObjRsp *)&hdr;", "SheepdogInode *inode = &s->inode;", "int ret;", "unsigned int wlen = 0, rlen = 0;", "if (s->cache_flags != SD_FLAG_CMD...
[ 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ...
19,349
int tlb_set_page_exec(CPUState *env, target_ulong vaddr, target_phys_addr_t paddr, int prot, int mmu_idx, int is_softmmu) { PhysPageDesc *p; unsigned long pd; unsigned int index; target_ulong address; target_ulong code_address; target_phys_add...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
int tlb_set_page_exec(CPUState *env, target_ulong vaddr, target_phys_addr_t paddr, int prot, int mmu_idx, int is_softmmu) { PhysPageDesc *p; unsigned long pd; unsigned int index; target_ulong address; target_ulong code_address; target_phys_add...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0, target_ulong VAR_1, target_phys_addr_t VAR_2, int VAR_3, int VAR_4, int VAR_5) { PhysPageDesc *p; unsigned long VAR_6; unsigned int VAR_7; target_ulong address; target_ulong code_address; target_phys_addr_t addend; ...
[ "int FUNC_0(CPUState *VAR_0, target_ulong VAR_1,\ntarget_phys_addr_t VAR_2, int VAR_3,\nint VAR_4, int VAR_5)\n{", "PhysPageDesc *p;", "unsigned long VAR_6;", "unsigned int VAR_7;", "target_ulong address;", "target_ulong code_address;", "target_phys_addr_t addend;", "int VAR_8;", "CPUTLBEntry *te;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45, 47 ...
19,350
int net_init_tap(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan) { TAPState *s; int fd, vnet_hdr = 0; if (qemu_opt_get(opts, "fd")) { if (qemu_opt_get(opts, "ifname") || qemu_opt_get(opts, "script") || qemu_opt_get(opts, "downscript") || ...
false
qemu
62112d181ca33fea976100c4335dfc3e2f727e6c
int net_init_tap(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan) { TAPState *s; int fd, vnet_hdr = 0; if (qemu_opt_get(opts, "fd")) { if (qemu_opt_get(opts, "ifname") || qemu_opt_get(opts, "script") || qemu_opt_get(opts, "downscript") || ...
{ "code": [], "line_no": [] }
int FUNC_0(QemuOpts *VAR_0, Monitor *VAR_1, const char *VAR_2, VLANState *VAR_3) { TAPState *s; int VAR_4, VAR_5 = 0; if (qemu_opt_get(VAR_0, "VAR_4")) { if (qemu_opt_get(VAR_0, "VAR_6") || qemu_opt_get(VAR_0, "VAR_7") || qemu_opt_get(VAR_0, "VAR_8") || ...
[ "int FUNC_0(QemuOpts *VAR_0, Monitor *VAR_1, const char *VAR_2, VLANState *VAR_3)\n{", "TAPState *s;", "int VAR_4, VAR_5 = 0;", "if (qemu_opt_get(VAR_0, \"VAR_4\")) {", "if (qemu_opt_get(VAR_0, \"VAR_6\") ||\nqemu_opt_get(VAR_0, \"VAR_7\") ||\nqemu_opt_get(VAR_0, \"VAR_8\") ||\nqemu_opt_get(VAR_0, \"VAR_5\"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
19,351
uint16_t acpi_pm1_evt_get_sts(ACPIREGS *ar) { int64_t d = acpi_pm_tmr_get_clock(); if (d >= ar->tmr.overflow_time) { ar->pm1.evt.sts |= ACPI_BITMASK_TIMER_STATUS; } return ar->pm1.evt.sts; }
true
qemu
3ef0eab178e5120a0e1c079d163d5c71689d9b71
uint16_t acpi_pm1_evt_get_sts(ACPIREGS *ar) { int64_t d = acpi_pm_tmr_get_clock(); if (d >= ar->tmr.overflow_time) { ar->pm1.evt.sts |= ACPI_BITMASK_TIMER_STATUS; } return ar->pm1.evt.sts; }
{ "code": [ " int64_t d = acpi_pm_tmr_get_clock();", " if (d >= ar->tmr.overflow_time) {" ], "line_no": [ 5, 7 ] }
uint16_t FUNC_0(ACPIREGS *ar) { int64_t d = acpi_pm_tmr_get_clock(); if (d >= ar->tmr.overflow_time) { ar->pm1.evt.sts |= ACPI_BITMASK_TIMER_STATUS; } return ar->pm1.evt.sts; }
[ "uint16_t FUNC_0(ACPIREGS *ar)\n{", "int64_t d = acpi_pm_tmr_get_clock();", "if (d >= ar->tmr.overflow_time) {", "ar->pm1.evt.sts |= ACPI_BITMASK_TIMER_STATUS;", "}", "return ar->pm1.evt.sts;", "}" ]
[ 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
19,352
static void store_slice16_c(uint16_t *dst, const uint16_t *src, int dst_linesize, int src_linesize, int width, int height, int log2_scale, const uint8_t dither[8][8]) { int y, x; #define STORE16(pos) do { ...
true
FFmpeg
1ac5abb1d062b6ca983d494068bb9fd30390a941
static void store_slice16_c(uint16_t *dst, const uint16_t *src, int dst_linesize, int src_linesize, int width, int height, int log2_scale, const uint8_t dither[8][8]) { int y, x; #define STORE16(pos) do { ...
{ "code": [ "static void store_slice16_c(uint16_t *dst, const uint16_t *src,", " const uint8_t dither[8][8])", " if (temp & 0x400) \\" ], "line_no": [ 1, 7, 19 ] }
static void FUNC_0(uint16_t *VAR_0, const uint16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, const uint8_t VAR_7[8][8]) { int VAR_8, VAR_9; #define STORE16(pos) do { ...
[ "static void FUNC_0(uint16_t *VAR_0, const uint16_t *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6,\nconst uint8_t VAR_7[8][8])\n{", "int VAR_8, VAR_9;", "#define STORE16(pos) do { \\", "temp = ((VAR_1[VAR_9 + VAR_8*VAR_3 + pos] << VAR_6) + (d...
[ 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
19,354
void mips_cpu_unassigned_access(CPUState *cs, hwaddr addr, bool is_write, bool is_exec, int unused, unsigned size) { MIPSCPU *cpu = MIPS_CPU(cs); CPUMIPSState *env = &cpu->env; if (is_exec) { helper_raise_exception(env, EXCP_IBE); }...
true
qemu
eddedd546a68f6ac864b71d50dd8d39b939b724b
void mips_cpu_unassigned_access(CPUState *cs, hwaddr addr, bool is_write, bool is_exec, int unused, unsigned size) { MIPSCPU *cpu = MIPS_CPU(cs); CPUMIPSState *env = &cpu->env; if (is_exec) { helper_raise_exception(env, EXCP_IBE); }...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, hwaddr VAR_1, bool VAR_2, bool VAR_3, int VAR_4, unsigned VAR_5) { MIPSCPU *cpu = MIPS_CPU(VAR_0); CPUMIPSState *env = &cpu->env; if (VAR_3) { helper_raise_exception(env, EXCP_IBE); } else { help...
[ "void FUNC_0(CPUState *VAR_0, hwaddr VAR_1,\nbool VAR_2, bool VAR_3, int VAR_4,\nunsigned VAR_5)\n{", "MIPSCPU *cpu = MIPS_CPU(VAR_0);", "CPUMIPSState *env = &cpu->env;", "if (VAR_3) {", "helper_raise_exception(env, EXCP_IBE);", "} else {", "helper_raise_exception(env, EXCP_DBE);" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ] ]
19,355
void pxa27x_register_keypad(struct pxa2xx_keypad_s *kp, struct keymap *map, int size) { kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size); if(!map || size < 0x80) { fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__); exit(-1); } kp-...
true
qemu
4f8eb8daebd72bdc214c63a3b2577f95bbadb27d
void pxa27x_register_keypad(struct pxa2xx_keypad_s *kp, struct keymap *map, int size) { kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size); if(!map || size < 0x80) { fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__); exit(-1); } kp-...
{ "code": [ " kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size);" ], "line_no": [ 7 ] }
void FUNC_0(struct pxa2xx_keypad_s *VAR_0, struct keymap *VAR_1, int VAR_2) { VAR_0->VAR_1 = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * VAR_2); if(!VAR_1 || VAR_2 < 0x80) { fprintf(stderr, "%s - No PXA keypad VAR_1 defined\n", __FUNCTION__); exit(-1); } VA...
[ "void FUNC_0(struct pxa2xx_keypad_s *VAR_0, struct keymap *VAR_1,\nint VAR_2)\n{", "VAR_0->VAR_1 = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * VAR_2);", "if(!VAR_1 || VAR_2 < 0x80) {", "fprintf(stderr, \"%s - No PXA keypad VAR_1 defined\\n\", __FUNCTION__);", "exit(-1);", "}", "VAR_0->VAR_1 =...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
19,356
static void virtio_rng_initfn(Object *obj) { VirtIORNG *vrng = VIRTIO_RNG(obj); object_property_add_link(obj, "rng", TYPE_RNG_BACKEND, (Object **)&vrng->conf.rng, NULL); }
true
qemu
9561fda8d90e176bef598ba87c42a1bd6ad03ef7
static void virtio_rng_initfn(Object *obj) { VirtIORNG *vrng = VIRTIO_RNG(obj); object_property_add_link(obj, "rng", TYPE_RNG_BACKEND, (Object **)&vrng->conf.rng, NULL); }
{ "code": [ " (Object **)&vrng->conf.rng, NULL);" ], "line_no": [ 11 ] }
static void FUNC_0(Object *VAR_0) { VirtIORNG *vrng = VIRTIO_RNG(VAR_0); object_property_add_link(VAR_0, "rng", TYPE_RNG_BACKEND, (Object **)&vrng->conf.rng, NULL); }
[ "static void FUNC_0(Object *VAR_0)\n{", "VirtIORNG *vrng = VIRTIO_RNG(VAR_0);", "object_property_add_link(VAR_0, \"rng\", TYPE_RNG_BACKEND,\n(Object **)&vrng->conf.rng, NULL);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ] ]
19,358
print_execve(const struct syscallname *name, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6) { abi_ulong arg_ptr_addr; char *s; if (!(s = lock_user_string(arg1))) return; gemu_log("%s(\"%s\",{", name->name, s); un...
true
qemu
18c9a9c3c2698d71575d49c308db88f295ddffed
print_execve(const struct syscallname *name, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6) { abi_ulong arg_ptr_addr; char *s; if (!(s = lock_user_string(arg1))) return; gemu_log("%s(\"%s\",{", name->name, s); un...
{ "code": [ " abi_ulong *arg_ptr, arg_addr, s_addr;", " unlock_user(s, s_addr, 0);" ], "line_no": [ 27, 49 ] }
FUNC_0(const struct syscallname *VAR_0, abi_long VAR_1, abi_long VAR_2, abi_long VAR_3, abi_long VAR_4, abi_long VAR_5, abi_long VAR_6) { abi_ulong arg_ptr_addr; char *VAR_7; if (!(VAR_7 = lock_user_string(VAR_1))) return; gemu_log("%VAR_7(\"%VAR_7\",{", VAR_0...
[ "FUNC_0(const struct syscallname *VAR_0,\nabi_long VAR_1, abi_long VAR_2, abi_long VAR_3,\nabi_long VAR_4, abi_long VAR_5, abi_long VAR_6)\n{", "abi_ulong arg_ptr_addr;", "char *VAR_7;", "if (!(VAR_7 = lock_user_string(VAR_1)))\nreturn;", "gemu_log(\"%VAR_7(\\\"%VAR_7\\\",{\", VAR_0->VAR_0, VAR_7);", "unl...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
19,359
DECLARE_LOOP_FILTER(mmxext) DECLARE_LOOP_FILTER(sse2) DECLARE_LOOP_FILTER(ssse3) #endif #define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \ c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \ c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put_vp8_epel ## SIZE ## _v6_ ## OPT; \ c-...
false
FFmpeg
003243c3c2bdfa485eedbed593a0bb2feae66ab9
DECLARE_LOOP_FILTER(mmxext) DECLARE_LOOP_FILTER(sse2) DECLARE_LOOP_FILTER(ssse3) #endif #define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \ c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \ c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put_vp8_epel ## SIZE ## _v6_ ## OPT; \ c-...
{ "code": [], "line_no": [] }
DECLARE_LOOP_FILTER(mmxext) DECLARE_LOOP_FILTER(sse2) DECLARE_LOOP_FILTER(ssse3) #endif #define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \ c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \ c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put_vp8_epel ## SIZE ## _v6_ ## OPT; \ c-...
[ "DECLARE_LOOP_FILTER(mmxext)\nDECLARE_LOOP_FILTER(sse2)\nDECLARE_LOOP_FILTER(ssse3)\n#endif\n#define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \\\nc->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \\", "c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put_vp8_epel ## SIZE ## _v6_ ## OPT; \\", "c-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 9, 13, 15 ], [ 17 ], [ 19, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 61, 63...
19,360
void ff_pngdsp_init_x86(PNGDSPContext *dsp) { #if HAVE_YASM int flags = av_get_cpu_flags(); #if ARCH_X86_32 if (flags & AV_CPU_FLAG_MMX) dsp->add_bytes_l2 = ff_add_bytes_l2_mmx; #endif if (flags & AV_CPU_FLAG_MMXEXT) dsp->add_paeth_prediction = ff_add_png_paeth_prediction_...
false
FFmpeg
e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6
void ff_pngdsp_init_x86(PNGDSPContext *dsp) { #if HAVE_YASM int flags = av_get_cpu_flags(); #if ARCH_X86_32 if (flags & AV_CPU_FLAG_MMX) dsp->add_bytes_l2 = ff_add_bytes_l2_mmx; #endif if (flags & AV_CPU_FLAG_MMXEXT) dsp->add_paeth_prediction = ff_add_png_paeth_prediction_...
{ "code": [], "line_no": [] }
void FUNC_0(PNGDSPContext *VAR_0) { #if HAVE_YASM int flags = av_get_cpu_flags(); #if ARCH_X86_32 if (flags & AV_CPU_FLAG_MMX) VAR_0->add_bytes_l2 = ff_add_bytes_l2_mmx; #endif if (flags & AV_CPU_FLAG_MMXEXT) VAR_0->add_paeth_prediction = ff_add_png_paeth_prediction_mmx2; ...
[ "void FUNC_0(PNGDSPContext *VAR_0)\n{", "#if HAVE_YASM\nint flags = av_get_cpu_flags();", "#if ARCH_X86_32\nif (flags & AV_CPU_FLAG_MMX)\nVAR_0->add_bytes_l2 = ff_add_bytes_l2_mmx;", "#endif\nif (flags & AV_CPU_FLAG_MMXEXT)\nVAR_0->add_paeth_prediction = ff_add_png_paeth_prediction_mmx2;", "if (flag...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11, 13, 15 ], [ 17, 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ] ]
19,362
static int decode_plane(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, const uint8_t *data, int32_t data_size, int32_t strip_width) { Cell curr_cell; int num_vectors; /* each plane data starts with mc_vector_count...
true
FFmpeg
464ccb01447b91717cf580b870e636514701ce4f
static int decode_plane(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, const uint8_t *data, int32_t data_size, int32_t strip_width) { Cell curr_cell; int num_vectors; num_vectors = bytestream_get_le32(...
{ "code": [ " init_get_bits(&ctx->gb, &data[num_vectors * 2], data_size << 3);" ], "line_no": [ 27 ] }
static int FUNC_0(Indeo3DecodeContext *VAR_0, AVCodecContext *VAR_1, Plane *VAR_2, const uint8_t *VAR_3, int32_t VAR_4, int32_t VAR_5) { Cell curr_cell; int VAR_6; VAR_6 = bytestream_get_le32(&VAR_3); VAR_0->mc_v...
[ "static int FUNC_0(Indeo3DecodeContext *VAR_0, AVCodecContext *VAR_1,\nPlane *VAR_2, const uint8_t *VAR_3, int32_t VAR_4,\nint32_t VAR_5)\n{", "Cell curr_cell;", "int VAR_6;", "VAR_6 = bytestream_get_le32(&VAR_3);", "VAR_0->mc_vectors = VAR_6 ? VAR_3 : 0;", "init_get_bits(&VAR_0->g...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ] ]
19,363
static void qpci_pc_config_writel(QPCIBus *bus, int devfn, uint8_t offset, uint32_t value) { outl(0xcf8, (1 << 31) | (devfn << 8) | offset); outl(0xcfc, value); }
true
qemu
a879125b47c3ae554c01824f996a64a45a86556e
static void qpci_pc_config_writel(QPCIBus *bus, int devfn, uint8_t offset, uint32_t value) { outl(0xcf8, (1 << 31) | (devfn << 8) | offset); outl(0xcfc, value); }
{ "code": [ " outl(0xcf8, (1 << 31) | (devfn << 8) | offset);", " outl(0xcf8, (1 << 31) | (devfn << 8) | offset);", " outl(0xcf8, (1 << 31) | (devfn << 8) | offset);", " outl(0xcf8, (1 << 31) | (devfn << 8) | offset);", " outl(0xcf8, (1 << 31) | (devfn << 8) | offset);", " ou...
static void FUNC_0(QPCIBus *VAR_0, int VAR_1, uint8_t VAR_2, uint32_t VAR_3) { outl(0xcf8, (1 << 31) | (VAR_1 << 8) | VAR_2); outl(0xcfc, VAR_3); }
[ "static void FUNC_0(QPCIBus *VAR_0, int VAR_1, uint8_t VAR_2, uint32_t VAR_3)\n{", "outl(0xcf8, (1 << 31) | (VAR_1 << 8) | VAR_2);", "outl(0xcfc, VAR_3);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
19,364
static char *get_geokey_val(int key, int val) { char *ap; if (val == TIFF_GEO_KEY_UNDEFINED) return av_strdup("undefined"); if (val == TIFF_GEO_KEY_USER_DEFINED) return av_strdup("User-Defined"); #define RET_GEOKEY_VAL(TYPE, array)\ if (val >= TIFF_##TYPE##_OFFSET &&\ ...
true
FFmpeg
f28043d0a34aaf4ac7cf25bd0dddd868811c0ab2
static char *get_geokey_val(int key, int val) { char *ap; if (val == TIFF_GEO_KEY_UNDEFINED) return av_strdup("undefined"); if (val == TIFF_GEO_KEY_USER_DEFINED) return av_strdup("User-Defined"); #define RET_GEOKEY_VAL(TYPE, array)\ if (val >= TIFF_##TYPE##_OFFSET &&\ ...
{ "code": [ " return av_strdup(search_keyval(ff_tiff_proj_cs_type_codes, FF_ARRAY_ELEMS(ff_tiff_proj_cs_type_codes), val));", " return av_strdup(search_keyval(ff_tiff_projection_codes, FF_ARRAY_ELEMS(ff_tiff_projection_codes), val));" ], "line_no": [ 91, 97 ] }
static char *FUNC_0(int VAR_0, int VAR_1) { char *VAR_2; if (VAR_1 == TIFF_GEO_KEY_UNDEFINED) return av_strdup("undefined"); if (VAR_1 == TIFF_GEO_KEY_USER_DEFINED) return av_strdup("User-Defined"); #define RET_GEOKEY_VAL(TYPE, array)\ if (VAR_1 >= TIFF_##TYPE##_OFFSET &&\ ...
[ "static char *FUNC_0(int VAR_0, int VAR_1)\n{", "char *VAR_2;", "if (VAR_1 == TIFF_GEO_KEY_UNDEFINED)\nreturn av_strdup(\"undefined\");", "if (VAR_1 == TIFF_GEO_KEY_USER_DEFINED)\nreturn av_strdup(\"User-Defined\");", "#define RET_GEOKEY_VAL(TYPE, array)\\\nif (VAR_1 >= TIFF_##TYPE##_OFFSET &&\\\nVAR_1 - TI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 19, 21, 23, 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45, 47, 49 ], [ 51 ], [ 53, 55, 57 ], [ 59...
19,365
void ff_float_init_arm_vfp(DSPContext* c, AVCodecContext *avctx) { c->vector_fmul = vector_fmul_vfp; c->vector_fmul_reverse = vector_fmul_reverse_vfp; #ifdef HAVE_ARMV6 c->float_to_int16 = float_to_int16_vfp; #endif }
true
FFmpeg
28215b3700723da0c0beb93945702b6fb2b3596d
void ff_float_init_arm_vfp(DSPContext* c, AVCodecContext *avctx) { c->vector_fmul = vector_fmul_vfp; c->vector_fmul_reverse = vector_fmul_reverse_vfp; #ifdef HAVE_ARMV6 c->float_to_int16 = float_to_int16_vfp; #endif }
{ "code": [ "#ifdef HAVE_ARMV6\r", "#endif\r", "void ff_float_init_arm_vfp(DSPContext* c, AVCodecContext *avctx)\r", " c->vector_fmul = vector_fmul_vfp;\r", " c->vector_fmul_reverse = vector_fmul_reverse_vfp;\r", "#ifdef HAVE_ARMV6\r", " c->float_to_int16 = float_to_int16_vfp;\r",...
void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1) { VAR_0->vector_fmul = vector_fmul_vfp; VAR_0->vector_fmul_reverse = vector_fmul_reverse_vfp; #ifdef HAVE_ARMV6 VAR_0->float_to_int16 = float_to_int16_vfp; #endif }
[ "void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1)\n{", "VAR_0->vector_fmul = vector_fmul_vfp;", "VAR_0->vector_fmul_reverse = vector_fmul_reverse_vfp;", "#ifdef HAVE_ARMV6\nVAR_0->float_to_int16 = float_to_int16_vfp;", "#endif\n}" ]
[ 1, 1, 1, 1, 1 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ] ]
19,367
static inline int64_t get_sector_offset(BlockDriverState *bs, int64_t sector_num, int write) { BDRVVPCState *s = bs->opaque; uint64_t offset = sector_num * 512; uint64_t bitmap_offset, block_offset; uint32_t pagetable_index, pageentry_index; pagetable_index = offset / s->block_size; ...
true
qemu
078a458e077d6b0db262c4b05fee51d01de2d1d2
static inline int64_t get_sector_offset(BlockDriverState *bs, int64_t sector_num, int write) { BDRVVPCState *s = bs->opaque; uint64_t offset = sector_num * 512; uint64_t bitmap_offset, block_offset; uint32_t pagetable_index, pageentry_index; pagetable_index = offset / s->block_size; ...
{ "code": [ " bdrv_pwrite(bs->file, bitmap_offset, bitmap, s->bitmap_size);" ], "line_no": [ 55 ] }
static inline int64_t FUNC_0(BlockDriverState *bs, int64_t sector_num, int write) { BDRVVPCState *s = bs->opaque; uint64_t offset = sector_num * 512; uint64_t bitmap_offset, block_offset; uint32_t pagetable_index, pageentry_index; pagetable_index = offset / s->block_size; pageentry...
[ "static inline int64_t FUNC_0(BlockDriverState *bs,\nint64_t sector_num, int write)\n{", "BDRVVPCState *s = bs->opaque;", "uint64_t offset = sector_num * 512;", "uint64_t bitmap_offset, block_offset;", "uint32_t pagetable_index, pageentry_index;", "pagetable_index = offset / s->block_size;", "pageentry_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 71, 73, 75, 77 ], [...
19,368
static void coroutine_fn wait_for_overlapping_requests(BlockDriverState *bs, BdrvTrackedRequest *self, int64_t offset, unsigned int bytes) { BdrvTrackedRequest *req; int64_t cluster_offset; unsigned int cluster_bytes; bool retry; /* If we touch the same cluster it counts as an overl...
false
qemu
2dbafdc012d3ea81a97fec6226ca82d644539c9a
static void coroutine_fn wait_for_overlapping_requests(BlockDriverState *bs, BdrvTrackedRequest *self, int64_t offset, unsigned int bytes) { BdrvTrackedRequest *req; int64_t cluster_offset; unsigned int cluster_bytes; bool retry; round_bytes_to_clusters(bs, offset, b...
{ "code": [], "line_no": [] }
static void VAR_0 wait_for_overlapping_requests(BlockDriverState *bs, BdrvTrackedRequest *self, int64_t offset, unsigned int bytes) { BdrvTrackedRequest *req; int64_t cluster_offset; unsigned int cluster_bytes; bool retry; round_bytes_to_clusters(bs, offset, bytes, &...
[ "static void VAR_0 wait_for_overlapping_requests(BlockDriverState *bs,\nBdrvTrackedRequest *self, int64_t offset, unsigned int bytes)\n{", "BdrvTrackedRequest *req;", "int64_t cluster_offset;", "unsigned int cluster_bytes;", "bool retry;", "round_bytes_to_clusters(bs, offset, bytes, &cluster_offset, &clus...
[ 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 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [...
19,369
static void disas_comp_b_imm(DisasContext *s, uint32_t insn) { unsigned int sf, op, rt; uint64_t addr; int label_match; TCGv_i64 tcg_cmp; sf = extract32(insn, 31, 1); op = extract32(insn, 24, 1); /* 0: CBZ; 1: CBNZ */ rt = extract32(insn, 0, 5); addr = s->pc + sextract32(insn,...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static void disas_comp_b_imm(DisasContext *s, uint32_t insn) { unsigned int sf, op, rt; uint64_t addr; int label_match; TCGv_i64 tcg_cmp; sf = extract32(insn, 31, 1); op = extract32(insn, 24, 1); rt = extract32(insn, 0, 5); addr = s->pc + sextract32(insn, 5, 19) * 4 - 4; ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1) { unsigned int VAR_2, VAR_3, VAR_4; uint64_t addr; int VAR_5; TCGv_i64 tcg_cmp; VAR_2 = extract32(VAR_1, 31, 1); VAR_3 = extract32(VAR_1, 24, 1); VAR_4 = extract32(VAR_1, 0, 5); addr = VAR_0->pc + sextract32(VAR_1, 5, 19...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{", "unsigned int VAR_2, VAR_3, VAR_4;", "uint64_t addr;", "int VAR_5;", "TCGv_i64 tcg_cmp;", "VAR_2 = extract32(VAR_1, 31, 1);", "VAR_3 = extract32(VAR_1, 24, 1);", "VAR_4 = extract32(VAR_1, 0, 5);", "addr = VAR_0->pc + sextract32(VAR_1, 5, ...
[ 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 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
19,370
static uint64_t integratorcm_read(void *opaque, target_phys_addr_t offset, unsigned size) { integratorcm_state *s = (integratorcm_state *)opaque; if (offset >= 0x100 && offset < 0x200) { /* CM_SPD */ if (offset >= 0x180) return 0; ret...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t integratorcm_read(void *opaque, target_phys_addr_t offset, unsigned size) { integratorcm_state *s = (integratorcm_state *)opaque; if (offset >= 0x100 && offset < 0x200) { if (offset >= 0x180) return 0; return integrat...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size) { integratorcm_state *s = (integratorcm_state *)opaque; if (offset >= 0x100 && offset < 0x200) { if (offset >= 0x180) return 0; return integrator_spd[offs...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{", "integratorcm_state *s = (integratorcm_state *)opaque;", "if (offset >= 0x100 && offset < 0x200) {", "if (offset >= 0x180)\nreturn 0;", "return integrator_spd[offset >> 2];", "}", "switch (offset >> 2) {", "case 0:\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...