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
26,635
static int decode_cell(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, Cell *cell, const uint8_t *data_ptr, const uint8_t *last_ptr) { int x, mv_x, mv_y, mode, vq_index, prim_indx, second_indx; int zoom_fac; int ...
true
FFmpeg
56ffa3fefb22605ac6507efa046ebddc38301521
static int decode_cell(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, Cell *cell, const uint8_t *data_ptr, const uint8_t *last_ptr) { int x, mv_x, mv_y, mode, vq_index, prim_indx, second_indx; int zoom_fac; int ...
{ "code": [], "line_no": [] }
static int FUNC_0(Indeo3DecodeContext *VAR_0, AVCodecContext *VAR_1, Plane *VAR_2, Cell *VAR_3, const uint8_t *VAR_4, const uint8_t *VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; int VAR_13; int VAR_14, VAR_...
[ "static int FUNC_0(Indeo3DecodeContext *VAR_0, AVCodecContext *VAR_1,\nPlane *VAR_2, Cell *VAR_3, const uint8_t *VAR_4,\nconst uint8_t *VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "int VAR_13;", "int VAR_14, VAR_15 = 0, VAR_16[2];", "uint8_t cod...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ...
26,636
void ff_riff_write_info_tag(AVIOContext *pb, const char *tag, const char *str) { int len = strlen(str); if (len > 0) { len++; ffio_wfourcc(pb, tag); avio_wl32(pb, len); avio_put_str(pb, str); if (len & 1) avio_w8(pb, 0); } }
true
FFmpeg
c3671e1d5760d79c083e7565d951f4628c06cf41
void ff_riff_write_info_tag(AVIOContext *pb, const char *tag, const char *str) { int len = strlen(str); if (len > 0) { len++; ffio_wfourcc(pb, tag); avio_wl32(pb, len); avio_put_str(pb, str); if (len & 1) avio_w8(pb, 0); } }
{ "code": [ " int len = strlen(str);", " if (len > 0) {" ], "line_no": [ 5, 7 ] }
void FUNC_0(AVIOContext *VAR_0, const char *VAR_1, const char *VAR_2) { int VAR_3 = strlen(VAR_2); if (VAR_3 > 0) { VAR_3++; ffio_wfourcc(VAR_0, VAR_1); avio_wl32(VAR_0, VAR_3); avio_put_str(VAR_0, VAR_2); if (VAR_3 & 1) avio_w8(VAR_0, 0); } }
[ "void FUNC_0(AVIOContext *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "int VAR_3 = strlen(VAR_2);", "if (VAR_3 > 0) {", "VAR_3++;", "ffio_wfourcc(VAR_0, VAR_1);", "avio_wl32(VAR_0, VAR_3);", "avio_put_str(VAR_0, VAR_2);", "if (VAR_3 & 1)\navio_w8(VAR_0, 0);", "}", "}" ]
[ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ] ]
26,637
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr...
true
FFmpeg
2884688bd51a808ccda3c0e13367619cd79e0579
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr...
{ "code": [ " if (ff_mjpeg_decode_sos(s, NULL, NULL) < 0 &&" ], "line_no": [ 165 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MJpegDecodeContext *s = VAR_0->priv_data; const uint8_t *VAR_6, *buf_ptr; GetBitConte...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MJpegDecodeContext *s = VAR_0->priv_data;", "const uint8_t *VAR_6, *buf_ptr;", "GetBitContext hgb;", "uint32_t dqt_offs, dht_offs, sof_offs, sos...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 53 ], [ 57 ...
26,638
void helper_wrpil(CPUSPARCState *env, target_ulong new_pil) { #if !defined(CONFIG_USER_ONLY) trace_win_helper_wrpil(env->psrpil, (uint32_t)new_pil); env->psrpil = new_pil; if (cpu_interrupts_enabled(env)) { cpu_check_irqs(env); } #endif }
true
qemu
5ee5993001cf32addb86a92e2ae8cb090fbc1462
void helper_wrpil(CPUSPARCState *env, target_ulong new_pil) { #if !defined(CONFIG_USER_ONLY) trace_win_helper_wrpil(env->psrpil, (uint32_t)new_pil); env->psrpil = new_pil; if (cpu_interrupts_enabled(env)) { cpu_check_irqs(env); } #endif }
{ "code": [], "line_no": [] }
void FUNC_0(CPUSPARCState *VAR_0, target_ulong VAR_1) { #if !defined(CONFIG_USER_ONLY) trace_win_helper_wrpil(VAR_0->psrpil, (uint32_t)VAR_1); VAR_0->psrpil = VAR_1; if (cpu_interrupts_enabled(VAR_0)) { cpu_check_irqs(VAR_0); } #endif }
[ "void FUNC_0(CPUSPARCState *VAR_0, target_ulong VAR_1)\n{", "#if !defined(CONFIG_USER_ONLY)\ntrace_win_helper_wrpil(VAR_0->psrpil, (uint32_t)VAR_1);", "VAR_0->psrpil = VAR_1;", "if (cpu_interrupts_enabled(VAR_0)) {", "cpu_check_irqs(VAR_0);", "}", "#endif\n}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 15 ], [ 18 ], [ 21 ], [ 23, 25 ] ]
26,639
const char *qdict_get_try_str(const QDict *qdict, const char *key) { QObject *obj; obj = qdict_get(qdict, key); if (!obj || qobject_type(obj) != QTYPE_QSTRING) return NULL; return qstring_get_str(qobject_to_qstring(obj)); }
true
qemu
7f0278435df1fa845b3bd9556942f89296d4246b
const char *qdict_get_try_str(const QDict *qdict, const char *key) { QObject *obj; obj = qdict_get(qdict, key); if (!obj || qobject_type(obj) != QTYPE_QSTRING) return NULL; return qstring_get_str(qobject_to_qstring(obj)); }
{ "code": [ " return qstring_get_str(qobject_to_qstring(obj));", " QObject *obj;", " obj = qdict_get(qdict, key);", " if (!obj || qobject_type(obj) != QTYPE_QSTRING)", " return NULL;", " return qstring_get_str(qobject_to_qstring(obj));" ], "line_no": [ 17, 5, ...
const char *FUNC_0(const QDict *VAR_0, const char *VAR_1) { QObject *obj; obj = qdict_get(VAR_0, VAR_1); if (!obj || qobject_type(obj) != QTYPE_QSTRING) return NULL; return qstring_get_str(qobject_to_qstring(obj)); }
[ "const char *FUNC_0(const QDict *VAR_0, const char *VAR_1)\n{", "QObject *obj;", "obj = qdict_get(VAR_0, VAR_1);", "if (!obj || qobject_type(obj) != QTYPE_QSTRING)\nreturn NULL;", "return qstring_get_str(qobject_to_qstring(obj));", "}" ]
[ 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ] ]
26,640
static void tricore_testboard_init(MachineState *machine, int board_id) { TriCoreCPU *cpu; CPUTriCoreState *env; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ext_cram = g_new(MemoryRegion, 1); MemoryRegion *ext_dram = g_new(MemoryRegion, 1); MemoryRegion *int_cram = g_new(M...
true
qemu
f8ed85ac992c48814d916d5df4d44f9a971c5de4
static void tricore_testboard_init(MachineState *machine, int board_id) { TriCoreCPU *cpu; CPUTriCoreState *env; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ext_cram = g_new(MemoryRegion, 1); MemoryRegion *ext_dram = g_new(MemoryRegion, 1); MemoryRegion *int_cram = g_new(M...
{ "code": [ " memory_region_init_ram(ext_cram, NULL, \"powerlink_ext_c.ram\", 2*1024*1024, &error_abort);", " memory_region_init_ram(ext_dram, NULL, \"powerlink_ext_d.ram\", 4*1024*1024, &error_abort);", " memory_region_init_ram(int_cram, NULL, \"powerlink_int_c.ram\", 48*1024, &error_abort);", ...
static void FUNC_0(MachineState *VAR_0, int VAR_1) { TriCoreCPU *cpu; CPUTriCoreState *env; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ext_cram = g_new(MemoryRegion, 1); MemoryRegion *ext_dram = g_new(MemoryRegion, 1); MemoryRegion *int_cram = g_new(MemoryRegion, 1); ...
[ "static void FUNC_0(MachineState *VAR_0, int VAR_1)\n{", "TriCoreCPU *cpu;", "CPUTriCoreState *env;", "MemoryRegion *sysmem = get_system_memory();", "MemoryRegion *ext_cram = g_new(MemoryRegion, 1);", "MemoryRegion *ext_dram = g_new(MemoryRegion, 1);", "MemoryRegion *int_cram = g_new(MemoryRegion, 1);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
26,641
static void ahci_write_fis_sdb(AHCIState *s, int port, uint32_t finished) { AHCIPortRegs *pr = &s->dev[port].port_regs; IDEState *ide_state; uint8_t *sdb_fis; if (!s->dev[port].res_fis || !(pr->cmd & PORT_CMD_FIS_RX)) { return; } sdb_fis = &s->dev[port].res_fis[RES_F...
true
qemu
fac7aa7fc2ebc26803b0a7b44b010f47ce3e1dd8
static void ahci_write_fis_sdb(AHCIState *s, int port, uint32_t finished) { AHCIPortRegs *pr = &s->dev[port].port_regs; IDEState *ide_state; uint8_t *sdb_fis; if (!s->dev[port].res_fis || !(pr->cmd & PORT_CMD_FIS_RX)) { return; } sdb_fis = &s->dev[port].res_fis[RES_F...
{ "code": [ " AHCIPortRegs *pr = &s->dev[port].port_regs;", " sdb_fis = &s->dev[port].res_fis[RES_FIS_SDBFIS];", " ide_state = &s->dev[port].port.ifs[0];", " *(uint32_t*)(sdb_fis + 4) = cpu_to_le32(s->dev[port].finished);", " ahci_trigger_irq(s, &s->dev[port], PORT_IRQ_SDB_FIS);" ...
static void FUNC_0(AHCIState *VAR_0, int VAR_1, uint32_t VAR_2) { AHCIPortRegs *pr = &VAR_0->dev[VAR_1].port_regs; IDEState *ide_state; uint8_t *sdb_fis; if (!VAR_0->dev[VAR_1].res_fis || !(pr->cmd & PORT_CMD_FIS_RX)) { return; } sdb_fis = &VAR_0->dev[VAR_1].res_fis[...
[ "static void FUNC_0(AHCIState *VAR_0, int VAR_1, uint32_t VAR_2)\n{", "AHCIPortRegs *pr = &VAR_0->dev[VAR_1].port_regs;", "IDEState *ide_state;", "uint8_t *sdb_fis;", "if (!VAR_0->dev[VAR_1].res_fis ||\n!(pr->cmd & PORT_CMD_FIS_RX)) {", "return;", "}", "sdb_fis = &VAR_0->dev[VAR_1].res_fis[RES_FIS_SDB...
[ 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
26,643
int v9fs_set_xattr(FsContext *ctx, const char *path, const char *name, void *value, size_t size, int flags) { XattrOperations *xops = get_xattr_operations(ctx->xops, name); if (xops) { return xops->setxattr(ctx, path, name, value, size, flags); } errno = -EOPNOTSUPP; ...
true
qemu
8af00205445eb901f17ca5b632d976065187538e
int v9fs_set_xattr(FsContext *ctx, const char *path, const char *name, void *value, size_t size, int flags) { XattrOperations *xops = get_xattr_operations(ctx->xops, name); if (xops) { return xops->setxattr(ctx, path, name, value, size, flags); } errno = -EOPNOTSUPP; ...
{ "code": [ " errno = -EOPNOTSUPP;", " errno = -EOPNOTSUPP;", " errno = -EOPNOTSUPP;" ], "line_no": [ 15, 15, 15 ] }
int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2, void *VAR_3, size_t VAR_4, int VAR_5) { XattrOperations *xops = get_xattr_operations(VAR_0->xops, VAR_2); if (xops) { return xops->setxattr(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5); } errno = -EOPNOTSUP...
[ "int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2,\nvoid *VAR_3, size_t VAR_4, int VAR_5)\n{", "XattrOperations *xops = get_xattr_operations(VAR_0->xops, VAR_2);", "if (xops) {", "return xops->setxattr(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5);", "}", "errno = -EOPNOTSUPP;", "return -1;...
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ] ]
26,644
void kvm_irqchip_add_irq_route(KVMState *s, int irq, int irqchip, int pin) { struct kvm_irq_routing_entry e; assert(pin < s->gsi_count); e.gsi = irq; e.type = KVM_IRQ_ROUTING_IRQCHIP; e.flags = 0; e.u.irqchip.irqchip = irqchip; e.u.irqchip.pin = pin; kvm_add_routing_entry(s,...
true
qemu
0fbc20740342713f282b118b4a446c4c43df3f4a
void kvm_irqchip_add_irq_route(KVMState *s, int irq, int irqchip, int pin) { struct kvm_irq_routing_entry e; assert(pin < s->gsi_count); e.gsi = irq; e.type = KVM_IRQ_ROUTING_IRQCHIP; e.flags = 0; e.u.irqchip.irqchip = irqchip; e.u.irqchip.pin = pin; kvm_add_routing_entry(s,...
{ "code": [ " struct kvm_irq_routing_entry e;" ], "line_no": [ 5 ] }
void FUNC_0(KVMState *VAR_0, int VAR_1, int VAR_2, int VAR_3) { struct kvm_irq_routing_entry VAR_4; assert(VAR_3 < VAR_0->gsi_count); VAR_4.gsi = VAR_1; VAR_4.type = KVM_IRQ_ROUTING_IRQCHIP; VAR_4.flags = 0; VAR_4.u.VAR_2.VAR_2 = VAR_2; VAR_4.u.VAR_2.VAR_3 = VAR_3; kvm_add_r...
[ "void FUNC_0(KVMState *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "struct kvm_irq_routing_entry VAR_4;", "assert(VAR_3 < VAR_0->gsi_count);", "VAR_4.gsi = VAR_1;", "VAR_4.type = KVM_IRQ_ROUTING_IRQCHIP;", "VAR_4.flags = 0;", "VAR_4.u.VAR_2.VAR_2 = VAR_2;", "VAR_4.u.VAR_2.VAR_3 = VAR_3;", "kvm_add_...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
26,645
static inline void gen_op_evsrwu(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) { TCGv_i32 t0; int l1, l2; l1 = gen_new_label(); l2 = gen_new_label(); t0 = tcg_temp_local_new_i32(); /* No error here: 6 bits are used */ tcg_gen_andi_i32(t0, arg2, 0x3F); tcg_gen_brcondi_i32(TCG_CON...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static inline void gen_op_evsrwu(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) { TCGv_i32 t0; int l1, l2; l1 = gen_new_label(); l2 = gen_new_label(); t0 = tcg_temp_local_new_i32(); tcg_gen_andi_i32(t0, arg2, 0x3F); tcg_gen_brcondi_i32(TCG_COND_GE, t0, 32, l1); tcg_gen_shr_...
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv_i32 VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2) { TCGv_i32 t0; int VAR_3, VAR_4; VAR_3 = gen_new_label(); VAR_4 = gen_new_label(); t0 = tcg_temp_local_new_i32(); tcg_gen_andi_i32(t0, VAR_2, 0x3F); tcg_gen_brcondi_i32(TCG_COND_GE, t0, 32, VAR_3); ...
[ "static inline void FUNC_0(TCGv_i32 VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2)\n{", "TCGv_i32 t0;", "int VAR_3, VAR_4;", "VAR_3 = gen_new_label();", "VAR_4 = gen_new_label();", "t0 = tcg_temp_local_new_i32();", "tcg_gen_andi_i32(t0, VAR_2, 0x3F);", "tcg_gen_brcondi_i32(TCG_COND_GE, t0, 32, VAR_3);", "tc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
26,648
static int hqx_decode_frame(AVCodecContext *avctx, void *data, int *got_picture_ptr, AVPacket *avpkt) { HQXContext *ctx = avctx->priv_data; uint8_t *src = avpkt->data; uint32_t info_tag; int data_start; int i, ret; if (avpkt->size < 4 + 4) { av_log(...
false
FFmpeg
9fd2bf09dbc630484d9e88a1d27f7e8508b70a2c
static int hqx_decode_frame(AVCodecContext *avctx, void *data, int *got_picture_ptr, AVPacket *avpkt) { HQXContext *ctx = avctx->priv_data; uint8_t *src = avpkt->data; uint32_t info_tag; int data_start; int i, ret; if (avpkt->size < 4 + 4) { av_log(...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { HQXContext *ctx = VAR_0->priv_data; uint8_t *src = VAR_3->VAR_1; uint32_t info_tag; int VAR_4; int VAR_5, VAR_6; if (VAR_3->size < 4 + 4) { av_log(VAR_0, AV_LOG_ERR...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "HQXContext *ctx = VAR_0->priv_data;", "uint8_t *src = VAR_3->VAR_1;", "uint32_t info_tag;", "int VAR_4;", "int VAR_5, VAR_6;", "if (VAR_3->size < 4 + 4) {", "av_log(VAR_0, AV_LOG_ERROR, \"Frame is too small %d.\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
26,649
START_TEST(qlist_append_test) { QInt *qi; QList *qlist; QListEntry *entry; qi = qint_from_int(42); qlist = qlist_new(); qlist_append(qlist, qi); entry = QTAILQ_FIRST(&qlist->head); fail_unless(entry != NULL); fail_unless(entry->value == QOBJECT(qi)); // destroy...
false
qemu
91479dd0b5bd3b087b92ddd7bc3f2c54982cfe17
START_TEST(qlist_append_test) { QInt *qi; QList *qlist; QListEntry *entry; qi = qint_from_int(42); qlist = qlist_new(); qlist_append(qlist, qi); entry = QTAILQ_FIRST(&qlist->head); fail_unless(entry != NULL); fail_unless(entry->value == QOBJECT(qi)); QDEC...
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { QInt *qi; QList *qlist; QListEntry *entry; qi = qint_from_int(42); qlist = qlist_new(); qlist_append(qlist, qi); entry = QTAILQ_FIRST(&qlist->head); fail_unless(entry != NULL); fail_unless(entry->value == QOBJECT(qi)); QDECREF(qi); g_...
[ "FUNC_0(VAR_0)\n{", "QInt *qi;", "QList *qlist;", "QListEntry *entry;", "qi = qint_from_int(42);", "qlist = qlist_new();", "qlist_append(qlist, qi);", "entry = QTAILQ_FIRST(&qlist->head);", "fail_unless(entry != NULL);", "fail_unless(entry->value == QOBJECT(qi));", "QDECREF(qi);", "g_free(entr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
26,650
static int parse_chr(DeviceState *dev, Property *prop, const char *str) { CharDriverState **ptr = qdev_get_prop_ptr(dev, prop); *ptr = qemu_chr_find(str); if (*ptr == NULL) return -ENOENT; return 0; }
false
qemu
2d6c1ef40f3678ab47a4d14fb5dadaa486bfcda6
static int parse_chr(DeviceState *dev, Property *prop, const char *str) { CharDriverState **ptr = qdev_get_prop_ptr(dev, prop); *ptr = qemu_chr_find(str); if (*ptr == NULL) return -ENOENT; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2) { CharDriverState **ptr = qdev_get_prop_ptr(VAR_0, VAR_1); *ptr = qemu_chr_find(VAR_2); if (*ptr == NULL) return -ENOENT; return 0; }
[ "static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)\n{", "CharDriverState **ptr = qdev_get_prop_ptr(VAR_0, VAR_1);", "*ptr = qemu_chr_find(VAR_2);", "if (*ptr == NULL)\nreturn -ENOENT;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
26,651
static unsigned virtio_pci_get_features(void *opaque) { unsigned ret = 0; ret |= (1 << VIRTIO_F_NOTIFY_ON_EMPTY); ret |= (1 << VIRTIO_RING_F_INDIRECT_DESC); ret |= (1 << VIRTIO_F_BAD_FEATURE); return ret; }
false
qemu
8172539d21a03e982aa7f139ddc1607dc1422045
static unsigned virtio_pci_get_features(void *opaque) { unsigned ret = 0; ret |= (1 << VIRTIO_F_NOTIFY_ON_EMPTY); ret |= (1 << VIRTIO_RING_F_INDIRECT_DESC); ret |= (1 << VIRTIO_F_BAD_FEATURE); return ret; }
{ "code": [], "line_no": [] }
static unsigned FUNC_0(void *VAR_0) { unsigned VAR_1 = 0; VAR_1 |= (1 << VIRTIO_F_NOTIFY_ON_EMPTY); VAR_1 |= (1 << VIRTIO_RING_F_INDIRECT_DESC); VAR_1 |= (1 << VIRTIO_F_BAD_FEATURE); return VAR_1; }
[ "static unsigned FUNC_0(void *VAR_0)\n{", "unsigned VAR_1 = 0;", "VAR_1 |= (1 << VIRTIO_F_NOTIFY_ON_EMPTY);", "VAR_1 |= (1 << VIRTIO_RING_F_INDIRECT_DESC);", "VAR_1 |= (1 << VIRTIO_F_BAD_FEATURE);", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
26,652
target_ulong HELPER(mfspr)(CPUOpenRISCState *env, target_ulong rd, target_ulong ra, uint32_t offset) { #ifndef CONFIG_USER_ONLY int spr = (ra | offset); int idx; OpenRISCCPU *cpu = openrisc_env_get_cpu(env); switch (spr) { case TO_SPR(0, 0): /* VR */ r...
false
qemu
93147a180c10b97bf9575a87e01c9a1c93e6c9ce
target_ulong HELPER(mfspr)(CPUOpenRISCState *env, target_ulong rd, target_ulong ra, uint32_t offset) { #ifndef CONFIG_USER_ONLY int spr = (ra | offset); int idx; OpenRISCCPU *cpu = openrisc_env_get_cpu(env); switch (spr) { case TO_SPR(0, 0): return en...
{ "code": [], "line_no": [] }
target_ulong FUNC_0(mfspr)(CPUOpenRISCState *env, target_ulong rd, target_ulong ra, uint32_t offset) { #ifndef CONFIG_USER_ONLY int VAR_0 = (ra | offset); int VAR_1; OpenRISCCPU *cpu = openrisc_env_get_cpu(env); switch (VAR_0) { case TO_SPR(0, 0): ret...
[ "target_ulong FUNC_0(mfspr)(CPUOpenRISCState *env,\ntarget_ulong rd, target_ulong ra, uint32_t offset)\n{", "#ifndef CONFIG_USER_ONLY\nint VAR_0 = (ra | offset);", "int VAR_1;", "OpenRISCCPU *cpu = openrisc_env_get_cpu(env);", "switch (VAR_0) {", "case TO_SPR(0, 0):\nreturn env->vr & SPR_VR;", "case TO_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27, 29 ], [ 33, 35 ], [ 39, 41 ], [ 45, 47 ], [ 51, 53 ], [ 57, 59 ], [ 63, 65 ], [ 69, 71 ], [...
26,654
ssize_t virtio_pdu_vunmarshal(V9fsPDU *pdu, size_t offset, const char *fmt, va_list ap) { V9fsState *s = pdu->s; V9fsVirtioState *v = container_of(s, V9fsVirtioState, state); VirtQueueElement *elem = &v->elems[pdu->idx]; return v9fs_iov_vunmarshal(elem->out_sg, elem...
false
qemu
51b19ebe4320f3dcd93cea71235c1219318ddfd2
ssize_t virtio_pdu_vunmarshal(V9fsPDU *pdu, size_t offset, const char *fmt, va_list ap) { V9fsState *s = pdu->s; V9fsVirtioState *v = container_of(s, V9fsVirtioState, state); VirtQueueElement *elem = &v->elems[pdu->idx]; return v9fs_iov_vunmarshal(elem->out_sg, elem...
{ "code": [], "line_no": [] }
ssize_t FUNC_0(V9fsPDU *pdu, size_t offset, const char *fmt, va_list ap) { V9fsState *s = pdu->s; V9fsVirtioState *v = container_of(s, V9fsVirtioState, state); VirtQueueElement *elem = &v->elems[pdu->idx]; return v9fs_iov_vunmarshal(elem->out_sg, elem->out_num, offs...
[ "ssize_t FUNC_0(V9fsPDU *pdu, size_t offset,\nconst char *fmt, va_list ap)\n{", "V9fsState *s = pdu->s;", "V9fsVirtioState *v = container_of(s, V9fsVirtioState, state);", "VirtQueueElement *elem = &v->elems[pdu->idx];", "return v9fs_iov_vunmarshal(elem->out_sg, elem->out_num, offset, 1, fmt, ap);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
26,655
void do_td (int flags) { if (!likely(!(((int64_t)T0 < (int64_t)T1 && (flags & 0x10)) || ((int64_t)T0 > (int64_t)T1 && (flags & 0x08)) || ((int64_t)T0 == (int64_t)T1 && (flags & 0x04)) || ((uint64_t)T0 < (uint64_t)T1 && (flags & 0x02)) || ...
false
qemu
e1833e1f96456fd8fc17463246fe0b2050e68efb
void do_td (int flags) { if (!likely(!(((int64_t)T0 < (int64_t)T1 && (flags & 0x10)) || ((int64_t)T0 > (int64_t)T1 && (flags & 0x08)) || ((int64_t)T0 == (int64_t)T1 && (flags & 0x04)) || ((uint64_t)T0 < (uint64_t)T1 && (flags & 0x02)) || ...
{ "code": [], "line_no": [] }
void FUNC_0 (int VAR_0) { if (!likely(!(((int64_t)T0 < (int64_t)T1 && (VAR_0 & 0x10)) || ((int64_t)T0 > (int64_t)T1 && (VAR_0 & 0x08)) || ((int64_t)T0 == (int64_t)T1 && (VAR_0 & 0x04)) || ((uint64_t)T0 < (uint64_t)T1 && (VAR_0 & 0x02)) || ...
[ "void FUNC_0 (int VAR_0)\n{", "if (!likely(!(((int64_t)T0 < (int64_t)T1 && (VAR_0 & 0x10)) ||\n((int64_t)T0 > (int64_t)T1 && (VAR_0 & 0x08)) ||\n((int64_t)T0 == (int64_t)T1 && (VAR_0 & 0x04)) ||\n((uint64_t)T0 < (uint64_t)T1 && (VAR_0 & 0x02)) ||\n((uint64_t)T0 > (uint64_t)T1 && (VAR_0 & 0x01)))))\ndo_raise_excep...
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15 ], [ 17 ] ]
26,656
static ssize_t block_crypto_read_func(QCryptoBlock *block, void *opaque, size_t offset, uint8_t *buf, size_t buflen, Error **...
false
qemu
e4a3507e86a1ef1453d603031bca27d5ac4cff3c
static ssize_t block_crypto_read_func(QCryptoBlock *block, void *opaque, size_t offset, uint8_t *buf, size_t buflen, Error **...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(QCryptoBlock *block, void *opaque, size_t offset, uint8_t *buf, size_t buflen, Error **errp) { Bl...
[ "static ssize_t FUNC_0(QCryptoBlock *block,\nvoid *opaque,\nsize_t offset,\nuint8_t *buf,\nsize_t buflen,\nError **errp)\n{", "BlockDriverState *bs = opaque;", "ssize_t ret;", "ret = bdrv_pread(bs->file, offset, buf, buflen);", "if (ret < 0) {", "error_setg_errno(errp, -ret, \"Could not read encryption he...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
26,657
vnc_display_setup_auth(VncDisplay *vd, bool password, bool sasl, bool websocket, Error **errp) { /* * We have a choice of 3 authentication options * * 1. none * 2. vnc * 3. sasl ...
false
qemu
eda24e188637e2f86db31c3edb76d457212fdcb1
vnc_display_setup_auth(VncDisplay *vd, bool password, bool sasl, bool websocket, Error **errp) { if (password) { ...
{ "code": [], "line_no": [] }
FUNC_0(VncDisplay *VAR_0, bool VAR_1, bool VAR_2, bool VAR_3, Error **VAR_4) { if (VAR_1) { if (VAR_0->tlscreds...
[ "FUNC_0(VncDisplay *VAR_0,\nbool VAR_1,\nbool VAR_2,\nbool VAR_3,\nError **VAR_4)\n{", "if (VAR_1) {", "if (VAR_0->tlscreds) {", "VAR_0->auth = VNC_AUTH_VENCRYPT;", "if (object_dynamic_cast(OBJECT(VAR_0->tlscreds),\nTYPE_QCRYPTO_TLS_CREDS_X509)) {", "VNC_DEBUG(\"Initializing VNC server with x509 VAR_1 aut...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 107 ], [ 109 ], [ 111 ], [ 113, 115 ], [ 117 ], [ 119 ], [ 121 ], [ 123 ], [ 125 ], [ 127 ], [ 129 ], [ 131, 133, 135 ], [ 137 ], [ 139 ], ...
26,658
static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, off_t offset) { phdr->p_type = PT_NOTE; phdr->p_offset = offset; phdr->p_vaddr = 0; phdr->p_paddr = 0; phdr->p_filesz = sz; phdr->p_memsz = 0; phdr->p_flags = 0; phdr->p_align = 0; #ifdef BSWAP_NEEDED bswap_ph...
false
qemu
991f8f0c91d65cebf51fa931450e02b0d5209012
static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, off_t offset) { phdr->p_type = PT_NOTE; phdr->p_offset = offset; phdr->p_vaddr = 0; phdr->p_paddr = 0; phdr->p_filesz = sz; phdr->p_memsz = 0; phdr->p_flags = 0; phdr->p_align = 0; #ifdef BSWAP_NEEDED bswap_ph...
{ "code": [], "line_no": [] }
static void FUNC_0(struct elf_phdr *VAR_0, int VAR_1, off_t VAR_2) { VAR_0->p_type = PT_NOTE; VAR_0->p_offset = VAR_2; VAR_0->p_vaddr = 0; VAR_0->p_paddr = 0; VAR_0->p_filesz = VAR_1; VAR_0->p_memsz = 0; VAR_0->p_flags = 0; VAR_0->p_align = 0; #ifdef BSWAP_NEEDED bswap_p...
[ "static void FUNC_0(struct elf_phdr *VAR_0, int VAR_1, off_t VAR_2)\n{", "VAR_0->p_type = PT_NOTE;", "VAR_0->p_offset = VAR_2;", "VAR_0->p_vaddr = 0;", "VAR_0->p_paddr = 0;", "VAR_0->p_filesz = VAR_1;", "VAR_0->p_memsz = 0;", "VAR_0->p_flags = 0;", "VAR_0->p_align = 0;", "#ifdef BSWAP_NEEDED\nbswa...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27, 29 ] ]
26,659
static av_cold int vaapi_encode_mjpeg_init_internal(AVCodecContext *avctx) { static const VAConfigAttrib default_config_attributes[] = { { .type = VAConfigAttribRTFormat, .value = VA_RT_FORMAT_YUV420 }, { .type = VAConfigAttribEncPackedHeaders, .value = VA_ENC_PACKED_HEAD...
false
FFmpeg
80a5d05108cb218e8cd2e25c6621a3bfef0a832e
static av_cold int vaapi_encode_mjpeg_init_internal(AVCodecContext *avctx) { static const VAConfigAttrib default_config_attributes[] = { { .type = VAConfigAttribRTFormat, .value = VA_RT_FORMAT_YUV420 }, { .type = VAConfigAttribEncPackedHeaders, .value = VA_ENC_PACKED_HEAD...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { static const VAConfigAttrib VAR_0[] = { { .type = VAConfigAttribRTFormat, .value = VA_RT_FORMAT_YUV420 }, { .type = VAConfigAttribEncPackedHeaders, .value = VA_ENC_PACKED_HEADER_SEQUENCE }, }; VAAPIEncodeConte...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "static const VAConfigAttrib VAR_0[] = {", "{ .type = VAConfigAttribRTFormat,", ".value = VA_RT_FORMAT_YUV420 },", "{ .type = VAConfigAttribEncPackedHeaders,", ".value = VA_ENC_PACKED_HEADER_SEQUENCE },", "};", "VAAPIEncodeContext *ctx = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [...
26,660
static gboolean tcp_chr_chan_close(GIOChannel *channel, GIOCondition cond, void *opaque) { CharDriverState *chr = opaque; if (cond != G_IO_HUP) { return FALSE; } /* connection closed */ tcp_chr_disconnect(chr); if (chr->fd_hup_tag) { ...
false
qemu
812c1057f6175ac9a9829fa2920a2b5783814193
static gboolean tcp_chr_chan_close(GIOChannel *channel, GIOCondition cond, void *opaque) { CharDriverState *chr = opaque; if (cond != G_IO_HUP) { return FALSE; } tcp_chr_disconnect(chr); if (chr->fd_hup_tag) { g_source_remove(chr-...
{ "code": [], "line_no": [] }
static gboolean FUNC_0(GIOChannel *channel, GIOCondition cond, void *opaque) { CharDriverState *chr = opaque; if (cond != G_IO_HUP) { return FALSE; } tcp_chr_disconnect(chr); if (chr->fd_hup_tag) { g_source_remove(chr->fd_hup_tag)...
[ "static gboolean FUNC_0(GIOChannel *channel, GIOCondition cond,\nvoid *opaque)\n{", "CharDriverState *chr = opaque;", "if (cond != G_IO_HUP) {", "return FALSE;", "}", "tcp_chr_disconnect(chr);", "if (chr->fd_hup_tag) {", "g_source_remove(chr->fd_hup_tag);", "chr->fd_hup_tag = 0;", "}", "return T...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
26,661
static void rtas_ibm_configure_pe(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { sPAPRPHBSta...
false
qemu
46c5874e9cd752ed8ded31af03472edd8fc3efc1
static void rtas_ibm_configure_pe(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { sPAPRPHBSta...
{ "code": [], "line_no": [] }
static void FUNC_0(PowerPCCPU *VAR_0, sPAPREnvironment *VAR_1, uint32_t VAR_2, uint32_t VAR_3, target_ulong VAR_4, uint32_t VAR_5, target_ulong VAR_6) { sPAPRPHBState *sphb; ...
[ "static void FUNC_0(PowerPCCPU *VAR_0,\nsPAPREnvironment *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4, uint32_t VAR_5,\ntarget_ulong VAR_6)\n{", "sPAPRPHBState *sphb;", "sPAPRPHBClass *spc;", "uint64_t buid;", "int VAR_7;", "if ((VAR_3 != 3) || (VAR_5 != 1)) {", "goto param_error_exit;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ...
26,662
static void sigp_cpu_start(void *arg) { CPUState *cs = arg; S390CPU *cpu = S390_CPU(cs); s390_cpu_set_state(CPU_STATE_OPERATING, cpu); DPRINTF("DONE: KVM cpu start: %p\n", &cpu->env); }
false
qemu
6eb8f212d2686ed9b17077d554465df7ae06f805
static void sigp_cpu_start(void *arg) { CPUState *cs = arg; S390CPU *cpu = S390_CPU(cs); s390_cpu_set_state(CPU_STATE_OPERATING, cpu); DPRINTF("DONE: KVM cpu start: %p\n", &cpu->env); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { CPUState *cs = VAR_0; S390CPU *cpu = S390_CPU(cs); s390_cpu_set_state(CPU_STATE_OPERATING, cpu); DPRINTF("DONE: KVM cpu start: %p\n", &cpu->env); }
[ "static void FUNC_0(void *VAR_0)\n{", "CPUState *cs = VAR_0;", "S390CPU *cpu = S390_CPU(cs);", "s390_cpu_set_state(CPU_STATE_OPERATING, cpu);", "DPRINTF(\"DONE: KVM cpu start: %p\\n\", &cpu->env);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
26,666
static int dca_subsubframe(DCAContext *s, int base_channel, int block_index) { int k, l; int subsubframe = s->current_subsubframe; const float *quant_step_table; /* FIXME */ float (*subband_samples)[DCA_SUBBANDS][8] = s->subband_samples[block_index]; LOCAL_ALIGNED_16(int32_t, block, [...
false
FFmpeg
4cb6964244fd6c099383d8b7e99731e72cc844b9
static int dca_subsubframe(DCAContext *s, int base_channel, int block_index) { int k, l; int subsubframe = s->current_subsubframe; const float *quant_step_table; float (*subband_samples)[DCA_SUBBANDS][8] = s->subband_samples[block_index]; LOCAL_ALIGNED_16(int32_t, block, [8 * DCA_SUB...
{ "code": [], "line_no": [] }
static int FUNC_0(DCAContext *VAR_0, int VAR_1, int VAR_2) { int VAR_3, VAR_4; int VAR_5 = VAR_0->current_subsubframe; const float *VAR_6; float (*VAR_7)[DCA_SUBBANDS][8] = VAR_0->VAR_7[VAR_2]; LOCAL_ALIGNED_16(int32_t, block, [8 * DCA_SUBBANDS]); if (VAR_0->...
[ "static int FUNC_0(DCAContext *VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4;", "int VAR_5 = VAR_0->current_subsubframe;", "const float *VAR_6;", "float (*VAR_7)[DCA_SUBBANDS][8] = VAR_0->VAR_7[VAR_2];", "LOCAL_ALIGNED_16(int32_t, block, [8 * DCA_SUBBANDS]);", "if (VAR_0->bit_rate_index == 0x1f)\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 ], [ 11 ], [ 17 ], [ 19 ], [ 33, 35 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 55 ], [ 57 ], [ 63 ], [ 67 ], [ 81 ], [ 91 ], [ 93 ], ...
26,667
int ff_mpeg_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) { int i; MpegEncContext *s = dst->priv_data, *s1 = src->priv_data; if (dst == src) return 0; // FIXME can parameters change on I-frames? // in that case dst may nee...
false
FFmpeg
f4d73f0fb55e0b5931c859ddb4d2d1617b60d560
int ff_mpeg_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) { int i; MpegEncContext *s = dst->priv_data, *s1 = src->priv_data; if (dst == src) return 0; if (!s->context_initialized) { memcpy(s, s1, sizeof(Mpe...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1) { int VAR_2; MpegEncContext *s = VAR_0->priv_data, *s1 = VAR_1->priv_data; if (VAR_0 == VAR_1) return 0; if (!s->context_initialized) { memcpy(s, s1, sizeof(MpegEncCon...
[ "int FUNC_0(AVCodecContext *VAR_0,\nconst AVCodecContext *VAR_1)\n{", "int VAR_2;", "MpegEncContext *s = VAR_0->priv_data, *s1 = VAR_1->priv_data;", "if (VAR_0 == VAR_1)\nreturn 0;", "if (!s->context_initialized) {", "memcpy(s, s1, sizeof(MpegEncContext));", "s->avctx = VAR_0;", "s->bi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
26,668
static int h261_probe(AVProbeData *p) { int code; const uint8_t *d; if (p->buf_size < 6) return 0; d = p->buf; code = (d[0] << 12) | (d[1] << 4) | (d[2] >> 4); if (code == 0x10) { return 50; } return 0; }
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int h261_probe(AVProbeData *p) { int code; const uint8_t *d; if (p->buf_size < 6) return 0; d = p->buf; code = (d[0] << 12) | (d[1] << 4) | (d[2] >> 4); if (code == 0x10) { return 50; } return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { int VAR_1; const uint8_t *VAR_2; if (VAR_0->buf_size < 6) return 0; VAR_2 = VAR_0->buf; VAR_1 = (VAR_2[0] << 12) | (VAR_2[1] << 4) | (VAR_2[2] >> 4); if (VAR_1 == 0x10) { return 50; } return 0; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "int VAR_1;", "const uint8_t *VAR_2;", "if (VAR_0->buf_size < 6)\nreturn 0;", "VAR_2 = VAR_0->buf;", "VAR_1 = (VAR_2[0] << 12) | (VAR_2[1] << 4) | (VAR_2[2] >> 4);", "if (VAR_1 == 0x10) {", "return 50;", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
26,669
static void netfilter_finalize(Object *obj) { NetFilterState *nf = NETFILTER(obj); NetFilterClass *nfc = NETFILTER_GET_CLASS(obj); if (nfc->cleanup) { nfc->cleanup(nf); } if (nf->netdev && !QTAILQ_EMPTY(&nf->netdev->filters) && nf->next.tqe_prev) { QTAILQ_REMOVE(...
false
qemu
3b8c1761f0e1523622e008836d01a6544b1c21ab
static void netfilter_finalize(Object *obj) { NetFilterState *nf = NETFILTER(obj); NetFilterClass *nfc = NETFILTER_GET_CLASS(obj); if (nfc->cleanup) { nfc->cleanup(nf); } if (nf->netdev && !QTAILQ_EMPTY(&nf->netdev->filters) && nf->next.tqe_prev) { QTAILQ_REMOVE(...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { NetFilterState *nf = NETFILTER(VAR_0); NetFilterClass *nfc = NETFILTER_GET_CLASS(VAR_0); if (nfc->cleanup) { nfc->cleanup(nf); } if (nf->netdev && !QTAILQ_EMPTY(&nf->netdev->filters) && nf->next.tqe_prev) { QTAILQ_REMOVE(&nf->n...
[ "static void FUNC_0(Object *VAR_0)\n{", "NetFilterState *nf = NETFILTER(VAR_0);", "NetFilterClass *nfc = NETFILTER_GET_CLASS(VAR_0);", "if (nfc->cleanup) {", "nfc->cleanup(nf);", "}", "if (nf->netdev && !QTAILQ_EMPTY(&nf->netdev->filters) &&\nnf->next.tqe_prev) {", "QTAILQ_REMOVE(&nf->netdev->filters,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
26,670
static void ne2000_cleanup(NetClientState *nc) { NE2000State *s = qemu_get_nic_opaque(nc); s->nic = NULL; }
false
qemu
57407ea44cc0a3d630b9b89a2be011f1955ce5c1
static void ne2000_cleanup(NetClientState *nc) { NE2000State *s = qemu_get_nic_opaque(nc); s->nic = NULL; }
{ "code": [], "line_no": [] }
static void FUNC_0(NetClientState *VAR_0) { NE2000State *s = qemu_get_nic_opaque(VAR_0); s->nic = NULL; }
[ "static void FUNC_0(NetClientState *VAR_0)\n{", "NE2000State *s = qemu_get_nic_opaque(VAR_0);", "s->nic = NULL;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
26,672
static void sys_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { LM32SysState *s = opaque; char *testname; trace_lm32_sys_memory_write(addr, value); addr >>= 2; switch (addr) { case R_CTRL: qemu_system_shutdown_request(); break...
false
qemu
e67b3ca53a891413a33c45495ff20c2728d69722
static void sys_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { LM32SysState *s = opaque; char *testname; trace_lm32_sys_memory_write(addr, value); addr >>= 2; switch (addr) { case R_CTRL: qemu_system_shutdown_request(); break...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { LM32SysState *s = VAR_0; char *VAR_4; trace_lm32_sys_memory_write(VAR_1, VAR_2); VAR_1 >>= 2; switch (VAR_1) { case R_CTRL: qemu_system_shutdown_request(); break; ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "LM32SysState *s = VAR_0;", "char *VAR_4;", "trace_lm32_sys_memory_write(VAR_1, VAR_2);", "VAR_1 >>= 2;", "switch (VAR_1) {", "case R_CTRL:\nqemu_system_shutdown_request();", "break;", "case R_PASSFAIL:\ns->regs[VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47, 49, 51 ], [ 53 ...
26,674
static DeviceState *qbus_find_dev(BusState *bus, char *elem) { DeviceState *dev; /* * try to match in order: * (1) instance id, if present * (2) driver name * (3) driver alias, if present */ LIST_FOREACH(dev, &bus->children, sibling) { if (dev->id && strc...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static DeviceState *qbus_find_dev(BusState *bus, char *elem) { DeviceState *dev; LIST_FOREACH(dev, &bus->children, sibling) { if (dev->id && strcmp(dev->id, elem) == 0) { return dev; } } LIST_FOREACH(dev, &bus->children, sibling) { if (str...
{ "code": [], "line_no": [] }
static DeviceState *FUNC_0(BusState *bus, char *elem) { DeviceState *dev; LIST_FOREACH(dev, &bus->children, sibling) { if (dev->id && strcmp(dev->id, elem) == 0) { return dev; } } LIST_FOREACH(dev, &bus->children, sibling) { if (strcmp(dev...
[ "static DeviceState *FUNC_0(BusState *bus, char *elem)\n{", "DeviceState *dev;", "LIST_FOREACH(dev, &bus->children, sibling) {", "if (dev->id && strcmp(dev->id, elem) == 0) {", "return dev;", "}", "}", "LIST_FOREACH(dev, &bus->children, sibling) {", "if (strcmp(dev->info->name, elem) == 0) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ] ]
26,675
void scsi_req_cancel_async(SCSIRequest *req, Notifier *notifier) { trace_scsi_req_cancel(req->dev->id, req->lun, req->tag); if (notifier) { notifier_list_add(&req->cancel_notifiers, notifier); } if (req->io_canceled) { return; } scsi_req_ref(req); scsi_req_dequeue(r...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
void scsi_req_cancel_async(SCSIRequest *req, Notifier *notifier) { trace_scsi_req_cancel(req->dev->id, req->lun, req->tag); if (notifier) { notifier_list_add(&req->cancel_notifiers, notifier); } if (req->io_canceled) { return; } scsi_req_ref(req); scsi_req_dequeue(r...
{ "code": [], "line_no": [] }
void FUNC_0(SCSIRequest *VAR_0, Notifier *VAR_1) { trace_scsi_req_cancel(VAR_0->dev->id, VAR_0->lun, VAR_0->tag); if (VAR_1) { notifier_list_add(&VAR_0->cancel_notifiers, VAR_1); } if (VAR_0->io_canceled) { return; } scsi_req_ref(VAR_0); scsi_req_dequeue(VAR_0); ...
[ "void FUNC_0(SCSIRequest *VAR_0, Notifier *VAR_1)\n{", "trace_scsi_req_cancel(VAR_0->dev->id, VAR_0->lun, VAR_0->tag);", "if (VAR_1) {", "notifier_list_add(&VAR_0->cancel_notifiers, VAR_1);", "}", "if (VAR_0->io_canceled) {", "return;", "}", "scsi_req_ref(VAR_0);", "scsi_req_dequeue(VAR_0);", "V...
[ 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 ] ]
26,677
static inline void temp_save(TCGContext *s, TCGTemp *ts, TCGRegSet allocated_regs) { #ifdef USE_LIVENESS_ANALYSIS /* ??? Liveness does not yet incorporate indirect bases. */ if (!ts->indirect_base) { /* The liveness analysis already ensures that globals are back ...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static inline void temp_save(TCGContext *s, TCGTemp *ts, TCGRegSet allocated_regs) { #ifdef USE_LIVENESS_ANALYSIS if (!ts->indirect_base) { tcg_debug_assert(ts->val_type == TEMP_VAL_MEM || ts->fixed_reg); return; } #endif temp_sync(s, t...
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGContext *VAR_0, TCGTemp *VAR_1, TCGRegSet VAR_2) { #ifdef USE_LIVENESS_ANALYSIS if (!VAR_1->indirect_base) { tcg_debug_assert(VAR_1->val_type == TEMP_VAL_MEM || VAR_1->fixed_reg); return; } #endif temp_sync(...
[ "static inline void FUNC_0(TCGContext *VAR_0, TCGTemp *VAR_1,\nTCGRegSet VAR_2)\n{", "#ifdef USE_LIVENESS_ANALYSIS\nif (!VAR_1->indirect_base) {", "tcg_debug_assert(VAR_1->val_type == TEMP_VAL_MEM || VAR_1->fixed_reg);", "return;", "}", "#endif\ntemp_sync(VAR_0, VAR_1, VAR_2);", "temp_dead(VAR_0, VAR_1)...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ] ]
26,678
static int mov_read_wfex(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; ff_get_wav_header(pb, st->codec, atom.size); return 0; }
false
FFmpeg
2007082d2db25f9305b8a345798b840ea7784fdb
static int mov_read_wfex(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; ff_get_wav_header(pb, st->codec, atom.size); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st; if (VAR_0->fc->nb_streams < 1) return 0; st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; ff_get_wav_header(VAR_1, st->codec, VAR_2.size); return 0; }
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st;", "if (VAR_0->fc->nb_streams < 1)\nreturn 0;", "st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "ff_get_wav_header(VAR_1, st->codec, VAR_2.size);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ] ]
26,679
static void register_multipage(AddressSpaceDispatch *d, MemoryRegionSection *section) { target_phys_addr_t start_addr = section->offset_within_address_space; ram_addr_t size = section->size; target_phys_addr_t addr; uint16_t section_index = phys_section_add(section); assert(size); add...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void register_multipage(AddressSpaceDispatch *d, MemoryRegionSection *section) { target_phys_addr_t start_addr = section->offset_within_address_space; ram_addr_t size = section->size; target_phys_addr_t addr; uint16_t section_index = phys_section_add(section); assert(size); add...
{ "code": [], "line_no": [] }
static void FUNC_0(AddressSpaceDispatch *VAR_0, MemoryRegionSection *VAR_1) { target_phys_addr_t start_addr = VAR_1->offset_within_address_space; ram_addr_t size = VAR_1->size; target_phys_addr_t addr; uint16_t section_index = phys_section_add(VAR_1); assert(size); addr = start_addr; ...
[ "static void FUNC_0(AddressSpaceDispatch *VAR_0, MemoryRegionSection *VAR_1)\n{", "target_phys_addr_t start_addr = VAR_1->offset_within_address_space;", "ram_addr_t size = VAR_1->size;", "target_phys_addr_t addr;", "uint16_t section_index = phys_section_add(VAR_1);", "assert(size);", "addr = start_addr;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ] ]
26,681
static int IRQ_get_next(OpenPICState *opp, IRQQueue *q) { if (q->next == -1) { /* XXX: optimize */ IRQ_check(opp, q); } return q->next; }
false
qemu
3c94378e2c500b6211e95d7457f4a9959955c3d1
static int IRQ_get_next(OpenPICState *opp, IRQQueue *q) { if (q->next == -1) { IRQ_check(opp, q); } return q->next; }
{ "code": [], "line_no": [] }
static int FUNC_0(OpenPICState *VAR_0, IRQQueue *VAR_1) { if (VAR_1->next == -1) { IRQ_check(VAR_0, VAR_1); } return VAR_1->next; }
[ "static int FUNC_0(OpenPICState *VAR_0, IRQQueue *VAR_1)\n{", "if (VAR_1->next == -1) {", "IRQ_check(VAR_0, VAR_1);", "}", "return VAR_1->next;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
26,682
static int enable_write_target(BDRVVVFATState *s) { BlockDriver *bdrv_qcow; QEMUOptionParameter *options; Error *local_err = NULL; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow...
false
qemu
98522f63f40adaebc412481e1d2e9170160d4539
static int enable_write_target(BDRVVVFATState *s) { BlockDriver *bdrv_qcow; QEMUOptionParameter *options; Error *local_err = NULL; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow...
{ "code": [], "line_no": [] }
static int FUNC_0(BDRVVVFATState *VAR_0) { BlockDriver *bdrv_qcow; QEMUOptionParameter *options; Error *local_err = NULL; int VAR_1; int VAR_2 = sector2cluster(VAR_0, VAR_0->sector_count); VAR_0->used_clusters = calloc(VAR_2, 1); array_init(&(VAR_0->commits), sizeof(commit_t)); ...
[ "static int FUNC_0(BDRVVVFATState *VAR_0)\n{", "BlockDriver *bdrv_qcow;", "QEMUOptionParameter *options;", "Error *local_err = NULL;", "int VAR_1;", "int VAR_2 = sector2cluster(VAR_0, VAR_0->sector_count);", "VAR_0->used_clusters = calloc(VAR_2, 1);", "array_init(&(VAR_0->commits), sizeof(commit_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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
26,683
static void dump_json_image_info_list(ImageInfoList *list) { QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfoList(qmp_output_get_visitor(ov), NULL, &list, &error_abort); obj = qmp_output_get_qobject(ov); str = ...
false
qemu
1830f22a6777cedaccd67a08f675d30f7a85ebfd
static void dump_json_image_info_list(ImageInfoList *list) { QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfoList(qmp_output_get_visitor(ov), NULL, &list, &error_abort); obj = qmp_output_get_qobject(ov); str = ...
{ "code": [], "line_no": [] }
static void FUNC_0(ImageInfoList *VAR_0) { QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfoList(qmp_output_get_visitor(ov), NULL, &VAR_0, &error_abort); obj = qmp_output_get_qobject(ov); str = qobject_to_json_p...
[ "static void FUNC_0(ImageInfoList *VAR_0)\n{", "QString *str;", "QmpOutputVisitor *ov = qmp_output_visitor_new();", "QObject *obj;", "visit_type_ImageInfoList(qmp_output_get_visitor(ov), NULL, &VAR_0,\n&error_abort);", "obj = qmp_output_get_qobject(ov);", "str = qobject_to_json_pretty(obj);", "assert(...
[ 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 ] ]
26,684
static int get_segment32(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, target_ulong eaddr, int rw, int type) { hwaddr hash; target_ulong vsid; int ds, pr, target_page_bits; int ret, ret2; target_ulong sr, pgidx; pr = msr_pr; ctx->eaddr = eaddr; sr =...
false
qemu
91cda45b69e45a089f9989979a65db3f710c9925
static int get_segment32(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, target_ulong eaddr, int rw, int type) { hwaddr hash; target_ulong vsid; int ds, pr, target_page_bits; int ret, ret2; target_ulong sr, pgidx; pr = msr_pr; ctx->eaddr = eaddr; sr =...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { hwaddr hash; target_ulong vsid; int VAR_5, VAR_6, VAR_7; int VAR_8, VAR_9; target_ulong sr, pgidx; VAR_6 = msr_pr; VAR_1->VAR_2 = VAR_2; ...
[ "static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4)\n{", "hwaddr hash;", "target_ulong vsid;", "int VAR_5, VAR_6, VAR_7;", "int VAR_8, VAR_9;", "target_ulong sr, pgidx;", "VAR_6 = msr_pr;", "VAR_1->VAR_2 = VAR_2;", "sr = VAR_0->sr[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, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43, 45, 47 ], [ 49 ], [ 51 ...
26,685
static int dmg_read_mish_block(BDRVDMGState *s, DmgHeaderState *ds, uint8_t *buffer, uint32_t count) { uint32_t type, i; int ret; size_t new_size; uint32_t chunk_count; int64_t offset = 0; uint64_t data_offset; uint64_t in_offset = ds->data_fork_offset...
false
qemu
a8b10c6ead7f62e8eadbdaf944f371889c3c4c29
static int dmg_read_mish_block(BDRVDMGState *s, DmgHeaderState *ds, uint8_t *buffer, uint32_t count) { uint32_t type, i; int ret; size_t new_size; uint32_t chunk_count; int64_t offset = 0; uint64_t data_offset; uint64_t in_offset = ds->data_fork_offset...
{ "code": [], "line_no": [] }
static int FUNC_0(BDRVDMGState *VAR_0, DmgHeaderState *VAR_1, uint8_t *VAR_2, uint32_t VAR_3) { uint32_t type, i; int VAR_4; size_t new_size; uint32_t chunk_count; int64_t offset = 0; uint64_t data_offset; uint64_t in_offset = VAR_1->data_fork_offset; ...
[ "static int FUNC_0(BDRVDMGState *VAR_0, DmgHeaderState *VAR_1,\nuint8_t *VAR_2, uint32_t VAR_3)\n{", "uint32_t type, i;", "int VAR_4;", "size_t new_size;", "uint32_t chunk_count;", "int64_t offset = 0;", "uint64_t data_offset;", "uint64_t in_offset = VAR_1->data_fork_offset;", "uint64_t out_offset;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 41 ], [ 47 ], [ 49 ], [ 55 ], [ 59 ], [ 61 ], [...
26,686
static always_inline void gen_qemu_ldf (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_qemu_ld32u(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_f, t0, tmp); tcg_temp_free(tmp); }
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static always_inline void gen_qemu_ldf (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_qemu_ld32u(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_f, t0, tmp); tcg_temp_free(tmp); }
{ "code": [], "line_no": [] }
static always_inline void FUNC_0 (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_qemu_ld32u(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_f, t0, tmp); tcg_temp_free(tmp); }
[ "static always_inline void FUNC_0 (TCGv t0, TCGv t1, int flags)\n{", "TCGv tmp = tcg_temp_new(TCG_TYPE_I32);", "tcg_gen_qemu_ld32u(tmp, t1, flags);", "tcg_gen_helper_1_1(helper_memory_to_f, t0, tmp);", "tcg_temp_free(tmp);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
26,687
static int local_chmod(FsContext *fs_ctx, V9fsPath *fs_path, FsCred *credp) { char buffer[PATH_MAX]; char *path = fs_path->data; if (fs_ctx->fs_sm == SM_MAPPED) { return local_set_xattr(rpath(fs_ctx, path, buffer), credp); } else if ((fs_ctx->fs_sm == SM_PASSTHROUGH) || (...
false
qemu
b97400caef60ccfb0bc81c59f8bd824c43a0d6c8
static int local_chmod(FsContext *fs_ctx, V9fsPath *fs_path, FsCred *credp) { char buffer[PATH_MAX]; char *path = fs_path->data; if (fs_ctx->fs_sm == SM_MAPPED) { return local_set_xattr(rpath(fs_ctx, path, buffer), credp); } else if ((fs_ctx->fs_sm == SM_PASSTHROUGH) || (...
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, FsCred *VAR_2) { char VAR_3[PATH_MAX]; char *VAR_4 = VAR_1->data; if (VAR_0->fs_sm == SM_MAPPED) { return local_set_xattr(rpath(VAR_0, VAR_4, VAR_3), VAR_2); } else if ((VAR_0->fs_sm == SM_PASSTHROUGH) || (VAR_0->fs_sm ...
[ "static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, FsCred *VAR_2)\n{", "char VAR_3[PATH_MAX];", "char *VAR_4 = VAR_1->data;", "if (VAR_0->fs_sm == SM_MAPPED) {", "return local_set_xattr(rpath(VAR_0, VAR_4, VAR_3), VAR_2);", "} else if ((VAR_0->fs_sm == SM_PASSTHROUGH) ||", "(VAR_0->fs_sm == SM_NONE))...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
26,688
static inline PageDesc *page_find(target_ulong index) { PageDesc *p; p = l1_map[index >> L2_BITS]; if (!p) return 0; return p + (index & (L2_SIZE - 1)); }
true
qemu
434929bf11f0573d953c24287badbc2431a042ef
static inline PageDesc *page_find(target_ulong index) { PageDesc *p; p = l1_map[index >> L2_BITS]; if (!p) return 0; return p + (index & (L2_SIZE - 1)); }
{ "code": [ " PageDesc *p;", " p = l1_map[index >> L2_BITS];" ], "line_no": [ 5, 9 ] }
static inline PageDesc *FUNC_0(target_ulong index) { PageDesc *p; p = l1_map[index >> L2_BITS]; if (!p) return 0; return p + (index & (L2_SIZE - 1)); }
[ "static inline PageDesc *FUNC_0(target_ulong index)\n{", "PageDesc *p;", "p = l1_map[index >> L2_BITS];", "if (!p)\nreturn 0;", "return p + (index & (L2_SIZE - 1));", "}" ]
[ 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
26,689
static int pcm_bluray_parse_header(AVCodecContext *avctx, const uint8_t *header) { static const uint8_t bits_per_samples[4] = { 0, 16, 20, 24 }; static const uint32_t channel_layouts[16] = { 0, AV_CH_LAYOUT_MONO, 0, AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_SURROUND, ...
false
FFmpeg
cd0cfdc0a74cbf45f0d00b65faaf3cf5bd93c016
static int pcm_bluray_parse_header(AVCodecContext *avctx, const uint8_t *header) { static const uint8_t bits_per_samples[4] = { 0, 16, 20, 24 }; static const uint32_t channel_layouts[16] = { 0, AV_CH_LAYOUT_MONO, 0, AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_SURROUND, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1) { static const uint8_t VAR_2[4] = { 0, 16, 20, 24 }; static const uint32_t VAR_3[16] = { 0, AV_CH_LAYOUT_MONO, 0, AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_SURROUND, AV_CH_LAYOUT_2_1, AV_CH_LAYOUT_4PO...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1)\n{", "static const uint8_t VAR_2[4] = { 0, 16, 20, 24 };", "static const uint32_t VAR_3[16] = {", "0, AV_CH_LAYOUT_MONO, 0, AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_SURROUND,\nAV_CH_LAYOUT_2_1, AV_CH_LAYOUT_4POINT0, AV_CH_LAYOUT_2_2, AV_CH_LAYOUT_5POIN...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 29, 31, 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53, 55 ], [...
26,690
static int protocol_client_auth_sasl_mechname_len(VncState *vs, uint8_t *data, size_t len) { uint32_t mechlen = read_u32(data, 0); VNC_DEBUG("Got client mechname len %d\n", mechlen); if (mechlen > 100) { VNC_DEBUG("Too long SASL mechname data %d\n", mechlen); vnc_client_error(vs); ...
true
qemu
7364dbdabb7824d5bde1e341bb6d928282f01c83
static int protocol_client_auth_sasl_mechname_len(VncState *vs, uint8_t *data, size_t len) { uint32_t mechlen = read_u32(data, 0); VNC_DEBUG("Got client mechname len %d\n", mechlen); if (mechlen > 100) { VNC_DEBUG("Too long SASL mechname data %d\n", mechlen); vnc_client_error(vs); ...
{ "code": [ " VNC_DEBUG(\"Got client mechname len %d\\n\", mechlen);", " VNC_DEBUG(\"Too long SASL mechname data %d\\n\", mechlen);", " VNC_DEBUG(\"Too short SASL mechname %d\\n\", mechlen);" ], "line_no": [ 7, 11, 21 ] }
static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2) { uint32_t mechlen = read_u32(VAR_1, 0); VNC_DEBUG("Got client mechname VAR_2 %d\n", mechlen); if (mechlen > 100) { VNC_DEBUG("Too long SASL mechname VAR_1 %d\n", mechlen); vnc_client_error(VAR_0); return -1; ...
[ "static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{", "uint32_t mechlen = read_u32(VAR_1, 0);", "VNC_DEBUG(\"Got client mechname VAR_2 %d\\n\", mechlen);", "if (mechlen > 100) {", "VNC_DEBUG(\"Too long SASL mechname VAR_1 %d\\n\", mechlen);", "vnc_client_error(VAR_0);", "return -1;", ...
[ 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
26,691
static inline int ultrasparc_tag_match(SparcTLBEntry *tlb, uint64_t address, uint64_t context, target_phys_addr_t *physical, int is_nucleus) { uint64_t mask; switch ((tlb->tte >> 61) & 3)...
true
qemu
299b520cd4092be3c53f8380b81315c33927d9d3
static inline int ultrasparc_tag_match(SparcTLBEntry *tlb, uint64_t address, uint64_t context, target_phys_addr_t *physical, int is_nucleus) { uint64_t mask; switch ((tlb->tte >> 61) & 3)...
{ "code": [ " target_phys_addr_t *physical,", " int is_nucleus)", " ((is_nucleus && compare_masked(0, tlb->tag, 0x1fff))", " || TTE_IS_GLOBAL(tlb->tte) || compare_masked(context, tlb->tag, 0x1fff))" ], "line...
static inline int FUNC_0(SparcTLBEntry *VAR_0, uint64_t VAR_1, uint64_t VAR_2, target_phys_addr_t *VAR_3, int VAR_4) { uint64_t mask; switch ((VAR_0->tte >> 61) & 3) { default: ...
[ "static inline int FUNC_0(SparcTLBEntry *VAR_0,\nuint64_t VAR_1, uint64_t VAR_2,\ntarget_phys_addr_t *VAR_3,\nint VAR_4)\n{", "uint64_t mask;", "switch ((VAR_0->tte >> 61) & 3) {", "default:\ncase 0x0:\nmask = 0xffffffffffffe000ULL;", "break;", "case 0x1:\nmask = 0xffffffffffff0000ULL;", "break;", "ca...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 49, 51, 53, 55, 57 ], [ 61 ...
26,692
int ff_dxva2_commit_buffer(AVCodecContext *avctx, AVDXVAContext *ctx, DECODER_BUFFER_DESC *dsc, unsigned type, const void *data, unsigned size, unsigned mb_count) { void *dxva_data; unsigned dx...
true
FFmpeg
7ed5d78d619e45b46ba003e8014767b05b73b7d2
int ff_dxva2_commit_buffer(AVCodecContext *avctx, AVDXVAContext *ctx, DECODER_BUFFER_DESC *dsc, unsigned type, const void *data, unsigned size, unsigned mb_count) { void *dxva_data; unsigned dx...
{ "code": [ " HRESULT hr;" ], "line_no": [ 19 ] }
int FUNC_0(AVCodecContext *VAR_0, AVDXVAContext *VAR_1, DECODER_BUFFER_DESC *VAR_2, unsigned VAR_3, const void *VAR_4, unsigned VAR_5, unsigned VAR_6) { void *VAR_7; unsigned VAR_8; int ...
[ "int FUNC_0(AVCodecContext *VAR_0,\nAVDXVAContext *VAR_1,\nDECODER_BUFFER_DESC *VAR_2,\nunsigned VAR_3, const void *VAR_4, unsigned VAR_5,\nunsigned VAR_6)\n{", "void *VAR_7;", "unsigned VAR_8;", "int VAR_9;", "HRESULT hr;", "#if CONFIG_D3D11VA\nif (VAR_0->pix_fmt == AV_PIX_FMT_D3D11VA_VLD)\nhr =...
[ 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 ], [ 23, 25, 27, 29, 31, 33 ], [ 35, 37, 39, 41, 43 ], [ 45, 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [...
26,693
static void new_video_stream(AVFormatContext *oc, int file_idx) { AVStream *st; AVOutputStream *ost; AVCodecContext *video_enc; enum CodecID codec_id; AVCodec *codec= NULL; st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0); if (!st) { ...
true
FFmpeg
4618637aca3b771b0bfb8fe15f3a080dacf9f0c0
static void new_video_stream(AVFormatContext *oc, int file_idx) { AVStream *st; AVOutputStream *ost; AVCodecContext *video_enc; enum CodecID codec_id; AVCodec *codec= NULL; st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0); if (!st) { ...
{ "code": [ " enum CodecID codec_id;", " enum CodecID codec_id;", " enum CodecID codec_id;" ], "line_no": [ 11, 11, 11 ] }
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1) { AVStream *st; AVOutputStream *ost; AVCodecContext *video_enc; enum CodecID VAR_2; AVCodec *codec= NULL; st = av_new_stream(VAR_0, VAR_0->nb_streams < nb_streamid_map ? streamid_map[VAR_0->nb_streams] : 0); if (!st) { ...
[ "static void FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "AVStream *st;", "AVOutputStream *ost;", "AVCodecContext *video_enc;", "enum CodecID VAR_2;", "AVCodec *codec= NULL;", "st = av_new_stream(VAR_0, VAR_0->nb_streams < nb_streamid_map ? streamid_map[VAR_0->nb_streams] : 0);", "if (!st) {", "f...
[ 0, 0, 0, 0, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [...
26,694
static ExitStatus trans_fop_wew_0e(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = assemble_rt64(insn); unsigned ra = assemble_ra64(insn); return do_fop_wew(ctx, rt, ra, di->f_wew); }
true
qemu
eff235eb2bcd7092901f4698a7907e742f3b7f2f
static ExitStatus trans_fop_wew_0e(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = assemble_rt64(insn); unsigned ra = assemble_ra64(insn); return do_fop_wew(ctx, rt, ra, di->f_wew); }
{ "code": [ " return do_fop_wew(ctx, rt, ra, di->f_wew);", " return do_fop_wew(ctx, rt, ra, di->f_wew);" ], "line_no": [ 11, 11 ] }
static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned VAR_0 = assemble_rt64(insn); unsigned VAR_1 = assemble_ra64(insn); return do_fop_wew(ctx, VAR_0, VAR_1, di->f_wew); }
[ "static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn,\nconst DisasInsn *di)\n{", "unsigned VAR_0 = assemble_rt64(insn);", "unsigned VAR_1 = assemble_ra64(insn);", "return do_fop_wew(ctx, VAR_0, VAR_1, di->f_wew);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
26,695
static int alac_decode_frame(AVCodecContext *avctx, void *outbuffer, int *outputsize, uint8_t *inbuffer, int input_buffer_size) { ALACContext *alac = avctx->priv_data; int channels; int32_t outputsamples; /* short-circuit null buffers ...
true
FFmpeg
1e25a7e7ebb55516d522a8ab1c4b7938b5060fe5
static int alac_decode_frame(AVCodecContext *avctx, void *outbuffer, int *outputsize, uint8_t *inbuffer, int input_buffer_size) { ALACContext *alac = avctx->priv_data; int channels; int32_t outputsamples; if (!inbuffer || !input_...
{ "code": [ " alac_set_info(alac);" ], "line_no": [ 41 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { ALACContext *alac = VAR_0->priv_data; int VAR_5; int32_t outputsamples; if (!VAR_3 || !VAR_4) return VAR_4; if (...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "ALACContext *alac = VAR_0->priv_data;", "int VAR_5;", "int32_t outputsamples;", "if (!VAR_3 || !VAR_4)\nreturn VAR_4;", "if (!alac->context_initialized) {", "if (alac->VAR_0->extradata_size != ALAC_EXTR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 21, 23 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 57 ], [ 61 ], [ 65 ...
26,696
static int disas_thumb2_insn(CPUState *env, DisasContext *s, uint16_t insn_hw1) { uint32_t insn, imm, shift, offset; uint32_t rd, rn, rm, rs; TCGv tmp; TCGv tmp2; TCGv tmp3; TCGv addr; TCGv_i64 tmp64; int op; int shiftop; int conds; int logic_cc; if (!(arm_...
false
qemu
39ea3d4eaf1ff300ee55946108394729bc053dfa
static int disas_thumb2_insn(CPUState *env, DisasContext *s, uint16_t insn_hw1) { uint32_t insn, imm, shift, offset; uint32_t rd, rn, rm, rs; TCGv tmp; TCGv tmp2; TCGv tmp3; TCGv addr; TCGv_i64 tmp64; int op; int shiftop; int conds; int logic_cc; if (!(arm_...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint16_t VAR_2) { uint32_t insn, imm, shift, offset; uint32_t rd, rn, rm, rs; TCGv tmp; TCGv tmp2; TCGv tmp3; TCGv addr; TCGv_i64 tmp64; int VAR_3; int VAR_4; int VAR_5; int VAR_6; if (!(arm_feature(VA...
[ "static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint16_t VAR_2)\n{", "uint32_t insn, imm, shift, offset;", "uint32_t rd, rn, rm, rs;", "TCGv tmp;", "TCGv tmp2;", "TCGv tmp3;", "TCGv addr;", "TCGv_i64 tmp64;", "int VAR_3;", "int VAR_4;", "int VAR_5;", "int VAR_6;", "if (!(arm_feature...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
26,697
size_t iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, size_t iov_off, void *buf, size_t size) { uint8_t *ptr; size_t iovec_off, buf_off; unsigned int i; ptr = buf; iovec_off = 0; buf_off = 0; for (i = 0; i < iov_cnt && size; i++) { if (i...
false
qemu
2278a69e7020d86a8c73a28474e7709d3e7d5081
size_t iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, size_t iov_off, void *buf, size_t size) { uint8_t *ptr; size_t iovec_off, buf_off; unsigned int i; ptr = buf; iovec_off = 0; buf_off = 0; for (i = 0; i < iov_cnt && size; i++) { if (i...
{ "code": [], "line_no": [] }
size_t FUNC_0(const struct iovec *iov, const unsigned int iov_cnt, size_t iov_off, void *buf, size_t size) { uint8_t *ptr; size_t iovec_off, buf_off; unsigned int VAR_0; ptr = buf; iovec_off = 0; buf_off = 0; for (VAR_0 = 0; VAR_0 < iov_cnt && size; VAR_0++) { ...
[ "size_t FUNC_0(const struct iovec *iov, const unsigned int iov_cnt, size_t iov_off,\nvoid *buf, size_t size)\n{", "uint8_t *ptr;", "size_t iovec_off, buf_off;", "unsigned int VAR_0;", "ptr = buf;", "iovec_off = 0;", "buf_off = 0;", "for (VAR_0 = 0; VAR_0 < iov_cnt && size; VAR_0++) {", "if (iov_off ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
26,698
void hmp_savevm(Monitor *mon, const QDict *qdict) { BlockDriverState *bs, *bs1; QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1; int ret; QEMUFile *f; int saved_vm_running; uint64_t vm_state_size; qemu_timeval tv; struct tm tm; const char *name = qdict_get_try...
false
qemu
ac8c19ba742fcbc3d64a5390b32acc6479edd7e1
void hmp_savevm(Monitor *mon, const QDict *qdict) { BlockDriverState *bs, *bs1; QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1; int ret; QEMUFile *f; int saved_vm_running; uint64_t vm_state_size; qemu_timeval tv; struct tm tm; const char *name = qdict_get_try...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { BlockDriverState *bs, *bs1; QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1; int VAR_2; QEMUFile *f; int VAR_3; uint64_t vm_state_size; qemu_timeval tv; struct VAR_4 VAR_4; const char *VAR_5 = qdict_get_try_str...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "BlockDriverState *bs, *bs1;", "QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1;", "int VAR_2;", "QEMUFile *f;", "int VAR_3;", "uint64_t vm_state_size;", "qemu_timeval tv;", "struct VAR_4 VAR_4;", "const char *VAR_5 = qdict_get_tr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45, 47, 49 ], [...
26,699
static coroutine_fn int qcow2_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVQcow2State *s = bs->opaque; int offset_in_cluster; int ret; unsigned int cur_bytes...
false
qemu
b25b387fa5928e516cb2c9e7fde68e958bd7e50a
static coroutine_fn int qcow2_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVQcow2State *s = bs->opaque; int offset_in_cluster; int ret; unsigned int cur_bytes...
{ "code": [], "line_no": [] }
static coroutine_fn int FUNC_0(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVQcow2State *s = bs->opaque; int VAR_0; int VAR_1; unsigned int VAR_2; uint64_t cluster...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs, uint64_t offset,\nuint64_t bytes, QEMUIOVector *qiov,\nint flags)\n{", "BDRVQcow2State *s = bs->opaque;", "int VAR_0;", "int VAR_1;", "unsigned int VAR_2;", "uint64_t cluster_offset;", "QEMUIOVector hd_qiov;", "uint64_t bytes_done = 0;", "uint8_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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 37 ], [ 41 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ...
26,700
static int open_self_maps(void *cpu_env, int fd) { #if defined(TARGET_ARM) || defined(TARGET_M68K) || defined(TARGET_UNICORE32) CPUState *cpu = ENV_GET_CPU((CPUArchState *)cpu_env); TaskState *ts = cpu->opaque; #endif FILE *fp; char *line = NULL; size_t len = 0; ssize_t read; fp ...
false
qemu
d67f4aaae8379b44b3b51ff07df75f693012983c
static int open_self_maps(void *cpu_env, int fd) { #if defined(TARGET_ARM) || defined(TARGET_M68K) || defined(TARGET_UNICORE32) CPUState *cpu = ENV_GET_CPU((CPUArchState *)cpu_env); TaskState *ts = cpu->opaque; #endif FILE *fp; char *line = NULL; size_t len = 0; ssize_t read; fp ...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, int VAR_1) { #if defined(TARGET_ARM) || defined(TARGET_M68K) || defined(TARGET_UNICORE32) CPUState *cpu = ENV_GET_CPU((CPUArchState *)VAR_0); TaskState *ts = cpu->opaque; #endif FILE *fp; char *VAR_2 = NULL; size_t len = 0; ssize_t read; fp = fopen(...
[ "static int FUNC_0(void *VAR_0, int VAR_1)\n{", "#if defined(TARGET_ARM) || defined(TARGET_M68K) || defined(TARGET_UNICORE32)\nCPUState *cpu = ENV_GET_CPU((CPUArchState *)VAR_0);", "TaskState *ts = cpu->opaque;", "#endif\nFILE *fp;", "char *VAR_2 = NULL;", "size_t len = 0;", "ssize_t read;", "fp = fop...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45, 47 ], [ 51 ...
26,702
static void qxl_log_cmd_draw(PCIQXLDevice *qxl, QXLDrawable *draw, int group_id) { fprintf(stderr, ": surface_id %d type %s effect %s", draw->surface_id, qxl_name(qxl_draw_type, draw->type), qxl_name(qxl_draw_effect, draw->effect)); switch (draw->type) { case QXL_D...
false
qemu
fae2afb10e3fdceab612c62a2b1e8b944ff578d9
static void qxl_log_cmd_draw(PCIQXLDevice *qxl, QXLDrawable *draw, int group_id) { fprintf(stderr, ": surface_id %d type %s effect %s", draw->surface_id, qxl_name(qxl_draw_type, draw->type), qxl_name(qxl_draw_effect, draw->effect)); switch (draw->type) { case QXL_D...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0, QXLDrawable *VAR_1, int VAR_2) { fprintf(stderr, ": surface_id %d type %s effect %s", VAR_1->surface_id, qxl_name(qxl_draw_type, VAR_1->type), qxl_name(qxl_draw_effect, VAR_1->effect)); switch (VAR_1->type) { case QXL_DRAW_CO...
[ "static void FUNC_0(PCIQXLDevice *VAR_0, QXLDrawable *VAR_1, int VAR_2)\n{", "fprintf(stderr, \": surface_id %d type %s effect %s\",\nVAR_1->surface_id,\nqxl_name(qxl_draw_type, VAR_1->type),\nqxl_name(qxl_draw_effect, VAR_1->effect));", "switch (VAR_1->type) {", "case QXL_DRAW_COPY:\nqxl_log_cmd_draw_copy(VA...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
26,703
int bdrv_enable_write_cache(BlockDriverState *bs) { return bs->enable_write_cache; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int bdrv_enable_write_cache(BlockDriverState *bs) { return bs->enable_write_cache; }
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0) { return VAR_0->enable_write_cache; }
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "return VAR_0->enable_write_cache;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
26,704
static int add_doubles_metadata(int count, const char *name, const char *sep, TiffContext *s) { char *ap; int i; double *dp; if (bytestream2_get_bytes_left(&s->gb) < count * sizeof(int64_t)) return -1; dp = av_mallo...
false
FFmpeg
292850b634240045805e3c2001aed6f046034e93
static int add_doubles_metadata(int count, const char *name, const char *sep, TiffContext *s) { char *ap; int i; double *dp; if (bytestream2_get_bytes_left(&s->gb) < count * sizeof(int64_t)) return -1; dp = av_mallo...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, const char *VAR_1, const char *VAR_2, TiffContext *VAR_3) { char *VAR_4; int VAR_5; double *VAR_6; if (bytestream2_get_bytes_left(&VAR_3->gb) < VAR_0 * sizeof(int64_t)) return -1; VAR_6 ...
[ "static int FUNC_0(int VAR_0,\nconst char *VAR_1, const char *VAR_2,\nTiffContext *VAR_3)\n{", "char *VAR_4;", "int VAR_5;", "double *VAR_6;", "if (bytestream2_get_bytes_left(&VAR_3->gb) < VAR_0 * sizeof(int64_t))\nreturn -1;", "VAR_6 = av_malloc(VAR_0 * sizeof(double));", "if (!VAR_6)\nreturn AVERROR(E...
[ 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ] ]
26,705
static void device_set_realized(Object *obj, bool value, Error **errp) { DeviceState *dev = DEVICE(obj); DeviceClass *dc = DEVICE_GET_CLASS(dev); HotplugHandler *hotplug_ctrl; BusState *bus; Error *local_err = NULL; bool unattached_parent = false; static int unattached_count; ...
false
qemu
67980031d234aa90524b83bb80bb5d1601d29076
static void device_set_realized(Object *obj, bool value, Error **errp) { DeviceState *dev = DEVICE(obj); DeviceClass *dc = DEVICE_GET_CLASS(dev); HotplugHandler *hotplug_ctrl; BusState *bus; Error *local_err = NULL; bool unattached_parent = false; static int unattached_count; ...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0, bool VAR_1, Error **VAR_2) { DeviceState *dev = DEVICE(VAR_0); DeviceClass *dc = DEVICE_GET_CLASS(dev); HotplugHandler *hotplug_ctrl; BusState *bus; Error *local_err = NULL; bool unattached_parent = false; static int VAR_3; if (dev->hotplugged...
[ "static void FUNC_0(Object *VAR_0, bool VAR_1, Error **VAR_2)\n{", "DeviceState *dev = DEVICE(VAR_0);", "DeviceClass *dc = DEVICE_GET_CLASS(dev);", "HotplugHandler *hotplug_ctrl;", "BusState *bus;", "Error *local_err = NULL;", "bool unattached_parent = false;", "static int VAR_3;", "if (dev->hotplug...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
26,706
static void serial_update_irq(SerialState *s) { uint8_t tmp_iir = UART_IIR_NO_INT; if ((s->ier & UART_IER_RLSI) && (s->lsr & UART_LSR_INT_ANY)) { tmp_iir = UART_IIR_RLSI; } else if ((s->ier & UART_IER_RDI) && s->timeout_ipending) { /* Note that(s->ier & UART_IER_RDI) can mask this in...
false
qemu
2d6ee8e7e17227d5eb8c6e9a054dd88d5b37c5ae
static void serial_update_irq(SerialState *s) { uint8_t tmp_iir = UART_IIR_NO_INT; if ((s->ier & UART_IER_RLSI) && (s->lsr & UART_LSR_INT_ANY)) { tmp_iir = UART_IIR_RLSI; } else if ((s->ier & UART_IER_RDI) && s->timeout_ipending) { tmp_iir = UART_IIR_CTI; } else if...
{ "code": [], "line_no": [] }
static void FUNC_0(SerialState *VAR_0) { uint8_t tmp_iir = UART_IIR_NO_INT; if ((VAR_0->ier & UART_IER_RLSI) && (VAR_0->lsr & UART_LSR_INT_ANY)) { tmp_iir = UART_IIR_RLSI; } else if ((VAR_0->ier & UART_IER_RDI) && VAR_0->timeout_ipending) { tmp_iir = UART_IIR_CTI; ...
[ "static void FUNC_0(SerialState *VAR_0)\n{", "uint8_t tmp_iir = UART_IIR_NO_INT;", "if ((VAR_0->ier & UART_IER_RLSI) && (VAR_0->lsr & UART_LSR_INT_ANY)) {", "tmp_iir = UART_IIR_RLSI;", "} else if ((VAR_0->ier & UART_IER_RDI) && VAR_0->timeout_ipending) {", "tmp_iir = UART_IIR_CTI;", "} else if ((VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53...
26,707
static void spapr_add_lmbs(DeviceState *dev, uint64_t addr_start, uint64_t size, uint32_t node, bool dedicated_hp_event_source, Error **errp) { sPAPRDRConnector *drc; uint32_t nr_lmbs = size/SPAPR_MEMORY_BLOCK_SIZE; int i, fdt_offset, fdt_size; ...
false
qemu
4f9242fc931ab5e5b1b753c8e5a76c50c0b0612e
static void spapr_add_lmbs(DeviceState *dev, uint64_t addr_start, uint64_t size, uint32_t node, bool dedicated_hp_event_source, Error **errp) { sPAPRDRConnector *drc; uint32_t nr_lmbs = size/SPAPR_MEMORY_BLOCK_SIZE; int i, fdt_offset, fdt_size; ...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, uint64_t VAR_1, uint64_t VAR_2, uint32_t VAR_3, bool VAR_4, Error **VAR_5) { sPAPRDRConnector *drc; uint32_t nr_lmbs = VAR_2/SPAPR_MEMORY_BLOCK_SIZE; int VAR_6, VAR_7, VAR_8; void *VAR_9; uint64_t ad...
[ "static void FUNC_0(DeviceState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nuint32_t VAR_3, bool VAR_4,\nError **VAR_5)\n{", "sPAPRDRConnector *drc;", "uint32_t nr_lmbs = VAR_2/SPAPR_MEMORY_BLOCK_SIZE;", "int VAR_6, VAR_7, VAR_8;", "void *VAR_9;", "uint64_t addr = VAR_1;", "for (VAR_6 = 0; VAR_6 < nr_lmbs;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ...
26,708
static int vdi_open(BlockDriverState *bs, int flags) { BDRVVdiState *s = bs->opaque; VdiHeader header; size_t bmap_size; int ret; logout("\n"); ret = bdrv_read(bs->file, 0, (uint8_t *)&header, 1); if (ret < 0) { goto fail; } vdi_header_to_cpu(&header); #if d...
false
qemu
0e87ba2ccbf900cc5a56b95e0671e5a5d2c2f6a0
static int vdi_open(BlockDriverState *bs, int flags) { BDRVVdiState *s = bs->opaque; VdiHeader header; size_t bmap_size; int ret; logout("\n"); ret = bdrv_read(bs->file, 0, (uint8_t *)&header, 1); if (ret < 0) { goto fail; } vdi_header_to_cpu(&header); #if d...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int VAR_1) { BDRVVdiState *s = VAR_0->opaque; VdiHeader header; size_t bmap_size; int VAR_2; logout("\n"); VAR_2 = bdrv_read(VAR_0->file, 0, (uint8_t *)&header, 1); if (VAR_2 < 0) { goto fail; } vdi_header_to_cpu(&he...
[ "static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{", "BDRVVdiState *s = VAR_0->opaque;", "VdiHeader header;", "size_t bmap_size;", "int VAR_2;", "logout(\"\\n\");", "VAR_2 = bdrv_read(VAR_0->file, 0, (uint8_t *)&header, 1);", "if (VAR_2 < 0) {", "goto fail;", "}", "vdi_header_to_cpu(&head...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31, 33 ], [ 35, 39 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59,...
26,709
qemu_irq isa_reserve_irq(int isairq) { if (isairq < 0 || isairq > 15) { hw_error("isa irq %d invalid", isairq); } if (isabus->assigned & (1 << isairq)) { hw_error("isa irq %d already assigned", isairq); } isabus->assigned |= (1 << isairq); return isabus->irqs[isairq]; }...
false
qemu
ee951a37d8873bff7aa58e23222dfd984111b6cb
qemu_irq isa_reserve_irq(int isairq) { if (isairq < 0 || isairq > 15) { hw_error("isa irq %d invalid", isairq); } if (isabus->assigned & (1 << isairq)) { hw_error("isa irq %d already assigned", isairq); } isabus->assigned |= (1 << isairq); return isabus->irqs[isairq]; }...
{ "code": [], "line_no": [] }
qemu_irq FUNC_0(int isairq) { if (isairq < 0 || isairq > 15) { hw_error("isa irq %d invalid", isairq); } if (isabus->assigned & (1 << isairq)) { hw_error("isa irq %d already assigned", isairq); } isabus->assigned |= (1 << isairq); return isabus->irqs[isairq]; }
[ "qemu_irq FUNC_0(int isairq)\n{", "if (isairq < 0 || isairq > 15) {", "hw_error(\"isa irq %d invalid\", isairq);", "}", "if (isabus->assigned & (1 << isairq)) {", "hw_error(\"isa irq %d already assigned\", isairq);", "}", "isabus->assigned |= (1 << isairq);", "return isabus->irqs[isairq];", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
26,710
S390CPU *cpu_s390x_create(const char *cpu_model, Error **errp) { static bool features_parsed; char *name, *features; const char *typename; ObjectClass *oc; CPUClass *cc; name = g_strdup(cpu_model); features = strchr(name, ','); if (features) { features[0] = 0; ...
false
qemu
524d18d8bd463431b120eeb5f9f3d1064a1c19e4
S390CPU *cpu_s390x_create(const char *cpu_model, Error **errp) { static bool features_parsed; char *name, *features; const char *typename; ObjectClass *oc; CPUClass *cc; name = g_strdup(cpu_model); features = strchr(name, ','); if (features) { features[0] = 0; ...
{ "code": [], "line_no": [] }
S390CPU *FUNC_0(const char *cpu_model, Error **errp) { static bool VAR_0; char *VAR_1, *VAR_2; const char *VAR_3; ObjectClass *oc; CPUClass *cc; VAR_1 = g_strdup(cpu_model); VAR_2 = strchr(VAR_1, ','); if (VAR_2) { VAR_2[0] = 0; VAR_2++; } oc = cp...
[ "S390CPU *FUNC_0(const char *cpu_model, Error **errp)\n{", "static bool VAR_0;", "char *VAR_1, *VAR_2;", "const char *VAR_3;", "ObjectClass *oc;", "CPUClass *cc;", "VAR_1 = g_strdup(cpu_model);", "VAR_2 = strchr(VAR_1, ',');", "if (VAR_2) {", "VAR_2[0] = 0;", "VAR_2++;", "}", "oc = cpu_class...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ...
26,712
static inline void pit_load_count(PITChannelState *s, int val) { if (val == 0) val = 0x10000; s->count_load_time = cpu_get_ticks(); s->count_last_edge_check_time = s->count_load_time; s->count = val; if (s == &pit_channels[0] && val <= pit_min_timer_count) { fprintf(stderr, ...
false
qemu
bb551faa4ac8a798df9757c0ae26893041344bc3
static inline void pit_load_count(PITChannelState *s, int val) { if (val == 0) val = 0x10000; s->count_load_time = cpu_get_ticks(); s->count_last_edge_check_time = s->count_load_time; s->count = val; if (s == &pit_channels[0] && val <= pit_min_timer_count) { fprintf(stderr, ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(PITChannelState *VAR_0, int VAR_1) { if (VAR_1 == 0) VAR_1 = 0x10000; VAR_0->count_load_time = cpu_get_ticks(); VAR_0->count_last_edge_check_time = VAR_0->count_load_time; VAR_0->count = VAR_1; if (VAR_0 == &pit_channels[0] && VAR_1 <= pit_min_timer_count) { ...
[ "static inline void FUNC_0(PITChannelState *VAR_0, int VAR_1)\n{", "if (VAR_1 == 0)\nVAR_1 = 0x10000;", "VAR_0->count_load_time = cpu_get_ticks();", "VAR_0->count_last_edge_check_time = VAR_0->count_load_time;", "VAR_0->count = VAR_1;", "if (VAR_0 == &pit_channels[0] && VAR_1 <= pit_min_timer_count) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25 ] ]
26,713
static int usbredir_handle_bulk_data(USBRedirDevice *dev, USBPacket *p, uint8_t ep) { AsyncURB *aurb = async_alloc(dev, p); struct usb_redir_bulk_packet_header bulk_packet; DPRINTF("bulk-out ep %02X len %zd id %u\n", ep, p->iov.size, aurb->packet_id)...
false
qemu
104981d52b63dc3d68f39d4442881c667f44bbb9
static int usbredir_handle_bulk_data(USBRedirDevice *dev, USBPacket *p, uint8_t ep) { AsyncURB *aurb = async_alloc(dev, p); struct usb_redir_bulk_packet_header bulk_packet; DPRINTF("bulk-out ep %02X len %zd id %u\n", ep, p->iov.size, aurb->packet_id)...
{ "code": [], "line_no": [] }
static int FUNC_0(USBRedirDevice *VAR_0, USBPacket *VAR_1, uint8_t VAR_2) { AsyncURB *aurb = async_alloc(VAR_0, VAR_1); struct usb_redir_bulk_packet_header VAR_3; DPRINTF("bulk-out VAR_2 %02X len %zd id %u\n", VAR_2, VAR_1->iov.size, aurb->packet_id)...
[ "static int FUNC_0(USBRedirDevice *VAR_0, USBPacket *VAR_1,\nuint8_t VAR_2)\n{", "AsyncURB *aurb = async_alloc(VAR_0, VAR_1);", "struct usb_redir_bulk_packet_header VAR_3;", "DPRINTF(\"bulk-out VAR_2 %02X len %zd id %u\\n\", VAR_2,\nVAR_1->iov.size, aurb->packet_id);", "VAR_3.endpoint = VAR_2;", "VAR_3.l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ...
26,714
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; C93DecoderContext * const c93 = avctx->priv_data; AVFrame * const newpic = &c93->pictures[c93->currentpic]; A...
true
FFmpeg
85aded741e03b17b0cc5c588b1f5acbcb25d7996
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; C93DecoderContext * const c93 = avctx->priv_data; AVFrame * const newpic = &c93->pictures[c93->currentpic]; A...
{ "code": [ " int stride, i, x, y, bt = 0;", " if (buf[0] & C93_FIRST_FRAME) {", " if (*buf++ & C93_HAS_PALETTE) {", " uint32_t *palette = (uint32_t *) newpic->data[1];", " const uint8_t *palbuf = buf + buf_size - 768 - 1;", " for (i = 0; i < 256; i++) {", " ...
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; C93DecoderContext * const c93 = VAR_0->priv_data; AVFrame * const newpic = &c93->pictures[c93->currentpic]; AVFrame * ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "C93DecoderContext * const c93 = VAR_0->priv_data;", "AVFrame * const newpic = &c93->pictures[c93->currentpic];", "AVFrame * const oldpic = &c93->pi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ...
26,716
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in) { HQDN3DContext *hqdn3d = inlink->dst->priv; AVFilterLink *outlink = inlink->dst->outputs[0]; AVFilterBufferRef *out; int direct, c; if (in->perms & AV_PERM_WRITE) { direct = 1; out = in; } else { ...
true
FFmpeg
9e1914dfbafb59b424a7c06cfdd324a85c33ef44
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in) { HQDN3DContext *hqdn3d = inlink->dst->priv; AVFilterLink *outlink = inlink->dst->outputs[0]; AVFilterBufferRef *out; int direct, c; if (in->perms & AV_PERM_WRITE) { direct = 1; out = in; } else { ...
{ "code": [ " int direct, c;" ], "line_no": [ 13 ] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { HQDN3DContext *hqdn3d = VAR_0->dst->priv; AVFilterLink *outlink = VAR_0->dst->outputs[0]; AVFilterBufferRef *out; int VAR_2, VAR_3; if (VAR_1->perms & AV_PERM_WRITE) { VAR_2 = 1; out = VAR_1; } else {...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "HQDN3DContext *hqdn3d = VAR_0->dst->priv;", "AVFilterLink *outlink = VAR_0->dst->outputs[0];", "AVFilterBufferRef *out;", "int VAR_2, VAR_3;", "if (VAR_1->perms & AV_PERM_WRITE) {", "VAR_2 = 1;", "out = VAR_1;", "} else {", "o...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49...
26,717
void *qemu_blockalign(BlockDriverState *bs, size_t size) { return qemu_memalign((bs && bs->buffer_alignment) ? bs->buffer_alignment : 512, size); }
true
qemu
339064d5063924e5176842abbf6c8089f3479c5b
void *qemu_blockalign(BlockDriverState *bs, size_t size) { return qemu_memalign((bs && bs->buffer_alignment) ? bs->buffer_alignment : 512, size); }
{ "code": [ " return qemu_memalign((bs && bs->buffer_alignment) ? bs->buffer_alignment : 512, size);" ], "line_no": [ 5 ] }
void *FUNC_0(BlockDriverState *VAR_0, size_t VAR_1) { return qemu_memalign((VAR_0 && VAR_0->buffer_alignment) ? VAR_0->buffer_alignment : 512, VAR_1); }
[ "void *FUNC_0(BlockDriverState *VAR_0, size_t VAR_1)\n{", "return qemu_memalign((VAR_0 && VAR_0->buffer_alignment) ? VAR_0->buffer_alignment : 512, VAR_1);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
26,718
static int ehci_fill_queue(EHCIPacket *p) { USBEndpoint *ep = p->packet.ep; EHCIQueue *q = p->queue; EHCIqtd qtd = p->qtd; uint32_t qtdaddr; for (;;) { if (NLPTR_TBIT(qtd.next) != 0) { qtdaddr = qtd.next; /* * Detect circular td lists, Windows creates t...
true
qemu
bbbc39ccacf66ef58261c155f9eed503947c3023
static int ehci_fill_queue(EHCIPacket *p) { USBEndpoint *ep = p->packet.ep; EHCIQueue *q = p->queue; EHCIqtd qtd = p->qtd; uint32_t qtdaddr; for (;;) { if (NLPTR_TBIT(qtd.next) != 0) { qtdaddr = qtd.next; QTAILQ_FOREACH(p, &q->packets, next) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(EHCIPacket *VAR_0) { USBEndpoint *ep = VAR_0->packet.ep; EHCIQueue *q = VAR_0->queue; EHCIqtd qtd = VAR_0->qtd; uint32_t qtdaddr; for (;;) { if (NLPTR_TBIT(qtd.next) != 0) { qtdaddr = qtd.next; QTAILQ_FOREACH(VAR_0, &q->packets, ...
[ "static int FUNC_0(EHCIPacket *VAR_0)\n{", "USBEndpoint *ep = VAR_0->packet.ep;", "EHCIQueue *q = VAR_0->queue;", "EHCIqtd qtd = VAR_0->qtd;", "uint32_t qtdaddr;", "for (;;) {", "if (NLPTR_TBIT(qtd.next) != 0) {", "qtdaddr = qtd.next;", "QTAILQ_FOREACH(VAR_0, &q->packets, next) {", "if (VAR_0->qtd...
[ 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 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 46 ], [ 48 ], [ 56 ], [ 58 ], [ 60 ], [ 62 ], [...
26,719
void bdrv_close(BlockDriverState *bs) { if (bs->drv) { if (bs->backing_hd) bdrv_delete(bs->backing_hd); bs->drv->bdrv_close(bs); qemu_free(bs->opaque); #ifdef _WIN32 if (bs->is_temporary) { unlink(bs->filename); } #endif bs->opaque ...
true
qemu
b5eff355460643d09e533024360fe0522f368c07
void bdrv_close(BlockDriverState *bs) { if (bs->drv) { if (bs->backing_hd) bdrv_delete(bs->backing_hd); bs->drv->bdrv_close(bs); qemu_free(bs->opaque); #ifdef _WIN32 if (bs->is_temporary) { unlink(bs->filename); } #endif bs->opaque ...
{ "code": [ " bs->total_sectors = 0;" ], "line_no": [ 33 ] }
void FUNC_0(BlockDriverState *VAR_0) { if (VAR_0->drv) { if (VAR_0->backing_hd) bdrv_delete(VAR_0->backing_hd); VAR_0->drv->FUNC_0(VAR_0); qemu_free(VAR_0->opaque); #ifdef _WIN32 if (VAR_0->is_temporary) { unlink(VAR_0->filename); } #endif ...
[ "void FUNC_0(BlockDriverState *VAR_0)\n{", "if (VAR_0->drv) {", "if (VAR_0->backing_hd)\nbdrv_delete(VAR_0->backing_hd);", "VAR_0->drv->FUNC_0(VAR_0);", "qemu_free(VAR_0->opaque);", "#ifdef _WIN32\nif (VAR_0->is_temporary) {", "unlink(VAR_0->filename);", "}", "#endif\nVAR_0->opaque = NULL;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ] ]
26,720
static int encode_block(SVQ1EncContext *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra) { int count, y, x, i, j, split, best_mean, best_score, best_count; int best_vector[6]; int block_sum[7] ...
true
FFmpeg
9079e99d2c462ec7ef2e89d9e77ee6c3553dacce
static int encode_block(SVQ1EncContext *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra) { int count, y, x, i, j, split, best_mean, best_score, best_count; int best_vector[6]; int block_sum[7] ...
{ "code": [ " codebook_sum = svq1_intra_codebook_sum[level];", " codebook_sum = svq1_inter_codebook_sum[level];" ], "line_no": [ 37, 63 ] }
static int FUNC_0(SVQ1EncContext *VAR_0, FUNC_2 *VAR_1, FUNC_2 *VAR_2, FUNC_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8) { int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17; int VAR_18[6]; int VAR_19[7] = { 0, ...
[ "static int FUNC_0(SVQ1EncContext *VAR_0, FUNC_2 *VAR_1, FUNC_2 *VAR_2,\nFUNC_2 *VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8)\n{", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17;", "int VAR_18[6];", "int VAR_19[7] = { 0, 0, 0, 0, 0, 0 };", "int VAR_20 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 47 ...
26,721
void bdrv_attach_aio_context(BlockDriverState *bs, AioContext *new_context) { BdrvAioNotifier *ban; BdrvChild *child; if (!bs->drv) { return; } bs->aio_context = new_context; QLIST_FOREACH(child, &bs->children, next) { bdrv_attach_aio_...
true
qemu
e8a095dadb70e2ea6d5169d261920db3747bfa45
void bdrv_attach_aio_context(BlockDriverState *bs, AioContext *new_context) { BdrvAioNotifier *ban; BdrvChild *child; if (!bs->drv) { return; } bs->aio_context = new_context; QLIST_FOREACH(child, &bs->children, next) { bdrv_attach_aio_...
{ "code": [ " BdrvAioNotifier *ban;", " QLIST_FOREACH(ban, &bs->aio_notifiers, list) {", " ban->attached_aio_context(new_context, ban->opaque);" ], "line_no": [ 7, 39, 41 ] }
void FUNC_0(BlockDriverState *VAR_0, AioContext *VAR_1) { BdrvAioNotifier *ban; BdrvChild *child; if (!VAR_0->drv) { return; } VAR_0->aio_context = VAR_1; QLIST_FOREACH(child, &VAR_0->children, next) { FUNC_0(child->VAR_0, VAR_1); ...
[ "void FUNC_0(BlockDriverState *VAR_0,\nAioContext *VAR_1)\n{", "BdrvAioNotifier *ban;", "BdrvChild *child;", "if (!VAR_0->drv) {", "return;", "}", "VAR_0->aio_context = VAR_1;", "QLIST_FOREACH(child, &VAR_0->children, next) {", "FUNC_0(child->VAR_0, VAR_1);", "}", "if (VAR_0->drv->FUNC_0) {", ...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
26,722
static inline CopyRet copy_frame(AVCodecContext *avctx, BC_DTS_PROC_OUT *output, void *data, int *data_size) { BC_STATUS ret; BC_DTS_STATUS decoder_status = { 0, }; uint8_t trust_interlaced; uint8_t interlaced; CHDContext *p...
false
FFmpeg
d1ac8e10340f30b6989cfd64ed1f91dae5a54e2d
static inline CopyRet copy_frame(AVCodecContext *avctx, BC_DTS_PROC_OUT *output, void *data, int *data_size) { BC_STATUS ret; BC_DTS_STATUS decoder_status = { 0, }; uint8_t trust_interlaced; uint8_t interlaced; CHDContext *p...
{ "code": [], "line_no": [] }
static inline CopyRet FUNC_0(AVCodecContext *avctx, BC_DTS_PROC_OUT *output, void *data, int *data_size) { BC_STATUS ret; BC_DTS_STATUS decoder_status = { 0, }; uint8_t trust_interlaced; uint8_t interlaced; CHDContext *priv ...
[ "static inline CopyRet FUNC_0(AVCodecContext *avctx,\nBC_DTS_PROC_OUT *output,\nvoid *data, int *data_size)\n{", "BC_STATUS ret;", "BC_DTS_STATUS decoder_status = { 0, };", "uint8_t trust_interlaced;", "uint8_t interlaced;", "CHDContext *priv = avctx->priv_data;", "int64_t pkt_pts = AV_NOPTS_VALUE;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
26,723
static inline uint16_t vring_avail_flags(VirtQueue *vq) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches); hwaddr pa = offsetof(VRingAvail, flags); return virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa); }
true
qemu
e0e2d644096c79a71099b176d08f465f6803a8b1
static inline uint16_t vring_avail_flags(VirtQueue *vq) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches); hwaddr pa = offsetof(VRingAvail, flags); return virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa); }
{ "code": [ " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq-...
static inline uint16_t FUNC_0(VirtQueue *vq) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches); hwaddr pa = offsetof(VRingAvail, flags); return virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa); }
[ "static inline uint16_t FUNC_0(VirtQueue *vq)\n{", "VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", "hwaddr pa = offsetof(VRingAvail, flags);", "return virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);", "}" ]
[ 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
26,724
static void ppc_spapr_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_f...
true
qemu
b7d1f77adaab790d20232df261d4e2ff6a77f556
static void ppc_spapr_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_f...
{ "code": [ " long load_limit, rtas_limit, fw_size;", " rtas_limit = MIN(spapr->rma_size, 0x80000000);", " spapr->rtas_addr = rtas_limit - RTAS_MAX_SIZE;", " spapr->fdt_addr = spapr->rtas_addr - FDT_MAX_SIZE;", " load_limit = spapr->fdt_addr - FW_OVERHEAD;", " spapr->rtas_siz...
static void FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; const char *VAR_5 = VAR_0->boot_order; PowerPCCPU *cpu; CPUPPC...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "const char *VAR_5 = VAR_0->boot_order;", "PowerPCCPU *cpu;", "C...
[ 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, 1, 1, 1, 1, 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 ...
26,729
static int tta_read_header(AVFormatContext *s, AVFormatParameters *ap) { TTAContext *c = s->priv_data; AVStream *st; int i, channels, bps, samplerate, datalen, framelen, start; start = url_ftell(&s->pb); if (get_le32(&s->pb) != ff_get_fourcc("TTA1")) return -1; // not tta file url_fskip(...
true
FFmpeg
a443a2530d00b7019269202ac0f5ca8ba0a021c7
static int tta_read_header(AVFormatContext *s, AVFormatParameters *ap) { TTAContext *c = s->priv_data; AVStream *st; int i, channels, bps, samplerate, datalen, framelen, start; start = url_ftell(&s->pb); if (get_le32(&s->pb) != ff_get_fourcc("TTA1")) return -1; url_fskip(&s->pb, 2); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { TTAContext *c = VAR_0->priv_data; AVStream *st; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; VAR_8 = url_ftell(&VAR_0->pb); if (get_le32(&VAR_0->pb) != ff_get_fourcc("TTA1")) return -1; url_fskip(&VAR_0->pb, ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "TTAContext *c = VAR_0->priv_data;", "AVStream *st;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "VAR_8 = url_ftell(&VAR_0->pb);", "if (get_le32(&VAR_0->pb) != ff_get_fourcc(\"TTA1\"))\nreturn -1;", "url_fskip(&VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7, 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19, 20 ], [ 21 ], [ 22 ],...
26,731
void kvm_flush_coalesced_mmio_buffer(void) { #ifdef KVM_CAP_COALESCED_MMIO KVMState *s = kvm_state; if (s->coalesced_mmio_ring) { struct kvm_coalesced_mmio_ring *ring = s->coalesced_mmio_ring; while (ring->first != ring->last) { struct kvm_coalesced_mmio *ent; e...
true
qemu
94a8d39afd8ccfdbf578af04c3385fdb5f545af1
void kvm_flush_coalesced_mmio_buffer(void) { #ifdef KVM_CAP_COALESCED_MMIO KVMState *s = kvm_state; if (s->coalesced_mmio_ring) { struct kvm_coalesced_mmio_ring *ring = s->coalesced_mmio_ring; while (ring->first != ring->last) { struct kvm_coalesced_mmio *ent; e...
{ "code": [ "#endif", "#endif", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", "#ifd...
void FUNC_0(void) { #ifdef KVM_CAP_COALESCED_MMIO KVMState *s = kvm_state; if (s->coalesced_mmio_ring) { struct kvm_coalesced_mmio_ring *ring = s->coalesced_mmio_ring; while (ring->first != ring->last) { struct kvm_coalesced_mmio *ent; ent = &ring->coalesced_mmi...
[ "void FUNC_0(void)\n{", "#ifdef KVM_CAP_COALESCED_MMIO\nKVMState *s = kvm_state;", "if (s->coalesced_mmio_ring) {", "struct kvm_coalesced_mmio_ring *ring = s->coalesced_mmio_ring;", "while (ring->first != ring->last) {", "struct kvm_coalesced_mmio *ent;", "ent = &ring->coalesced_mmio[ring->first];", "...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ] ]
26,732
void in_asm_used_var_warning_killer() { volatile int i= yCoeff+vrCoeff+ubCoeff+vgCoeff+ugCoeff+bF8+bFC+w400+w80+w10+ bm00001111+bm00000111+bm11111000+b16Mask+g16Mask+r16Mask+b15Mask+g15Mask+r15Mask+temp0+asm_yalpha1+ asm_uvalpha1+ M24A+M24B+M24C+w02 + funnyYCode[0]+ funnyUVCode[0]+b5Dither+g5Dither+r5Dither+g6Di...
true
FFmpeg
28bf81c90d36a55cf76e2be913c5215ebebf61f2
void in_asm_used_var_warning_killer() { volatile int i= yCoeff+vrCoeff+ubCoeff+vgCoeff+ugCoeff+bF8+bFC+w400+w80+w10+ bm00001111+bm00000111+bm11111000+b16Mask+g16Mask+r16Mask+b15Mask+g15Mask+r15Mask+temp0+asm_yalpha1+ asm_uvalpha1+ M24A+M24B+M24C+w02 + funnyYCode[0]+ funnyUVCode[0]+b5Dither+g5Dither+r5Dither+g6Di...
{ "code": [ " bm00001111+bm00000111+bm11111000+b16Mask+g16Mask+r16Mask+b15Mask+g15Mask+r15Mask+temp0+asm_yalpha1+ asm_uvalpha1+", " M24A+M24B+M24C+w02 + funnyYCode[0]+ funnyUVCode[0]+b5Dither+g5Dither+r5Dither+g6Dither+dither4[0]+dither8[0];" ], "line_no": [ 7, 9 ] }
void FUNC_0() { volatile int VAR_0= yCoeff+vrCoeff+ubCoeff+vgCoeff+ugCoeff+bF8+bFC+w400+w80+w10+ bm00001111+bm00000111+bm11111000+b16Mask+g16Mask+r16Mask+b15Mask+g15Mask+r15Mask+temp0+asm_yalpha1+ asm_uvalpha1+ M24A+M24B+M24C+w02 + funnyYCode[0]+ funnyUVCode[0]+b5Dither+g5Dither+r5Dither+g6Dither+dither4[0]+dith...
[ "void FUNC_0()\n{", "volatile int VAR_0= yCoeff+vrCoeff+ubCoeff+vgCoeff+ugCoeff+bF8+bFC+w400+w80+w10+\nbm00001111+bm00000111+bm11111000+b16Mask+g16Mask+r16Mask+b15Mask+g15Mask+r15Mask+temp0+asm_yalpha1+ asm_uvalpha1+\nM24A+M24B+M24C+w02 + funnyYCode[0]+ funnyUVCode[0]+b5Dither+g5Dither+r5Dither+g6Dither+dither4[0...
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11 ], [ 13 ] ]
26,733
static void vc1_inv_trans_4x8_dc_c(uint8_t *dest, int linesize, DCTELEM *block) { int i; int dc = block[0]; const uint8_t *cm; dc = (17 * dc + 4) >> 3; dc = (12 * dc + 64) >> 7; cm = ff_cropTbl + MAX_NEG_CROP + dc; for(i = 0; i < 8; i++){ dest[0] = cm[dest[0]]; des...
true
FFmpeg
c23acbaed40101c677dfcfbbfe0d2c230a8e8f44
static void vc1_inv_trans_4x8_dc_c(uint8_t *dest, int linesize, DCTELEM *block) { int i; int dc = block[0]; const uint8_t *cm; dc = (17 * dc + 4) >> 3; dc = (12 * dc + 64) >> 7; cm = ff_cropTbl + MAX_NEG_CROP + dc; for(i = 0; i < 8; i++){ dest[0] = cm[dest[0]]; des...
{ "code": [ " const uint8_t *cm;", " cm = ff_cropTbl + MAX_NEG_CROP + dc;", " dest[0] = cm[dest[0]];", " dest[1] = cm[dest[1]];", " dest[2] = cm[dest[2]];", " dest[3] = cm[dest[3]];", " const uint8_t *cm;", " cm = ff_cropTbl + MAX_NEG_CROP + dc;"...
static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2) { int VAR_3; int VAR_4 = VAR_2[0]; const uint8_t *VAR_5; VAR_4 = (17 * VAR_4 + 4) >> 3; VAR_4 = (12 * VAR_4 + 64) >> 7; VAR_5 = ff_cropTbl + MAX_NEG_CROP + VAR_4; for(VAR_3 = 0; VAR_3 < 8; VAR_3++){ VAR_0[0] = VA...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{", "int VAR_3;", "int VAR_4 = VAR_2[0];", "const uint8_t *VAR_5;", "VAR_4 = (17 * VAR_4 + 4) >> 3;", "VAR_4 = (12 * VAR_4 + 64) >> 7;", "VAR_5 = ff_cropTbl + MAX_NEG_CROP + VAR_4;", "for(VAR_3 = 0; VAR_3 < 8; VAR_3++){", "VAR_0[0] = V...
[ 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
26,735
static void qxl_add_memslot(PCIQXLDevice *d, uint32_t slot_id, uint64_t delta, qxl_async_io async) { static const int regions[] = { QXL_RAM_RANGE_INDEX, QXL_VRAM_RANGE_INDEX, QXL_VRAM64_RANGE_INDEX, }; uint64_t guest_start; uint64_t guest_end;...
true
qemu
e954ea2873fd6621d199d4a1a012fc0bc0292924
static void qxl_add_memslot(PCIQXLDevice *d, uint32_t slot_id, uint64_t delta, qxl_async_io async) { static const int regions[] = { QXL_RAM_RANGE_INDEX, QXL_VRAM_RANGE_INDEX, QXL_VRAM64_RANGE_INDEX, }; uint64_t guest_start; uint64_t guest_end;...
{ "code": [ "static void qxl_add_memslot(PCIQXLDevice *d, uint32_t slot_id, uint64_t delta,", " qxl_async_io async)", " PANIC_ON(slot_id >= NUM_MEMSLOTS);", " PANIC_ON(guest_start > guest_end);", " abort();" ], "line_no": [ 1, 3, 45, 47, ...
static void FUNC_0(PCIQXLDevice *VAR_0, uint32_t VAR_1, uint64_t VAR_2, qxl_async_io VAR_3) { static const int VAR_4[] = { QXL_RAM_RANGE_INDEX, QXL_VRAM_RANGE_INDEX, QXL_VRAM64_RANGE_INDEX, }; uint64_t guest_start; uint64_t guest_end; int...
[ "static void FUNC_0(PCIQXLDevice *VAR_0, uint32_t VAR_1, uint64_t VAR_2,\nqxl_async_io VAR_3)\n{", "static const int VAR_4[] = {", "QXL_RAM_RANGE_INDEX,\nQXL_VRAM_RANGE_INDEX,\nQXL_VRAM64_RANGE_INDEX,\n};", "uint64_t guest_start;", "uint64_t guest_end;", "int VAR_5;", "pcibus_t pci_start;", "pcibus_t ...
[ 1, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
26,736
static int nbd_negotiate_handle_info(NBDClient *client, uint16_t myflags, Error **errp) { int rc; char name[NBD_MAX_NAME_SIZE + 1]; NBDExport *exp; uint16_t requests; uint16_t request; uint32_t namelen; bool sendname = false; bool blocksize ...
true
qemu
894e02804c862c6940b43a0a488164655d3fb3f0
static int nbd_negotiate_handle_info(NBDClient *client, uint16_t myflags, Error **errp) { int rc; char name[NBD_MAX_NAME_SIZE + 1]; NBDExport *exp; uint16_t requests; uint16_t request; uint32_t namelen; bool sendname = false; bool blocksize ...
{ "code": [ " if (nbd_drop(client->ioc, client->optlen, errp) < 0) {", " return -EIO;", " const char *msg;", " if (client->optlen < sizeof(namelen) + sizeof(requests)) {", " msg = \"overall request too short\";", " goto invalid;", " if (nbd_read(client->ioc...
static int FUNC_0(NBDClient *VAR_0, uint16_t VAR_1, Error **VAR_2) { int VAR_3; char VAR_4[NBD_MAX_NAME_SIZE + 1]; NBDExport *exp; uint16_t requests; uint16_t request; uint32_t namelen; bool sendname = false; bool blocksize = false; uin...
[ "static int FUNC_0(NBDClient *VAR_0, uint16_t VAR_1,\nError **VAR_2)\n{", "int VAR_3;", "char VAR_4[NBD_MAX_NAME_SIZE + 1];", "NBDExport *exp;", "uint16_t requests;", "uint16_t request;", "uint32_t namelen;", "bool sendname = false;", "bool blocksize = false;", "uint32_t sizes[3];", "char VAR_5[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
26,737
static void qemu_rdma_init_one_block(void *host_addr, ram_addr_t block_offset, ram_addr_t length, void *opaque) { __qemu_rdma_add_block(opaque, host_addr, block_offset, length); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void qemu_rdma_init_one_block(void *host_addr, ram_addr_t block_offset, ram_addr_t length, void *opaque) { __qemu_rdma_add_block(opaque, host_addr, block_offset, length); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, ram_addr_t VAR_1, ram_addr_t VAR_2, void *VAR_3) { __qemu_rdma_add_block(VAR_3, VAR_0, VAR_1, VAR_2); }
[ "static void FUNC_0(void *VAR_0,\nram_addr_t VAR_1, ram_addr_t VAR_2, void *VAR_3)\n{", "__qemu_rdma_add_block(VAR_3, VAR_0, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
26,740
static int qsv_decode(AVCodecContext *avctx, QSVContext *q, AVFrame *frame, int *got_frame, AVPacket *avpkt) { QSVFrame *out_frame; mfxFrameSurface1 *insurf; mfxFrameSurface1 *outsurf; mfxSyncPoint *sync; mfxBitstream bs = { { { 0 } } }; int r...
true
FFmpeg
b6f80b16d1a82463a77352b8756e1cdcaa3a33d0
static int qsv_decode(AVCodecContext *avctx, QSVContext *q, AVFrame *frame, int *got_frame, AVPacket *avpkt) { QSVFrame *out_frame; mfxFrameSurface1 *insurf; mfxFrameSurface1 *outsurf; mfxSyncPoint *sync; mfxBitstream bs = { { { 0 } } }; int r...
{ "code": [ " if (ret < 0)" ], "line_no": [ 53 ] }
static int FUNC_0(AVCodecContext *VAR_0, QSVContext *VAR_1, AVFrame *VAR_2, int *VAR_3, AVPacket *VAR_4) { QSVFrame *out_frame; mfxFrameSurface1 *insurf; mfxFrameSurface1 *outsurf; mfxSyncPoint *sync; mfxBitstream bs = { { { 0 } } }; int VAR_5...
[ "static int FUNC_0(AVCodecContext *VAR_0, QSVContext *VAR_1,\nAVFrame *VAR_2, int *VAR_3,\nAVPacket *VAR_4)\n{", "QSVFrame *out_frame;", "mfxFrameSurface1 *insurf;", "mfxFrameSurface1 *outsurf;", "mfxSyncPoint *sync;", "mfxBitstream bs = { { { 0 } } };", "int VAR_5;", "if (VAR_4->size) {", "bs.Data ...
[ 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, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
26,741
static int cmp(const void *a, const void *b) { const double va = *(const double *)a, vb = *(const double *)b; return va < vb ? -1 : ( va > vb ? 1 : 0 ); }
true
FFmpeg
92e483f8ed70d88d4f64337f65bae212502735d4
static int cmp(const void *a, const void *b) { const double va = *(const double *)a, vb = *(const double *)b; return va < vb ? -1 : ( va > vb ? 1 : 0 ); }
{ "code": [ " const double va = *(const double *)a, vb = *(const double *)b;", " return va < vb ? -1 : ( va > vb ? 1 : 0 );" ], "line_no": [ 5, 7 ] }
static int FUNC_0(const void *VAR_0, const void *VAR_1) { const double VAR_2 = *(const double *)VAR_0, VAR_3 = *(const double *)VAR_1; return VAR_2 < VAR_3 ? -1 : ( VAR_2 > VAR_3 ? 1 : 0 ); }
[ "static int FUNC_0(const void *VAR_0, const void *VAR_1)\n{", "const double VAR_2 = *(const double *)VAR_0, VAR_3 = *(const double *)VAR_1;", "return VAR_2 < VAR_3 ? -1 : ( VAR_2 > VAR_3 ? 1 : 0 );", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
26,742
static void usb_ohci_init(OHCIState *ohci, DeviceState *dev, int num_ports, dma_addr_t localmem_base, char *masterbus, uint32_t firstport, AddressSpace *as, Error **errp) { Error *err = NULL; int i; ohci->as = as; ...
true
qemu
88dd1b8d0063ff16c54dc19c8b52508a00108f50
static void usb_ohci_init(OHCIState *ohci, DeviceState *dev, int num_ports, dma_addr_t localmem_base, char *masterbus, uint32_t firstport, AddressSpace *as, Error **errp) { Error *err = NULL; int i; ohci->as = as; ...
{ "code": [ " qemu_register_reset(ohci_reset, ohci);" ], "line_no": [ 113 ] }
static void FUNC_0(OHCIState *VAR_0, DeviceState *VAR_1, int VAR_2, dma_addr_t VAR_3, char *VAR_4, uint32_t VAR_5, AddressSpace *VAR_6, Error **VAR_7) { Error *err = NULL; int VAR_8; VAR_0->VAR_6 = VAR_6; if (usb_f...
[ "static void FUNC_0(OHCIState *VAR_0, DeviceState *VAR_1,\nint VAR_2, dma_addr_t VAR_3,\nchar *VAR_4, uint32_t VAR_5,\nAddressSpace *VAR_6, Error **VAR_7)\n{", "Error *err = NULL;", "int VAR_8;", "VAR_0->VAR_6 = VAR_6;", "if (usb_frame_time == 0) {", "#ifdef OHCI_TIME_WARP\nusb_frame_time = get_ticks_per_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51 ], [ 53 ...
26,743
static void read_len_table(uint8_t *dst, GetBitContext *gb){ int i, val, repeat; for(i=0; i<256;){ repeat= get_bits(gb, 3); val = get_bits(gb, 5); if(repeat==0) repeat= get_bits(gb, 8); //printf("%d %d\n", val, repeat); while (repeat--) dst[i+...
true
FFmpeg
e30004fa733ec64b6ff90678098c1f1132d4d603
static void read_len_table(uint8_t *dst, GetBitContext *gb){ int i, val, repeat; for(i=0; i<256;){ repeat= get_bits(gb, 3); val = get_bits(gb, 5); if(repeat==0) repeat= get_bits(gb, 8); while (repeat--) dst[i++] = val; } }
{ "code": [ "static void read_len_table(uint8_t *dst, GetBitContext *gb){" ], "line_no": [ 1 ] }
static void FUNC_0(uint8_t *VAR_0, GetBitContext *VAR_1){ int VAR_2, VAR_3, VAR_4; for(VAR_2=0; VAR_2<256;){ VAR_4= get_bits(VAR_1, 3); VAR_3 = get_bits(VAR_1, 5); if(VAR_4==0) VAR_4= get_bits(VAR_1, 8); while (VAR_4--) VAR_0[VAR_2++] = VAR_3...
[ "static void FUNC_0(uint8_t *VAR_0, GetBitContext *VAR_1){", "int VAR_2, VAR_3, VAR_4;", "for(VAR_2=0; VAR_2<256;){", "VAR_4= get_bits(VAR_1, 3);", "VAR_3 = get_bits(VAR_1, 5);", "if(VAR_4==0)\nVAR_4= get_bits(VAR_1, 8);", "while (VAR_4--)\nVAR_0[VAR_2++] = VAR_3;", "}", "}" ]
[ 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 19, 21 ], [ 23 ], [ 25 ] ]
26,744
static int dca_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { DCAParseContext *pc1 = s->priv_data; ParseContext *pc = &pc1->pc; int next, duration, sample_rate; if (s...
true
FFmpeg
00ae5b401b24592a9f7019baada5b349152ee2fc
static int dca_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { DCAParseContext *pc1 = s->priv_data; ParseContext *pc = &pc1->pc; int next, duration, sample_rate; if (s...
{ "code": [ " avctx->sample_rate = sample_rate;" ], "line_no": [ 47 ] }
static int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1, const uint8_t **VAR_2, int *VAR_3, const uint8_t *VAR_4, int VAR_5) { DCAParseContext *pc1 = VAR_0->priv_data; ParseContext *pc = &pc1->pc; int VAR_6, VAR_7, VAR_8; if (VAR_0->flags &...
[ "static int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1,\nconst uint8_t **VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{", "DCAParseContext *pc1 = VAR_0->priv_data;", "ParseContext *pc = &pc1->pc;", "int VAR_6, VAR_7, VAR_8;", "if (VAR_0->flags & PARSER_FLAG_COMPLETE_FRAMES) {", "VA...
[ 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
26,747
void error_setg(Error **errp, const char *fmt, ...) { va_list ap; va_start(ap, fmt); error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap); va_end(ap); }
true
qemu
1e9b65bb1bad51735cab6c861c29b592dccabf0e
void error_setg(Error **errp, const char *fmt, ...) { va_list ap; va_start(ap, fmt); error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap); va_end(ap); }
{ "code": [ "void error_setg(Error **errp, const char *fmt, ...)", "void error_setg(Error **errp, const char *fmt, ...)", " error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);", " error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);", " error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ...
void FUNC_0(Error **VAR_0, const char *VAR_1, ...) { va_list ap; va_start(ap, VAR_1); error_setv(VAR_0, ERROR_CLASS_GENERIC_ERROR, VAR_1, ap); va_end(ap); }
[ "void FUNC_0(Error **VAR_0, const char *VAR_1, ...)\n{", "va_list ap;", "va_start(ap, VAR_1);", "error_setv(VAR_0, ERROR_CLASS_GENERIC_ERROR, VAR_1, ap);", "va_end(ap);", "}" ]
[ 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
26,748
static void patch_pci_windows(PcPciInfo *pci, uint8_t *start, unsigned size) { *ACPI_BUILD_PTR(start, size, acpi_pci32_start[0], uint32_t) = cpu_to_le32(pci->w32.begin); *ACPI_BUILD_PTR(start, size, acpi_pci32_end[0], uint32_t) = cpu_to_le32(pci->w32.end - 1); if (pci->w64.end || p...
true
qemu
b4e5a4bffda0d5dd79c87c66f28a5fac87182e30
static void patch_pci_windows(PcPciInfo *pci, uint8_t *start, unsigned size) { *ACPI_BUILD_PTR(start, size, acpi_pci32_start[0], uint32_t) = cpu_to_le32(pci->w32.begin); *ACPI_BUILD_PTR(start, size, acpi_pci32_end[0], uint32_t) = cpu_to_le32(pci->w32.end - 1); if (pci->w64.end || p...
{ "code": [ " *ACPI_BUILD_PTR(start, size, acpi_pci32_start[0], uint32_t) =", " cpu_to_le32(pci->w32.begin);", " *ACPI_BUILD_PTR(start, size, acpi_pci32_end[0], uint32_t) =", " cpu_to_le32(pci->w32.end - 1);", " *ACPI_BUILD_PTR(start, size, acpi_pci64_valid[0], uint8_t) ...
static void FUNC_0(PcPciInfo *VAR_0, uint8_t *VAR_1, unsigned VAR_2) { *ACPI_BUILD_PTR(VAR_1, VAR_2, acpi_pci32_start[0], uint32_t) = cpu_to_le32(VAR_0->w32.begin); *ACPI_BUILD_PTR(VAR_1, VAR_2, acpi_pci32_end[0], uint32_t) = cpu_to_le32(VAR_0->w32.end - 1); if (VAR_0->w64.end || V...
[ "static void FUNC_0(PcPciInfo *VAR_0, uint8_t *VAR_1, unsigned VAR_2)\n{", "*ACPI_BUILD_PTR(VAR_1, VAR_2, acpi_pci32_start[0], uint32_t) =\ncpu_to_le32(VAR_0->w32.begin);", "*ACPI_BUILD_PTR(VAR_1, VAR_2, acpi_pci32_end[0], uint32_t) =\ncpu_to_le32(VAR_0->w32.end - 1);", "if (VAR_0->w64.end || VAR_0->w64.begin...
[ 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
26,750
static int decode_header(EXRContext *s) { int magic_number, version, i, flags, sar = 0; int layer_match = 0; s->current_channel_offset = 0; s->xmin = ~0; s->xmax = ~0; s->ymin = ~0; s->ymax = ~0; s->xdelta = ~...
true
FFmpeg
ffdc5d09e498bee8176c9e35df101c01c546a738
static int decode_header(EXRContext *s) { int magic_number, version, i, flags, sar = 0; int layer_match = 0; s->current_channel_offset = 0; s->xmin = ~0; s->xmax = ~0; s->ymin = ~0; s->ymax = ~0; s->xdelta = ~...
{ "code": [ " if (channel_index >= 0) {" ], "line_no": [ 289 ] }
static int FUNC_0(EXRContext *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5 = 0; int VAR_6 = 0; VAR_0->current_channel_offset = 0; VAR_0->xmin = ~0; VAR_0->xmax = ~0; VAR_0->ymin = ~0; VAR_0->ymax = ~0; VAR_0->xdelta ...
[ "static int FUNC_0(EXRContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5 = 0;", "int VAR_6 = 0;", "VAR_0->current_channel_offset = 0;", "VAR_0->xmin = ~0;", "VAR_0->xmax = ~0;", "VAR_0->ymin = ~0;", "VAR_0->ymax = ~0;", "VAR_0->xdelta ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
26,751
static void encode_block(NellyMoserEncodeContext *s, unsigned char *output, int output_size) { PutBitContext pb; int i, j, band, block, best_idx, power_idx = 0; float power_val, coeff, coeff_sum; float pows[NELLY_FILL_LEN]; int bits[NELLY_BUF_LEN], idx_table[NELLY_BANDS]; float cand[NELLY...
true
FFmpeg
50833c9f7b4e1922197a8955669f8ab3589c8cef
static void encode_block(NellyMoserEncodeContext *s, unsigned char *output, int output_size) { PutBitContext pb; int i, j, band, block, best_idx, power_idx = 0; float power_val, coeff, coeff_sum; float pows[NELLY_FILL_LEN]; int bits[NELLY_BUF_LEN], idx_table[NELLY_BANDS]; float cand[NELLY...
{ "code": [ " init_put_bits(&pb, output, output_size * 8);" ], "line_no": [ 23 ] }
static void FUNC_0(NellyMoserEncodeContext *VAR_0, unsigned char *VAR_1, int VAR_2) { PutBitContext pb; int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0; float VAR_9, VAR_10, VAR_11; float VAR_12[NELLY_FILL_LEN]; int VAR_13[NELLY_BUF_LEN], idx_table[NELLY_BANDS]; float VAR_14[NELLY_BANDS]...
[ "static void FUNC_0(NellyMoserEncodeContext *VAR_0, unsigned char *VAR_1, int VAR_2)\n{", "PutBitContext pb;", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "float VAR_9, VAR_10, VAR_11;", "float VAR_12[NELLY_FILL_LEN];", "int VAR_13[NELLY_BUF_LEN], idx_table[NELLY_BANDS];", "float VAR_14[NELLY_B...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49 ], [ 51 ...
26,752
hwaddr uc32_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) { UniCore32CPU *cpu = UNICORE32_CPU(cs); cpu_abort(CPU(cpu), "%s not supported yet\n", __func__); return addr; }
true
qemu
0ac241bcf9f9d99a252a352a162f4b13b24732ab
hwaddr uc32_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) { UniCore32CPU *cpu = UNICORE32_CPU(cs); cpu_abort(CPU(cpu), "%s not supported yet\n", __func__); return addr; }
{ "code": [ " UniCore32CPU *cpu = UNICORE32_CPU(cs);", " cpu_abort(CPU(cpu), \"%s not supported yet\\n\", __func__);", " return addr;" ], "line_no": [ 5, 9, 11 ] }
hwaddr FUNC_0(CPUState *cs, vaddr addr) { UniCore32CPU *cpu = UNICORE32_CPU(cs); cpu_abort(CPU(cpu), "%s not supported yet\n", __func__); return addr; }
[ "hwaddr FUNC_0(CPUState *cs, vaddr addr)\n{", "UniCore32CPU *cpu = UNICORE32_CPU(cs);", "cpu_abort(CPU(cpu), \"%s not supported yet\\n\", __func__);", "return addr;", "}" ]
[ 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
26,753
static char *SocketAddress_to_str(const char *prefix, SocketAddress *addr, bool is_listen, bool is_telnet) { switch (addr->type) { case SOCKET_ADDRESS_KIND_INET: return g_strdup_printf("%s%s:%s:%s%s", prefix, is_telnet ? "telnet" : "...
true
qemu
d2e49aad7259af943b72be761ee5c18e14acd71a
static char *SocketAddress_to_str(const char *prefix, SocketAddress *addr, bool is_listen, bool is_telnet) { switch (addr->type) { case SOCKET_ADDRESS_KIND_INET: return g_strdup_printf("%s%s:%s:%s%s", prefix, is_telnet ? "telnet" : "...
{ "code": [], "line_no": [] }
static char *FUNC_0(const char *VAR_0, SocketAddress *VAR_1, bool VAR_2, bool VAR_3) { switch (VAR_1->type) { case SOCKET_ADDRESS_KIND_INET: return g_strdup_printf("%s%s:%s:%s%s", VAR_0, VAR_3 ? "telnet" : "tcp", ...
[ "static char *FUNC_0(const char *VAR_0, SocketAddress *VAR_1,\nbool VAR_2, bool VAR_3)\n{", "switch (VAR_1->type) {", "case SOCKET_ADDRESS_KIND_INET:\nreturn g_strdup_printf(\"%s%s:%s:%s%s\", VAR_0,\nVAR_3 ? \"telnet\" : \"tcp\",\nVAR_1->u.inet.data->host,\nVAR_1->u.inet.data->port,\nVAR_2 ? \",server\" : \"\")...
[ 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 ], [ 45, 47 ], [ 49 ], [ 51 ] ]
26,755
static void dnxhd_decode_dct_block_10(const DNXHDContext *ctx, RowContext *row, int n) { dnxhd_decode_dct_block(ctx, row, n, 6, 8, 4); }
true
FFmpeg
b8b8e82ea14016b2cb04b49ecea57f836e6ee7f8
static void dnxhd_decode_dct_block_10(const DNXHDContext *ctx, RowContext *row, int n) { dnxhd_decode_dct_block(ctx, row, n, 6, 8, 4); }
{ "code": [ "static void dnxhd_decode_dct_block_10(const DNXHDContext *ctx,", "static void dnxhd_decode_dct_block_10(const DNXHDContext *ctx,", " dnxhd_decode_dct_block(ctx, row, n, 6, 8, 4);" ], "line_no": [ 1, 1, 7 ] }
static void FUNC_0(const DNXHDContext *VAR_0, RowContext *VAR_1, int VAR_2) { dnxhd_decode_dct_block(VAR_0, VAR_1, VAR_2, 6, 8, 4); }
[ "static void FUNC_0(const DNXHDContext *VAR_0,\nRowContext *VAR_1, int VAR_2)\n{", "dnxhd_decode_dct_block(VAR_0, VAR_1, VAR_2, 6, 8, 4);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
26,756
static void opt_qsquish(const char *arg) { video_qsquish = atof(arg); if (video_qsquish < 0.0 || video_qsquish > 99.0) { fprintf(stderr, "qsquish must be >= 0.0 and <= 99.0\n"); exit(1); } }
false
FFmpeg
58bba31e3f22bb07645a764602603364b1ec953d
static void opt_qsquish(const char *arg) { video_qsquish = atof(arg); if (video_qsquish < 0.0 || video_qsquish > 99.0) { fprintf(stderr, "qsquish must be >= 0.0 and <= 99.0\n"); exit(1); } }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { video_qsquish = atof(VAR_0); if (video_qsquish < 0.0 || video_qsquish > 99.0) { fprintf(stderr, "qsquish must be >= 0.0 and <= 99.0\n"); exit(1); } }
[ "static void FUNC_0(const char *VAR_0)\n{", "video_qsquish = atof(VAR_0);", "if (video_qsquish < 0.0 ||\nvideo_qsquish > 99.0) {", "fprintf(stderr, \"qsquish must be >= 0.0 and <= 99.0\\n\");", "exit(1);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
26,757
static int create_vorbis_context(vorbis_enc_context *venc, AVCodecContext *avctx) { vorbis_enc_floor *fc; vorbis_enc_residue *rc; vorbis_enc_mapping *mc; int i, book, ret; venc->channels = avctx->channels; venc->sample_rate = avctx->sample_rate; ...
false
FFmpeg
5a2ad7ede33b5d63c1f1b1313a218da62e1c0d48
static int create_vorbis_context(vorbis_enc_context *venc, AVCodecContext *avctx) { vorbis_enc_floor *fc; vorbis_enc_residue *rc; vorbis_enc_mapping *mc; int i, book, ret; venc->channels = avctx->channels; venc->sample_rate = avctx->sample_rate; ...
{ "code": [], "line_no": [] }
static int FUNC_0(vorbis_enc_context *VAR_0, AVCodecContext *VAR_1) { vorbis_enc_floor *fc; vorbis_enc_residue *rc; vorbis_enc_mapping *mc; int VAR_2, VAR_3, VAR_4; VAR_0->channels = VAR_1->channels; VAR_0->sample_rate = VAR_1->sample_rate; VA...
[ "static int FUNC_0(vorbis_enc_context *VAR_0,\nAVCodecContext *VAR_1)\n{", "vorbis_enc_floor *fc;", "vorbis_enc_residue *rc;", "vorbis_enc_mapping *mc;", "int VAR_2, VAR_3, VAR_4;", "VAR_0->channels = VAR_1->channels;", "VAR_0->sample_rate = VAR_1->sample_rate;", "VAR_0->log2_blocksize[0] = VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
26,758
static void mpeg_decode_picture_coding_extension(Mpeg1Context *s1) { MpegEncContext *s= &s1->mpeg_enc_ctx; s->full_pel[0] = s->full_pel[1] = 0; s->mpeg_f_code[0][0] = get_bits(&s->gb, 4); s->mpeg_f_code[0][1] = get_bits(&s->gb, 4); s->mpeg_f_code[1][0] = get_bits(&s->gb, 4); s->mpeg_f_c...
false
FFmpeg
7a14430ed75a2eaaa430e46c2f54a7a9a8b71804
static void mpeg_decode_picture_coding_extension(Mpeg1Context *s1) { MpegEncContext *s= &s1->mpeg_enc_ctx; s->full_pel[0] = s->full_pel[1] = 0; s->mpeg_f_code[0][0] = get_bits(&s->gb, 4); s->mpeg_f_code[0][1] = get_bits(&s->gb, 4); s->mpeg_f_code[1][0] = get_bits(&s->gb, 4); s->mpeg_f_c...
{ "code": [], "line_no": [] }
static void FUNC_0(Mpeg1Context *VAR_0) { MpegEncContext *s= &VAR_0->mpeg_enc_ctx; s->full_pel[0] = s->full_pel[1] = 0; s->mpeg_f_code[0][0] = get_bits(&s->gb, 4); s->mpeg_f_code[0][1] = get_bits(&s->gb, 4); s->mpeg_f_code[1][0] = get_bits(&s->gb, 4); s->mpeg_f_code[1][1] = get_bits(&s-...
[ "static void FUNC_0(Mpeg1Context *VAR_0)\n{", "MpegEncContext *s= &VAR_0->mpeg_enc_ctx;", "s->full_pel[0] = s->full_pel[1] = 0;", "s->mpeg_f_code[0][0] = get_bits(&s->gb, 4);", "s->mpeg_f_code[0][1] = get_bits(&s->gb, 4);", "s->mpeg_f_code[1][0] = get_bits(&s->gb, 4);", "s->mpeg_f_code[1][1] = get_bits(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
26,759
static ssize_t nic_receive(VLANClientState *nc, const uint8_t * buf, size_t size) { /* TODO: * - Magic packets should set bit 30 in power management driver register. * - Interesting packets should set bit 29 in power management driver register. */ EEPRO100State *s = DO_UPCAST(NICState, nc, ...
true
qemu
010ec6293409f10b88631c36145944b9c3277ce1
static ssize_t nic_receive(VLANClientState *nc, const uint8_t * buf, size_t size) { EEPRO100State *s = DO_UPCAST(NICState, nc, nc)->opaque; uint16_t rfd_status = 0xa000; static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; if (s->configura...
{ "code": [ " if (s->configuration[20] & BIT(6)) {", " missing(\"Multiple IA bit\");", " return -1;" ], "line_no": [ 25, 27, 29 ] }
static ssize_t FUNC_0(VLANClientState *nc, const uint8_t * buf, size_t size) { EEPRO100State *s = DO_UPCAST(NICState, nc, nc)->opaque; uint16_t rfd_status = 0xa000; static const uint8_t VAR_0[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; if (s->configuration[20] & BIT(6)...
[ "static ssize_t FUNC_0(VLANClientState *nc, const uint8_t * buf, size_t size)\n{", "EEPRO100State *s = DO_UPCAST(NICState, nc, nc)->opaque;", "uint16_t rfd_status = 0xa000;", "static const uint8_t VAR_0[6] =\n{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };", "if (s->configuration[20] & BIT(6)) {", "missing(\"Mult...
[ 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, 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 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57, 59 ], [ 65 ], [ 67 ], ...
26,760
static int mov_write_mdia_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); avio_wb32(pb, 0); /* size */ ffio_wfourcc(pb, "mdia"); mov_write_mdhd_tag(pb, mov, track); mov_write_hdlr_tag(pb, track); mov_write_minf_tag(pb...
true
FFmpeg
da048c6d24729d3bab6ccb0ac340ea129e3e88d5
static int mov_write_mdia_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); avio_wb32(pb, 0); ffio_wfourcc(pb, "mdia"); mov_write_mdhd_tag(pb, mov, track); mov_write_hdlr_tag(pb, track); mov_write_minf_tag(pb, track); ...
{ "code": [ " mov_write_minf_tag(pb, track);" ], "line_no": [ 17 ] }
static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1, MOVTrack *VAR_2) { int64_t pos = avio_tell(VAR_0); avio_wb32(VAR_0, 0); ffio_wfourcc(VAR_0, "mdia"); mov_write_mdhd_tag(VAR_0, VAR_1, VAR_2); mov_write_hdlr_tag(VAR_0, VAR_2); mov_write_minf_tag(VA...
[ "static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,\nMOVTrack *VAR_2)\n{", "int64_t pos = avio_tell(VAR_0);", "avio_wb32(VAR_0, 0);", "ffio_wfourcc(VAR_0, \"mdia\");", "mov_write_mdhd_tag(VAR_0, VAR_1, VAR_2);", "mov_write_hdlr_tag(VAR_0, VAR_2);", "mov_write_minf_tag(VAR_0, VAR_2);", "return...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]