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
2,558
static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op) { static const TCGTargetOpDef r = { .args_ct_str = { "r" } }; static const TCGTargetOpDef r_r = { .args_ct_str = { "r", "r" } }; static const TCGTargetOpDef r_L = { .args_ct_str = { "r", "L" } }; static const TCGTargetOpDef L_L = { .args_...
false
qemu
ba18b07dc689a21caa31feee922c165e90b4c28b
static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op) { static const TCGTargetOpDef r = { .args_ct_str = { "r" } }; static const TCGTargetOpDef r_r = { .args_ct_str = { "r", "r" } }; static const TCGTargetOpDef r_L = { .args_ct_str = { "r", "L" } }; static const TCGTargetOpDef L_L = { .args_...
{ "code": [], "line_no": [] }
static const TCGTargetOpDef *FUNC_0(TCGOpcode op) { static const TCGTargetOpDef VAR_0 = { .args_ct_str = { "VAR_0" } }; static const TCGTargetOpDef VAR_1 = { .args_ct_str = { "VAR_0", "VAR_0" } }; static const TCGTargetOpDef VAR_2 = { .args_ct_str = { "VAR_0", "L" } }; static const TCGTargetOpDef V...
[ "static const TCGTargetOpDef *FUNC_0(TCGOpcode op)\n{", "static const TCGTargetOpDef VAR_0 = { .args_ct_str = { \"VAR_0\" } };", "static const TCGTargetOpDef VAR_1 = { .args_ct_str = { \"VAR_0\", \"VAR_0\" } };", "static const TCGTargetOpDef VAR_2 = { .args_ct_str = { \"VAR_0\", \"L\" } };", "static const T...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 41, 43, 45, 47, 49, 51,...
2,562
void portio_list_del(PortioList *piolist) { MemoryRegion *mr, *alias; unsigned i; for (i = 0; i < piolist->nr; ++i) { mr = piolist->regions[i]; alias = piolist->aliases[i]; memory_region_del_subregion(piolist->address_space, alias); memory_region_destroy(alias); ...
false
qemu
b40acf99bef69fa8ab0f9092ff162fde945eec12
void portio_list_del(PortioList *piolist) { MemoryRegion *mr, *alias; unsigned i; for (i = 0; i < piolist->nr; ++i) { mr = piolist->regions[i]; alias = piolist->aliases[i]; memory_region_del_subregion(piolist->address_space, alias); memory_region_destroy(alias); ...
{ "code": [], "line_no": [] }
void FUNC_0(PortioList *VAR_0) { MemoryRegion *mr, *alias; unsigned VAR_1; for (VAR_1 = 0; VAR_1 < VAR_0->nr; ++VAR_1) { mr = VAR_0->regions[VAR_1]; alias = VAR_0->aliases[VAR_1]; memory_region_del_subregion(VAR_0->address_space, alias); memory_region_destroy(alias)...
[ "void FUNC_0(PortioList *VAR_0)\n{", "MemoryRegion *mr, *alias;", "unsigned VAR_1;", "for (VAR_1 = 0; VAR_1 < VAR_0->nr; ++VAR_1) {", "mr = VAR_0->regions[VAR_1];", "alias = VAR_0->aliases[VAR_1];", "memory_region_del_subregion(VAR_0->address_space, alias);", "memory_region_destroy(alias);", "memory...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
2,563
static void set_gsi(KVMState *s, unsigned int gsi) { assert(gsi < s->max_gsi); s->used_gsi_bitmap[gsi / 32] |= 1U << (gsi % 32); }
false
qemu
4e2e4e6355959a1af011167b0db5ac7ffd3adf94
static void set_gsi(KVMState *s, unsigned int gsi) { assert(gsi < s->max_gsi); s->used_gsi_bitmap[gsi / 32] |= 1U << (gsi % 32); }
{ "code": [], "line_no": [] }
static void FUNC_0(KVMState *VAR_0, unsigned int VAR_1) { assert(VAR_1 < VAR_0->max_gsi); VAR_0->used_gsi_bitmap[VAR_1 / 32] |= 1U << (VAR_1 % 32); }
[ "static void FUNC_0(KVMState *VAR_0, unsigned int VAR_1)\n{", "assert(VAR_1 < VAR_0->max_gsi);", "VAR_0->used_gsi_bitmap[VAR_1 / 32] |= 1U << (VAR_1 % 32);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
2,565
void arm_cpu_do_interrupt(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); CPUARMState *env = &cpu->env; uint32_t addr; uint32_t mask; int new_mode; uint32_t offset; uint32_t moe; assert(!IS_M(env)); arm_log_exception(cs->exception_index); if (arm_is_psci_call(cpu, cs-...
false
qemu
88ca1c2d70523486a952065f3ed7b8fc823b5863
void arm_cpu_do_interrupt(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); CPUARMState *env = &cpu->env; uint32_t addr; uint32_t mask; int new_mode; uint32_t offset; uint32_t moe; assert(!IS_M(env)); arm_log_exception(cs->exception_index); if (arm_is_psci_call(cpu, cs-...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0) { ARMCPU *cpu = ARM_CPU(VAR_0); CPUARMState *env = &cpu->env; uint32_t addr; uint32_t mask; int VAR_1; uint32_t offset; uint32_t moe; assert(!IS_M(env)); arm_log_exception(VAR_0->exception_index); if (arm_is_psci_call(cpu, VAR_0->exce...
[ "void FUNC_0(CPUState *VAR_0)\n{", "ARMCPU *cpu = ARM_CPU(VAR_0);", "CPUARMState *env = &cpu->env;", "uint32_t addr;", "uint32_t mask;", "int VAR_1;", "uint32_t offset;", "uint32_t moe;", "assert(!IS_M(env));", "arm_log_exception(VAR_0->exception_index);", "if (arm_is_psci_call(cpu, VAR_0->excep...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45, 47, 49 ], [ 51 ], [ 53,...
2,566
static void fdt_add_gic_node(VirtBoardInfo *vbi) { vbi->gic_phandle = qemu_fdt_alloc_phandle(vbi->fdt); qemu_fdt_setprop_cell(vbi->fdt, "/", "interrupt-parent", vbi->gic_phandle); qemu_fdt_add_subnode(vbi->fdt, "/intc"); /* 'cortex-a15-gic' means 'GIC v2' */ qemu_fdt_setprop_string(vbi->fdt,...
false
qemu
b92ad3949bc9cacd1652b4e07e7f6003b9e512af
static void fdt_add_gic_node(VirtBoardInfo *vbi) { vbi->gic_phandle = qemu_fdt_alloc_phandle(vbi->fdt); qemu_fdt_setprop_cell(vbi->fdt, "/", "interrupt-parent", vbi->gic_phandle); qemu_fdt_add_subnode(vbi->fdt, "/intc"); qemu_fdt_setprop_string(vbi->fdt, "/intc", "compatible", ...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtBoardInfo *VAR_0) { VAR_0->gic_phandle = qemu_fdt_alloc_phandle(VAR_0->fdt); qemu_fdt_setprop_cell(VAR_0->fdt, "/", "interrupt-parent", VAR_0->gic_phandle); qemu_fdt_add_subnode(VAR_0->fdt, "/intc"); qemu_fdt_setprop_string(VAR_0->fdt, "/intc", "compatible", ...
[ "static void FUNC_0(VirtBoardInfo *VAR_0)\n{", "VAR_0->gic_phandle = qemu_fdt_alloc_phandle(VAR_0->fdt);", "qemu_fdt_setprop_cell(VAR_0->fdt, \"/\", \"interrupt-parent\", VAR_0->gic_phandle);", "qemu_fdt_add_subnode(VAR_0->fdt, \"/intc\");", "qemu_fdt_setprop_string(VAR_0->fdt, \"/intc\", \"compatible\",\n\...
[ 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 ] ]
2,567
static int sad_hpel_motion_search(MpegEncContext * s, int *mx_ptr, int *my_ptr, int dmin, int src_index, int ref_index, int size, int h) { MotionEstContext * const c= &s->me; const int penalty_factor= c->...
false
FFmpeg
ac78014f0b1f219a596d3c0cd803cf6b84191886
static int sad_hpel_motion_search(MpegEncContext * s, int *mx_ptr, int *my_ptr, int dmin, int src_index, int ref_index, int size, int h) { MotionEstContext * const c= &s->me; const int penalty_factor= c->...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext * VAR_0, int *VAR_1, int *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { MotionEstContext * const c= &VAR_0->me; const int VAR_8= c->sub_penalty_factor; ...
[ "static int FUNC_0(MpegEncContext * VAR_0,\nint *VAR_1, int *VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6, int VAR_7)\n{", "MotionEstContext * const c= &VAR_0->me;", "const int VAR_8= c->sub_penalty_factor;", "int VAR_9, VAR_10, VAR_11;", "uint8_t *pix, *ptr;", "int VAR_12= c->VAR_12;", "LOAD_COM...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 57,...
2,568
int kvm_arch_on_sigbus_vcpu(CPUState *env, int code, void *addr) { #ifdef KVM_CAP_MCE void *vaddr; ram_addr_t ram_addr; target_phys_addr_t paddr; if ((env->mcg_cap & MCG_SER_P) && addr && (code == BUS_MCEERR_AR || code == BUS_MCEERR_AO)) { vaddr = (void *)addr; ...
false
qemu
c34d440a728fd3b5099d11dec122d440ef092c23
int kvm_arch_on_sigbus_vcpu(CPUState *env, int code, void *addr) { #ifdef KVM_CAP_MCE void *vaddr; ram_addr_t ram_addr; target_phys_addr_t paddr; if ((env->mcg_cap & MCG_SER_P) && addr && (code == BUS_MCEERR_AR || code == BUS_MCEERR_AO)) { vaddr = (void *)addr; ...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0, int VAR_1, void *VAR_2) { #ifdef KVM_CAP_MCE void *vaddr; ram_addr_t ram_addr; target_phys_addr_t paddr; if ((VAR_0->mcg_cap & MCG_SER_P) && VAR_2 && (VAR_1 == BUS_MCEERR_AR || VAR_1 == BUS_MCEERR_AO)) { vaddr = (void *)VAR_2; i...
[ "int FUNC_0(CPUState *VAR_0, int VAR_1, void *VAR_2)\n{", "#ifdef KVM_CAP_MCE\nvoid *vaddr;", "ram_addr_t ram_addr;", "target_phys_addr_t paddr;", "if ((VAR_0->mcg_cap & MCG_SER_P) && VAR_2\n&& (VAR_1 == BUS_MCEERR_AR\n|| VAR_1 == BUS_MCEERR_AO)) {", "vaddr = (void *)VAR_2;", "if (qemu_ram_addr_from_hos...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 15, 17, 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53 ], [...
2,569
void ff_flac_compute_autocorr(const int32_t *data, int len, int lag, double *autoc) { int i, j; double tmp[len + lag + 1]; double *data1= tmp + lag; apply_welch_window(data, len, data1); for(j=0; j<lag; j++) data1[j-lag]= 0.0; data1[len] = 0.0; ...
false
FFmpeg
0aed5e9fb895a31c43ff6ab4edfecb5be372f704
void ff_flac_compute_autocorr(const int32_t *data, int len, int lag, double *autoc) { int i, j; double tmp[len + lag + 1]; double *data1= tmp + lag; apply_welch_window(data, len, data1); for(j=0; j<lag; j++) data1[j-lag]= 0.0; data1[len] = 0.0; ...
{ "code": [], "line_no": [] }
void FUNC_0(const int32_t *VAR_0, int VAR_1, int VAR_2, double *VAR_3) { int VAR_4, VAR_5; double VAR_6[VAR_1 + VAR_2 + 1]; double *VAR_7= VAR_6 + VAR_2; apply_welch_window(VAR_0, VAR_1, VAR_7); for(VAR_5=0; VAR_5<VAR_2; VAR_5++) VAR_7[VAR_5-VAR_2]= ...
[ "void FUNC_0(const int32_t *VAR_0, int VAR_1, int VAR_2,\ndouble *VAR_3)\n{", "int VAR_4, VAR_5;", "double VAR_6[VAR_1 + VAR_2 + 1];", "double *VAR_7= VAR_6 + VAR_2;", "apply_welch_window(VAR_0, VAR_1, VAR_7);", "for(VAR_5=0; VAR_5<VAR_2; VAR_5++)", "VAR_7[VAR_5-VAR_2]= 0.0;", "VAR_7[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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
2,570
static unsigned int rms(const int *data) { int x; unsigned int res = 0x10000; int b = 0; for (x=0; x<10; x++) { res = (((0x1000000 - (*data) * (*data)) >> 12) * res) >> 12; if (res == 0) return 0; while (res <= 0x3fff) { b++; r...
false
FFmpeg
b0068d75ebdb388c90b9d2c9833f17d12f323717
static unsigned int rms(const int *data) { int x; unsigned int res = 0x10000; int b = 0; for (x=0; x<10; x++) { res = (((0x1000000 - (*data) * (*data)) >> 12) * res) >> 12; if (res == 0) return 0; while (res <= 0x3fff) { b++; r...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(const int *VAR_0) { int VAR_1; unsigned int VAR_2 = 0x10000; int VAR_3 = 0; for (VAR_1=0; VAR_1<10; VAR_1++) { VAR_2 = (((0x1000000 - (*VAR_0) * (*VAR_0)) >> 12) * VAR_2) >> 12; if (VAR_2 == 0) return 0; while (VAR_2 <= 0x3fff...
[ "static unsigned int FUNC_0(const int *VAR_0)\n{", "int VAR_1;", "unsigned int VAR_2 = 0x10000;", "int VAR_3 = 0;", "for (VAR_1=0; VAR_1<10; VAR_1++) {", "VAR_2 = (((0x1000000 - (*VAR_0) * (*VAR_0)) >> 12) * VAR_2) >> 12;", "if (VAR_2 == 0)\nreturn 0;", "while (VAR_2 <= 0x3fff) {", "VAR_3++;", "VA...
[ 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ] ]
2,571
void remove_migration_state_change_notifier(Notifier *notify) { notifier_remove(notify); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
void remove_migration_state_change_notifier(Notifier *notify) { notifier_remove(notify); }
{ "code": [], "line_no": [] }
void FUNC_0(Notifier *VAR_0) { notifier_remove(VAR_0); }
[ "void FUNC_0(Notifier *VAR_0)\n{", "notifier_remove(VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,572
static void mm_decode_inter(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size) { const int data_ptr = 2 + AV_RL16(&buf[0]); int d, r, y; d = data_ptr; r = 2; y = 0; while(r < data_ptr) { int i, j; int length = buf[r] & 0x7f; int x = buf[r+1] + ((buf[r...
true
FFmpeg
94e58e5770d2a2295a13240f51ddba583e6d5360
static void mm_decode_inter(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size) { const int data_ptr = 2 + AV_RL16(&buf[0]); int d, r, y; d = data_ptr; r = 2; y = 0; while(r < data_ptr) { int i, j; int length = buf[r] & 0x7f; int x = buf[r+1] + ((buf[r...
{ "code": [], "line_no": [] }
static void FUNC_0(MmContext * VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4) { const int VAR_5 = 2 + AV_RL16(&VAR_3[0]); int VAR_6, VAR_7, VAR_8; VAR_6 = VAR_5; VAR_7 = 2; VAR_8 = 0; while(VAR_7 < VAR_5) { int VAR_9, VAR_10; int VAR_11 = VAR_3[VAR_7] & 0x7f; int V...
[ "static void FUNC_0(MmContext * VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4)\n{", "const int VAR_5 = 2 + AV_RL16(&VAR_3[0]);", "int VAR_6, VAR_7, VAR_8;", "VAR_6 = VAR_5; VAR_7 = 2; VAR_8 = 0;", "while(VAR_7 < VAR_5) {", "int VAR_9, VAR_10;", "int VAR_11 = VAR_3[VAR_7] & 0x7f;", "int ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, ...
2,573
static void test_tco_ticks_counter(void) { TestData d; uint16_t ticks = TCO_SECS_TO_TICKS(8); uint16_t rld; d.args = NULL; d.noreboot = true; test_init(&d); stop_tco(&d); clear_tco_status(&d); reset_on_second_timeout(false); set_tco_timeout(&d, ticks); load_tc...
true
qemu
34779e8c3991f7fcd74b2045478abcef67dbeb15
static void test_tco_ticks_counter(void) { TestData d; uint16_t ticks = TCO_SECS_TO_TICKS(8); uint16_t rld; d.args = NULL; d.noreboot = true; test_init(&d); stop_tco(&d); clear_tco_status(&d); reset_on_second_timeout(false); set_tco_timeout(&d, ticks); load_tc...
{ "code": [ " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();" ], "line_no": [ 51, 51, 51,...
static void FUNC_0(void) { TestData d; uint16_t ticks = TCO_SECS_TO_TICKS(8); uint16_t rld; d.args = NULL; d.noreboot = true; test_init(&d); stop_tco(&d); clear_tco_status(&d); reset_on_second_timeout(false); set_tco_timeout(&d, ticks); load_tco(&d); star...
[ "static void FUNC_0(void)\n{", "TestData d;", "uint16_t ticks = TCO_SECS_TO_TICKS(8);", "uint16_t rld;", "d.args = NULL;", "d.noreboot = true;", "test_init(&d);", "stop_tco(&d);", "clear_tco_status(&d);", "reset_on_second_timeout(false);", "set_tco_timeout(&d, ticks);", "load_tco(&d);", "sta...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
2,574
static void decode_mb(MpegEncContext *s, int ref) { s->dest[0] = s->current_picture.f.data[0] + (s->mb_y * 16 * s->linesize) + s->mb_x * 16; s->dest[1] = s->current_picture.f.data[1] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift); ...
true
FFmpeg
e8fed4d3314cdf0cf4134844a1acf5798b205cb8
static void decode_mb(MpegEncContext *s, int ref) { s->dest[0] = s->current_picture.f.data[0] + (s->mb_y * 16 * s->linesize) + s->mb_x * 16; s->dest[1] = s->current_picture.f.data[1] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift); ...
{ "code": [], "line_no": [] }
static void FUNC_0(MpegEncContext *VAR_0, int VAR_1) { VAR_0->dest[0] = VAR_0->current_picture.f.data[0] + (VAR_0->mb_y * 16 * VAR_0->linesize) + VAR_0->mb_x * 16; VAR_0->dest[1] = VAR_0->current_picture.f.data[1] + (VAR_0->mb_y * (16 >> VAR_0->chroma_y_shift) * VAR_0->uvlinesize) +...
[ "static void FUNC_0(MpegEncContext *VAR_0, int VAR_1)\n{", "VAR_0->dest[0] = VAR_0->current_picture.f.data[0] + (VAR_0->mb_y * 16 * VAR_0->linesize) + VAR_0->mb_x * 16;", "VAR_0->dest[1] = VAR_0->current_picture.f.data[1] + (VAR_0->mb_y * (16 >> VAR_0->chroma_y_shift) * VAR_0->uvlinesi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 56, 58 ], [ 60 ...
2,575
static int alloc_cluster_link_l2(BlockDriverState *bs, uint64_t cluster_offset, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int i, j = 0, l2_index, ret; uint64_t *old_cluster, start_sect, l2_offset, *l2_table; if (m->nb_clusters == 0) return 0; old_cluster = qemu_mall...
true
qemu
641636d19e3d8eeb8fac31e20641eaf33befd6e7
static int alloc_cluster_link_l2(BlockDriverState *bs, uint64_t cluster_offset, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int i, j = 0, l2_index, ret; uint64_t *old_cluster, start_sect, l2_offset, *l2_table; if (m->nb_clusters == 0) return 0; old_cluster = qemu_mall...
{ "code": [ " free_any_clusters(bs, old_cluster[i], 1);" ], "line_no": [ 95 ] }
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, QCowL2Meta *VAR_2) { BDRVQcowState *s = VAR_0->opaque; int VAR_3, VAR_4 = 0, VAR_5, VAR_6; uint64_t *old_cluster, start_sect, l2_offset, *l2_table; if (VAR_2->nb_clusters == 0) return 0; old_cluster = qemu_malloc(...
[ "static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nQCowL2Meta *VAR_2)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_3, VAR_4 = 0, VAR_5, VAR_6;", "uint64_t *old_cluster, start_sect, l2_offset, *l2_table;", "if (VAR_2->nb_clusters == 0)\nreturn 0;", "old_cluster = qemu_malloc(VAR_2->nb_clust...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ], [ 53 ], [ 57 ], [...
2,576
int av_set_options_string(void *ctx, const char *opts, const char *key_val_sep, const char *pairs_sep) { int ret, count = 0; while (*opts) { if ((ret = parse_key_value_pair(ctx, &opts, key_val_sep, pairs_sep)) < 0) return ret; count++; ...
true
FFmpeg
141f03541b39e131a5e8aa776a88abe77b70618e
int av_set_options_string(void *ctx, const char *opts, const char *key_val_sep, const char *pairs_sep) { int ret, count = 0; while (*opts) { if ((ret = parse_key_value_pair(ctx, &opts, key_val_sep, pairs_sep)) < 0) return ret; count++; ...
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3) { int VAR_4, VAR_5 = 0; while (*VAR_1) { if ((VAR_4 = parse_key_value_pair(VAR_0, &VAR_1, VAR_2, VAR_3)) < 0) return VAR_4; VAR_5++; if (*VAR_1) ...
[ "int FUNC_0(void *VAR_0, const char *VAR_1,\nconst char *VAR_2, const char *VAR_3)\n{", "int VAR_4, VAR_5 = 0;", "while (*VAR_1) {", "if ((VAR_4 = parse_key_value_pair(VAR_0, &VAR_1, VAR_2, VAR_3)) < 0)\nreturn VAR_4;", "VAR_5++;", "if (*VAR_1)\nVAR_1++;", "}", "return VAR_5;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ] ]
2,577
static int local_chmod(FsContext *fs_ctx, V9fsPath *fs_path, FsCred *credp) { char *buffer; int ret = -1; char *path = fs_path->data; if (fs_ctx->export_flags & V9FS_SM_MAPPED) { buffer = rpath(fs_ctx, path); ret = local_set_xattr(buffer, credp); g_free(buffer); } ...
true
qemu
e3187a45dd02a7490f9191c16527dc28a4ba45b9
static int local_chmod(FsContext *fs_ctx, V9fsPath *fs_path, FsCred *credp) { char *buffer; int ret = -1; char *path = fs_path->data; if (fs_ctx->export_flags & V9FS_SM_MAPPED) { buffer = rpath(fs_ctx, path); ret = local_set_xattr(buffer, credp); g_free(buffer); } ...
{ "code": [ " char *buffer;", " char *path = fs_path->data;", " buffer = rpath(fs_ctx, path);", " ret = local_set_xattr(buffer, credp);", " g_free(buffer);", " return local_set_mapped_file_attr(fs_ctx, path, credp);", " } else if ((fs_ctx->export_flags ...
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, FsCred *VAR_2) { char *VAR_3; int VAR_4 = -1; char *VAR_5 = VAR_1->data; if (VAR_0->export_flags & V9FS_SM_MAPPED) { VAR_3 = rpath(VAR_0, VAR_5); VAR_4 = local_set_xattr(VAR_3, VAR_2); g_free(VAR_3); } else if (V...
[ "static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, FsCred *VAR_2)\n{", "char *VAR_3;", "int VAR_4 = -1;", "char *VAR_5 = VAR_1->data;", "if (VAR_0->export_flags & V9FS_SM_MAPPED) {", "VAR_3 = rpath(VAR_0, VAR_5);", "VAR_4 = local_set_xattr(VAR_3, VAR_2);", "g_free(VAR_3);", "} else if (VAR_0->exp...
[ 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
2,578
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { DPCMContext *s = avctx->priv_data; int in, out = 0; int predictor[2]; int channel_number = 0; short *output_samples = data; ...
true
FFmpeg
a2085a7e9d83d99aca58bfb385f6db1afa5673dd
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { DPCMContext *s = avctx->priv_data; int in, out = 0; int predictor[2]; int channel_number = 0; short *output_samples = data; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { DPCMContext *s = VAR_0->priv_data; int VAR_5, VAR_6 = 0; int VAR_7[2]; int VAR_8 = 0; short *VAR_9 = VAR_1; int VAR_10[2]; unsign...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "DPCMContext *s = VAR_0->priv_data;", "int VAR_5, VAR_6 = 0;", "int VAR_7[2];", "int VAR_8 = 0;", "short *VAR_9 = VAR_1;", "int VAR_10[2];", "unsigned char VAR_11;", "short VAR_12;", "if (!VAR_4)\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 35, 40 ], [ 44, 46, 48 ], [ 50 ], [ 52 ], [ 54 ], [ 56 ], [ 58 ...
2,579
static void kvm_reset_vcpu(void *opaque) { CPUState *env = opaque; kvm_arch_reset_vcpu(env); if (kvm_arch_put_registers(env)) { fprintf(stderr, "Fatal: kvm vcpu reset failed\n"); abort(); } }
true
qemu
ea375f9ab8c76686dca0af8cb4f87a4eb569cad3
static void kvm_reset_vcpu(void *opaque) { CPUState *env = opaque; kvm_arch_reset_vcpu(env); if (kvm_arch_put_registers(env)) { fprintf(stderr, "Fatal: kvm vcpu reset failed\n"); abort(); } }
{ "code": [ " CPUState *env = opaque;", " CPUState *env = opaque;", " if (kvm_arch_put_registers(env)) {", " fprintf(stderr, \"Fatal: kvm vcpu reset failed\\n\");", " abort();", " CPUState *env = opaque;" ], "line_no": [ 5, 5, 11, 13, 15, 5...
static void FUNC_0(void *VAR_0) { CPUState *env = VAR_0; kvm_arch_reset_vcpu(env); if (kvm_arch_put_registers(env)) { fprintf(stderr, "Fatal: kvm vcpu reset failed\n"); abort(); } }
[ "static void FUNC_0(void *VAR_0)\n{", "CPUState *env = VAR_0;", "kvm_arch_reset_vcpu(env);", "if (kvm_arch_put_registers(env)) {", "fprintf(stderr, \"Fatal: kvm vcpu reset failed\\n\");", "abort();", "}", "}" ]
[ 0, 1, 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
2,580
static int parse_cube(AVFilterContext *ctx, FILE *f) { LUT3DContext *lut3d = ctx->priv; char line[MAX_LINE_SIZE]; float min[3] = {0.0, 0.0, 0.0}; float max[3] = {1.0, 1.0, 1.0}; while (fgets(line, sizeof(line), f)) { if (!strncmp(line, "LUT_3D_SIZE ", 12)) { int i, j, k...
true
FFmpeg
f97e28ebe5233f6520b161ab8dbbe937dda46dc3
static int parse_cube(AVFilterContext *ctx, FILE *f) { LUT3DContext *lut3d = ctx->priv; char line[MAX_LINE_SIZE]; float min[3] = {0.0, 0.0, 0.0}; float max[3] = {1.0, 1.0, 1.0}; while (fgets(line, sizeof(line), f)) { if (!strncmp(line, "LUT_3D_SIZE ", 12)) { int i, j, k...
{ "code": [ " if (size > MAX_LEVEL) {", " av_log(ctx, AV_LOG_ERROR, \"Too large 3D LUT\\n\");" ], "line_no": [ 25, 27 ] }
static int FUNC_0(AVFilterContext *VAR_0, FILE *VAR_1) { LUT3DContext *lut3d = VAR_0->priv; char VAR_2[MAX_LINE_SIZE]; float VAR_3[3] = {0.0, 0.0, 0.0}; float VAR_4[3] = {1.0, 1.0, 1.0}; while (fgets(VAR_2, sizeof(VAR_2), VAR_1)) { if (!strncmp(VAR_2, "LUT_3D_SIZE ", 12)) { ...
[ "static int FUNC_0(AVFilterContext *VAR_0, FILE *VAR_1)\n{", "LUT3DContext *lut3d = VAR_0->priv;", "char VAR_2[MAX_LINE_SIZE];", "float VAR_3[3] = {0.0, 0.0, 0.0};", "float VAR_4[3] = {1.0, 1.0, 1.0};", "while (fgets(VAR_2, sizeof(VAR_2), VAR_1)) {", "if (!strncmp(VAR_2, \"LUT_3D_SIZE \", 12)) {", "in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
2,581
static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt) { uint8_t *rpkt; int opc; switch (*pkt ++) { case H4_CMD_PKT: opc = le16_to_cpu(((struct hci_command_hdr *) pkt)->opcode); if (cmd_opcode_ogf(opc) == OGF_VENDOR_CMD) { csrhci_in_packet_vendor(s, cmd_opco...
false
qemu
bf937a7965c1d1a6dce4f615d0ead2e2ab505004
static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt) { uint8_t *rpkt; int opc; switch (*pkt ++) { case H4_CMD_PKT: opc = le16_to_cpu(((struct hci_command_hdr *) pkt)->opcode); if (cmd_opcode_ogf(opc) == OGF_VENDOR_CMD) { csrhci_in_packet_vendor(s, cmd_opco...
{ "code": [], "line_no": [] }
static void FUNC_0(struct csrhci_s *VAR_0, uint8_t *VAR_1) { uint8_t *rpkt; int VAR_2; switch (*VAR_1 ++) { case H4_CMD_PKT: VAR_2 = le16_to_cpu(((struct hci_command_hdr *) VAR_1)->opcode); if (cmd_opcode_ogf(VAR_2) == OGF_VENDOR_CMD) { csrhci_in_packet_vendor(VAR_0...
[ "static void FUNC_0(struct csrhci_s *VAR_0, uint8_t *VAR_1)\n{", "uint8_t *rpkt;", "int VAR_2;", "switch (*VAR_1 ++) {", "case H4_CMD_PKT:\nVAR_2 = le16_to_cpu(((struct hci_command_hdr *) VAR_1)->opcode);", "if (cmd_opcode_ogf(VAR_2) == OGF_VENDOR_CMD) {", "csrhci_in_packet_vendor(VAR_0, cmd_opcode_ocf(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 55, 57 ], [ 59 ], [ 63, 65 ], [ 67 ], [ 71...
2,585
static int client_migrate_info(Monitor *mon, const QDict *qdict, QObject **ret_data) { const char *protocol = qdict_get_str(qdict, "protocol"); const char *hostname = qdict_get_str(qdict, "hostname"); const char *subject = qdict_get_try_str(qdict, "cert-subject"); i...
false
qemu
13cadefbda71e119db79fe0b7a4efd26a6d005bd
static int client_migrate_info(Monitor *mon, const QDict *qdict, QObject **ret_data) { const char *protocol = qdict_get_str(qdict, "protocol"); const char *hostname = qdict_get_str(qdict, "hostname"); const char *subject = qdict_get_try_str(qdict, "cert-subject"); i...
{ "code": [], "line_no": [] }
static int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2) { const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); const char *VAR_4 = qdict_get_str(VAR_1, "VAR_4"); const char *VAR_5 = qdict_get_try_str(VAR_1, "cert-VAR_5"); int VAR_6 = qdict_g...
[ "static int FUNC_0(Monitor *VAR_0, const QDict *VAR_1,\nQObject **VAR_2)\n{", "const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");", "const char *VAR_4 = qdict_get_str(VAR_1, \"VAR_4\");", "const char *VAR_5 = qdict_get_try_str(VAR_1, \"cert-VAR_5\");", "int VAR_6 = qdict_get_try_int(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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
2,586
void backup_start(BlockDriverState *bs, BlockDriverState *target, int64_t speed, BlockdevOnError on_source_error, BlockdevOnError on_target_error, BlockDriverCompletionFunc *cb, void *opaque, Error **errp) { int64_t len...
false
qemu
fc5d3f843250c9d3bfa2bcfdb7369f4753a49f0e
void backup_start(BlockDriverState *bs, BlockDriverState *target, int64_t speed, BlockdevOnError on_source_error, BlockdevOnError on_target_error, BlockDriverCompletionFunc *cb, void *opaque, Error **errp) { int64_t len...
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1, int64_t VAR_2, BlockdevOnError VAR_3, BlockdevOnError VAR_4, BlockDriverCompletionFunc *VAR_5, void *VAR_6, Error **VAR_7) { int64_t len; assert(VAR_0...
[ "void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,\nint64_t VAR_2,\nBlockdevOnError VAR_3,\nBlockdevOnError VAR_4,\nBlockDriverCompletionFunc *VAR_5, void *VAR_6,\nError **VAR_7)\n{", "int64_t len;", "assert(VAR_0);", "assert(VAR_1);", "assert(VAR_5);", "if ((VAR_3 == BLOCKDEV_ON_ERROR_STOP ||...
[ 0, 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 ], [ 51 ], [ 55, 57 ], [...
2,587
void ff_init_block_index(MpegEncContext *s){ //FIXME maybe rename const int linesize = s->current_picture.f->linesize[0]; //not s->linesize as this would be wrong for field pics const int uvlinesize = s->current_picture.f->linesize[1]; const int mb_size= 4; s->block_index[0]= s->b8_stride*(s->mb...
false
FFmpeg
7d4a1ff344cbf969ac648642a0fd8484fd5b8637
void ff_init_block_index(MpegEncContext *s){ const int linesize = s->current_picture.f->linesize[0]; const int uvlinesize = s->current_picture.f->linesize[1]; const int mb_size= 4; s->block_index[0]= s->b8_stride*(s->mb_y*2 ) - 2 + s->mb_x*2; s->block_index[1]= s->b8_stride*(s->mb_y*2 ...
{ "code": [], "line_no": [] }
void FUNC_0(MpegEncContext *VAR_0){ const int VAR_1 = VAR_0->current_picture.f->VAR_1[0]; const int VAR_2 = VAR_0->current_picture.f->VAR_1[1]; const int VAR_3= 4; VAR_0->block_index[0]= VAR_0->b8_stride*(VAR_0->mb_y*2 ) - 2 + VAR_0->mb_x*2; VAR_0->block_index[1]= VAR_0->b8_stride*(VAR...
[ "void FUNC_0(MpegEncContext *VAR_0){", "const int VAR_1 = VAR_0->current_picture.f->VAR_1[0];", "const int VAR_2 = VAR_0->current_picture.f->VAR_1[1];", "const int VAR_3= 4;", "VAR_0->block_index[0]= VAR_0->b8_stride*(VAR_0->mb_y*2 ) - 2 + VAR_0->mb_x*2;", "VAR_0->block_index[1]= VAR_0->b8_stride*(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 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
2,588
int qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, int len) { int offset = 0; int res = 0; qemu_mutex_lock(&s->chr_write_lock); while (offset < len) { do { res = s->chr_write(s, buf + offset, len - offset); if (res == -1 && errno == EAGAIN) { ...
false
qemu
33577b47c64435fcc2a1bc01c7e82534256f1fc3
int qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, int len) { int offset = 0; int res = 0; qemu_mutex_lock(&s->chr_write_lock); while (offset < len) { do { res = s->chr_write(s, buf + offset, len - offset); if (res == -1 && errno == EAGAIN) { ...
{ "code": [], "line_no": [] }
int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2) { int VAR_3 = 0; int VAR_4 = 0; qemu_mutex_lock(&VAR_0->chr_write_lock); while (VAR_3 < VAR_2) { do { VAR_4 = VAR_0->chr_write(VAR_0, VAR_1 + VAR_3, VAR_2 - VAR_3); if (VAR_4 == -1 && errno == E...
[ "int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "int VAR_3 = 0;", "int VAR_4 = 0;", "qemu_mutex_lock(&VAR_0->chr_write_lock);", "while (VAR_3 < VAR_2) {", "do {", "VAR_4 = VAR_0->chr_write(VAR_0, VAR_1 + VAR_3, VAR_2 - VAR_3);", "if (VAR_4 == -1 && errno == EAGAIN) {", "g_u...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49...
2,589
static GenericList *qmp_output_next_list(Visitor *v, GenericList *tail, size_t size) { return tail->next; }
false
qemu
7d5e199ade76c53ec316ab6779800581bb47c50a
static GenericList *qmp_output_next_list(Visitor *v, GenericList *tail, size_t size) { return tail->next; }
{ "code": [], "line_no": [] }
static GenericList *FUNC_0(Visitor *v, GenericList *tail, size_t size) { return tail->next; }
[ "static GenericList *FUNC_0(Visitor *v, GenericList *tail,\nsize_t size)\n{", "return tail->next;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
2,590
int get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int access_type) { int ret; #if 0 qemu_log("%s\n", __func__); #endif if ((access_type == ACCESS_CODE && msr_ir == 0) || (access_type != ACCESS_CODE && msr_dr == 0)) { /* ...
false
qemu
948559372583eb9d862d5a9b548a6e91b92426df
int get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int access_type) { int ret; #if 0 qemu_log("%s\n", __func__); #endif if ((access_type == ACCESS_CODE && msr_ir == 0) || (access_type != ACCESS_CODE && msr_dr == 0)) { ...
{ "code": [], "line_no": [] }
int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { int VAR_5; #if 0 qemu_log("%s\n", __func__); #endif if ((VAR_4 == ACCESS_CODE && msr_ir == 0) || (VAR_4 != ACCESS_CODE && msr_dr == 0)) { VAR_5 = check_ph...
[ "int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5;", "#if 0\nqemu_log(\"%s\\n\", __func__);", "#endif\nif ((VAR_4 == ACCESS_CODE && msr_ir == 0) ||\n(VAR_4 != ACCESS_CODE && msr_dr == 0)) {", "VAR_5 = check_physical(VAR_0, VAR_1, VAR_2, VAR_3);", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 15, 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33, 35, 37, 39, 41, 43, 45, 49, 51 ], [ 53 ], [ 57 ], [ 59 ], [ 61 ], ...
2,591
static unsigned int dec_btstq(DisasContext *dc) { TCGv l0; dc->op1 = EXTRACT_FIELD(dc->ir, 0, 4); DIS(fprintf (logfile, "btstq %u, $r%d\n", dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); l0 = tcg_temp_local_new(TCG_TYPE_TL); cris_alu(dc, CC_OP_BTST, l0, cpu_R[dc->op2], tcg_const_tl(dc->op1), 4); ...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_btstq(DisasContext *dc) { TCGv l0; dc->op1 = EXTRACT_FIELD(dc->ir, 0, 4); DIS(fprintf (logfile, "btstq %u, $r%d\n", dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); l0 = tcg_temp_local_new(TCG_TYPE_TL); cris_alu(dc, CC_OP_BTST, l0, cpu_R[dc->op2], tcg_const_tl(dc->op1), 4); ...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv l0; VAR_0->op1 = EXTRACT_FIELD(VAR_0->ir, 0, 4); DIS(fprintf (logfile, "btstq %u, $r%d\n", VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, CC_MASK_NZ); l0 = tcg_temp_local_new(TCG_TYPE_TL); cris_alu(VAR_0, CC_OP_BTST, l0, cpu_R[VAR_0->op2], tcg_con...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv l0;", "VAR_0->op1 = EXTRACT_FIELD(VAR_0->ir, 0, 4);", "DIS(fprintf (logfile, \"btstq %u, $r%d\\n\", VAR_0->op1, VAR_0->op2));", "cris_cc_mask(VAR_0, CC_MASK_NZ);", "l0 = tcg_temp_local_new(TCG_TYPE_TL);", "cris_alu(VAR_0, CC_OP_BTST,\nl0, cpu_R...
[ 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 ] ]
2,592
static void tcg_out_brcond2(TCGContext *s, const TCGArg *args, const int *const_args, int small) { int label_next; label_next = gen_new_label(); switch(args[4]) { case TCG_COND_EQ: tcg_out_brcond32(s, TCG_COND_NE, args[0], args[2], const_args[2], ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static void tcg_out_brcond2(TCGContext *s, const TCGArg *args, const int *const_args, int small) { int label_next; label_next = gen_new_label(); switch(args[4]) { case TCG_COND_EQ: tcg_out_brcond32(s, TCG_COND_NE, args[0], args[2], const_args[2], ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, const int *VAR_2, int VAR_3) { int VAR_4; VAR_4 = gen_new_label(); switch(VAR_1[4]) { case TCG_COND_EQ: tcg_out_brcond32(VAR_0, TCG_COND_NE, VAR_1[0], VAR_1[2], VAR_2[2], VAR_4...
[ "static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1,\nconst int *VAR_2, int VAR_3)\n{", "int VAR_4;", "VAR_4 = gen_new_label();", "switch(VAR_1[4]) {", "case TCG_COND_EQ:\ntcg_out_brcond32(VAR_0, TCG_COND_NE, VAR_1[0], VAR_1[2], VAR_2[2],\nVAR_4, 1);", "tcg_out_brcond32(VAR_0, TCG_COND_EQ, VAR_1[1]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 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,...
2,593
int qemu_savevm_state_begin(QEMUFile *f) { SaveStateEntry *se; qemu_put_be32(f, QEMU_VM_FILE_MAGIC); qemu_put_be32(f, QEMU_VM_FILE_VERSION); TAILQ_FOREACH(se, &savevm_handlers, entry) { int len; if (se->save_live_state == NULL) continue; /* Section ty...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
int qemu_savevm_state_begin(QEMUFile *f) { SaveStateEntry *se; qemu_put_be32(f, QEMU_VM_FILE_MAGIC); qemu_put_be32(f, QEMU_VM_FILE_VERSION); TAILQ_FOREACH(se, &savevm_handlers, entry) { int len; if (se->save_live_state == NULL) continue; qem...
{ "code": [], "line_no": [] }
int FUNC_0(QEMUFile *VAR_0) { SaveStateEntry *se; qemu_put_be32(VAR_0, QEMU_VM_FILE_MAGIC); qemu_put_be32(VAR_0, QEMU_VM_FILE_VERSION); TAILQ_FOREACH(se, &savevm_handlers, entry) { int len; if (se->save_live_state == NULL) continue; qemu_put...
[ "int FUNC_0(QEMUFile *VAR_0)\n{", "SaveStateEntry *se;", "qemu_put_be32(VAR_0, QEMU_VM_FILE_MAGIC);", "qemu_put_be32(VAR_0, QEMU_VM_FILE_VERSION);", "TAILQ_FOREACH(se, &savevm_handlers, entry) {", "int len;", "if (se->save_live_state == NULL)\ncontinue;", "qemu_put_byte(VAR_0, QEMU_VM_SECTION_START);"...
[ 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 ], [ 21, 23 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57, 59 ], [ 63 ], [ 65...
2,595
static void gen_jumpi(DisasContext *dc, uint32_t dest, int slot) { TCGv_i32 tmp = tcg_const_i32(dest); if (((dc->pc ^ dest) & TARGET_PAGE_MASK) != 0) { slot = -1; } gen_jump_slot(dc, tmp, slot); tcg_temp_free(tmp); }
false
qemu
433d33c555deeed375996e338df1a9510df401c6
static void gen_jumpi(DisasContext *dc, uint32_t dest, int slot) { TCGv_i32 tmp = tcg_const_i32(dest); if (((dc->pc ^ dest) & TARGET_PAGE_MASK) != 0) { slot = -1; } gen_jump_slot(dc, tmp, slot); tcg_temp_free(tmp); }
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, int VAR_2) { TCGv_i32 tmp = tcg_const_i32(VAR_1); if (((VAR_0->pc ^ VAR_1) & TARGET_PAGE_MASK) != 0) { VAR_2 = -1; } gen_jump_slot(VAR_0, tmp, VAR_2); tcg_temp_free(tmp); }
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, int VAR_2)\n{", "TCGv_i32 tmp = tcg_const_i32(VAR_1);", "if (((VAR_0->pc ^ VAR_1) & TARGET_PAGE_MASK) != 0) {", "VAR_2 = -1;", "}", "gen_jump_slot(VAR_0, tmp, VAR_2);", "tcg_temp_free(tmp);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
2,597
int qed_read_l1_table_sync(BDRVQEDState *s) { int ret = -EINPROGRESS; async_context_push(); qed_read_table(s, s->header.l1_table_offset, s->l1_table, qed_sync_cb, &ret); while (ret == -EINPROGRESS) { qemu_aio_wait(); } async_context_pop(); return ...
false
qemu
384acbf46b70edf0d2c1648aa1a92a90bcf7057d
int qed_read_l1_table_sync(BDRVQEDState *s) { int ret = -EINPROGRESS; async_context_push(); qed_read_table(s, s->header.l1_table_offset, s->l1_table, qed_sync_cb, &ret); while (ret == -EINPROGRESS) { qemu_aio_wait(); } async_context_pop(); return ...
{ "code": [], "line_no": [] }
int FUNC_0(BDRVQEDState *VAR_0) { int VAR_1 = -EINPROGRESS; async_context_push(); qed_read_table(VAR_0, VAR_0->header.l1_table_offset, VAR_0->l1_table, qed_sync_cb, &VAR_1); while (VAR_1 == -EINPROGRESS) { qemu_aio_wait(); } async_context_pop(); r...
[ "int FUNC_0(BDRVQEDState *VAR_0)\n{", "int VAR_1 = -EINPROGRESS;", "async_context_push();", "qed_read_table(VAR_0, VAR_0->header.l1_table_offset,\nVAR_0->l1_table, qed_sync_cb, &VAR_1);", "while (VAR_1 == -EINPROGRESS) {", "qemu_aio_wait();", "}", "async_context_pop();", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ] ]
2,598
static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eof) { int ret = 0, i; int repeating = 0; int eof_reached = 0; AVPacket avpkt; if (!ist->saw_first_ts) { ist->dts = ist->st->avg_frame_rate.num ? - ist->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(ist->s...
false
FFmpeg
808ab2fd0ba26ecb70655ec990748b16f30017bf
static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eof) { int ret = 0, i; int repeating = 0; int eof_reached = 0; AVPacket avpkt; if (!ist->saw_first_ts) { ist->dts = ist->st->avg_frame_rate.num ? - ist->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(ist->s...
{ "code": [], "line_no": [] }
static int FUNC_0(InputStream *VAR_0, const AVPacket *VAR_1, int VAR_2) { int VAR_10 = 0, VAR_4; int VAR_5 = 0; int VAR_6 = 0; AVPacket avpkt; if (!VAR_0->saw_first_ts) { VAR_0->dts = VAR_0->st->avg_frame_rate.num ? - VAR_0->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(VAR_0->st->a...
[ "static int FUNC_0(InputStream *VAR_0, const AVPacket *VAR_1, int VAR_2)\n{", "int VAR_10 = 0, VAR_4;", "int VAR_5 = 0;", "int VAR_6 = 0;", "AVPacket avpkt;", "if (!VAR_0->saw_first_ts) {", "VAR_0->dts = VAR_0->st->avg_frame_rate.num ? - VAR_0->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(VAR_0->st->av...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35, 37 ], [ 39, 41 ], [ 45 ], [ 49 ], [ 51 ...
2,599
BlockDeviceInfoList *bdrv_named_nodes_list(Error **errp) { BlockDeviceInfoList *list, *entry; BlockDriverState *bs; list = NULL; QTAILQ_FOREACH(bs, &graph_bdrv_states, node_list) { BlockDeviceInfo *info = bdrv_block_device_info(bs, errp); if (!info) { qapi_free_Bloc...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
BlockDeviceInfoList *bdrv_named_nodes_list(Error **errp) { BlockDeviceInfoList *list, *entry; BlockDriverState *bs; list = NULL; QTAILQ_FOREACH(bs, &graph_bdrv_states, node_list) { BlockDeviceInfo *info = bdrv_block_device_info(bs, errp); if (!info) { qapi_free_Bloc...
{ "code": [], "line_no": [] }
BlockDeviceInfoList *FUNC_0(Error **errp) { BlockDeviceInfoList *list, *entry; BlockDriverState *bs; list = NULL; QTAILQ_FOREACH(bs, &graph_bdrv_states, node_list) { BlockDeviceInfo *info = bdrv_block_device_info(bs, errp); if (!info) { qapi_free_BlockDeviceInfoList...
[ "BlockDeviceInfoList *FUNC_0(Error **errp)\n{", "BlockDeviceInfoList *list, *entry;", "BlockDriverState *bs;", "list = NULL;", "QTAILQ_FOREACH(bs, &graph_bdrv_states, node_list) {", "BlockDeviceInfo *info = bdrv_block_device_info(bs, errp);", "if (!info) {", "qapi_free_BlockDeviceInfoList(list);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
2,600
static uint32_t dp8393x_readw(void *opaque, target_phys_addr_t addr) { dp8393xState *s = opaque; int reg; if ((addr & ((1 << s->it_shift) - 1)) != 0) { return 0; } reg = addr >> s->it_shift; return read_register(s, reg); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint32_t dp8393x_readw(void *opaque, target_phys_addr_t addr) { dp8393xState *s = opaque; int reg; if ((addr & ((1 << s->it_shift) - 1)) != 0) { return 0; } reg = addr >> s->it_shift; return read_register(s, reg); }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr) { dp8393xState *s = opaque; int VAR_0; if ((addr & ((1 << s->it_shift) - 1)) != 0) { return 0; } VAR_0 = addr >> s->it_shift; return read_register(s, VAR_0); }
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{", "dp8393xState *s = opaque;", "int VAR_0;", "if ((addr & ((1 << s->it_shift) - 1)) != 0) {", "return 0;", "}", "VAR_0 = addr >> s->it_shift;", "return read_register(s, VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
2,601
void cpu_outw(pio_addr_t addr, uint16_t val) { LOG_IOPORT("outw: %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); trace_cpu_out(addr, val); ioport_write(1, addr, val); }
false
qemu
b40acf99bef69fa8ab0f9092ff162fde945eec12
void cpu_outw(pio_addr_t addr, uint16_t val) { LOG_IOPORT("outw: %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); trace_cpu_out(addr, val); ioport_write(1, addr, val); }
{ "code": [], "line_no": [] }
void FUNC_0(pio_addr_t VAR_0, uint16_t VAR_1) { LOG_IOPORT("outw: %04"FMT_pioaddr" %04"PRIx16"\n", VAR_0, VAR_1); trace_cpu_out(VAR_0, VAR_1); ioport_write(1, VAR_0, VAR_1); }
[ "void FUNC_0(pio_addr_t VAR_0, uint16_t VAR_1)\n{", "LOG_IOPORT(\"outw: %04\"FMT_pioaddr\" %04\"PRIx16\"\\n\", VAR_0, VAR_1);", "trace_cpu_out(VAR_0, VAR_1);", "ioport_write(1, VAR_0, VAR_1);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
2,603
void HELPER(wfe)(CPUARMState *env) { CPUState *cs = CPU(arm_env_get_cpu(env)); /* Don't actually halt the CPU, just yield back to top * level loop. This is not going into a "low power state" * (ie halting until some event occurs), so we never take * a configurable trap to a different exce...
false
qemu
049e24a191c212d9468db84169197887f2c91586
void HELPER(wfe)(CPUARMState *env) { CPUState *cs = CPU(arm_env_get_cpu(env)); cs->exception_index = EXCP_YIELD; cpu_loop_exit(cs); }
{ "code": [], "line_no": [] }
void FUNC_0(wfe)(CPUARMState *env) { CPUState *cs = CPU(arm_env_get_cpu(env)); cs->exception_index = EXCP_YIELD; cpu_loop_exit(cs); }
[ "void FUNC_0(wfe)(CPUARMState *env)\n{", "CPUState *cs = CPU(arm_env_get_cpu(env));", "cs->exception_index = EXCP_YIELD;", "cpu_loop_exit(cs);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 19 ], [ 21 ], [ 23 ] ]
2,605
static int xenfb_send_position(struct XenInput *xenfb, int abs_x, int abs_y, int z) { union xenkbd_in_event event; memset(&event, 0, XENKBD_IN_EVENT_SIZE); event.type = XENKBD_TYPE_POS; event.pos.abs_x = abs_x; event.pos.abs_y = abs_y; #if __XEN_LATEST_INTERFACE_VERSION__ == 0x00...
false
qemu
47d3df2387ed6927732584ffa4159c26d9f4dee8
static int xenfb_send_position(struct XenInput *xenfb, int abs_x, int abs_y, int z) { union xenkbd_in_event event; memset(&event, 0, XENKBD_IN_EVENT_SIZE); event.type = XENKBD_TYPE_POS; event.pos.abs_x = abs_x; event.pos.abs_y = abs_y; #if __XEN_LATEST_INTERFACE_VERSION__ == 0x00...
{ "code": [], "line_no": [] }
static int FUNC_0(struct XenInput *VAR_0, int VAR_1, int VAR_2, int VAR_3) { union xenkbd_in_event VAR_4; memset(&VAR_4, 0, XENKBD_IN_EVENT_SIZE); VAR_4.type = XENKBD_TYPE_POS; VAR_4.pos.VAR_1 = VAR_1; VAR_4.pos.VAR_2 = VAR_2; #if __XEN_LATEST_INTERFACE_VERSION__ == 0x00030207 ...
[ "static int FUNC_0(struct XenInput *VAR_0,\nint VAR_1, int VAR_2, int VAR_3)\n{", "union xenkbd_in_event VAR_4;", "memset(&VAR_4, 0, XENKBD_IN_EVENT_SIZE);", "VAR_4.type = XENKBD_TYPE_POS;", "VAR_4.pos.VAR_1 = VAR_1;", "VAR_4.pos.VAR_2 = VAR_2;", "#if __XEN_LATEST_INTERFACE_VERSION__ == 0x00030207\nVAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25, 27 ], [ 29, 33 ], [ 35 ] ]
2,606
static int latm_decode_frame(AVCodecContext *avctx, void *out, int *got_frame_ptr, AVPacket *avpkt) { struct LATMContext *latmctx = avctx->priv_data; int muxlength, err; GetBitContext gb; init_get_bits(&gb, avpkt->data, avpkt->size * 8); ...
false
FFmpeg
71953ebcf94fe4ef316cdad1f276089205dd1d65
static int latm_decode_frame(AVCodecContext *avctx, void *out, int *got_frame_ptr, AVPacket *avpkt) { struct LATMContext *latmctx = avctx->priv_data; int muxlength, err; GetBitContext gb; init_get_bits(&gb, avpkt->data, avpkt->size * 8); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { struct LATMContext *VAR_4 = VAR_0->priv_data; int VAR_5, VAR_6; GetBitContext gb; init_get_bits(&gb, VAR_3->data, VAR_3->size * 8); if (get_bits(&g...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "struct LATMContext *VAR_4 = VAR_0->priv_data;", "int VAR_5, VAR_6;", "GetBitContext gb;", "init_get_bits(&gb, VAR_3->data, VAR_3->size * 8);", "if (get_bits(&gb, 11) != LOAS_SYNC_WORD)\nreturn ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21, 23 ], [ 27 ], [ 31, 33 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57, 59 ], [ 61 ...
2,607
static inline int direct_search(MpegEncContext * s, int mb_x, int mb_y) { MotionEstContext * const c= &s->me; int P[10][2]; const int mot_stride = s->mb_stride; const int mot_xy = mb_y*mot_stride + mb_x; const int shift= 1+s->quarter_sample; int dmin, i; const int time_pp= s->pp_time...
false
FFmpeg
5b4da8a38a5ed211df9504c85ce401c30af86b97
static inline int direct_search(MpegEncContext * s, int mb_x, int mb_y) { MotionEstContext * const c= &s->me; int P[10][2]; const int mot_stride = s->mb_stride; const int mot_xy = mb_y*mot_stride + mb_x; const int shift= 1+s->quarter_sample; int dmin, i; const int time_pp= s->pp_time...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2) { MotionEstContext * const c= &VAR_0->me; int VAR_3[10][2]; const int VAR_4 = VAR_0->mb_stride; const int VAR_5 = VAR_2*VAR_4 + VAR_1; const int VAR_6= 1+VAR_0->quarter_sample; int VAR_7, VAR_8; const int VAR_9= V...
[ "static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2)\n{", "MotionEstContext * const c= &VAR_0->me;", "int VAR_3[10][2];", "const int VAR_4 = VAR_0->mb_stride;", "const int VAR_5 = VAR_2*VAR_4 + VAR_1;", "const int VAR_6= 1+VAR_0->quarter_sample;", "int VAR_7, VAR_8;", "const 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 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ...
2,608
static av_cold void iv_alloc_frames(Indeo3DecodeContext *s) { int luma_width, luma_height, luma_pixels, chroma_width, chroma_height, chroma_pixels, i; unsigned int bufsize; luma_width = (s->width + 3) & (~3); luma_height = (s->height + 3) & (~3); s->iv_frame[0].y_w = s->iv_frame[0].y_h = ...
false
FFmpeg
8b27f76bf8790536afccb96780b5feb9c65636be
static av_cold void iv_alloc_frames(Indeo3DecodeContext *s) { int luma_width, luma_height, luma_pixels, chroma_width, chroma_height, chroma_pixels, i; unsigned int bufsize; luma_width = (s->width + 3) & (~3); luma_height = (s->height + 3) & (~3); s->iv_frame[0].y_w = s->iv_frame[0].y_h = ...
{ "code": [], "line_no": [] }
static av_cold void FUNC_0(Indeo3DecodeContext *s) { int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; unsigned int VAR_7; VAR_0 = (s->width + 3) & (~3); VAR_1 = (s->height + 3) & (~3); s->iv_frame[0].y_w = s->iv_frame[0].y_h = s->iv_frame[0].the_buf_size = 0; s->iv_frame[1].y_...
[ "static av_cold void FUNC_0(Indeo3DecodeContext *s)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4,\nVAR_5, VAR_6;", "unsigned int VAR_7;", "VAR_0 = (s->width + 3) & (~3);", "VAR_1 = (s->height + 3) & (~3);", "s->iv_frame[0].y_w = s->iv_frame[0].y_h =\ns->iv_frame[0].the_buf_size = 0;", "s->iv_frame[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 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ], [...
2,610
int avpriv_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr) { int frame_size_code; memset(hdr, 0, sizeof(*hdr)); hdr->sync_word = get_bits(gbc, 16); if(hdr->sync_word != 0x0B77) return AAC_AC3_PARSE_ERROR_SYNC; /* read ahead to bsid to distinguish between AC-3 and E-AC-3...
false
FFmpeg
99a42f3fa95aa68f6c945e98e043d69e541d93cc
int avpriv_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr) { int frame_size_code; memset(hdr, 0, sizeof(*hdr)); hdr->sync_word = get_bits(gbc, 16); if(hdr->sync_word != 0x0B77) return AAC_AC3_PARSE_ERROR_SYNC; hdr->bitstream_id = show_bits_long(gbc, 29) & 0x1F; ...
{ "code": [], "line_no": [] }
int FUNC_0(GetBitContext *VAR_0, AC3HeaderInfo *VAR_1) { int VAR_2; memset(VAR_1, 0, sizeof(*VAR_1)); VAR_1->sync_word = get_bits(VAR_0, 16); if(VAR_1->sync_word != 0x0B77) return AAC_AC3_PARSE_ERROR_SYNC; VAR_1->bitstream_id = show_bits_long(VAR_0, 29) & 0x1F; if(VAR...
[ "int FUNC_0(GetBitContext *VAR_0, AC3HeaderInfo *VAR_1)\n{", "int VAR_2;", "memset(VAR_1, 0, sizeof(*VAR_1));", "VAR_1->sync_word = get_bits(VAR_0, 16);", "if(VAR_1->sync_word != 0x0B77)\nreturn AAC_AC3_PARSE_ERROR_SYNC;", "VAR_1->bitstream_id = show_bits_long(VAR_0, 29) & 0x1F;", "if(VAR_1->bitstream_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 57 ], [ 59, 61 ], [ 65 ], [ 69...
2,611
av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v) { MpegEncContext *s = &v->s; int i; int mb_height = FFALIGN(s->mb_height, 2); /* Allocate mb bitplanes */ v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); ...
false
FFmpeg
d909f43b5c773a73c8d526638744547ba4aa8c59
av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v) { MpegEncContext *s = &v->s; int i; int mb_height = FFALIGN(s->mb_height, 2); v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); v->forward_mb_plane = av...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(VC1Context *v) { MpegEncContext *s = &v->s; int VAR_0; int VAR_1 = FFALIGN(s->VAR_1, 2); v->mv_type_mb_plane = av_malloc (s->mb_stride * VAR_1); v->direct_mb_plane = av_malloc (s->mb_stride * VAR_1); v->forward_mb_plane = av_malloc (s->mb_stride * VAR_1); ...
[ "av_cold int FUNC_0(VC1Context *v)\n{", "MpegEncContext *s = &v->s;", "int VAR_0;", "int VAR_1 = FFALIGN(s->VAR_1, 2);", "v->mv_type_mb_plane = av_malloc (s->mb_stride * VAR_1);", "v->direct_mb_plane = av_malloc (s->mb_stride * VAR_1);", "v->forward_mb_plane = av_malloc (s->mb_stride * VAR_1);", "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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49, 51 ...
2,612
static void iv_Decode_Chunk(Indeo3DecodeContext *s, uint8_t *cur, uint8_t *ref, int width, int height, const uint8_t *buf1, long cb_offset, const uint8_t *hdr, const uint8_t *buf2, int min_width_160) { uint8_t bit_buf; unsigned long bit_pos, lv, lv1, lv2; long *width_tbl, widt...
false
FFmpeg
a6cef9651d033d2f5d7d775c54f148c710b558bb
static void iv_Decode_Chunk(Indeo3DecodeContext *s, uint8_t *cur, uint8_t *ref, int width, int height, const uint8_t *buf1, long cb_offset, const uint8_t *hdr, const uint8_t *buf2, int min_width_160) { uint8_t bit_buf; unsigned long bit_pos, lv, lv1, lv2; long *width_tbl, widt...
{ "code": [], "line_no": [] }
static void FUNC_0(Indeo3DecodeContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4, const uint8_t *VAR_5, long VAR_6, const uint8_t *VAR_7, const uint8_t *VAR_8, int VAR_9) { uint8_t bit_buf; unsigned long VAR_10, VAR_11, VAR_12, VAR_13; long *VAR_14, VAR_15[1...
[ "static void FUNC_0(Indeo3DecodeContext *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4,\nconst uint8_t *VAR_5, long VAR_6, const uint8_t *VAR_7,\nconst uint8_t *VAR_8, int VAR_9)\n{", "uint8_t bit_buf;", "unsigned long VAR_10, VAR_11, VAR_12, VAR_13;", "long *VAR_14, VAR_15[10];", "const sign...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
2,613
void ff_avg_h264_qpel4_mc33_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_4x4_msa(src + stride - 2, src - (stride * 2) + sizeof(uint8_t), stride, dst, strid...
false
FFmpeg
1181d93231e9b807965724587d363c1cfd5a1d0d
void ff_avg_h264_qpel4_mc33_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_4x4_msa(src + stride - 2, src - (stride * 2) + sizeof(uint8_t), stride, dst, strid...
{ "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_4x4_msa(VAR_1 + VAR_2 - 2, VAR_1 - (VAR_2 * 2) + sizeof(uint8_t), 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_4x4_msa(VAR_1 + VAR_2 - 2,\nVAR_1 - (VAR_2 * 2) +\nsizeof(uint8_t), VAR_2, VAR_0, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11 ], [ 13 ] ]
2,614
static int mpeg1_decode_picture(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int ref, f_code, vbv_delay; if(mpeg_decode_postinit(s->avctx) < 0) return -2; in...
true
FFmpeg
71434945f20c6d340b4c942de7746e6ea46ec74b
static int mpeg1_decode_picture(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int ref, f_code, vbv_delay; if(mpeg_decode_postinit(s->avctx) < 0) return -2; in...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { Mpeg1Context *s1 = VAR_0->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int VAR_3, VAR_4, VAR_5; if(mpeg_decode_postinit(s->VAR_0) < 0) return -2; init_get_bits(&s->gb...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "Mpeg1Context *s1 = VAR_0->priv_data;", "MpegEncContext *s = &s1->mpeg_enc_ctx;", "int VAR_3, VAR_4, VAR_5;", "if(mpeg_decode_postinit(s->VAR_0) < 0)\nreturn -2;", "init_get_bits(&s->gb, VAR_1, VAR_2*8);", "VAR_3 = get_bits...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
2,615
static void disas_arm_insn(DisasContext *s, unsigned int insn) { unsigned int cond, val, op1, i, shift, rm, rs, rn, rd, sh; TCGv_i32 tmp; TCGv_i32 tmp2; TCGv_i32 tmp3; TCGv_i32 addr; TCGv_i64 tmp64; /* M variants do not implement ARM mode. */ if (arm_dc_feature(s, ARM_FEATURE...
true
qemu
577bf808958d06497928c639efaa473bf8c5e099
static void disas_arm_insn(DisasContext *s, unsigned int insn) { unsigned int cond, val, op1, i, shift, rm, rs, rn, rd, sh; TCGv_i32 tmp; TCGv_i32 tmp2; TCGv_i32 tmp3; TCGv_i32 addr; TCGv_i64 tmp64; if (arm_dc_feature(s, ARM_FEATURE_M)) { goto illegal_op; } ...
{ "code": [ " s->is_jmp = DISAS_UPDATE;", " default:" ], "line_no": [ 2817, 909 ] }
static void FUNC_0(DisasContext *VAR_0, unsigned int VAR_1) { unsigned int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; TCGv_i32 tmp; TCGv_i32 tmp2; TCGv_i32 tmp3; TCGv_i32 addr; TCGv_i64 tmp64; if (arm_dc_feature(VAR_0, ARM_FEATURE_M)) { g...
[ "static void FUNC_0(DisasContext *VAR_0, unsigned int VAR_1)\n{", "unsigned int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "TCGv_i32 tmp;", "TCGv_i32 tmp2;", "TCGv_i32 tmp3;", "TCGv_i32 addr;", "TCGv_i64 tmp64;", "if (arm_dc_feature(VAR_0, ARM_FEATURE_M)) {", "goto ill...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 39 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [ 61 ...
2,616
static void pcie_pci_bridge_reset(DeviceState *qdev) { PCIDevice *d = PCI_DEVICE(qdev); pci_bridge_reset(qdev); msi_reset(d); shpc_reset(d); }
true
qemu
d659d94013390238961fac741572306c95496bf5
static void pcie_pci_bridge_reset(DeviceState *qdev) { PCIDevice *d = PCI_DEVICE(qdev); pci_bridge_reset(qdev); msi_reset(d); shpc_reset(d); }
{ "code": [ " msi_reset(d);" ], "line_no": [ 9 ] }
static void FUNC_0(DeviceState *VAR_0) { PCIDevice *d = PCI_DEVICE(VAR_0); pci_bridge_reset(VAR_0); msi_reset(d); shpc_reset(d); }
[ "static void FUNC_0(DeviceState *VAR_0)\n{", "PCIDevice *d = PCI_DEVICE(VAR_0);", "pci_bridge_reset(VAR_0);", "msi_reset(d);", "shpc_reset(d);", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
2,617
static int protocol_client_auth_sasl_step_len(VncState *vs, uint8_t *data, size_t len) { uint32_t steplen = read_u32(data, 0); VNC_DEBUG("Got client step len %d\n", steplen); if (steplen > SASL_DATA_MAX_LEN) { VNC_DEBUG("Too much SASL data %d\n", steplen); vnc_client_error(vs); ...
true
qemu
7364dbdabb7824d5bde1e341bb6d928282f01c83
static int protocol_client_auth_sasl_step_len(VncState *vs, uint8_t *data, size_t len) { uint32_t steplen = read_u32(data, 0); VNC_DEBUG("Got client step len %d\n", steplen); if (steplen > SASL_DATA_MAX_LEN) { VNC_DEBUG("Too much SASL data %d\n", steplen); vnc_client_error(vs); ...
{ "code": [ " VNC_DEBUG(\"Got client step len %d\\n\", steplen);", " VNC_DEBUG(\"Too much SASL data %d\\n\", steplen);" ], "line_no": [ 7, 11 ] }
static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2) { uint32_t steplen = read_u32(VAR_1, 0); VNC_DEBUG("Got client step VAR_2 %d\n", steplen); if (steplen > SASL_DATA_MAX_LEN) { VNC_DEBUG("Too much SASL VAR_1 %d\n", steplen); vnc_client_error(VAR_0); return -1; ...
[ "static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{", "uint32_t steplen = read_u32(VAR_1, 0);", "VNC_DEBUG(\"Got client step VAR_2 %d\\n\", steplen);", "if (steplen > SASL_DATA_MAX_LEN) {", "VNC_DEBUG(\"Too much SASL VAR_1 %d\\n\", steplen);", "vnc_client_error(VAR_0);", "return -1;", ...
[ 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ] ]
2,618
int qemu_devtree_nop_node(void *fdt, const char *node_path) { int offset; offset = fdt_path_offset(fdt, node_path); if (offset < 0) return offset; return fdt_nop_node(fdt, offset); }
true
qemu
ccbcfedd17fd2d13521fcee66810d0df464ec1cc
int qemu_devtree_nop_node(void *fdt, const char *node_path) { int offset; offset = fdt_path_offset(fdt, node_path); if (offset < 0) return offset; return fdt_nop_node(fdt, offset); }
{ "code": [ " if (offset < 0)", " return offset;", " int offset;", " offset = fdt_path_offset(fdt, node_path);", " if (offset < 0)", " return offset;", " int offset;", " offset = fdt_path_offset(fdt, node_path);", " if (offset < 0)", " ...
int FUNC_0(void *VAR_0, const char *VAR_1) { int VAR_2; VAR_2 = fdt_path_offset(VAR_0, VAR_1); if (VAR_2 < 0) return VAR_2; return fdt_nop_node(VAR_0, VAR_2); }
[ "int FUNC_0(void *VAR_0, const char *VAR_1)\n{", "int VAR_2;", "VAR_2 = fdt_path_offset(VAR_0, VAR_1);", "if (VAR_2 < 0)\nreturn VAR_2;", "return fdt_nop_node(VAR_0, VAR_2);", "}" ]
[ 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ] ]
2,619
static int ogg_read_header(AVFormatContext *s) { struct ogg *ogg = s->priv_data; int ret, i; ogg->curidx = -1; //linear headers seek from start do { ret = ogg_packet(s, NULL, NULL, NULL, NULL); if (ret < 0) { ogg_read_close(s); return ret; ...
true
FFmpeg
542f725964e52201000ec34e2f23229cf534ad3a
static int ogg_read_header(AVFormatContext *s) { struct ogg *ogg = s->priv_data; int ret, i; ogg->curidx = -1; do { ret = ogg_packet(s, NULL, NULL, NULL, NULL); if (ret < 0) { ogg_read_close(s); return ret; } } while (!ogg->headers...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { struct VAR_1 *VAR_1 = VAR_0->priv_data; int VAR_2, VAR_3; VAR_1->curidx = -1; do { VAR_2 = ogg_packet(VAR_0, NULL, NULL, NULL, NULL); if (VAR_2 < 0) { ogg_read_close(VAR_0); return VAR_2; } ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "struct VAR_1 *VAR_1 = VAR_0->priv_data;", "int VAR_2, VAR_3;", "VAR_1->curidx = -1;", "do {", "VAR_2 = ogg_packet(VAR_0, NULL, NULL, NULL, NULL);", "if (VAR_2 < 0) {", "ogg_read_close(VAR_0);", "return VAR_2;", "}", "} while (!VAR_1->headers);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 48 ], [ 50, 52, 54...
2,621
void qmp_drive_backup(DriveBackup *arg, Error **errp) { return do_drive_backup(arg, NULL, errp); }
true
qemu
111049a4ecefc9cf1ac75c773f4c5c165f27fe63
void qmp_drive_backup(DriveBackup *arg, Error **errp) { return do_drive_backup(arg, NULL, errp); }
{ "code": [ " return do_drive_backup(arg, NULL, errp);" ], "line_no": [ 5 ] }
void FUNC_0(DriveBackup *VAR_0, Error **VAR_1) { return do_drive_backup(VAR_0, NULL, VAR_1); }
[ "void FUNC_0(DriveBackup *VAR_0, Error **VAR_1)\n{", "return do_drive_backup(VAR_0, NULL, VAR_1);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,623
static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha) { AVFrame *frame_current, *frame_ref; VP56mb mb_type; VP56Frame ref_frame; int b, ab, b_max, plane, off; if (s->framep[VP56_FRAME_CURRENT]->key_frame) mb_type = VP56_MB_INTRA; else mb_type = vp5...
false
FFmpeg
28f9ab7029bd1a02f659995919f899f84ee7361b
static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha) { AVFrame *frame_current, *frame_ref; VP56mb mb_type; VP56Frame ref_frame; int b, ab, b_max, plane, off; if (s->framep[VP56_FRAME_CURRENT]->key_frame) mb_type = VP56_MB_INTRA; else mb_type = vp5...
{ "code": [], "line_no": [] }
static void FUNC_0(VP56Context *VAR_0, int VAR_1, int VAR_2, int VAR_3) { AVFrame *frame_current, *frame_ref; VP56mb mb_type; VP56Frame ref_frame; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; if (VAR_0->framep[VP56_FRAME_CURRENT]->key_frame) mb_type = VP56_MB_INTRA; else mb_...
[ "static void FUNC_0(VP56Context *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "AVFrame *frame_current, *frame_ref;", "VP56mb mb_type;", "VP56Frame ref_frame;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "if (VAR_0->framep[VP56_FRAME_CURRENT]->key_frame)\nmb_type = VP56_MB_INTRA;", "else\nmb_type = vp56_d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57, 59 ...
2,625
AVRational av_get_q(void *obj, const char *name, const AVOption **o_out) { int64_t intnum=1; double num=1; int den=1; av_get_number(obj, name, o_out, &num, &den, &intnum); if (num == 1.0 && (int)intnum == intnum) return (AVRational){intnum, den}; else return av_d2q(num...
true
FFmpeg
8089b7fa8c5b5a48cc7101daa4be891d0ead5a5e
AVRational av_get_q(void *obj, const char *name, const AVOption **o_out) { int64_t intnum=1; double num=1; int den=1; av_get_number(obj, name, o_out, &num, &den, &intnum); if (num == 1.0 && (int)intnum == intnum) return (AVRational){intnum, den}; else return av_d2q(num...
{ "code": [ " av_get_number(obj, name, o_out, &num, &den, &intnum);", " av_get_number(obj, name, o_out, &num, &den, &intnum);", " av_get_number(obj, name, o_out, &num, &den, &intnum);" ], "line_no": [ 13, 13, 13 ] }
AVRational FUNC_0(void *obj, const char *name, const AVOption **o_out) { int64_t intnum=1; double VAR_0=1; int VAR_1=1; av_get_number(obj, name, o_out, &VAR_0, &VAR_1, &intnum); if (VAR_0 == 1.0 && (int)intnum == intnum) return (AVRational){intnum, VAR_1}; else return ...
[ "AVRational FUNC_0(void *obj, const char *name, const AVOption **o_out)\n{", "int64_t intnum=1;", "double VAR_0=1;", "int VAR_1=1;", "av_get_number(obj, name, o_out, &VAR_0, &VAR_1, &intnum);", "if (VAR_0 == 1.0 && (int)intnum == intnum)\nreturn (AVRational){intnum, VAR_1};", "else\nreturn av_d2q(VAR_0*...
[ 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ] ]
2,626
static uint64_t megasas_queue_read(void *opaque, target_phys_addr_t addr, unsigned size) { return 0; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t megasas_queue_read(void *opaque, target_phys_addr_t addr, unsigned size) { return 0; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { return 0; }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "return 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
2,627
int float32_is_nan( float32 a1 ) { float32u u; uint64_t a; u.f = a1; a = u.i; return ( 0xFF800000 < ( a<<1 ) ); }
false
qemu
185698715dfb18c82ad2a5dbc169908602d43e81
int float32_is_nan( float32 a1 ) { float32u u; uint64_t a; u.f = a1; a = u.i; return ( 0xFF800000 < ( a<<1 ) ); }
{ "code": [], "line_no": [] }
int FUNC_0( float32 VAR_0 ) { float32u u; uint64_t a; u.f = VAR_0; a = u.i; return ( 0xFF800000 < ( a<<1 ) ); }
[ "int FUNC_0( float32 VAR_0 )\n{", "float32u u;", "uint64_t a;", "u.f = VAR_0;", "a = u.i;", "return ( 0xFF800000 < ( a<<1 ) );", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
2,629
static void bitband_writel(void *opaque, target_phys_addr_t offset, uint32_t value) { uint32_t addr; uint32_t mask; uint32_t v; addr = bitband_addr(opaque, offset) & ~3; mask = (1 << ((offset >> 2) & 31)); mask = tswap32(mask); cpu_physical_memory_read(add...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void bitband_writel(void *opaque, target_phys_addr_t offset, uint32_t value) { uint32_t addr; uint32_t mask; uint32_t v; addr = bitband_addr(opaque, offset) & ~3; mask = (1 << ((offset >> 2) & 31)); mask = tswap32(mask); cpu_physical_memory_read(add...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { uint32_t addr; uint32_t mask; uint32_t v; addr = bitband_addr(VAR_0, VAR_1) & ~3; mask = (1 << ((VAR_1 >> 2) & 31)); mask = tswap32(mask); cpu_physical_memory_read(addr, (uint8_t *...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "uint32_t addr;", "uint32_t mask;", "uint32_t v;", "addr = bitband_addr(VAR_0, VAR_1) & ~3;", "mask = (1 << ((VAR_1 >> 2) & 31));", "mask = tswap32(mask);", "cpu_physical_memory_read(addr, (uint8_t *)&v, 4);", "if (VAR_...
[ 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 ] ]
2,630
static void vvfat_refresh_limits(BlockDriverState *bs, Error **errp) { bs->request_alignment = BDRV_SECTOR_SIZE; /* No sub-sector I/O supported */ }
false
qemu
a5b8dd2ce83208cd7d6eb4562339ecf5aae13574
static void vvfat_refresh_limits(BlockDriverState *bs, Error **errp) { bs->request_alignment = BDRV_SECTOR_SIZE; }
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1) { VAR_0->request_alignment = BDRV_SECTOR_SIZE; }
[ "static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{", "VAR_0->request_alignment = BDRV_SECTOR_SIZE;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,631
void slavio_intctl_set_cpu(void *opaque, unsigned int cpu, CPUState *env) { SLAVIO_INTCTLState *s = opaque; s->cpu_envs[cpu] = env; }
false
qemu
b3a2319792ad5c0f0f8c3d2f4d02b95fd7efbc69
void slavio_intctl_set_cpu(void *opaque, unsigned int cpu, CPUState *env) { SLAVIO_INTCTLState *s = opaque; s->cpu_envs[cpu] = env; }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, unsigned int VAR_1, CPUState *VAR_2) { SLAVIO_INTCTLState *s = VAR_0; s->cpu_envs[VAR_1] = VAR_2; }
[ "void FUNC_0(void *VAR_0, unsigned int VAR_1, CPUState *VAR_2)\n{", "SLAVIO_INTCTLState *s = VAR_0;", "s->cpu_envs[VAR_1] = VAR_2;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
2,633
static void filter_mb_mbaff_edgev( H264Context *h, uint8_t *pix, int stride, int16_t bS[7], int bsi, int qp ) { int index_a = qp + h->slice_alpha_c0_offset; int alpha = alpha_table[index_a]; int beta = beta_table[qp + h->slice_beta_offset]; if (alpha ==0 || beta == 0) return; if( bS[0] < 4 )...
false
FFmpeg
44ca80df3445a59bc065924d8c6110fa10367d01
static void filter_mb_mbaff_edgev( H264Context *h, uint8_t *pix, int stride, int16_t bS[7], int bsi, int qp ) { int index_a = qp + h->slice_alpha_c0_offset; int alpha = alpha_table[index_a]; int beta = beta_table[qp + h->slice_beta_offset]; if (alpha ==0 || beta == 0) return; if( bS[0] < 4 )...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[7], int VAR_4, int VAR_5 ) { int VAR_6 = VAR_5 + VAR_0->slice_alpha_c0_offset; int VAR_7 = alpha_table[VAR_6]; int VAR_8 = beta_table[VAR_5 + VAR_0->slice_beta_offset]; if (VAR_7 ==0 || VAR_8 == 0) return; if( V...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[7], int VAR_4, int VAR_5 ) {", "int VAR_6 = VAR_5 + VAR_0->slice_alpha_c0_offset;", "int VAR_7 = alpha_table[VAR_6];", "int VAR_8 = beta_table[VAR_5 + VAR_0->slice_beta_offset];", "if (VAR_7 ==0 || VAR_8 == 0) return;", "if...
[ 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 ] ]
2,635
static void kbd_write_command(void *opaque, hwaddr addr, uint64_t val, unsigned size) { KBDState *s = opaque; DPRINTF("kbd: write cmd=0x%02" PRIx64 "\n", val); /* Bits 3-0 of the output port P2 of the keyboard controller may be pulsed * low for approximately 6 mi...
false
qemu
3115b9e2d286188a54d6f415186ae556046b68a3
static void kbd_write_command(void *opaque, hwaddr addr, uint64_t val, unsigned size) { KBDState *s = opaque; DPRINTF("kbd: write cmd=0x%02" PRIx64 "\n", val); if((val & KBD_CCMD_PULSE_BITS_3_0) == KBD_CCMD_PULSE_BITS_3_0) { if(!(val & 1)) ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { KBDState *s = VAR_0; DPRINTF("kbd: write cmd=0x%02" PRIx64 "\n", VAR_2); if((VAR_2 & KBD_CCMD_PULSE_BITS_3_0) == KBD_CCMD_PULSE_BITS_3_0) { if(!(VAR_2 & 1)) ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "KBDState *s = VAR_0;", "DPRINTF(\"kbd: write cmd=0x%02\" PRIx64 \"\\n\", VAR_2);", "if((VAR_2 & KBD_CCMD_PULSE_BITS_3_0) == KBD_CCMD_PULSE_BITS_3_0) {", "if(!(VAR_2 & 1))\nVAR_2 = KBD_CCMD_RESET;", "else\nVAR_2 = KBD_CCM...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53, 55, 57, 59, 61 ], [ 63 ], [ 65, 67 ], [ 69 ], [ 71...
2,636
static int kvm_s390_supports_mem_limit(KVMState *s) { struct kvm_device_attr attr = { .group = KVM_S390_VM_MEM_CTRL, .attr = KVM_S390_VM_MEM_LIMIT_SIZE, }; return (kvm_vm_ioctl(s, KVM_HAS_DEVICE_ATTR, &attr) == 0); }
false
qemu
2b147555f78c3c20080b201fd1506467fa0ddf43
static int kvm_s390_supports_mem_limit(KVMState *s) { struct kvm_device_attr attr = { .group = KVM_S390_VM_MEM_CTRL, .attr = KVM_S390_VM_MEM_LIMIT_SIZE, }; return (kvm_vm_ioctl(s, KVM_HAS_DEVICE_ATTR, &attr) == 0); }
{ "code": [], "line_no": [] }
static int FUNC_0(KVMState *VAR_0) { struct kvm_device_attr VAR_1 = { .group = KVM_S390_VM_MEM_CTRL, .VAR_1 = KVM_S390_VM_MEM_LIMIT_SIZE, }; return (kvm_vm_ioctl(VAR_0, KVM_HAS_DEVICE_ATTR, &VAR_1) == 0); }
[ "static int FUNC_0(KVMState *VAR_0)\n{", "struct kvm_device_attr VAR_1 = {", ".group = KVM_S390_VM_MEM_CTRL,\n.VAR_1 = KVM_S390_VM_MEM_LIMIT_SIZE,\n};", "return (kvm_vm_ioctl(VAR_0, KVM_HAS_DEVICE_ATTR, &VAR_1) == 0);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 15 ], [ 17 ] ]
2,637
static inline uint64_t fload_invalid_op_excp(CPUPPCState *env, int op) { uint64_t ret = 0; int ve; ve = fpscr_ve; switch (op) { case POWERPC_EXCP_FP_VXSNAN: env->fpscr |= 1 << FPSCR_VXSNAN; break; case POWERPC_EXCP_FP_VXSOFT: env->fpscr |= 1 << FPSCR_VXSOFT; ...
false
qemu
59800ec8e52bcfa271fa61fb0aae19205ef1b7f1
static inline uint64_t fload_invalid_op_excp(CPUPPCState *env, int op) { uint64_t ret = 0; int ve; ve = fpscr_ve; switch (op) { case POWERPC_EXCP_FP_VXSNAN: env->fpscr |= 1 << FPSCR_VXSNAN; break; case POWERPC_EXCP_FP_VXSOFT: env->fpscr |= 1 << FPSCR_VXSOFT; ...
{ "code": [], "line_no": [] }
static inline uint64_t FUNC_0(CPUPPCState *env, int op) { uint64_t ret = 0; int VAR_0; VAR_0 = fpscr_ve; switch (op) { case POWERPC_EXCP_FP_VXSNAN: env->fpscr |= 1 << FPSCR_VXSNAN; break; case POWERPC_EXCP_FP_VXSOFT: env->fpscr |= 1 << FPSCR_VXSOFT; b...
[ "static inline uint64_t FUNC_0(CPUPPCState *env, int op)\n{", "uint64_t ret = 0;", "int VAR_0;", "VAR_0 = fpscr_ve;", "switch (op) {", "case POWERPC_EXCP_FP_VXSNAN:\nenv->fpscr |= 1 << FPSCR_VXSNAN;", "break;", "case POWERPC_EXCP_FP_VXSOFT:\nenv->fpscr |= 1 << FPSCR_VXSOFT;", "break;", "case POWER...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 31 ], [ 33 ], [ 35, 39 ], [ 41 ], [ 43, 47 ], [ 49 ], [ 51, 55 ], [ 57...
2,638
VirtIODevice *virtio_blk_init(DeviceState *dev, DriveInfo *dinfo) { VirtIOBlock *s; int cylinders, heads, secs; static int virtio_blk_id; char *ps; s = (VirtIOBlock *)virtio_common_init("virtio-blk", VIRTIO_ID_BLOCK, sizeof(struct virtio_blk_config)...
false
qemu
711bf3d954371abffc07e397fc868a9c9e7e5585
VirtIODevice *virtio_blk_init(DeviceState *dev, DriveInfo *dinfo) { VirtIOBlock *s; int cylinders, heads, secs; static int virtio_blk_id; char *ps; s = (VirtIOBlock *)virtio_common_init("virtio-blk", VIRTIO_ID_BLOCK, sizeof(struct virtio_blk_config)...
{ "code": [], "line_no": [] }
VirtIODevice *FUNC_0(DeviceState *dev, DriveInfo *dinfo) { VirtIOBlock *s; int VAR_0, VAR_1, VAR_2; static int VAR_3; char *VAR_4; s = (VirtIOBlock *)virtio_common_init("virtio-blk", VIRTIO_ID_BLOCK, sizeof(struct virtio_blk_config), ...
[ "VirtIODevice *FUNC_0(DeviceState *dev, DriveInfo *dinfo)\n{", "VirtIOBlock *s;", "int VAR_0, VAR_1, VAR_2;", "static int VAR_3;", "char *VAR_4;", "s = (VirtIOBlock *)virtio_common_init(\"virtio-blk\", VIRTIO_ID_BLOCK,\nsizeof(struct virtio_blk_config),\nsizeof(VirtIOBlock));", "s->vdev.get_config = vir...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ...
2,639
static BlockAIOCB *raw_aio_writev(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return raw_aio_submit(bs, sector_num, qiov, nb_sectors, cb, opaque, QEMU_AIO_WRITE); }
false
qemu
2174f12bdeb3974141784e14bbb7ad8c53178cd9
static BlockAIOCB *raw_aio_writev(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return raw_aio_submit(bs, sector_num, qiov, nb_sectors, cb, opaque, QEMU_AIO_WRITE); }
{ "code": [], "line_no": [] }
static BlockAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return raw_aio_submit(bs, sector_num, qiov, nb_sectors, cb, opaque, QEMU_AIO_WRITE); }
[ "static BlockAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockCompletionFunc *cb, void *opaque)\n{", "return raw_aio_submit(bs, sector_num, qiov, nb_sectors,\ncb, opaque, QEMU_AIO_WRITE);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 13 ] ]
2,640
static void text_console_update(void *opaque, console_ch_t *chardata) { QemuConsole *s = (QemuConsole *) opaque; int i, j, src; if (s->text_x[0] <= s->text_x[1]) { src = (s->y_base + s->text_y[0]) * s->width; chardata += s->text_y[0] * s->width; for (i = s->text_y[0]; i <= s...
false
qemu
4083733db5e4120939acee57019ff52db1f45b9d
static void text_console_update(void *opaque, console_ch_t *chardata) { QemuConsole *s = (QemuConsole *) opaque; int i, j, src; if (s->text_x[0] <= s->text_x[1]) { src = (s->y_base + s->text_y[0]) * s->width; chardata += s->text_y[0] * s->width; for (i = s->text_y[0]; i <= s...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, console_ch_t *VAR_1) { QemuConsole *s = (QemuConsole *) VAR_0; int VAR_2, VAR_3, VAR_4; if (s->text_x[0] <= s->text_x[1]) { VAR_4 = (s->y_base + s->text_y[0]) * s->width; VAR_1 += s->text_y[0] * s->width; for (VAR_2 = s->text_y[0]; VAR_2 <= s-...
[ "static void FUNC_0(void *VAR_0, console_ch_t *VAR_1)\n{", "QemuConsole *s = (QemuConsole *) VAR_0;", "int VAR_2, VAR_3, VAR_4;", "if (s->text_x[0] <= s->text_x[1]) {", "VAR_4 = (s->y_base + s->text_y[0]) * s->width;", "VAR_1 += s->text_y[0] * s->width;", "for (VAR_2 = s->text_y[0]; VAR_2 <= s->text_y[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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
2,641
bool qemu_peer_has_ufo(NetClientState *nc) { if (!nc->peer || !nc->peer->info->has_ufo) { return false; } return nc->peer->info->has_ufo(nc->peer); }
false
qemu
d6085e3ace20bc9b0fa625d8d79b22668710e217
bool qemu_peer_has_ufo(NetClientState *nc) { if (!nc->peer || !nc->peer->info->has_ufo) { return false; } return nc->peer->info->has_ufo(nc->peer); }
{ "code": [], "line_no": [] }
bool FUNC_0(NetClientState *nc) { if (!nc->peer || !nc->peer->info->has_ufo) { return false; } return nc->peer->info->has_ufo(nc->peer); }
[ "bool FUNC_0(NetClientState *nc)\n{", "if (!nc->peer || !nc->peer->info->has_ufo) {", "return false;", "}", "return nc->peer->info->has_ufo(nc->peer);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
2,642
void kbd_put_keycode(int keycode) { if (!runstate_is_running()) { return; } if (qemu_put_kbd_event) { qemu_put_kbd_event(qemu_put_kbd_event_opaque, keycode); } }
false
qemu
ad02b96ad86baf6dd72a43b04876b2d6ea957112
void kbd_put_keycode(int keycode) { if (!runstate_is_running()) { return; } if (qemu_put_kbd_event) { qemu_put_kbd_event(qemu_put_kbd_event_opaque, keycode); } }
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0) { if (!runstate_is_running()) { return; } if (qemu_put_kbd_event) { qemu_put_kbd_event(qemu_put_kbd_event_opaque, VAR_0); } }
[ "void FUNC_0(int VAR_0)\n{", "if (!runstate_is_running()) {", "return;", "}", "if (qemu_put_kbd_event) {", "qemu_put_kbd_event(qemu_put_kbd_event_opaque, VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
2,643
ssize_t nbd_receive_reply(QIOChannel *ioc, NBDReply *reply, Error **errp) { uint8_t buf[NBD_REPLY_SIZE]; uint32_t magic; ssize_t ret; ret = read_sync_eof(ioc, buf, sizeof(buf), errp); if (ret <= 0) { return ret; } if (ret != sizeof(buf)) { error_setg(errp, "read...
false
qemu
d1fdf257d52822695f5ace6c586e059aa17d4b79
ssize_t nbd_receive_reply(QIOChannel *ioc, NBDReply *reply, Error **errp) { uint8_t buf[NBD_REPLY_SIZE]; uint32_t magic; ssize_t ret; ret = read_sync_eof(ioc, buf, sizeof(buf), errp); if (ret <= 0) { return ret; } if (ret != sizeof(buf)) { error_setg(errp, "read...
{ "code": [], "line_no": [] }
ssize_t FUNC_0(QIOChannel *ioc, NBDReply *reply, Error **errp) { uint8_t buf[NBD_REPLY_SIZE]; uint32_t magic; ssize_t ret; ret = read_sync_eof(ioc, buf, sizeof(buf), errp); if (ret <= 0) { return ret; } if (ret != sizeof(buf)) { error_setg(errp, "read failed"); ...
[ "ssize_t FUNC_0(QIOChannel *ioc, NBDReply *reply, Error **errp)\n{", "uint8_t buf[NBD_REPLY_SIZE];", "uint32_t magic;", "ssize_t ret;", "ret = read_sync_eof(ioc, buf, sizeof(buf), errp);", "if (ret <= 0) {", "return ret;", "}", "if (ret != sizeof(buf)) {", "error_setg(errp, \"read failed\");", "...
[ 0, 0, 0, 0, 0, 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 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ...
2,644
static int file_open(URLContext *h, const char *filename, int flags) { int access; int fd; av_strstart(filename, "file:", &filename); if (flags & URL_RDWR) { access = O_CREAT | O_TRUNC | O_RDWR; } else if (flags & URL_WRONLY) { access = O_CREAT | O_TRUNC | O_WRONLY; ...
false
FFmpeg
05d00e953f4cc08273fbb5f795f4fdc307140108
static int file_open(URLContext *h, const char *filename, int flags) { int access; int fd; av_strstart(filename, "file:", &filename); if (flags & URL_RDWR) { access = O_CREAT | O_TRUNC | O_RDWR; } else if (flags & URL_WRONLY) { access = O_CREAT | O_TRUNC | O_WRONLY; ...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2) { int VAR_3; int VAR_4; av_strstart(VAR_1, "file:", &VAR_1); if (VAR_2 & URL_RDWR) { VAR_3 = O_CREAT | O_TRUNC | O_RDWR; } else if (VAR_2 & URL_WRONLY) { VAR_3 = O_CREAT | O_TRUNC | O_WRONLY; } else {...
[ "static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)\n{", "int VAR_3;", "int VAR_4;", "av_strstart(VAR_1, \"file:\", &VAR_1);", "if (VAR_2 & URL_RDWR) {", "VAR_3 = O_CREAT | O_TRUNC | O_RDWR;", "} else if (VAR_2 & URL_WRONLY) {", "VAR_3 = O_CREAT | O_TRUNC | O_WRONLY;", "} else {", ...
[ 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 ], [ 45 ] ]
2,645
void *qemu_get_ram_ptr(ram_addr_t addr) { RAMBlock *prev; RAMBlock **prevp; RAMBlock *block; #ifdef CONFIG_KQEMU if (kqemu_phys_ram_base) { return kqemu_phys_ram_base + addr; } #endif prev = NULL; prevp = &ram_blocks; block = ram_blocks; while (block && (bloc...
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
void *qemu_get_ram_ptr(ram_addr_t addr) { RAMBlock *prev; RAMBlock **prevp; RAMBlock *block; #ifdef CONFIG_KQEMU if (kqemu_phys_ram_base) { return kqemu_phys_ram_base + addr; } #endif prev = NULL; prevp = &ram_blocks; block = ram_blocks; while (block && (bloc...
{ "code": [], "line_no": [] }
void *FUNC_0(ram_addr_t VAR_0) { RAMBlock *prev; RAMBlock **prevp; RAMBlock *block; #ifdef CONFIG_KQEMU if (kqemu_phys_ram_base) { return kqemu_phys_ram_base + VAR_0; } #endif prev = NULL; prevp = &ram_blocks; block = ram_blocks; while (block && (block->offse...
[ "void *FUNC_0(ram_addr_t VAR_0)\n{", "RAMBlock *prev;", "RAMBlock **prevp;", "RAMBlock *block;", "#ifdef CONFIG_KQEMU\nif (kqemu_phys_ram_base) {", "return kqemu_phys_ram_base + VAR_0;", "}", "#endif\nprev = NULL;", "prevp = &ram_blocks;", "block = ram_blocks;", "while (block && (block->offset >...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
2,646
static inline void tcg_reg_sync(TCGContext *s, int reg) { TCGTemp *ts; int temp; temp = s->reg_to_temp[reg]; ts = &s->temps[temp]; assert(ts->val_type == TEMP_VAL_REG); if (!ts->mem_coherent && !ts->fixed_reg) { if (!ts->mem_allocated) { temp_allocate_frame(s, temp...
false
qemu
b3a62939561e07bc34493444fa926b6137cba4e8
static inline void tcg_reg_sync(TCGContext *s, int reg) { TCGTemp *ts; int temp; temp = s->reg_to_temp[reg]; ts = &s->temps[temp]; assert(ts->val_type == TEMP_VAL_REG); if (!ts->mem_coherent && !ts->fixed_reg) { if (!ts->mem_allocated) { temp_allocate_frame(s, temp...
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGContext *VAR_0, int VAR_1) { TCGTemp *ts; int VAR_2; VAR_2 = VAR_0->reg_to_temp[VAR_1]; ts = &VAR_0->temps[VAR_2]; assert(ts->val_type == TEMP_VAL_REG); if (!ts->mem_coherent && !ts->fixed_reg) { if (!ts->mem_allocated) { temp_allocate_...
[ "static inline void FUNC_0(TCGContext *VAR_0, int VAR_1)\n{", "TCGTemp *ts;", "int VAR_2;", "VAR_2 = VAR_0->reg_to_temp[VAR_1];", "ts = &VAR_0->temps[VAR_2];", "assert(ts->val_type == TEMP_VAL_REG);", "if (!ts->mem_coherent && !ts->fixed_reg) {", "if (!ts->mem_allocated) {", "temp_allocate_frame(VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
2,647
int qio_channel_socket_connect_sync(QIOChannelSocket *ioc, SocketAddressLegacy *addr, Error **errp) { int fd; trace_qio_channel_socket_connect_sync(ioc, addr); fd = socket_connect(addr, NULL, NULL, errp); if (fd < 0) { ...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
int qio_channel_socket_connect_sync(QIOChannelSocket *ioc, SocketAddressLegacy *addr, Error **errp) { int fd; trace_qio_channel_socket_connect_sync(ioc, addr); fd = socket_connect(addr, NULL, NULL, errp); if (fd < 0) { ...
{ "code": [], "line_no": [] }
int FUNC_0(QIOChannelSocket *VAR_0, SocketAddressLegacy *VAR_1, Error **VAR_2) { int VAR_3; trace_qio_channel_socket_connect_sync(VAR_0, VAR_1); VAR_3 = socket_connect(VAR_1, NULL, NULL, VAR_2); if (VAR_3 < 0) { tr...
[ "int FUNC_0(QIOChannelSocket *VAR_0,\nSocketAddressLegacy *VAR_1,\nError **VAR_2)\n{", "int VAR_3;", "trace_qio_channel_socket_connect_sync(VAR_0, VAR_1);", "VAR_3 = socket_connect(VAR_1, NULL, NULL, VAR_2);", "if (VAR_3 < 0) {", "trace_qio_channel_socket_connect_fail(VAR_0);", "return -1;", "}", "t...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
2,648
static int transcode(OutputFile *output_files, int nb_output_files, InputFile *input_files, int nb_input_files) { int ret, i; AVFormatContext *is, *os; OutputStream *ost; InputStream *ist; uint8_t *no_packet; int no_packet_...
true
FFmpeg
ff037c54b43c512c7fd7f342801a086563c4de23
static int transcode(OutputFile *output_files, int nb_output_files, InputFile *input_files, int nb_input_files) { int ret, i; AVFormatContext *is, *os; OutputStream *ost; InputStream *ist; uint8_t *no_packet; int no_packet_...
{ "code": [ " redo:", " goto redo;" ], "line_no": [ 73, 455 ] }
static int FUNC_0(OutputFile *VAR_0, int VAR_1, InputFile *VAR_2, int VAR_3) { int VAR_4, VAR_5; AVFormatContext *is, *os; OutputStream *ost; InputStream *ist; uint8_t *no_packet; int VAR_6=0; int64_t timer_start; ...
[ "static int FUNC_0(OutputFile *VAR_0,\nint VAR_1,\nInputFile *VAR_2,\nint VAR_3)\n{", "int VAR_4, VAR_5;", "AVFormatContext *is, *os;", "OutputStream *ost;", "InputStream *ist;", "uint8_t *no_packet;", "int VAR_6=0;", "int64_t timer_start;", "int VAR_7;", "if (!(no_packet = av_mallocz(VAR_3)))\nex...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ...
2,650
static void mirror_start_job(const char *job_id, BlockDriverState *bs, int creation_flags, BlockDriverState *target, const char *replaces, int64_t speed, uint32_t granularity, int64_t buf_size, BlockM...
true
qemu
7a25fcd056ddd34ee7abc906c957d252e2889461
static void mirror_start_job(const char *job_id, BlockDriverState *bs, int creation_flags, BlockDriverState *target, const char *replaces, int64_t speed, uint32_t granularity, int64_t buf_size, BlockM...
{ "code": [ " bdrv_unref(mirror_top_bs);" ], "line_no": [ 131 ] }
static void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1, int VAR_2, BlockDriverState *VAR_3, const char *VAR_4, int64_t VAR_5, uint32_t VAR_6, int64_t VAR_7, BlockMirrorBackingMode VAR_8, ...
[ "static void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,\nint VAR_2, BlockDriverState *VAR_3,\nconst char *VAR_4, int64_t VAR_5,\nuint32_t VAR_6, int64_t VAR_7,\nBlockMirrorBackingMode VAR_8,\nBlockdevOnError VAR_9,\nBlockdevOnError VAR_10,\nbool VAR_11,\nBlockCompletionFunc *VAR_12,\nvoid *VAR_13, Error **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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ...
2,652
static void perf_cost(void) { const unsigned long maxcycles = 40000000; unsigned long i = 0; double duration; unsigned long ops; Coroutine *co; g_test_timer_start(); while (i++ < maxcycles) { co = qemu_coroutine_create(perf_cost_func); qemu_coroutine_enter(co, &i)...
true
qemu
6d86ae0824bdd6175dd3874688a871e981093888
static void perf_cost(void) { const unsigned long maxcycles = 40000000; unsigned long i = 0; double duration; unsigned long ops; Coroutine *co; g_test_timer_start(); while (i++ < maxcycles) { co = qemu_coroutine_create(perf_cost_func); qemu_coroutine_enter(co, &i)...
{ "code": [ " (unsigned long)(1000000000 * duration) / maxcycles);" ], "line_no": [ 43 ] }
static void FUNC_0(void) { const unsigned long VAR_0 = 40000000; unsigned long VAR_1 = 0; double VAR_2; unsigned long VAR_3; Coroutine *co; g_test_timer_start(); while (VAR_1++ < VAR_0) { co = qemu_coroutine_create(perf_cost_func); qemu_coroutine_enter(co, &VAR_1)...
[ "static void FUNC_0(void)\n{", "const unsigned long VAR_0 = 40000000;", "unsigned long VAR_1 = 0;", "double VAR_2;", "unsigned long VAR_3;", "Coroutine *co;", "g_test_timer_start();", "while (VAR_1++ < VAR_0) {", "co = qemu_coroutine_create(perf_cost_func);", "qemu_coroutine_enter(co, &VAR_1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37, 39, 41, 43 ], [ 45 ] ]
2,653
int ff_ass_add_rect(AVSubtitle *sub, const char *dialog, int ts_start, int duration, int raw) { AVBPrint buf; int ret, dlen; AVSubtitleRect **rects; av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED); if ((ret = ff_ass_bprint_dialog(&buf, dialog, ts_start, duration, raw))...
true
FFmpeg
05af8608c2dc8ed95e3afa3840308212f3df589e
int ff_ass_add_rect(AVSubtitle *sub, const char *dialog, int ts_start, int duration, int raw) { AVBPrint buf; int ret, dlen; AVSubtitleRect **rects; av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED); if ((ret = ff_ass_bprint_dialog(&buf, dialog, ts_start, duration, raw))...
{ "code": [], "line_no": [] }
int FUNC_0(AVSubtitle *VAR_0, const char *VAR_1, int VAR_2, int VAR_3, int VAR_4) { AVBPrint buf; int VAR_5, VAR_6; AVSubtitleRect **rects; av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED); if ((VAR_5 = ff_ass_bprint_dialog(&buf, VAR_1, VAR_2, VAR_3, VAR_4)) < 0) ...
[ "int FUNC_0(AVSubtitle *VAR_0, const char *VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{", "AVBPrint buf;", "int VAR_5, VAR_6;", "AVSubtitleRect **rects;", "av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED);", "if ((VAR_5 = ff_ass_bprint_dialog(&buf, VAR_1, VAR_2, VAR_3, VAR_4)) < 0)\ngoto err;", "VAR_6 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 28 ], [ 30, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 55, 57 ...
2,654
static int compute_bit_allocation(AC3EncodeContext *s, uint8_t bap[NB_BLOCKS][AC3_MAX_CHANNELS][N/2], uint8_t encoded_exp[NB_BLOCKS][AC3_MAX_CHANNELS][N/2], uint8_t exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS], ...
true
FFmpeg
132041f06fe30eff483769e19681bb2d5f92f26c
static int compute_bit_allocation(AC3EncodeContext *s, uint8_t bap[NB_BLOCKS][AC3_MAX_CHANNELS][N/2], uint8_t encoded_exp[NB_BLOCKS][AC3_MAX_CHANNELS][N/2], uint8_t exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS], ...
{ "code": [ " if (s->acmod == 2)" ], "line_no": [ 77 ] }
static int FUNC_0(AC3EncodeContext *VAR_0, uint8_t VAR_1[NB_BLOCKS][AC3_MAX_CHANNELS][N/2], uint8_t VAR_2[NB_BLOCKS][AC3_MAX_CHANNELS][N/2], uint8_t VAR_3[NB_BLOCKS][AC3_MAX_CHANNELS], ...
[ "static int FUNC_0(AC3EncodeContext *VAR_0,\nuint8_t VAR_1[NB_BLOCKS][AC3_MAX_CHANNELS][N/2],\nuint8_t VAR_2[NB_BLOCKS][AC3_MAX_CHANNELS][N/2],\nuint8_t VAR_3[NB_BLOCKS][AC3_MAX_CHANNELS],\nint VAR_4)\n{", "int VAR_5, VAR_6;", "int VAR_7, VAR_8;", "uint8_t bap1[NB_BLOCKS][AC3_MAX_CHANNELS][N/2];", "static i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
2,655
static void decode_plane_bitstream(HYuvContext *s, int count, int plane) { int i; count /= 2; if (s->bps <= 8) { OPEN_READER(re, &s->gb); if (count >= (get_bits_left(&s->gb)) / (32 * 2)) { for (i = 0; i < count && get_bits_left(&s->gb) > 0; i++) { READ...
true
FFmpeg
ba47d519e537299179d20b9a599c5824589a3f7a
static void decode_plane_bitstream(HYuvContext *s, int count, int plane) { int i; count /= 2; if (s->bps <= 8) { OPEN_READER(re, &s->gb); if (count >= (get_bits_left(&s->gb)) / (32 * 2)) { for (i = 0; i < count && get_bits_left(&s->gb) > 0; i++) { READ...
{ "code": [ " for (i = 0; i < count && get_bits_left(&s->gb) > 0; i++) {", " for (i = 0; i < count && get_bits_left(&s->gb) > 0; i++) {" ], "line_no": [ 19, 19 ] }
static void FUNC_0(HYuvContext *VAR_0, int VAR_1, int VAR_2) { int VAR_3; VAR_1 /= 2; if (VAR_0->bps <= 8) { OPEN_READER(re, &VAR_0->gb); if (VAR_1 >= (get_bits_left(&VAR_0->gb)) / (32 * 2)) { for (VAR_3 = 0; VAR_3 < VAR_1 && get_bits_left(&VAR_0->gb) > 0; VAR_3++) { ...
[ "static void FUNC_0(HYuvContext *VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3;", "VAR_1 /= 2;", "if (VAR_0->bps <= 8) {", "OPEN_READER(re, &VAR_0->gb);", "if (VAR_1 >= (get_bits_left(&VAR_0->gb)) / (32 * 2)) {", "for (VAR_3 = 0; VAR_3 < VAR_1 && get_bits_left(&VAR_0->gb) > 0; VAR_3++) {", "READ_2PIX_P...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
2,657
static void qxl_hard_reset(PCIQXLDevice *d, int loadvm) { dprint(d, 1, "%s: start%s\n", __FUNCTION__, loadvm ? " (loadvm)" : ""); qemu_mutex_unlock_iothread(); d->ssd.worker->reset_cursor(d->ssd.worker); d->ssd.worker->reset_image_cache(d->ssd.worker); qemu_mutex_lock_iothread();...
true
qemu
196a778428989217b82de042725dc8eb29c8f8d8
static void qxl_hard_reset(PCIQXLDevice *d, int loadvm) { dprint(d, 1, "%s: start%s\n", __FUNCTION__, loadvm ? " (loadvm)" : ""); qemu_mutex_unlock_iothread(); d->ssd.worker->reset_cursor(d->ssd.worker); d->ssd.worker->reset_image_cache(d->ssd.worker); qemu_mutex_lock_iothread();...
{ "code": [ " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_iothread();", " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_iothread();", " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_iothread();", " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_...
static void FUNC_0(PCIQXLDevice *VAR_0, int VAR_1) { dprint(VAR_0, 1, "%s: start%s\n", __FUNCTION__, VAR_1 ? " (VAR_1)" : ""); qemu_mutex_unlock_iothread(); VAR_0->ssd.worker->reset_cursor(VAR_0->ssd.worker); VAR_0->ssd.worker->reset_image_cache(VAR_0->ssd.worker); qemu_mutex_loc...
[ "static void FUNC_0(PCIQXLDevice *VAR_0, int VAR_1)\n{", "dprint(VAR_0, 1, \"%s: start%s\\n\", __FUNCTION__,\nVAR_1 ? \" (VAR_1)\" : \"\");", "qemu_mutex_unlock_iothread();", "VAR_0->ssd.worker->reset_cursor(VAR_0->ssd.worker);", "VAR_0->ssd.worker->reset_image_cache(VAR_0->ssd.worker);", "qemu_mutex_lock...
[ 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
2,658
int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; AVFrame *pict ...
false
FFmpeg
8716c178ddabe28a01a9fe81fff68d117b779333
int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; AVFrame *pict ...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->VAR_11; RV34DecContext *r = VAR_0->priv_data; MpegEncContext *s = &r->s; AVFrame *pict = VAR_1; S...
[ "int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->VAR_11;", "RV34DecContext *r = VAR_0->priv_data;", "MpegEncContext *s = &r->s;", "AVFrame *pict = VAR_1;", "SliceInfo si;", "int VAR_6;", "int VAR_7;", "c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
2,659
static coroutine_fn int qcow2_co_readv(BlockDriverState *bs, int64_t sector_num, int remaining_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int index_in_cluster, n1; int ret; int cur_nr_sectors; /* number of sectors in current iteration */ uint64_t c...
true
qemu
8336aafae1451d54c81dd2b187b45f7c45d2428e
static coroutine_fn int qcow2_co_readv(BlockDriverState *bs, int64_t sector_num, int remaining_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int index_in_cluster, n1; int ret; int cur_nr_sectors; uint64_t cluster_offset = 0; uint64_t bytes_done ...
{ "code": [ " if (s->crypt_method) {", " if (s->crypt_method) {", " if (s->crypt_method) {", " if (s->crypt_method) {", " if (s->crypt_method) {" ], "line_no": [ 183, 41, 183, 183, 41 ] }
static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num, int remaining_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int VAR_0, VAR_1; int VAR_2; int VAR_3; uint64_t cluster_offset = 0; uint64_t bytes_done = 0; QEMUIOVector ...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num,\nint remaining_sectors, QEMUIOVector *qiov)\n{", "BDRVQcowState *s = bs->opaque;", "int VAR_0, VAR_1;", "int VAR_2;", "int VAR_3;", "uint64_t cluster_offset = 0;", "uint64_t bytes_done = 0;", "QEMUIOVector hd_qiov;", "uint8_t ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 33 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51, 53 ], [ 55 ], [...
2,660
static int mov_write_udta_tag(ByteIOContext *pb, MOVMuxContext *mov, AVFormatContext *s) { ByteIOContext *pb_buf; int i, ret, size; uint8_t *buf; for (i = 0; i < s->nb_streams; i++) if (mov->tracks[i].enc->flags & CODEC_FLAG_BITEXACT) { return ...
true
FFmpeg
8b6e0aec9fb07b0d1286e3ff5d858e22d09dc83c
static int mov_write_udta_tag(ByteIOContext *pb, MOVMuxContext *mov, AVFormatContext *s) { ByteIOContext *pb_buf; int i, ret, size; uint8_t *buf; for (i = 0; i < s->nb_streams; i++) if (mov->tracks[i].enc->flags & CODEC_FLAG_BITEXACT) { return ...
{ "code": [ " av_free(buf);" ], "line_no": [ 93 ] }
static int FUNC_0(ByteIOContext *VAR_0, MOVMuxContext *VAR_1, AVFormatContext *VAR_2) { ByteIOContext *pb_buf; int VAR_3, VAR_4, VAR_5; uint8_t *buf; for (VAR_3 = 0; VAR_3 < VAR_2->nb_streams; VAR_3++) if (VAR_1->tracks[VAR_3].enc->flags & CODEC_FLAG_BITEXA...
[ "static int FUNC_0(ByteIOContext *VAR_0, MOVMuxContext *VAR_1,\nAVFormatContext *VAR_2)\n{", "ByteIOContext *pb_buf;", "int VAR_3, VAR_4, VAR_5;", "uint8_t *buf;", "for (VAR_3 = 0; VAR_3 < VAR_2->nb_streams; VAR_3++)", "if (VAR_1->tracks[VAR_3].enc->flags & CODEC_FLAG_BITEXACT) {", "return 0;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
2,661
static void gen_tlbwe_booke206(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_update_nip(ctx, ctx->nip - 4); gen_helper_booke20...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_tlbwe_booke206(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_update_nip(ctx, ctx->nip - 4); gen_helper_booke20...
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } gen_update_nip(VAR_0, VAR_0->nip - 4); gen_helper_booke20...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "gen_update_nip(VAR_0, VAR_0->nip - 4);", "gen_helper_booke206_t...
[ 0, 1, 1, 1, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ] ]
2,662
static void serial_xmit(SerialState *s) { do { assert(!(s->lsr & UART_LSR_TEMT)); if (s->tsr_retry == 0) { assert(!(s->lsr & UART_LSR_THRE)); if (s->fcr & UART_FCR_FE) { assert(!fifo8_is_empty(&s->xmit_fifo)); s->tsr = fifo8_pop(&s->x...
true
qemu
a1df76da57aa8772a75e7c49f8e3829d07b4c46c
static void serial_xmit(SerialState *s) { do { assert(!(s->lsr & UART_LSR_TEMT)); if (s->tsr_retry == 0) { assert(!(s->lsr & UART_LSR_THRE)); if (s->fcr & UART_FCR_FE) { assert(!fifo8_is_empty(&s->xmit_fifo)); s->tsr = fifo8_pop(&s->x...
{ "code": [ " } else if (qemu_chr_fe_write(s->chr, &s->tsr, 1) != 1) {", " if (s->tsr_retry < MAX_XMIT_RETRY &&", " qemu_chr_fe_add_watch(s->chr, G_IO_OUT|G_IO_HUP,", " serial_watch_cb, s) > 0) {" ], "line_no": [ 53, 55,...
static void FUNC_0(SerialState *VAR_0) { do { assert(!(VAR_0->lsr & UART_LSR_TEMT)); if (VAR_0->tsr_retry == 0) { assert(!(VAR_0->lsr & UART_LSR_THRE)); if (VAR_0->fcr & UART_FCR_FE) { assert(!fifo8_is_empty(&VAR_0->xmit_fifo)); VAR_0...
[ "static void FUNC_0(SerialState *VAR_0)\n{", "do {", "assert(!(VAR_0->lsr & UART_LSR_TEMT));", "if (VAR_0->tsr_retry == 0) {", "assert(!(VAR_0->lsr & UART_LSR_THRE));", "if (VAR_0->fcr & UART_FCR_FE) {", "assert(!fifo8_is_empty(&VAR_0->xmit_fifo));", "VAR_0->tsr = fifo8_pop(&VAR_0->xmit_fifo);", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
2,663
void net_slirp_hostfwd_remove(Monitor *mon, const QDict *qdict) { struct in_addr host_addr = { .s_addr = INADDR_ANY }; int host_port; char buf[256] = ""; const char *src_str, *p; SlirpState *s; int is_udp = 0; int err; const char *arg1 = qdict_get_str(qdict, "arg1"); const ...
true
qemu
e30e5eb6136aa3311dad4ca90f6546e05ae98f92
void net_slirp_hostfwd_remove(Monitor *mon, const QDict *qdict) { struct in_addr host_addr = { .s_addr = INADDR_ANY }; int host_port; char buf[256] = ""; const char *src_str, *p; SlirpState *s; int is_udp = 0; int err; const char *arg1 = qdict_get_str(qdict, "arg1"); const ...
{ "code": [ " char buf[256] = \"\";", " if (!src_str || !src_str[0])", " goto fail_syntax;", " get_str_sep(buf, sizeof(buf), &p, ':');" ], "line_no": [ 9, 49, 51, 57 ] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { struct in_addr VAR_2 = { .s_addr = INADDR_ANY }; int VAR_3; char VAR_4[256] = ""; const char *VAR_5, *VAR_6; SlirpState *s; int VAR_7 = 0; int VAR_8; const char *VAR_9 = qdict_get_str(VAR_1, "VAR_9"); const char *VAR_10 = qd...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "struct in_addr VAR_2 = { .s_addr = INADDR_ANY };", "int VAR_3;", "char VAR_4[256] = \"\";", "const char *VAR_5, *VAR_6;", "SlirpState *s;", "int VAR_7 = 0;", "int VAR_8;", "const char *VAR_9 = qdict_get_str(VAR_1, \"VAR_9\");", "const char *VA...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
2,664
static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; unsigned int i, entries; int64_t duration=0; int64_t total_sample_count=0; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; sc = ...
true
FFmpeg
30c3d976f12665d5d13971172aab062a97cb1bce
static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; unsigned int i, entries; int64_t duration=0; int64_t total_sample_count=0; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; sc = ...
{ "code": [ " if (entries >= UINT_MAX / sizeof(*sc->stts_data))", " return -1;" ], "line_no": [ 41, 43 ] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st; MOVStreamContext *sc; unsigned int VAR_3, VAR_4; int64_t duration=0; int64_t total_sample_count=0; if (VAR_0->fc->nb_streams < 1) return 0; st = VAR_0->fc->streams[VAR_0->fc->nb_streams...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st;", "MOVStreamContext *sc;", "unsigned int VAR_3, VAR_4;", "int64_t duration=0;", "int64_t total_sample_count=0;", "if (VAR_0->fc->nb_streams < 1)\nreturn 0;", "st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];"...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 41, 43 ], [ 47 ], [ 49, 51 ], [ 55 ], [ 59 ...
2,666
static int64_t asf_read_pts(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { AVPacket pkt1, *pkt = &pkt1; ASFStream *asf_st; int64_t pts; int64_t pos= *ppos; int i; int64_t start_pos[ASF_MAX_STREAMS]; for(i=0; i<s->nb_streams; i++){ start_pos[i]= p...
false
FFmpeg
ac1d489320f476c18d6a8125f73389aecb73f3d3
static int64_t asf_read_pts(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { AVPacket pkt1, *pkt = &pkt1; ASFStream *asf_st; int64_t pts; int64_t pos= *ppos; int i; int64_t start_pos[ASF_MAX_STREAMS]; for(i=0; i<s->nb_streams; i++){ start_pos[i]= p...
{ "code": [], "line_no": [] }
static int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { AVPacket pkt1, *pkt = &pkt1; ASFStream *asf_st; int64_t pts; int64_t pos= *ppos; int VAR_0; int64_t start_pos[ASF_MAX_STREAMS]; for(VAR_0=0; VAR_0<s->nb_streams; VAR_0++){ start...
[ "static int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit)\n{", "AVPacket pkt1, *pkt = &pkt1;", "ASFStream *asf_st;", "int64_t pts;", "int64_t pos= *ppos;", "int VAR_0;", "int64_t start_pos[ASF_MAX_STREAMS];", "for(VAR_0=0; VAR_0<s->nb_streams; VAR_0++){", "start_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
2,667
static void dequantization_int_97(int x, int y, Jpeg2000Cblk *cblk, Jpeg2000Component *comp, Jpeg2000T1Context *t1, Jpeg2000Band *band) { int i, j; int w = cblk->coord[0][1] - cblk->coord[0][0]; for (j = 0; j < (cblk->coord[1][1] - cblk->co...
false
FFmpeg
f1e173049ecc9de03817385ba8962d14cba779db
static void dequantization_int_97(int x, int y, Jpeg2000Cblk *cblk, Jpeg2000Component *comp, Jpeg2000T1Context *t1, Jpeg2000Band *band) { int i, j; int w = cblk->coord[0][1] - cblk->coord[0][0]; for (j = 0; j < (cblk->coord[1][1] - cblk->co...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, Jpeg2000Cblk *VAR_2, Jpeg2000Component *VAR_3, Jpeg2000T1Context *VAR_4, Jpeg2000Band *VAR_5) { int VAR_6, VAR_7; int VAR_8 = VAR_2->coord[0][1] - VAR_2->coord[0][0]; for (VAR_7 = 0; VAR_7 < (VAR_2->...
[ "static void FUNC_0(int VAR_0, int VAR_1, Jpeg2000Cblk *VAR_2,\nJpeg2000Component *VAR_3,\nJpeg2000T1Context *VAR_4, Jpeg2000Band *VAR_5)\n{", "int VAR_6, VAR_7;", "int VAR_8 = VAR_2->coord[0][1] - VAR_2->coord[0][0];", "for (VAR_7 = 0; VAR_7 < (VAR_2->coord[1][1] - VAR_2->coord[1][0]); ++VAR_7) {", "int32_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
2,668
static void vmxnet3_update_features(VMXNET3State *s) { uint32_t guest_features; int rxcso_supported; guest_features = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, devRead.misc.uptFeatures); rxcso_supported = VMXNET_FLAG_IS_SET(guest_features, UPT1_F_RX...
true
qemu
c508277335e3b6b20cf18e6ea3a35c1fa835c64a
static void vmxnet3_update_features(VMXNET3State *s) { uint32_t guest_features; int rxcso_supported; guest_features = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, devRead.misc.uptFeatures); rxcso_supported = VMXNET_FLAG_IS_SET(guest_features, UPT1_F_RX...
{ "code": [ " guest_features = VMXNET3_READ_DRV_SHARED32(s->drv_shmem," ], "line_no": [ 11 ] }
static void FUNC_0(VMXNET3State *VAR_0) { uint32_t guest_features; int VAR_1; guest_features = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, devRead.misc.uptFeatures); VAR_1 = VMXNET_FLAG_IS_SET(guest_features, UPT1_F_RXCSUM); VAR_0->rx_vlan_st...
[ "static void FUNC_0(VMXNET3State *VAR_0)\n{", "uint32_t guest_features;", "int VAR_1;", "guest_features = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem,\ndevRead.misc.uptFeatures);", "VAR_1 = VMXNET_FLAG_IS_SET(guest_features, UPT1_F_RXCSUM);", "VAR_0->rx_vlan_stripping = VMXNET_FLAG_IS_SET(guest_features, U...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 31 ], [ 33, 35, 37, 39, 41, 43 ], [ 45 ], [ 47 ] ]
2,670
int object_property_get_enum(Object *obj, const char *name, const char *typename, Error **errp) { StringOutputVisitor *sov; StringInputVisitor *siv; char *str; int ret; ObjectProperty *prop = object_property_find(obj, name, errp); EnumProperty *enumprop; ...
true
qemu
4715d42efe8632b0f9d2594a80e917de45e4ef88
int object_property_get_enum(Object *obj, const char *name, const char *typename, Error **errp) { StringOutputVisitor *sov; StringInputVisitor *siv; char *str; int ret; ObjectProperty *prop = object_property_find(obj, name, errp); EnumProperty *enumprop; ...
{ "code": [ " object_property_get(obj, string_output_get_visitor(sov), name, errp);" ], "line_no": [ 49 ] }
int FUNC_0(Object *VAR_0, const char *VAR_1, const char *VAR_2, Error **VAR_3) { StringOutputVisitor *sov; StringInputVisitor *siv; char *VAR_4; int VAR_5; ObjectProperty *prop = object_property_find(VAR_0, VAR_1, VAR_3); EnumProperty *enumprop; if (pr...
[ "int FUNC_0(Object *VAR_0, const char *VAR_1,\nconst char *VAR_2, Error **VAR_3)\n{", "StringOutputVisitor *sov;", "StringInputVisitor *siv;", "char *VAR_4;", "int VAR_5;", "ObjectProperty *prop = object_property_find(VAR_0, VAR_1, VAR_3);", "EnumProperty *enumprop;", "if (prop == NULL) {", "return ...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
2,672
void ahci_init(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports) { qemu_irq *irqs; int i; s->as = as; s->ports = ports; s->dev = g_malloc0(sizeof(AHCIDevice) * ports); ahci_reg_init(s); /* XXX BAR size should be 1k, but that breaks, so bump it to 4k for now */ memo...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
void ahci_init(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports) { qemu_irq *irqs; int i; s->as = as; s->ports = ports; s->dev = g_malloc0(sizeof(AHCIDevice) * ports); ahci_reg_init(s); memory_region_init_io(&s->mem, OBJECT(qdev), &ahci_mem_ops, s, ...
{ "code": [ " s->dev = g_malloc0(sizeof(AHCIDevice) * ports);" ], "line_no": [ 15 ] }
void FUNC_0(AHCIState *VAR_0, DeviceState *VAR_1, AddressSpace *VAR_2, int VAR_3) { qemu_irq *irqs; int VAR_4; VAR_0->VAR_2 = VAR_2; VAR_0->VAR_3 = VAR_3; VAR_0->dev = g_malloc0(sizeof(AHCIDevice) * VAR_3); ahci_reg_init(VAR_0); memory_region_init_io(&VAR_0->mem, OBJECT(VAR_1...
[ "void FUNC_0(AHCIState *VAR_0, DeviceState *VAR_1, AddressSpace *VAR_2, int VAR_3)\n{", "qemu_irq *irqs;", "int VAR_4;", "VAR_0->VAR_2 = VAR_2;", "VAR_0->VAR_3 = VAR_3;", "VAR_0->dev = g_malloc0(sizeof(AHCIDevice) * VAR_3);", "ahci_reg_init(VAR_0);", "memory_region_init_io(&VAR_0->mem, OBJECT(VAR_1), ...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
2,674
static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child)(), int ctx_size, enum MXFMetadataSetType type) { ByteIOContext *pb = mxf->fc->pb; MXFMetadataSet *ctx = ctx_size ? av_mallocz(ctx_size) : mxf; uint64_t klv_end = url_ftell(pb) + klv->length; if (!ctx) retur...
true
FFmpeg
39bb30f6640fe1faf4bbc779a79786028febc95d
static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child)(), int ctx_size, enum MXFMetadataSetType type) { ByteIOContext *pb = mxf->fc->pb; MXFMetadataSet *ctx = ctx_size ? av_mallocz(ctx_size) : mxf; uint64_t klv_end = url_ftell(pb) + klv->length; if (!ctx) retur...
{ "code": [ " ByteIOContext *pb = mxf->fc->pb;", "static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child)(), int ctx_size, enum MXFMetadataSetType type)" ], "line_no": [ 5, 1 ] }
static int FUNC_0(MXFContext *VAR_0, KLVPacket *VAR_1, int (*VAR_2)(), int VAR_3, enum MXFMetadataSetType VAR_4) { ByteIOContext *pb = VAR_0->fc->pb; MXFMetadataSet *ctx = VAR_3 ? av_mallocz(VAR_3) : VAR_0; uint64_t klv_end = url_ftell(pb) + VAR_1->length; if (!ctx) return -1; while...
[ "static int FUNC_0(MXFContext *VAR_0, KLVPacket *VAR_1, int (*VAR_2)(), int VAR_3, enum MXFMetadataSetType VAR_4)\n{", "ByteIOContext *pb = VAR_0->fc->pb;", "MXFMetadataSet *ctx = VAR_3 ? av_mallocz(VAR_3) : VAR_0;", "uint64_t klv_end = url_ftell(pb) + VAR_1->length;", "if (!ctx)\nreturn -1;", "while (url...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
2,675
void do_ddiv (void) { if (T1 != 0) { lldiv_t res = lldiv((int64_t)T0, (int64_t)T1); env->LO[0][env->current_tc] = res.quot; env->HI[0][env->current_tc] = res.rem; } }
true
qemu
306ab3e86a94b7547883ca9dac0c86122bb8622c
void do_ddiv (void) { if (T1 != 0) { lldiv_t res = lldiv((int64_t)T0, (int64_t)T1); env->LO[0][env->current_tc] = res.quot; env->HI[0][env->current_tc] = res.rem; } }
{ "code": [ " lldiv_t res = lldiv((int64_t)T0, (int64_t)T1);", " env->LO[0][env->current_tc] = res.quot;", " env->HI[0][env->current_tc] = res.rem;" ], "line_no": [ 7, 9, 11 ] }
void FUNC_0 (void) { if (T1 != 0) { lldiv_t res = lldiv((int64_t)T0, (int64_t)T1); env->LO[0][env->current_tc] = res.quot; env->HI[0][env->current_tc] = res.rem; } }
[ "void FUNC_0 (void)\n{", "if (T1 != 0) {", "lldiv_t res = lldiv((int64_t)T0, (int64_t)T1);", "env->LO[0][env->current_tc] = res.quot;", "env->HI[0][env->current_tc] = res.rem;", "}", "}" ]
[ 0, 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
2,678
static inline void idct(int16_t *block) { int64_t __attribute__((aligned(8))) align_tmp[16]; int16_t * const temp= (int16_t*)align_tmp; asm volatile( #if 0 //Alternative, simpler variant #define ROW_IDCT(src0, src4, src1, src5, dst, rounder, shift) \ "movq " #src0 ", %%mm0 ...
true
FFmpeg
347be47226b979b4b32140ef87aba36570c1fe43
static inline void idct(int16_t *block) { int64_t __attribute__((aligned(8))) align_tmp[16]; int16_t * const temp= (int16_t*)align_tmp; asm volatile( #if 0 #define ROW_IDCT(src0, src4, src1, src5, dst, rounder, shift) \ "movq " #src0 ", %%mm0 \n\t" \ "movq "...
{ "code": [ "#define COL_IDCT(src0, src4, src1, src5, dst, rounder, shift) \\", " #rounder \", %%mm4 \\n\\t\"\\", " #rounder \", %%mm0 \\n\\t\"\\", "COL_IDCT( (%1), 64(%1), 32(%1), 96(%1), 0(%0),/nop, 20)", "COL_IDCT( 8(%1), 72(%1), 40(%1), 104(%1),...
static inline void FUNC_0(int16_t *VAR_0) { int64_t __attribute__((aligned(8))) align_tmp[16]; int16_t * const temp= (int16_t*)align_tmp; asm volatile( #if 0 #define ROW_IDCT(src0, src4, src1, src5, dst, rounder, shift) \ "movq " #src0 ", %%mm0 \n\t" \ "movq...
[ "static inline void FUNC_0(int16_t *VAR_0)\n{", "int64_t __attribute__((aligned(8))) align_tmp[16];", "int16_t * const temp= (int16_t*)align_tmp;", "asm volatile(\n#if 0\n#define ROW_IDCT(src0, src4, src1, src5, dst, rounder, shift) \\\n\"movq \" #src0 \", %%mm0 \\n\\t\" \\\n\"movq \" #src4 \", %%mm1...
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 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, 71, 73, 75, 77...
2,679
static int flush_packet(AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts, int64_t scr, int trailer_size) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream = ctx->streams[stream_index]->priv_data; uint8_t *buf_ptr; int size, payload_size, startcode, i...
true
FFmpeg
0871ae1a930122f7124358a0ce3caf81876913a9
static int flush_packet(AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts, int64_t scr, int trailer_size) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream = ctx->streams[stream_index]->priv_data; uint8_t *buf_ptr; int size, payload_size, startcode, i...
{ "code": [ " if(av_fifo_generic_read(&stream->fifo, payload_size - stuffing_size, &put_buffer, ctx->pb) < 0)", " return -1;" ], "line_no": [ 555, 557 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4, int VAR_5) { MpegMuxContext *s = VAR_0->priv_data; StreamInfo *stream = VAR_0->streams[VAR_1]->priv_data; uint8_t *buf_ptr; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int64_t VAR_3, int64_t VAR_4, int VAR_5)\n{", "MpegMuxContext *s = VAR_0->priv_data;", "StreamInfo *stream = VAR_0->streams[VAR_1]->priv_data;", "uint8_t *buf_ptr;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "int VAR_13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37, 39 ], [ 41, 45 ], [ 49 ], [ 53 ], [ 55 ...
2,682
static void mux_chr_update_read_handler(CharDriverState *chr, GMainContext *context) { MuxDriver *d = chr->opaque; int idx; if (d->mux_cnt >= MAX_MUX) { fprintf(stderr, "Cannot add I/O handlers, MUX array is full\n"); return; } if ...
true
qemu
692d88b4085559f1254d0e04d64a849ce8ab5932
static void mux_chr_update_read_handler(CharDriverState *chr, GMainContext *context) { MuxDriver *d = chr->opaque; int idx; if (d->mux_cnt >= MAX_MUX) { fprintf(stderr, "Cannot add I/O handlers, MUX array is full\n"); return; } if ...
{ "code": [ " int idx;", " if (chr->mux_idx == -1) {", " chr->mux_idx = d->mux_cnt++;", " idx = chr->mux_idx;", " d->ext_opaque[idx] = chr->handler_opaque;", " d->chr_can_read[idx] = chr->chr_can_read;", " d->chr_read[idx] = chr->chr_read;", " d->chr_event[i...
static void FUNC_0(CharDriverState *VAR_0, GMainContext *VAR_1) { MuxDriver *d = VAR_0->opaque; int VAR_2; if (d->mux_cnt >= MAX_MUX) { fprintf(stderr, "Cannot add I/O handlers, MUX array is full\n"); return; } if (VAR_0->mux_idx =...
[ "static void FUNC_0(CharDriverState *VAR_0,\nGMainContext *VAR_1)\n{", "MuxDriver *d = VAR_0->opaque;", "int VAR_2;", "if (d->mux_cnt >= MAX_MUX) {", "fprintf(stderr, \"Cannot add I/O handlers, MUX array is full\\n\");", "return;", "}", "if (VAR_0->mux_idx == -1) {", "VAR_0->mux_idx = d->mux_cnt++;"...
[ 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47, 49, 51, 53 ], [ 55 ...
2,683
static inline void RENAME(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y) { int yalpha1=yalpha^4095; int uvalpha1=uvalpha^4095; int i; #if 0 //isn't used if (flags&...
true
FFmpeg
8b2fce0d3f5a56c40c28899c9237210ca8f9cf75
static inline void RENAME(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y) { int yalpha1=yalpha^4095; int uvalpha1=uvalpha^4095; int i; #if 0 if (flags&SWS_FULL_CHR...
{ "code": [ " int V=((uvbuf0[i+2048]*uvalpha1+uvbuf1[i+2048]*uvalpha)>>19);", " int V=((uvbuf0[i+2048]*uvalpha1+uvbuf1[i+2048]*uvalpha)>>19);", " int V=((uvbuf0[i+2048]*uvalpha1+uvbuf1[i+2048]*uvalpha)>>19);", " int V=((uvbuf0...
static inline void FUNC_0(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y) { int VAR_0=yalpha^4095; int VAR_1=uvalpha^4095; int VAR_2; #if 0 if (flags&SWS_FULL_CHR_...
[ "static inline void FUNC_0(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1,\nuint8_t *dest, int dstW, int yalpha, int uvalpha, int y)\n{", "int VAR_0=yalpha^4095;", "int VAR_1=uvalpha^4095;", "int VAR_2;", "#if 0\nif (flags&SWS_FULL_CHR_H_INT)\n{", "switch(ds...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17, 19 ], [ 21, 23 ], [ 25, 27, 29, 35, 37, 39, 43, 45, 47, 51, 53, 57, 59, 61, 65, 67, 69, 71 ], [ 73 ], [ 75, 77,...
2,684
static void apply_delogo(uint8_t *dst, int dst_linesize, uint8_t *src, int src_linesize, int w, int h, AVRational sar, int logo_x, int logo_y, int logo_w, int logo_h, unsigned int band, int show, int direct) { ...
true
FFmpeg
3e5b02bdb8e5b35564893e6618c217e4c949c743
static void apply_delogo(uint8_t *dst, int dst_linesize, uint8_t *src, int src_linesize, int w, int h, AVRational sar, int logo_x, int logo_y, int logo_w, int logo_h, unsigned int band, int show, int direct) { ...
{ "code": [ " if (show && (dist == band-1))", " *xdst = 0;" ], "line_no": [ 169, 171 ] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5, AVRational VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10, unsigned int VAR_11, int VAR_12, int VAR_13) { int V...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1,\nuint8_t *VAR_2, int VAR_3,\nint VAR_4, int VAR_5, AVRational VAR_6,\nint VAR_7, int VAR_8, int VAR_9, int VAR_10,\nunsigned int VAR_11, int VAR_12, int VAR_13)\n{", "int VAR_14, VAR_15;", "uint64_t interp, weightl, weightr, weightt, weightb;", "uint8_t *xdst, *x...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
2,686
static long getrampagesize(void) { long hpsize = LONG_MAX; Object *memdev_root; if (mem_path) { return gethugepagesize(mem_path); } /* it's possible we have memory-backend objects with * hugepage-backed RAM. these may get mapped into system * address space via -numa pa...
true
qemu
159d2e39a8602c369542a92573a52acb5f5f58f2
static long getrampagesize(void) { long hpsize = LONG_MAX; Object *memdev_root; if (mem_path) { return gethugepagesize(mem_path); } memdev_root = object_resolve_path("/objects", NULL); if (!memdev_root) { return getpagesize(); } ob...
{ "code": [ " if (hpsize == LONG_MAX) {", " if (nb_numa_nodes == 0 && hpsize > getpagesize()) {" ], "line_no": [ 53, 61 ] }
static long FUNC_0(void) { long VAR_0 = LONG_MAX; Object *memdev_root; if (mem_path) { return gethugepagesize(mem_path); } memdev_root = object_resolve_path("/objects", NULL); if (!memdev_root) { return getpagesize(); } object_chil...
[ "static long FUNC_0(void)\n{", "long VAR_0 = LONG_MAX;", "Object *memdev_root;", "if (mem_path) {", "return gethugepagesize(mem_path);", "}", "memdev_root = object_resolve_path(\"/objects\", NULL);", "if (!memdev_root) {", "return getpagesize();", "}", "object_child_foreach(memdev_root, find_max...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 65 ], [ 67 ], [ 69 ], [ 71 ], [ 73...
2,687
static int kvm_put_xsave(CPUState *env) { #ifdef KVM_CAP_XSAVE int i; struct kvm_xsave* xsave; uint16_t cwd, swd, twd, fop; if (!kvm_has_xsave()) return kvm_put_fpu(env); xsave = qemu_memalign(4096, sizeof(struct kvm_xsave)); memset(xsave, 0, sizeof(struct kvm_xsave)); ...
true
qemu
0f53994f7ad4d34e0a0a4a10cb71b2f936e25e3f
static int kvm_put_xsave(CPUState *env) { #ifdef KVM_CAP_XSAVE int i; struct kvm_xsave* xsave; uint16_t cwd, swd, twd, fop; if (!kvm_has_xsave()) return kvm_put_fpu(env); xsave = qemu_memalign(4096, sizeof(struct kvm_xsave)); memset(xsave, 0, sizeof(struct kvm_xsave)); ...
{ "code": [ " int i;", " return kvm_vcpu_ioctl(env, KVM_SET_XSAVE, xsave);" ], "line_no": [ 7, 57 ] }
static int FUNC_0(CPUState *VAR_0) { #ifdef KVM_CAP_XSAVE int i; struct kvm_xsave* xsave; uint16_t cwd, swd, twd, fop; if (!kvm_has_xsave()) return kvm_put_fpu(VAR_0); xsave = qemu_memalign(4096, sizeof(struct kvm_xsave)); memset(xsave, 0, sizeof(struct kvm_xsave)); cwd...
[ "static int FUNC_0(CPUState *VAR_0)\n{", "#ifdef KVM_CAP_XSAVE\nint i;", "struct kvm_xsave* xsave;", "uint16_t cwd, swd, twd, fop;", "if (!kvm_has_xsave())\nreturn kvm_put_fpu(VAR_0);", "xsave = qemu_memalign(4096, sizeof(struct kvm_xsave));", "memset(xsave, 0, sizeof(struct kvm_xsave));", "cwd = swd ...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ...