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
1,479
static void boston_mach_init(MachineState *machine) { DeviceState *dev; BostonState *s; Error *err = NULL; const char *cpu_model; MemoryRegion *flash, *ddr, *ddr_low_alias, *lcd, *platreg; MemoryRegion *sys_mem = get_system_memory(); XilinxPCIEHost *pcie2; PCIDevice *ahci; ...
true
qemu
2d896b454a0e19ec4c1ddbb0e0b65b7e54fcedf3
static void boston_mach_init(MachineState *machine) { DeviceState *dev; BostonState *s; Error *err = NULL; const char *cpu_model; MemoryRegion *flash, *ddr, *ddr_low_alias, *lcd, *platreg; MemoryRegion *sys_mem = get_system_memory(); XilinxPCIEHost *pcie2; PCIDevice *ahci; ...
{ "code": [ " DeviceState *dev;", " qdev_init_nofail(dev);", "static void boston_mach_init(MachineState *machine)", " DeviceState *dev;", " BostonState *s;", " Error *err = NULL;", " const char *cpu_model;", " MemoryRegion *flash, *ddr, *ddr_low_alias, *lcd, *platr...
static void FUNC_0(MachineState *VAR_0) { DeviceState *dev; BostonState *s; Error *err = NULL; const char *VAR_1; MemoryRegion *flash, *ddr, *ddr_low_alias, *lcd, *platreg; MemoryRegion *sys_mem = get_system_memory(); XilinxPCIEHost *pcie2; PCIDevice *ahci; DriveInfo *hd[6]...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "DeviceState *dev;", "BostonState *s;", "Error *err = NULL;", "const char *VAR_1;", "MemoryRegion *flash, *ddr, *ddr_low_alias, *lcd, *platreg;", "MemoryRegion *sys_mem = get_system_memory();", "XilinxPCIEHost *pcie2;", "PCIDevice *ahci;", "DriveInfo *...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [...
1,480
static int cng_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; CNGContext *p = avctx->priv_data; int buf_size = avpkt->size; int ret, i; int16_t *buf_out; float e = 1.0; float scaling; if (avpkt->s...
true
FFmpeg
e7b9d136a1ba2d048b1a17df5778e426b825676d
static int cng_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; CNGContext *p = avctx->priv_data; int buf_size = avpkt->size; int ret, i; int16_t *buf_out; float e = 1.0; float scaling; if (avpkt->s...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { AVFrame *frame = VAR_1; CNGContext *p = VAR_0->priv_data; int VAR_4 = VAR_3->size; int VAR_5, VAR_6; int16_t *buf_out; float VAR_7 = 1.0; float VAR_8; if (VAR_3->size) { ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "AVFrame *frame = VAR_1;", "CNGContext *p = VAR_0->priv_data;", "int VAR_4 = VAR_3->size;", "int VAR_5, VAR_6;", "int16_t *buf_out;", "float VAR_7 = 1.0;", "float VAR_8;", "if (VAR_3->size) {", "int VAR_9 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ ...
1,481
static int vfio_pci_hot_reset_multi(VFIOPCIDevice *vdev) { return vfio_pci_hot_reset(vdev, false); }
false
qemu
b47d8efa9f430c332bf96ce6eede169eb48422ad
static int vfio_pci_hot_reset_multi(VFIOPCIDevice *vdev) { return vfio_pci_hot_reset(vdev, false); }
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOPCIDevice *VAR_0) { return vfio_pci_hot_reset(VAR_0, false); }
[ "static int FUNC_0(VFIOPCIDevice *VAR_0)\n{", "return vfio_pci_hot_reset(VAR_0, false);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
1,482
void qerror_print(QError *qerror) { QString *qstring = qerror_human(qerror); loc_push_restore(&qerror->loc); error_report("%s", qstring_get_str(qstring)); loc_pop(&qerror->loc); QDECREF(qstring); }
false
qemu
2a74440547ea0a15195224fa2b7784b267cbfe15
void qerror_print(QError *qerror) { QString *qstring = qerror_human(qerror); loc_push_restore(&qerror->loc); error_report("%s", qstring_get_str(qstring)); loc_pop(&qerror->loc); QDECREF(qstring); }
{ "code": [], "line_no": [] }
void FUNC_0(QError *VAR_0) { QString *qstring = qerror_human(VAR_0); loc_push_restore(&VAR_0->loc); error_report("%s", qstring_get_str(qstring)); loc_pop(&VAR_0->loc); QDECREF(qstring); }
[ "void FUNC_0(QError *VAR_0)\n{", "QString *qstring = qerror_human(VAR_0);", "loc_push_restore(&VAR_0->loc);", "error_report(\"%s\", qstring_get_str(qstring));", "loc_pop(&VAR_0->loc);", "QDECREF(qstring);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
1,483
static int is_async_return(const QObject *data) { if (data && qobject_type(data) == QTYPE_QDICT) { return qdict_haskey(qobject_to_qdict(data), "__mon_async"); } return 0; }
false
qemu
d4551293d68a1876df87400be6c71c657756d0bb
static int is_async_return(const QObject *data) { if (data && qobject_type(data) == QTYPE_QDICT) { return qdict_haskey(qobject_to_qdict(data), "__mon_async"); } return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(const QObject *VAR_0) { if (VAR_0 && qobject_type(VAR_0) == QTYPE_QDICT) { return qdict_haskey(qobject_to_qdict(VAR_0), "__mon_async"); } return 0; }
[ "static int FUNC_0(const QObject *VAR_0)\n{", "if (VAR_0 && qobject_type(VAR_0) == QTYPE_QDICT) {", "return qdict_haskey(qobject_to_qdict(VAR_0), \"__mon_async\");", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
1,484
static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2], int is34) { int e, b, k, n; float (*H11)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H11; float (*H12)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H12; float (*H21)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H21; f...
false
FFmpeg
bf1945af301aff54c33352e75f17aec6cb5269d7
static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2], int is34) { int e, b, k, n; float (*H11)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H11; float (*H12)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H12; float (*H21)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = ps->H21; f...
{ "code": [], "line_no": [] }
static void FUNC_0(PSContext *VAR_0, float (*VAR_1)[32][2], float (*VAR_2)[32][2], int VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7; float (*VAR_8)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = VAR_0->VAR_8; float (*VAR_9)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = VAR_0->VAR_9; float (*VAR_10)[PS_MAX_NUM_ENV+1][P...
[ "static void FUNC_0(PSContext *VAR_0, float (*VAR_1)[32][2], float (*VAR_2)[32][2], int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7;", "float (*VAR_8)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = VAR_0->VAR_8;", "float (*VAR_9)[PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC] = VAR_0->VAR_9;", "float (*VAR_10)[PS_MAX_NUM_ENV+1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47...
1,485
static int monitor_read_password(Monitor *mon, ReadLineFunc *readline_func, void *opaque) { if (mon->rs) { readline_start(mon->rs, "Password: ", 1, readline_func, opaque); /* prompt is printed on return from the command handler */ return 0; } else ...
false
qemu
94171e119cb6f7bab2578896643b0daff1d9b184
static int monitor_read_password(Monitor *mon, ReadLineFunc *readline_func, void *opaque) { if (mon->rs) { readline_start(mon->rs, "Password: ", 1, readline_func, opaque); return 0; } else { monitor_printf(mon, "terminal does not support ...
{ "code": [], "line_no": [] }
static int FUNC_0(Monitor *VAR_0, ReadLineFunc *VAR_1, void *VAR_2) { if (VAR_0->rs) { readline_start(VAR_0->rs, "Password: ", 1, VAR_1, VAR_2); return 0; } else { monitor_printf(VAR_0, "terminal does not support password prompting\n"); ...
[ "static int FUNC_0(Monitor *VAR_0, ReadLineFunc *VAR_1,\nvoid *VAR_2)\n{", "if (VAR_0->rs) {", "readline_start(VAR_0->rs, \"Password: \", 1, VAR_1, VAR_2);", "return 0;", "} else {", "monitor_printf(VAR_0, \"terminal does not support password prompting\\n\");", "return -ENOTTY;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
1,486
static inline void gen_efdnabs(DisasContext *ctx) { if (unlikely(!ctx->spe_enabled)) { gen_exception(ctx, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) tcg_gen_ori_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)], 0x8000000000000000LL); #else tcg_gen_mov_tl(cpu_gpr...
false
qemu
27a69bb088bee6d4efea254659422fb9c751b3c7
static inline void gen_efdnabs(DisasContext *ctx) { if (unlikely(!ctx->spe_enabled)) { gen_exception(ctx, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) tcg_gen_ori_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)], 0x8000000000000000LL); #else tcg_gen_mov_tl(cpu_gpr...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0) { if (unlikely(!VAR_0->spe_enabled)) { gen_exception(VAR_0, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) tcg_gen_ori_tl(cpu_gpr[rD(VAR_0->opcode)], cpu_gpr[rA(VAR_0->opcode)], 0x8000000000000000LL); #else tcg_gen_mov_tl(cp...
[ "static inline void FUNC_0(DisasContext *VAR_0)\n{", "if (unlikely(!VAR_0->spe_enabled)) {", "gen_exception(VAR_0, POWERPC_EXCP_APU);", "return;", "}", "#if defined(TARGET_PPC64)\ntcg_gen_ori_tl(cpu_gpr[rD(VAR_0->opcode)], cpu_gpr[rA(VAR_0->opcode)], 0x8000000000000000LL);", "#else\ntcg_gen_mov_tl(cpu_g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ] ]
1,488
int vhost_dev_init(struct vhost_dev *hdev, void *opaque, VhostBackendType backend_type) { uint64_t features; int i, r; if (vhost_set_backend_type(hdev, backend_type) < 0) { close((uintptr_t)opaque); return -1; } if (hdev->vhost_ops->vhost_backend_init(...
false
qemu
b931bfbf042983f311b3b09894d8030b2755a638
int vhost_dev_init(struct vhost_dev *hdev, void *opaque, VhostBackendType backend_type) { uint64_t features; int i, r; if (vhost_set_backend_type(hdev, backend_type) < 0) { close((uintptr_t)opaque); return -1; } if (hdev->vhost_ops->vhost_backend_init(...
{ "code": [], "line_no": [] }
int FUNC_0(struct vhost_dev *VAR_0, void *VAR_1, VhostBackendType VAR_2) { uint64_t features; int VAR_3, VAR_4; if (vhost_set_backend_type(VAR_0, VAR_2) < 0) { close((uintptr_t)VAR_1); return -1; } if (VAR_0->vhost_ops->vhost_backend_init(VAR_0, VAR_1)...
[ "int FUNC_0(struct vhost_dev *VAR_0, void *VAR_1,\nVhostBackendType VAR_2)\n{", "uint64_t features;", "int VAR_3, VAR_4;", "if (vhost_set_backend_type(VAR_0, VAR_2) < 0) {", "close((uintptr_t)VAR_1);", "return -1;", "}", "if (VAR_0->vhost_ops->vhost_backend_init(VAR_0, VAR_1) < 0) {", "close((uintpt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
1,489
static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1, tcg_target_long arg2) { uint8_t *old_code_ptr = s->code_ptr; if (type == TCG_TYPE_I32) { tcg_out_op_t(s, INDEX_op_ld_i32); tcg_out_r(s, ret); tcg_out_r(s, arg1); tcg_out32(...
false
qemu
03fc0548b70393b0c8d43703591a9e34fb8e3123
static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1, tcg_target_long arg2) { uint8_t *old_code_ptr = s->code_ptr; if (type == TCG_TYPE_I32) { tcg_out_op_t(s, INDEX_op_ld_i32); tcg_out_r(s, ret); tcg_out_r(s, arg1); tcg_out32(...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, TCGReg VAR_3, tcg_target_long VAR_4) { uint8_t *old_code_ptr = VAR_0->code_ptr; if (VAR_1 == TCG_TYPE_I32) { tcg_out_op_t(VAR_0, INDEX_op_ld_i32); tcg_out_r(VAR_0, VAR_2); tcg_out_r(VAR_0, VA...
[ "static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, TCGReg VAR_3,\ntcg_target_long VAR_4)\n{", "uint8_t *old_code_ptr = VAR_0->code_ptr;", "if (VAR_1 == TCG_TYPE_I32) {", "tcg_out_op_t(VAR_0, INDEX_op_ld_i32);", "tcg_out_r(VAR_0, VAR_2);", "tcg_out_r(VAR_0, VAR_3);", "tcg_out32(VAR_0, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ...
1,490
static int tight_send_framebuffer_update(VncState *vs, int x, int y, int w, int h) { int max_rows; if (vs->clientds.pf.bytes_per_pixel == 4 && vs->clientds.pf.rmax == 0xFF && vs->clientds.pf.bmax == 0xFF && vs->clientds.pf.gmax == 0xFF) { vs->tigh...
false
qemu
368d25881c94f9e09ef19a3d93e8fec797dbcd05
static int tight_send_framebuffer_update(VncState *vs, int x, int y, int w, int h) { int max_rows; if (vs->clientds.pf.bytes_per_pixel == 4 && vs->clientds.pf.rmax == 0xFF && vs->clientds.pf.bmax == 0xFF && vs->clientds.pf.gmax == 0xFF) { vs->tigh...
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5; if (VAR_0->clientds.pf.bytes_per_pixel == 4 && VAR_0->clientds.pf.rmax == 0xFF && VAR_0->clientds.pf.bmax == 0xFF && VAR_0->clientds.pf.gmax == 0xFF) { VAR...
[ "static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5;", "if (VAR_0->clientds.pf.bytes_per_pixel == 4 && VAR_0->clientds.pf.rmax == 0xFF &&\nVAR_0->clientds.pf.bmax == 0xFF && VAR_0->clientds.pf.gmax == 0xFF) {", "VAR_0->tight.pixel24 = true;", "} else {", "VAR_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 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 53 ], [ 55 ], [ 59...
1,491
void helper_booke206_tlbwe(CPUPPCState *env) { PowerPCCPU *cpu = ppc_env_get_cpu(env); uint32_t tlbncfg, tlbn; ppcmas_tlb_t *tlb; uint32_t size_tlb, size_ps; target_ulong mask; switch (env->spr[SPR_BOOKE_MAS0] & MAS0_WQ_MASK) { case MAS0_WQ_ALWAYS: /* good to go, write t...
false
qemu
2e569845bd314fc1dde83d65dc9b87e71b4d29b4
void helper_booke206_tlbwe(CPUPPCState *env) { PowerPCCPU *cpu = ppc_env_get_cpu(env); uint32_t tlbncfg, tlbn; ppcmas_tlb_t *tlb; uint32_t size_tlb, size_ps; target_ulong mask; switch (env->spr[SPR_BOOKE_MAS0] & MAS0_WQ_MASK) { case MAS0_WQ_ALWAYS: break; ...
{ "code": [], "line_no": [] }
void FUNC_0(CPUPPCState *VAR_0) { PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0); uint32_t tlbncfg, tlbn; ppcmas_tlb_t *tlb; uint32_t size_tlb, size_ps; target_ulong mask; switch (VAR_0->spr[SPR_BOOKE_MAS0] & MAS0_WQ_MASK) { case MAS0_WQ_ALWAYS: break; case MAS0...
[ "void FUNC_0(CPUPPCState *VAR_0)\n{", "PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);", "uint32_t tlbncfg, tlbn;", "ppcmas_tlb_t *tlb;", "uint32_t size_tlb, size_ps;", "target_ulong mask;", "switch (VAR_0->spr[SPR_BOOKE_MAS0] & MAS0_WQ_MASK) {", "case MAS0_WQ_ALWAYS:\nbreak;", "case MAS0_WQ_COND:\nif (0)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21, 25 ], [ 27, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 43 ], [ 45, 49 ], [ 51 ], [ 55, 57 ], [ 61 ], [...
1,492
static uint32_t qpi_mem_readl(void *opaque, target_phys_addr_t addr) { CPUState *env; env = cpu_single_env; if (!env) return 0; return env->eflags & (IF_MASK | IOPL_MASK); }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
static uint32_t qpi_mem_readl(void *opaque, target_phys_addr_t addr) { CPUState *env; env = cpu_single_env; if (!env) return 0; return env->eflags & (IF_MASK | IOPL_MASK); }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr) { CPUState *env; env = cpu_single_env; if (!env) return 0; return env->eflags & (IF_MASK | IOPL_MASK); }
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{", "CPUState *env;", "env = cpu_single_env;", "if (!env)\nreturn 0;", "return env->eflags & (IF_MASK | IOPL_MASK);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
1,493
static void test_visitor_out_number(TestOutputVisitorData *data, const void *unused) { double value = 3.14; QObject *obj; visit_type_number(data->ov, NULL, &value, &error_abort); obj = visitor_get(data); g_assert(qobject_type(obj) == QTYPE_QFLOAT); ...
false
qemu
8978b34af3250354e0b67340a7e920f909beda13
static void test_visitor_out_number(TestOutputVisitorData *data, const void *unused) { double value = 3.14; QObject *obj; visit_type_number(data->ov, NULL, &value, &error_abort); obj = visitor_get(data); g_assert(qobject_type(obj) == QTYPE_QFLOAT); ...
{ "code": [], "line_no": [] }
static void FUNC_0(TestOutputVisitorData *VAR_0, const void *VAR_1) { double VAR_2 = 3.14; QObject *obj; visit_type_number(VAR_0->ov, NULL, &VAR_2, &error_abort); obj = visitor_get(VAR_0); g_assert(qobject_type(obj) == QTYPE_QFLOAT); g_assert(qfloa...
[ "static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "double VAR_2 = 3.14;", "QObject *obj;", "visit_type_number(VAR_0->ov, NULL, &VAR_2, &error_abort);", "obj = visitor_get(VAR_0);", "g_assert(qobject_type(obj) == QTYPE_QFLOAT);", "g_assert(qfloat_get_double(qobject_to_qfloat(obj)...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
1,494
static int find_pte32(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, target_ulong eaddr, int h, int rwx, int target_page_bits) { hwaddr pteg_off; target_ulong pte0, pte1; int i, good = -1; int ret, r; ret = -1; /* No entry found */ pteg_off = get_pteg_offset32(env,...
false
qemu
f95d7cc7fecbc0e320e83c864ce2d99fee3d9236
static int find_pte32(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, target_ulong eaddr, int h, int rwx, int target_page_bits) { hwaddr pteg_off; target_ulong pte0, pte1; int i, good = -1; int ret, r; ret = -1; pteg_off = get_pteg_offset32(env, ctx->hash[h]); ...
{ "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, int VAR_5) { hwaddr pteg_off; target_ulong pte0, pte1; int VAR_6, VAR_7 = -1; int VAR_8, VAR_9; VAR_8 = -1; pteg_off = get_pteg_offset32(VAR_0, VAR_1->ha...
[ "static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "hwaddr pteg_off;", "target_ulong pte0, pte1;", "int VAR_6, VAR_7 = -1;", "int VAR_8, VAR_9;", "VAR_8 = -1;", "pteg_off = get_pteg_offset32(VAR_0, VAR_1->hash[VAR_3]);", "for...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35 ], [ 37 ], [ 39, 43 ], [ 45, 49 ], [ 51 ], [ 53 ...
1,495
int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); AVPicture dummy_pict; int ret; if (!desc) return AVERROR(EINVAL); if ((ret = av_image_check_size(width, height, 0, NULL)) < 0) return r...
false
FFmpeg
e2ad0b66fa273c5c823978e8f601f2c0d9ee42f8
int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); AVPicture dummy_pict; int ret; if (!desc) return AVERROR(EINVAL); if ((ret = av_image_check_size(width, height, 0, NULL)) < 0) return r...
{ "code": [], "line_no": [] }
int FUNC_0(enum AVPixelFormat VAR_0, int VAR_1, int VAR_2) { const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_0); AVPicture dummy_pict; int VAR_4; if (!VAR_3) return AVERROR(EINVAL); if ((VAR_4 = av_image_check_size(VAR_1, VAR_2, 0, NULL)) < 0) return VAR_4; i...
[ "int FUNC_0(enum AVPixelFormat VAR_0, int VAR_1, int VAR_2)\n{", "const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_0);", "AVPicture dummy_pict;", "int VAR_4;", "if (!VAR_3)\nreturn AVERROR(EINVAL);", "if ((VAR_4 = av_image_check_size(VAR_1, VAR_2, 0, NULL)) < 0)\nreturn VAR_4;", "if (VAR_3->fla...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21, 25 ], [ 27 ], [ 29 ] ]
1,496
uint32_t HELPER(testblock)(CPUS390XState *env, uint64_t real_addr) { uintptr_t ra = GETPC(); CPUState *cs = CPU(s390_env_get_cpu(env)); int i; real_addr = wrap_address(env, real_addr) & TARGET_PAGE_MASK; /* Check low-address protection */ if ((env->cregs[0] & CR0_LOWPROT) && real_addr...
false
qemu
2bcf018340cbf233f7145e643fc1bb367f23fd90
uint32_t HELPER(testblock)(CPUS390XState *env, uint64_t real_addr) { uintptr_t ra = GETPC(); CPUState *cs = CPU(s390_env_get_cpu(env)); int i; real_addr = wrap_address(env, real_addr) & TARGET_PAGE_MASK; if ((env->cregs[0] & CR0_LOWPROT) && real_addr < 0x2000) { cpu_restore_...
{ "code": [], "line_no": [] }
uint32_t FUNC_0(testblock)(CPUS390XState *env, uint64_t real_addr) { uintptr_t ra = GETPC(); CPUState *cs = CPU(s390_env_get_cpu(env)); int VAR_0; real_addr = wrap_address(env, real_addr) & TARGET_PAGE_MASK; if ((env->cregs[0] & CR0_LOWPROT) && real_addr < 0x2000) { cpu_rest...
[ "uint32_t FUNC_0(testblock)(CPUS390XState *env, uint64_t real_addr)\n{", "uintptr_t ra = GETPC();", "CPUState *cs = CPU(s390_env_get_cpu(env));", "int VAR_0;", "real_addr = wrap_address(env, real_addr) & TARGET_PAGE_MASK;", "if ((env->cregs[0] & CR0_LOWPROT) && real_addr < 0x2000) {", "cpu_restore_state...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
1,498
static void block_dirty_bitmap_add_prepare(BlkActionState *common, Error **errp) { Error *local_err = NULL; BlockDirtyBitmapAdd *action; BlockDirtyBitmapState *state = DO_UPCAST(BlockDirtyBitmapState, common, commo...
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
static void block_dirty_bitmap_add_prepare(BlkActionState *common, Error **errp) { Error *local_err = NULL; BlockDirtyBitmapAdd *action; BlockDirtyBitmapState *state = DO_UPCAST(BlockDirtyBitmapState, common, commo...
{ "code": [], "line_no": [] }
static void FUNC_0(BlkActionState *VAR_0, Error **VAR_1) { Error *local_err = NULL; BlockDirtyBitmapAdd *action; BlockDirtyBitmapState *state = DO_UPCAST(BlockDirtyBitmapState, VAR_0, VAR_0); if (action_chec...
[ "static void FUNC_0(BlkActionState *VAR_0,\nError **VAR_1)\n{", "Error *local_err = NULL;", "BlockDirtyBitmapAdd *action;", "BlockDirtyBitmapState *state = DO_UPCAST(BlockDirtyBitmapState,\nVAR_0, VAR_0);", "if (action_check_completion_mode(VAR_0, VAR_1) < 0) {", "return;", "}", "action = VAR_0->actio...
[ 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 ], [ 29, 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
1,499
int32_t scsi_req_enqueue(SCSIRequest *req, uint8_t *buf) { int32_t rc; assert(!req->enqueued); scsi_req_ref(req); req->enqueued = true; QTAILQ_INSERT_TAIL(&req->dev->requests, req, next); scsi_req_ref(req); rc = req->ops->send_command(req, buf); scsi_req_unref(req); ret...
false
qemu
c39ce112b60ffafbaf700853e32bea74cbb2c148
int32_t scsi_req_enqueue(SCSIRequest *req, uint8_t *buf) { int32_t rc; assert(!req->enqueued); scsi_req_ref(req); req->enqueued = true; QTAILQ_INSERT_TAIL(&req->dev->requests, req, next); scsi_req_ref(req); rc = req->ops->send_command(req, buf); scsi_req_unref(req); ret...
{ "code": [], "line_no": [] }
int32_t FUNC_0(SCSIRequest *req, uint8_t *buf) { int32_t rc; assert(!req->enqueued); scsi_req_ref(req); req->enqueued = true; QTAILQ_INSERT_TAIL(&req->dev->requests, req, next); scsi_req_ref(req); rc = req->ops->send_command(req, buf); scsi_req_unref(req); return rc; }...
[ "int32_t FUNC_0(SCSIRequest *req, uint8_t *buf)\n{", "int32_t rc;", "assert(!req->enqueued);", "scsi_req_ref(req);", "req->enqueued = true;", "QTAILQ_INSERT_TAIL(&req->dev->requests, req, next);", "scsi_req_ref(req);", "rc = req->ops->send_command(req, buf);", "scsi_req_unref(req);", "return rc;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
1,501
static int sd_parse_uri(BDRVSheepdogState *s, const char *filename, char *vdi, uint32_t *snapid, char *tag) { URI *uri; QueryParams *qp = NULL; int ret = 0; uri = uri_parse(filename); if (!uri) { return -EINVAL; } /* transport */ if (!strcmp...
false
qemu
89e2a31d337f96ab8d5b7bdfe4bcce0a25181ed1
static int sd_parse_uri(BDRVSheepdogState *s, const char *filename, char *vdi, uint32_t *snapid, char *tag) { URI *uri; QueryParams *qp = NULL; int ret = 0; uri = uri_parse(filename); if (!uri) { return -EINVAL; } if (!strcmp(uri->scheme, "...
{ "code": [], "line_no": [] }
static int FUNC_0(BDRVSheepdogState *VAR_0, const char *VAR_1, char *VAR_2, uint32_t *VAR_3, char *VAR_4) { URI *uri; QueryParams *qp = NULL; int VAR_5 = 0; uri = uri_parse(VAR_1); if (!uri) { return -EINVAL; } if (!strcmp(uri->scheme, "she...
[ "static int FUNC_0(BDRVSheepdogState *VAR_0, const char *VAR_1,\nchar *VAR_2, uint32_t *VAR_3, char *VAR_4)\n{", "URI *uri;", "QueryParams *qp = NULL;", "int VAR_5 = 0;", "uri = uri_parse(VAR_1);", "if (!uri) {", "return -EINVAL;", "}", "if (!strcmp(uri->scheme, \"sheepdog\")) {", "VAR_0->is_unix ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
1,502
static void rtas_ibm_query_interrupt_source_number(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, ...
false
qemu
210b580b106fa798149e28aa13c66b325a43204e
static void rtas_ibm_query_interrupt_source_number(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, ...
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1, uint32_t VAR_2, target_ulong VAR_3, uint32_t VAR_4, ...
[ "static void FUNC_0(sPAPREnvironment *VAR_0,\nuint32_t VAR_1,\nuint32_t VAR_2,\ntarget_ulong VAR_3,\nuint32_t VAR_4,\ntarget_ulong VAR_5)\n{", "uint32_t config_addr = rtas_ld(VAR_3, 0);", "uint64_t buid = ((uint64_t)rtas_ld(VAR_3, 1) << 32) | rtas_ld(VAR_3, 2);", "unsigned int VAR_6 = -1, VAR_7 = rtas_ld(VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
1,503
static void mpic_irq_raise(openpic_t *mpp, int n_CPU, IRQ_src_t *src) { int n_ci = IDR_CI0 - n_CPU; if(test_bit(&src->ide, n_ci)) { qemu_irq_raise(mpp->dst[n_CPU].irqs[OPENPIC_OUTPUT_CINT]); } else { qemu_irq_raise(mpp->dst[n_CPU].irqs[OPENPIC_OUTPUT_INT]); } }
false
qemu
5861a33898bbddfd1a80c2e202cb9352e3b1ba62
static void mpic_irq_raise(openpic_t *mpp, int n_CPU, IRQ_src_t *src) { int n_ci = IDR_CI0 - n_CPU; if(test_bit(&src->ide, n_ci)) { qemu_irq_raise(mpp->dst[n_CPU].irqs[OPENPIC_OUTPUT_CINT]); } else { qemu_irq_raise(mpp->dst[n_CPU].irqs[OPENPIC_OUTPUT_INT]); } }
{ "code": [], "line_no": [] }
static void FUNC_0(openpic_t *VAR_0, int VAR_1, IRQ_src_t *VAR_2) { int VAR_3 = IDR_CI0 - VAR_1; if(test_bit(&VAR_2->ide, VAR_3)) { qemu_irq_raise(VAR_0->dst[VAR_1].irqs[OPENPIC_OUTPUT_CINT]); } else { qemu_irq_raise(VAR_0->dst[VAR_1].irqs[OPENPIC_OUTPUT_INT]); } }
[ "static void FUNC_0(openpic_t *VAR_0, int VAR_1, IRQ_src_t *VAR_2)\n{", "int VAR_3 = IDR_CI0 - VAR_1;", "if(test_bit(&VAR_2->ide, VAR_3)) {", "qemu_irq_raise(VAR_0->dst[VAR_1].irqs[OPENPIC_OUTPUT_CINT]);", "}", "else {", "qemu_irq_raise(VAR_0->dst[VAR_1].irqs[OPENPIC_OUTPUT_INT]);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
1,504
static void tc6393xb_gpio_handler_update(TC6393xbState *s) { uint32_t level, diff; int bit; level = s->gpio_level & s->gpio_dir; for (diff = s->prev_level ^ level; diff; diff ^= 1 << bit) { bit = ffs(diff) - 1; qemu_set_irq(s->handler[bit], (level >> bit) & 1); } s...
false
qemu
786a4ea82ec9c87e3a895cf41081029b285a5fe5
static void tc6393xb_gpio_handler_update(TC6393xbState *s) { uint32_t level, diff; int bit; level = s->gpio_level & s->gpio_dir; for (diff = s->prev_level ^ level; diff; diff ^= 1 << bit) { bit = ffs(diff) - 1; qemu_set_irq(s->handler[bit], (level >> bit) & 1); } s...
{ "code": [], "line_no": [] }
static void FUNC_0(TC6393xbState *VAR_0) { uint32_t level, diff; int VAR_1; level = VAR_0->gpio_level & VAR_0->gpio_dir; for (diff = VAR_0->prev_level ^ level; diff; diff ^= 1 << VAR_1) { VAR_1 = ffs(diff) - 1; qemu_set_irq(VAR_0->handler[VAR_1], (level >> VAR_1) & 1); } ...
[ "static void FUNC_0(TC6393xbState *VAR_0)\n{", "uint32_t level, diff;", "int VAR_1;", "level = VAR_0->gpio_level & VAR_0->gpio_dir;", "for (diff = VAR_0->prev_level ^ level; diff; diff ^= 1 << VAR_1) {", "VAR_1 = ffs(diff) - 1;", "qemu_set_irq(VAR_0->handler[VAR_1], (level >> VAR_1) & 1);", "}", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
1,505
static void spapr_cpu_core_realize(DeviceState *dev, Error **errp) { /* We don't use SPAPR_MACHINE() in order to exit gracefully if the user * tries to add a sPAPR CPU core to a non-pseries machine. */ sPAPRMachineState *spapr = (sPAPRMachineState *) object_dynamic_cast(qdev_get_machine(...
false
qemu
94ad93bd976841c26af75322301f5aad925114d6
static void spapr_cpu_core_realize(DeviceState *dev, Error **errp) { sPAPRMachineState *spapr = (sPAPRMachineState *) object_dynamic_cast(qdev_get_machine(), TYPE_SPAPR_MACHINE); sPAPRCPUCore *sc = SPAPR_CPU_CORE(OBJECT(dev)); sPAPRCP...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { sPAPRMachineState *spapr = (sPAPRMachineState *) object_dynamic_cast(qdev_get_machine(), TYPE_SPAPR_MACHINE); sPAPRCPUCore *sc = SPAPR_CPU_CORE(OBJECT(VAR_0)); sPAPRCPUCoreClass ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "sPAPRMachineState *spapr =\n(sPAPRMachineState *) object_dynamic_cast(qdev_get_machine(),\nTYPE_SPAPR_MACHINE);", "sPAPRCPUCore *sc = SPAPR_CPU_CORE(OBJECT(VAR_0));", "sPAPRCPUCoreClass *scc = SPAPR_CPU_CORE_GET_CLASS(OBJECT(VAR_0));", "CPUCore *c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ ...
1,506
static int unpack_block_qpis(Vp3DecodeContext *s, GetBitContext *gb) { int qpi, i, j, bit, run_length, blocks_decoded, num_blocks_at_qpi; int num_blocks = s->total_num_coded_frags; for (qpi = 0; qpi < s->nqps-1 && num_blocks > 0; qpi++) { i = blocks_decoded = num_blocks_at_qpi = 0; ...
true
FFmpeg
6086731299e4d249ddc459e406b2ebb0cb71f6f4
static int unpack_block_qpis(Vp3DecodeContext *s, GetBitContext *gb) { int qpi, i, j, bit, run_length, blocks_decoded, num_blocks_at_qpi; int num_blocks = s->total_num_coded_frags; for (qpi = 0; qpi < s->nqps-1 && num_blocks > 0; qpi++) { i = blocks_decoded = num_blocks_at_qpi = 0; ...
{ "code": [ " } while (blocks_decoded < num_blocks);" ], "line_no": [ 67 ] }
static int FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9 = VAR_0->total_num_coded_frags; for (VAR_2 = 0; VAR_2 < VAR_0->nqps-1 && VAR_9 > 0; VAR_2++) { VAR_3 = VAR_7 = VAR_8 = 0; VAR_5 = get_bits1(VAR_1); ...
[ "static int FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9 = VAR_0->total_num_coded_frags;", "for (VAR_2 = 0; VAR_2 < VAR_0->nqps-1 && VAR_9 > 0; VAR_2++) {", "VAR_3 = VAR_7 = VAR_8 = 0;", "VAR_5 = get_bits1(VAR_1);", "do {",...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], ...
1,510
static int coroutine_fn sd_co_flush_to_disk(BlockDriverState *bs) { BDRVSheepdogState *s = bs->opaque; SheepdogAIOCB *acb; AIOReq *aio_req; if (s->cache_flags != SD_FLAG_CMD_CACHE) { return 0; } acb = sd_aio_setup(bs, NULL, 0, 0); acb->aiocb_type = AIOCB_FLUSH_CACHE; ...
true
qemu
b544c1aba8681c2fe5d6715fbd37cf6caf1bc7bb
static int coroutine_fn sd_co_flush_to_disk(BlockDriverState *bs) { BDRVSheepdogState *s = bs->opaque; SheepdogAIOCB *acb; AIOReq *aio_req; if (s->cache_flags != SD_FLAG_CMD_CACHE) { return 0; } acb = sd_aio_setup(bs, NULL, 0, 0); acb->aiocb_type = AIOCB_FLUSH_CACHE; ...
{ "code": [ " 0, 0, 0, 0, 0);", " add_aio_request(s, aio_req, NULL, 0, false, acb->aiocb_type);" ], "line_no": [ 31, 35 ] }
static int VAR_0 sd_co_flush_to_disk(BlockDriverState *bs) { BDRVSheepdogState *s = bs->opaque; SheepdogAIOCB *acb; AIOReq *aio_req; if (s->cache_flags != SD_FLAG_CMD_CACHE) { return 0; } acb = sd_aio_setup(bs, NULL, 0, 0); acb->aiocb_type = AIOCB_FLUSH_CACHE; acb->...
[ "static int VAR_0 sd_co_flush_to_disk(BlockDriverState *bs)\n{", "BDRVSheepdogState *s = bs->opaque;", "SheepdogAIOCB *acb;", "AIOReq *aio_req;", "if (s->cache_flags != SD_FLAG_CMD_CACHE) {", "return 0;", "}", "acb = sd_aio_setup(bs, NULL, 0, 0);", "acb->aiocb_type = AIOCB_FLUSH_CACHE;", "acb->aio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
1,511
void qemu_notify_event(void) { CPUState *env = cpu_single_env; qemu_event_increment (); if (env) { cpu_exit(env); } if (next_cpu && env != next_cpu) { cpu_exit(next_cpu); } exit_request = 1; }
true
qemu
12d4536f7d911b6d87a766ad7300482ea663cea2
void qemu_notify_event(void) { CPUState *env = cpu_single_env; qemu_event_increment (); if (env) { cpu_exit(env); } if (next_cpu && env != next_cpu) { cpu_exit(next_cpu); } exit_request = 1; }
{ "code": [ "void qemu_notify_event(void)", " CPUState *env = cpu_single_env;", " qemu_event_increment ();", " if (env) {", " cpu_exit(env);", " if (next_cpu && env != next_cpu) {", " cpu_exit(next_cpu);", " exit_request = 1;" ], "line_no": [ 1, ...
void FUNC_0(void) { CPUState *env = cpu_single_env; qemu_event_increment (); if (env) { cpu_exit(env); } if (next_cpu && env != next_cpu) { cpu_exit(next_cpu); } exit_request = 1; }
[ "void FUNC_0(void)\n{", "CPUState *env = cpu_single_env;", "qemu_event_increment ();", "if (env) {", "cpu_exit(env);", "}", "if (next_cpu && env != next_cpu) {", "cpu_exit(next_cpu);", "}", "exit_request = 1;", "}" ]
[ 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
1,512
static void tcg_out_qemu_ld(TCGContext* s, TCGReg data_reg, TCGReg addr_reg, TCGMemOpIdx oi) { TCGMemOp opc = get_memop(oi); #ifdef CONFIG_SOFTMMU unsigned mem_index = get_mmuidx(oi); tcg_insn_unit *label_ptr; TCGReg base_reg; base_reg = tcg_out_tlb_read(s, addr...
true
qemu
cd3b29b745b0ff393b2d37317837bc726b8dacc8
static void tcg_out_qemu_ld(TCGContext* s, TCGReg data_reg, TCGReg addr_reg, TCGMemOpIdx oi) { TCGMemOp opc = get_memop(oi); #ifdef CONFIG_SOFTMMU unsigned mem_index = get_mmuidx(oi); tcg_insn_unit *label_ptr; TCGReg base_reg; base_reg = tcg_out_tlb_read(s, addr...
{ "code": [ " label_ptr = s->code_ptr + 1;", " tcg_out_insn(s, RI, BRC, S390_CC_NE, 0);", " label_ptr = s->code_ptr + 1;", " tcg_out_insn(s, RI, BRC, S390_CC_NE, 0);" ], "line_no": [ 23, 25, 23, 25 ] }
static void FUNC_0(TCGContext* VAR_0, TCGReg VAR_1, TCGReg VAR_2, TCGMemOpIdx VAR_3) { TCGMemOp opc = get_memop(VAR_3); #ifdef CONFIG_SOFTMMU unsigned mem_index = get_mmuidx(VAR_3); tcg_insn_unit *label_ptr; TCGReg base_reg; base_reg = tcg_out_tlb_read(VAR_0, VA...
[ "static void FUNC_0(TCGContext* VAR_0, TCGReg VAR_1, TCGReg VAR_2,\nTCGMemOpIdx VAR_3)\n{", "TCGMemOp opc = get_memop(VAR_3);", "#ifdef CONFIG_SOFTMMU\nunsigned mem_index = get_mmuidx(VAR_3);", "tcg_insn_unit *label_ptr;", "TCGReg base_reg;", "base_reg = tcg_out_tlb_read(VAR_0, VAR_2, opc, mem_index, 1);"...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ] ]
1,513
char *qdist_pr_plain(const struct qdist *dist, size_t n) { struct qdist binned; char *ret; if (dist->n == 0) { return NULL; } qdist_bin__internal(&binned, dist, n); ret = qdist_pr_internal(&binned); qdist_destroy(&binned); return ret; }
true
qemu
11b7b07f8a15879134a54e73fade98d5e11e04f8
char *qdist_pr_plain(const struct qdist *dist, size_t n) { struct qdist binned; char *ret; if (dist->n == 0) { return NULL; } qdist_bin__internal(&binned, dist, n); ret = qdist_pr_internal(&binned); qdist_destroy(&binned); return ret; }
{ "code": [ " return NULL;", " return NULL;" ], "line_no": [ 13, 13 ] }
char *FUNC_0(const struct qdist *VAR_0, size_t VAR_1) { struct qdist VAR_2; char *VAR_3; if (VAR_0->VAR_1 == 0) { return NULL; } qdist_bin__internal(&VAR_2, VAR_0, VAR_1); VAR_3 = qdist_pr_internal(&VAR_2); qdist_destroy(&VAR_2); return VAR_3; }
[ "char *FUNC_0(const struct qdist *VAR_0, size_t VAR_1)\n{", "struct qdist VAR_2;", "char *VAR_3;", "if (VAR_0->VAR_1 == 0) {", "return NULL;", "}", "qdist_bin__internal(&VAR_2, VAR_0, VAR_1);", "VAR_3 = qdist_pr_internal(&VAR_2);", "qdist_destroy(&VAR_2);", "return VAR_3;", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
1,514
static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size, void *data) { DVVideoContext *s = c->priv_data; s->sys = dv_codec_profile(c); if (!s->sys) return -1; if(buf_size < s->sys->frame_size) return -1; c->pix_fmt = ...
true
FFmpeg
aa06658248a49f6ebf381894b9426cdfb377cd32
static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size, void *data) { DVVideoContext *s = c->priv_data; s->sys = dv_codec_profile(c); if (!s->sys) return -1; if(buf_size < s->sys->frame_size) return -1; c->pix_fmt = ...
{ "code": [ " c->execute(c, dv_encode_mt, (void**)&s->dv_anchor[0], NULL,", " DVVideoContext *s = c->priv_data;" ], "line_no": [ 35, 7 ] }
static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1, int VAR_2, void *VAR_3) { DVVideoContext *s = VAR_0->priv_data; s->sys = dv_codec_profile(VAR_0); if (!s->sys) return -1; if(VAR_2 < s->sys->frame_size) return -1; VAR_0->pix_fmt = s...
[ "static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1, int VAR_2,\nvoid *VAR_3)\n{", "DVVideoContext *s = VAR_0->priv_data;", "s->sys = dv_codec_profile(VAR_0);", "if (!s->sys)\nreturn -1;", "if(VAR_2 < s->sys->frame_size)\nreturn -1;", "VAR_0->pix_fmt = s->sys->pix_fmt;", "s->picture = *((AVFrame *)...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45 ] ]
1,515
static int mov_read_esds(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; int tag, len; get_be32(pb); /* version + flags */ len = mp4_read_descr(c, pb, &tag); if (tag == MP4ESDescrTag) { get_be16(pb); /* ID */ get_byte...
true
FFmpeg
852859ff7cd29a926a9a7e811d77192b61a6956e
static int mov_read_esds(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; int tag, len; get_be32(pb); len = mp4_read_descr(c, pb, &tag); if (tag == MP4ESDescrTag) { get_be16(pb); get_byte(pb); } else g...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; int VAR_3, VAR_4; get_be32(VAR_1); VAR_4 = mp4_read_descr(VAR_0, VAR_1, &VAR_3); if (VAR_3 == MP4ESDescrTag) { get_be16(VAR_1); get_b...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "int VAR_3, VAR_4;", "get_be32(VAR_1);", "VAR_4 = mp4_read_descr(VAR_0, VAR_1, &VAR_3);", "if (VAR_3 == MP4ESDescrTag) {", "get_be16(VAR_1);", "get_byte(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47...
1,516
static void audio_run_in (AudioState *s) { HWVoiceIn *hw = NULL; while ((hw = audio_pcm_hw_find_any_enabled_in (hw))) { SWVoiceIn *sw; int captured, min; captured = hw->pcm_ops->run_in (hw); min = audio_pcm_hw_find_min_in (hw); hw->total_samples_captured += ...
true
qemu
3d4d16f4dc101e16f643acc44dfffdbaf2a8f01c
static void audio_run_in (AudioState *s) { HWVoiceIn *hw = NULL; while ((hw = audio_pcm_hw_find_any_enabled_in (hw))) { SWVoiceIn *sw; int captured, min; captured = hw->pcm_ops->run_in (hw); min = audio_pcm_hw_find_min_in (hw); hw->total_samples_captured += ...
{ "code": [ " int captured, min;", " captured = hw->pcm_ops->run_in (hw);" ], "line_no": [ 13, 17 ] }
static void FUNC_0 (AudioState *VAR_0) { HWVoiceIn *hw = NULL; while ((hw = audio_pcm_hw_find_any_enabled_in (hw))) { SWVoiceIn *sw; int VAR_1, VAR_2; VAR_1 = hw->pcm_ops->run_in (hw); VAR_2 = audio_pcm_hw_find_min_in (hw); hw->total_samples_captured += VAR_...
[ "static void FUNC_0 (AudioState *VAR_0)\n{", "HWVoiceIn *hw = NULL;", "while ((hw = audio_pcm_hw_find_any_enabled_in (hw))) {", "SWVoiceIn *sw;", "int VAR_1, VAR_2;", "VAR_1 = hw->pcm_ops->run_in (hw);", "VAR_2 = audio_pcm_hw_find_min_in (hw);", "hw->total_samples_captured += VAR_1 - VAR_2;", "hw->t...
[ 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
1,517
static int avs_read_packet(AVFormatContext * s, AVPacket * pkt) { AvsFormat *avs = s->priv_data; int sub_type = 0, size = 0; AvsBlockType type = AVS_NONE; int palette_size = 0; uint8_t palette[4 + 3 * 256]; int ret; if (avs->remaining_audio_size > 0) if (avs_read_audio_pac...
true
FFmpeg
5d44c061cf511d97be5fac8d76be2f3915c6e798
static int avs_read_packet(AVFormatContext * s, AVPacket * pkt) { AvsFormat *avs = s->priv_data; int sub_type = 0, size = 0; AvsBlockType type = AVS_NONE; int palette_size = 0; uint8_t palette[4 + 3 * 256]; int ret; if (avs->remaining_audio_size > 0) if (avs_read_audio_pac...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext * VAR_0, AVPacket * VAR_1) { AvsFormat *avs = VAR_0->priv_data; int VAR_2 = 0, VAR_3 = 0; AvsBlockType type = AVS_NONE; int VAR_4 = 0; uint8_t palette[4 + 3 * 256]; int VAR_5; if (avs->remaining_audio_size > 0) if (avs_read_audio_packet(VA...
[ "static int FUNC_0(AVFormatContext * VAR_0, AVPacket * VAR_1)\n{", "AvsFormat *avs = VAR_0->priv_data;", "int VAR_2 = 0, VAR_3 = 0;", "AvsBlockType type = AVS_NONE;", "int VAR_4 = 0;", "uint8_t palette[4 + 3 * 256];", "int VAR_5;", "if (avs->remaining_audio_size > 0)\nif (avs_read_audio_packet(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21, 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 52 ...
1,518
void HELPER(simcall)(CPUXtensaState *env) { uint32_t *regs = env->regs; switch (regs[2]) { case TARGET_SYS_exit: qemu_log("exit(%d) simcall\n", regs[3]); exit(regs[3]); break; case TARGET_SYS_read: case TARGET_SYS_write: { bool is_write = re...
true
qemu
e7eee62a90c671d22d50964b7de05e3f4fd96f5f
void HELPER(simcall)(CPUXtensaState *env) { uint32_t *regs = env->regs; switch (regs[2]) { case TARGET_SYS_exit: qemu_log("exit(%d) simcall\n", regs[3]); exit(regs[3]); break; case TARGET_SYS_read: case TARGET_SYS_write: { bool is_write = re...
{ "code": [], "line_no": [] }
void FUNC_0(simcall)(CPUXtensaState *env) { uint32_t *regs = env->regs; switch (regs[2]) { case TARGET_SYS_exit: qemu_log("exit(%d) simcall\n", regs[3]); exit(regs[3]); break; case TARGET_SYS_read: case TARGET_SYS_write: { bool is_write = re...
[ "void FUNC_0(simcall)(CPUXtensaState *env)\n{", "uint32_t *regs = env->regs;", "switch (regs[2]) {", "case TARGET_SYS_exit:\nqemu_log(\"exit(%d) simcall\\n\", regs[3]);", "exit(regs[3]);", "break;", "case TARGET_SYS_read:\ncase TARGET_SYS_write:\n{", "bool is_write = regs[2] == TARGET_SYS_write;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], ...
1,520
static void decode_lpc(int32_t *coeffs, int mode, int length) { int i; if (length < 2) return; if (mode == 1) { unsigned a1 = *coeffs++; for (i = 0; i < length - 1 >> 1; i++) { *coeffs += a1; coeffs[1] += *coeffs; a1 = coeff...
true
FFmpeg
5d31f03a0264cac24434c8108daef4ccba6d28f9
static void decode_lpc(int32_t *coeffs, int mode, int length) { int i; if (length < 2) return; if (mode == 1) { unsigned a1 = *coeffs++; for (i = 0; i < length - 1 >> 1; i++) { *coeffs += a1; coeffs[1] += *coeffs; a1 = coeff...
{ "code": [ " coeffs[1] += *coeffs;" ], "line_no": [ 23 ] }
static void FUNC_0(int32_t *VAR_0, int VAR_1, int VAR_2) { int VAR_3; if (VAR_2 < 2) return; if (VAR_1 == 1) { unsigned VAR_8 = *VAR_0++; for (VAR_3 = 0; VAR_3 < VAR_2 - 1 >> 1; VAR_3++) { *VAR_0 += VAR_8; VAR_0[1] += *VAR_0; VAR_8 ...
[ "static void FUNC_0(int32_t *VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3;", "if (VAR_2 < 2)\nreturn;", "if (VAR_1 == 1) {", "unsigned VAR_8 = *VAR_0++;", "for (VAR_3 = 0; VAR_3 < VAR_2 - 1 >> 1; VAR_3++) {", "*VAR_0 += VAR_8;", "VAR_0[1] += *VAR_0;", "VAR_8 = VAR_0[1];", "VAR_0 += 2;...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
1,521
static void term_init(void) { #ifndef __MINGW32__ struct termios tty; tcgetattr (0, &tty); oldtty = tty; tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP |INLCR|IGNCR|ICRNL|IXON); tty.c_oflag |= OPOST; tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN); tty.c_cfl...
false
FFmpeg
e16e49ac90f6da9e019fdf23084cbb256d14bd9c
static void term_init(void) { #ifndef __MINGW32__ struct termios tty; tcgetattr (0, &tty); oldtty = tty; tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP |INLCR|IGNCR|ICRNL|IXON); tty.c_oflag |= OPOST; tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN); tty.c_cfl...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { #ifndef __MINGW32__ struct termios VAR_0; tcgetattr (0, &VAR_0); oldtty = VAR_0; VAR_0.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP |INLCR|IGNCR|ICRNL|IXON); VAR_0.c_oflag |= OPOST; VAR_0.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN); ...
[ "static void FUNC_0(void)\n{", "#ifndef __MINGW32__\nstruct termios VAR_0;", "tcgetattr (0, &VAR_0);", "oldtty = VAR_0;", "VAR_0.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP\n|INLCR|IGNCR|ICRNL|IXON);", "VAR_0.c_oflag |= OPOST;", "VAR_0.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN);", "VAR_0.c_cflag &= ~(CSIZE|...
[ 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 ], [ 35 ], [ 37 ], [ 39, 43 ], [ 45 ], [ 53 ], [ 55, 57 ], [ 59...
1,522
static int xan_decode_frame_type0(AVCodecContext *avctx) { XanContext *s = avctx->priv_data; uint8_t *ybuf, *prev_buf, *src = s->scratch_buffer; unsigned chroma_off, corr_off; int cur, last; int i, j; int ret; chroma_off = bytestream2_get_le32(&s->gb); corr_off = bytestream...
false
FFmpeg
77693c541a541661357a0edd5bbaae69c64b2039
static int xan_decode_frame_type0(AVCodecContext *avctx) { XanContext *s = avctx->priv_data; uint8_t *ybuf, *prev_buf, *src = s->scratch_buffer; unsigned chroma_off, corr_off; int cur, last; int i, j; int ret; chroma_off = bytestream2_get_le32(&s->gb); corr_off = bytestream...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { XanContext *s = VAR_0->priv_data; uint8_t *ybuf, *prev_buf, *src = s->scratch_buffer; unsigned VAR_1, VAR_2; int VAR_3, VAR_4; int VAR_5, VAR_6; int VAR_7; VAR_1 = bytestream2_get_le32(&s->gb); VAR_2 = bytestream2_get_le32(&s->gb);...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "XanContext *s = VAR_0->priv_data;", "uint8_t *ybuf, *prev_buf, *src = s->scratch_buffer;", "unsigned VAR_1, VAR_2;", "int VAR_3, VAR_4;", "int VAR_5, VAR_6;", "int VAR_7;", "VAR_1 = bytestream2_get_le32(&s->gb);", "VAR_2 = bytestream2_get_le32(&s->g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
1,523
static int bethsoftvid_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { BethsoftvidContext * vid = avctx->priv_data; char block_type; uint8_t * dst; uint8_t * frame_end; int remaining = avctx->width...
false
FFmpeg
f320fb894c695044ef15239d27844d9ac01c9d16
static int bethsoftvid_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { BethsoftvidContext * vid = avctx->priv_data; char block_type; uint8_t * dst; uint8_t * frame_end; int remaining = avctx->width...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { BethsoftvidContext * vid = VAR_0->priv_data; char VAR_4; uint8_t * dst; uint8_t * frame_end; int VAR_5 = VAR_0->width; const int VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "BethsoftvidContext * vid = VAR_0->priv_data;", "char VAR_4;", "uint8_t * dst;", "uint8_t * frame_end;", "int VAR_5 = VAR_0->width;", "const int VAR_6 = vid->frame.linesize[0] - VAR_0->width;", "int VAR_7;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
1,524
static void decode_delta_d(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int flag, int bpp, int dst_size) { int planepitch = FFALIGN(w, 16) >> 3; int pitch = planepitch * bpp; int planepitch_byte = (w + 7) / 8; unsigned entr...
false
FFmpeg
810a8ba5b67389e808ed2f124e1cd54b8a26e679
static void decode_delta_d(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int flag, int bpp, int dst_size) { int planepitch = FFALIGN(w, 16) >> 3; int pitch = planepitch * bpp; int planepitch_byte = (w + 7) / 8; unsigned entr...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7 = FFALIGN(VAR_3, 16) >> 3; int VAR_8 = VAR_7 * VAR_5; int VAR_9 = (VAR_3 + 7) / 8; unsigned VAR_10, VAR_11; ...
[ "static void FUNC_0(uint8_t *VAR_0,\nconst uint8_t *VAR_1, const uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{", "int VAR_7 = FFALIGN(VAR_3, 16) >> 3;", "int VAR_8 = VAR_7 * VAR_5;", "int VAR_9 = (VAR_3 + 7) / 8;", "unsigned VAR_10, VAR_11;", "GetByteContext gb, ptrs;", "PutByteContext...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 49, 51 ], [ 55 ], [ 59 ], [...
1,526
static void avc_luma_hv_qrt_and_aver_dst_8x8_msa(const uint8_t *src_x, const uint8_t *src_y, int32_t src_stride, uint8_t *dst, ...
false
FFmpeg
662234a9a22f1cd0f0ac83b8bb1ffadedca90c0a
static void avc_luma_hv_qrt_and_aver_dst_8x8_msa(const uint8_t *src_x, const uint8_t *src_y, int32_t src_stride, uint8_t *dst, ...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint8_t *VAR_0, const uint8_t *VAR_1, int32_t VAR_2, uint8_t *VAR_3, int32_t VAR_4) { uin...
[ "static void FUNC_0(const uint8_t *VAR_0,\nconst uint8_t *VAR_1,\nint32_t VAR_2,\nuint8_t *VAR_3,\nint32_t VAR_4)\n{", "uint32_t loop_cnt;", "v16i8 src_hz0, src_hz1, src_hz2, src_hz3;", "v16u8 dst0, dst1, dst2, dst3;", "v16i8 src_vt0, src_vt1, src_vt2, src_vt3;", "v16i8 src_vt4, src_vt5, src_vt6, src_vt7,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ...
1,527
static void hScale8To19_c(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *src, const int16_t *filter, const int16_t *filterPos, int filterSize) { int i; int32_t *dst = (int32_t *) _dst; for (i=0; i<dstW; i++) { int j; int src...
true
FFmpeg
2254b559cbcfc0418135f09add37c0a5866b1981
static void hScale8To19_c(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *src, const int16_t *filter, const int16_t *filterPos, int filterSize) { int i; int32_t *dst = (int32_t *) _dst; for (i=0; i<dstW; i++) { int j; int src...
{ "code": [ " const int16_t *filter, const int16_t *filterPos,", " const int16_t *filter, const int16_t *filterPos," ], "line_no": [ 3, 3 ] }
static void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3, const int16_t *VAR_4, const int16_t *VAR_5, int VAR_6) { int VAR_7; int32_t *dst = (int32_t *) VAR_1; for (VAR_7=0; VAR_7<VAR_2; VAR_7++) { int VAR_8; ...
[ "static void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3,\nconst int16_t *VAR_4, const int16_t *VAR_5,\nint VAR_6)\n{", "int VAR_7;", "int32_t *dst = (int32_t *) VAR_1;", "for (VAR_7=0; VAR_7<VAR_2; VAR_7++) {", "int VAR_8;", "int VAR_9= VAR_5[VAR_7];", "int VAR_10=0;", "...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ] ]
1,529
static void cpu_notify_map_clients_locked(void) { MapClient *client; while (!QLIST_EMPTY(&map_client_list)) { client = QLIST_FIRST(&map_client_list); client->callback(client->opaque); cpu_unregister_map_client(client); } }
true
qemu
e95205e1f9cd2c4262b7a7b1c992a94512c86d0e
static void cpu_notify_map_clients_locked(void) { MapClient *client; while (!QLIST_EMPTY(&map_client_list)) { client = QLIST_FIRST(&map_client_list); client->callback(client->opaque); cpu_unregister_map_client(client); } }
{ "code": [ " client->callback(client->opaque);", " cpu_unregister_map_client(client);" ], "line_no": [ 13, 15 ] }
static void FUNC_0(void) { MapClient *client; while (!QLIST_EMPTY(&map_client_list)) { client = QLIST_FIRST(&map_client_list); client->callback(client->opaque); cpu_unregister_map_client(client); } }
[ "static void FUNC_0(void)\n{", "MapClient *client;", "while (!QLIST_EMPTY(&map_client_list)) {", "client = QLIST_FIRST(&map_client_list);", "client->callback(client->opaque);", "cpu_unregister_map_client(client);", "}", "}" ]
[ 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
1,530
int show_bsfs(void *optctx, const char *opt, const char *arg) { AVBitStreamFilter *bsf = NULL; printf("Bitstream filters:\n"); while ((bsf = av_bitstream_filter_next(bsf))) printf("%s\n", bsf->name); printf("\n"); return 0; }
true
FFmpeg
5ef19590802f000299e418143fc2301e3f43affe
int show_bsfs(void *optctx, const char *opt, const char *arg) { AVBitStreamFilter *bsf = NULL; printf("Bitstream filters:\n"); while ((bsf = av_bitstream_filter_next(bsf))) printf("%s\n", bsf->name); printf("\n"); return 0; }
{ "code": [ " AVBitStreamFilter *bsf = NULL;", " while ((bsf = av_bitstream_filter_next(bsf)))" ], "line_no": [ 5, 11 ] }
int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2) { AVBitStreamFilter *bsf = NULL; printf("Bitstream filters:\n"); while ((bsf = av_bitstream_filter_next(bsf))) printf("%s\n", bsf->name); printf("\n"); return 0; }
[ "int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "AVBitStreamFilter *bsf = NULL;", "printf(\"Bitstream filters:\\n\");", "while ((bsf = av_bitstream_filter_next(bsf)))\nprintf(\"%s\\n\", bsf->name);", "printf(\"\\n\");", "return 0;", "}" ]
[ 0, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ] ]
1,531
static inline int decode_vui_parameters(H264Context *h, SPS *sps){ MpegEncContext * const s = &h->s; int aspect_ratio_info_present_flag; unsigned int aspect_ratio_idc; aspect_ratio_info_present_flag= get_bits1(&s->gb); if( aspect_ratio_info_present_flag ) { aspect_ratio_idc= get_bi...
true
FFmpeg
3aa661ec561d7a20812b84b353b0d7855ac346c8
static inline int decode_vui_parameters(H264Context *h, SPS *sps){ MpegEncContext * const s = &h->s; int aspect_ratio_info_present_flag; unsigned int aspect_ratio_idc; aspect_ratio_info_present_flag= get_bits1(&s->gb); if( aspect_ratio_info_present_flag ) { aspect_ratio_idc= get_bi...
{ "code": [ " av_log(h->s.avctx, AV_LOG_ERROR, \"Overread VUI by %d bits\\n\", -get_bits_left(&s->gb));" ], "line_no": [ 173 ] }
static inline int FUNC_0(H264Context *VAR_0, SPS *VAR_1){ MpegEncContext * const s = &VAR_0->s; int VAR_2; unsigned int VAR_3; VAR_2= get_bits1(&s->gb); if( VAR_2 ) { VAR_3= get_bits(&s->gb, 8); if( VAR_3 == EXTENDED_SAR ) { VAR_1->sar.num= get_bits(&s->gb, 16...
[ "static inline int FUNC_0(H264Context *VAR_0, SPS *VAR_1){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_2;", "unsigned int VAR_3;", "VAR_2= get_bits1(&s->gb);", "if( VAR_2 ) {", "VAR_3= get_bits(&s->gb, 8);", "if( VAR_3 == EXTENDED_SAR ) {", "VAR_1->sar.num= get_bits(&s->gb, 16);", "VAR_1->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 49...
1,532
void migration_set_incoming_channel(MigrationState *s, QIOChannel *ioc) { QEMUFile *f = qemu_fopen_channel_input(ioc); process_incoming_migration(f); }
true
qemu
e122636562218b3d442cd2cd18fbc188dd9ce709
void migration_set_incoming_channel(MigrationState *s, QIOChannel *ioc) { QEMUFile *f = qemu_fopen_channel_input(ioc); process_incoming_migration(f); }
{ "code": [ " QEMUFile *f = qemu_fopen_channel_input(ioc);", " process_incoming_migration(f);", " QIOChannel *ioc)" ], "line_no": [ 7, 11, 3 ] }
void FUNC_0(MigrationState *VAR_0, QIOChannel *VAR_1) { QEMUFile *f = qemu_fopen_channel_input(VAR_1); process_incoming_migration(f); }
[ "void FUNC_0(MigrationState *VAR_0,\nQIOChannel *VAR_1)\n{", "QEMUFile *f = qemu_fopen_channel_input(VAR_1);", "process_incoming_migration(f);", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ] ]
1,534
static int buffered_rate_limit(void *opaque) { MigrationState *s = opaque; int ret; ret = qemu_file_get_error(s->file); if (ret) { return ret; } if (s->bytes_xfer > s->xfer_limit) { return 1; } return 0; }
true
qemu
1e973051b96bac5eef46393eec15b68796e7c7d3
static int buffered_rate_limit(void *opaque) { MigrationState *s = opaque; int ret; ret = qemu_file_get_error(s->file); if (ret) { return ret; } if (s->bytes_xfer > s->xfer_limit) { return 1; } return 0; }
{ "code": [ " if (s->bytes_xfer > s->xfer_limit) {" ], "line_no": [ 21 ] }
static int FUNC_0(void *VAR_0) { MigrationState *s = VAR_0; int VAR_1; VAR_1 = qemu_file_get_error(s->file); if (VAR_1) { return VAR_1; } if (s->bytes_xfer > s->xfer_limit) { return 1; } return 0; }
[ "static int FUNC_0(void *VAR_0)\n{", "MigrationState *s = VAR_0;", "int VAR_1;", "VAR_1 = qemu_file_get_error(s->file);", "if (VAR_1) {", "return VAR_1;", "}", "if (s->bytes_xfer > s->xfer_limit) {", "return 1;", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
1,535
static const unsigned char *seq_decode_op2(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst) { int i; for (i = 0; i < 8; i++) { memcpy(dst, src, 8); src += 8; dst += seq->frame.linesize[0]; } return src; }
true
FFmpeg
5d7e3d71673d64a16b58430a0027afadb6b3a54e
static const unsigned char *seq_decode_op2(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst) { int i; for (i = 0; i < 8; i++) { memcpy(dst, src, 8); src += 8; dst += seq->frame.linesize[0]; } return src; }
{ "code": [ "static const unsigned char *seq_decode_op2(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst)" ], "line_no": [ 1 ] }
static const unsigned char *FUNC_0(SeqVideoContext *VAR_0, const unsigned char *VAR_1, unsigned char *VAR_2) { int VAR_3; for (VAR_3 = 0; VAR_3 < 8; VAR_3++) { memcpy(VAR_2, VAR_1, 8); VAR_1 += 8; VAR_2 += VAR_0->frame.linesize[0]; } return VAR_1; }
[ "static const unsigned char *FUNC_0(SeqVideoContext *VAR_0, const unsigned char *VAR_1, unsigned char *VAR_2)\n{", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < 8; VAR_3++) {", "memcpy(VAR_2, VAR_1, 8);", "VAR_1 += 8;", "VAR_2 += VAR_0->frame.linesize[0];", "}", "return VAR_1;", "}" ]
[ 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
1,536
int opt_default(void *optctx, const char *opt, const char *arg) { const AVOption *o; int consumed = 0; char opt_stripped[128]; const char *p; const AVClass *cc = avcodec_get_class(), *fc = avformat_get_class(); const av_unused AVClass *rc_class; const AVClass *sc, *swr_class; ...
true
FFmpeg
f3abdf4392a146462dc679846c061b8bf2b5c7a0
int opt_default(void *optctx, const char *opt, const char *arg) { const AVOption *o; int consumed = 0; char opt_stripped[128]; const char *p; const AVClass *cc = avcodec_get_class(), *fc = avformat_get_class(); const av_unused AVClass *rc_class; const AVClass *sc, *swr_class; ...
{ "code": [ " if (av_opt_find(&rc_class, opt, NULL, 0,", " AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)) {" ], "line_no": [ 117, 119 ] }
int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2) { const AVOption *VAR_3; int VAR_4 = 0; char VAR_5[128]; const char *VAR_6; const VAR_8 *VAR_7 = avcodec_get_class(), *fc = avformat_get_class(); const av_unused VAR_8 *rc_class; const VAR_8 *VAR_9, *swr_class; if (...
[ "int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "const AVOption *VAR_3;", "int VAR_4 = 0;", "char VAR_5[128];", "const char *VAR_6;", "const VAR_8 *VAR_7 = avcodec_get_class(), *fc = avformat_get_class();", "const av_unused VAR_8 *rc_class;", "const VAR_8 *VAR_9, *swr_class;", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27, 29 ], [ 31 ], [ 35, 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ...
1,537
static void event_test_emit(test_QAPIEvent event, QDict *d, Error **errp) { QObject *obj; QDict *t; int64_t s, ms; /* Verify that we have timestamp, then remove it to compare other fields */ obj = qdict_get(d, "timestamp"); g_assert(obj); t = qobject_to_qdict(obj); g_assert(t)...
true
qemu
4b32e11a59e34c5cf570c1fd102a78d9351e71f5
static void event_test_emit(test_QAPIEvent event, QDict *d, Error **errp) { QObject *obj; QDict *t; int64_t s, ms; obj = qdict_get(d, "timestamp"); g_assert(obj); t = qobject_to_qdict(obj); g_assert(t); obj = qdict_get(t, "seconds"); g_assert(obj && qobject_type(obj...
{ "code": [ " QObject *obj;", " obj = qdict_get(d, \"timestamp\");", " g_assert(obj);", " t = qobject_to_qdict(obj);", " obj = qdict_get(t, \"seconds\");", " g_assert(obj && qobject_type(obj) == QTYPE_QINT);", " s = qint_get_int(qobject_to_qint(obj));", " obj = ...
static void FUNC_0(test_QAPIEvent VAR_0, QDict *VAR_1, Error **VAR_2) { QObject *obj; QDict *t; int64_t s, ms; obj = qdict_get(VAR_1, "timestamp"); g_assert(obj); t = qobject_to_qdict(obj); g_assert(t); obj = qdict_get(t, "seconds"); g_assert(obj && qobject_type(obj...
[ "static void FUNC_0(test_QAPIEvent VAR_0, QDict *VAR_1, Error **VAR_2)\n{", "QObject *obj;", "QDict *t;", "int64_t s, ms;", "obj = qdict_get(VAR_1, \"timestamp\");", "g_assert(obj);", "t = qobject_to_qdict(obj);", "g_assert(t);", "obj = qdict_get(t, \"seconds\");", "g_assert(obj && qobject_type(ob...
[ 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
1,538
void ff_put_h264_qpel8_mc20_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_8w_msa(src - 2, stride, dst, stride, 8); }
false
FFmpeg
6796a1dd8c14843b77925cb83a3ef88706ae1dd0
void ff_put_h264_qpel8_mc20_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_8w_msa(src - 2, stride, dst, stride, 8); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hz_8w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 8); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hz_8w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 8);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
1,539
static void ini_print_object_header(const char *name) { int i; PrintElement *el = octx.prefix + octx.level -1; if (el->nb_elems) avio_printf(probe_out, "\n"); avio_printf(probe_out, "["); for (i = 1; i < octx.level; i++) { el = octx.prefix + i; avio_printf(prob...
false
FFmpeg
aeb23fc4549a25ef32ff085d2a76227f90caf403
static void ini_print_object_header(const char *name) { int i; PrintElement *el = octx.prefix + octx.level -1; if (el->nb_elems) avio_printf(probe_out, "\n"); avio_printf(probe_out, "["); for (i = 1; i < octx.level; i++) { el = octx.prefix + i; avio_printf(prob...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { int VAR_1; PrintElement *el = octx.prefix + octx.level -1; if (el->nb_elems) avio_printf(probe_out, "\n"); avio_printf(probe_out, "["); for (VAR_1 = 1; VAR_1 < octx.level; VAR_1++) { el = octx.prefix + VAR_1; avio_printf(...
[ "static void FUNC_0(const char *VAR_0)\n{", "int VAR_1;", "PrintElement *el = octx.prefix + octx.level -1;", "if (el->nb_elems)\navio_printf(probe_out, \"\\n\");", "avio_printf(probe_out, \"[\");", "for (VAR_1 = 1; VAR_1 < octx.level; VAR_1++) {", "el = octx.prefix + VAR_1;", "avio_printf(probe_out, \...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ] ]
1,541
int avformat_queue_attached_pictures(AVFormatContext *s) { int i; for (i = 0; i < s->nb_streams; i++) if (s->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC && s->streams[i]->discard < AVDISCARD_ALL) { AVPacket copy = s->streams[i]->attached_pic; if (copy...
false
FFmpeg
0f87b42b44f8da7234e8e43b27d1dc5e4dce7582
int avformat_queue_attached_pictures(AVFormatContext *s) { int i; for (i = 0; i < s->nb_streams; i++) if (s->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC && s->streams[i]->discard < AVDISCARD_ALL) { AVPacket copy = s->streams[i]->attached_pic; if (copy...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0) { int VAR_1; for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) if (VAR_0->streams[VAR_1]->disposition & AV_DISPOSITION_ATTACHED_PIC && VAR_0->streams[VAR_1]->discard < AVDISCARD_ALL) { AVPacket copy = VAR_0->streams[VAR_1]->attached_pic;...
[ "int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++)", "if (VAR_0->streams[VAR_1]->disposition & AV_DISPOSITION_ATTACHED_PIC &&\nVAR_0->streams[VAR_1]->discard < AVDISCARD_ALL) {", "AVPacket copy = VAR_0->streams[VAR_1]->attached_pic;", "if (copy.size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ] ]
1,542
static inline void mix_dualmono_to_mono(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) output[1][i] += output[2][i]; memset(output[2], 0, sizeof(output[2])); }
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_dualmono_to_mono(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) output[1][i] += output[2][i]; memset(output[2], 0, sizeof(output[2])); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float (*VAR_2)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) VAR_2[1][VAR_1] += VAR_2[2][VAR_1]; memset(VAR_2[2], 0, sizeof(VAR_2[2])); }
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float (*VAR_2)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++)", "VAR_2[1][VAR_1] += VAR_2[2][VAR_1];", "memset(VAR_2[2], 0, sizeof(VAR_2[2]));", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
1,543
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PNGDecContext *const s = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVFrame *p = data; ...
false
FFmpeg
1e763454322f7fbc7799f6009bf2e11d7a3b9821
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PNGDecContext *const s = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVFrame *p = data; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { PNGDecContext *const s = VAR_0->priv_data; const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; AVFrame *p = VAR_1; uint8_t ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "PNGDecContext *const s = VAR_0->priv_data;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "AVFrame *p = VAR_1;", "uint8_t *crow_buf_base = NULL;", "uint32_t tag, l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27, 29, 31, 33 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57 ...
1,544
static bool rtas_event_log_contains(uint32_t event_mask) { sPAPREventLogEntry *entry = NULL; /* we only queue EPOW events atm. */ if ((event_mask & EVENT_MASK_EPOW) == 0) { return false; } QTAILQ_FOREACH(entry, &spapr->pending_events, next) { /* EPOW and hotplug events ar...
false
qemu
79853e18d904b0a4bcef62701d48559688007c93
static bool rtas_event_log_contains(uint32_t event_mask) { sPAPREventLogEntry *entry = NULL; if ((event_mask & EVENT_MASK_EPOW) == 0) { return false; } QTAILQ_FOREACH(entry, &spapr->pending_events, next) { if (entry->log_type == RTAS_LOG_TYPE_EPOW || ...
{ "code": [], "line_no": [] }
static bool FUNC_0(uint32_t event_mask) { sPAPREventLogEntry *entry = NULL; if ((event_mask & EVENT_MASK_EPOW) == 0) { return false; } QTAILQ_FOREACH(entry, &spapr->pending_events, next) { if (entry->log_type == RTAS_LOG_TYPE_EPOW || entry->log_typ...
[ "static bool FUNC_0(uint32_t event_mask)\n{", "sPAPREventLogEntry *entry = NULL;", "if ((event_mask & EVENT_MASK_EPOW) == 0) {", "return false;", "}", "QTAILQ_FOREACH(entry, &spapr->pending_events, next) {", "if (entry->log_type == RTAS_LOG_TYPE_EPOW ||\nentry->log_type == RTAS_LOG_TYPE_HOTPLUG) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
1,545
static void test_visitor_out_native_list_int16(TestOutputVisitorData *data, const void *unused) { test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_S16); }
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_visitor_out_native_list_int16(TestOutputVisitorData *data, const void *unused) { test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_S16); }
{ "code": [], "line_no": [] }
static void FUNC_0(TestOutputVisitorData *VAR_0, const void *VAR_1) { test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_S16); }
[ "static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_S16);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
1,546
void sh4_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { int i; for (i = 0; i < ARRAY_SIZE(sh4_defs); i++) (*cpu_fprintf)(f, "%s\n", sh4_defs[i].name); }
false
qemu
9a78eead0c74333a394c0f7bbfc4423ac746fcd5
void sh4_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { int i; for (i = 0; i < ARRAY_SIZE(sh4_defs); i++) (*cpu_fprintf)(f, "%s\n", sh4_defs[i].name); }
{ "code": [], "line_no": [] }
void FUNC_0(FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...)) { int VAR_3; for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(sh4_defs); VAR_3++) (*VAR_1)(VAR_2, "%s\n", sh4_defs[VAR_3].name); }
[ "void FUNC_0(FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))\n{", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(sh4_defs); VAR_3++)", "(*VAR_1)(VAR_2, \"%s\\n\", sh4_defs[VAR_3].name);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
1,547
static int qemu_rbd_set_conf(rados_t cluster, const char *conf) { char *p, *buf; char name[RBD_MAX_CONF_NAME_SIZE]; char value[RBD_MAX_CONF_VAL_SIZE]; int ret = 0; buf = g_strdup(conf); p = buf; while (p) { ret = qemu_rbd_next_tok(name, sizeof(name), p, ...
false
qemu
7c7e9df0232a1ce5c411f0f348038d2e72097ae1
static int qemu_rbd_set_conf(rados_t cluster, const char *conf) { char *p, *buf; char name[RBD_MAX_CONF_NAME_SIZE]; char value[RBD_MAX_CONF_VAL_SIZE]; int ret = 0; buf = g_strdup(conf); p = buf; while (p) { ret = qemu_rbd_next_tok(name, sizeof(name), p, ...
{ "code": [], "line_no": [] }
static int FUNC_0(rados_t VAR_0, const char *VAR_1) { char *VAR_2, *VAR_3; char VAR_4[RBD_MAX_CONF_NAME_SIZE]; char VAR_5[RBD_MAX_CONF_VAL_SIZE]; int VAR_6 = 0; VAR_3 = g_strdup(VAR_1); VAR_2 = VAR_3; while (VAR_2) { VAR_6 = qemu_rbd_next_tok(VAR_4, sizeof(VAR_4), VAR_2,...
[ "static int FUNC_0(rados_t VAR_0, const char *VAR_1)\n{", "char *VAR_2, *VAR_3;", "char VAR_4[RBD_MAX_CONF_NAME_SIZE];", "char VAR_5[RBD_MAX_CONF_VAL_SIZE];", "int VAR_6 = 0;", "VAR_3 = g_strdup(VAR_1);", "VAR_2 = VAR_3;", "while (VAR_2) {", "VAR_6 = qemu_rbd_next_tok(VAR_4, sizeof(VAR_4), VAR_2,\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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ...
1,548
static void patch_reloc(tcg_insn_unit *code_ptr, int type, intptr_t value, intptr_t addend) { assert(type == R_ARM_PC24); assert(addend == 0); reloc_pc24(code_ptr, (tcg_insn_unit *)value); }
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static void patch_reloc(tcg_insn_unit *code_ptr, int type, intptr_t value, intptr_t addend) { assert(type == R_ARM_PC24); assert(addend == 0); reloc_pc24(code_ptr, (tcg_insn_unit *)value); }
{ "code": [], "line_no": [] }
static void FUNC_0(tcg_insn_unit *VAR_0, int VAR_1, intptr_t VAR_2, intptr_t VAR_3) { assert(VAR_1 == R_ARM_PC24); assert(VAR_3 == 0); reloc_pc24(VAR_0, (tcg_insn_unit *)VAR_2); }
[ "static void FUNC_0(tcg_insn_unit *VAR_0, int VAR_1,\nintptr_t VAR_2, intptr_t VAR_3)\n{", "assert(VAR_1 == R_ARM_PC24);", "assert(VAR_3 == 0);", "reloc_pc24(VAR_0, (tcg_insn_unit *)VAR_2);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
1,549
void ff_avg_h264_qpel8_mc13_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(src + stride - 2, src - (stride * 2), stride, dst, stride); }
false
FFmpeg
1181d93231e9b807965724587d363c1cfd5a1d0d
void ff_avg_h264_qpel8_mc13_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(src + stride - 2, src - (stride * 2), stride, dst, stride); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(VAR_1 + VAR_2 - 2, VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hv_qrt_and_aver_dst_8x8_msa(VAR_1 + VAR_2 - 2,\nVAR_1 - (VAR_2 * 2),\nVAR_2, VAR_0, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11 ], [ 13 ] ]
1,550
static int v9fs_do_symlink(V9fsState *s, V9fsString *oldpath, V9fsString *newpath) { return s->ops->symlink(&s->ctx, oldpath->data, newpath->data); }
false
qemu
879c28133dfa54b780dffbb29e4dcfc6581f6281
static int v9fs_do_symlink(V9fsState *s, V9fsString *oldpath, V9fsString *newpath) { return s->ops->symlink(&s->ctx, oldpath->data, newpath->data); }
{ "code": [], "line_no": [] }
static int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1, V9fsString *VAR_2) { return VAR_0->ops->symlink(&VAR_0->ctx, VAR_1->data, VAR_2->data); }
[ "static int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1,\nV9fsString *VAR_2)\n{", "return VAR_0->ops->symlink(&VAR_0->ctx, VAR_1->data, VAR_2->data);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
1,551
static int find_pte32 (mmu_ctx_t *ctx, int h, int rw) { return _find_pte(ctx, 0, h, rw); }
false
qemu
b227a8e9aa5f27d29f77ba90d5eb9d0662a1175e
static int find_pte32 (mmu_ctx_t *ctx, int h, int rw) { return _find_pte(ctx, 0, h, rw); }
{ "code": [], "line_no": [] }
static int FUNC_0 (mmu_ctx_t *VAR_0, int VAR_1, int VAR_2) { return _find_pte(VAR_0, 0, VAR_1, VAR_2); }
[ "static int FUNC_0 (mmu_ctx_t *VAR_0, int VAR_1, int VAR_2)\n{", "return _find_pte(VAR_0, 0, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
1,552
static int nic_load(QEMUFile * f, void *opaque, int version_id) { EEPRO100State *s = opaque; int i; int ret; if (version_id > 3) return -EINVAL; if (version_id >= 3) { ret = pci_device_load(&s->dev, f); if (ret < 0) return ret; } if (vers...
false
qemu
3706c43f021918684cf19fe0f6ef8498815e4313
static int nic_load(QEMUFile * f, void *opaque, int version_id) { EEPRO100State *s = opaque; int i; int ret; if (version_id > 3) return -EINVAL; if (version_id >= 3) { ret = pci_device_load(&s->dev, f); if (ret < 0) return ret; } if (vers...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile * VAR_0, void *VAR_1, int VAR_2) { EEPRO100State *s = VAR_1; int VAR_3; int VAR_4; if (VAR_2 > 3) return -EINVAL; if (VAR_2 >= 3) { VAR_4 = pci_device_load(&s->dev, VAR_0); if (VAR_4 < 0) return VAR_4; } if (VAR...
[ "static int FUNC_0(QEMUFile * VAR_0, void *VAR_1, int VAR_2)\n{", "EEPRO100State *s = VAR_1;", "int VAR_3;", "int VAR_4;", "if (VAR_2 > 3)\nreturn -EINVAL;", "if (VAR_2 >= 3) {", "VAR_4 = pci_device_load(&s->dev, VAR_0);", "if (VAR_4 < 0)\nreturn VAR_4;", "}", "if (VAR_2 >= 2) {", "qemu_get_8s(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
1,553
static uint32_t slavio_serial_mem_readb(void *opaque, target_phys_addr_t addr) { SerialState *ser = opaque; ChannelState *s; uint32_t saddr; uint32_t ret; int channel; saddr = (addr & 3) >> 1; channel = (addr & SERIAL_MAXADDR) >> 2; s = &ser->chn[channel]; switch (saddr) ...
false
qemu
b3ceef24f4fee8d5ed96b8c4a5d3e80c0a651f0b
static uint32_t slavio_serial_mem_readb(void *opaque, target_phys_addr_t addr) { SerialState *ser = opaque; ChannelState *s; uint32_t saddr; uint32_t ret; int channel; saddr = (addr & 3) >> 1; channel = (addr & SERIAL_MAXADDR) >> 2; s = &ser->chn[channel]; switch (saddr) ...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr) { SerialState *ser = opaque; ChannelState *s; uint32_t saddr; uint32_t ret; int VAR_0; saddr = (addr & 3) >> 1; VAR_0 = (addr & SERIAL_MAXADDR) >> 2; s = &ser->chn[VAR_0]; switch (saddr) { case 0: SER_DP...
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{", "SerialState *ser = opaque;", "ChannelState *s;", "uint32_t saddr;", "uint32_t ret;", "int VAR_0;", "saddr = (addr & 3) >> 1;", "VAR_0 = (addr & SERIAL_MAXADDR) >> 2;", "s = &ser->chn[VAR_0];", "switch (saddr) {", "case 0:\nSER_...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ...
1,554
int cpu_sparc_handle_mmu_fault (CPUState *env, uint32_t address, int rw, int is_user, int is_softmmu) { int exception = 0; int access_type, access_perms = 0, access_index = 0; uint8_t *pde_ptr; uint32_t pde, virt_addr; int error_code = 0, is_dirty, prot, ret = 0;...
false
qemu
b769d8fef6c06ddb39ef0337882a4f8872b9c2bc
int cpu_sparc_handle_mmu_fault (CPUState *env, uint32_t address, int rw, int is_user, int is_softmmu) { int exception = 0; int access_type, access_perms = 0, access_index = 0; uint8_t *pde_ptr; uint32_t pde, virt_addr; int error_code = 0, is_dirty, prot, ret = 0;...
{ "code": [], "line_no": [] }
int FUNC_0 (CPUState *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5 = 0; int VAR_6, VAR_7 = 0, VAR_8 = 0; uint8_t *pde_ptr; uint32_t pde, virt_addr; int VAR_9 = 0, VAR_10, VAR_11, VAR_12 = 0; unsigned long VAR_13, VAR_14, VAR_15; ...
[ "int FUNC_0 (CPUState *VAR_0, uint32_t VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5 = 0;", "int VAR_6, VAR_7 = 0, VAR_8 = 0;", "uint8_t *pde_ptr;", "uint32_t pde, virt_addr;", "int VAR_9 = 0, VAR_10, VAR_11, VAR_12 = 0;", "unsigned long VAR_13, VAR_14, VAR_15;", "VAR_6 = VAR_0->VAR_6;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
1,555
static void gen_farith (DisasContext *ctx, enum fopcode op1, int ft, int fs, int fd, int cc) { const char *opn = "farith"; const char *condnames[] = { "c.f", "c.un", "c.eq", "c.ueq", "c.olt", "c.ult", ...
false
qemu
7f6613cedc59fa849105668ae971dc31004bca1c
static void gen_farith (DisasContext *ctx, enum fopcode op1, int ft, int fs, int fd, int cc) { const char *opn = "farith"; const char *condnames[] = { "c.f", "c.un", "c.eq", "c.ueq", "c.olt", "c.ult", ...
{ "code": [], "line_no": [] }
static void FUNC_0 (DisasContext *VAR_0, enum fopcode VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { const char *VAR_6 = "farith"; const char *VAR_7[] = { "c.f", "c.un", "c.eq", "c.ueq", "c.olt", "c.u...
[ "static void FUNC_0 (DisasContext *VAR_0, enum fopcode VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "const char *VAR_6 = \"farith\";", "const char *VAR_7[] = {", "\"c.f\",\n\"c.un\",\n\"c.eq\",\n\"c.ueq\",\n\"c.olt\",\n\"c.ult\",\n\"c.ole\",\n\"c.ule\",\n\"c.sf\",\n\"c.ngle\",\n\"c.seq\",\n\"c.ngl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43 ], [ 45 ], [ 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69,...
1,556
static uint64_t ecc_mem_read(void *opaque, target_phys_addr_t addr, unsigned size) { ECCState *s = opaque; uint32_t ret = 0; switch (addr >> 2) { case ECC_MER: ret = s->regs[ECC_MER]; trace_ecc_mem_readl_mer(ret); break; case ECC_MDR: ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t ecc_mem_read(void *opaque, target_phys_addr_t addr, unsigned size) { ECCState *s = opaque; uint32_t ret = 0; switch (addr >> 2) { case ECC_MER: ret = s->regs[ECC_MER]; trace_ecc_mem_readl_mer(ret); break; case ECC_MDR: ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { ECCState *s = opaque; uint32_t ret = 0; switch (addr >> 2) { case ECC_MER: ret = s->regs[ECC_MER]; trace_ecc_mem_readl_mer(ret); break; case ECC_MDR: ...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "ECCState *s = opaque;", "uint32_t ret = 0;", "switch (addr >> 2) {", "case ECC_MER:\nret = s->regs[ECC_MER];", "trace_ecc_mem_readl_mer(ret);", "break;", "case ECC_MDR:\nret = s->regs[ECC_MDR];", "trace_ecc_mem_read...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 49 ...
1,558
static int usb_host_handle_iso_data(USBHostDevice *s, USBPacket *p, int in) { AsyncURB *aurb; int i, j, ret, max_packet_size, offset, len = 0; uint8_t *buf; max_packet_size = usb_ep_get_max_packet_size(&s->dev, p->pid, p->devep); if (max_packet_size == 0) return USB_RET_NAK; ...
false
qemu
079d0b7f1eedcc634c371fe05b617fdc55c8b762
static int usb_host_handle_iso_data(USBHostDevice *s, USBPacket *p, int in) { AsyncURB *aurb; int i, j, ret, max_packet_size, offset, len = 0; uint8_t *buf; max_packet_size = usb_ep_get_max_packet_size(&s->dev, p->pid, p->devep); if (max_packet_size == 0) return USB_RET_NAK; ...
{ "code": [], "line_no": [] }
static int FUNC_0(USBHostDevice *VAR_0, USBPacket *VAR_1, int VAR_2) { AsyncURB *aurb; int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0; uint8_t *buf; VAR_6 = usb_ep_get_max_packet_size(&VAR_0->dev, VAR_1->pid, VAR_1->devep); if (VAR_6 == 0) return USB_RET_NAK; aurb = get_iso...
[ "static int FUNC_0(USBHostDevice *VAR_0, USBPacket *VAR_1, int VAR_2)\n{", "AsyncURB *aurb;", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "uint8_t *buf;", "VAR_6 = usb_ep_get_max_packet_size(&VAR_0->dev, VAR_1->pid, VAR_1->devep);", "if (VAR_6 == 0)\nreturn USB_RET_NAK;", "aurb = get_iso_urb(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53, 55 ...
1,559
static void gen_farith (DisasContext *ctx, uint32_t op1, int ft, int fs, int fd, int cc) { const char *opn = "farith"; const char *condnames[] = { "c.f", "c.un", "c.eq", "c.ueq", "c.olt", "c.ult", ...
false
qemu
007ac6faed12abdd4113e2460ba4464aacb7f4dd
static void gen_farith (DisasContext *ctx, uint32_t op1, int ft, int fs, int fd, int cc) { const char *opn = "farith"; const char *condnames[] = { "c.f", "c.un", "c.eq", "c.ueq", "c.olt", "c.ult", ...
{ "code": [], "line_no": [] }
static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { const char *VAR_6 = "farith"; const char *VAR_7[] = { "c.f", "c.un", "c.eq", "c.ueq", "c.olt", "c.ult",...
[ "static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "const char *VAR_6 = \"farith\";", "const char *VAR_7[] = {", "\"c.f\",\n\"c.un\",\n\"c.eq\",\n\"c.ueq\",\n\"c.olt\",\n\"c.ult\",\n\"c.ole\",\n\"c.ule\",\n\"c.sf\",\n\"c.ngle\",\n\"c.seq\",\n\"c.ngl\",\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43 ], [ 45 ], [ 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69,...
1,560
static void mkv_write_block(AVFormatContext *s, AVIOContext *pb, unsigned int blockid, AVPacket *pkt, int flags) { MatroskaMuxContext *mkv = s->priv_data; AVCodecContext *codec = s->streams[pkt->stream_index]->codec; uint8_t *data = NULL, *side_data = NULL; int offset =...
false
FFmpeg
8f6b919d99687416deaedb2df6b8b5f49645a291
static void mkv_write_block(AVFormatContext *s, AVIOContext *pb, unsigned int blockid, AVPacket *pkt, int flags) { MatroskaMuxContext *mkv = s->priv_data; AVCodecContext *codec = s->streams[pkt->stream_index]->codec; uint8_t *data = NULL, *side_data = NULL; int offset =...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, unsigned int VAR_2, AVPacket *VAR_3, int VAR_4) { MatroskaMuxContext *mkv = VAR_0->priv_data; AVCodecContext *codec = VAR_0->streams[VAR_3->stream_index]->codec; uint8_t *data = NULL, *side_data = NULL; int ...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1,\nunsigned int VAR_2, AVPacket *VAR_3, int VAR_4)\n{", "MatroskaMuxContext *mkv = VAR_0->priv_data;", "AVCodecContext *codec = VAR_0->streams[VAR_3->stream_index]->codec;", "uint8_t *data = NULL, *side_data = NULL;", "int VAR_5 = 0, VAR_6 = 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 31, 33, 35 ], [ 37, 39, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
1,561
static void omap2_mpu_reset(void *opaque) { struct omap_mpu_state_s *mpu = (struct omap_mpu_state_s *) opaque; omap_inth_reset(mpu->ih[0]); omap_dma_reset(mpu->dma); omap_prcm_reset(mpu->prcm); omap_sysctl_reset(mpu->sysc); omap_gp_timer_reset(mpu->gptimer[0]); omap_gp_timer_reset(...
false
qemu
0919ac787641db11024912651f3bc5764d4f1286
static void omap2_mpu_reset(void *opaque) { struct omap_mpu_state_s *mpu = (struct omap_mpu_state_s *) opaque; omap_inth_reset(mpu->ih[0]); omap_dma_reset(mpu->dma); omap_prcm_reset(mpu->prcm); omap_sysctl_reset(mpu->sysc); omap_gp_timer_reset(mpu->gptimer[0]); omap_gp_timer_reset(...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { struct omap_mpu_state_s *VAR_1 = (struct omap_mpu_state_s *) VAR_0; omap_inth_reset(VAR_1->ih[0]); omap_dma_reset(VAR_1->dma); omap_prcm_reset(VAR_1->prcm); omap_sysctl_reset(VAR_1->sysc); omap_gp_timer_reset(VAR_1->gptimer[0]); omap_gp_timer_reset...
[ "static void FUNC_0(void *VAR_0)\n{", "struct omap_mpu_state_s *VAR_1 = (struct omap_mpu_state_s *) VAR_0;", "omap_inth_reset(VAR_1->ih[0]);", "omap_dma_reset(VAR_1->dma);", "omap_prcm_reset(VAR_1->prcm);", "omap_sysctl_reset(VAR_1->sysc);", "omap_gp_timer_reset(VAR_1->gptimer[0]);", "omap_gp_timer_re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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...
1,562
void do_pci_device_hot_remove(Monitor *mon, const QDict *qdict) { pci_device_hot_remove(mon, qdict_get_str(qdict, "pci_addr")); }
false
qemu
79ca616f291124d166ca173e512c4ace1c2fe8b2
void do_pci_device_hot_remove(Monitor *mon, const QDict *qdict) { pci_device_hot_remove(mon, qdict_get_str(qdict, "pci_addr")); }
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { pci_device_hot_remove(VAR_0, qdict_get_str(VAR_1, "pci_addr")); }
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "pci_device_hot_remove(VAR_0, qdict_get_str(VAR_1, \"pci_addr\"));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
1,564
static void register_multipage(AddressSpaceDispatch *d, MemoryRegionSection *section) { hwaddr start_addr = section->offset_within_address_space; uint16_t section_index = phys_section_add(section); uint64_t num_pages = int128_get64(int128_rshift(section->size, ...
false
qemu
53cb28cbfea038f8ad50132dc8a684e638c7d48b
static void register_multipage(AddressSpaceDispatch *d, MemoryRegionSection *section) { hwaddr start_addr = section->offset_within_address_space; uint16_t section_index = phys_section_add(section); uint64_t num_pages = int128_get64(int128_rshift(section->size, ...
{ "code": [], "line_no": [] }
static void FUNC_0(AddressSpaceDispatch *VAR_0, MemoryRegionSection *VAR_1) { hwaddr start_addr = VAR_1->offset_within_address_space; uint16_t section_index = phys_section_add(VAR_1); uint64_t num_pages = int128_get64(int128_rshift(VAR_1->size, ...
[ "static void FUNC_0(AddressSpaceDispatch *VAR_0,\nMemoryRegionSection *VAR_1)\n{", "hwaddr start_addr = VAR_1->offset_within_address_space;", "uint16_t section_index = phys_section_add(VAR_1);", "uint64_t num_pages = int128_get64(int128_rshift(VAR_1->size,\nTARGET_PAGE_BITS));", "assert(num_pages);", "phy...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ] ]
1,566
static void test_visitor_in_errors(TestInputVisitorData *data, const void *unused) { TestStruct *p = NULL; Error *err = NULL; Visitor *v; strList *q = NULL; UserDefTwo *r = NULL; WrapAlternate *s = NULL; v = visitor_input_test_init(data, "{ 'inte...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_visitor_in_errors(TestInputVisitorData *data, const void *unused) { TestStruct *p = NULL; Error *err = NULL; Visitor *v; strList *q = NULL; UserDefTwo *r = NULL; WrapAlternate *s = NULL; v = visitor_input_test_init(data, "{ 'inte...
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { TestStruct *p = NULL; Error *err = NULL; Visitor *v; strList *q = NULL; UserDefTwo *r = NULL; WrapAlternate *s = NULL; v = visitor_input_test_init(VAR_0, "{ 'integer': false, 'b...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "TestStruct *p = NULL;", "Error *err = NULL;", "Visitor *v;", "strList *q = NULL;", "UserDefTwo *r = NULL;", "WrapAlternate *s = NULL;", "v = visitor_input_test_init(VAR_0, \"{ 'integer': false, 'boolean': 'foo', \"", "\"'stri...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
1,567
static void acpi_pcihp_update_hotplug_bus(AcpiPciHpState *s, int bsel) { BusChild *kid, *next; PCIBus *bus = acpi_pcihp_find_hotplug_bus(s, bsel); /* Execute any pending removes during reset */ while (s->acpi_pcihp_pci_status[bsel].down) { acpi_pcihp_eject_slot(s, bsel, s->acpi_pcihp_pci...
false
qemu
5a2223ca26b1a34e131b5b9a63599d9426d2c25c
static void acpi_pcihp_update_hotplug_bus(AcpiPciHpState *s, int bsel) { BusChild *kid, *next; PCIBus *bus = acpi_pcihp_find_hotplug_bus(s, bsel); while (s->acpi_pcihp_pci_status[bsel].down) { acpi_pcihp_eject_slot(s, bsel, s->acpi_pcihp_pci_status[bsel].down); } s->acpi_pci...
{ "code": [], "line_no": [] }
static void FUNC_0(AcpiPciHpState *VAR_0, int VAR_1) { BusChild *kid, *next; PCIBus *bus = acpi_pcihp_find_hotplug_bus(VAR_0, VAR_1); while (VAR_0->acpi_pcihp_pci_status[VAR_1].down) { acpi_pcihp_eject_slot(VAR_0, VAR_1, VAR_0->acpi_pcihp_pci_status[VAR_1].down); } VAR_0->ac...
[ "static void FUNC_0(AcpiPciHpState *VAR_0, int VAR_1)\n{", "BusChild *kid, *next;", "PCIBus *bus = acpi_pcihp_find_hotplug_bus(VAR_0, VAR_1);", "while (VAR_0->acpi_pcihp_pci_status[VAR_1].down) {", "acpi_pcihp_eject_slot(VAR_0, VAR_1, VAR_0->acpi_pcihp_pci_status[VAR_1].down);", "}", "VAR_0->acpi_pcihp_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53...
1,568
static void ahci_idp_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { AHCIState *s = opaque; if (addr == s->idp_offset) { /* index register - mask off reserved bits */ s->idp_index = (uint32_t)val & ((AHCI_MEM_BAR_SIZE - 1) & ~3); ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void ahci_idp_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { AHCIState *s = opaque; if (addr == s->idp_offset) { s->idp_index = (uint32_t)val & ((AHCI_MEM_BAR_SIZE - 1) & ~3); } else if (addr == s->idp_offset + 4) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { AHCIState *s = VAR_0; if (VAR_1 == s->idp_offset) { s->idp_index = (uint32_t)VAR_2 & ((AHCI_MEM_BAR_SIZE - 1) & ~3); } else if (VAR_1 == s->idp_offset + 4) { ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "AHCIState *s = VAR_0;", "if (VAR_1 == s->idp_offset) {", "s->idp_index = (uint32_t)VAR_2 & ((AHCI_MEM_BAR_SIZE - 1) & ~3);", "} else if (VAR_1 == s->idp_offset + 4) {", "ahci_mem_write(VAR_0, s->idp_index, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
1,569
static void nbd_refresh_filename(BlockDriverState *bs, QDict *options) { BDRVNBDState *s = bs->opaque; QDict *opts = qdict_new(); QObject *saddr_qdict; Visitor *ov; const char *host = NULL, *port = NULL, *path = NULL; if (s->saddr->type == SOCKET_ADDRESS_KIND_INET) { const Inet...
false
qemu
9445673ea67c272616b9f718396e267caa6446b7
static void nbd_refresh_filename(BlockDriverState *bs, QDict *options) { BDRVNBDState *s = bs->opaque; QDict *opts = qdict_new(); QObject *saddr_qdict; Visitor *ov; const char *host = NULL, *port = NULL, *path = NULL; if (s->saddr->type == SOCKET_ADDRESS_KIND_INET) { const Inet...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1) { BDRVNBDState *s = VAR_0->opaque; QDict *opts = qdict_new(); QObject *saddr_qdict; Visitor *ov; const char *VAR_2 = NULL, *VAR_3 = NULL, *VAR_4 = NULL; if (s->saddr->type == SOCKET_ADDRESS_KIND_INET) { const InetSocketA...
[ "static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1)\n{", "BDRVNBDState *s = VAR_0->opaque;", "QDict *opts = qdict_new();", "QObject *saddr_qdict;", "Visitor *ov;", "const char *VAR_2 = NULL, *VAR_3 = NULL, *VAR_4 = NULL;", "if (s->saddr->type == SOCKET_ADDRESS_KIND_INET) {", "const InetSocketAd...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43, 45, 47 ], [ 49,...
1,570
static void virtio_balloon_receive_stats(VirtIODevice *vdev, VirtQueue *vq) { VirtIOBalloon *s = VIRTIO_BALLOON(vdev); VirtQueueElement *elem = &s->stats_vq_elem; VirtIOBalloonStat stat; size_t offset = 0; qemu_timeval tv; if (!virtqueue_pop(vq, elem)) { goto out; } ...
false
qemu
51b19ebe4320f3dcd93cea71235c1219318ddfd2
static void virtio_balloon_receive_stats(VirtIODevice *vdev, VirtQueue *vq) { VirtIOBalloon *s = VIRTIO_BALLOON(vdev); VirtQueueElement *elem = &s->stats_vq_elem; VirtIOBalloonStat stat; size_t offset = 0; qemu_timeval tv; if (!virtqueue_pop(vq, elem)) { goto out; } ...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1) { VirtIOBalloon *s = VIRTIO_BALLOON(VAR_0); VirtQueueElement *elem = &s->stats_vq_elem; VirtIOBalloonStat stat; size_t offset = 0; qemu_timeval tv; if (!virtqueue_pop(VAR_1, elem)) { goto out; } r...
[ "static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{", "VirtIOBalloon *s = VIRTIO_BALLOON(VAR_0);", "VirtQueueElement *elem = &s->stats_vq_elem;", "VirtIOBalloonStat stat;", "size_t offset = 0;", "qemu_timeval tv;", "if (!virtqueue_pop(VAR_1, elem)) {", "goto out;", "}", "reset_stats(s);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ...
1,574
ISABus *isa_bus_new(DeviceState *dev) { if (isabus) { fprintf(stderr, "Can't create a second ISA bus\n"); return NULL; } if (NULL == dev) { dev = qdev_create(NULL, "isabus-bridge"); qdev_init(dev); } isabus = FROM_QBUS(ISABus, qbus_create(&isa_bus_info, de...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
ISABus *isa_bus_new(DeviceState *dev) { if (isabus) { fprintf(stderr, "Can't create a second ISA bus\n"); return NULL; } if (NULL == dev) { dev = qdev_create(NULL, "isabus-bridge"); qdev_init(dev); } isabus = FROM_QBUS(ISABus, qbus_create(&isa_bus_info, de...
{ "code": [ " return NULL;", " return NULL;", " qdev_init(dev);", " qdev_init(dev);" ], "line_no": [ 9, 9, 17, 17 ] }
ISABus *FUNC_0(DeviceState *dev) { if (isabus) { fprintf(stderr, "Can't create a second ISA bus\n"); return NULL; } if (NULL == dev) { dev = qdev_create(NULL, "isabus-bridge"); qdev_init(dev); } isabus = FROM_QBUS(ISABus, qbus_create(&isa_bus_info, dev, NU...
[ "ISABus *FUNC_0(DeviceState *dev)\n{", "if (isabus) {", "fprintf(stderr, \"Can't create a second ISA bus\\n\");", "return NULL;", "}", "if (NULL == dev) {", "dev = qdev_create(NULL, \"isabus-bridge\");", "qdev_init(dev);", "}", "isabus = FROM_QBUS(ISABus, qbus_create(&isa_bus_info, dev, NULL));", ...
[ 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ] ]
1,575
void os_set_proc_name(const char *s) { #if defined(PR_SET_NAME) char name[16]; if (!s) return; name[sizeof(name) - 1] = 0; strncpy(name, s, sizeof(name)); /* Could rewrite argv[0] too, but that's a bit more complicated. This simple way is enough for `top'. */ if (prctl(P...
true
qemu
3eadc68ebd174f5bad51fe6e0bbcf6d6651c784c
void os_set_proc_name(const char *s) { #if defined(PR_SET_NAME) char name[16]; if (!s) return; name[sizeof(name) - 1] = 0; strncpy(name, s, sizeof(name)); if (prctl(PR_SET_NAME, name)) { perror("unable to change process name"); exit(1); } #else fp...
{ "code": [ " name[sizeof(name) - 1] = 0;", " strncpy(name, s, sizeof(name));" ], "line_no": [ 13, 15 ] }
void FUNC_0(const char *VAR_0) { #if defined(PR_SET_NAME) char name[16]; if (!VAR_0) return; name[sizeof(name) - 1] = 0; strncpy(name, VAR_0, sizeof(name)); if (prctl(PR_SET_NAME, name)) { perror("unable to change process name"); exit(1); } #else ...
[ "void FUNC_0(const char *VAR_0)\n{", "#if defined(PR_SET_NAME)\nchar name[16];", "if (!VAR_0)\nreturn;", "name[sizeof(name) - 1] = 0;", "strncpy(name, VAR_0, sizeof(name));", "if (prctl(PR_SET_NAME, name)) {", "perror(\"unable to change process name\");", "exit(1);", "}", "#else\nfprintf(stderr, \...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ] ]
1,576
static int oss_poll_out (HWVoiceOut *hw) { OSSVoiceOut *oss = (OSSVoiceOut *) hw; return qemu_set_fd_handler (oss->fd, NULL, oss_helper_poll_out, NULL); }
true
qemu
b027a538c6790bcfc93ef7f4819fe3e581445959
static int oss_poll_out (HWVoiceOut *hw) { OSSVoiceOut *oss = (OSSVoiceOut *) hw; return qemu_set_fd_handler (oss->fd, NULL, oss_helper_poll_out, NULL); }
{ "code": [ "static int oss_poll_out (HWVoiceOut *hw)", " return qemu_set_fd_handler (oss->fd, NULL, oss_helper_poll_out, NULL);" ], "line_no": [ 1, 9 ] }
static int FUNC_0 (HWVoiceOut *VAR_0) { OSSVoiceOut *oss = (OSSVoiceOut *) VAR_0; return qemu_set_fd_handler (oss->fd, NULL, oss_helper_poll_out, NULL); }
[ "static int FUNC_0 (HWVoiceOut *VAR_0)\n{", "OSSVoiceOut *oss = (OSSVoiceOut *) VAR_0;", "return qemu_set_fd_handler (oss->fd, NULL, oss_helper_poll_out, NULL);", "}" ]
[ 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
1,577
void OPPROTO op_addzeo (void) { do_addzeo(); RETURN(); }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
void OPPROTO op_addzeo (void) { do_addzeo(); RETURN(); }
{ "code": [ " RETURN();", "void OPPROTO op_addzeo (void)", " do_addzeo();", " RETURN();" ], "line_no": [ 7, 1, 5, 7 ] }
void VAR_0 op_addzeo (void) { do_addzeo(); RETURN(); }
[ "void VAR_0 op_addzeo (void)\n{", "do_addzeo();", "RETURN();", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,579
static void avc_loopfilter_cb_or_cr_inter_edge_hor_msa(uint8_t *data, uint8_t bs0, uint8_t bs1, uint8_t bs2, uint8_t bs3, uint8_t tc0, uint8_t tc1, ...
false
FFmpeg
bcd7bf7eeb09a395cc01698842d1b8be9af483fc
static void avc_loopfilter_cb_or_cr_inter_edge_hor_msa(uint8_t *data, uint8_t bs0, uint8_t bs1, uint8_t bs2, uint8_t bs3, uint8_t tc0, uint8_t tc1, ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, uint8_t VAR_1, uint8_t VAR_2, uint8_t VAR_3, uint8_t VAR_4, uint8_t VAR_5, uint8_t VAR_6, ...
[ "static void FUNC_0(uint8_t *VAR_0,\nuint8_t VAR_1, uint8_t VAR_2,\nuint8_t VAR_3, uint8_t VAR_4,\nuint8_t VAR_5, uint8_t VAR_6,\nuint8_t VAR_7, uint8_t VAR_8,\nuint8_t VAR_9,\nuint8_t VAR_10,\nuint32_t VAR_11)\n{", "v16u8 alpha, beta;", "v8i16 tmp_vec;", "v8i16 bs = { 0 };", "v8i16 tc = { 0 };", "v16u8 p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
1,580
static int64_t truehd_layout(int chanmap) { int layout = 0, i; for (i = 0; i < 13; i++) layout |= thd_layout[i] * ((chanmap >> i) & 1); return layout; }
false
FFmpeg
cc276c85d15272df6e44fb3252657a43cbd49555
static int64_t truehd_layout(int chanmap) { int layout = 0, i; for (i = 0; i < 13; i++) layout |= thd_layout[i] * ((chanmap >> i) & 1); return layout; }
{ "code": [], "line_no": [] }
static int64_t FUNC_0(int chanmap) { int VAR_0 = 0, VAR_1; for (VAR_1 = 0; VAR_1 < 13; VAR_1++) VAR_0 |= thd_layout[VAR_1] * ((chanmap >> VAR_1) & 1); return VAR_0; }
[ "static int64_t FUNC_0(int chanmap)\n{", "int VAR_0 = 0, VAR_1;", "for (VAR_1 = 0; VAR_1 < 13; VAR_1++)", "VAR_0 |= thd_layout[VAR_1] * ((chanmap >> VAR_1) & 1);", "return VAR_0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
1,581
void copy_picture_field(TInterlaceContext *tinterlace, uint8_t *dst[4], int dst_linesize[4], const uint8_t *src[4], int src_linesize[4], enum AVPixelFormat format, int w, int src_h, int src_field, int interleave, int dst...
false
FFmpeg
3af1060319b46005dbfb3b01f9104539caf30146
void copy_picture_field(TInterlaceContext *tinterlace, uint8_t *dst[4], int dst_linesize[4], const uint8_t *src[4], int src_linesize[4], enum AVPixelFormat format, int w, int src_h, int src_field, int interleave, int dst...
{ "code": [], "line_no": [] }
void FUNC_0(TInterlaceContext *VAR_0, uint8_t *VAR_1[4], int VAR_2[4], const uint8_t *VAR_3[4], int VAR_4[4], enum AVPixelFormat VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10, int...
[ "void FUNC_0(TInterlaceContext *VAR_0,\nuint8_t *VAR_1[4], int VAR_2[4],\nconst uint8_t *VAR_3[4], int VAR_4[4],\nenum AVPixelFormat VAR_5, int VAR_6, int VAR_7,\nint VAR_8, int VAR_9, int VAR_10,\nint VAR_11)\n{", "const AVPixFmtDescriptor *VAR_12 = av_pix_fmt_desc_get(VAR_5);", "int VAR_13 = VAR_12->log2_chro...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49, 51 ], [...
1,582
static double bessel(double x){ double lastv=0; double t, v; int i; static const double inv[100]={ 1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10), 1.0/(11*11), 1.0/(12*12), 1.0/(13*13), 1.0/(14*14), 1.0/(15*15), 1....
false
FFmpeg
a5202bc968cf3ca5b64c623b9271f76e8fa02211
static double bessel(double x){ double lastv=0; double t, v; int i; static const double inv[100]={ 1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10), 1.0/(11*11), 1.0/(12*12), 1.0/(13*13), 1.0/(14*14), 1.0/(15*15), 1....
{ "code": [], "line_no": [] }
static double FUNC_0(double VAR_0){ double VAR_1=0; double VAR_2, VAR_3; int VAR_4; static const double VAR_5[100]={ 1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10), 1.0/(11*11), 1.0/(12*12), 1.0/(13*13), 1.0/(14*14...
[ "static double FUNC_0(double VAR_0){", "double VAR_1=0;", "double VAR_2, VAR_3;", "int VAR_4;", "static const double VAR_5[100]={", "1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10),\n1.0/(11*11), 1.0/(12*12), 1.0/(13*13), 1.0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
1,583
static int check_jni_invocation(void *log_ctx) { int ret = AVERROR_EXTERNAL; void *handle = NULL; void **jni_invocation = NULL; handle = dlopen(NULL, RTLD_LOCAL); if (!handle) { goto done; } jni_invocation = (void **)dlsym(handle, "_ZN13JniInvocation15jni_invocation_E");...
false
FFmpeg
33d69a90085d30af8a292d9364b835a26565d6b9
static int check_jni_invocation(void *log_ctx) { int ret = AVERROR_EXTERNAL; void *handle = NULL; void **jni_invocation = NULL; handle = dlopen(NULL, RTLD_LOCAL); if (!handle) { goto done; } jni_invocation = (void **)dlsym(handle, "_ZN13JniInvocation15jni_invocation_E");...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { int VAR_1 = AVERROR_EXTERNAL; void *VAR_2 = NULL; void **VAR_3 = NULL; VAR_2 = dlopen(NULL, RTLD_LOCAL); if (!VAR_2) { goto done; } VAR_3 = (void **)dlsym(VAR_2, "_ZN13JniInvocation15jni_invocation_E"); if (!VAR_3) { av_log(...
[ "static int FUNC_0(void *VAR_0)\n{", "int VAR_1 = AVERROR_EXTERNAL;", "void *VAR_2 = NULL;", "void **VAR_3 = NULL;", "VAR_2 = dlopen(NULL, RTLD_LOCAL);", "if (!VAR_2) {", "goto done;", "}", "VAR_3 = (void **)dlsym(VAR_2, \"_ZN13JniInvocation15jni_invocation_E\");", "if (!VAR_3) {", "av_log(VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ] ]
1,584
static int gif_image_write_header(uint8_t **bytestream, int width, int height, int loop_count, uint32_t *palette) { int i; unsigned int v; bytestream_put_buffer(bytestream, "GIF", 3); bytestream_put_buffer(bytestream, "89a", 3)...
false
FFmpeg
c33030bd7b81f7ef7d7ff9da9bfa1a3b4bfbafa1
static int gif_image_write_header(uint8_t **bytestream, int width, int height, int loop_count, uint32_t *palette) { int i; unsigned int v; bytestream_put_buffer(bytestream, "GIF", 3); bytestream_put_buffer(bytestream, "89a", 3)...
{ "code": [], "line_no": [] }
static int FUNC_0(uint8_t **VAR_0, int VAR_1, int VAR_2, int VAR_3, uint32_t *VAR_4) { int VAR_5; unsigned int VAR_6; bytestream_put_buffer(VAR_0, "GIF", 3); bytestream_put_buffer(VAR_0, "89a", 3); bytestream_put_le16(VAR_...
[ "static int FUNC_0(uint8_t **VAR_0,\nint VAR_1, int VAR_2, int VAR_3,\nuint32_t *VAR_4)\n{", "int VAR_5;", "unsigned int VAR_6;", "bytestream_put_buffer(VAR_0, \"GIF\", 3);", "bytestream_put_buffer(VAR_0, \"89a\", 3);", "bytestream_put_le16(VAR_0, VAR_1);", "bytestream_put_le16(VAR_0, VAR_2);", "bytes...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
1,585
static int decode_p_mbs(VC9Context *v) { int x, y, current_mb = 0, i; /* MB/Block Position info */ int skip_mb_bit = 0, cbpcy; /* MB/B skip */ int hybrid_pred, ac_pred; /* Prediction types */ int mb_has_coeffs = 1 /* last_flag */, mb_is_intra; int dmv_x, dmv_y; /* Differential MV components *...
false
FFmpeg
e5540b3fd30367ce3cc33b2f34a04b660dbc4b38
static int decode_p_mbs(VC9Context *v) { int x, y, current_mb = 0, i; int skip_mb_bit = 0, cbpcy; int hybrid_pred, ac_pred; int mb_has_coeffs = 1 , mb_is_intra; int dmv_x, dmv_y; int mv_mode_bit = 0; int mqdiff, mquant; int tt_block; static const int size_table[6] =...
{ "code": [], "line_no": [] }
static int FUNC_0(VC9Context *VAR_0) { int VAR_1, VAR_2, VAR_3 = 0, VAR_4; int VAR_5 = 0, VAR_6; int VAR_7, VAR_8; int VAR_9 = 1 , VAR_10; int VAR_11, VAR_12; int VAR_13 = 0; int VAR_14, VAR_15; int VAR_16; static const int VAR_17[6] = { 0, 2, 3, 4, 5, 8 }, ...
[ "static int FUNC_0(VC9Context *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3 = 0, VAR_4;", "int VAR_5 = 0, VAR_6;", "int VAR_7, VAR_8;", "int VAR_9 = 1 , VAR_10;", "int VAR_11, VAR_12;", "int VAR_13 = 0;", "int VAR_14, VAR_15;", "int VAR_16;", "static const int VAR_17[6] = { 0, 2, 3, 4, 5, 8 },", "VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [...
1,586
matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, int64_t pos, uint64_t cluster_time, uint64_t duration, int is_keyframe, int is_bframe) { int res = 0; int track; AVStream *st; AVPacket *pkt; uint8_t *origdata = data; ...
false
FFmpeg
9c3e2f78a04200e604add6139ba6f64078fa2274
matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, int64_t pos, uint64_t cluster_time, uint64_t duration, int is_keyframe, int is_bframe) { int res = 0; int track; AVStream *st; AVPacket *pkt; uint8_t *origdata = data; ...
{ "code": [], "line_no": [] }
FUNC_0(MatroskaDemuxContext *VAR_0, uint8_t *VAR_1, int VAR_2, int64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5, int VAR_6, int VAR_7) { int VAR_8 = 0; int VAR_9; AVStream *st; AVPacket *pkt; uint8_t *origdata = VAR_1; int16_t block_time; uint...
[ "FUNC_0(MatroskaDemuxContext *VAR_0, uint8_t *VAR_1, int VAR_2,\nint64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5,\nint VAR_6, int VAR_7)\n{", "int VAR_8 = 0;", "int VAR_9;", "AVStream *st;", "AVPacket *pkt;", "uint8_t *origdata = VAR_1;", "int16_t block_time;", "uint32_t *lace_size = NULL;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ...
1,587
static void vfio_listener_region_add(MemoryListener *listener, MemoryRegionSection *section) { VFIOContainer *container = container_of(listener, VFIOContainer, iommu_data.listener); hwaddr iova, end; void *vaddr; int...
true
qemu
87ca1f77b1c406137fe36ab73b2dc91fb75f8d0a
static void vfio_listener_region_add(MemoryListener *listener, MemoryRegionSection *section) { VFIOContainer *container = container_of(listener, VFIOContainer, iommu_data.listener); hwaddr iova, end; void *vaddr; int...
{ "code": [ " iommu_data.listener);", " iommu_data.listener);" ], "line_no": [ 9, 9 ] }
static void FUNC_0(MemoryListener *VAR_0, MemoryRegionSection *VAR_1) { VFIOContainer *container = container_of(VAR_0, VFIOContainer, iommu_data.VAR_0); hwaddr iova, end; void *VAR_2; int VAR_3; assert(!memory...
[ "static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1)\n{", "VFIOContainer *container = container_of(VAR_0, VFIOContainer,\niommu_data.VAR_0);", "hwaddr iova, end;", "void *VAR_2;", "int VAR_3;", "assert(!memory_region_is_iommu(VAR_1->mr));", "if (vfio_listener_skipped_section(VAR_1)) {...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25, 27, 29, 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53, 55 ], [...
1,588
static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; int len = 0; uint8_t *buf; uint32_t type; uint32_t ctype; print_atom("hdlr", atom); get_byte(pb); /* version */ get_byte(pb); get_byte(pb); get_b...
true
FFmpeg
fd6e513ee1dc13174256de8adaeeb2c2691eee95
static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; int len = 0; uint8_t *buf; uint32_t type; uint32_t ctype; print_atom("hdlr", atom); get_byte(pb); get_byte(pb); get_byte(pb); get_byte(pb); ...
{ "code": [ " uint8_t *buf;", " AVStream *st = c->fc->streams[c->fc->nb_streams-1];", " uint32_t type;" ], "line_no": [ 9, 5, 11 ] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; int VAR_3 = 0; uint8_t *buf; uint32_t type; uint32_t ctype; print_atom("hdlr", VAR_2); get_byte(VAR_1); get_byte(VAR_1); get_byte(VAR_1...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "int VAR_3 = 0;", "uint8_t *buf;", "uint32_t type;", "uint32_t ctype;", "print_atom(\"hdlr\", VAR_2);", "get_byte(VAR_1);", "get_byte(VAR_1); get_byte(VAR...
[ 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41, 43, 47 ], [ 49, 51 ], [ 53, 55 ], [ 57 ], [...
1,589
static void qemu_rdma_dump_gid(const char *who, struct rdma_cm_id *id) { char sgid[33]; char dgid[33]; inet_ntop(AF_INET6, &id->route.addr.addr.ibaddr.sgid, sgid, sizeof sgid); inet_ntop(AF_INET6, &id->route.addr.addr.ibaddr.dgid, dgid, sizeof dgid); DPRINTF("%s Source GID: %s, Dest GID: %s\n"...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void qemu_rdma_dump_gid(const char *who, struct rdma_cm_id *id) { char sgid[33]; char dgid[33]; inet_ntop(AF_INET6, &id->route.addr.addr.ibaddr.sgid, sgid, sizeof sgid); inet_ntop(AF_INET6, &id->route.addr.addr.ibaddr.dgid, dgid, sizeof dgid); DPRINTF("%s Source GID: %s, Dest GID: %s\n"...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, struct rdma_cm_id *VAR_1) { char VAR_2[33]; char VAR_3[33]; inet_ntop(AF_INET6, &VAR_1->route.addr.addr.ibaddr.VAR_2, VAR_2, sizeof VAR_2); inet_ntop(AF_INET6, &VAR_1->route.addr.addr.ibaddr.VAR_3, VAR_3, sizeof VAR_3); DPRINTF("%s Source GID: %s, Dest GID...
[ "static void FUNC_0(const char *VAR_0, struct rdma_cm_id *VAR_1)\n{", "char VAR_2[33];", "char VAR_3[33];", "inet_ntop(AF_INET6, &VAR_1->route.addr.addr.ibaddr.VAR_2, VAR_2, sizeof VAR_2);", "inet_ntop(AF_INET6, &VAR_1->route.addr.addr.ibaddr.VAR_3, VAR_3, sizeof VAR_3);", "DPRINTF(\"%s Source GID: %s, De...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
1,590
static int v410_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { AVFrame *pic = avctx->coded_frame; uint8_t *src = avpkt->data; uint16_t *y, *u, *v; uint32_t val; int i, j; if (pic->data[0]) avctx->release_buffer(avctx, pic);...
true
FFmpeg
11ca3416f92744f376c08e5f31bcbe5d9b44acb2
static int v410_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { AVFrame *pic = avctx->coded_frame; uint8_t *src = avpkt->data; uint16_t *y, *u, *v; uint32_t val; int i, j; if (pic->data[0]) avctx->release_buffer(avctx, pic);...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { AVFrame *pic = VAR_0->coded_frame; uint8_t *src = VAR_3->VAR_1; uint16_t *y, *u, *v; uint32_t val; int VAR_4, VAR_5; if (pic->VAR_1[0]) VAR_0->release_buffer(VAR_0, pic); ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "AVFrame *pic = VAR_0->coded_frame;", "uint8_t *src = VAR_3->VAR_1;", "uint16_t *y, *u, *v;", "uint32_t val;", "int VAR_4, VAR_5;", "if (pic->VAR_1[0])\nVAR_0->release_buffer(VAR_0, pic);", "pic->reference = 0;",...
[ 0, 0, 0, 0, 0, 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 ],...
1,591
static void host_memory_backend_init(Object *obj) { HostMemoryBackend *backend = MEMORY_BACKEND(obj); backend->merge = qemu_opt_get_bool(qemu_get_machine_opts(), "mem-merge", true); backend->dump = qemu_opt_get_bool(qemu_get_machine_opts(), ...
true
qemu
6b2699672d5b56f8c2902fb9db9879e8cafb2afe
static void host_memory_backend_init(Object *obj) { HostMemoryBackend *backend = MEMORY_BACKEND(obj); backend->merge = qemu_opt_get_bool(qemu_get_machine_opts(), "mem-merge", true); backend->dump = qemu_opt_get_bool(qemu_get_machine_opts(), ...
{ "code": [ " backend->merge = qemu_opt_get_bool(qemu_get_machine_opts(),", " \"mem-merge\", true);", " backend->dump = qemu_opt_get_bool(qemu_get_machine_opts(),", " \"dump-guest-core\", true);" ], "line_no": [ 9...
static void FUNC_0(Object *VAR_0) { HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0); backend->merge = qemu_opt_get_bool(qemu_get_machine_opts(), "mem-merge", true); backend->dump = qemu_opt_get_bool(qemu_get_machine_opts(), ...
[ "static void FUNC_0(Object *VAR_0)\n{", "HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0);", "backend->merge = qemu_opt_get_bool(qemu_get_machine_opts(),\n\"mem-merge\", true);", "backend->dump = qemu_opt_get_bool(qemu_get_machine_opts(),\n\"dump-guest-core\", true);", "backend->prealloc = mem_prealloc;",...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 21, 23, 25 ], [ 27, 29, 31 ], [ 33, 35, 37 ], [ 39, 41, 43 ], [ 45, 47, 49 ], [ 51, 53, 55, 57 ], [ 59 ] ]
1,592
static void adaptive_gain_control(float *out, const float *in, const float *speech_synth, int size, float alpha, float *gain_mem) { int i; float speech_energy = 0.0, postfilter_energy = 0.0, gain_scale_factor; float mem = *gain_mem; ...
true
FFmpeg
33d7f822f8ed2d1870babc1d04d4d48cf8b6f240
static void adaptive_gain_control(float *out, const float *in, const float *speech_synth, int size, float alpha, float *gain_mem) { int i; float speech_energy = 0.0, postfilter_energy = 0.0, gain_scale_factor; float mem = *gain_mem; ...
{ "code": [ " gain_scale_factor = (1.0 - alpha) * speech_energy / postfilter_energy;" ], "line_no": [ 25 ] }
static void FUNC_0(float *VAR_0, const float *VAR_1, const float *VAR_2, int VAR_3, float VAR_4, float *VAR_5) { int VAR_6; float VAR_7 = 0.0, VAR_8 = 0.0, VAR_9; float VAR_10 = *VAR_5; for (VAR_6 = 0; VAR_6 < VAR_3; VAR_6++) {...
[ "static void FUNC_0(float *VAR_0, const float *VAR_1,\nconst float *VAR_2,\nint VAR_3, float VAR_4, float *VAR_5)\n{", "int VAR_6;", "float VAR_7 = 0.0, VAR_8 = 0.0, VAR_9;", "float VAR_10 = *VAR_5;", "for (VAR_6 = 0; VAR_6 < VAR_3; VAR_6++) {", "VAR_7 += fabsf(VAR_2[VAR_6]);", "VAR_8 += fabsf(VAR_1...
[ 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 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
1,593
void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL pqxl, int group_id) { uint64_t phys = le64_to_cpu(pqxl); uint32_t slot = (phys >> (64 - 8)) & 0xff; uint64_t offset = phys & 0xffffffffffff; switch (group_id) { case MEMSLOT_GROUP_HOST: return (void *)(intptr_t)offset; cas...
true
qemu
4b635c59b04cae594f49d9aa45d31b3f318def8f
void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL pqxl, int group_id) { uint64_t phys = le64_to_cpu(pqxl); uint32_t slot = (phys >> (64 - 8)) & 0xff; uint64_t offset = phys & 0xffffffffffff; switch (group_id) { case MEMSLOT_GROUP_HOST: return (void *)(intptr_t)offset; cas...
{ "code": [ " PANIC_ON(slot >= NUM_MEMSLOTS);", " PANIC_ON(!qxl->guest_slots[slot].active);", " PANIC_ON(offset < qxl->guest_slots[slot].delta);", " PANIC_ON(offset > qxl->guest_slots[slot].size)", " default:", " PANIC_ON(1);" ], "line_no": [ 21, ...
void *FUNC_0(PCIQXLDevice *VAR_0, QXLPHYSICAL VAR_1, int VAR_2) { uint64_t phys = le64_to_cpu(VAR_1); uint32_t slot = (phys >> (64 - 8)) & 0xff; uint64_t offset = phys & 0xffffffffffff; switch (VAR_2) { case MEMSLOT_GROUP_HOST: return (void *)(intptr_t)offset; case MEMSLOT...
[ "void *FUNC_0(PCIQXLDevice *VAR_0, QXLPHYSICAL VAR_1, int VAR_2)\n{", "uint64_t phys = le64_to_cpu(VAR_1);", "uint32_t slot = (phys >> (64 - 8)) & 0xff;", "uint64_t offset = phys & 0xffffffffffff;", "switch (VAR_2) {", "case MEMSLOT_GROUP_HOST:\nreturn (void *)(intptr_t)offset;", "case MEMSLOT_GROU...
[ 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ] ]
1,594
static void ps_add_squares_c(INTFLOAT *dst, const INTFLOAT (*src)[2], int n) { int i; for (i = 0; i < n; i++) dst[i] += AAC_MADD28(src[i][0], src[i][0], src[i][1], src[i][1]); }
true
FFmpeg
0181b202cc42133eacd74bad33745cf1ba699e6b
static void ps_add_squares_c(INTFLOAT *dst, const INTFLOAT (*src)[2], int n) { int i; for (i = 0; i < n; i++) dst[i] += AAC_MADD28(src[i][0], src[i][0], src[i][1], src[i][1]); }
{ "code": [ " dst[i] += AAC_MADD28(src[i][0], src[i][0], src[i][1], src[i][1]);" ], "line_no": [ 9 ] }
static void FUNC_0(VAR_1 *VAR_0, const VAR_1 (*src)[2], int VAR_2) { int VAR_3; for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) VAR_0[VAR_3] += AAC_MADD28(src[VAR_3][0], src[VAR_3][0], src[VAR_3][1], src[VAR_3][1]); }
[ "static void FUNC_0(VAR_1 *VAR_0, const VAR_1 (*src)[2], int VAR_2)\n{", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++)", "VAR_0[VAR_3] += AAC_MADD28(src[VAR_3][0], src[VAR_3][0], src[VAR_3][1], src[VAR_3][1]);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
1,595
static void rtas_ibm_change_msi(PowerPCCPU *cpu, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { uint32_t config_addr = rtas_ld(args, 0); uint64_...
true
qemu
ce266b75febdeee5b91ab630a7158ddff3e002fb
static void rtas_ibm_change_msi(PowerPCCPU *cpu, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { uint32_t config_addr = rtas_ld(args, 0); uint64_...
{ "code": [ " msi = (spapr_pci_msi *) g_hash_table_lookup(phb->msi, &config_addr);" ], "line_no": [ 87 ] }
static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1, uint32_t VAR_2, uint32_t VAR_3, target_ulong VAR_4, uint32_t VAR_5, target_ulong VAR_6) { uint32_t config_addr = rtas_ld(VAR_4, 0); uint64_t buid ...
[ "static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4, uint32_t VAR_5,\ntarget_ulong VAR_6)\n{", "uint32_t config_addr = rtas_ld(VAR_4, 0);", "uint64_t buid = rtas_ldq(VAR_4, 1);", "unsigned int VAR_7 = rtas_ld(VAR_4, 3);", "unsigned int VAR_8 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
1,596
static inline TCGv gen_extend(TCGv val, int opsize, int sign) { TCGv tmp; switch (opsize) { case OS_BYTE: tmp = tcg_temp_new(); if (sign) tcg_gen_ext8s_i32(tmp, val); else tcg_gen_ext8u_i32(tmp, val); break; case OS_WORD: tmp ...
true
qemu
7372c2b926200db295412efbb53f93773b7f1754
static inline TCGv gen_extend(TCGv val, int opsize, int sign) { TCGv tmp; switch (opsize) { case OS_BYTE: tmp = tcg_temp_new(); if (sign) tcg_gen_ext8s_i32(tmp, val); else tcg_gen_ext8u_i32(tmp, val); break; case OS_WORD: tmp ...
{ "code": [ " qemu_assert(0, \"Bad operand size\");", " break;", " qemu_assert(0, \"Bad operand size\");" ], "line_no": [ 49, 23, 49 ] }
static inline TCGv FUNC_0(TCGv val, int opsize, int sign) { TCGv tmp; switch (opsize) { case OS_BYTE: tmp = tcg_temp_new(); if (sign) tcg_gen_ext8s_i32(tmp, val); else tcg_gen_ext8u_i32(tmp, val); break; case OS_WORD: tmp = tc...
[ "static inline TCGv FUNC_0(TCGv val, int opsize, int sign)\n{", "TCGv tmp;", "switch (opsize) {", "case OS_BYTE:\ntmp = tcg_temp_new();", "if (sign)\ntcg_gen_ext8s_i32(tmp, val);", "else\ntcg_gen_ext8u_i32(tmp, val);", "break;", "case OS_WORD:\ntmp = tcg_temp_new();", "if (sign)\ntcg_gen_ext16s_i32(...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 47, 49 ], [ 51 ], ...