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
25,015
static void memory_region_dispatch_write(MemoryRegion *mr, hwaddr addr, uint64_t data, unsigned size) { if (!memory_region_access_valid(mr, addr, size, true)) { return; /* FIXME: ...
false
qemu
5bbf90be97203c472f47da070c0040b464c0460f
static void memory_region_dispatch_write(MemoryRegion *mr, hwaddr addr, uint64_t data, unsigned size) { if (!memory_region_access_valid(mr, addr, size, true)) { return; } ...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { if (!memory_region_access_valid(VAR_0, VAR_1, VAR_3, true)) { return; } adjust...
[ "static void FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nuint64_t VAR_2,\nunsigned VAR_3)\n{", "if (!memory_region_access_valid(VAR_0, VAR_1, VAR_3, true)) {", "return;", "}", "adjust_endianness(VAR_0, &VAR_2, VAR_3);", "if (!VAR_0->ops->write) {", "VAR_0->ops->old_mmio.write[bitops_ctzl(VAR_3)](VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35, 37, 39, 41 ], [ 43 ] ]
25,016
int bdrv_eject(BlockDriverState *bs, int eject_flag) { BlockDriver *drv = bs->drv; if (bs->locked) { return -EBUSY; } if (drv && drv->bdrv_eject) { drv->bdrv_eject(bs, eject_flag); } bs->tray_open = eject_flag; return 0; }
false
qemu
49aa46bb4b894ff8bdb0339ee2a5dd3fcfe93ecd
int bdrv_eject(BlockDriverState *bs, int eject_flag) { BlockDriver *drv = bs->drv; if (bs->locked) { return -EBUSY; } if (drv && drv->bdrv_eject) { drv->bdrv_eject(bs, eject_flag); } bs->tray_open = eject_flag; return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, int VAR_1) { BlockDriver *drv = VAR_0->drv; if (VAR_0->locked) { return -EBUSY; } if (drv && drv->FUNC_0) { drv->FUNC_0(VAR_0, VAR_1); } VAR_0->tray_open = VAR_1; return 0; }
[ "int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{", "BlockDriver *drv = VAR_0->drv;", "if (VAR_0->locked) {", "return -EBUSY;", "}", "if (drv && drv->FUNC_0) {", "drv->FUNC_0(VAR_0, VAR_1);", "}", "VAR_0->tray_open = VAR_1;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
25,017
static struct XenDevice *xen_be_del_xendev(int dom, int dev) { struct XenDevice *xendev, *xnext; /* * This is pretty much like QTAILQ_FOREACH(xendev, &xendevs, next) but * we save the next pointer in xnext because we might free xendev. */ xnext = xendevs.tqh_first; while (xnext)...
false
qemu
a2db2a1edd06a50b8a862c654cf993368cf9f1d9
static struct XenDevice *xen_be_del_xendev(int dom, int dev) { struct XenDevice *xendev, *xnext; xnext = xendevs.tqh_first; while (xnext) { xendev = xnext; xnext = xendev->next.tqe_next; if (xendev->dom != dom) { continue; } if (x...
{ "code": [], "line_no": [] }
static struct XenDevice *FUNC_0(int VAR_0, int VAR_1) { struct XenDevice *VAR_2, *VAR_3; VAR_3 = xendevs.tqh_first; while (VAR_3) { VAR_2 = VAR_3; VAR_3 = VAR_2->next.tqe_next; if (VAR_2->VAR_0 != VAR_0) { continue; } if (VAR_2->V...
[ "static struct XenDevice *FUNC_0(int VAR_0, int VAR_1)\n{", "struct XenDevice *VAR_2, *VAR_3;", "VAR_3 = xendevs.tqh_first;", "while (VAR_3) {", "VAR_2 = VAR_3;", "VAR_3 = VAR_2->next.tqe_next;", "if (VAR_2->VAR_0 != VAR_0) {", "continue;", "}", "if (VAR_2->VAR_1 != VAR_1 && VAR_1 != -1) {", "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, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 5...
25,018
static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, unsigned int max_pos, int depth) { AVCodecContext *acodec, *vcodec; ByteIOContext *ioc; AMFDataType amf_type; char str_val[256]; double num_val; num_val = 0; ioc = s->pb; am...
false
FFmpeg
c04c52d3a8bb323d71436512495c8ecf58be69ee
static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, unsigned int max_pos, int depth) { AVCodecContext *acodec, *vcodec; ByteIOContext *ioc; AMFDataType amf_type; char str_val[256]; double num_val; num_val = 0; ioc = s->pb; am...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVStream *VAR_2, const char *VAR_3, unsigned int VAR_4, int VAR_5) { AVCodecContext *acodec, *vcodec; ByteIOContext *ioc; AMFDataType amf_type; char VAR_6[256]; double VAR_7; VAR_7 = 0; ioc = VAR_0->pb; amf_type = get...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVStream *VAR_2, const char *VAR_3, unsigned int VAR_4, int VAR_5) {", "AVCodecContext *acodec, *vcodec;", "ByteIOContext *ioc;", "AMFDataType amf_type;", "char VAR_6[256];", "double VAR_7;", "VAR_7 = 0;", "ioc = VAR_0->pb;", "amf_type = ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
25,019
static void kvm_init_irq_routing(KVMState *s) { int gsi_count; gsi_count = kvm_check_extension(s, KVM_CAP_IRQ_ROUTING); if (gsi_count > 0) { unsigned int gsi_bits, i; /* Round up so we can search ints using ffs */ gsi_bits = ALIGN(gsi_count, 32); s->used_gsi_bitma...
false
qemu
4e2e4e6355959a1af011167b0db5ac7ffd3adf94
static void kvm_init_irq_routing(KVMState *s) { int gsi_count; gsi_count = kvm_check_extension(s, KVM_CAP_IRQ_ROUTING); if (gsi_count > 0) { unsigned int gsi_bits, i; gsi_bits = ALIGN(gsi_count, 32); s->used_gsi_bitmap = g_malloc0(gsi_bits / 8); s->max_g...
{ "code": [], "line_no": [] }
static void FUNC_0(KVMState *VAR_0) { int VAR_1; VAR_1 = kvm_check_extension(VAR_0, KVM_CAP_IRQ_ROUTING); if (VAR_1 > 0) { unsigned int VAR_2, VAR_3; VAR_2 = ALIGN(VAR_1, 32); VAR_0->used_gsi_bitmap = g_malloc0(VAR_2 / 8); VAR_0->max_gsi = VAR_2; ...
[ "static void FUNC_0(KVMState *VAR_0)\n{", "int VAR_1;", "VAR_1 = kvm_check_extension(VAR_0, KVM_CAP_IRQ_ROUTING);", "if (VAR_1 > 0) {", "unsigned int VAR_2, VAR_3;", "VAR_2 = ALIGN(VAR_1, 32);", "VAR_0->used_gsi_bitmap = g_malloc0(VAR_2 / 8);", "VAR_0->max_gsi = VAR_2;", "for (VAR_3 = VAR_1; VAR_3 <...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
25,020
static void uart_read_rx_fifo(UartState *s, uint32_t *c) { if ((s->r[R_CR] & UART_CR_RX_DIS) || !(s->r[R_CR] & UART_CR_RX_EN)) { return; } if (s->rx_count) { uint32_t rx_rpos = (RX_FIFO_SIZE + s->rx_wpos - s->rx_count) % RX_FIFO_SIZE; *c = s->rx_fifo[rx_rpos...
false
qemu
af52fe862fba686713044efdf9158195f84535ab
static void uart_read_rx_fifo(UartState *s, uint32_t *c) { if ((s->r[R_CR] & UART_CR_RX_DIS) || !(s->r[R_CR] & UART_CR_RX_EN)) { return; } if (s->rx_count) { uint32_t rx_rpos = (RX_FIFO_SIZE + s->rx_wpos - s->rx_count) % RX_FIFO_SIZE; *c = s->rx_fifo[rx_rpos...
{ "code": [], "line_no": [] }
static void FUNC_0(UartState *VAR_0, uint32_t *VAR_1) { if ((VAR_0->r[R_CR] & UART_CR_RX_DIS) || !(VAR_0->r[R_CR] & UART_CR_RX_EN)) { return; } if (VAR_0->rx_count) { uint32_t rx_rpos = (RX_FIFO_SIZE + VAR_0->rx_wpos - VAR_0->rx_count) % RX_FIFO_SIZE; *VAR_1...
[ "static void FUNC_0(UartState *VAR_0, uint32_t *VAR_1)\n{", "if ((VAR_0->r[R_CR] & UART_CR_RX_DIS) || !(VAR_0->r[R_CR] & UART_CR_RX_EN)) {", "return;", "}", "if (VAR_0->rx_count) {", "uint32_t rx_rpos =\n(RX_FIFO_SIZE + VAR_0->rx_wpos - VAR_0->rx_count) % RX_FIFO_SIZE;", "*VAR_1 = VAR_0->rx_fifo[rx_rpos...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
25,021
static void setup_frame(int sig, struct target_sigaction *ka, target_sigset_t *set, CPUAlphaState *env) { abi_ulong frame_addr, r26; struct target_sigframe *frame; int err = 0; frame_addr = get_sigframe(ka, env, sizeof(*frame)); if (!lock_user_struct(VERIFY_WRITE, fr...
false
qemu
41ecc72ba5932381208e151bf2d2149a0342beff
static void setup_frame(int sig, struct target_sigaction *ka, target_sigset_t *set, CPUAlphaState *env) { abi_ulong frame_addr, r26; struct target_sigframe *frame; int err = 0; frame_addr = get_sigframe(ka, env, sizeof(*frame)); if (!lock_user_struct(VERIFY_WRITE, fr...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1, target_sigset_t *VAR_2, CPUAlphaState *VAR_3) { abi_ulong frame_addr, r26; struct target_sigframe *VAR_4; int VAR_5 = 0; frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*VAR_4)); if (!lock_user_struct(VERIF...
[ "static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,\ntarget_sigset_t *VAR_2, CPUAlphaState *VAR_3)\n{", "abi_ulong frame_addr, r26;", "struct target_sigframe *VAR_4;", "int VAR_5 = 0;", "frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*VAR_4));", "if (!lock_user_struct(VERIFY_WRITE, VAR_4, frame...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ...
25,022
static void spin_kick(void *data) { SpinKick *kick = data; CPUState *cpu = CPU(kick->cpu); CPUPPCState *env = &kick->cpu->env; SpinInfo *curspin = kick->spin; hwaddr map_size = 64 * 1024 * 1024; hwaddr map_start; cpu_synchronize_state(cpu); stl_p(&curspin->pir, env->spr[SPR_PI...
false
qemu
6d18a7a1ff9665ad48a68a692fdf0a61edefcae8
static void spin_kick(void *data) { SpinKick *kick = data; CPUState *cpu = CPU(kick->cpu); CPUPPCState *env = &kick->cpu->env; SpinInfo *curspin = kick->spin; hwaddr map_size = 64 * 1024 * 1024; hwaddr map_start; cpu_synchronize_state(cpu); stl_p(&curspin->pir, env->spr[SPR_PI...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { SpinKick *kick = VAR_0; CPUState *cpu = CPU(kick->cpu); CPUPPCState *env = &kick->cpu->env; SpinInfo *curspin = kick->spin; hwaddr map_size = 64 * 1024 * 1024; hwaddr map_start; cpu_synchronize_state(cpu); stl_p(&curspin->pir, env->spr[SPR_PIR...
[ "static void FUNC_0(void *VAR_0)\n{", "SpinKick *kick = VAR_0;", "CPUState *cpu = CPU(kick->cpu);", "CPUPPCState *env = &kick->cpu->env;", "SpinInfo *curspin = kick->spin;", "hwaddr map_size = 64 * 1024 * 1024;", "hwaddr map_start;", "cpu_synchronize_state(cpu);", "stl_p(&curspin->pir, env->spr[SPR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ...
25,023
static void sd_blk_write(SDState *sd, uint64_t addr, uint32_t len) { uint64_t end = addr + len; if ((addr & 511) || len < 512) if (!sd->bdrv || bdrv_read(sd->bdrv, addr >> 9, sd->buf, 1) < 0) { fprintf(stderr, "sd_blk_write: read error on host side\n"); return; }...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void sd_blk_write(SDState *sd, uint64_t addr, uint32_t len) { uint64_t end = addr + len; if ((addr & 511) || len < 512) if (!sd->bdrv || bdrv_read(sd->bdrv, addr >> 9, sd->buf, 1) < 0) { fprintf(stderr, "sd_blk_write: read error on host side\n"); return; }...
{ "code": [], "line_no": [] }
static void FUNC_0(SDState *VAR_0, uint64_t VAR_1, uint32_t VAR_2) { uint64_t end = VAR_1 + VAR_2; if ((VAR_1 & 511) || VAR_2 < 512) if (!VAR_0->bdrv || bdrv_read(VAR_0->bdrv, VAR_1 >> 9, VAR_0->buf, 1) < 0) { fprintf(stderr, "FUNC_0: read error on host side\n"); return; ...
[ "static void FUNC_0(SDState *VAR_0, uint64_t VAR_1, uint32_t VAR_2)\n{", "uint64_t end = VAR_1 + VAR_2;", "if ((VAR_1 & 511) || VAR_2 < 512)\nif (!VAR_0->bdrv || bdrv_read(VAR_0->bdrv, VAR_1 >> 9, VAR_0->buf, 1) < 0) {", "fprintf(stderr, \"FUNC_0: read error on host side\\n\");", "return;", "}", "if (en...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
25,025
static struct omap_uwire_s *omap_uwire_init(MemoryRegion *system_memory, target_phys_addr_t base, qemu_irq txirq, qemu_irq rxirq, qemu_irq dma, ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static struct omap_uwire_s *omap_uwire_init(MemoryRegion *system_memory, target_phys_addr_t base, qemu_irq txirq, qemu_irq rxirq, qemu_irq dma, ...
{ "code": [], "line_no": [] }
static struct omap_uwire_s *FUNC_0(MemoryRegion *VAR_0, target_phys_addr_t VAR_1, qemu_irq VAR_2, qemu_irq VAR_3, qemu_irq VAR_4, omap_clk V...
[ "static struct omap_uwire_s *FUNC_0(MemoryRegion *VAR_0,\ntarget_phys_addr_t VAR_1,\nqemu_irq VAR_2, qemu_irq VAR_3,\nqemu_irq VAR_4,\nomap_clk VAR_5)\n{", "struct omap_uwire_s *VAR_6 = (struct omap_uwire_s *)\ng_malloc0(sizeof(struct omap_uwire_s));", "VAR_6->VAR_2 = VAR_2;", "VAR_6->VAR_3 = VAR_3;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
25,026
static void exception_action(CPUState *cpu) { #if defined(TARGET_I386) X86CPU *x86_cpu = X86_CPU(cpu); CPUX86State *env1 = &x86_cpu->env; raise_exception_err(env1, cpu->exception_index, env1->error_code); #else cpu_loop_exit(cpu); #endif }
false
qemu
0c33682d5f29b0a4ae53bdec4c8e52e4fae37b34
static void exception_action(CPUState *cpu) { #if defined(TARGET_I386) X86CPU *x86_cpu = X86_CPU(cpu); CPUX86State *env1 = &x86_cpu->env; raise_exception_err(env1, cpu->exception_index, env1->error_code); #else cpu_loop_exit(cpu); #endif }
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0) { #if defined(TARGET_I386) X86CPU *x86_cpu = X86_CPU(VAR_0); CPUX86State *env1 = &x86_cpu->env; raise_exception_err(env1, VAR_0->exception_index, env1->error_code); #else cpu_loop_exit(VAR_0); #endif }
[ "static void FUNC_0(CPUState *VAR_0)\n{", "#if defined(TARGET_I386)\nX86CPU *x86_cpu = X86_CPU(VAR_0);", "CPUX86State *env1 = &x86_cpu->env;", "raise_exception_err(env1, VAR_0->exception_index, env1->error_code);", "#else\ncpu_loop_exit(VAR_0);", "#endif\n}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ] ]
25,027
void term_printf(const char *fmt, ...) { char buf[4096]; va_list ap; va_start(ap, fmt); vsnprintf(buf, sizeof(buf), fmt, ap); qemu_chr_write(monitor_hd, buf, strlen(buf)); va_end(ap); }
false
qemu
7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1
void term_printf(const char *fmt, ...) { char buf[4096]; va_list ap; va_start(ap, fmt); vsnprintf(buf, sizeof(buf), fmt, ap); qemu_chr_write(monitor_hd, buf, strlen(buf)); va_end(ap); }
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, ...) { char VAR_1[4096]; va_list ap; va_start(ap, VAR_0); vsnprintf(VAR_1, sizeof(VAR_1), VAR_0, ap); qemu_chr_write(monitor_hd, VAR_1, strlen(VAR_1)); va_end(ap); }
[ "void FUNC_0(const char *VAR_0, ...)\n{", "char VAR_1[4096];", "va_list ap;", "va_start(ap, VAR_0);", "vsnprintf(VAR_1, sizeof(VAR_1), VAR_0, ap);", "qemu_chr_write(monitor_hd, VAR_1, strlen(VAR_1));", "va_end(ap);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
25,028
static int scsi_req_length(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf) { switch (buf[0] >> 5) { case 0: cmd->xfer = buf[4]; cmd->len = 6; break; case 1: case 2: cmd->xfer = lduw_be_p(&buf[7]); cmd->len = 10; break; case 4: cmd...
false
qemu
28b70c9dbdce0d517ade9c04c7d7ae05c8b76d2f
static int scsi_req_length(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf) { switch (buf[0] >> 5) { case 0: cmd->xfer = buf[4]; cmd->len = 6; break; case 1: case 2: cmd->xfer = lduw_be_p(&buf[7]); cmd->len = 10; break; case 4: cmd...
{ "code": [], "line_no": [] }
static int FUNC_0(SCSICommand *VAR_0, SCSIDevice *VAR_1, uint8_t *VAR_2) { switch (VAR_2[0] >> 5) { case 0: VAR_0->xfer = VAR_2[4]; VAR_0->len = 6; break; case 1: case 2: VAR_0->xfer = lduw_be_p(&VAR_2[7]); VAR_0->len = 10; break; case 4: ...
[ "static int FUNC_0(SCSICommand *VAR_0, SCSIDevice *VAR_1, uint8_t *VAR_2)\n{", "switch (VAR_2[0] >> 5) {", "case 0:\nVAR_0->xfer = VAR_2[4];", "VAR_0->len = 6;", "break;", "case 1:\ncase 2:\nVAR_0->xfer = lduw_be_p(&VAR_2[7]);", "VAR_0->len = 10;", "break;", "case 4:\nVAR_0->xfer = ldl_be_p(&VAR_2[1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 49 ...
25,029
static void draw_slice(AVFilterLink *link, int y, int h) { ScaleContext *scale = link->dst->priv; int out_h; AVFilterPicRef *cur_pic = link->cur_pic; uint8_t *data[4]; if (!scale->slice_dir) { if (y != 0 && y + h != link->h) { av_log(scale, AV_LOG_ERROR, "Slices start i...
false
FFmpeg
8aeb33225aed5a0da03f9145a09ca1bbd6ac6532
static void draw_slice(AVFilterLink *link, int y, int h) { ScaleContext *scale = link->dst->priv; int out_h; AVFilterPicRef *cur_pic = link->cur_pic; uint8_t *data[4]; if (!scale->slice_dir) { if (y != 0 && y + h != link->h) { av_log(scale, AV_LOG_ERROR, "Slices start i...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFilterLink *VAR_0, int VAR_1, int VAR_2) { ScaleContext *scale = VAR_0->dst->priv; int VAR_3; AVFilterPicRef *cur_pic = VAR_0->cur_pic; uint8_t *data[4]; if (!scale->slice_dir) { if (VAR_1 != 0 && VAR_1 + VAR_2 != VAR_0->VAR_2) { av_log(scale, AV_LO...
[ "static void FUNC_0(AVFilterLink *VAR_0, int VAR_1, int VAR_2)\n{", "ScaleContext *scale = VAR_0->dst->priv;", "int VAR_3;", "AVFilterPicRef *cur_pic = VAR_0->cur_pic;", "uint8_t *data[4];", "if (!scale->slice_dir) {", "if (VAR_1 != 0 && VAR_1 + VAR_2 != VAR_0->VAR_2) {", "av_log(scale, AV_LOG_ERROR, ...
[ 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 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 47, 49, 51 ...
25,030
static void spapr_phb_finish_realize(sPAPRPHBState *sphb, Error **errp) { sphb->dma_window_start = 0; sphb->dma_window_size = 0x40000000; sphb->tcet = spapr_tce_new_table(DEVICE(sphb), sphb->dma_liobn, sphb->dma_window_size); if (!sphb->tcet) { error_s...
false
qemu
cca7fad5765251fece44cd230156a101867522dd
static void spapr_phb_finish_realize(sPAPRPHBState *sphb, Error **errp) { sphb->dma_window_start = 0; sphb->dma_window_size = 0x40000000; sphb->tcet = spapr_tce_new_table(DEVICE(sphb), sphb->dma_liobn, sphb->dma_window_size); if (!sphb->tcet) { error_s...
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPRPHBState *VAR_0, Error **VAR_1) { VAR_0->dma_window_start = 0; VAR_0->dma_window_size = 0x40000000; VAR_0->tcet = spapr_tce_new_table(DEVICE(VAR_0), VAR_0->dma_liobn, VAR_0->dma_window_size); if (!VAR_0->tcet) { error_setg(VAR_1...
[ "static void FUNC_0(sPAPRPHBState *VAR_0, Error **VAR_1)\n{", "VAR_0->dma_window_start = 0;", "VAR_0->dma_window_size = 0x40000000;", "VAR_0->tcet = spapr_tce_new_table(DEVICE(VAR_0), VAR_0->dma_liobn,\nVAR_0->dma_window_size);", "if (!VAR_0->tcet) {", "error_setg(VAR_1, \"Unable to create TCE table for %...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ] ]
25,031
static void tcx_rblit_writel(void *opaque, hwaddr addr, uint64_t val, unsigned size) { TCXState *s = opaque; uint32_t adsr, len; int i; if (!(addr & 4)) { s->tmpblit = val; } else { addr = (addr >> 3) & 0xfffff; adsr = val & 0xffffff; ...
false
qemu
973945804d95878375b487c0c5c9b2556c5e4543
static void tcx_rblit_writel(void *opaque, hwaddr addr, uint64_t val, unsigned size) { TCXState *s = opaque; uint32_t adsr, len; int i; if (!(addr & 4)) { s->tmpblit = val; } else { addr = (addr >> 3) & 0xfffff; adsr = val & 0xffffff; ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { TCXState *s = VAR_0; uint32_t adsr, len; int VAR_4; if (!(VAR_1 & 4)) { s->tmpblit = VAR_2; } else { VAR_1 = (VAR_1 >> 3) & 0xfffff; adsr = VAR_2 & 0xffffff; ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "TCXState *s = VAR_0;", "uint32_t adsr, len;", "int VAR_4;", "if (!(VAR_1 & 4)) {", "s->tmpblit = VAR_2;", "} else {", "VAR_1 = (VAR_1 >> 3) & 0xfffff;", "adsr = VAR_2 & 0xffffff;", "len = ((VAR_2 >> 24) & 0x1f) +...
[ 0, 0, 0, 0, 0, 0, 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 ], [...
25,032
static CharDriverState *qemu_chr_open_mux(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { ChardevMux *mux = backend->mux; CharDriverState *chr, *drv; MuxDriver *d; drv = qemu_chr_fin...
false
qemu
130257dc443574a9da91dc293665be2cfc40245a
static CharDriverState *qemu_chr_open_mux(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { ChardevMux *mux = backend->mux; CharDriverState *chr, *drv; MuxDriver *d; drv = qemu_chr_fin...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { ChardevMux *mux = backend->mux; CharDriverState *chr, *drv; MuxDriver *d; drv = qemu_chr_find(mux->char...
[ "static CharDriverState *FUNC_0(const char *id,\nChardevBackend *backend,\nChardevReturn *ret, Error **errp)\n{", "ChardevMux *mux = backend->mux;", "CharDriverState *chr, *drv;", "MuxDriver *d;", "drv = qemu_chr_find(mux->chardev);", "if (drv == NULL) {", "error_setg(errp, \"mux: base chardev %s not fo...
[ 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
25,033
static void pmac_ide_transfer(DBDMA_io *io) { MACIOIDEState *m = io->opaque; IDEState *s = idebus_active_if(&m->bus); MACIO_DPRINTF("\n"); s->io_buffer_size = 0; if (s->drive_kind == IDE_CD) { /* Handle non-block ATAPI DMA transfers */ if (s->lba == -1) { s...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void pmac_ide_transfer(DBDMA_io *io) { MACIOIDEState *m = io->opaque; IDEState *s = idebus_active_if(&m->bus); MACIO_DPRINTF("\n"); s->io_buffer_size = 0; if (s->drive_kind == IDE_CD) { if (s->lba == -1) { s->io_buffer_size = MIN(io->len, s->packet_...
{ "code": [], "line_no": [] }
static void FUNC_0(DBDMA_io *VAR_0) { MACIOIDEState *m = VAR_0->opaque; IDEState *s = idebus_active_if(&m->bus); MACIO_DPRINTF("\n"); s->io_buffer_size = 0; if (s->drive_kind == IDE_CD) { if (s->lba == -1) { s->io_buffer_size = MIN(VAR_0->len, s->packet_tr...
[ "static void FUNC_0(DBDMA_io *VAR_0)\n{", "MACIOIDEState *m = VAR_0->opaque;", "IDEState *s = idebus_active_if(&m->bus);", "MACIO_DPRINTF(\"\\n\");", "s->io_buffer_size = 0;", "if (s->drive_kind == IDE_CD) {", "if (s->lba == -1) {", "s->io_buffer_size = MIN(VAR_0->len, s->packet_transfer_size);", "b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], ...
25,034
static void do_cpu_set(Monitor *mon, const QDict *qdict, QObject **ret_data) { int index = qdict_get_int(qdict, "index"); if (mon_set_cpu(index) < 0) qemu_error_new(QERR_INVALID_CPU_INDEX); }
false
qemu
cc0c4185e54867ef93c4b4dc0a8f3ecbc20ece42
static void do_cpu_set(Monitor *mon, const QDict *qdict, QObject **ret_data) { int index = qdict_get_int(qdict, "index"); if (mon_set_cpu(index) < 0) qemu_error_new(QERR_INVALID_CPU_INDEX); }
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2) { int VAR_3 = qdict_get_int(VAR_1, "VAR_3"); if (mon_set_cpu(VAR_3) < 0) qemu_error_new(QERR_INVALID_CPU_INDEX); }
[ "static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{", "int VAR_3 = qdict_get_int(VAR_1, \"VAR_3\");", "if (mon_set_cpu(VAR_3) < 0)\nqemu_error_new(QERR_INVALID_CPU_INDEX);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ] ]
25,035
static int get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot, target_ulong *page_size_ptr) { CPUState *cs = CPU(arm_env_get_cpu...
false
qemu
88e8add8b6656c349a96b447b074688d02dc5415
static int get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot, target_ulong *page_size_ptr) { CPUState *cs = CPU(arm_env_get_cpu...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUARMState *VAR_0, target_ulong VAR_1, int VAR_2, ARMMMUIdx VAR_3, hwaddr *VAR_4, MemTxAttrs *VAR_5, int *VAR_6, target_ulong *VAR_7) { CPUState *cs = CPU(arm_env_get_cpu(VAR_0)); MMUFaultTyp...
[ "static int FUNC_0(CPUARMState *VAR_0, target_ulong VAR_1,\nint VAR_2, ARMMMUIdx VAR_3,\nhwaddr *VAR_4, MemTxAttrs *VAR_5, int *VAR_6,\ntarget_ulong *VAR_7)\n{", "CPUState *cs = CPU(arm_env_get_cpu(VAR_0));", "MMUFaultType fault_type = translation_fault;", "uint32_t level = 1;", "uint32_t epd;", "int32_t ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
25,036
static void qmp_input_start_struct(Visitor *v, void **obj, const char *kind, const char *name, size_t size, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); const QObject *qobj = qmp_input_get_object(qiv, name); if (!qobj || qobject_type(qobj) != QTYPE_QDICT) { ...
true
qemu
8b714d3747e6870db85dd9382adb8ee371633092
static void qmp_input_start_struct(Visitor *v, void **obj, const char *kind, const char *name, size_t size, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); const QObject *qobj = qmp_input_get_object(qiv, name); if (!qobj || qobject_type(qobj) != QTYPE_QDICT) { ...
{ "code": [ " qmp_input_push(qiv, qobj, errp);", " if (error_is_set(errp)) {" ], "line_no": [ 25, 27 ] }
static void FUNC_0(Visitor *VAR_0, void **VAR_1, const char *VAR_2, const char *VAR_3, size_t VAR_4, Error **VAR_5) { QmpInputVisitor *qiv = to_qiv(VAR_0); const QObject *VAR_6 = qmp_input_get_object(qiv, VAR_3); if (!VAR_6 || qobject_type(VAR_6) != QTYPE_QDICT) { ...
[ "static void FUNC_0(Visitor *VAR_0, void **VAR_1, const char *VAR_2,\nconst char *VAR_3, size_t VAR_4, Error **VAR_5)\n{", "QmpInputVisitor *qiv = to_qiv(VAR_0);", "const QObject *VAR_6 = qmp_input_get_object(qiv, VAR_3);", "if (!VAR_6 || qobject_type(VAR_6) != QTYPE_QDICT) {", "error_set(VAR_5, QERR_INVALI...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
25,037
static int join_request_frame(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; JoinContext *s = ctx->priv; AVFilterBufferRef *buf; JoinBufferPriv *priv; int linesize = INT_MAX; int perms = ~0; int nb_samples; int i, j, ret; /* get a frame on each...
true
FFmpeg
fd2784c3b5e5ea13dd308b1eeeef0dd3c22a3d4a
static int join_request_frame(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; JoinContext *s = ctx->priv; AVFilterBufferRef *buf; JoinBufferPriv *priv; int linesize = INT_MAX; int perms = ~0; int nb_samples; int i, j, ret; for (i = 0; i < ...
{ "code": [ " int nb_samples;" ], "line_no": [ 17 ] }
static int FUNC_0(AVFilterLink *VAR_0) { AVFilterContext *ctx = VAR_0->src; JoinContext *s = ctx->priv; AVFilterBufferRef *buf; JoinBufferPriv *priv; int VAR_1 = INT_MAX; int VAR_2 = ~0; int VAR_3; int VAR_4, VAR_5, VAR_6; for (VAR_4 = 0; VAR_4 < ctx->n...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "AVFilterContext *ctx = VAR_0->src;", "JoinContext *s = ctx->priv;", "AVFilterBufferRef *buf;", "JoinBufferPriv *priv;", "int VAR_1 = INT_MAX;", "int VAR_2 = ~0;", "int VAR_3;", "int VAR_4, VAR_5, VAR_6;", "for (VAR_4 = 0; VAR_4 < ctx->nb_i...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 31, 33, 35 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ...
25,038
static inline void yuv2yuvXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) { //FIXME Optimize (just quickly wr...
true
FFmpeg
8b2fce0d3f5a56c40c28899c9237210ca8f9cf75
static inline void yuv2yuvXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) { int i; for (i=0; i<dst...
{ "code": [ " v += chrSrc[j][i + 2048] * chrFilter[j];", " v += chrSrc[j][i + 2048] * chrFilter[j];", " v += chrSrc[j][i + 2048] * chrFilter[j];" ], "line_no": [ 51, 51, 51 ] }
static inline void FUNC_0(int16_t *VAR_0, int16_t **VAR_1, int VAR_2, int16_t *VAR_3, int16_t **VAR_4, int VAR_5, uint8_t *VAR_6, uint8_t *VAR_7, uint8_t *VAR_8, int VAR_9, int VAR_10) { int VAR_11; for (VAR_11=0; VAR_11<VAR_9; VAR_11++) ...
[ "static inline void FUNC_0(int16_t *VAR_0, int16_t **VAR_1, int VAR_2,\nint16_t *VAR_3, int16_t **VAR_4, int VAR_5,\nuint8_t *VAR_6, uint8_t *VAR_7, uint8_t *VAR_8, int VAR_9, int VAR_10)\n{", "int VAR_11;", "for (VAR_11=0; VAR_11<VAR_9; VAR_11++)", "{", "int VAR_12=1<<18;", "int VAR_16;", "for (VAR_16=...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
25,039
static void rtas_start_cpu(PowerPCCPU *cpu_, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { target_ulong id, start, r3; PowerPCCPU *cpu; if (nargs != 3 ...
true
qemu
9a94ee5bb15793ef69692998ef57794a33074134
static void rtas_start_cpu(PowerPCCPU *cpu_, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { target_ulong id, start, r3; PowerPCCPU *cpu; if (nargs != 3 ...
{ "code": [], "line_no": [] }
static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1, uint32_t VAR_2, uint32_t VAR_3, target_ulong VAR_4, uint32_t VAR_5, target_ulong VAR_6) { target_ulong id, start, r3; PowerPCCPU *cpu; if (VAR_3 != 3 || V...
[ "static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4,\nuint32_t VAR_5, target_ulong VAR_6)\n{", "target_ulong id, start, r3;", "PowerPCCPU *cpu;", "if (VAR_3 != 3 || VAR_5 != 1) {", "rtas_st(VAR_6, 0, RTAS_OUT_PARAM_ERROR);", "return;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 46 ], [ 48 ], [ 50 ], [ 52 ], [...
25,040
static void check_decode_result(int *got_output, int ret) { if (*got_output || ret<0) decode_error_stat[ret<0] ++; if (ret < 0 && exit_on_error) exit_program(1); }
true
FFmpeg
b69b43e2c471c4febbffaf313875396256b6a51e
static void check_decode_result(int *got_output, int ret) { if (*got_output || ret<0) decode_error_stat[ret<0] ++; if (ret < 0 && exit_on_error) exit_program(1); }
{ "code": [ "static void check_decode_result(int *got_output, int ret)" ], "line_no": [ 1 ] }
static void FUNC_0(int *VAR_0, int VAR_1) { if (*VAR_0 || VAR_1<0) decode_error_stat[VAR_1<0] ++; if (VAR_1 < 0 && exit_on_error) exit_program(1); }
[ "static void FUNC_0(int *VAR_0, int VAR_1)\n{", "if (*VAR_0 || VAR_1<0)\ndecode_error_stat[VAR_1<0] ++;", "if (VAR_1 < 0 && exit_on_error)\nexit_program(1);", "}" ]
[ 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11, 13 ], [ 15 ] ]
25,041
int vmstate_register_with_alias_id(DeviceState *dev, int instance_id, const VMStateDescription *vmsd, void *opaque, int alias_id, int required_for_version, Error **errp) { ...
true
qemu
128e4e108949b35dbe351fe122a3e34b834e185a
int vmstate_register_with_alias_id(DeviceState *dev, int instance_id, const VMStateDescription *vmsd, void *opaque, int alias_id, int required_for_version, Error **errp) { ...
{ "code": [], "line_no": [] }
int FUNC_0(DeviceState *VAR_0, int VAR_1, const VMStateDescription *VAR_2, void *VAR_3, int VAR_4, int VAR_5, Error **VAR_6) { SaveStateEntry *se; assert(VAR...
[ "int FUNC_0(DeviceState *VAR_0, int VAR_1,\nconst VMStateDescription *VAR_2,\nvoid *VAR_3, int VAR_4,\nint VAR_5,\nError **VAR_6)\n{", "SaveStateEntry *se;", "assert(VAR_4 == -1 || VAR_5 >= VAR_2->minimum_version_id);", "se = g_new0(SaveStateEntry, 1);", "se->version_id = VAR_2->version_id;", "se->section...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 50 ], [ 54 ], [ 56 ], [...
25,042
static void test_qemu_strtoll_max(void) { const char *str = g_strdup_printf("%lld", LLONG_MAX); char f = 'X'; const char *endptr = &f; int64_t res = 999; int err; err = qemu_strtoll(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, LLONG_MAX); ...
true
qemu
d6f723b513a0c3c4e58343b7c52a2f9850861fa0
static void test_qemu_strtoll_max(void) { const char *str = g_strdup_printf("%lld", LLONG_MAX); char f = 'X'; const char *endptr = &f; int64_t res = 999; int err; err = qemu_strtoll(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, LLONG_MAX); ...
{ "code": [ " const char *str = g_strdup_printf(\"%lld\", LLONG_MAX);", " const char *str = g_strdup_printf(\"%lld\", LLONG_MAX);" ], "line_no": [ 5, 5 ] }
static void FUNC_0(void) { const char *VAR_0 = g_strdup_printf("%lld", LLONG_MAX); char VAR_1 = 'X'; const char *VAR_2 = &VAR_1; int64_t res = 999; int VAR_3; VAR_3 = qemu_strtoll(VAR_0, &VAR_2, 0, &res); g_assert_cmpint(VAR_3, ==, 0); g_assert_cmpint(res, ==, LLONG_MAX); ...
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = g_strdup_printf(\"%lld\", LLONG_MAX);", "char VAR_1 = 'X';", "const char *VAR_2 = &VAR_1;", "int64_t res = 999;", "int VAR_3;", "VAR_3 = qemu_strtoll(VAR_0, &VAR_2, 0, &res);", "g_assert_cmpint(VAR_3, ==, 0);", "g_assert_cmpint(res, ==, LLONG_MAX);...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
25,043
static int mace_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int16_t **samples; MACEContext *ctx = avctx->priv_data; int i, j, k, l, ret...
true
FFmpeg
2e59ffbb7964214e192a9f77c4445ff29c6510d7
static int mace_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int16_t **samples; MACEContext *ctx = avctx->priv_data; int i, j, k, l, ret...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { AVFrame *frame = VAR_1; const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; int16_t **samples; MACEContext *ctx = VAR_0->priv_data; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "AVFrame *frame = VAR_1;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "int16_t **samples;", "MACEContext *ctx = VAR_0->priv_data;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "int VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 12 ], [ 13, 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20, 21 ], [ 22 ], [ 23 ], [ ...
25,044
static av_cold int rv30_decode_init(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; int ret; r->rv30 = 1; if ((ret = ff_rv34_decode_init(avctx)) < 0) return ret; if(avctx->extradata_size < 2){ av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n"); ...
true
FFmpeg
be524ffc16bf14cab0ad112b0dcb48d09a2a40ff
static av_cold int rv30_decode_init(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; int ret; r->rv30 = 1; if ((ret = ff_rv34_decode_init(avctx)) < 0) return ret; if(avctx->extradata_size < 2){ av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n"); ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; int VAR_0; r->rv30 = 1; if ((VAR_0 = ff_rv34_decode_init(avctx)) < 0) return VAR_0; if(avctx->extradata_size < 2){ av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n"); ret...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "RV34DecContext *r = avctx->priv_data;", "int VAR_0;", "r->rv30 = 1;", "if ((VAR_0 = ff_rv34_decode_init(avctx)) < 0)\nreturn VAR_0;", "if(avctx->extradata_size < 2){", "av_log(avctx, AV_LOG_ERROR, \"Extradata is too small.\\n\");", "return -1;", ...
[ 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 ], [ 26 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ] ]
25,045
static int cpu_x86_find_by_name(x86_def_t *x86_cpu_def, const char *cpu_model) { unsigned int i; x86_def_t *def; char *s = g_strdup(cpu_model); char *featurestr, *name = strtok(s, ","); /* Features to be added*/ uint32_t plus_features = 0, plus_ext_features = 0; uint32_t plus_ext2_...
true
qemu
04c5b17a74c9d6c309181079f8949665b43b0164
static int cpu_x86_find_by_name(x86_def_t *x86_cpu_def, const char *cpu_model) { unsigned int i; x86_def_t *def; char *s = g_strdup(cpu_model); char *featurestr, *name = strtok(s, ","); uint32_t plus_features = 0, plus_ext_features = 0; uint32_t plus_ext2_features = 0, plus_ext3_f...
{ "code": [ " if (!strcmp(name, def->name))", " if (kvm_enabled() && strcmp(name, \"host\") == 0) {" ], "line_no": [ 37, 41 ] }
static int FUNC_0(x86_def_t *VAR_0, const char *VAR_1) { unsigned int VAR_2; x86_def_t *def; char *VAR_3 = g_strdup(VAR_1); char *VAR_4, *VAR_5 = strtok(VAR_3, ","); uint32_t plus_features = 0, plus_ext_features = 0; uint32_t plus_ext2_features = 0, plus_ext3_features = 0; ui...
[ "static int FUNC_0(x86_def_t *VAR_0, const char *VAR_1)\n{", "unsigned int VAR_2;", "x86_def_t *def;", "char *VAR_3 = g_strdup(VAR_1);", "char *VAR_4, *VAR_5 = strtok(VAR_3, \",\");", "uint32_t plus_features = 0, plus_ext_features = 0;", "uint32_t plus_ext2_features = 0, plus_ext3_features = 0;", "uin...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
25,046
static int virtio_gpu_ui_info(void *opaque, uint32_t idx, QemuUIInfo *info) { VirtIOGPU *g = opaque; if (idx > g->conf.max_outputs) { return -1; } g->req_state[idx].x = info->xoff; g->req_state[idx].y = info->yoff; g->req_state[idx].width = info->width; g->req_state[idx]...
true
qemu
6b860806c0dd881373ead661c0f3499eca2c3995
static int virtio_gpu_ui_info(void *opaque, uint32_t idx, QemuUIInfo *info) { VirtIOGPU *g = opaque; if (idx > g->conf.max_outputs) { return -1; } g->req_state[idx].x = info->xoff; g->req_state[idx].y = info->yoff; g->req_state[idx].width = info->width; g->req_state[idx]...
{ "code": [ " if (idx > g->conf.max_outputs) {" ], "line_no": [ 9 ] }
static int FUNC_0(void *VAR_0, uint32_t VAR_1, QemuUIInfo *VAR_2) { VirtIOGPU *g = VAR_0; if (VAR_1 > g->conf.max_outputs) { return -1; } g->req_state[VAR_1].x = VAR_2->xoff; g->req_state[VAR_1].y = VAR_2->yoff; g->req_state[VAR_1].width = VAR_2->width; g->req_state[VAR_...
[ "static int FUNC_0(void *VAR_0, uint32_t VAR_1, QemuUIInfo *VAR_2)\n{", "VirtIOGPU *g = VAR_0;", "if (VAR_1 > g->conf.max_outputs) {", "return -1;", "}", "g->req_state[VAR_1].x = VAR_2->xoff;", "g->req_state[VAR_1].y = VAR_2->yoff;", "g->req_state[VAR_1].width = VAR_2->width;", "g->req_state[VAR_1]....
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ] ]
25,047
void spapr_core_unplug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { sPAPRCPUCore *core = SPAPR_CPU_CORE(OBJECT(dev)); PowerPCCPU *cpu = POWERPC_CPU(core->threads); int id = ppc_get_vcpu_dt_id(cpu); sPAPRDRConnector *drc = spapr_dr_connector_by_id(S...
true
qemu
44d691f7d9b6ebab102a31aa87fe59da8f7feff9
void spapr_core_unplug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { sPAPRCPUCore *core = SPAPR_CPU_CORE(OBJECT(dev)); PowerPCCPU *cpu = POWERPC_CPU(core->threads); int id = ppc_get_vcpu_dt_id(cpu); sPAPRDRConnector *drc = spapr_dr_connector_by_id(S...
{ "code": [ " sPAPRCPUCore *core = SPAPR_CPU_CORE(OBJECT(dev));", " PowerPCCPU *cpu = POWERPC_CPU(core->threads);", " int id = ppc_get_vcpu_dt_id(cpu);", " spapr_dr_connector_by_id(SPAPR_DR_CONNECTOR_TYPE_CPU, id);" ], "line_no": [ 7, 9, 11, 15 ] }
void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1, Error **VAR_2) { sPAPRCPUCore *core = SPAPR_CPU_CORE(OBJECT(VAR_1)); PowerPCCPU *cpu = POWERPC_CPU(core->threads); int VAR_3 = ppc_get_vcpu_dt_id(cpu); sPAPRDRConnector *drc = spapr_dr_connector_by_id(SPAPR_DR_C...
[ "void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1,\nError **VAR_2)\n{", "sPAPRCPUCore *core = SPAPR_CPU_CORE(OBJECT(VAR_1));", "PowerPCCPU *cpu = POWERPC_CPU(core->threads);", "int VAR_3 = ppc_get_vcpu_dt_id(cpu);", "sPAPRDRConnector *drc =\nspapr_dr_connector_by_id(SPAPR_DR_CONNECTOR_TYPE_CPU, VAR_3);...
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
25,048
static void qobject_input_check_struct(Visitor *v, Error **errp) { QObjectInputVisitor *qiv = to_qiv(v); StackObject *tos = QSLIST_FIRST(&qiv->stack); assert(tos && !tos->entry); if (qiv->strict) { GHashTable *const top_ht = tos->h; if (top_ht) { GHashTableIter iter...
true
qemu
a9fc37f6bc3f2ab90585cb16493da9f6dcfbfbcf
static void qobject_input_check_struct(Visitor *v, Error **errp) { QObjectInputVisitor *qiv = to_qiv(v); StackObject *tos = QSLIST_FIRST(&qiv->stack); assert(tos && !tos->entry); if (qiv->strict) { GHashTable *const top_ht = tos->h; if (top_ht) { GHashTableIter iter...
{ "code": [ " error_setg(errp, \"Parameter '%s' is unexpected\", key);" ], "line_no": [ 29 ] }
static void FUNC_0(Visitor *VAR_0, Error **VAR_1) { QObjectInputVisitor *qiv = to_qiv(VAR_0); StackObject *tos = QSLIST_FIRST(&qiv->stack); assert(tos && !tos->entry); if (qiv->strict) { GHashTable *const top_ht = tos->h; if (top_ht) { GHashTableIter iter; ...
[ "static void FUNC_0(Visitor *VAR_0, Error **VAR_1)\n{", "QObjectInputVisitor *qiv = to_qiv(VAR_0);", "StackObject *tos = QSLIST_FIRST(&qiv->stack);", "assert(tos && !tos->entry);", "if (qiv->strict) {", "GHashTable *const top_ht = tos->h;", "if (top_ht) {", "GHashTableIter iter;", "const char *VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
25,050
static int mpeg_decode_slice(MpegEncContext *s, int mb_y, const uint8_t **buf, int buf_size) { AVCodecContext *avctx = s->avctx; const int field_pic = s->picture_structure != PICT_FRAME; int ret; s->resync_mb_x = s->resync_mb_y = -1; assert(mb_y < s->mb...
false
FFmpeg
dcc39ee10e82833ce24aa57926c00ffeb1948198
static int mpeg_decode_slice(MpegEncContext *s, int mb_y, const uint8_t **buf, int buf_size) { AVCodecContext *avctx = s->avctx; const int field_pic = s->picture_structure != PICT_FRAME; int ret; s->resync_mb_x = s->resync_mb_y = -1; assert(mb_y < s->mb...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0, int VAR_1, const uint8_t **VAR_2, int VAR_3) { AVCodecContext *avctx = VAR_0->avctx; const int VAR_4 = VAR_0->picture_structure != PICT_FRAME; int VAR_5; VAR_0->resync_mb_x = VAR_0->resync_mb_y = -1; assert(VAR_1...
[ "static int FUNC_0(MpegEncContext *VAR_0, int VAR_1,\nconst uint8_t **VAR_2, int VAR_3)\n{", "AVCodecContext *avctx = VAR_0->avctx;", "const int VAR_4 = VAR_0->picture_structure != PICT_FRAME;", "int VAR_5;", "VAR_0->resync_mb_x =\nVAR_0->resync_mb_y = -1;", "assert(VAR_1 < VAR_0->mb_height);", "init_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51, 53 ], [ 57 ], [ 61 ], [ 63 ], [...
25,052
create_iovec(QEMUIOVector *qiov, char **argv, int nr_iov, int pattern) { size_t *sizes = calloc(nr_iov, sizeof(size_t)); size_t count = 0; void *buf, *p; int i; for (i = 0; i < nr_iov; i++) { char *arg = argv[i]; long long len; len = cvtnum(arg); if (len < 0) { printf("non-numeric length ...
true
qemu
40a0d7c395f4d18a8061ba075d8f9aab2fa0ec2a
create_iovec(QEMUIOVector *qiov, char **argv, int nr_iov, int pattern) { size_t *sizes = calloc(nr_iov, sizeof(size_t)); size_t count = 0; void *buf, *p; int i; for (i = 0; i < nr_iov; i++) { char *arg = argv[i]; long long len; len = cvtnum(arg); if (len < 0) { printf("non-numeric length ...
{ "code": [ "\tvoid *buf, *p;", "\t\t\treturn NULL;", "\t\t\treturn NULL;", "\t\t\treturn NULL;" ], "line_no": [ 9, 29, 29, 29 ] }
FUNC_0(QEMUIOVector *VAR_0, char **VAR_1, int VAR_2, int VAR_3) { size_t *sizes = calloc(VAR_2, sizeof(size_t)); size_t count = 0; void *VAR_4, *VAR_5; int VAR_6; for (VAR_6 = 0; VAR_6 < VAR_2; VAR_6++) { char *VAR_7 = VAR_1[VAR_6]; long long VAR_8; VAR_8 = cvtnum(VAR_7); if (VAR_8 < 0) { ...
[ "FUNC_0(QEMUIOVector *VAR_0, char **VAR_1, int VAR_2, int VAR_3)\n{", "size_t *sizes = calloc(VAR_2, sizeof(size_t));", "size_t count = 0;", "void *VAR_4, *VAR_5;", "int VAR_6;", "for (VAR_6 = 0; VAR_6 < VAR_2; VAR_6++) {", "char *VAR_7 = VAR_1[VAR_6];", "long long VAR_8;", "VAR_8 = cvtnum(VAR_7);",...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49, 51 ], [...
25,053
static int vid_probe(AVProbeData *p) { // little-endian VID tag, file starts with "VID\0" if (AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0)) return 0; return AVPROBE_SCORE_MAX; }
true
FFmpeg
f66f3819b96847cd28589b718dbcd03b782e7a5c
static int vid_probe(AVProbeData *p) { if (AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0)) return 0; return AVPROBE_SCORE_MAX; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (AV_RL32(VAR_0->buf) != MKTAG('V', 'I', 'D', 0)) return 0; return AVPROBE_SCORE_MAX; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (AV_RL32(VAR_0->buf) != MKTAG('V', 'I', 'D', 0))\nreturn 0;", "return AVPROBE_SCORE_MAX;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 4, 5 ], [ 6 ], [ 7 ] ]
25,054
void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { int i; for (i = 0; ; i++) { (*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n", ppc_defs[i].name, ppc_defs[i].pvr); if (strcmp(ppc_defs[i].name, "default") == 0) break; } ...
true
qemu
068abdc8a57023eeafe1025b964a50f8a39929b4
void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { int i; for (i = 0; ; i++) { (*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n", ppc_defs[i].name, ppc_defs[i].pvr); if (strcmp(ppc_defs[i].name, "default") == 0) break; } ...
{ "code": [ " int i;", " for (i = 0; ; i++) {", " if (strcmp(ppc_defs[i].name, \"default\") == 0)", " break;" ], "line_no": [ 5, 9, 15, 17 ] }
void FUNC_0 (FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...)) { int VAR_3; for (VAR_3 = 0; ; VAR_3++) { (*VAR_1)(VAR_2, "PowerPC %-16s PVR %08x\n", ppc_defs[VAR_3].name, ppc_defs[VAR_3].pvr); if (strcmp(ppc_defs[VAR_3].name, "default") == 0) ...
[ "void FUNC_0 (FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))\n{", "int VAR_3;", "for (VAR_3 = 0; ; VAR_3++) {", "(*VAR_1)(VAR_2, \"PowerPC %-16s PVR %08x\\n\",\nppc_defs[VAR_3].name, ppc_defs[VAR_3].pvr);", "if (strcmp(ppc_defs[VAR_3].name, \"default\") == 0)\nbreak;", "}", "}" ]
[ 0, 1, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ] ]
25,055
void object_delete(Object *obj) { object_unparent(obj); g_assert(obj->ref == 1); object_unref(obj); g_free(obj); }
true
qemu
fde9bf4470d4a3b6ee1da0dee2370ab028b6314a
void object_delete(Object *obj) { object_unparent(obj); g_assert(obj->ref == 1); object_unref(obj); g_free(obj); }
{ "code": [ " g_free(obj);" ], "line_no": [ 11 ] }
void FUNC_0(Object *VAR_0) { object_unparent(VAR_0); g_assert(VAR_0->ref == 1); object_unref(VAR_0); g_free(VAR_0); }
[ "void FUNC_0(Object *VAR_0)\n{", "object_unparent(VAR_0);", "g_assert(VAR_0->ref == 1);", "object_unref(VAR_0);", "g_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
25,056
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { Mpeg1Context *s = avctx->priv_data; uint8_t *buf_end, *buf_ptr; int ret, start_code, input_size; AVFrame *picture = data; M...
false
FFmpeg
bb463d81020a2f3c5cf3403e18f980171773f48a
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { Mpeg1Context *s = avctx->priv_data; uint8_t *buf_end, *buf_ptr; int ret, start_code, input_size; AVFrame *picture = data; M...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { Mpeg1Context *s = VAR_0->priv_data; uint8_t *buf_end, *buf_ptr; int VAR_5, VAR_6, VAR_7; AVFrame *picture = VAR_1; MpegEncContext *s2 = &s...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "Mpeg1Context *s = VAR_0->priv_data;", "uint8_t *buf_end, *buf_ptr;", "int VAR_5, VAR_6, VAR_7;", "AVFrame *picture = VAR_1;", "MpegEncContext *s2 = &s->mpeg_enc_ctx;", "dprintf(\"fill_buffer\\n\");", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [ 57,...
25,057
static struct scsi_task *iscsi_do_inquiry(struct iscsi_context *iscsi, int lun, int evpd, int pc) { int full_size; struct scsi_task *task = NULL; task = iscsi_inquiry_sync(iscsi, lun, evpd, pc, 64); if (task == NULL || task->status != SCSI_STATUS_GOOD) { ...
true
qemu
f2917853f715b0ef55df29eb2ffea29dc69ce814
static struct scsi_task *iscsi_do_inquiry(struct iscsi_context *iscsi, int lun, int evpd, int pc) { int full_size; struct scsi_task *task = NULL; task = iscsi_inquiry_sync(iscsi, lun, evpd, pc, 64); if (task == NULL || task->status != SCSI_STATUS_GOOD) { ...
{ "code": [ " int evpd, int pc)", " error_report(\"iSCSI: Inquiry command failed : %s\",", " iscsi_get_error(iscsi));" ], "line_no": [ 3, 47, 49 ] }
static struct scsi_task *FUNC_0(struct iscsi_context *VAR_0, int VAR_1, int VAR_2, int VAR_3) { int VAR_4; struct scsi_task *VAR_5 = NULL; VAR_5 = iscsi_inquiry_sync(VAR_0, VAR_1, VAR_2, VAR_3, 64); if (VAR_5 == NULL || VAR_5->status != SCSI_STATUS_GOOD) {...
[ "static struct scsi_task *FUNC_0(struct iscsi_context *VAR_0, int VAR_1,\nint VAR_2, int VAR_3)\n{", "int VAR_4;", "struct scsi_task *VAR_5 = NULL;", "VAR_5 = iscsi_inquiry_sync(VAR_0, VAR_1, VAR_2, VAR_3, 64);", "if (VAR_5 == NULL || VAR_5->status != SCSI_STATUS_GOOD) {", "goto fail;", "}", "VAR_4 = ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45, 47, 49 ], [ 51 ], [...
25,059
static target_ulong h_add_logical_lan_buffer(CPUPPCState *env, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { target_ulong reg = args[0]; target_ulong...
true
qemu
ad0ebb91cd8b5fdc4a583b03645677771f420a46
static target_ulong h_add_logical_lan_buffer(CPUPPCState *env, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { target_ulong reg = args[0]; target_ulong...
{ "code": [ " if (dev->add_buf_ptr >= SPAPR_VIO_TCE_PAGE_SIZE) {", " bd = ldq_tce(sdev, dev->buf_list + dev->add_buf_ptr);", " stq_tce(sdev, dev->buf_list + dev->add_buf_ptr, buf);", " return H_PARAMETER;", " return H_PARAMETER;", " return H_SUCCESS;", " ...
static target_ulong FUNC_0(CPUPPCState *env, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { target_ulong reg = args[0]; target_ulong buf = args[1]; ...
[ "static target_ulong FUNC_0(CPUPPCState *env,\nsPAPREnvironment *spapr,\ntarget_ulong opcode,\ntarget_ulong *args)\n{", "target_ulong reg = args[0];", "target_ulong buf = args[1];", "VIOsPAPRDevice *sdev = spapr_vio_find_by_reg(spapr->vio_bus, reg);", "VIOsPAPRVLANDevice *dev = (VIOsPAPRVLANDevice *)sdev;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [...
25,060
static uint32_t unassigned_mem_readw(void *opaque, target_phys_addr_t addr) { #ifdef DEBUG_UNASSIGNED printf("Unassigned mem read " TARGET_FMT_plx "\n", addr); #endif #if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE) do_unassigned_access(addr, 0, 0, 0, 2); #endif retur...
true
qemu
b14ef7c9ab41ea824c3ccadb070ad95567cca84e
static uint32_t unassigned_mem_readw(void *opaque, target_phys_addr_t addr) { #ifdef DEBUG_UNASSIGNED printf("Unassigned mem read " TARGET_FMT_plx "\n", addr); #endif #if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE) do_unassigned_access(addr, 0, 0, 0, 2); #endif retur...
{ "code": [ " do_unassigned_access(addr, 0, 0, 0, 2);" ], "line_no": [ 13 ] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr) { #ifdef DEBUG_UNASSIGNED printf("Unassigned mem read " TARGET_FMT_plx "\n", addr); #endif #if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE) do_unassigned_access(addr, 0, 0, 0, 2); #endif return 0; }
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{", "#ifdef DEBUG_UNASSIGNED\nprintf(\"Unassigned mem read \" TARGET_FMT_plx \"\\n\", addr);", "#endif\n#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)\ndo_unassigned_access(addr, 0, 0, 0, 2);", "#endif\nreturn 0;...
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11, 13 ], [ 15, 17 ], [ 19 ] ]
25,061
static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { int n, c, sample_size, v, ret; const short *samples; unsigned char *dst; const uint8_t *samples_uint8_t; const int16_t *samples_int16_t; const int3...
false
FFmpeg
bcaf64b605442e1622d16da89d4ec0e7730b8a8c
static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { int n, c, sample_size, v, ret; const short *samples; unsigned char *dst; const uint8_t *samples_uint8_t; const int16_t *samples_int16_t; const int3...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; const short *VAR_9; unsigned char *VAR_10; const uint8_t *VAR_11; const int16_t *VAR_12; const int32_t *VAR_13; const int6...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "const short *VAR_9;", "unsigned char *VAR_10;", "const uint8_t *VAR_11;", "const int16_t *VAR_12;", "const int32_t *VAR_13;", "const int64_t *VAR_14;", "const...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45, 47, 49 ], [ 51,...
25,062
static int RENAME(epzs_motion_search)(MpegEncContext * s, int *mx_ptr, int *my_ptr, int P[10][2], int pred_x, int pred_y, uint8_t *src_data[3], uint8_t *ref_data[3], int stride, int uvstride, int16_t (*last_mv)[2], ...
false
FFmpeg
80ee9fc0e305b815b4b67bbf8fa9ceccdc1d369e
static int RENAME(epzs_motion_search)(MpegEncContext * s, int *mx_ptr, int *my_ptr, int P[10][2], int pred_x, int pred_y, uint8_t *src_data[3], uint8_t *ref_data[3], int stride, int uvstride, int16_t (*last_mv)[2], ...
{ "code": [], "line_no": [] }
static int FUNC_0(epzs_motion_search)(MpegEncContext * s, int *mx_ptr, int *my_ptr, int P[10][2], int pred_x, int pred_y, uint8_t *src_data[3], uint8_t *ref_data[3], int stride, int uvstride, int16_t (*last_mv)[2], ...
[ "static int FUNC_0(epzs_motion_search)(MpegEncContext * s,\nint *mx_ptr, int *my_ptr,\nint P[10][2], int pred_x, int pred_y, uint8_t *src_data[3],\nuint8_t *ref_data[3], int stride, int uvstride, int16_t (*last_mv)[2],\nint ref_mv_scale, uint8_t * const mv_penalty)\n{", "int VAR_0[2]={0, 0};", "int VAR_1, VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [...
25,063
static void megasas_complete_frame(MegasasState *s, uint64_t context) { PCIDevice *pci_dev = PCI_DEVICE(s); int tail, queue_offset; /* Decrement busy count */ s->busy--; if (s->reply_queue_pa) { /* * Put command on the reply queue. * Context is opaque, but emul...
true
qemu
6df5718bd3ec56225c44cf96440c723c1b611b87
static void megasas_complete_frame(MegasasState *s, uint64_t context) { PCIDevice *pci_dev = PCI_DEVICE(s); int tail, queue_offset; s->busy--; if (s->reply_queue_pa) { tail = s->reply_queue_head; if (megasas_use_queue64(s)) { queue_offset =...
{ "code": [], "line_no": [] }
static void FUNC_0(MegasasState *VAR_0, uint64_t VAR_1) { PCIDevice *pci_dev = PCI_DEVICE(VAR_0); int VAR_2, VAR_3; VAR_0->busy--; if (VAR_0->reply_queue_pa) { VAR_2 = VAR_0->reply_queue_head; if (megasas_use_queue64(VAR_0)) { VAR_3 = VAR_2...
[ "static void FUNC_0(MegasasState *VAR_0, uint64_t VAR_1)\n{", "PCIDevice *pci_dev = PCI_DEVICE(VAR_0);", "int VAR_2, VAR_3;", "VAR_0->busy--;", "if (VAR_0->reply_queue_pa) {", "VAR_2 = VAR_0->reply_queue_head;", "if (megasas_use_queue64(VAR_0)) {", "VAR_3 = VAR_2 * sizeof(uint64_t);", "stq_le_phys(&...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 17 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 55, 57 ], [ 59 ], [ 63...
25,064
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const dec_2dvlc_t *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[64]; uint8_t run_buf[64];...
true
FFmpeg
6138ed777db101c26d19b96e6a27b8499ab9f4e7
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const dec_2dvlc_t *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[64]; uint8_t run_buf[64];...
{ "code": [ " DCTELEM level_buf[64];", " uint8_t run_buf[64];" ], "line_no": [ 9, 11 ] }
static int FUNC_0(AVSContext *VAR_0, GetBitContext *VAR_1, const dec_2dvlc_t *VAR_2, int VAR_3, int VAR_4, uint8_t *VAR_5, int VAR_6) { int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; DCTELEM level_buf[64]; uint8_t run_buf[64]; DCT...
[ "static int FUNC_0(AVSContext *VAR_0, GetBitContext *VAR_1,\nconst dec_2dvlc_t *VAR_2, int VAR_3,\nint VAR_4, uint8_t *VAR_5, int VAR_6) {", "int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "DCTELEM level_buf[64];", "uint8_t run_buf[64];", "DCTELEM *block = VAR_0->block;", "for(VAR_7=0;VAR_7<65;VAR_7++...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [...
25,065
int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt) { FrameThreadContext *fctx = avctx->internal->thread_ctx; int finished = fctx->next_finished; PerThreadContext *p; int err; /* re...
true
FFmpeg
1269cd5b6f540bef5913bf134d2f461aac50d70b
int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt) { FrameThreadContext *fctx = avctx->internal->thread_ctx; int finished = fctx->next_finished; PerThreadContext *p; int err; ...
{ "code": [ " err = update_context_from_user(p->avctx, avctx);", " if (err)", " goto finish;", " err = submit_packet(p, avpkt);" ], "line_no": [ 37, 39, 41, 43 ] }
int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2, AVPacket *VAR_3) { FrameThreadContext *fctx = VAR_0->internal->thread_ctx; int VAR_4 = fctx->next_finished; PerThreadContext *p; int VAR_5; async_unlock(fctx); ...
[ "int FUNC_0(AVCodecContext *VAR_0,\nAVFrame *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "FrameThreadContext *fctx = VAR_0->internal->thread_ctx;", "int VAR_4 = fctx->next_finished;", "PerThreadContext *p;", "int VAR_5;", "async_unlock(fctx);", "p = &fctx->threads[fctx->next_decoding];", "VAR_5 = update...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 23 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 59, 61 ], [ 65 ], [ 67 ], [ 69 ], [ 71 ], [ 73 ], [...
25,067
static void gen_tlbld_6xx(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_6xx_tlbd(cpu_env, cpu_gpr[rB(ctx->opcode)]); #endif...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_tlbld_6xx(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_6xx_tlbd(cpu_env, cpu_gpr[rB(ctx->opcode)]); #endif...
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_6xx_tlbd(cpu_env, cpu_gpr[rB(VAR_0->opcode)]); #en...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "gen_helper_6xx_tlbd(cpu_env, cpu_gpr[rB(VAR_0->opcode)]);", "#e...
[ 0, 1, 1, 1, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ] ]
25,068
static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd) { USBDevice *dev; USBEndpoint *ep; int ret; uint32_t i, len, pid, dir, devaddr, endp; uint32_t pg, off, ptr1, ptr2, max, mult; dir =(itd->bufptr[1] & ITD_BUFPTR_DIRECTION); devaddr = get_field(i...
true
qemu
aa0568ff2559d7717f4684af6a83d0bd1a125f56
static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd) { USBDevice *dev; USBEndpoint *ep; int ret; uint32_t i, len, pid, dir, devaddr, endp; uint32_t pg, off, ptr1, ptr2, max, mult; dir =(itd->bufptr[1] & ITD_BUFPTR_DIRECTION); devaddr = get_field(i...
{ "code": [ " usb_packet_setup(&ehci->ipacket, pid, ep);", " usb_packet_map(&ehci->ipacket, &ehci->isgl);", " ret = usb_handle_packet(dev, &ehci->ipacket);", " usb_packet_unmap(&ehci->ipacket);" ], "line_no": [ 93, 95, 99, 103 ] }
static int FUNC_0(EHCIState *VAR_0, EHCIitd *VAR_1) { USBDevice *dev; USBEndpoint *ep; int VAR_2; uint32_t i, len, pid, dir, devaddr, endp; uint32_t pg, off, ptr1, ptr2, max, mult; dir =(VAR_1->bufptr[1] & ITD_BUFPTR_DIRECTION); devaddr = get_field(VAR_...
[ "static int FUNC_0(EHCIState *VAR_0,\nEHCIitd *VAR_1)\n{", "USBDevice *dev;", "USBEndpoint *ep;", "int VAR_2;", "uint32_t i, len, pid, dir, devaddr, endp;", "uint32_t pg, off, ptr1, ptr2, max, mult;", "dir =(VAR_1->bufptr[1] & ITD_BUFPTR_DIRECTION);", "devaddr = get_field(VAR_1->bufptr[0], ITD_BUFPTR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
25,069
static int swf_probe(AVProbeData *p) { /* check file header */ if (p->buf_size <= 16) return 0; if ((p->buf[0] == 'F' || p->buf[0] == 'C') && p->buf[1] == 'W' && p->buf[2] == 'S') return AVPROBE_SCORE_MAX; else return 0; }
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int swf_probe(AVProbeData *p) { if (p->buf_size <= 16) return 0; if ((p->buf[0] == 'F' || p->buf[0] == 'C') && p->buf[1] == 'W' && p->buf[2] == 'S') return AVPROBE_SCORE_MAX; else return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (VAR_0->buf_size <= 16) return 0; if ((VAR_0->buf[0] == 'F' || VAR_0->buf[0] == 'C') && VAR_0->buf[1] == 'W' && VAR_0->buf[2] == 'S') return AVPROBE_SCORE_MAX; else return 0; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (VAR_0->buf_size <= 16)\nreturn 0;", "if ((VAR_0->buf[0] == 'F' || VAR_0->buf[0] == 'C') && VAR_0->buf[1] == 'W' &&\nVAR_0->buf[2] == 'S')\nreturn AVPROBE_SCORE_MAX;", "else\nreturn 0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9 ], [ 11, 13, 15 ], [ 17, 19 ], [ 21 ] ]
25,070
static int16_t *precalc_coefs(double dist25, int depth) { int i; double gamma, simil, C; int16_t *ct = av_malloc((512<<LUT_BITS)*sizeof(int16_t)); if (!ct) return NULL; gamma = log(0.25) / log(1.0 - FFMIN(dist25,252.0)/255.0 - 0.00001); for (i = -255<<LUT_BITS; i <= 255<<LUT_...
false
FFmpeg
4240e6a92117811509be3e5f360a44dde8618040
static int16_t *precalc_coefs(double dist25, int depth) { int i; double gamma, simil, C; int16_t *ct = av_malloc((512<<LUT_BITS)*sizeof(int16_t)); if (!ct) return NULL; gamma = log(0.25) / log(1.0 - FFMIN(dist25,252.0)/255.0 - 0.00001); for (i = -255<<LUT_BITS; i <= 255<<LUT_...
{ "code": [], "line_no": [] }
static int16_t *FUNC_0(double dist25, int depth) { int VAR_0; double VAR_1, VAR_2, VAR_3; int16_t *ct = av_malloc((512<<LUT_BITS)*sizeof(int16_t)); if (!ct) return NULL; VAR_1 = log(0.25) / log(1.0 - FFMIN(dist25,252.0)/255.0 - 0.00001); for (VAR_0 = -255<<LUT_BITS; VAR_0 <= ...
[ "static int16_t *FUNC_0(double dist25, int depth)\n{", "int VAR_0;", "double VAR_1, VAR_2, VAR_3;", "int16_t *ct = av_malloc((512<<LUT_BITS)*sizeof(int16_t));", "if (!ct)\nreturn NULL;", "VAR_1 = log(0.25) / log(1.0 - FFMIN(dist25,252.0)/255.0 - 0.00001);", "for (VAR_0 = -255<<LUT_BITS; VAR_0 <= 255<<LU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
25,072
static void avc_biwgt_4x2_msa(uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t log2_denom, int32_t src_weight, ...
false
FFmpeg
bcd7bf7eeb09a395cc01698842d1b8be9af483fc
static void avc_biwgt_4x2_msa(uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t log2_denom, int32_t src_weight, ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int32_t VAR_1, uint8_t *VAR_2, int32_t VAR_3, int32_t VAR_4, int32_t VAR_5, int32_t VAR_6, ...
[ "static void FUNC_0(uint8_t *VAR_0,\nint32_t VAR_1,\nuint8_t *VAR_2,\nint32_t VAR_3,\nint32_t VAR_4,\nint32_t VAR_5,\nint32_t VAR_6,\nint32_t VAR_7)\n{", "uint32_t load0, load1, out0, out1;", "v16i8 src_wgt, dst_wgt, wgt;", "v16i8 src0, src1, dst0, dst1;", "v8i16 temp0, temp1, denom, offset, add_val;", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [...
25,073
static int asf_read_value(AVFormatContext *s, uint8_t *name, uint16_t name_len, uint16_t val_len, int type, AVDictionary **met) { int ret; uint8_t *value; uint16_t buflen = 2 * val_len + 1; AVIOContext *pb = s->pb; value = av_malloc(buflen); if (!value) ...
true
FFmpeg
fdbc544d29176ba69d67dd879df4696f0a19052e
static int asf_read_value(AVFormatContext *s, uint8_t *name, uint16_t name_len, uint16_t val_len, int type, AVDictionary **met) { int ret; uint8_t *value; uint16_t buflen = 2 * val_len + 1; AVIOContext *pb = s->pb; value = av_malloc(buflen); if (!value) ...
{ "code": [ "static int asf_read_value(AVFormatContext *s, uint8_t *name, uint16_t name_len," ], "line_no": [ 1 ] }
static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, uint16_t VAR_2, uint16_t VAR_3, int VAR_4, AVDictionary **VAR_5) { int VAR_6; uint8_t *value; uint16_t buflen = 2 * VAR_3 + 1; AVIOContext *pb = VAR_0->pb; value = av_malloc(buflen); if (!value) ...
[ "static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, uint16_t VAR_2,\nuint16_t VAR_3, int VAR_4, AVDictionary **VAR_5)\n{", "int VAR_6;", "uint8_t *value;", "uint16_t buflen = 2 * VAR_3 + 1;", "AVIOContext *pb = VAR_0->pb;", "value = av_malloc(buflen);", "if (!value)\nreturn AVERROR(ENOMEM);", "...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [...
25,074
static int vdi_check(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix) { /* TODO: additional checks possible. */ BDRVVdiState *s = (BDRVVdiState *)bs->opaque; uint32_t blocks_allocated = 0; uint32_t block; uint32_t *bmap; logout("\n"); if (fix) { ...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
static int vdi_check(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix) { BDRVVdiState *s = (BDRVVdiState *)bs->opaque; uint32_t blocks_allocated = 0; uint32_t block; uint32_t *bmap; logout("\n"); if (fix) { return -ENOTSUP; } ...
{ "code": [ " bmap = g_try_malloc(s->header.blocks_in_image * sizeof(uint32_t));" ], "line_no": [ 29 ] }
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, BdrvCheckMode VAR_2) { BDRVVdiState *s = (BDRVVdiState *)VAR_0->opaque; uint32_t blocks_allocated = 0; uint32_t block; uint32_t *bmap; logout("\n"); if (VAR_2) { return -ENOTSUP; ...
[ "static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nBdrvCheckMode VAR_2)\n{", "BDRVVdiState *s = (BDRVVdiState *)VAR_0->opaque;", "uint32_t blocks_allocated = 0;", "uint32_t block;", "uint32_t *bmap;", "logout(\"\\n\");", "if (VAR_2) {", "return -ENOTSUP;", "}", "bmap = g_try_mall...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], ...
25,076
static void uart_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { LM32UartState *s = opaque; unsigned char ch = value; trace_lm32_uart_memory_write(addr, value); addr >>= 2; switch (addr) { case R_RXTX: if (s->chr) { qem...
true
qemu
6ab3fc32ea640026726bc5f9f4db622d0954fb8a
static void uart_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { LM32UartState *s = opaque; unsigned char ch = value; trace_lm32_uart_memory_write(addr, value); addr >>= 2; switch (addr) { case R_RXTX: if (s->chr) { qem...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { LM32UartState *s = VAR_0; unsigned char VAR_4 = VAR_2; trace_lm32_uart_memory_write(VAR_1, VAR_2); VAR_1 >>= 2; switch (VAR_1) { case R_RXTX: if (s->chr) { q...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "LM32UartState *s = VAR_0;", "unsigned char VAR_4 = VAR_2;", "trace_lm32_uart_memory_write(VAR_1, VAR_2);", "VAR_1 >>= 2;", "switch (VAR_1) {", "case R_RXTX:\nif (s->chr) {", "qemu_chr_fe_write_all(s->chr, &VAR_4, 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 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39, 41 ], [ 43 ], [ 45, 47, 49, 51, 53 ], [ 55 ], [ 57,...
25,078
static void test_opts_parse_size(void) { Error *err = NULL; QemuOpts *opts; /* Lower limit zero */ opts = qemu_opts_parse(&opts_list_02, "size1=0", false, &error_abort); g_assert_cmpuint(opts_count(opts), ==, 1); g_assert_cmpuint(qemu_opt_get_size(opts, "size1", 1), ==, 0); /* No...
true
qemu
75cdcd1553e74b5edc58aed23e3b2da8dabb1876
static void test_opts_parse_size(void) { Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse(&opts_list_02, "size1=0", false, &error_abort); g_assert_cmpuint(opts_count(opts), ==, 1); g_assert_cmpuint(qemu_opt_get_size(opts, "size1", 1), ==, 0); opts = qemu_o...
{ "code": [ " false, &error_abort);", " g_assert_cmpuint(opts_count(opts), ==, 1);", " g_assert_cmpuint(qemu_opt_get_size(opts, \"size1\", 1), ==, 0);", " false, &error_abort);", " g_assert_cmpuint(opts_count(opts), ==, 1);", " g_...
static void FUNC_0(void) { Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse(&opts_list_02, "size1=0", false, &error_abort); g_assert_cmpuint(opts_count(opts), ==, 1); g_assert_cmpuint(qemu_opt_get_size(opts, "size1", 1), ==, 0); opts = qemu_opts_parse(&opt...
[ "static void FUNC_0(void)\n{", "Error *err = NULL;", "QemuOpts *opts;", "opts = qemu_opts_parse(&opts_list_02, \"size1=0\", false, &error_abort);", "g_assert_cmpuint(opts_count(opts), ==, 1);", "g_assert_cmpuint(qemu_opt_get_size(opts, \"size1\", 1), ==, 0);", "opts = qemu_opts_parse(&opts_list_02,\n\"s...
[ 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 27, 29, 31, 33, 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 55, 57, 59, 61 ], [ 63 ], [ 65, 67 ], ...
25,079
static int usbredir_post_load(void *priv, int version_id) { USBRedirDevice *dev = priv; switch (dev->device_info.speed) { case usb_redir_speed_low: dev->dev.speed = USB_SPEED_LOW; break; case usb_redir_speed_full: dev->dev.speed = USB_SPEED_FULL; break; case usb_redir...
true
qemu
3713e1485e6eace7d48b9c790602cfd92c616e5f
static int usbredir_post_load(void *priv, int version_id) { USBRedirDevice *dev = priv; switch (dev->device_info.speed) { case usb_redir_speed_low: dev->dev.speed = USB_SPEED_LOW; break; case usb_redir_speed_full: dev->dev.speed = USB_SPEED_FULL; break; case usb_redir...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, int VAR_1) { USBRedirDevice *dev = VAR_0; switch (dev->device_info.speed) { case usb_redir_speed_low: dev->dev.speed = USB_SPEED_LOW; break; case usb_redir_speed_full: dev->dev.speed = USB_SPEED_FULL; break; case usb_redir_speed_high: ...
[ "static int FUNC_0(void *VAR_0, int VAR_1)\n{", "USBRedirDevice *dev = VAR_0;", "switch (dev->device_info.speed) {", "case usb_redir_speed_low:\ndev->dev.speed = USB_SPEED_LOW;", "break;", "case usb_redir_speed_full:\ndev->dev.speed = USB_SPEED_FULL;", "break;", "case usb_redir_speed_high:\ndev->dev.s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5, 6 ], [ 7 ], [ 8, 9 ], [ 10 ], [ 11, 12 ], [ 13 ], [ 14, 15 ], [ 16 ], [ 17, 18 ], [ 19 ], [ 20 ], [ 21 ] ]
25,080
static void smc_decode_stream(SmcContext *s) { int width = s->avctx->width; int height = s->avctx->height; int stride = s->frame.linesize[0]; int i; int stream_ptr = 0; int chunk_size; unsigned char opcode; int n_blocks; unsigned int color_flags; unsigned int color_fla...
true
FFmpeg
1007a805a486a1348a0543ac2dd99d823148d25c
static void smc_decode_stream(SmcContext *s) { int width = s->avctx->width; int height = s->avctx->height; int stride = s->frame.linesize[0]; int i; int stream_ptr = 0; int chunk_size; unsigned char opcode; int n_blocks; unsigned int color_flags; unsigned int color_fla...
{ "code": [ " while (n_blocks--) {" ], "line_no": [ 137 ] }
static void FUNC_0(SmcContext *VAR_0) { int VAR_1 = VAR_0->avctx->VAR_1; int VAR_2 = VAR_0->avctx->VAR_2; int VAR_3 = VAR_0->frame.linesize[0]; int VAR_4; int VAR_5 = 0; int VAR_6; unsigned char VAR_7; int VAR_8; unsigned int VAR_9; unsigned int VAR_10; unsigned i...
[ "static void FUNC_0(SmcContext *VAR_0)\n{", "int VAR_1 = VAR_0->avctx->VAR_1;", "int VAR_2 = VAR_0->avctx->VAR_2;", "int VAR_3 = VAR_0->frame.linesize[0];", "int VAR_4;", "int VAR_5 = 0;", "int VAR_6;", "unsigned char VAR_7;", "int VAR_8;", "unsigned int VAR_9;", "unsigned int VAR_10;", "unsig...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
25,082
static void vhost_scsi_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); dc->exit = vhost_scsi_exit; dc->props = vhost_scsi_properties; set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); vdc->init = vhos...
true
qemu
e3c9d76acc984218264bbc6435b0c09f959ed9b8
static void vhost_scsi_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); dc->exit = vhost_scsi_exit; dc->props = vhost_scsi_properties; set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); vdc->init = vhos...
{ "code": [ " dc->exit = vhost_scsi_exit;" ], "line_no": [ 9 ] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(VAR_0); dc->exit = vhost_scsi_exit; dc->props = vhost_scsi_properties; set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); vdc->init = vhost_scsi_init; ...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(VAR_0);", "dc->exit = vhost_scsi_exit;", "dc->props = vhost_scsi_properties;", "set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);", "vdc->init = vhost_scsi_in...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
25,083
ivshmem_client_parse_args(IvshmemClientArgs *args, int argc, char *argv[]) { int c; while ((c = getopt(argc, argv, "h" /* help */ "v" /* verbose */ "S:" /* unix_sock_path */ )) != -1) { switch (c) { ...
true
qemu
45b00c44ceffeac8143fb8857a12677234114f2b
ivshmem_client_parse_args(IvshmemClientArgs *args, int argc, char *argv[]) { int c; while ((c = getopt(argc, argv, "h" "v" "S:" )) != -1) { switch (c) { case 'h': ivshmem_cl...
{ "code": [ " args->unix_sock_path = strdup(optarg);" ], "line_no": [ 41 ] }
FUNC_0(IvshmemClientArgs *VAR_0, int VAR_1, char *VAR_2[]) { int VAR_3; while ((VAR_3 = getopt(VAR_1, VAR_2, "h" "v" "S:" )) != -1) { switch (VAR_3) { case 'h': ivshmem_clie...
[ "FUNC_0(IvshmemClientArgs *VAR_0, int VAR_1, char *VAR_2[])\n{", "int VAR_3;", "while ((VAR_3 = getopt(VAR_1, VAR_2,\n\"h\"\n\"v\"\n\"S:\"\n)) != -1) {", "switch (VAR_3) {", "case 'h':\nivshmem_client_usage(VAR_2[0], 0);", "break;", "case 'v':\nVAR_0->verbose = 1;", "break;", "case 'S':\nVAR_0->unix...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15, 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ] ]
25,084
static int estimate_sid_gain(G723_1_Context *p) { int i, shift, seg, seg2, t, val, val_add, x, y; shift = 16 - p->cur_gain * 2; if (shift > 0) t = p->sid_gain << shift; else t = p->sid_gain >> -shift; x = av_clipl_int32(t * (int64_t)cng_filt[0] >> 16); if (x >= cng_b...
true
FFmpeg
c4c0245686bc2fcc545644101c7b328fed71f268
static int estimate_sid_gain(G723_1_Context *p) { int i, shift, seg, seg2, t, val, val_add, x, y; shift = 16 - p->cur_gain * 2; if (shift > 0) t = p->sid_gain << shift; else t = p->sid_gain >> -shift; x = av_clipl_int32(t * (int64_t)cng_filt[0] >> 16); if (x >= cng_b...
{ "code": [ " val = (seg2 - 1 << 4) + val;", " val = (seg2 - 1 << 4) + val;" ], "line_no": [ 81, 81 ] }
static int FUNC_0(G723_1_Context *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; VAR_2 = 16 - VAR_0->cur_gain * 2; if (VAR_2 > 0) VAR_5 = VAR_0->sid_gain << VAR_2; else VAR_5 = VAR_0->sid_gain >> -VAR_2; VAR_8 = av_clipl_int32(VAR_5 * (int64_t)c...
[ "static int FUNC_0(G723_1_Context *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "VAR_2 = 16 - VAR_0->cur_gain * 2;", "if (VAR_2 > 0)\nVAR_5 = VAR_0->sid_gain << VAR_2;", "else\nVAR_5 = VAR_0->sid_gain >> -VAR_2;", "VAR_8 = av_clipl_int32(VAR_5 * (int64_t)cng_filt[0] >>...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], ...
25,085
static int decode_exp_vlc(WMACodecContext *s, int ch) { int last_exp, n, code; const uint16_t *ptr; float v, max_scale; uint32_t *q, *q_end, iv; const float *ptab = pow_tab + 60; const uint32_t *iptab = (const uint32_t*)ptab; ptr = s->exponent_bands[s->frame_len_bits - s->block_len...
true
FFmpeg
b4bccf3e4e58f6fe58043791ca09db01a4343fac
static int decode_exp_vlc(WMACodecContext *s, int ch) { int last_exp, n, code; const uint16_t *ptr; float v, max_scale; uint32_t *q, *q_end, iv; const float *ptab = pow_tab + 60; const uint32_t *iptab = (const uint32_t*)ptab; ptr = s->exponent_bands[s->frame_len_bits - s->block_len...
{ "code": [ " if ((unsigned)last_exp + 60 > FF_ARRAY_ELEMS(pow_tab)) {" ], "line_no": [ 73 ] }
static int FUNC_0(WMACodecContext *VAR_0, int VAR_1) { int VAR_2, VAR_3, VAR_4; const uint16_t *VAR_5; float VAR_6, VAR_7; uint32_t *q, *q_end, iv; const float *VAR_8 = pow_tab + 60; const uint32_t *VAR_9 = (const uint32_t*)VAR_8; VAR_5 = VAR_0->exponent_bands[VAR_0->frame_len_bits...
[ "static int FUNC_0(WMACodecContext *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "const uint16_t *VAR_5;", "float VAR_6, VAR_7;", "uint32_t *q, *q_end, iv;", "const float *VAR_8 = pow_tab + 60;", "const uint32_t *VAR_9 = (const uint32_t*)VAR_8;", "VAR_5 = VAR_0->exponent_bands[VAR_0->frame_len_b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
25,086
static int decode(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { BC_STATUS ret; BC_DTS_STATUS decoder_status; CopyRet rec_ret; CHDContext *priv = avctx->priv_data; HANDLE dev = priv->dev; int len = avpkt->size; uint8_t pic_type = 0; ...
true
FFmpeg
ae7a4a1594e3624f7c844dec44266d2dc74a6be2
static int decode(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { BC_STATUS ret; BC_DTS_STATUS decoder_status; CopyRet rec_ret; CHDContext *priv = avctx->priv_data; HANDLE dev = priv->dev; int len = avpkt->size; uint8_t pic_type = 0; ...
{ "code": [ " rec_ret = receive_frame(avctx, data, data_size, 0);", " rec_ret = receive_frame(avctx, data, data_size, 1);" ], "line_no": [ 215, 267 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { BC_STATUS ret; BC_DTS_STATUS decoder_status; CopyRet rec_ret; CHDContext *priv = VAR_0->priv_data; HANDLE dev = priv->dev; int VAR_4 = VAR_3->size; uint8_t pic_type = 0; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "BC_STATUS ret;", "BC_DTS_STATUS decoder_status;", "CopyRet rec_ret;", "CHDContext *priv = VAR_0->priv_data;", "HANDLE dev = priv->dev;", "int VAR_4 = VAR_3->size;", "uint8_t pic_type = 0;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43, 45, 47 ], [ 49, 51, 53 ], [...
25,087
static int au_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret; ret= av_get_packet(s->pb, pkt, BLOCK_SIZE * s->streams[0]->codec->channels * av_get_bits_per_sample(s->streams[0]->codec->codec_id) >> 3); if (ret < 0) ...
true
FFmpeg
7effbee66cf457c62f795d9b9ed3a1110b364b89
static int au_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret; ret= av_get_packet(s->pb, pkt, BLOCK_SIZE * s->streams[0]->codec->channels * av_get_bits_per_sample(s->streams[0]->codec->codec_id) >> 3); if (ret < 0) ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2; VAR_2= av_get_packet(VAR_0->pb, VAR_1, BLOCK_SIZE * VAR_0->streams[0]->codec->channels * av_get_bits_per_sample(VAR_0->streams[0]->codec->codec_id) >> 3); ...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "int VAR_2;", "VAR_2= av_get_packet(VAR_0->pb, VAR_1, BLOCK_SIZE *\nVAR_0->streams[0]->codec->channels *\nav_get_bits_per_sample(VAR_0->streams[0]->codec->codec_id) >> 3);", "if (VAR_2 < 0)\nreturn VAR_2;", "VAR_1->stream_index = 0;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13, 15 ], [ 17, 19 ], [ 22 ], [ 30 ], [ 32 ], [ 34 ] ]
25,088
static int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track) { int tag = track->enc->codec_tag; if (track->mode == MODE_MP4 || track->mode == MODE_PSP) { if (!codec_get_tag(ff_mp4_obj_type, track->enc->codec_id)) return 0; if (track->enc->codec_id == CODEC_ID_H264) ...
false
FFmpeg
50d2d05d3436922e89fcdfdd87411669eab61c02
static int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track) { int tag = track->enc->codec_tag; if (track->mode == MODE_MP4 || track->mode == MODE_PSP) { if (!codec_get_tag(ff_mp4_obj_type, track->enc->codec_id)) return 0; if (track->enc->codec_id == CODEC_ID_H264) ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, MOVTrack *VAR_1) { int VAR_2 = VAR_1->enc->codec_tag; if (VAR_1->mode == MODE_MP4 || VAR_1->mode == MODE_PSP) { if (!codec_get_tag(ff_mp4_obj_type, VAR_1->enc->codec_id)) return 0; if (VAR_1->enc->codec_id == CODEC_ID_H264) VA...
[ "static int FUNC_0(AVFormatContext *VAR_0, MOVTrack *VAR_1)\n{", "int VAR_2 = VAR_1->enc->codec_tag;", "if (VAR_1->mode == MODE_MP4 || VAR_1->mode == MODE_PSP) {", "if (!codec_get_tag(ff_mp4_obj_type, VAR_1->enc->codec_id))\nreturn 0;", "if (VAR_1->enc->codec_id == CODEC_ID_H264) VAR_2 = MKTAG('a'...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31, 33 ], [ 35, 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [...
25,092
static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; if (avctx->bit_rate > 0) { ctx->encode_config.rcParams.averageBitRate = avctx->bit_rate; } else if (ctx->encode_config.rcParams.averageBitRate > 0) { ctx->encode_config.rcParam...
false
FFmpeg
67db4ff3b66e96a20ddf1c264d07e146334ae88e
static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; if (avctx->bit_rate > 0) { ctx->encode_config.rcParams.averageBitRate = avctx->bit_rate; } else if (ctx->encode_config.rcParams.averageBitRate > 0) { ctx->encode_config.rcParam...
{ "code": [], "line_no": [] }
static av_cold void FUNC_0(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; if (avctx->bit_rate > 0) { ctx->encode_config.rcParams.averageBitRate = avctx->bit_rate; } else if (ctx->encode_config.rcParams.averageBitRate > 0) { ctx->encode_config.rcParams.maxBitRate = ctx...
[ "static av_cold void FUNC_0(AVCodecContext *avctx)\n{", "NvencContext *ctx = avctx->priv_data;", "if (avctx->bit_rate > 0) {", "ctx->encode_config.rcParams.averageBitRate = avctx->bit_rate;", "} else if (ctx->encode_config.rcParams.averageBitRate > 0) {", "ctx->encode_config.rcParams.maxBitRate = ctx->enc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
25,093
int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; AVFrame *pict = data; SliceInfo si; int i; int slice_count; ...
false
FFmpeg
de8cac167d52557aa0aced5c013c98f44ade98cf
int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; AVFrame *pict = data; SliceInfo si; int i; int slice_count; ...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { RV34DecContext *r = VAR_0->priv_data; MpegEncContext *s = &r->s; AVFrame *pict = VAR_1; SliceInfo si; int VAR_5; int VAR_6; uint8_t *slice...
[ "int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "RV34DecContext *r = VAR_0->priv_data;", "MpegEncContext *s = &r->s;", "AVFrame *pict = VAR_1;", "SliceInfo si;", "int VAR_5;", "int VAR_6;", "uint8_t *slices_hdr = NULL;", "int VAR_7 = 0;", "if (VAR_4 ==...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
25,094
static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw, int imgh) { int x, y, Y, U, V, A; uint8_t *lum, *cb, *cr; int dstx, dsty, dstw, dsth; const AVPicture *src = &rect->pict; dstw = av_clip(rect->w, 0, imgw); dsth = av_clip(rect->h, 0, imgh); dstx = av_cl...
false
FFmpeg
03037a4aad8b92c00ef2f115605ad20fc4410fe5
static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw, int imgh) { int x, y, Y, U, V, A; uint8_t *lum, *cb, *cr; int dstx, dsty, dstw, dsth; const AVPicture *src = &rect->pict; dstw = av_clip(rect->w, 0, imgw); dsth = av_clip(rect->h, 0, imgh); dstx = av_cl...
{ "code": [], "line_no": [] }
static void FUNC_0(AVPicture *VAR_0, const AVSubtitleRect *VAR_1, int VAR_2, int VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; uint8_t *lum, *cb, *cr; int VAR_10, VAR_11, VAR_12, VAR_13; const AVPicture *VAR_14 = &VAR_1->pict; VAR_12 = av_clip(VAR_1->w, 0, VAR_2); VAR_13 = av_c...
[ "static void FUNC_0(AVPicture *VAR_0, const AVSubtitleRect *VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "uint8_t *lum, *cb, *cr;", "int VAR_10, VAR_11, VAR_12, VAR_13;", "const AVPicture *VAR_14 = &VAR_1->pict;", "VAR_12 = av_clip(VAR_1->w, 0, VAR_2);", "VAR_13 = a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
25,096
int avio_read_partial(AVIOContext *s, unsigned char *buf, int size) { int len; if (size < 0) return -1; if (s->read_packet && s->write_flag) { len = s->read_packet(s->opaque, buf, size); if (len > 0) s->pos += len; return len; } len = s->b...
false
FFmpeg
a606f27f4c610708fa96e35eed7b7537d3d8f712
int avio_read_partial(AVIOContext *s, unsigned char *buf, int size) { int len; if (size < 0) return -1; if (s->read_packet && s->write_flag) { len = s->read_packet(s->opaque, buf, size); if (len > 0) s->pos += len; return len; } len = s->b...
{ "code": [], "line_no": [] }
int FUNC_0(AVIOContext *VAR_0, unsigned char *VAR_1, int VAR_2) { int VAR_3; if (VAR_2 < 0) return -1; if (VAR_0->read_packet && VAR_0->write_flag) { VAR_3 = VAR_0->read_packet(VAR_0->opaque, VAR_1, VAR_2); if (VAR_3 > 0) VAR_0->pos += VAR_3; return V...
[ "int FUNC_0(AVIOContext *VAR_0, unsigned char *VAR_1, int VAR_2)\n{", "int VAR_3;", "if (VAR_2 < 0)\nreturn -1;", "if (VAR_0->read_packet && VAR_0->write_flag) {", "VAR_3 = VAR_0->read_packet(VAR_0->opaque, VAR_1, VAR_2);", "if (VAR_3 > 0)\nVAR_0->pos += VAR_3;", "return VAR_3;", "}", "VAR_3 = VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 59 ], [ 61 ], ...
25,097
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { #if 0 MJpegDecodeContext *s = avctx->priv_data; #endif const int qscale = 5; uint8_t *buf_ptr, *buf_end, *recoded; int i = 0...
false
FFmpeg
934982c4ace1a3d5d627b518782ed092a456c49e
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { #if 0 MJpegDecodeContext *s = avctx->priv_data; #endif const int qscale = 5; uint8_t *buf_ptr, *buf_end, *recoded; int i = 0...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { #if 0 MJpegDecodeContext *s = VAR_0->priv_data; #endif const int VAR_5 = 5; uint8_t *buf_ptr, *buf_end, *recoded; int VAR_6 = 0, VAR_7 = 0;...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "#if 0\nMJpegDecodeContext *s = VAR_0->priv_data;", "#endif\nconst int VAR_5 = 5;", "uint8_t *buf_ptr, *buf_end, *recoded;", "int VAR_6 = 0, VAR_7 = 0;", "if (VAR_4 == 0)\nreturn 0;", "if (!VAR_0->width ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 25, 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47, 49 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ...
25,099
float32 helper_fdtos(CPUSPARCState *env, float64 src) { float32 ret; clear_float_exceptions(env); ret = float64_to_float32(src, &env->fp_status); check_ieee_exceptions(env); return ret; }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
float32 helper_fdtos(CPUSPARCState *env, float64 src) { float32 ret; clear_float_exceptions(env); ret = float64_to_float32(src, &env->fp_status); check_ieee_exceptions(env); return ret; }
{ "code": [], "line_no": [] }
float32 FUNC_0(CPUSPARCState *env, float64 src) { float32 ret; clear_float_exceptions(env); ret = float64_to_float32(src, &env->fp_status); check_ieee_exceptions(env); return ret; }
[ "float32 FUNC_0(CPUSPARCState *env, float64 src)\n{", "float32 ret;", "clear_float_exceptions(env);", "ret = float64_to_float32(src, &env->fp_status);", "check_ieee_exceptions(env);", "return ret;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
25,100
static void icp_control_init(target_phys_addr_t base) { MemoryRegion *io; io = (MemoryRegion *)g_malloc0(sizeof(MemoryRegion)); memory_region_init_io(io, &icp_control_ops, NULL, "control", 0x00800000); memory_region_add_subregion(get_system_memory(), base, io); /* ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void icp_control_init(target_phys_addr_t base) { MemoryRegion *io; io = (MemoryRegion *)g_malloc0(sizeof(MemoryRegion)); memory_region_init_io(io, &icp_control_ops, NULL, "control", 0x00800000); memory_region_add_subregion(get_system_memory(), base, io); }...
{ "code": [], "line_no": [] }
static void FUNC_0(target_phys_addr_t VAR_0) { MemoryRegion *io; io = (MemoryRegion *)g_malloc0(sizeof(MemoryRegion)); memory_region_init_io(io, &icp_control_ops, NULL, "control", 0x00800000); memory_region_add_subregion(get_system_memory(), VAR_0, io); }
[ "static void FUNC_0(target_phys_addr_t VAR_0)\n{", "MemoryRegion *io;", "io = (MemoryRegion *)g_malloc0(sizeof(MemoryRegion));", "memory_region_init_io(io, &icp_control_ops, NULL,\n\"control\", 0x00800000);", "memory_region_add_subregion(get_system_memory(), VAR_0, io);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 19 ] ]
25,101
gen_intermediate_code_internal(MoxieCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); DisasContext ctx; target_ulong pc_start; uint16_t *gen_opc_end; CPUBreakpoint *bp; int j, lj = -1; CPUMoxieState *env = &cpu->env; int n...
false
qemu
cd42d5b23691ad73edfd6dbcfc935a960a9c5a65
gen_intermediate_code_internal(MoxieCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); DisasContext ctx; target_ulong pc_start; uint16_t *gen_opc_end; CPUBreakpoint *bp; int j, lj = -1; CPUMoxieState *env = &cpu->env; int n...
{ "code": [], "line_no": [] }
FUNC_0(MoxieCPU *VAR_0, TranslationBlock *VAR_1, bool VAR_2) { CPUState *cs = CPU(VAR_0); DisasContext ctx; target_ulong pc_start; uint16_t *gen_opc_end; CPUBreakpoint *bp; int VAR_3, VAR_4 = -1; CPUMoxieState *env = &VAR_0->env; int VAR_5; ...
[ "FUNC_0(MoxieCPU *VAR_0, TranslationBlock *VAR_1,\nbool VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "DisasContext ctx;", "target_ulong pc_start;", "uint16_t *gen_opc_end;", "CPUBreakpoint *bp;", "int VAR_3, VAR_4 = -1;", "CPUMoxieState *env = &VAR_0->env;", "int VAR_5;", "pc_start = VAR_1->pc;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [...
25,102
USBBus *usb_bus_find(int busnr) { USBBus *bus; if (-1 == busnr) return TAILQ_FIRST(&busses); TAILQ_FOREACH(bus, &busses, next) { if (bus->busnr == busnr) return bus; } return NULL; }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
USBBus *usb_bus_find(int busnr) { USBBus *bus; if (-1 == busnr) return TAILQ_FIRST(&busses); TAILQ_FOREACH(bus, &busses, next) { if (bus->busnr == busnr) return bus; } return NULL; }
{ "code": [], "line_no": [] }
USBBus *FUNC_0(int busnr) { USBBus *bus; if (-1 == busnr) return TAILQ_FIRST(&busses); TAILQ_FOREACH(bus, &busses, next) { if (bus->busnr == busnr) return bus; } return NULL; }
[ "USBBus *FUNC_0(int busnr)\n{", "USBBus *bus;", "if (-1 == busnr)\nreturn TAILQ_FIRST(&busses);", "TAILQ_FOREACH(bus, &busses, next) {", "if (bus->busnr == busnr)\nreturn bus;", "}", "return NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
25,104
vreader_copy_list(VReaderList *list) { VReaderList *new_list = NULL; VReaderListEntry *current_entry = NULL; new_list = vreader_list_new(); if (new_list == NULL) { return NULL; } for (current_entry = vreader_list_get_first(list); current_entry; current_entry = vreader...
false
qemu
1687a089f103f9b7a1b4a1555068054cb46ee9e9
vreader_copy_list(VReaderList *list) { VReaderList *new_list = NULL; VReaderListEntry *current_entry = NULL; new_list = vreader_list_new(); if (new_list == NULL) { return NULL; } for (current_entry = vreader_list_get_first(list); current_entry; current_entry = vreader...
{ "code": [], "line_no": [] }
FUNC_0(VReaderList *VAR_0) { VReaderList *new_list = NULL; VReaderListEntry *current_entry = NULL; new_list = vreader_list_new(); if (new_list == NULL) { return NULL; } for (current_entry = vreader_list_get_first(VAR_0); current_entry; current_entry = vreader_list_get...
[ "FUNC_0(VReaderList *VAR_0)\n{", "VReaderList *new_list = NULL;", "VReaderListEntry *current_entry = NULL;", "new_list = vreader_list_new();", "if (new_list == NULL) {", "return NULL;", "}", "for (current_entry = vreader_list_get_first(VAR_0); current_entry;", "current_entry = vreader_list_get_next(...
[ 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 ], [ 37 ] ]
25,105
static int cow_find_streak(const uint8_t *bitmap, int value, int start, int nb_sectors) { int streak_value = value ? 0xFF : 0; int last = MIN(start + nb_sectors, BITS_PER_BITMAP_SECTOR); int bitnum = start; while (bitnum < last) { if ((bitnum & 7) == 0 && bitmap[bitnum / 8] == streak_value...
false
qemu
550830f9351291c585c963204ad9127998b1c1ce
static int cow_find_streak(const uint8_t *bitmap, int value, int start, int nb_sectors) { int streak_value = value ? 0xFF : 0; int last = MIN(start + nb_sectors, BITS_PER_BITMAP_SECTOR); int bitnum = start; while (bitnum < last) { if ((bitnum & 7) == 0 && bitmap[bitnum / 8] == streak_value...
{ "code": [], "line_no": [] }
static int FUNC_0(const uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3) { int VAR_4 = VAR_1 ? 0xFF : 0; int VAR_5 = MIN(VAR_2 + VAR_3, BITS_PER_BITMAP_SECTOR); int VAR_6 = VAR_2; while (VAR_6 < VAR_5) { if ((VAR_6 & 7) == 0 && VAR_0[VAR_6 / 8] == VAR_4) { VAR_6 += 8; ...
[ "static int FUNC_0(const uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4 = VAR_1 ? 0xFF : 0;", "int VAR_5 = MIN(VAR_2 + VAR_3, BITS_PER_BITMAP_SECTOR);", "int VAR_6 = VAR_2;", "while (VAR_6 < VAR_5) {", "if ((VAR_6 & 7) == 0 && VAR_0[VAR_6 / 8] == VAR_4) {", "VAR_6 += 8;", "continue;"...
[ 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 ] ]
25,106
static int raw_read_options(QDict *options, BlockDriverState *bs, BDRVRawState *s, Error **errp) { Error *local_err = NULL; QemuOpts *opts = NULL; int64_t real_size = 0; int ret; real_size = bdrv_getlength(bs->file->bs); if (real_size < 0) { error_setg_errno(errp, -real_si...
false
qemu
2e6fc7eb1a4af1b127df5f07b8bb28af891946fa
static int raw_read_options(QDict *options, BlockDriverState *bs, BDRVRawState *s, Error **errp) { Error *local_err = NULL; QemuOpts *opts = NULL; int64_t real_size = 0; int ret; real_size = bdrv_getlength(bs->file->bs); if (real_size < 0) { error_setg_errno(errp, -real_si...
{ "code": [], "line_no": [] }
static int FUNC_0(QDict *VAR_0, BlockDriverState *VAR_1, BDRVRawState *VAR_2, Error **VAR_3) { Error *local_err = NULL; QemuOpts *opts = NULL; int64_t real_size = 0; int VAR_4; real_size = bdrv_getlength(VAR_1->file->VAR_1); if (real_size < 0) { error_setg_errno(VAR_3, -re...
[ "static int FUNC_0(QDict *VAR_0, BlockDriverState *VAR_1,\nBDRVRawState *VAR_2, Error **VAR_3)\n{", "Error *local_err = NULL;", "QemuOpts *opts = NULL;", "int64_t real_size = 0;", "int VAR_4;", "real_size = bdrv_getlength(VAR_1->file->VAR_1);", "if (real_size < 0) {", "error_setg_errno(VAR_3, -real_si...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
25,107
static inline void RENAME(hyscale_fast)(SwsContext *c, int16_t *dst, long dstWidth, const uint8_t *src, int srcW, int xInc) { #if ARCH_X86 #if COMPILE_TEMPLATE_MMX2 int32_t *filterPos = c->hLumFilterPos; int16_t *filter = ...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(hyscale_fast)(SwsContext *c, int16_t *dst, long dstWidth, const uint8_t *src, int srcW, int xInc) { #if ARCH_X86 #if COMPILE_TEMPLATE_MMX2 int32_t *filterPos = c->hLumFilterPos; int16_t *filter = ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(hyscale_fast)(SwsContext *c, int16_t *dst, long dstWidth, const uint8_t *src, int srcW, int xInc) { #if ARCH_X86 #if COMPILE_TEMPLATE_MMX2 int32_t *filterPos = c->hLumFilterPos; int16_t *filter = ...
[ "static inline void FUNC_0(hyscale_fast)(SwsContext *c, int16_t *dst,\nlong dstWidth, const uint8_t *src, int srcW,\nint xInc)\n{", "#if ARCH_X86\n#if COMPILE_TEMPLATE_MMX2\nint32_t *filterPos = c->hLumFilterPos;", "int16_t *filter = c->hLumFilter;", "int canMMX2BeUsed = c->canMMX2BeUsed;", "void ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 59, 63, 65, 67,...
25,108
bool memory_region_is_skip_dump(MemoryRegion *mr) { return mr->skip_dump; }
false
qemu
21e00fa55f3fdfcbb20da7c6876c91ef3609b387
bool memory_region_is_skip_dump(MemoryRegion *mr) { return mr->skip_dump; }
{ "code": [], "line_no": [] }
bool FUNC_0(MemoryRegion *mr) { return mr->skip_dump; }
[ "bool FUNC_0(MemoryRegion *mr)\n{", "return mr->skip_dump;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
25,109
static ssize_t nbd_send_reply(int csock, struct nbd_reply *reply) { uint8_t buf[4 + 4 + 8]; /* Reply [ 0 .. 3] magic (NBD_REPLY_MAGIC) [ 4 .. 7] error (0 == no error) [ 7 .. 15] handle */ cpu_to_be32w((uint32_t*)buf, NBD_REPLY_MAGIC); cpu_to_be32w((uin...
false
qemu
185b43386ad999c80bdc58e41b87f05e5b3e8463
static ssize_t nbd_send_reply(int csock, struct nbd_reply *reply) { uint8_t buf[4 + 4 + 8]; cpu_to_be32w((uint32_t*)buf, NBD_REPLY_MAGIC); cpu_to_be32w((uint32_t*)(buf + 4), reply->error); cpu_to_be64w((uint64_t*)(buf + 8), reply->handle); TRACE("Sending response to client");...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(int csock, struct nbd_reply *reply) { uint8_t buf[4 + 4 + 8]; cpu_to_be32w((uint32_t*)buf, NBD_REPLY_MAGIC); cpu_to_be32w((uint32_t*)(buf + 4), reply->error); cpu_to_be64w((uint64_t*)(buf + 8), reply->handle); TRACE("Sending response to client"); ...
[ "static ssize_t FUNC_0(int csock, struct nbd_reply *reply)\n{", "uint8_t buf[4 + 4 + 8];", "cpu_to_be32w((uint32_t*)buf, NBD_REPLY_MAGIC);", "cpu_to_be32w((uint32_t*)(buf + 4), reply->error);", "cpu_to_be64w((uint64_t*)(buf + 8), reply->handle);", "TRACE(\"Sending response to client\");", "if (write_syn...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
25,110
static void switch_tss(CPUX86State *env, int tss_selector, uint32_t e1, uint32_t e2, int source, uint32_t next_eip) { int tss_limit, tss_limit_max, type, old_tss_limit_max, old_type, v1, v2, i; target_ulong tss_base; uint32_t new_regs[8], new_segs[6]; ...
false
qemu
7848c8d19f8556666df25044bbd5d8b29439c368
static void switch_tss(CPUX86State *env, int tss_selector, uint32_t e1, uint32_t e2, int source, uint32_t next_eip) { int tss_limit, tss_limit_max, type, old_tss_limit_max, old_type, v1, v2, i; target_ulong tss_base; uint32_t new_regs[8], new_segs[6]; ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUX86State *VAR_0, int VAR_1, uint32_t VAR_2, uint32_t VAR_3, int VAR_4, uint32_t VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13; target_ulong tss_base; uint32_t new_regs[8], new_segs[6]; uint32_t new_eflag...
[ "static void FUNC_0(CPUX86State *VAR_0, int VAR_1,\nuint32_t VAR_2, uint32_t VAR_3, int VAR_4,\nuint32_t VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;", "target_ulong tss_base;", "uint32_t new_regs[8], new_segs[6];", "uint32_t new_eflags, new_eip, new_cr3, new_ldt, new_trap;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
25,111
void kvmppc_read_hptes(ppc_hash_pte64_t *hptes, hwaddr ptex, int n) { int fd, rc; int i; fd = kvmppc_get_htab_fd(false, ptex, &error_abort); i = 0; while (i < n) { struct kvm_get_htab_header *hdr; int m = n < HPTES_PER_GROUP ? n : HPTES_PER_GROUP; char buf[sizeof...
false
qemu
a36593e16757e524c1596d93914155bd8acbb90a
void kvmppc_read_hptes(ppc_hash_pte64_t *hptes, hwaddr ptex, int n) { int fd, rc; int i; fd = kvmppc_get_htab_fd(false, ptex, &error_abort); i = 0; while (i < n) { struct kvm_get_htab_header *hdr; int m = n < HPTES_PER_GROUP ? n : HPTES_PER_GROUP; char buf[sizeof...
{ "code": [], "line_no": [] }
void FUNC_0(ppc_hash_pte64_t *VAR_0, hwaddr VAR_1, int VAR_2) { int VAR_3, VAR_4; int VAR_5; VAR_3 = kvmppc_get_htab_fd(false, VAR_1, &error_abort); VAR_5 = 0; while (VAR_5 < VAR_2) { struct kvm_get_htab_header *VAR_6; int VAR_7 = VAR_2 < HPTES_PER_GROUP ? VAR_2 : HPTES_P...
[ "void FUNC_0(ppc_hash_pte64_t *VAR_0, hwaddr VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4;", "int VAR_5;", "VAR_3 = kvmppc_get_htab_fd(false, VAR_1, &error_abort);", "VAR_5 = 0;", "while (VAR_5 < VAR_2) {", "struct kvm_get_htab_header *VAR_6;", "int VAR_7 = VAR_2 < HPTES_PER_GROUP ? VAR_2 : HPTES_PER_GROU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51 ], ...
25,112
void qmp_output_visitor_cleanup(QmpOutputVisitor *v) { QStackEntry *e, *tmp; QTAILQ_FOREACH_SAFE(e, &v->stack, node, tmp) { QTAILQ_REMOVE(&v->stack, e, node); g_free(e); } qobject_decref(v->root); g_free(v); }
false
qemu
1830f22a6777cedaccd67a08f675d30f7a85ebfd
void qmp_output_visitor_cleanup(QmpOutputVisitor *v) { QStackEntry *e, *tmp; QTAILQ_FOREACH_SAFE(e, &v->stack, node, tmp) { QTAILQ_REMOVE(&v->stack, e, node); g_free(e); } qobject_decref(v->root); g_free(v); }
{ "code": [], "line_no": [] }
void FUNC_0(QmpOutputVisitor *VAR_0) { QStackEntry *e, *tmp; QTAILQ_FOREACH_SAFE(e, &VAR_0->stack, node, tmp) { QTAILQ_REMOVE(&VAR_0->stack, e, node); g_free(e); } qobject_decref(VAR_0->root); g_free(VAR_0); }
[ "void FUNC_0(QmpOutputVisitor *VAR_0)\n{", "QStackEntry *e, *tmp;", "QTAILQ_FOREACH_SAFE(e, &VAR_0->stack, node, tmp) {", "QTAILQ_REMOVE(&VAR_0->stack, e, node);", "g_free(e);", "}", "qobject_decref(VAR_0->root);", "g_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
25,114
static int check_host_key(BDRVSSHState *s, const char *host, int port, const char *host_key_check) { /* host_key_check=no */ if (strcmp(host_key_check, "no") == 0) { return 0; } /* host_key_check=md5:xx:yy:zz:... */ if (strncmp(host_key_check, "md5:", 4) =...
false
qemu
01c2b265fce921d6460e06f5af4dfb405119cbab
static int check_host_key(BDRVSSHState *s, const char *host, int port, const char *host_key_check) { if (strcmp(host_key_check, "no") == 0) { return 0; } if (strncmp(host_key_check, "md5:", 4) == 0) { return check_host_key_hash(s, &host_key_chec...
{ "code": [], "line_no": [] }
static int FUNC_0(BDRVSSHState *VAR_0, const char *VAR_1, int VAR_2, const char *VAR_3) { if (strcmp(VAR_3, "no") == 0) { return 0; } if (strncmp(VAR_3, "md5:", 4) == 0) { return check_host_key_hash(VAR_0, &VAR_3[4], ...
[ "static int FUNC_0(BDRVSSHState *VAR_0, const char *VAR_1, int VAR_2,\nconst char *VAR_3)\n{", "if (strcmp(VAR_3, \"no\") == 0) {", "return 0;", "}", "if (strncmp(VAR_3, \"md5:\", 4) == 0) {", "return check_host_key_hash(VAR_0, &VAR_3[4],\nLIBSSH2_HOSTKEY_HASH_MD5, 16);", "}", "if (strncmp(VAR_3, \"sh...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ] ]
25,115
void memory_region_notify_iommu(MemoryRegion *mr, IOMMUTLBEntry entry) { IOMMUNotifier *iommu_notifier; IOMMUNotifierFlag request_flags; assert(memory_region_is_iommu(mr)); if (entry.perm & IOMMU_RW) { request_flags = IOMMU_NOTIFIER_MAP; } else { ...
false
qemu
bd2bfa4c52e5f4dc6dbaa5be0521aedc31cb53d9
void memory_region_notify_iommu(MemoryRegion *mr, IOMMUTLBEntry entry) { IOMMUNotifier *iommu_notifier; IOMMUNotifierFlag request_flags; assert(memory_region_is_iommu(mr)); if (entry.perm & IOMMU_RW) { request_flags = IOMMU_NOTIFIER_MAP; } else { ...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, IOMMUTLBEntry VAR_1) { IOMMUNotifier *iommu_notifier; IOMMUNotifierFlag request_flags; assert(memory_region_is_iommu(VAR_0)); if (VAR_1.perm & IOMMU_RW) { request_flags = IOMMU_NOTIFIER_MAP; } else { reques...
[ "void FUNC_0(MemoryRegion *VAR_0,\nIOMMUTLBEntry VAR_1)\n{", "IOMMUNotifier *iommu_notifier;", "IOMMUNotifierFlag request_flags;", "assert(memory_region_is_iommu(VAR_0));", "if (VAR_1.perm & IOMMU_RW) {", "request_flags = IOMMU_NOTIFIER_MAP;", "} else {", "request_flags = IOMMU_NOTIFIER_UNMAP;", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ] ]
25,116
static IOWatchPoll *io_watch_poll_from_source(GSource *source) { IOWatchPoll *i; QTAILQ_FOREACH(i, &io_watch_poll_list, node) { if (i->src == source) { return i; } } return NULL; }
false
qemu
d185c094b404b4ff392b77d1244c0233da7d53bd
static IOWatchPoll *io_watch_poll_from_source(GSource *source) { IOWatchPoll *i; QTAILQ_FOREACH(i, &io_watch_poll_list, node) { if (i->src == source) { return i; } } return NULL; }
{ "code": [], "line_no": [] }
static IOWatchPoll *FUNC_0(GSource *source) { IOWatchPoll *i; QTAILQ_FOREACH(i, &io_watch_poll_list, node) { if (i->src == source) { return i; } } return NULL; }
[ "static IOWatchPoll *FUNC_0(GSource *source)\n{", "IOWatchPoll *i;", "QTAILQ_FOREACH(i, &io_watch_poll_list, node) {", "if (i->src == source) {", "return i;", "}", "}", "return NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
25,117
void memory_region_init_io(MemoryRegion *mr, Object *owner, const MemoryRegionOps *ops, void *opaque, const char *name, uint64_t size) { memory_region_init(mr, owner, name, s...
false
qemu
ec05ec26f940564b1e07bf88857035ec27e21dd8
void memory_region_init_io(MemoryRegion *mr, Object *owner, const MemoryRegionOps *ops, void *opaque, const char *name, uint64_t size) { memory_region_init(mr, owner, name, s...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1, const MemoryRegionOps *VAR_2, void *VAR_3, const char *VAR_4, uint64_t VAR_5) { memory_region_init(VAR_0, VAR_1, VAR_4, VAR_5)...
[ "void FUNC_0(MemoryRegion *VAR_0,\nObject *VAR_1,\nconst MemoryRegionOps *VAR_2,\nvoid *VAR_3,\nconst char *VAR_4,\nuint64_t VAR_5)\n{", "memory_region_init(VAR_0, VAR_1, VAR_4, VAR_5);", "VAR_0->VAR_2 = VAR_2;", "VAR_0->VAR_3 = VAR_3;", "VAR_0->terminates = true;", "VAR_0->ram_addr = ~(ram_addr_t)0;", ...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
25,118
static void filter_mb( H264Context *h, int mb_x, int mb_y ) { MpegEncContext * const s = &h->s; const int mb_xy= mb_x + mb_y*s->mb_stride; uint8_t *img_y = s->current_picture.data[0] + (mb_y * 16* s->linesize ) + mb_x * 16; uint8_t *img_cb = s->current_picture.data[1] + (mb_y * 8 * s->uvlinesize) ...
false
FFmpeg
53c05b1eacd5f7dbfa3651b45e797adaea0a5ff8
static void filter_mb( H264Context *h, int mb_x, int mb_y ) { MpegEncContext * const s = &h->s; const int mb_xy= mb_x + mb_y*s->mb_stride; uint8_t *img_y = s->current_picture.data[0] + (mb_y * 16* s->linesize ) + mb_x * 16; uint8_t *img_cb = s->current_picture.data[1] + (mb_y * 8 * s->uvlinesize) ...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2 ) { MpegEncContext * const s = &VAR_0->s; const int VAR_3= VAR_1 + VAR_2*s->mb_stride; uint8_t *img_y = s->current_picture.data[0] + (VAR_2 * 16* s->VAR_4 ) + VAR_1 * 16; uint8_t *img_cb = s->current_picture.data[1] + (VAR_2 * 8 * s->VAR...
[ "static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2 ) {", "MpegEncContext * const s = &VAR_0->s;", "const int VAR_3= VAR_1 + VAR_2*s->mb_stride;", "uint8_t *img_y = s->current_picture.data[0] + (VAR_2 * 16* s->VAR_4 ) + VAR_1 * 16;", "uint8_t *img_cb = s->current_picture.data[1] + (VAR_2 * 8 * s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 21, 23 ], [ 25, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ...
25,120
void mpeg_motion_internal(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int field_based, int bottom_field, int field_select, ...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
void mpeg_motion_internal(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int field_based, int bottom_field, int field_select, ...
{ "code": [ " linesize = s->current_picture.f.linesize[0] << field_based;", " uvlinesize = s->current_picture.f.linesize[1] << field_based;" ], "line_no": [ 57, 59 ] }
void FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4, int VAR_5, int VAR_6, uint8_t **VAR_7...
[ "void FUNC_0(MpegEncContext *VAR_0,\nuint8_t *VAR_1,\nuint8_t *VAR_2,\nuint8_t *VAR_3,\nint VAR_4,\nint VAR_5,\nint VAR_6,\nuint8_t **VAR_7,\nVAR_8 (*pix_op)[4],\nint VAR_9,\nint VAR_10,\nint VAR_11,\nint VAR_12,\nint VAR_13)\n{", "uint8_t *ptr_y, *ptr_cb, *ptr_cr;", "int VAR_14, VAR_15, VAR_16, VAR_17, VAR_18,...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 55 ], [ 57 ], [ 59 ], [ 63 ...
25,121
static void i6300esb_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->config_read = i6300esb_config_read; k->config_write = i6300esb_config_write; k->realize = i6300esb_realize; k->vendor_id = PCI_VENDOR...
true
qemu
eb7a20a3616085d46aa6b4b4224e15587ec67e6e
static void i6300esb_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->config_read = i6300esb_config_read; k->config_write = i6300esb_config_write; k->realize = i6300esb_realize; k->vendor_id = PCI_VENDOR...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0); k->config_read = i6300esb_config_read; k->config_write = i6300esb_config_write; k->realize = i6300esb_realize; k->vendor_id = PCI_VENDOR_ID_INTEL; ...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);", "k->config_read = i6300esb_config_read;", "k->config_write = i6300esb_config_write;", "k->realize = i6300esb_realize;", "k->vendor_id = PCI_VENDOR_ID_INTEL;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 18 ], [ 20 ], [ 22 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ] ]
25,122
BlockDriverAIOCB *win32_aio_submit(BlockDriverState *bs, QEMUWin32AIOState *aio, HANDLE hfile, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type) { struct QEMUWin32AIOCB *waiocb; uint64_t offset = sector_num * 512; DW...
true
qemu
4b6af3d58a73193017926dd59de3b3e7b4890323
BlockDriverAIOCB *win32_aio_submit(BlockDriverState *bs, QEMUWin32AIOState *aio, HANDLE hfile, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type) { struct QEMUWin32AIOCB *waiocb; uint64_t offset = sector_num * 512; DW...
{ "code": [ " waiocb->buf = qemu_blockalign(bs, qiov->size);" ], "line_no": [ 31 ] }
BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, QEMUWin32AIOState *aio, HANDLE hfile, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type) { struct QEMUWin32AIOCB *VAR_0; uint64_t offset = sector_num * 512; DWORD rc; ...
[ "BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nQEMUWin32AIOState *aio, HANDLE hfile,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque, int type)\n{", "struct QEMUWin32AIOCB *VAR_0;", "uint64_t offset = sector_num * 512;", "DWORD rc;", "VAR_0 = qemu_aio_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
25,124
static av_cold int vp9_decode_free(AVCodecContext *ctx) { VP9Context *s = ctx->priv_data; int i; for (i = 0; i < 2; i++) { if (s->frames[i].tf.f->data[0]) vp9_unref_frame(ctx, &s->frames[i]); av_frame_free(&s->frames[i].tf.f); } for (i = 0; i < 8; i++) { ...
true
FFmpeg
5b0fc078191138795e817244555741356f9d12e9
static av_cold int vp9_decode_free(AVCodecContext *ctx) { VP9Context *s = ctx->priv_data; int i; for (i = 0; i < 2; i++) { if (s->frames[i].tf.f->data[0]) vp9_unref_frame(ctx, &s->frames[i]); av_frame_free(&s->frames[i].tf.f); } for (i = 0; i < 8; i++) { ...
{ "code": [ " av_freep(&s->above_partition_ctx);", " av_freep(&s->b_base);", " av_freep(&s->block_base);" ], "line_no": [ 37, 43, 45 ] }
static av_cold int FUNC_0(AVCodecContext *ctx) { VP9Context *s = ctx->priv_data; int VAR_0; for (VAR_0 = 0; VAR_0 < 2; VAR_0++) { if (s->frames[VAR_0].tf.f->data[0]) vp9_unref_frame(ctx, &s->frames[VAR_0]); av_frame_free(&s->frames[VAR_0].tf.f); } for (VAR_0 = ...
[ "static av_cold int FUNC_0(AVCodecContext *ctx)\n{", "VP9Context *s = ctx->priv_data;", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < 2; VAR_0++) {", "if (s->frames[VAR_0].tf.f->data[0])\nvp9_unref_frame(ctx, &s->frames[VAR_0]);", "av_frame_free(&s->frames[VAR_0].tf.f);", "}", "for (VAR_0 = 0; VAR_0 < 8; VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
25,125
static int sd_create(const char *filename, QemuOpts *opts, Error **errp) { int ret = 0; uint32_t vid = 0; char *backing_file = NULL; char *buf = NULL; BDRVSheepdogState *s; char tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; bool prealloc = false; s = g_m...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
static int sd_create(const char *filename, QemuOpts *opts, Error **errp) { int ret = 0; uint32_t vid = 0; char *backing_file = NULL; char *buf = NULL; BDRVSheepdogState *s; char tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; bool prealloc = false; s = g_m...
{ "code": [ " s = g_malloc0(sizeof(BDRVSheepdogState));" ], "line_no": [ 25 ] }
static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2) { int VAR_3 = 0; uint32_t vid = 0; char *VAR_4 = NULL; char *VAR_5 = NULL; BDRVSheepdogState *s; char VAR_6[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; bool prealloc = false; s = g_malloc...
[ "static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1,\nError **VAR_2)\n{", "int VAR_3 = 0;", "uint32_t vid = 0;", "char *VAR_4 = NULL;", "char *VAR_5 = NULL;", "BDRVSheepdogState *s;", "char VAR_6[SD_MAX_VDI_TAG_LEN];", "uint32_t snapid;", "bool prealloc = false;", "s = g_malloc0(sizeof(BDRVSheep...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
25,126
static void ics_base_realize(DeviceState *dev, Error **errp) { ICSStateClass *icsc = ICS_BASE_GET_CLASS(dev); ICSState *ics = ICS_BASE(dev); Object *obj; Error *err = NULL; obj = object_property_get_link(OBJECT(dev), ICS_PROP_XICS, &err); if (!obj) { error_setg(errp, "%s: requi...
true
qemu
a1a6bbde4f6a29368f8f605cea2e73630ec1bc7c
static void ics_base_realize(DeviceState *dev, Error **errp) { ICSStateClass *icsc = ICS_BASE_GET_CLASS(dev); ICSState *ics = ICS_BASE(dev); Object *obj; Error *err = NULL; obj = object_property_get_link(OBJECT(dev), ICS_PROP_XICS, &err); if (!obj) { error_setg(errp, "%s: requi...
{ "code": [ " __func__, error_get_pretty(err));", " __func__, error_get_pretty(err));", " error_setg(errp, \"%s: required link '\" ICS_PROP_XICS \"' not found: %s\",", " __func__, error_get_pretty(err));" ], "line_no": [ 21, 21, ...
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { ICSStateClass *icsc = ICS_BASE_GET_CLASS(VAR_0); ICSState *ics = ICS_BASE(VAR_0); Object *obj; Error *err = NULL; obj = object_property_get_link(OBJECT(VAR_0), ICS_PROP_XICS, &err); if (!obj) { error_setg(VAR_1, "%s: requi...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "ICSStateClass *icsc = ICS_BASE_GET_CLASS(VAR_0);", "ICSState *ics = ICS_BASE(VAR_0);", "Object *obj;", "Error *err = NULL;", "obj = object_property_get_link(OBJECT(VAR_0), ICS_PROP_XICS, &err);", "if (!obj) {", "error_setg(VAR_1, \"%s: requi...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
25,127
static int ffm_read_header(AVFormatContext *s) { FFMContext *ffm = s->priv_data; AVStream *st; AVIOContext *pb = s->pb; AVCodecContext *codec; const AVCodecDescriptor *codec_desc; int i, nb_streams; uint32_t tag; /* header */ tag = avio_rl32(pb); if (tag == MKTAG('F'...
true
FFmpeg
78baa450d9939957f52d5187beb95d763d2f1f18
static int ffm_read_header(AVFormatContext *s) { FFMContext *ffm = s->priv_data; AVStream *st; AVIOContext *pb = s->pb; AVCodecContext *codec; const AVCodecDescriptor *codec_desc; int i, nb_streams; uint32_t tag; tag = avio_rl32(pb); if (tag == MKTAG('F', 'F', 'M', ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { FFMContext *ffm = VAR_0->priv_data; AVStream *st; AVIOContext *pb = VAR_0->pb; AVCodecContext *codec; const AVCodecDescriptor *VAR_1; int VAR_2, VAR_3; uint32_t tag; tag = avio_rl32(pb); if (tag == MKTAG('F', 'F', 'M', '2'...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "FFMContext *ffm = VAR_0->priv_data;", "AVStream *st;", "AVIOContext *pb = VAR_0->pb;", "AVCodecContext *codec;", "const AVCodecDescriptor *VAR_1;", "int VAR_2, VAR_3;", "uint32_t tag;", "tag = avio_rl32(pb);", "if (tag == MKTAG('F', 'F', 'M', '2'))\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25, 27 ], [ 29, 32 ], [ 34, 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 56 ...
25,128
static void shpc_interrupt_update(PCIDevice *d) { SHPCDevice *shpc = d->shpc; int slot; int level = 0; uint32_t serr_int; uint32_t int_locator = 0; /* Update interrupt locator register */ for (slot = 0; slot < shpc->nslots; ++slot) { uint8_t event = shpc->config[SHPC_SLOT_...
true
qemu
5820945946b1e221905aa898f2cd97ed825acd47
static void shpc_interrupt_update(PCIDevice *d) { SHPCDevice *shpc = d->shpc; int slot; int level = 0; uint32_t serr_int; uint32_t int_locator = 0; for (slot = 0; slot < shpc->nslots; ++slot) { uint8_t event = shpc->config[SHPC_SLOT_EVENT_LATCH(slot)]; uint8_t di...
{ "code": [ " uint32_t mask = 1 << SHPC_IDX_TO_LOGICAL(slot);" ], "line_no": [ 25 ] }
static void FUNC_0(PCIDevice *VAR_0) { SHPCDevice *shpc = VAR_0->shpc; int VAR_1; int VAR_2 = 0; uint32_t serr_int; uint32_t int_locator = 0; for (VAR_1 = 0; VAR_1 < shpc->nslots; ++VAR_1) { uint8_t event = shpc->config[SHPC_SLOT_EVENT_LATCH(VAR_1)]; uint8_t disa...
[ "static void FUNC_0(PCIDevice *VAR_0)\n{", "SHPCDevice *shpc = VAR_0->shpc;", "int VAR_1;", "int VAR_2 = 0;", "uint32_t serr_int;", "uint32_t int_locator = 0;", "for (VAR_1 = 0; VAR_1 < shpc->nslots; ++VAR_1) {", "uint8_t event = shpc->config[SHPC_SLOT_EVENT_LATCH(VAR_1)];", "uint8_t disable = shpc-...
[ 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
25,129
static void usb_mtp_command(MTPState *s, MTPControl *c) { MTPData *data_in = NULL; MTPObject *o; uint32_t nres = 0, res0 = 0; /* sanity checks */ if (c->code >= CMD_CLOSE_SESSION && s->session == 0) { usb_mtp_queue_result(s, RES_SESSION_NOT_OPEN, c->tra...
true
qemu
983bff3530782d51c46c8d7c0e17e2a9dfe5fb77
static void usb_mtp_command(MTPState *s, MTPControl *c) { MTPData *data_in = NULL; MTPObject *o; uint32_t nres = 0, res0 = 0; if (c->code >= CMD_CLOSE_SESSION && s->session == 0) { usb_mtp_queue_result(s, RES_SESSION_NOT_OPEN, c->trans, 0, 0, 0); ...
{ "code": [ "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__" ], "line_no": [ 65, 65, 65, 65, 65, 65,...
static void FUNC_0(MTPState *VAR_0, MTPControl *VAR_1) { MTPData *data_in = NULL; MTPObject *o; uint32_t nres = 0, res0 = 0; if (VAR_1->code >= CMD_CLOSE_SESSION && VAR_0->session == 0) { usb_mtp_queue_result(VAR_0, RES_SESSION_NOT_OPEN, VAR_1->trans, ...
[ "static void FUNC_0(MTPState *VAR_0, MTPControl *VAR_1)\n{", "MTPData *data_in = NULL;", "MTPObject *o;", "uint32_t nres = 0, res0 = 0;", "if (VAR_1->code >= CMD_CLOSE_SESSION && VAR_0->session == 0) {", "usb_mtp_queue_result(VAR_0, RES_SESSION_NOT_OPEN,\nVAR_1->trans, 0, 0, 0);", "return;", "}", "s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53 ], [...
25,131
static int sdp_read_header(AVFormatContext *s) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; int size, i, err; char *content; char url[1024]; if (!ff_network_init()) return AVERROR(EIO); if (s->max_delay < 0) /* Not set by the caller */ s->max_delay = DEF...
true
FFmpeg
4b030025278ac4adc3616510f36de4c7a113c5fb
static int sdp_read_header(AVFormatContext *s) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; int size, i, err; char *content; char url[1024]; if (!ff_network_init()) return AVERROR(EIO); if (s->max_delay < 0) s->max_delay = DEFAULT_REORDERING_DELAY; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { RTSPState *rt = VAR_0->priv_data; RTSPStream *rtsp_st; int VAR_1, VAR_2, VAR_3; char *VAR_4; char VAR_5[1024]; if (!ff_network_init()) return AVERROR(EIO); if (VAR_0->max_delay < 0) VAR_0->max_delay = DEFAULT_REORDERI...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "RTSPState *rt = VAR_0->priv_data;", "RTSPStream *rtsp_st;", "int VAR_1, VAR_2, VAR_3;", "char *VAR_4;", "char VAR_5[1024];", "if (!ff_network_init())\nreturn AVERROR(EIO);", "if (VAR_0->max_delay < 0)\nVAR_0->max_delay = DEFAULT_REORDERING_DELAY;", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23, 25 ], [ 27, 29 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
25,132
static inline void gen_op_mfspr(DisasContext *ctx) { void (*read_cb)(void *opaque, int gprn, int sprn); uint32_t sprn = SPR(ctx->opcode); #if !defined(CONFIG_USER_ONLY) if (ctx->mem_idx == 2) read_cb = ctx->spr_cb[sprn].hea_read; else if (ctx->mem_idx) read_cb = ctx->spr_cb[spr...
true
qemu
c05541ee191107eb35093fb693e4ec038e60d2c0
static inline void gen_op_mfspr(DisasContext *ctx) { void (*read_cb)(void *opaque, int gprn, int sprn); uint32_t sprn = SPR(ctx->opcode); #if !defined(CONFIG_USER_ONLY) if (ctx->mem_idx == 2) read_cb = ctx->spr_cb[sprn].hea_read; else if (ctx->mem_idx) read_cb = ctx->spr_cb[spr...
{ "code": [ " qemu_log(\"Trying to read privileged spr %d %03x at \"", " TARGET_FMT_lx \"\\n\", sprn, sprn, ctx->nip);", " printf(\"Trying to read privileged spr %d %03x at \"", " TARGET_FMT_lx \"\\n\", sprn, sprn, ctx->nip);"...
static inline void FUNC_0(DisasContext *VAR_0) { void (*VAR_1)(void *VAR_2, int VAR_3, int VAR_4); uint32_t VAR_4 = SPR(VAR_0->opcode); #if !defined(CONFIG_USER_ONLY) if (VAR_0->mem_idx == 2) VAR_1 = VAR_0->spr_cb[VAR_4].hea_read; else if (VAR_0->mem_idx) VAR_1 = VAR_0->spr_cb[...
[ "static inline void FUNC_0(DisasContext *VAR_0)\n{", "void (*VAR_1)(void *VAR_2, int VAR_3, int VAR_4);", "uint32_t VAR_4 = SPR(VAR_0->opcode);", "#if !defined(CONFIG_USER_ONLY)\nif (VAR_0->mem_idx == 2)\nVAR_1 = VAR_0->spr_cb[VAR_4].hea_read;", "else if (VAR_0->mem_idx)\nVAR_1 = VAR_0->spr_cb[VAR_4].oea_re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15 ], [ 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 45 ], [ 47, 49 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 59 ], ...
25,133
static int mov_create_chapter_track(AVFormatContext *s, int tracknum) { MOVMuxContext *mov = s->priv_data; MOVTrack *track = &mov->tracks[tracknum]; AVPacket pkt = { .stream_index = tracknum, .flags = AV_PKT_FLAG_KEY }; int i, len; // These properties are required to make QT recognize the chap...
true
FFmpeg
4d122b01e4ce539269ee2df193b061772c7374f6
static int mov_create_chapter_track(AVFormatContext *s, int tracknum) { MOVMuxContext *mov = s->priv_data; MOVTrack *track = &mov->tracks[tracknum]; AVPacket pkt = { .stream_index = tracknum, .flags = AV_PKT_FLAG_KEY }; int i, len; uint8_t chapter_properties[43] = { 0, 0, 0, 0, 0, 0, 0, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1) { MOVMuxContext *mov = VAR_0->priv_data; MOVTrack *track = &mov->tracks[VAR_1]; AVPacket pkt = { .stream_index = VAR_1, .flags = AV_PKT_FLAG_KEY }; int VAR_2, VAR_3; uint8_t chapter_properties[43] = { 0, 0, 0, 0, 0, 0, 0, 1, }; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "MOVMuxContext *mov = VAR_0->priv_data;", "MOVTrack *track = &mov->tracks[VAR_1];", "AVPacket pkt = { .stream_index = VAR_1, .flags = AV_PKT_FLAG_KEY };", "int VAR_2, VAR_3;", "uint8_t chapter_properties[43] = { 0, 0, 0, 0, 0, 0, 0, 1, };", "tra...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 30 ], [ 32 ], [ 34, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...