id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
1,346
static int read_decoding_params(MLPDecodeContext *m, GetBitContext *gbp, unsigned int substr) { SubStream *s = &m->substream[substr]; unsigned int ch; if (s->param_presence_flags & PARAM_PRESENCE) if (get_bits1(gbp)) s->param_presence_flags = get_bits(gbp...
false
FFmpeg
b864098c168f601f7c7393893927a4fd3f79ae5d
static int read_decoding_params(MLPDecodeContext *m, GetBitContext *gbp, unsigned int substr) { SubStream *s = &m->substream[substr]; unsigned int ch; if (s->param_presence_flags & PARAM_PRESENCE) if (get_bits1(gbp)) s->param_presence_flags = get_bits(gbp...
{ "code": [], "line_no": [] }
static int FUNC_0(MLPDecodeContext *VAR_0, GetBitContext *VAR_1, unsigned int VAR_2) { SubStream *s = &VAR_0->substream[VAR_2]; unsigned int VAR_3; if (s->param_presence_flags & PARAM_PRESENCE) if (get_bits1(VAR_1)) s->param_presence_flags = get_bits(VAR_...
[ "static int FUNC_0(MLPDecodeContext *VAR_0, GetBitContext *VAR_1,\nunsigned int VAR_2)\n{", "SubStream *s = &VAR_0->substream[VAR_2];", "unsigned int VAR_3;", "if (s->param_presence_flags & PARAM_PRESENCE)\nif (get_bits1(VAR_1))\ns->param_presence_flags = get_bits(VAR_1, 8);", "if (s->param_presence_flags &...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 53, 55, 57 ...
1,348
static uint64_t pxa2xx_pic_mem_read(void *opaque, hwaddr offset, unsigned size) { PXA2xxPICState *s = (PXA2xxPICState *) opaque; switch (offset) { case ICIP: /* IRQ Pending register */ return s->int_pending[0] & ~s->is_fiq[0] & s->int_enabled[0]; case...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static uint64_t pxa2xx_pic_mem_read(void *opaque, hwaddr offset, unsigned size) { PXA2xxPICState *s = (PXA2xxPICState *) opaque; switch (offset) { case ICIP: return s->int_pending[0] & ~s->is_fiq[0] & s->int_enabled[0]; case ICIP2: return s...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr offset, unsigned size) { PXA2xxPICState *s = (PXA2xxPICState *) opaque; switch (offset) { case ICIP: return s->int_pending[0] & ~s->is_fiq[0] & s->int_enabled[0]; case ICIP2: return s->int_pending...
[ "static uint64_t FUNC_0(void *opaque, hwaddr offset,\nunsigned size)\n{", "PXA2xxPICState *s = (PXA2xxPICState *) opaque;", "switch (offset) {", "case ICIP:\nreturn s->int_pending[0] & ~s->is_fiq[0] & s->int_enabled[0];", "case ICIP2:\nreturn s->int_pending[1] & ~s->is_fiq[1] & s->int_enabled[1];", "case ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47 ], [ 49, 51 ], [ 53, 55...
1,349
static inline void gen_op_addl_A0_seg(DisasContext *s, int reg) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, segs[reg].base)); if (CODE64(s)) { tcg_gen_ext32u_tl(cpu_A0, cpu_A0); tcg_gen_add_tl(cpu_A0, cpu_A0, cpu_tmp0); } else { tcg_gen_add_tl(cpu_A0, cpu_A0, cpu_...
false
qemu
3558f8055f37a34762b7a2a0f02687e6eeab893d
static inline void gen_op_addl_A0_seg(DisasContext *s, int reg) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, segs[reg].base)); if (CODE64(s)) { tcg_gen_ext32u_tl(cpu_A0, cpu_A0); tcg_gen_add_tl(cpu_A0, cpu_A0, cpu_tmp0); } else { tcg_gen_add_tl(cpu_A0, cpu_A0, cpu_...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, segs[VAR_1].base)); if (CODE64(VAR_0)) { tcg_gen_ext32u_tl(cpu_A0, cpu_A0); tcg_gen_add_tl(cpu_A0, cpu_A0, cpu_tmp0); } else { tcg_gen_add_tl(cpu_A0, cpu_A0, cpu_...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUX86State, segs[VAR_1].base));", "if (CODE64(VAR_0)) {", "tcg_gen_ext32u_tl(cpu_A0, cpu_A0);", "tcg_gen_add_tl(cpu_A0, cpu_A0, cpu_tmp0);", "} else {", "tcg_gen_add_tl(cpu_A0, cpu_A0, cpu_tmp0);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
1,350
void vm_start(void) { if (!vm_running) { cpu_enable_ticks(); vm_running = 1; vm_state_notify(1, 0); qemu_rearm_alarm_timer(alarm_timer); resume_all_vcpus(); } }
false
qemu
3a720b14b9e09f8553832b835ede9933b70fe9a9
void vm_start(void) { if (!vm_running) { cpu_enable_ticks(); vm_running = 1; vm_state_notify(1, 0); qemu_rearm_alarm_timer(alarm_timer); resume_all_vcpus(); } }
{ "code": [], "line_no": [] }
void FUNC_0(void) { if (!vm_running) { cpu_enable_ticks(); vm_running = 1; vm_state_notify(1, 0); qemu_rearm_alarm_timer(alarm_timer); resume_all_vcpus(); } }
[ "void FUNC_0(void)\n{", "if (!vm_running) {", "cpu_enable_ticks();", "vm_running = 1;", "vm_state_notify(1, 0);", "qemu_rearm_alarm_timer(alarm_timer);", "resume_all_vcpus();", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
1,352
static int raw_pread(BlockDriverState *bs, int64_t offset, uint8_t *buf, int count) { BDRVRawState *s = bs->opaque; int size, ret, shift, sum; sum = 0; if (s->aligned_buf != NULL) { if (offset & 0x1ff) { /* align offset on a 512 bytes boundary */ ...
false
qemu
581b9e29f36eec5de0779c3dbade980e4405d92e
static int raw_pread(BlockDriverState *bs, int64_t offset, uint8_t *buf, int count) { BDRVRawState *s = bs->opaque; int size, ret, shift, sum; sum = 0; if (s->aligned_buf != NULL) { if (offset & 0x1ff) { shift = offset & 0x1ff; ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2, int VAR_3) { BDRVRawState *s = VAR_0->opaque; int VAR_4, VAR_5, VAR_6, VAR_7; VAR_7 = 0; if (s->aligned_buf != NULL) { if (VAR_1 & 0x1ff) { VAR_6 = VAR_1 & 0x...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "BDRVRawState *s = VAR_0->opaque;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "VAR_7 = 0;", "if (s->aligned_buf != NULL) {", "if (VAR_1 & 0x1ff) {", "VAR_6 = VAR_1 & 0x1ff;", "VAR_4 = (VAR_6 + VAR_3 + 0x1ff) & ~0x1ff...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 21 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
1,353
address_space_translate_internal(AddressSpaceDispatch *d, hwaddr addr, hwaddr *xlat, hwaddr *plen, bool resolve_subpage) { MemoryRegionSection *section; Int128 diff, diff_page; section = address_space_lookup_region(d, addr, resolve_subpage); /* Compute offset wit...
false
qemu
a87f39543a9259f671c5413723311180ee2ad2a8
address_space_translate_internal(AddressSpaceDispatch *d, hwaddr addr, hwaddr *xlat, hwaddr *plen, bool resolve_subpage) { MemoryRegionSection *section; Int128 diff, diff_page; section = address_space_lookup_region(d, addr, resolve_subpage); addr -= section...
{ "code": [], "line_no": [] }
FUNC_0(AddressSpaceDispatch *VAR_0, hwaddr VAR_1, hwaddr *VAR_2, hwaddr *VAR_3, bool VAR_4) { MemoryRegionSection *section; Int128 diff, diff_page; section = address_space_lookup_region(VAR_0, VAR_1, VAR_4); VAR_1 -= section->offset_within_address_space; ...
[ "FUNC_0(AddressSpaceDispatch *VAR_0, hwaddr VAR_1, hwaddr *VAR_2,\nhwaddr *VAR_3, bool VAR_4)\n{", "MemoryRegionSection *section;", "Int128 diff, diff_page;", "section = address_space_lookup_region(VAR_0, VAR_1, VAR_4);", "VAR_1 -= section->offset_within_address_space;", "*VAR_2 = VAR_1 + section->offset_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
1,354
void checkasm_report(const char *name, ...) { static int prev_checked, prev_failed, max_length; if (state.num_checked > prev_checked) { print_cpu_name(); if (*name) { int pad_length = max_length; va_list arg; fprintf(stderr, " - "); ...
false
FFmpeg
65c14801527068fcaf729eeffc142ffd4682a21a
void checkasm_report(const char *name, ...) { static int prev_checked, prev_failed, max_length; if (state.num_checked > prev_checked) { print_cpu_name(); if (*name) { int pad_length = max_length; va_list arg; fprintf(stderr, " - "); ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, ...) { static int VAR_1, VAR_2, VAR_3; if (state.num_checked > VAR_1) { print_cpu_name(); if (*VAR_0) { int VAR_4 = VAR_3; va_list arg; fprintf(stderr, " - "); va_start(arg, VAR_0); VAR_4 -...
[ "void FUNC_0(const char *VAR_0, ...)\n{", "static int VAR_1, VAR_2, VAR_3;", "if (state.num_checked > VAR_1) {", "print_cpu_name();", "if (*VAR_0) {", "int VAR_4 = VAR_3;", "va_list arg;", "fprintf(stderr, \" - \");", "va_start(arg, VAR_0);", "VAR_4 -= vfprintf(stderr, VAR_0, arg);", "va_end(arg...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 51 ], [ 53...
1,355
static int rtp_new_av_stream(HTTPContext *c, int stream_index, struct sockaddr_in *dest_addr, HTTPContext *rtsp_c) { AVFormatContext *ctx; AVStream *st; char *ipaddr; URLContext *h = NULL; uint8_t *dummy_buf; int max_packet_size;...
false
FFmpeg
403ee835e7913eb9536b22c2b22edfdd700166a9
static int rtp_new_av_stream(HTTPContext *c, int stream_index, struct sockaddr_in *dest_addr, HTTPContext *rtsp_c) { AVFormatContext *ctx; AVStream *st; char *ipaddr; URLContext *h = NULL; uint8_t *dummy_buf; int max_packet_size;...
{ "code": [], "line_no": [] }
static int FUNC_0(HTTPContext *VAR_0, int VAR_1, struct sockaddr_in *VAR_2, HTTPContext *VAR_3) { AVFormatContext *ctx; AVStream *st; char *VAR_4; URLContext *h = NULL; uint8_t *dummy_buf; int VAR_5; ctx = avformat_a...
[ "static int FUNC_0(HTTPContext *VAR_0,\nint VAR_1, struct sockaddr_in *VAR_2,\nHTTPContext *VAR_3)\n{", "AVFormatContext *ctx;", "AVStream *st;", "char *VAR_4;", "URLContext *h = NULL;", "uint8_t *dummy_buf;", "int VAR_5;", "ctx = avformat_alloc_context();", "if (!ctx)\nreturn -1;", "ctx->oformat ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47, 49, 51 ], [ 53, 55, 57,...
1,357
float32 HELPER(ucf64_muls)(float32 a, float32 b, CPUUniCore32State *env) { return float32_mul(a, b, &env->ucf64.fp_status); }
false
qemu
e8ede0a8bb5298a6979bcf7ed84ef64a64a4e3fe
float32 HELPER(ucf64_muls)(float32 a, float32 b, CPUUniCore32State *env) { return float32_mul(a, b, &env->ucf64.fp_status); }
{ "code": [], "line_no": [] }
float32 FUNC_0(ucf64_muls)(float32 a, float32 b, CPUUniCore32State *env) { return float32_mul(a, b, &env->ucf64.fp_status); }
[ "float32 FUNC_0(ucf64_muls)(float32 a, float32 b, CPUUniCore32State *env)\n{", "return float32_mul(a, b, &env->ucf64.fp_status);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
1,358
static void qemu_chr_parse_serial(QemuOpts *opts, ChardevBackend *backend, Error **errp) { const char *device = qemu_opt_get(opts, "path"); if (device == NULL) { error_setg(errp, "chardev: serial/tty: no device path given"); return; } backend->...
false
qemu
130257dc443574a9da91dc293665be2cfc40245a
static void qemu_chr_parse_serial(QemuOpts *opts, ChardevBackend *backend, Error **errp) { const char *device = qemu_opt_get(opts, "path"); if (device == NULL) { error_setg(errp, "chardev: serial/tty: no device path given"); return; } backend->...
{ "code": [], "line_no": [] }
static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1, Error **VAR_2) { const char *VAR_3 = qemu_opt_get(VAR_0, "path"); if (VAR_3 == NULL) { error_setg(VAR_2, "chardev: serial/tty: no VAR_3 path given"); return; } VAR_1->serial = g_new0(Ch...
[ "static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,\nError **VAR_2)\n{", "const char *VAR_3 = qemu_opt_get(VAR_0, \"path\");", "if (VAR_3 == NULL) {", "error_setg(VAR_2, \"chardev: serial/tty: no VAR_3 path given\");", "return;", "}", "VAR_1->serial = g_new0(ChardevHostdev, 1);", "VAR_1->seria...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
1,359
static void *rcu_update_perf_test(void *arg) { long long n_updates_local = 0; rcu_register_thread(); *(struct rcu_reader_data **)arg = &rcu_reader; atomic_inc(&nthreadsrunning); while (goflag == GOFLAG_INIT) { g_usleep(1000); } while (goflag == GOFLAG_RUN) { syn...
false
qemu
8a5956ad6392f115521dad774055c737c49fb0dd
static void *rcu_update_perf_test(void *arg) { long long n_updates_local = 0; rcu_register_thread(); *(struct rcu_reader_data **)arg = &rcu_reader; atomic_inc(&nthreadsrunning); while (goflag == GOFLAG_INIT) { g_usleep(1000); } while (goflag == GOFLAG_RUN) { syn...
{ "code": [], "line_no": [] }
static void *FUNC_0(void *VAR_0) { long long VAR_1 = 0; rcu_register_thread(); *(struct rcu_reader_data **)VAR_0 = &rcu_reader; atomic_inc(&nthreadsrunning); while (goflag == GOFLAG_INIT) { g_usleep(1000); } while (goflag == GOFLAG_RUN) { synchronize_rcu(); ...
[ "static void *FUNC_0(void *VAR_0)\n{", "long long VAR_1 = 0;", "rcu_register_thread();", "*(struct rcu_reader_data **)VAR_0 = &rcu_reader;", "atomic_inc(&nthreadsrunning);", "while (goflag == GOFLAG_INIT) {", "g_usleep(1000);", "}", "while (goflag == GOFLAG_RUN) {", "synchronize_rcu();", "VAR_1+...
[ 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 ], [ 35 ], [ 37 ], [ 39 ] ]
1,362
static int tpm_passthrough_unix_transfer(TPMPassthruState *tpm_pt, const TPMLocality *locty_data) { return tpm_passthrough_unix_tx_bufs(tpm_pt, locty_data->w_buffer.buffer, locty_data->w_off...
false
qemu
fd859081453f94c3cbd6527289e41b7fddbf645f
static int tpm_passthrough_unix_transfer(TPMPassthruState *tpm_pt, const TPMLocality *locty_data) { return tpm_passthrough_unix_tx_bufs(tpm_pt, locty_data->w_buffer.buffer, locty_data->w_off...
{ "code": [], "line_no": [] }
static int FUNC_0(TPMPassthruState *VAR_0, const TPMLocality *VAR_1) { return tpm_passthrough_unix_tx_bufs(VAR_0, VAR_1->w_buffer.buffer, VAR_1->w_offset, ...
[ "static int FUNC_0(TPMPassthruState *VAR_0,\nconst TPMLocality *VAR_1)\n{", "return tpm_passthrough_unix_tx_bufs(VAR_0,\nVAR_1->w_buffer.buffer,\nVAR_1->w_offset,\nVAR_1->r_buffer.buffer,\nVAR_1->r_buffer.size);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11, 13, 15 ], [ 17 ] ]
1,363
static void lsi_transfer_data(SCSIRequest *req, uint32_t len) { LSIState *s = DO_UPCAST(LSIState, dev.qdev, req->bus->qbus.parent); int out; if (s->waiting == 1 || !s->current || req->hba_private != s->current || (lsi_irq_on_rsl(s) && !(s->scntl1 & LSI_SCNTL1_CON))) { if (lsi_queue_r...
false
qemu
8f6e699ddbcad32480fa64796ccf44cbaf5b4b91
static void lsi_transfer_data(SCSIRequest *req, uint32_t len) { LSIState *s = DO_UPCAST(LSIState, dev.qdev, req->bus->qbus.parent); int out; if (s->waiting == 1 || !s->current || req->hba_private != s->current || (lsi_irq_on_rsl(s) && !(s->scntl1 & LSI_SCNTL1_CON))) { if (lsi_queue_r...
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIRequest *VAR_0, uint32_t VAR_1) { LSIState *s = DO_UPCAST(LSIState, dev.qdev, VAR_0->bus->qbus.parent); int VAR_2; if (s->waiting == 1 || !s->current || VAR_0->hba_private != s->current || (lsi_irq_on_rsl(s) && !(s->scntl1 & LSI_SCNTL1_CON))) { if (lsi_queue_re...
[ "static void FUNC_0(SCSIRequest *VAR_0, uint32_t VAR_1)\n{", "LSIState *s = DO_UPCAST(LSIState, dev.qdev, VAR_0->bus->qbus.parent);", "int VAR_2;", "if (s->waiting == 1 || !s->current || VAR_0->hba_private != s->current ||\n(lsi_irq_on_rsl(s) && !(s->scntl1 & LSI_SCNTL1_CON))) {", "if (lsi_queue_req(s, VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
1,364
void tlb_set_page(CPUArchState *env, target_ulong vaddr, hwaddr paddr, int prot, int mmu_idx, target_ulong size) { MemoryRegionSection *section; unsigned int index; target_ulong address; target_ulong code_address; uintptr_t addend; CPUTLBEntry *te; ...
false
qemu
149f54b53b7666a3facd45e86eece60ce7d3b114
void tlb_set_page(CPUArchState *env, target_ulong vaddr, hwaddr paddr, int prot, int mmu_idx, target_ulong size) { MemoryRegionSection *section; unsigned int index; target_ulong address; target_ulong code_address; uintptr_t addend; CPUTLBEntry *te; ...
{ "code": [], "line_no": [] }
void FUNC_0(CPUArchState *VAR_0, target_ulong VAR_1, hwaddr VAR_2, int VAR_3, int VAR_4, target_ulong VAR_5) { MemoryRegionSection *section; unsigned int VAR_6; target_ulong address; target_ulong code_address; uintptr_t addend; CPUTLBEntry *te; h...
[ "void FUNC_0(CPUArchState *VAR_0, target_ulong VAR_1,\nhwaddr VAR_2, int VAR_3,\nint VAR_4, target_ulong VAR_5)\n{", "MemoryRegionSection *section;", "unsigned int VAR_6;", "target_ulong address;", "target_ulong code_address;", "uintptr_t addend;", "CPUTLBEntry *te;", "hwaddr iotlb;", "assert(VAR_5 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39, 41 ], [ 43, 47 ], [ 49 ], [ 53 ...
1,365
void memory_region_set_address(MemoryRegion *mr, hwaddr addr) { MemoryRegion *parent = mr->parent; int priority = mr->priority; bool may_overlap = mr->may_overlap; if (addr == mr->addr || !parent) { mr->addr = addr; return; } memory_region_transaction_begin(); m...
false
qemu
3fb5bf5730b90c08d5d1c027900efae210d9b326
void memory_region_set_address(MemoryRegion *mr, hwaddr addr) { MemoryRegion *parent = mr->parent; int priority = mr->priority; bool may_overlap = mr->may_overlap; if (addr == mr->addr || !parent) { mr->addr = addr; return; } memory_region_transaction_begin(); m...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1) { MemoryRegion *parent = VAR_0->parent; int VAR_2 = VAR_0->VAR_2; bool may_overlap = VAR_0->may_overlap; if (VAR_1 == VAR_0->VAR_1 || !parent) { VAR_0->VAR_1 = VAR_1; return; } memory_region_transaction_begin(); mem...
[ "void FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1)\n{", "MemoryRegion *parent = VAR_0->parent;", "int VAR_2 = VAR_0->VAR_2;", "bool may_overlap = VAR_0->may_overlap;", "if (VAR_1 == VAR_0->VAR_1 || !parent) {", "VAR_0->VAR_1 = VAR_1;", "return;", "}", "memory_region_transaction_begin();", "memory_reg...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
1,367
void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size) { int i; unsigned char __align8 vector128[8] = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 }; movq_m2r(*vector128, mm1); for (i = 0; i < 8; i++) { movq_m2r(*(block), mm0); packss...
false
FFmpeg
7daabccb5d36e9bf649d157ab14ccb2a016f1c53
void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size) { int i; unsigned char __align8 vector128[8] = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 }; movq_m2r(*vector128, mm1); for (i = 0; i < 8; i++) { movq_m2r(*(block), mm0); packss...
{ "code": [], "line_no": [] }
void FUNC_0(const DCTELEM *VAR_0, uint8_t *VAR_1, int VAR_2) { int VAR_3; unsigned char VAR_4 vector128[8] = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 }; movq_m2r(*vector128, mm1); for (VAR_3 = 0; VAR_3 < 8; VAR_3++) { movq_m2r(*(VAR_0), mm0); packsswb_m2r(*(VAR_0 ...
[ "void FUNC_0(const DCTELEM *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "int VAR_3;", "unsigned char VAR_4 vector128[8] =\n{ 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 };", "movq_m2r(*vector128, mm1);", "for (VAR_3 = 0; VAR_3 < 8; VAR_3++) {", "movq_m2r(*(VAR_0), mm0);", "packsswb_m2r(*(VAR_0 + 4), mm0);...
[ 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 ] ]
1,368
static void gd_mouse_mode_change(Notifier *notify, void *data) { gd_update_cursor(container_of(notify, GtkDisplayState, mouse_mode_notifier), FALSE); }
false
qemu
800b0e814bef7cd14ae2bce149c09d70676e93fb
static void gd_mouse_mode_change(Notifier *notify, void *data) { gd_update_cursor(container_of(notify, GtkDisplayState, mouse_mode_notifier), FALSE); }
{ "code": [], "line_no": [] }
static void FUNC_0(Notifier *VAR_0, void *VAR_1) { gd_update_cursor(container_of(VAR_0, GtkDisplayState, mouse_mode_notifier), FALSE); }
[ "static void FUNC_0(Notifier *VAR_0, void *VAR_1)\n{", "gd_update_cursor(container_of(VAR_0, GtkDisplayState, mouse_mode_notifier),\nFALSE);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
1,369
static void loop_filter(H264Context *h, int start_x, int end_x){ MpegEncContext * const s = &h->s; uint8_t *dest_y, *dest_cb, *dest_cr; int linesize, uvlinesize, mb_x, mb_y; const int end_mb_y= s->mb_y + FRAME_MBAFF; const int old_slice_type= h->slice_type; const int pixel_shift = h->pixe...
false
FFmpeg
4e987f8282ff7658a6f804b9db39954bb59fa72e
static void loop_filter(H264Context *h, int start_x, int end_x){ MpegEncContext * const s = &h->s; uint8_t *dest_y, *dest_cb, *dest_cr; int linesize, uvlinesize, mb_x, mb_y; const int end_mb_y= s->mb_y + FRAME_MBAFF; const int old_slice_type= h->slice_type; const int pixel_shift = h->pixe...
{ "code": [], "line_no": [] }
static void FUNC_0(H264Context *VAR_0, int VAR_1, int VAR_2){ MpegEncContext * const s = &VAR_0->s; uint8_t *dest_y, *dest_cb, *dest_cr; int VAR_3, VAR_4, VAR_5, VAR_6; const int VAR_7= s->VAR_6 + FRAME_MBAFF; const int VAR_8= VAR_0->slice_type; const int VAR_9 = VAR_0->VAR_9; if(V...
[ "static void FUNC_0(H264Context *VAR_0, int VAR_1, int VAR_2){", "MpegEncContext * const s = &VAR_0->s;", "uint8_t *dest_y, *dest_cb, *dest_cr;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "const int VAR_7= s->VAR_6 + FRAME_MBAFF;", "const int VAR_8= VAR_0->slice_type;", "const int VAR_9 = VAR_0->VAR_9;", "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 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
1,370
static int to_integer(char *p, int len) { int ret; char *q = av_malloc(sizeof(char) * len); if (!q) return -1; strncpy(q, p, len); ret = atoi(q); av_free(q); return ret; }
false
FFmpeg
72732f2dddabae1d943ce617e0a27e32d13416fb
static int to_integer(char *p, int len) { int ret; char *q = av_malloc(sizeof(char) * len); if (!q) return -1; strncpy(q, p, len); ret = atoi(q); av_free(q); return ret; }
{ "code": [], "line_no": [] }
static int FUNC_0(char *VAR_0, int VAR_1) { int VAR_2; char *VAR_3 = av_malloc(sizeof(char) * VAR_1); if (!VAR_3) return -1; strncpy(VAR_3, VAR_0, VAR_1); VAR_2 = atoi(VAR_3); av_free(VAR_3); return VAR_2; }
[ "static int FUNC_0(char *VAR_0, int VAR_1)\n{", "int VAR_2;", "char *VAR_3 = av_malloc(sizeof(char) * VAR_1);", "if (!VAR_3) return -1;", "strncpy(VAR_3, VAR_0, VAR_1);", "VAR_2 = atoi(VAR_3);", "av_free(VAR_3);", "return VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
1,371
void checkasm_check_blend(void) { uint8_t *top1 = av_malloc(BUF_SIZE); uint8_t *top2 = av_malloc(BUF_SIZE); uint8_t *bot1 = av_malloc(BUF_SIZE); uint8_t *bot2 = av_malloc(BUF_SIZE); uint8_t *dst1 = av_malloc(BUF_SIZE); uint8_t *dst2 = av_malloc(BUF_SIZE); FilterParams param = { ...
false
FFmpeg
e51073fe00d2f7ae1c455d441b305e2b5c8251bc
void checkasm_check_blend(void) { uint8_t *top1 = av_malloc(BUF_SIZE); uint8_t *top2 = av_malloc(BUF_SIZE); uint8_t *bot1 = av_malloc(BUF_SIZE); uint8_t *bot2 = av_malloc(BUF_SIZE); uint8_t *dst1 = av_malloc(BUF_SIZE); uint8_t *dst2 = av_malloc(BUF_SIZE); FilterParams param = { ...
{ "code": [], "line_no": [] }
void FUNC_0(void) { uint8_t *top1 = av_malloc(BUF_SIZE); uint8_t *top2 = av_malloc(BUF_SIZE); uint8_t *bot1 = av_malloc(BUF_SIZE); uint8_t *bot2 = av_malloc(BUF_SIZE); uint8_t *dst1 = av_malloc(BUF_SIZE); uint8_t *dst2 = av_malloc(BUF_SIZE); FilterParams param = { .opacity =...
[ "void FUNC_0(void)\n{", "uint8_t *top1 = av_malloc(BUF_SIZE);", "uint8_t *top2 = av_malloc(BUF_SIZE);", "uint8_t *bot1 = av_malloc(BUF_SIZE);", "uint8_t *bot2 = av_malloc(BUF_SIZE);", "uint8_t *dst1 = av_malloc(BUF_SIZE);", "uint8_t *dst2 = av_malloc(BUF_SIZE);", "FilterParams param = {", ".opacity ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
1,374
qemu_irq *armv7m_init(int flash_size, int sram_size, const char *kernel_filename, const char *cpu_model) { CPUState *env; DeviceState *nvic; /* FIXME: make this local state. */ static qemu_irq pic[64]; qemu_irq *cpu_pic; uint32_t pc; int image_size; uint6...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
qemu_irq *armv7m_init(int flash_size, int sram_size, const char *kernel_filename, const char *cpu_model) { CPUState *env; DeviceState *nvic; static qemu_irq pic[64]; qemu_irq *cpu_pic; uint32_t pc; int image_size; uint64_t entry; uint64_t lowaddr; ...
{ "code": [ " qdev_init(nvic);" ], "line_no": [ 95 ] }
qemu_irq *FUNC_0(int flash_size, int sram_size, const char *kernel_filename, const char *cpu_model) { CPUState *env; DeviceState *nvic; static qemu_irq VAR_0[64]; qemu_irq *cpu_pic; uint32_t pc; int VAR_1; uint64_t entry; uint64_t lowaddr; int V...
[ "qemu_irq *FUNC_0(int flash_size, int sram_size,\nconst char *kernel_filename, const char *cpu_model)\n{", "CPUState *env;", "DeviceState *nvic;", "static qemu_irq VAR_0[64];", "qemu_irq *cpu_pic;", "uint32_t pc;", "int VAR_1;", "uint64_t entry;", "uint64_t lowaddr;", "int VAR_2;", "int 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, 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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
1,375
static int svq3_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { SVQ3Context *svq3 = avctx->priv_data; H264Context *h = &svq3->h; MpegEncContext *s = &h->s; int buf_size = avpkt->size; int m, mb_type,...
true
FFmpeg
0fa8d19987f03444365a5c7f73b7ecf1520b011e
static int svq3_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { SVQ3Context *svq3 = avctx->priv_data; H264Context *h = &svq3->h; MpegEncContext *s = &h->s; int buf_size = avpkt->size; int m, mb_type,...
{ "code": [ " if (mb_type > 33 || svq3_decode_mb(svq3, mb_type)) {" ], "line_no": [ 249 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { SVQ3Context *svq3 = VAR_0->priv_data; H264Context *h = &svq3->h; MpegEncContext *s = &h->s; int VAR_4 = VAR_3->size; int VAR_5, VAR_6, VAR_7; ui...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "SVQ3Context *svq3 = VAR_0->priv_data;", "H264Context *h = &svq3->h;", "MpegEncContext *s = &h->s;", "int VAR_4 = VAR_3->size;", "int VAR_5, VAR_6, VAR_7;", "uint8_t *buf;", "if (VAR_4 == 0) {", "if (s->next_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49, 51 ], [...
1,376
int mpeg4_decode_video_packet_header(MpegEncContext *s) { int mb_num_bits= av_log2(s->mb_num - 1) + 1; int header_extension=0, mb_num, len; /* is there enough space left for a video packet + header */ if( get_bits_count(&s->gb) > s->gb.size_in_bits-20) return -1; for(len=0; len<32; len++){...
true
FFmpeg
fc5c49ab3247533e0a5cb203cf7122143389eb5c
int mpeg4_decode_video_packet_header(MpegEncContext *s) { int mb_num_bits= av_log2(s->mb_num - 1) + 1; int header_extension=0, mb_num, len; if( get_bits_count(&s->gb) > s->gb.size_in_bits-20) return -1; for(len=0; len<32; len++){ if(get_bits1(&s->gb)) break; } if(len!...
{ "code": [ " mpeg4_decode_sprite_trajectory(s, &s->gb);" ], "line_no": [ 115 ] }
int FUNC_0(MpegEncContext *VAR_0) { int VAR_1= av_log2(VAR_0->VAR_3 - 1) + 1; int VAR_2=0, VAR_3, VAR_4; if( get_bits_count(&VAR_0->gb) > VAR_0->gb.size_in_bits-20) return -1; for(VAR_4=0; VAR_4<32; VAR_4++){ if(get_bits1(&VAR_0->gb)) break; } if(VAR_4!=ff_mpeg4_get_v...
[ "int FUNC_0(MpegEncContext *VAR_0)\n{", "int VAR_1= av_log2(VAR_0->VAR_3 - 1) + 1;", "int VAR_2=0, VAR_3, VAR_4;", "if( get_bits_count(&VAR_0->gb) > VAR_0->gb.size_in_bits-20) return -1;", "for(VAR_4=0; VAR_4<32; VAR_4++){", "if(get_bits1(&VAR_0->gb)) break;", "}", "if(VAR_4!=ff_mpeg4_get_video_packet...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57...
1,378
static void opt_video_rc_override_string(char *arg) { video_rc_override_string = arg; }
false
FFmpeg
464a631c34967f4c326b2de8b3cf4903d3e5b01c
static void opt_video_rc_override_string(char *arg) { video_rc_override_string = arg; }
{ "code": [], "line_no": [] }
static void FUNC_0(char *VAR_0) { video_rc_override_string = VAR_0; }
[ "static void FUNC_0(char *VAR_0)\n{", "video_rc_override_string = VAR_0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
1,379
av_cold int ff_dvvideo_init(AVCodecContext *avctx) { DVVideoContext *s = avctx->priv_data; DSPContext dsp; static int done = 0; int i, j; if (!done) { VLC dv_vlc; uint16_t new_dv_vlc_bits[NB_DV_VLC*2]; uint8_t new_dv_vlc_len[NB_DV_VLC*2]; uint8_t new_dv_...
true
FFmpeg
5e689b65ce9c945c61d0f07394541a0440316757
av_cold int ff_dvvideo_init(AVCodecContext *avctx) { DVVideoContext *s = avctx->priv_data; DSPContext dsp; static int done = 0; int i, j; if (!done) { VLC dv_vlc; uint16_t new_dv_vlc_bits[NB_DV_VLC*2]; uint8_t new_dv_vlc_len[NB_DV_VLC*2]; uint8_t new_dv_...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { DVVideoContext *s = avctx->priv_data; DSPContext dsp; static int VAR_0 = 0; int VAR_1, VAR_3; if (!VAR_0) { VLC dv_vlc; uint16_t new_dv_vlc_bits[NB_DV_VLC*2]; uint8_t new_dv_vlc_len[NB_DV_VLC*2]; uint8_t new_dv...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "DVVideoContext *s = avctx->priv_data;", "DSPContext dsp;", "static int VAR_0 = 0;", "int VAR_1, VAR_3;", "if (!VAR_0) {", "VLC dv_vlc;", "uint16_t new_dv_vlc_bits[NB_DV_VLC*2];", "uint8_t new_dv_vlc_len[NB_DV_VLC*2];", "uint8_t new_dv_vlc_run[NB_D...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
1,380
static inline void RENAME(hyscale)(uint16_t *dst, int dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, int srcFormat, uint8_t *formatConvBuffer) { if(srcFormat==IMGFMT_YUY2) { ...
true
FFmpeg
b7dc6f662868fbdad779c61c233b1d19d8b89d3c
static inline void RENAME(hyscale)(uint16_t *dst, int dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, int srcFormat, uint8_t *formatConvBuffer) { if(srcFormat==IMGFMT_YUY2) { ...
{ "code": [ "\t\t\t\t int srcFormat, uint8_t *formatConvBuffer)", "\t\t\t\"punpcklwd %%mm6, %%mm6\t\t\\n\\t\"", "\t\t\t\"punpcklwd %%mm6, %%mm6\t\t\\n\\t\"", "\t\t\t\"movq %%mm6, %%mm2\t\t\\n\\t\"", "\t\t\t\"psllq $16, %%mm2\t\t\\n\\t\"", "\t\t\t\"paddw %%mm6, %%mm2\t\t\\n\\t\"", "\t\t\t...
static inline void FUNC_0(hyscale)(uint16_t *dst, int dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, int srcFormat, uint8_t *formatConvBuffer) { if(srcFormat==IMGFMT_YUY2) { ...
[ "static inline void FUNC_0(hyscale)(uint16_t *dst, int dstWidth, uint8_t *src, int srcW, int xInc,\nint flags, int canMMX2BeUsed, int16_t *hLumFilter,\nint16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode,\nint srcFormat, uint8_t *formatConvBuffer)\n{", "if(srcFormat==IMGFMT_YUY2)\n{", "FUNC_0(yuy2ToY)(...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
1,382
int32 float128_to_int32_round_to_zero( float128 a STATUS_PARAM ) { flag aSign; int32 aExp, shiftCount; uint64_t aSig0, aSig1, savedASig; int32 z; aSig1 = extractFloat128Frac1( a ); aSig0 = extractFloat128Frac0( a ); aExp = extractFloat128Exp( a ); aSign = extractFloat128Sign( ...
true
qemu
b3a6a2e0417c78ec5491347eb85a7d125a5fefdc
int32 float128_to_int32_round_to_zero( float128 a STATUS_PARAM ) { flag aSign; int32 aExp, shiftCount; uint64_t aSig0, aSig1, savedASig; int32 z; aSig1 = extractFloat128Frac1( a ); aSig0 = extractFloat128Frac0( a ); aExp = extractFloat128Exp( a ); aSign = extractFloat128Sign( ...
{ "code": [ " int32 z;", " int32 z;", " int32 z;", " int32 z;" ], "line_no": [ 11, 11, 11, 11 ] }
int32 FUNC_0( float128 a STATUS_PARAM ) { flag aSign; int32 aExp, shiftCount; uint64_t aSig0, aSig1, savedASig; int32 z; aSig1 = extractFloat128Frac1( a ); aSig0 = extractFloat128Frac0( a ); aExp = extractFloat128Exp( a ); aSign = extractFloat128Sign( a ); aSig0 |= ( aSig...
[ "int32 FUNC_0( float128 a STATUS_PARAM )\n{", "flag aSign;", "int32 aExp, shiftCount;", "uint64_t aSig0, aSig1, savedASig;", "int32 z;", "aSig1 = extractFloat128Frac1( a );", "aSig0 = extractFloat128Frac0( a );", "aExp = extractFloat128Exp( a );", "aSign = extractFloat128Sign( a );", "aSig0 |= ( a...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
1,383
static int decode_ihdr_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { if (length != 13) return AVERROR_INVALIDDATA; if (s->state & PNG_IDAT) { av_log(avctx, AV_LOG_ERROR, "IHDR after IDAT\n"); return AVERROR_INVALIDDATA; if...
true
FFmpeg
4279613a2652cdf2bee564f4b7244567e5ba91ba
static int decode_ihdr_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { if (length != 13) return AVERROR_INVALIDDATA; if (s->state & PNG_IDAT) { av_log(avctx, AV_LOG_ERROR, "IHDR after IDAT\n"); return AVERROR_INVALIDDATA; if...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, PNGDecContext *VAR_1, uint32_t VAR_2) { if (VAR_2 != 13) return AVERROR_INVALIDDATA; if (VAR_1->state & PNG_IDAT) { av_log(VAR_0, AV_LOG_ERROR, "IHDR after IDAT\n"); return AVERROR_INVALIDDATA; if (VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0, PNGDecContext *VAR_1,\nuint32_t VAR_2)\n{", "if (VAR_2 != 13)\nreturn AVERROR_INVALIDDATA;", "if (VAR_1->state & PNG_IDAT) {", "av_log(VAR_0, AV_LOG_ERROR, \"IHDR after IDAT\\n\");", "return AVERROR_INVALIDDATA;", "if (VAR_1->state & PNG_IHDR) {", "av_log(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 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 22 ], [ 24 ], [ 26 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 44 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
1,384
int page_unprotect(target_ulong address, uintptr_t pc) { unsigned int prot; bool current_tb_invalidated; PageDesc *p; target_ulong host_start, host_end, addr; /* Technically this isn't safe inside a signal handler. However we know this only ever happens in a synchronous SEGV handler...
true
qemu
9c4bbee9e3b83544257e82566342c29e15a88637
int page_unprotect(target_ulong address, uintptr_t pc) { unsigned int prot; bool current_tb_invalidated; PageDesc *p; target_ulong host_start, host_end, addr; mmap_lock(); p = page_find(address >> TARGET_PAGE_BITS); if (!p) { mmap_unlock(); return 0; ...
{ "code": [ " if ((p->flags & PAGE_WRITE_ORG) && !(p->flags & PAGE_WRITE)) {", " host_start = address & qemu_host_page_mask;", " host_end = host_start + qemu_host_page_size;", " prot = 0;", " for (addr = host_start ; addr < host_end ; addr += TARGET_PAGE_SIZE) {", ...
int FUNC_0(target_ulong VAR_0, uintptr_t VAR_1) { unsigned int VAR_2; bool current_tb_invalidated; PageDesc *p; target_ulong host_start, host_end, addr; mmap_lock(); p = page_find(VAR_0 >> TARGET_PAGE_BITS); if (!p) { mmap_unlock(); return 0; } ...
[ "int FUNC_0(target_ulong VAR_0, uintptr_t VAR_1)\n{", "unsigned int VAR_2;", "bool current_tb_invalidated;", "PageDesc *p;", "target_ulong host_start, host_end, addr;", "mmap_lock();", "p = page_find(VAR_0 >> TARGET_PAGE_BITS);", "if (!p) {", "mmap_unlock();", "return 0;", "}", "if ((p->flags ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
1,386
static void v9fs_readlink(void *opaque) { V9fsPDU *pdu = opaque; size_t offset = 7; V9fsString target; int32_t fid; int err = 0; V9fsFidState *fidp; pdu_unmarshal(pdu, offset, "d", &fid); fidp = get_fid(pdu, fid); if (fidp == NULL) { err = -ENOENT; goto...
true
qemu
c572f23a3e7180dbeab5e86583e43ea2afed6271
static void v9fs_readlink(void *opaque) { V9fsPDU *pdu = opaque; size_t offset = 7; V9fsString target; int32_t fid; int err = 0; V9fsFidState *fidp; pdu_unmarshal(pdu, offset, "d", &fid); fidp = get_fid(pdu, fid); if (fidp == NULL) { err = -ENOENT; goto...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { V9fsPDU *pdu = VAR_0; size_t offset = 7; V9fsString target; int32_t fid; int VAR_1 = 0; V9fsFidState *fidp; pdu_unmarshal(pdu, offset, "d", &fid); fidp = get_fid(pdu, fid); if (fidp == NULL) { VAR_1 = -ENOENT; goto out_...
[ "static void FUNC_0(void *VAR_0)\n{", "V9fsPDU *pdu = VAR_0;", "size_t offset = 7;", "V9fsString target;", "int32_t fid;", "int VAR_1 = 0;", "V9fsFidState *fidp;", "pdu_unmarshal(pdu, offset, \"d\", &fid);", "fidp = get_fid(pdu, fid);", "if (fidp == NULL) {", "VAR_1 = -ENOENT;", "goto out_nofi...
[ 0, 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 ], [ 22 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ...
1,389
int kvm_init(MachineClass *mc) { static const char upgrade_note[] = "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n" "(see http://sourceforge.net/projects/kvm).\n"; struct { const char *name; int num; } num_cpus[] = { { "SMP", smp_cpus...
true
qemu
0e1dac6c41f337f997814344a847162968c20c64
int kvm_init(MachineClass *mc) { static const char upgrade_note[] = "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n" "(see http: struct { const char *name; int num; } num_cpus[] = { { "SMP", smp_cpus }, { "hotpluggable", max_c...
{ "code": [ " if (ret > 0) {" ], "line_no": [ 89 ] }
int FUNC_0(MachineClass *VAR_0) { static const char VAR_1[] = "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n" "(see http: struct { const char *name; int num; } num_cpus[] = { { "SMP", smp_cpus }, { "hotpluggable", max_cpus },...
[ "int FUNC_0(MachineClass *VAR_0)\n{", "static const char VAR_1[] =\n\"Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\\n\"\n\"(see http:\nstruct {", "const char *name;", "int num;", "} num_cpus[] = {", "{ \"SMP\", smp_cpus },", "{ \"hotpluggable\", max_cpus },", "{ NULL, }", "},...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 57 ], [ 59 ], [...
1,390
static void openpic_msi_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { OpenPICState *opp = opaque; int idx = opp->irq_msi; int srs, ibs; DPRINTF("%s: addr " TARGET_FMT_plx " <= %08x\n", __func__, addr, val); if (addr & 0xF) { return; ...
true
qemu
4c4f0e4801ac79632d03867c88aafc90b4ce503c
static void openpic_msi_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { OpenPICState *opp = opaque; int idx = opp->irq_msi; int srs, ibs; DPRINTF("%s: addr " TARGET_FMT_plx " <= %08x\n", __func__, addr, val); if (addr & 0xF) { return; ...
{ "code": [ " DPRINTF(\"%s: addr \" TARGET_FMT_plx \" <= %08x\\n\", __func__, addr, val);", " DPRINTF(\"%s: addr \" TARGET_FMT_plx \" <= %08x\\n\", __func__, addr, val);" ], "line_no": [ 15, 15 ] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { OpenPICState *opp = VAR_0; int VAR_4 = opp->irq_msi; int VAR_5, VAR_6; DPRINTF("%s: VAR_1 " TARGET_FMT_plx " <= %08x\n", __func__, VAR_1, VAR_2); if (VAR_1 & 0xF) { return;...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,\nunsigned VAR_3)\n{", "OpenPICState *opp = VAR_0;", "int VAR_4 = opp->irq_msi;", "int VAR_5, VAR_6;", "DPRINTF(\"%s: VAR_1 \" TARGET_FMT_plx \" <= %08x\\n\", __func__, VAR_1, VAR_2);", "if (VAR_1 & 0xF) {", "return;", "}", "switch (VAR_1...
[ 0, 0, 0, 0, 1, 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 ], [ 49 ] ]
1,391
static int eval_refl(const int16_t *coefs, int *refl, RA144Context *ractx) { int retval = 0; int b, c, i; unsigned int u; int buffer1[10]; int buffer2[10]; int *bp1 = buffer1; int *bp2 = buffer2; for (i=0; i < 10; i++) buffer2[i] = coefs[i]; u = refl[9] = bp2[9...
true
FFmpeg
b45411e24a7566a1191f9526a4adea0f76e9cb86
static int eval_refl(const int16_t *coefs, int *refl, RA144Context *ractx) { int retval = 0; int b, c, i; unsigned int u; int buffer1[10]; int buffer2[10]; int *bp1 = buffer1; int *bp2 = buffer2; for (i=0; i < 10; i++) buffer2[i] = coefs[i]; u = refl[9] = bp2[9...
{ "code": [ " return 0;" ], "line_no": [ 35 ] }
static int FUNC_0(const int16_t *VAR_0, int *VAR_1, RA144Context *VAR_2) { int VAR_3 = 0; int VAR_4, VAR_5, VAR_6; unsigned int VAR_7; int VAR_8[10]; int VAR_9[10]; int *VAR_10 = VAR_8; int *VAR_11 = VAR_9; for (VAR_6=0; VAR_6 < 10; VAR_6++) VAR_9[VAR_6] = VAR_0[VAR_6...
[ "static int FUNC_0(const int16_t *VAR_0, int *VAR_1, RA144Context *VAR_2)\n{", "int VAR_3 = 0;", "int VAR_4, VAR_5, VAR_6;", "unsigned int VAR_7;", "int VAR_8[10];", "int VAR_9[10];", "int *VAR_10 = VAR_8;", "int *VAR_11 = VAR_9;", "for (VAR_6=0; VAR_6 < 10; VAR_6++)", "VAR_9[VAR_6] = VAR_0[VAR_6]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 49, 51 ], [ 55 ...
1,392
static void vfio_disable_interrupts(VFIOPCIDevice *vdev) { switch (vdev->interrupt) { case VFIO_INT_INTx: vfio_disable_intx(vdev); break; case VFIO_INT_MSI: vfio_disable_msi(vdev); break; case VFIO_INT_MSIX: vfio_disable_msix(vdev); break; ...
true
qemu
b3e27c3aee8f5a96debfe0346e9c0e3a641a8516
static void vfio_disable_interrupts(VFIOPCIDevice *vdev) { switch (vdev->interrupt) { case VFIO_INT_INTx: vfio_disable_intx(vdev); break; case VFIO_INT_MSI: vfio_disable_msi(vdev); break; case VFIO_INT_MSIX: vfio_disable_msix(vdev); break; ...
{ "code": [ " switch (vdev->interrupt) {", " case VFIO_INT_INTx:", " vfio_disable_intx(vdev);", " break;", " case VFIO_INT_MSI:", " vfio_disable_msi(vdev);", " break;", " case VFIO_INT_MSIX:", " break;" ], "line_no": [ 5, 7...
static void FUNC_0(VFIOPCIDevice *VAR_0) { switch (VAR_0->interrupt) { case VFIO_INT_INTx: vfio_disable_intx(VAR_0); break; case VFIO_INT_MSI: vfio_disable_msi(VAR_0); break; case VFIO_INT_MSIX: vfio_disable_msix(VAR_0); break; } }
[ "static void FUNC_0(VFIOPCIDevice *VAR_0)\n{", "switch (VAR_0->interrupt) {", "case VFIO_INT_INTx:\nvfio_disable_intx(VAR_0);", "break;", "case VFIO_INT_MSI:\nvfio_disable_msi(VAR_0);", "break;", "case VFIO_INT_MSIX:\nvfio_disable_msix(VAR_0);", "break;", "}", "}" ]
[ 0, 1, 1, 1, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ] ]
1,393
static inline int get_ue_code(GetBitContext *gb, int order) { if (order) { int ret = get_ue_golomb(gb) << order; return ret + get_bits(gb, order); } return get_ue_golomb(gb); }
true
FFmpeg
cf48b006400e34e1177d0ca22d1cdb5c900a199a
static inline int get_ue_code(GetBitContext *gb, int order) { if (order) { int ret = get_ue_golomb(gb) << order; return ret + get_bits(gb, order); } return get_ue_golomb(gb); }
{ "code": [ " int ret = get_ue_golomb(gb) << order;", " return ret + get_bits(gb, order);", " return get_ue_golomb(gb);" ], "line_no": [ 7, 9, 13 ] }
static inline int FUNC_0(GetBitContext *VAR_0, int VAR_1) { if (VAR_1) { int VAR_2 = get_ue_golomb(VAR_0) << VAR_1; return VAR_2 + get_bits(VAR_0, VAR_1); } return get_ue_golomb(VAR_0); }
[ "static inline int FUNC_0(GetBitContext *VAR_0, int VAR_1)\n{", "if (VAR_1) {", "int VAR_2 = get_ue_golomb(VAR_0) << VAR_1;", "return VAR_2 + get_bits(VAR_0, VAR_1);", "}", "return get_ue_golomb(VAR_0);", "}" ]
[ 0, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
1,394
int audio_resample(ReSampleContext *s, short *output, short *input, int nb_samples) { int i, nb_samples1; short *bufin[2]; short *bufout[2]; short *buftmp2[2], *buftmp3[2]; short *output_bak = NULL; int lenout; if (s->input_channels == s->output_channels && s->ratio == 1.0 && 0) { ...
true
FFmpeg
5f5e6af16982c172997abc75ff7a401124dd3dda
int audio_resample(ReSampleContext *s, short *output, short *input, int nb_samples) { int i, nb_samples1; short *bufin[2]; short *bufout[2]; short *buftmp2[2], *buftmp3[2]; short *output_bak = NULL; int lenout; if (s->input_channels == s->output_channels && s->ratio == 1.0 && 0) { ...
{ "code": [ " unsigned input_size = nb_samples*s->input_channels*s->sample_size[0];" ], "line_no": [ 41 ] }
int FUNC_0(ReSampleContext *VAR_0, short *VAR_1, short *VAR_2, int VAR_3) { int VAR_4, VAR_5; short *VAR_6[2]; short *VAR_7[2]; short *VAR_8[2], *VAR_9[2]; short *VAR_10 = NULL; int VAR_11; if (VAR_0->input_channels == VAR_0->output_channels && VAR_0->ratio == 1.0 && 0) { ...
[ "int FUNC_0(ReSampleContext *VAR_0, short *VAR_1, short *VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "short *VAR_6[2];", "short *VAR_7[2];", "short *VAR_8[2], *VAR_9[2];", "short *VAR_10 = NULL;", "int VAR_11;", "if (VAR_0->input_channels == VAR_0->output_channels && VAR_0->ratio == 1.0 && 0) {", "m...
[ 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, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
1,395
int ff_h264_decode_extradata(H264Context *h) { AVCodecContext *avctx = h->s.avctx; if (avctx->extradata[0] == 1) { int i, cnt, nalsize; unsigned char *p = avctx->extradata; h->is_avc = 1; if (avctx->extradata_size < 7) { av_log(avctx, AV_LOG_ERROR, "avcC...
true
FFmpeg
61c6eef5456f2bc8b1dc49a0a759c975551cea29
int ff_h264_decode_extradata(H264Context *h) { AVCodecContext *avctx = h->s.avctx; if (avctx->extradata[0] == 1) { int i, cnt, nalsize; unsigned char *p = avctx->extradata; h->is_avc = 1; if (avctx->extradata_size < 7) { av_log(avctx, AV_LOG_ERROR, "avcC...
{ "code": [ " if (decode_nal_units(h, p, nalsize) < 0) {", " if (decode_nal_units(h, p, nalsize) < 0) {", " if (decode_nal_units(h, avctx->extradata, avctx->extradata_size) < 0)" ], "line_no": [ 49, 49, 97 ] }
int FUNC_0(H264Context *VAR_0) { AVCodecContext *avctx = VAR_0->s.avctx; if (avctx->extradata[0] == 1) { int VAR_1, VAR_2, VAR_3; unsigned char *VAR_4 = avctx->extradata; VAR_0->is_avc = 1; if (avctx->extradata_size < 7) { av_log(avctx, AV_LOG_ERROR, "av...
[ "int FUNC_0(H264Context *VAR_0)\n{", "AVCodecContext *avctx = VAR_0->s.avctx;", "if (avctx->extradata[0] == 1) {", "int VAR_1, VAR_2, VAR_3;", "unsigned char *VAR_4 = avctx->extradata;", "VAR_0->is_avc = 1;", "if (avctx->extradata_size < 7) {", "av_log(avctx, AV_LOG_ERROR, \"avcC too short\\n\");", ...
[ 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, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53 ], [ 55...
1,396
void video_encode_example(const char *filename) { AVCodec *codec; AVCodecContext *c= NULL; int i, out_size, size, x, y, outbuf_size; FILE *f; AVFrame *picture; uint8_t *outbuf, *picture_buf; printf("Video encoding\n"); /* find the mpeg1 video encoder */ codec = avcodec_...
true
FFmpeg
1c0e205fab4bd5bbfa0399af2cd5e281b414b3d5
void video_encode_example(const char *filename) { AVCodec *codec; AVCodecContext *c= NULL; int i, out_size, size, x, y, outbuf_size; FILE *f; AVFrame *picture; uint8_t *outbuf, *picture_buf; printf("Video encoding\n"); codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO);...
{ "code": [ " f = fopen(filename, \"w\");", " f = fopen(filename, \"w\");" ], "line_no": [ 81, 81 ] }
void FUNC_0(const char *VAR_0) { AVCodec *codec; AVCodecContext *c= NULL; int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; FILE *f; AVFrame *picture; uint8_t *outbuf, *picture_buf; printf("Video encoding\n"); codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO); if (!co...
[ "void FUNC_0(const char *VAR_0)\n{", "AVCodec *codec;", "AVCodecContext *c= NULL;", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "FILE *f;", "AVFrame *picture;", "uint8_t *outbuf, *picture_buf;", "printf(\"Video encoding\\n\");", "codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO);", "if (!code...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
1,397
static void socket_outgoing_migration(Object *src, Error *err, gpointer opaque) { MigrationState *s = opaque; QIOChannel *sioc = QIO_CHANNEL(src); if (err) { trace_migration_socket_outgoing_error(error_get_pretty(er...
true
qemu
e122636562218b3d442cd2cd18fbc188dd9ce709
static void socket_outgoing_migration(Object *src, Error *err, gpointer opaque) { MigrationState *s = opaque; QIOChannel *sioc = QIO_CHANNEL(src); if (err) { trace_migration_socket_outgoing_error(error_get_pretty(er...
{ "code": [ " MigrationState *s = opaque;", " s->to_dst_file = NULL;", " migrate_fd_error(s, err);", " trace_migration_socket_outgoing_connected();", " migration_set_outgoing_channel(s, sioc);" ], "line_no": [ 9, 19, 21, 25, 27 ] }
static void FUNC_0(Object *VAR_0, Error *VAR_1, gpointer VAR_2) { MigrationState *s = VAR_2; QIOChannel *sioc = QIO_CHANNEL(VAR_0); if (VAR_1) { trace_migration_socket_outgoing_error(error_get_pretty(VAR_1)); ...
[ "static void FUNC_0(Object *VAR_0,\nError *VAR_1,\ngpointer VAR_2)\n{", "MigrationState *s = VAR_2;", "QIOChannel *sioc = QIO_CHANNEL(VAR_0);", "if (VAR_1) {", "trace_migration_socket_outgoing_error(error_get_pretty(VAR_1));", "s->to_dst_file = NULL;", "migrate_fd_error(s, VAR_1);", "} else {", "tra...
[ 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
1,398
static void apic_common_class_init(ObjectClass *klass, void *data) { ICCDeviceClass *idc = ICC_DEVICE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass); dc->vmsd = &vmstate_apic_common; dc->reset = apic_reset_common; dc->no_user = 1; dc->props = apic_properties_common; idc->init ...
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void apic_common_class_init(ObjectClass *klass, void *data) { ICCDeviceClass *idc = ICC_DEVICE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass); dc->vmsd = &vmstate_apic_common; dc->reset = apic_reset_common; dc->no_user = 1; dc->props = apic_properties_common; idc->init ...
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { ICCDeviceClass *idc = ICC_DEVICE_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->vmsd = &vmstate_apic_common; dc->reset = apic_reset_common; dc->no_user = 1; dc->props = apic_properties_common; idc->init = apic_init_com...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "ICCDeviceClass *idc = ICC_DEVICE_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->vmsd = &vmstate_apic_common;", "dc->reset = apic_reset_common;", "dc->no_user = 1;", "dc->props = apic_properties_common;", "idc->init = apic_init_...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
1,399
static void do_unassigned_access(target_ulong addr, int is_write, int is_exec, int is_asi, int size) #else void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, int is_asi, int size) #endif { CPUState *saved_env; /* XXX: hack ...
true
qemu
b14ef7c9ab41ea824c3ccadb070ad95567cca84e
static void do_unassigned_access(target_ulong addr, int is_write, int is_exec, int is_asi, int size) #else void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, int is_asi, int size) #endif { CPUState *saved_env; saved...
{ "code": [ "void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,", "void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,", " int is_asi, int size)", " env = cpu_single_env;", "void do_unassigned_access(target_phys_addr_...
static void FUNC_1(target_ulong VAR_5, int VAR_5, int VAR_5, int VAR_5, int VAR_5) #else void FUNC_1(target_phys_addr_t VAR_5, int VAR_5, int VAR_5, int VAR_5, int VAR_5) #endif { CPUState *saved_env; saved_env = env; env = cpu_single_en...
[ "static void FUNC_1(target_ulong VAR_5, int VAR_5, int VAR_5,\nint VAR_5, int VAR_5)\n#else\nvoid FUNC_1(target_phys_addr_t VAR_5, int VAR_5, int VAR_5,\nint VAR_5, int VAR_5)\n#endif\n{", "CPUState *saved_env;", "saved_env = env;", "env = cpu_single_env;", "#ifdef DEBUG_UNASSIGNED\nprintf(\"Unassigned mem ...
[ 1, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 23 ], [ 25 ], [ 29, 31, 33 ], [ 35, 39, 41 ], [ 43, 45 ], [ 49 ], [ 51 ] ]
1,400
int qemu_fsdev_add(QemuOpts *opts) { int i; struct FsDriverListEntry *fsle; const char *fsdev_id = qemu_opts_id(opts); const char *fsdriver = qemu_opt_get(opts, "fsdriver"); const char *writeout = qemu_opt_get(opts, "writeout"); bool ro = qemu_opt_get_bool(opts, "readonly", 0); if ...
true
qemu
b58c86e1e4cdf59373aad2ec25f99f772766374c
int qemu_fsdev_add(QemuOpts *opts) { int i; struct FsDriverListEntry *fsle; const char *fsdev_id = qemu_opts_id(opts); const char *fsdriver = qemu_opt_get(opts, "fsdriver"); const char *writeout = qemu_opt_get(opts, "writeout"); bool ro = qemu_opt_get_bool(opts, "readonly", 0); if ...
{ "code": [], "line_no": [] }
int FUNC_0(QemuOpts *VAR_0) { int VAR_1; struct FsDriverListEntry *VAR_2; const char *VAR_3 = qemu_opts_id(VAR_0); const char *VAR_4 = qemu_opt_get(VAR_0, "VAR_4"); const char *VAR_5 = qemu_opt_get(VAR_0, "VAR_5"); bool ro = qemu_opt_get_bool(VAR_0, "readonly", 0); if (!VAR_3) { ...
[ "int FUNC_0(QemuOpts *VAR_0)\n{", "int VAR_1;", "struct FsDriverListEntry *VAR_2;", "const char *VAR_3 = qemu_opts_id(VAR_0);", "const char *VAR_4 = qemu_opt_get(VAR_0, \"VAR_4\");", "const char *VAR_5 = qemu_opt_get(VAR_0, \"VAR_5\");", "bool ro = qemu_opt_get_bool(VAR_0, \"readonly\", 0);", "if (!VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
1,401
void OPPROTO op_set_Rc0 (void) { env->crf[0] = T0 | xer_ov; RETURN(); }
true
qemu
966439a67830239a6c520c5df6c55627b8153c8b
void OPPROTO op_set_Rc0 (void) { env->crf[0] = T0 | xer_ov; RETURN(); }
{ "code": [ " env->crf[0] = T0 | xer_ov;" ], "line_no": [ 5 ] }
void VAR_0 op_set_Rc0 (void) { env->crf[0] = T0 | xer_ov; RETURN(); }
[ "void VAR_0 op_set_Rc0 (void)\n{", "env->crf[0] = T0 | xer_ov;", "RETURN();", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,402
static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt) { AVStream *st; int len, ret; for(;;) { /* select current input stream component */ st = s->cur_st; if (st) { if (!st->parser) { /* no parsing needed: we just output the packet...
true
FFmpeg
bcbecff13f2d9c8af19039fa82703efd4c04eb97
static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt) { AVStream *st; int len, ret; for(;;) { st = s->cur_st; if (st) { if (!st->parser) { *pkt = s->cur_pkt; compute_pkt_fields...
{ "code": [ " if (s->cur_st && s->cur_st->parser)", " av_free_packet(&s->cur_pkt); " ], "line_no": [ 99, 101 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { AVStream *st; int VAR_2, VAR_3; for(;;) { st = VAR_0->cur_st; if (st) { if (!st->parser) { *VAR_1 = VAR_0->cur_pkt; compute_pkt_fi...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "AVStream *st;", "int VAR_2, VAR_3;", "for(;;) {", "st = VAR_0->cur_st;", "if (st) {", "if (!st->parser) {", "*VAR_1 = VAR_0->cur_pkt;", "compute_pkt_fields(VAR_0, st, NULL, VAR_1);", "VAR_0->cur_st = NULL;", "return 0;", "} else...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
1,403
static void monitor_data_destroy(Monitor *mon) { QDECREF(mon->outbuf); qemu_mutex_destroy(&mon->out_lock);
true
qemu
2ef45716e1d4820f10a90ee2f17a9cb4fe5a8806
static void monitor_data_destroy(Monitor *mon) { QDECREF(mon->outbuf); qemu_mutex_destroy(&mon->out_lock);
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0) { QDECREF(VAR_0->outbuf); qemu_mutex_destroy(&VAR_0->out_lock);
[ "static void FUNC_0(Monitor *VAR_0)\n{", "QDECREF(VAR_0->outbuf);", "qemu_mutex_destroy(&VAR_0->out_lock);" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 12 ], [ 14 ] ]
1,405
static void qio_channel_websock_encode(QIOChannelWebsock *ioc) { size_t header_size; union { char buf[QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT]; QIOChannelWebsockHeader ws; } header; if (!ioc->rawoutput.offset) { return; } header.ws.b0 = (1 << QIO_CHANNEL_WEBSO...
true
qemu
eefa3d8ef649f9055611361e2201cca49f8c3433
static void qio_channel_websock_encode(QIOChannelWebsock *ioc) { size_t header_size; union { char buf[QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT]; QIOChannelWebsockHeader ws; } header; if (!ioc->rawoutput.offset) { return; } header.ws.b0 = (1 << QIO_CHANNEL_WEBSO...
{ "code": [ " header.ws.b0 = (1 << QIO_CHANNEL_WEBSOCK_HEADER_SHIFT_FIN) |" ], "line_no": [ 25 ] }
static void FUNC_0(QIOChannelWebsock *VAR_0) { size_t header_size; union { char buf[QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT]; QIOChannelWebsockHeader ws; } VAR_1; if (!VAR_0->rawoutput.offset) { return; } VAR_1.ws.b0 = (1 << QIO_CHANNEL_WEBSOCK_HEADER_SHIFT_FI...
[ "static void FUNC_0(QIOChannelWebsock *VAR_0)\n{", "size_t header_size;", "union {", "char buf[QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT];", "QIOChannelWebsockHeader ws;", "} VAR_1;", "if (!VAR_0->rawoutput.offset) {", "return;", "}", "VAR_1.ws.b0 = (1 << QIO_CHANNEL_WEBSOCK_HEADER_SHIFT_FIN) |\n(QIO_...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
1,406
static void process_frame(AVFilterLink *inlink, AVFilterBufferRef *buf) { AVFilterContext *ctx = inlink->dst; ConcatContext *cat = ctx->priv; unsigned in_no = FF_INLINK_IDX(inlink); if (in_no < cat->cur_idx) { av_log(ctx, AV_LOG_ERROR, "Frame after EOF on input %s\n", ...
true
FFmpeg
709628aa71f24520553eb10b0cf6d56784e6c3ec
static void process_frame(AVFilterLink *inlink, AVFilterBufferRef *buf) { AVFilterContext *ctx = inlink->dst; ConcatContext *cat = ctx->priv; unsigned in_no = FF_INLINK_IDX(inlink); if (in_no < cat->cur_idx) { av_log(ctx, AV_LOG_ERROR, "Frame after EOF on input %s\n", ...
{ "code": [ " } if (in_no >= cat->cur_idx + ctx->nb_outputs) {" ], "line_no": [ 21 ] }
static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; ConcatContext *cat = ctx->priv; unsigned VAR_2 = FF_INLINK_IDX(VAR_0); if (VAR_2 < cat->cur_idx) { av_log(ctx, AV_LOG_ERROR, "Frame after EOF on input %s\n", ctx->in...
[ "static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "ConcatContext *cat = ctx->priv;", "unsigned VAR_2 = FF_INLINK_IDX(VAR_0);", "if (VAR_2 < cat->cur_idx) {", "av_log(ctx, AV_LOG_ERROR, \"Frame after EOF on input %s\\n\",\nctx->input_pads[VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
1,408
static int make_ydt15_entry(int p2, int p1, int16_t *ydt) #else static int make_ydt15_entry(int p1, int p2, int16_t *ydt) #endif { int lo, hi; lo = ydt[p1]; lo += (lo * 32) + (lo * 1024); hi = ydt[p2]; hi += (hi * 32) + (hi * 1024); return (lo + (hi * (1 << 16))) * 2; }
true
FFmpeg
e45226adc46e513a1bb39ec2b09fb7c77515ab14
static int make_ydt15_entry(int p2, int p1, int16_t *ydt) #else static int make_ydt15_entry(int p1, int p2, int16_t *ydt) #endif { int lo, hi; lo = ydt[p1]; lo += (lo * 32) + (lo * 1024); hi = ydt[p2]; hi += (hi * 32) + (hi * 1024); return (lo + (hi * (1 << 16))) * 2; }
{ "code": [ " return (lo + (hi * (1 << 16))) * 2;" ], "line_no": [ 23 ] }
static int FUNC_1(int VAR_3, int VAR_3, int16_t *VAR_3) #else static int FUNC_1(int VAR_3, int VAR_3, int16_t *VAR_3) #endif { int VAR_3, VAR_4; VAR_3 = VAR_3[VAR_3]; VAR_3 += (VAR_3 * 32) + (VAR_3 * 1024); VAR_4 = VAR_3[VAR_3]; VAR_4 += (VAR_4 * 32) + (VAR_4 * 1024); return (VAR_3 +...
[ "static int FUNC_1(int VAR_3, int VAR_3, int16_t *VAR_3)\n#else\nstatic int FUNC_1(int VAR_3, int VAR_3, int16_t *VAR_3)\n#endif\n{", "int VAR_3, VAR_4;", "VAR_3 = VAR_3[VAR_3];", "VAR_3 += (VAR_3 * 32) + (VAR_3 * 1024);", "VAR_4 = VAR_3[VAR_3];", "VAR_4 += (VAR_4 * 32) + (VAR_4 * 1024);", "return (VAR_...
[ 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
1,411
static void coroutine_fn v9fs_xattrwalk(void *opaque) { int64_t size; V9fsString name; ssize_t err = 0; size_t offset = 7; int32_t fid, newfid; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp = NULL; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; v9fs_string_init(&n...
true
qemu
7bd92756303f2158a68d5166264dc30139b813b6
static void coroutine_fn v9fs_xattrwalk(void *opaque) { int64_t size; V9fsString name; ssize_t err = 0; size_t offset = 7; int32_t fid, newfid; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp = NULL; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; v9fs_string_init(&n...
{ "code": [ " xattr_fidp->fs.xattr.value = g_malloc(size);", " xattr_fidp->fs.xattr.value = g_malloc(size);" ], "line_no": [ 95, 95 ] }
static void VAR_0 v9fs_xattrwalk(void *opaque) { int64_t size; V9fsString name; ssize_t err = 0; size_t offset = 7; int32_t fid, newfid; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp = NULL; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; v9fs_string_init(&name); ...
[ "static void VAR_0 v9fs_xattrwalk(void *opaque)\n{", "int64_t size;", "V9fsString name;", "ssize_t err = 0;", "size_t offset = 7;", "int32_t fid, newfid;", "V9fsFidState *file_fidp;", "V9fsFidState *xattr_fidp = NULL;", "V9fsPDU *pdu = opaque;", "V9fsState *s = pdu->s;", "v9fs_string_init(&name)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
1,412
static void gen_slbmfev(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } gen_helper_load_slb_vsid(cpu_gpr[rS(ctx->opcode)], cpu_env, ...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_slbmfev(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } gen_helper_load_slb_vsid(cpu_gpr[rS(ctx->opcode)], cpu_env, ...
{ "code": [ " if (unlikely(ctx->pr)) {", " if (unlikely(ctx->pr)) {", "#if defined(CONFIG_USER_ONLY)", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#else", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#endif", "#if d...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } gen_helper_load_slb_vsid(cpu_gpr[rS(VAR_0->opcode)], cpu_env, ...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "return;", "}", "gen_helper_load_slb_vsid(cpu_gpr[rS(VAR_0->opcode)], cpu_env,\ncp...
[ 0, 1, 1, 1, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ] ]
1,413
void vga_common_init(VGACommonState *s, Object *obj, bool global_vmstate) { int i, j, v, b; for(i = 0;i < 256; i++) { v = 0; for(j = 0; j < 8; j++) { v |= ((i >> j) & 1) << (j * 4); } expand4[i] = v; v = 0; for(j = 0; j < 4; j++) { ...
true
qemu
f8ed85ac992c48814d916d5df4d44f9a971c5de4
void vga_common_init(VGACommonState *s, Object *obj, bool global_vmstate) { int i, j, v, b; for(i = 0;i < 256; i++) { v = 0; for(j = 0; j < 8; j++) { v |= ((i >> j) & 1) << (j * 4); } expand4[i] = v; v = 0; for(j = 0; j < 4; j++) { ...
{ "code": [ " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " ...
void FUNC_0(VGACommonState *VAR_0, Object *VAR_1, bool VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; for(VAR_3 = 0;VAR_3 < 256; VAR_3++) { VAR_5 = 0; for(VAR_4 = 0; VAR_4 < 8; VAR_4++) { VAR_5 |= ((VAR_3 >> VAR_4) & 1) << (VAR_4 * 4); } expand4[VAR_3] = VAR_5; ...
[ "void FUNC_0(VGACommonState *VAR_0, Object *VAR_1, bool VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "for(VAR_3 = 0;VAR_3 < 256; VAR_3++) {", "VAR_5 = 0;", "for(VAR_4 = 0; VAR_4 < 8; VAR_4++) {", "VAR_5 |= ((VAR_3 >> VAR_4) & 1) << (VAR_4 * 4);", "}", "expand4[VAR_3] = VAR_5;", "VAR_5 = 0;", "fo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
1,414
static void dss_sp_scale_vector(int32_t *vec, int bits, int size) { int i; if (bits < 0) for (i = 0; i < size; i++) vec[i] = vec[i] >> -bits; else for (i = 0; i < size; i++) vec[i] = vec[i] << bits; }
true
FFmpeg
38152d9368beb080b4acd6cd9e5ccc89b3f733bf
static void dss_sp_scale_vector(int32_t *vec, int bits, int size) { int i; if (bits < 0) for (i = 0; i < size; i++) vec[i] = vec[i] >> -bits; else for (i = 0; i < size; i++) vec[i] = vec[i] << bits; }
{ "code": [ " vec[i] = vec[i] << bits;" ], "line_no": [ 19 ] }
static void FUNC_0(int32_t *VAR_0, int VAR_1, int VAR_2) { int VAR_3; if (VAR_1 < 0) for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) VAR_0[VAR_3] = VAR_0[VAR_3] >> -VAR_1; else for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) VAR_0[VAR_3] = VAR_0[VAR_3] << VAR_1; }
[ "static void FUNC_0(int32_t *VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3;", "if (VAR_1 < 0)\nfor (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++)", "VAR_0[VAR_3] = VAR_0[VAR_3] >> -VAR_1;", "else\nfor (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++)", "VAR_0[VAR_3] = VAR_0[VAR_3] << VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ] ]
1,415
void OPPROTO op_store_msr (void) { do_store_msr(env, T0); RETURN(); }
true
qemu
a97fed52e57385fc749e6f6ef95be7ebdb81ba9b
void OPPROTO op_store_msr (void) { do_store_msr(env, T0); RETURN(); }
{ "code": [ " do_store_msr(env, T0);" ], "line_no": [ 5 ] }
void VAR_0 op_store_msr (void) { do_store_msr(env, T0); RETURN(); }
[ "void VAR_0 op_store_msr (void)\n{", "do_store_msr(env, T0);", "RETURN();", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,417
static void rac_normalise(RangeCoder *c) { for (;;) { c->range <<= 8; c->low <<= 8; if (c->src < c->src_end) { c->low |= *c->src++; } else if (!c->low) { c->got_error = 1; return; } if (c->range >= RAC_BOTTOM) ...
true
FFmpeg
b926cc7834d5bc998775528097831c0fbcf3730a
static void rac_normalise(RangeCoder *c) { for (;;) { c->range <<= 8; c->low <<= 8; if (c->src < c->src_end) { c->low |= *c->src++; } else if (!c->low) { c->got_error = 1; return; } if (c->range >= RAC_BOTTOM) ...
{ "code": [], "line_no": [] }
static void FUNC_0(RangeCoder *VAR_0) { for (;;) { VAR_0->range <<= 8; VAR_0->low <<= 8; if (VAR_0->src < VAR_0->src_end) { VAR_0->low |= *VAR_0->src++; } else if (!VAR_0->low) { VAR_0->got_error = 1; return; } if (VAR_...
[ "static void FUNC_0(RangeCoder *VAR_0)\n{", "for (;;) {", "VAR_0->range <<= 8;", "VAR_0->low <<= 8;", "if (VAR_0->src < VAR_0->src_end) {", "VAR_0->low |= *VAR_0->src++;", "} else if (!VAR_0->low) {", "VAR_0->got_error = 1;", "return;", "}", "if (VAR_0->range >= RAC_BOTTOM)\nreturn;", "}", ...
[ 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 ] ]
1,419
static int64_t scene_sad16(FrameRateContext *s, const uint16_t *p1, int p1_linesize, const uint16_t* p2, int p2_linesize, int height) { int64_t sad; int x, y; for (sad = y = 0; y < height; y += 8) { for (x = 0; x < p1_linesize; x += 8) { sad += sad_8x8_16(p1 + y * p1_linesize + x, ...
true
FFmpeg
e403e4bdbea08af0c4a068eb560b577d1b64cf7a
static int64_t scene_sad16(FrameRateContext *s, const uint16_t *p1, int p1_linesize, const uint16_t* p2, int p2_linesize, int height) { int64_t sad; int x, y; for (sad = y = 0; y < height; y += 8) { for (x = 0; x < p1_linesize; x += 8) { sad += sad_8x8_16(p1 + y * p1_linesize + x, ...
{ "code": [ "static int64_t scene_sad16(FrameRateContext *s, const uint16_t *p1, int p1_linesize, const uint16_t* p2, int p2_linesize, int height)", " for (sad = y = 0; y < height; y += 8) {", " for (x = 0; x < p1_linesize; x += 8) {", " for (sad = y = 0; y < height; y += 8) {", " ...
static int64_t FUNC_0(FrameRateContext *s, const uint16_t *p1, int p1_linesize, const uint16_t* p2, int p2_linesize, int height) { int64_t sad; int VAR_0, VAR_1; for (sad = VAR_1 = 0; VAR_1 < height; VAR_1 += 8) { for (VAR_0 = 0; VAR_0 < p1_linesize; VAR_0 += 8) { sad += sad_8x8_16...
[ "static int64_t FUNC_0(FrameRateContext *s, const uint16_t *p1, int p1_linesize, const uint16_t* p2, int p2_linesize, int height)\n{", "int64_t sad;", "int VAR_0, VAR_1;", "for (sad = VAR_1 = 0; VAR_1 < height; VAR_1 += 8) {", "for (VAR_0 = 0; VAR_0 < p1_linesize; VAR_0 += 8) {", "sad += sad_8x8_16(p1 + V...
[ 1, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
1,421
static int hds_write_packet(AVFormatContext *s, AVPacket *pkt) { HDSContext *c = s->priv_data; AVStream *st = s->streams[pkt->stream_index]; OutputStream *os = &c->streams[s->streams[pkt->stream_index]->id]; int64_t end_dts = (os->fragment_index) * c->min_frag_duration; int ret; if (st-...
true
FFmpeg
417927af3c99bc17819995aa57ae05685deeace8
static int hds_write_packet(AVFormatContext *s, AVPacket *pkt) { HDSContext *c = s->priv_data; AVStream *st = s->streams[pkt->stream_index]; OutputStream *os = &c->streams[s->streams[pkt->stream_index]->id]; int64_t end_dts = (os->fragment_index) * c->min_frag_duration; int ret; if (st-...
{ "code": [ " int64_t end_dts = (os->fragment_index) * c->min_frag_duration;" ], "line_no": [ 11 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { HDSContext *c = VAR_0->priv_data; AVStream *st = VAR_0->streams[VAR_1->stream_index]; OutputStream *os = &c->streams[VAR_0->streams[VAR_1->stream_index]->id]; int64_t end_dts = (os->fragment_index) * c->min_frag_duration; int VAR_2; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "HDSContext *c = VAR_0->priv_data;", "AVStream *st = VAR_0->streams[VAR_1->stream_index];", "OutputStream *os = &c->streams[VAR_0->streams[VAR_1->stream_index]->id];", "int64_t end_dts = (os->fragment_index) * c->min_frag_duration;", "int VA...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23, 25, 27, 29 ], [ 33, 35 ], [ 37 ], [ 45, 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ] ]
1,423
static int gif_read_extension(GifState *s) { int ext_code, ext_len, gce_flags, gce_transparent_index; /* There must be at least 2 bytes: * 1 for extension label and 1 for extension length. */ if (bytestream2_get_bytes_left(&s->gb) < 2) return AVERROR_INVALIDDATA; ext_code = bytes...
false
FFmpeg
aaebdce3d90725ff93a31678690a306da6e12bbb
static int gif_read_extension(GifState *s) { int ext_code, ext_len, gce_flags, gce_transparent_index; if (bytestream2_get_bytes_left(&s->gb) < 2) return AVERROR_INVALIDDATA; ext_code = bytestream2_get_byteu(&s->gb); ext_len = bytestream2_get_byteu(&s->gb); av_dlog(s->avc...
{ "code": [], "line_no": [] }
static int FUNC_0(GifState *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4; if (bytestream2_get_bytes_left(&VAR_0->gb) < 2) return AVERROR_INVALIDDATA; VAR_1 = bytestream2_get_byteu(&VAR_0->gb); VAR_2 = bytestream2_get_byteu(&VAR_0->gb); av_dlog(VAR_0->avctx, "VAR_1=0x%x len=%d...
[ "static int FUNC_0(GifState *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4;", "if (bytestream2_get_bytes_left(&VAR_0->gb) < 2)\nreturn AVERROR_INVALIDDATA;", "VAR_1 = bytestream2_get_byteu(&VAR_0->gb);", "VAR_2 = bytestream2_get_byteu(&VAR_0->gb);", "av_dlog(VAR_0->avctx, \"VAR_1=0x%x len=%d\\n\", VAR_1, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31, 33, 35 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 59, 61 ], [ 63 ], [ 67, 69, 7...
1,424
yuv2rgb_2_c_template(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, const uint16_t *abuf1, uint8_t *dest,...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
yuv2rgb_2_c_template(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, const uint16_t *abuf1, uint8_t *dest,...
{ "code": [], "line_no": [] }
FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1, const uint16_t *VAR_2, const uint16_t *VAR_3, const uint16_t *VAR_4, const uint16_t *VAR_5, const uint16_t *VAR_6, const uint16_t *VAR_7, const uint16_t *VAR_8, uint8_t *VAR_9, int VA...
[ "FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1,\nconst uint16_t *VAR_2, const uint16_t *VAR_3,\nconst uint16_t *VAR_4, const uint16_t *VAR_5,\nconst uint16_t *VAR_6, const uint16_t *VAR_7,\nconst uint16_t *VAR_8, uint8_t *VAR_9, int VAR_10,\nint VAR_11, int VAR_12, int VAR_13,\nenum PixelFormat VAR_14, int VAR_15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55,...
1,425
static inline void mix_3f_to_stereo(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { output[1][i] += output[2][i]; output[2][i] += output[3][i]; } memset(output[3], 0, sizeof(output[3])); }
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_3f_to_stereo(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { output[1][i] += output[2][i]; output[2][i] += output[3][i]; } memset(output[3], 0, sizeof(output[3])); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float (*VAR_2)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) { VAR_2[1][VAR_1] += VAR_2[2][VAR_1]; VAR_2[2][VAR_1] += VAR_2[3][VAR_1]; } memset(VAR_2[3], 0, sizeof(VAR_2[3])); }...
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float (*VAR_2)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {", "VAR_2[1][VAR_1] += VAR_2[2][VAR_1];", "VAR_2[2][VAR_1] += VAR_2[3][VAR_1];", "}", "memset(VAR_2[3], 0, sizeof(VAR_2[3]));", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
1,427
static void decode_sigpass(Jpeg2000T1Context *t1, int width, int height, int bpno, int bandno, int bpass_csty_symbol, int vert_causal_ctx_csty_symbol) { int mask = 3 << (bpno - 1), y0, x, y; for (y0 = 0; y0 < height; y0 += 4) for (x = 0; x < ...
false
FFmpeg
dc73c7adc0284871af34100a6062378c07a63569
static void decode_sigpass(Jpeg2000T1Context *t1, int width, int height, int bpno, int bandno, int bpass_csty_symbol, int vert_causal_ctx_csty_symbol) { int mask = 3 << (bpno - 1), y0, x, y; for (y0 = 0; y0 < height; y0 += 4) for (x = 0; x < ...
{ "code": [], "line_no": [] }
static void FUNC_0(Jpeg2000T1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7 = 3 << (VAR_3 - 1), VAR_8, VAR_9, VAR_10; for (VAR_8 = 0; VAR_8 < VAR_2; VAR_8 += 4) for (VAR_9 = 0; VAR_9 < VAR_1; VAR...
[ "static void FUNC_0(Jpeg2000T1Context *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nint VAR_6)\n{", "int VAR_7 = 3 << (VAR_3 - 1), VAR_8, VAR_9, VAR_10;", "for (VAR_8 = 0; VAR_8 < VAR_2; VAR_8 += 4)", "for (VAR_9 = 0; VAR_9 < VAR_1; VAR_9++)", "for (VAR_10 = VAR_8; VAR_10 < VAR_2 && VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39, 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ...
1,428
void ff_fix_long_p_mvs(MpegEncContext * s) { const int f_code= s->f_code; int y; UINT8 * fcode_tab= s->fcode_tab; /* clip / convert to intra 16x16 type MVs */ for(y=0; y<s->mb_height; y++){ int x; int xy= (y+1)* (s->mb_width+2)+1; int i= y*s->mb_width; for...
false
FFmpeg
0d21a84605bad4e75dacb8196e5859902ed36f01
void ff_fix_long_p_mvs(MpegEncContext * s) { const int f_code= s->f_code; int y; UINT8 * fcode_tab= s->fcode_tab; for(y=0; y<s->mb_height; y++){ int x; int xy= (y+1)* (s->mb_width+2)+1; int i= y*s->mb_width; for(x=0; x<s->mb_width; x++){ if(s...
{ "code": [], "line_no": [] }
void FUNC_0(MpegEncContext * VAR_0) { const int VAR_1= VAR_0->VAR_1; int VAR_2; UINT8 * fcode_tab= VAR_0->fcode_tab; for(VAR_2=0; VAR_2<VAR_0->mb_height; VAR_2++){ int x; int xy= (VAR_2+1)* (VAR_0->mb_width+2)+1; int i= VAR_2*VAR_0->mb_width; for(x=0; x<V...
[ "void FUNC_0(MpegEncContext * VAR_0)\n{", "const int VAR_1= VAR_0->VAR_1;", "int VAR_2;", "UINT8 * fcode_tab= VAR_0->fcode_tab;", "for(VAR_2=0; VAR_2<VAR_0->mb_height; VAR_2++){", "int x;", "int xy= (VAR_2+1)* (VAR_0->mb_width+2)+1;", "int i= VAR_2*VAR_0->mb_width;", "for(x=0; x<VAR_0->mb_width; 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, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
1,429
static av_cold int pcm_dvd_decode_init(AVCodecContext *avctx) { PCMDVDContext *s = avctx->priv_data; /* Invalid header to force parsing of the first header */ s->last_header = -1; /* reserve space for 8 channels, 3 bytes/sample, 4 samples/block */ if (!(s->extra_samples = av_malloc(8 * 3 * 4...
false
FFmpeg
d9cdb7d8d6d828bb5497ea3f0fd7edd2f3f6cc30
static av_cold int pcm_dvd_decode_init(AVCodecContext *avctx) { PCMDVDContext *s = avctx->priv_data; s->last_header = -1; if (!(s->extra_samples = av_malloc(8 * 3 * 4))) return AVERROR(ENOMEM); s->extra_sample_count = 0; return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { PCMDVDContext *s = avctx->priv_data; s->last_header = -1; if (!(s->extra_samples = av_malloc(8 * 3 * 4))) return AVERROR(ENOMEM); s->extra_sample_count = 0; return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "PCMDVDContext *s = avctx->priv_data;", "s->last_header = -1;", "if (!(s->extra_samples = av_malloc(8 * 3 * 4)))\nreturn AVERROR(ENOMEM);", "s->extra_sample_count = 0;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 23 ], [ 25 ] ]
1,430
void ff_h264_v_lpf_chroma_inter_msa(uint8_t *data, int img_width, int alpha, int beta, int8_t *tc) { uint8_t bs0 = 1; uint8_t bs1 = 1; uint8_t bs2 = 1; uint8_t bs3 = 1; if (tc[0] < 0) bs0 = 0; if (tc[1] < 0) bs1 = 0; if (tc[2] ...
false
FFmpeg
bcd7bf7eeb09a395cc01698842d1b8be9af483fc
void ff_h264_v_lpf_chroma_inter_msa(uint8_t *data, int img_width, int alpha, int beta, int8_t *tc) { uint8_t bs0 = 1; uint8_t bs1 = 1; uint8_t bs2 = 1; uint8_t bs3 = 1; if (tc[0] < 0) bs0 = 0; if (tc[1] < 0) bs1 = 0; if (tc[2] ...
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int8_t *VAR_4) { uint8_t bs0 = 1; uint8_t bs1 = 1; uint8_t bs2 = 1; uint8_t bs3 = 1; if (VAR_4[0] < 0) bs0 = 0; if (VAR_4[1] < 0) bs1 = 0; if (VAR_4[2] < 0) ...
[ "void FUNC_0(uint8_t *VAR_0, int VAR_1,\nint VAR_2, int VAR_3, int8_t *VAR_4)\n{", "uint8_t bs0 = 1;", "uint8_t bs1 = 1;", "uint8_t bs2 = 1;", "uint8_t bs3 = 1;", "if (VAR_4[0] < 0)\nbs0 = 0;", "if (VAR_4[1] < 0)\nbs1 = 0;", "if (VAR_4[2] < 0)\nbs2 = 0;", "if (VAR_4[3] < 0)\nbs3 = 0;", "avc_loopfi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 35, 37, 39, 41, 43 ], [ 45 ] ]
1,431
static AVFrame *get_palette_frame(AVFilterContext *ctx) { AVFrame *out; PaletteGenContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; double ratio; int box_id = 0; struct range_box *box; /* reference only the used colors from histogram */ s->refs = load_color_refs...
false
FFmpeg
229843aa359ae0c9519977d7fa952688db63f559
static AVFrame *get_palette_frame(AVFilterContext *ctx) { AVFrame *out; PaletteGenContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; double ratio; int box_id = 0; struct range_box *box; s->refs = load_color_refs(s->histogram, s->nb_refs); if (!s->refs) { ...
{ "code": [], "line_no": [] }
static AVFrame *FUNC_0(AVFilterContext *ctx) { AVFrame *out; PaletteGenContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; double VAR_0; int VAR_1 = 0; struct range_box *VAR_2; s->refs = load_color_refs(s->histogram, s->nb_refs); if (!s->refs) { av_...
[ "static AVFrame *FUNC_0(AVFilterContext *ctx)\n{", "AVFrame *out;", "PaletteGenContext *s = ctx->priv;", "AVFilterLink *outlink = ctx->outputs[0];", "double VAR_0;", "int VAR_1 = 0;", "struct range_box *VAR_2;", "s->refs = load_color_refs(s->histogram, s->nb_refs);", "if (!s->refs) {", "av_log(ctx...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
1,432
static void sun4uv_init(MemoryRegion *address_space_mem, MachineState *machine, const struct hwdef *hwdef) { SPARCCPU *cpu; M48t59State *nvram; unsigned int i; uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry; PCIBus *p...
true
qemu
d8f94e1bb275ab6a14a15220fd6afd0d04324aeb
static void sun4uv_init(MemoryRegion *address_space_mem, MachineState *machine, const struct hwdef *hwdef) { SPARCCPU *cpu; M48t59State *nvram; unsigned int i; uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry; PCIBus *p...
{ "code": [ " ide_drive_get(hd, MAX_IDE_BUS);", " ide_drive_get(hd, MAX_IDE_BUS);", " ide_drive_get(hd, MAX_IDE_BUS);", " ide_drive_get(hd, MAX_IDE_BUS);", " ide_drive_get(hd, MAX_IDE_BUS);", " ide_drive_get(hd, MAX_IDE_BUS);", " ide_drive_get(hd, MAX_IDE_BUS);", "...
static void FUNC_0(MemoryRegion *VAR_0, MachineState *VAR_1, const struct VAR_2 *VAR_2) { SPARCCPU *cpu; M48t59State *nvram; unsigned int VAR_3; uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry; PCIBus *pci_bus, *pci_bu...
[ "static void FUNC_0(MemoryRegion *VAR_0,\nMachineState *VAR_1,\nconst struct VAR_2 *VAR_2)\n{", "SPARCCPU *cpu;", "M48t59State *nvram;", "unsigned int VAR_3;", "uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry;", "PCIBus *pci_bus, *pci_bus2, *pci_bus3;", "ISABus *isa_bus;", "q...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 39 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 59 ], [...
1,433
static int dss_read_metadata_date(AVFormatContext *s, unsigned int offset, const char *key) { AVIOContext *pb = s->pb; char datetime[64], string[DSS_TIME_SIZE + 1] = { 0 }; int y, month, d, h, minute, sec; int ret; avio_seek(pb, offset, SEEK_SET); re...
true
FFmpeg
b2bbe8298ba5416f26ffadb43f9e75997ec02f7f
static int dss_read_metadata_date(AVFormatContext *s, unsigned int offset, const char *key) { AVIOContext *pb = s->pb; char datetime[64], string[DSS_TIME_SIZE + 1] = { 0 }; int y, month, d, h, minute, sec; int ret; avio_seek(pb, offset, SEEK_SET); re...
{ "code": [ " sscanf(string, \"%2d%2d%2d%2d%2d%2d\", &y, &month, &d, &h, &minute, &sec);" ], "line_no": [ 29 ] }
static int FUNC_0(AVFormatContext *VAR_0, unsigned int VAR_1, const char *VAR_2) { AVIOContext *pb = VAR_0->pb; char VAR_3[64], string[DSS_TIME_SIZE + 1] = { 0 }; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10; avio_seek(pb, VAR_1, SEEK_SET); ...
[ "static int FUNC_0(AVFormatContext *VAR_0, unsigned int VAR_1,\nconst char *VAR_2)\n{", "AVIOContext *pb = VAR_0->pb;", "char VAR_3[64], string[DSS_TIME_SIZE + 1] = { 0 };", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10;", "avio_seek(pb, VAR_1, SEEK_SET);", "VAR_10 = avio_read(VAR_0->pb, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 35, 37 ], [ 39 ], [ 41 ] ]
1,436
static void fdctrl_start_transfer(FDCtrl *fdctrl, int direction) { FDrive *cur_drv; uint8_t kh, kt, ks; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); kt = fdctrl->fifo[2]; kh = fdctrl->fifo[3]; ks = fdctrl->fifo[4]; FLOPPY_DPRINTF("Start...
true
qemu
7ea004ed67e08462926a8559e1c6953e387e4035
static void fdctrl_start_transfer(FDCtrl *fdctrl, int direction) { FDrive *cur_drv; uint8_t kh, kt, ks; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); kt = fdctrl->fifo[2]; kh = fdctrl->fifo[3]; ks = fdctrl->fifo[4]; FLOPPY_DPRINTF("Start...
{ "code": [ " (direction == FD_DIR_READ && dma_mode == 1)) {", " DMA_hold_DREQ(fdctrl->dma_chann);", " DMA_schedule(fdctrl->dma_chann);" ], "line_no": [ 175, 187, 189 ] }
static void FUNC_0(FDCtrl *VAR_0, int VAR_1) { FDrive *cur_drv; uint8_t kh, kt, ks; SET_CUR_DRV(VAR_0, VAR_0->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(VAR_0); kt = VAR_0->fifo[2]; kh = VAR_0->fifo[3]; ks = VAR_0->fifo[4]; FLOPPY_DPRINTF("Start transfer at %d %d %02x %0...
[ "static void FUNC_0(FDCtrl *VAR_0, int VAR_1)\n{", "FDrive *cur_drv;", "uint8_t kh, kt, ks;", "SET_CUR_DRV(VAR_0, VAR_0->fifo[1] & FD_DOR_SELMASK);", "cur_drv = get_cur_drv(VAR_0);", "kt = VAR_0->fifo[2];", "kh = VAR_0->fifo[3];", "ks = VAR_0->fifo[4];", "FLOPPY_DPRINTF(\"Start transfer at %d %d %02...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27 ], [ 29 ], [ 31, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 49 ], [ 51 ], ...
1,437
static int mxf_write_footer(AVFormatContext *s) { MXFContext *mxf = s->priv_data; AVIOContext *pb = s->pb; int err = 0; mxf->duration = mxf->last_indexed_edit_unit + mxf->edit_units_count; mxf_write_klv_fill(s); mxf->footer_partition_offset = avio_tell(pb); if (mxf->edit_unit_byte_count && s...
true
FFmpeg
b61cb61ab8f9abca98cc8c4d67cbefdb30f1e82a
static int mxf_write_footer(AVFormatContext *s) { MXFContext *mxf = s->priv_data; AVIOContext *pb = s->pb; int err = 0; mxf->duration = mxf->last_indexed_edit_unit + mxf->edit_units_count; mxf_write_klv_fill(s); mxf->footer_partition_offset = avio_tell(pb); if (mxf->edit_unit_byte_count && s...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { MXFContext *mxf = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; int VAR_1 = 0; mxf->duration = mxf->last_indexed_edit_unit + mxf->edit_units_count; mxf_write_klv_fill(VAR_0); mxf->footer_partition_offset = avio_tell(pb); if (mxf->edit_unit_byte_co...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MXFContext *mxf = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "int VAR_1 = 0;", "mxf->duration = mxf->last_indexed_edit_unit + mxf->edit_units_count;", "mxf_write_klv_fill(VAR_0);", "mxf->footer_partition_offset = avio_tell(pb);", "if (mxf->edit...
[ 0, 0, 0, 0, 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 ], [ 20 ], [ 21, 22 ], [ 23 ], [ ...
1,438
static int inet_listen_saddr(InetSocketAddress *saddr, int port_offset, bool update_addr, Error **errp) { struct addrinfo ai,*res,*e; char port[33]; char uaddr[INET6_ADDRSTRLEN+1]; char uport[33]; int rc,...
true
qemu
10a7b7e6fd9f250f0506568345d7b4d2ab52889d
static int inet_listen_saddr(InetSocketAddress *saddr, int port_offset, bool update_addr, Error **errp) { struct addrinfo ai,*res,*e; char port[33]; char uaddr[INET6_ADDRSTRLEN+1]; char uport[33]; int rc,...
{ "code": [ " int slisten = 0;", " slisten = create_fast_reuse_socket(e);", " if (slisten < 0) {", " continue;", " socket_created = true;", " rc = try_bind(slisten, saddr, e);", " if (rc) {", " if (errno == EADDRIN...
static int FUNC_0(InetSocketAddress *VAR_0, int VAR_1, bool VAR_2, Error **VAR_3) { struct addrinfo VAR_4,*VAR_5,*VAR_6; char VAR_7[33]; char VAR_8[INET6_ADDRSTRLEN+1]; char VAR_9[33]; int VAR_10, VAR_11,...
[ "static int FUNC_0(InetSocketAddress *VAR_0,\nint VAR_1,\nbool VAR_2,\nError **VAR_3)\n{", "struct addrinfo VAR_4,*VAR_5,*VAR_6;", "char VAR_7[33];", "char VAR_8[INET6_ADDRSTRLEN+1];", "char VAR_9[33];", "int VAR_10, VAR_11, VAR_12, VAR_13;", "int VAR_14 = 0;", "int VAR_15 = 0;", "bool socket_create...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
1,440
static void *circular_buffer_task( void *_URLContext) { URLContext *h = _URLContext; UDPContext *s = h->priv_data; int old_cancelstate; pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_cancelstate); ff_socket_nonblock(s->udp_fd, 0); while(1) { int left; int len; ...
false
FFmpeg
5deb5ccbbb556c4a15f3c7494f00de2963d0aba6
static void *circular_buffer_task( void *_URLContext) { URLContext *h = _URLContext; UDPContext *s = h->priv_data; int old_cancelstate; pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_cancelstate); ff_socket_nonblock(s->udp_fd, 0); while(1) { int left; int len; ...
{ "code": [], "line_no": [] }
static void *FUNC_0( void *VAR_0) { URLContext *h = VAR_0; UDPContext *s = h->priv_data; int VAR_1; pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &VAR_1); ff_socket_nonblock(s->udp_fd, 0); while(1) { int VAR_2; int VAR_3; VAR_2 = av_fifo...
[ "static void *FUNC_0( void *VAR_0)\n{", "URLContext *h = VAR_0;", "UDPContext *s = h->priv_data;", "int VAR_1;", "pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &VAR_1);", "ff_socket_nonblock(s->udp_fd, 0);", "while(1) {", "int VAR_2;", "int VAR_3;", "VAR_2 = av_fifo_space(s->fifo);", "pthread_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 29 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
1,442
static void FUNCC(pred8x8l_horizontal)(uint8_t *_src, int has_topleft, int has_topright, int _stride) { pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); PREDICT_8x8_LOAD_LEFT; #define ROW(y) ((pixel4*)(src+y*stride))[0] =\ ((pixel4*)(src+y*stride))[1] = PIXEL_SPLAT_X4(l#...
false
FFmpeg
d2bf42895ac30d228491a8a95a5908351dc32783
static void FUNCC(pred8x8l_horizontal)(uint8_t *_src, int has_topleft, int has_topright, int _stride) { pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); PREDICT_8x8_LOAD_LEFT; #define ROW(y) ((pixel4*)(src+y*stride))[0] =\ ((pixel4*)(src+y*stride))[1] = PIXEL_SPLAT_X4(l#...
{ "code": [], "line_no": [] }
static void FUNC_0(pred8x8l_horizontal)(uint8_t *_src, int has_topleft, int has_topright, int _stride) { pixel *src = (pixel*)_src; int VAR_0 = _stride/sizeof(pixel); PREDICT_8x8_LOAD_LEFT; #define ROW(y) ((pixel4*)(src+y*VAR_0))[0] =\ ((pixel4*)(src+y*VAR_0))[1] = PIXEL_SPLAT_X4(l##y...
[ "static void FUNC_0(pred8x8l_horizontal)(uint8_t *_src, int has_topleft, int has_topright, int _stride)\n{", "pixel *src = (pixel*)_src;", "int VAR_0 = _stride/sizeof(pixel);", "PREDICT_8x8_LOAD_LEFT;", "#define ROW(y) ((pixel4*)(src+y*VAR_0))[0] =\\\n((pixel4*)(src+y*VAR_0))[1] = PIXEL_SPLAT_X4(l##y)\nROW(...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 19, 21 ] ]
1,443
static int g726_init(AVCodecContext * avctx) { AVG726Context* c = (AVG726Context*)avctx->priv_data; if (avctx->sample_rate != 8000 || avctx->channels != 1 || (avctx->bit_rate != 16000 && avctx->bit_rate != 24000 && avctx->bit_rate != 32000 && avctx->bit_rate != 40000)) { av_log(avc...
false
FFmpeg
eb5b0422b595d488f5c2f2a37a62cd46dfbb6aa7
static int g726_init(AVCodecContext * avctx) { AVG726Context* c = (AVG726Context*)avctx->priv_data; if (avctx->sample_rate != 8000 || avctx->channels != 1 || (avctx->bit_rate != 16000 && avctx->bit_rate != 24000 && avctx->bit_rate != 32000 && avctx->bit_rate != 40000)) { av_log(avc...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0) { AVG726Context* c = (AVG726Context*)VAR_0->priv_data; if (VAR_0->sample_rate != 8000 || VAR_0->channels != 1 || (VAR_0->bit_rate != 16000 && VAR_0->bit_rate != 24000 && VAR_0->bit_rate != 32000 && VAR_0->bit_rate != 40000)) { av_log(VAR_0,...
[ "static int FUNC_0(AVCodecContext * VAR_0)\n{", "AVG726Context* c = (AVG726Context*)VAR_0->priv_data;", "if (VAR_0->sample_rate != 8000 || VAR_0->channels != 1 ||\n(VAR_0->bit_rate != 16000 && VAR_0->bit_rate != 24000 &&\nVAR_0->bit_rate != 32000 && VAR_0->bit_rate != 40000)) {", "av_log(VAR_0, AV_LOG_ERROR, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
1,444
static int decode_user_data(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; char buf[256]; int i; int e; int ver = 0, build = 0, ver2 = 0, ver3 = 0; char last; for (i = 0; i < 255 && get_bits_count(gb) < gb->size_in_bits; i++) { if (show_bits(gb, 23...
false
FFmpeg
0e7865ce4152f8b04cda6a698bbee4fd4a94009d
static int decode_user_data(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; char buf[256]; int i; int e; int ver = 0, build = 0, ver2 = 0, ver3 = 0; char last; for (i = 0; i < 255 && get_bits_count(gb) < gb->size_in_bits; i++) { if (show_bits(gb, 23...
{ "code": [], "line_no": [] }
static int FUNC_0(Mpeg4DecContext *VAR_0, GetBitContext *VAR_1) { MpegEncContext *s = &VAR_0->m; char VAR_2[256]; int VAR_3; int VAR_4; int VAR_5 = 0, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0; char VAR_9; for (VAR_3 = 0; VAR_3 < 255 && get_bits_count(VAR_1) < VAR_1->size_in_bits; VAR_3++) {...
[ "static int FUNC_0(Mpeg4DecContext *VAR_0, GetBitContext *VAR_1)\n{", "MpegEncContext *s = &VAR_0->m;", "char VAR_2[256];", "int VAR_3;", "int VAR_4;", "int VAR_5 = 0, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0;", "char VAR_9;", "for (VAR_3 = 0; VAR_3 < 255 && get_bits_count(VAR_1) < VAR_1->size_in_bits; 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
1,445
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec, int size) { int id; if (size < 14) return AVERROR_INVALIDDATA; id = avio_rl16(pb); codec->codec_type = AVMEDIA_TYPE_AUDIO; codec->channels = avio_rl16(pb); ...
false
FFmpeg
f1bdc234370401c032cd85184e93c7c155eb6d62
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec, int size) { int id; if (size < 14) return AVERROR_INVALIDDATA; id = avio_rl16(pb); codec->codec_type = AVMEDIA_TYPE_AUDIO; codec->channels = avio_rl16(pb); ...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, AVCodecContext *VAR_2, int VAR_3) { int VAR_4; if (VAR_3 < 14) return AVERROR_INVALIDDATA; VAR_4 = avio_rl16(VAR_1); VAR_2->codec_type = AVMEDIA_TYPE_AUDIO; VAR_2->channels = avio_rl1...
[ "int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1,\nAVCodecContext *VAR_2, int VAR_3)\n{", "int VAR_4;", "if (VAR_3 < 14)\nreturn AVERROR_INVALIDDATA;", "VAR_4 = avio_rl16(VAR_1);", "VAR_2->codec_type = AVMEDIA_TYPE_AUDIO;", "VAR_2->channels = avio_rl16(VAR_1);", "VAR_2->sample_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], ...
1,446
static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt, int add_cue) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar; int keyframe = !!(pkt->flags & AV_PKT_FLAG_KEY); int dur...
false
FFmpeg
eabbc64728c2fdb74f565aededec2ab023d20699
static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt, int add_cue) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar; int keyframe = !!(pkt->flags & AV_PKT_FLAG_KEY); int dur...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, int VAR_2) { MatroskaMuxContext *mkv = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; AVCodecParameters *par = VAR_0->streams[VAR_1->stream_index]->codecpar; int VAR_3 = !!(VAR_1->flags & AV_PKT_FLAG_KEY); int VAR_4...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, int VAR_2)\n{", "MatroskaMuxContext *mkv = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "AVCodecParameters *par = VAR_0->streams[VAR_1->stream_index]->codecpar;", "int VAR_3 = !!(VAR_1->flags & AV_PKT_FLAG_KEY);", "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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
1,448
static av_cold int XAVS_init(AVCodecContext *avctx) { XavsContext *x4 = avctx->priv_data; x4->sei_size = 0; xavs_param_default(&x4->params); x4->params.pf_log = XAVS_log; x4->params.p_log_private = avctx; x4->params.i_keyint_max = avctx->gop_size; if ...
false
FFmpeg
0e6c8532215790bbe560a9eea4f3cc82bb55cf92
static av_cold int XAVS_init(AVCodecContext *avctx) { XavsContext *x4 = avctx->priv_data; x4->sei_size = 0; xavs_param_default(&x4->params); x4->params.pf_log = XAVS_log; x4->params.p_log_private = avctx; x4->params.i_keyint_max = avctx->gop_size; if ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { XavsContext *x4 = avctx->priv_data; x4->sei_size = 0; xavs_param_default(&x4->params); x4->params.pf_log = XAVS_log; x4->params.p_log_private = avctx; x4->params.i_keyint_max = avctx->gop_size; if (av...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "XavsContext *x4 = avctx->priv_data;", "x4->sei_size = 0;", "xavs_param_default(&x4->params);", "x4->params.pf_log = XAVS_log;", "x4->params.p_log_private = avctx;", "x4->params.i_keyint_max = avctx->gop_size;", "if (a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
1,449
static int film_read_close(AVFormatContext *s) { FilmDemuxContext *film = s->priv_data; av_freep(&film->sample_table); av_freep(&film->stereo_buffer); return 0; }
false
FFmpeg
ded5957d75def70d2f1fc1c1eae079230004974b
static int film_read_close(AVFormatContext *s) { FilmDemuxContext *film = s->priv_data; av_freep(&film->sample_table); av_freep(&film->stereo_buffer); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { FilmDemuxContext *film = VAR_0->priv_data; av_freep(&film->sample_table); av_freep(&film->stereo_buffer); return 0; }
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "FilmDemuxContext *film = VAR_0->priv_data;", "av_freep(&film->sample_table);", "av_freep(&film->stereo_buffer);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
1,450
static av_cold int png_enc_close(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int png_enc_close(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "av_frame_free(&avctx->coded_frame);", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,452
int opt_opencl_bench(void *optctx, const char *opt, const char *arg) { int i, j, nb_devices = 0, count = 0; int64_t score = 0; AVOpenCLDeviceList *device_list; AVOpenCLDeviceNode *device_node = NULL; OpenCLDeviceBenchmark *devices = NULL; cl_platform_id platform; av_opencl_get_devi...
true
FFmpeg
aa7982577c1dee021b72f4256f48d3c030d44e73
int opt_opencl_bench(void *optctx, const char *opt, const char *arg) { int i, j, nb_devices = 0, count = 0; int64_t score = 0; AVOpenCLDeviceList *device_list; AVOpenCLDeviceNode *device_node = NULL; OpenCLDeviceBenchmark *devices = NULL; cl_platform_id platform; av_opencl_get_devi...
{ "code": [ " int i, j, nb_devices = 0, count = 0;", " av_opencl_get_device_list(&device_list);" ], "line_no": [ 5, 19 ] }
int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2) { int VAR_3, VAR_4, VAR_5 = 0, VAR_6 = 0; int64_t score = 0; AVOpenCLDeviceList *device_list; AVOpenCLDeviceNode *device_node = NULL; OpenCLDeviceBenchmark *devices = NULL; cl_platform_id platform; av_opencl_get_device_l...
[ "int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5 = 0, VAR_6 = 0;", "int64_t score = 0;", "AVOpenCLDeviceList *device_list;", "AVOpenCLDeviceNode *device_node = NULL;", "OpenCLDeviceBenchmark *devices = NULL;", "cl_platform_id platform;", "av_opencl_get_devic...
[ 0, 1, 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 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ...
1,453
void ppc_tlb_invalidate_one (CPUPPCState *env, target_ulong addr) { #if !defined(FLUSH_ALL_TLBS) addr &= TARGET_PAGE_MASK; switch (env->mmu_model) { case POWERPC_MMU_SOFT_6xx: case POWERPC_MMU_SOFT_74xx: ppc6xx_tlb_invalidate_virt(env, addr, 0); if (env->id_tlbs == 1) ...
true
qemu
6f2d8978728c48ca46f5c01835438508aace5c64
void ppc_tlb_invalidate_one (CPUPPCState *env, target_ulong addr) { #if !defined(FLUSH_ALL_TLBS) addr &= TARGET_PAGE_MASK; switch (env->mmu_model) { case POWERPC_MMU_SOFT_6xx: case POWERPC_MMU_SOFT_74xx: ppc6xx_tlb_invalidate_virt(env, addr, 0); if (env->id_tlbs == 1) ...
{ "code": [ " addr &= ~((target_ulong)-1 << 28);" ], "line_no": [ 59 ] }
void FUNC_0 (CPUPPCState *VAR_0, target_ulong VAR_1) { #if !defined(FLUSH_ALL_TLBS) VAR_1 &= TARGET_PAGE_MASK; switch (VAR_0->mmu_model) { case POWERPC_MMU_SOFT_6xx: case POWERPC_MMU_SOFT_74xx: ppc6xx_tlb_invalidate_virt(VAR_0, VAR_1, 0); if (VAR_0->id_tlbs == 1) ppc...
[ "void FUNC_0 (CPUPPCState *VAR_0, target_ulong VAR_1)\n{", "#if !defined(FLUSH_ALL_TLBS)\nVAR_1 &= TARGET_PAGE_MASK;", "switch (VAR_0->mmu_model) {", "case POWERPC_MMU_SOFT_6xx:\ncase POWERPC_MMU_SOFT_74xx:\nppc6xx_tlb_invalidate_virt(VAR_0, VAR_1, 0);", "if (VAR_0->id_tlbs == 1)\nppc6xx_tlb_invalidate_virt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11, 13, 15 ], [ 17, 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 41 ], [ 43 ], [ 45, 49 ], [ 51 ], [ 53, 55,...
1,454
static void test_visitor_in_fail_list(TestInputVisitorData *data, const void *unused) { int64_t i64 = -1; Error *err = NULL; Visitor *v; /* Unvisited list tail */ v = visitor_input_test_init(data, "[ 1, 2, 3 ]"); visit_type_int(v, NULL, &i64, &error_abort); ...
true
qemu
a9416dc62c36079b93b4951c894a0b15e53bb38c
static void test_visitor_in_fail_list(TestInputVisitorData *data, const void *unused) { int64_t i64 = -1; Error *err = NULL; Visitor *v; v = visitor_input_test_init(data, "[ 1, 2, 3 ]"); visit_type_int(v, NULL, &i64, &error_abort); g_assert_cmpint(i64, ...
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { int64_t i64 = -1; Error *err = NULL; Visitor *v; v = visitor_input_test_init(VAR_0, "[ 1, 2, 3 ]"); visit_type_int(v, NULL, &i64, &error_abort); g_assert_cmpint(i64, ==, 1); visit_...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "int64_t i64 = -1;", "Error *err = NULL;", "Visitor *v;", "v = visitor_input_test_init(VAR_0, \"[ 1, 2, 3 ]\");", "visit_type_int(v, NULL, &i64, &error_abort);", "g_assert_cmpint(i64, ==, 1);", "visit_type_int(v, NULL, &i64, &er...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ] ]
1,455
int stpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba, uint8_t ar) { CPUS390XState *env = &cpu->env; uint32_t fh; ZpciFib fib; S390PCIBusDevice *pbdev; uint32_t data; uint64_t cc = ZPCI_PCI_LS_OK; if (env->psw.mask & PSW_MASK_PSTATE) { program_interrupt(env, PGM...
true
qemu
0a608a6e132abffa8fd9455e2354a47acb95847e
int stpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba, uint8_t ar) { CPUS390XState *env = &cpu->env; uint32_t fh; ZpciFib fib; S390PCIBusDevice *pbdev; uint32_t data; uint64_t cc = ZPCI_PCI_LS_OK; if (env->psw.mask & PSW_MASK_PSTATE) { program_interrupt(env, PGM...
{ "code": [ " pbdev = s390_pci_find_dev_by_fh(fh);" ], "line_no": [ 43 ] }
int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint64_t VAR_2, uint8_t VAR_3) { CPUS390XState *env = &VAR_0->env; uint32_t fh; ZpciFib fib; S390PCIBusDevice *pbdev; uint32_t data; uint64_t cc = ZPCI_PCI_LS_OK; if (env->psw.mask & PSW_MASK_PSTATE) { program_interrupt(env, PGM_PR...
[ "int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint64_t VAR_2, uint8_t VAR_3)\n{", "CPUS390XState *env = &VAR_0->env;", "uint32_t fh;", "ZpciFib fib;", "S390PCIBusDevice *pbdev;", "uint32_t data;", "uint64_t cc = ZPCI_PCI_LS_OK;", "if (env->psw.mask & PSW_MASK_PSTATE) {", "program_interrupt(env, PGM_PRI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
1,456
static void mips_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); MIPSCPU *cpu = MIPS_CPU(obj); CPUMIPSState *env = &cpu->env; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); if (tcg_enabled()) { mips_tcg_init(); } }
true
qemu
ce5b1bbf624b977a55ff7f85bb3871682d03baff
static void mips_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); MIPSCPU *cpu = MIPS_CPU(obj); CPUMIPSState *env = &cpu->env; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); if (tcg_enabled()) { mips_tcg_init(); } }
{ "code": [ " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);"...
static void FUNC_0(Object *VAR_0) { CPUState *cs = CPU(VAR_0); MIPSCPU *cpu = MIPS_CPU(VAR_0); CPUMIPSState *env = &cpu->env; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); if (tcg_enabled()) { mips_tcg_init(); } }
[ "static void FUNC_0(Object *VAR_0)\n{", "CPUState *cs = CPU(VAR_0);", "MIPSCPU *cpu = MIPS_CPU(VAR_0);", "CPUMIPSState *env = &cpu->env;", "cs->env_ptr = env;", "cpu_exec_init(cs, &error_abort);", "if (tcg_enabled()) {", "mips_tcg_init();", "}", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
1,458
static av_cold int omx_try_load(OMXContext *s, void *logctx, const char *libname, const char *prefix) { s->lib = dlopen(libname, RTLD_NOW | RTLD_GLOBAL); if (!s->lib) { av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname); return AVERROR_ENCODER_NOT_FOU...
true
FFmpeg
f1cd9b03f3fa875eb5e394281b4b688cec611658
static av_cold int omx_try_load(OMXContext *s, void *logctx, const char *libname, const char *prefix) { s->lib = dlopen(libname, RTLD_NOW | RTLD_GLOBAL); if (!s->lib) { av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname); return AVERROR_ENCODER_NOT_FOU...
{ "code": [ " const char *libname, const char *prefix)" ], "line_no": [ 3 ] }
static av_cold int FUNC_0(OMXContext *s, void *logctx, const char *libname, const char *prefix) { s->lib = dlopen(libname, RTLD_NOW | RTLD_GLOBAL); if (!s->lib) { av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname); return AVERROR_ENCODER_NOT_FOUND; ...
[ "static av_cold int FUNC_0(OMXContext *s, void *logctx,\nconst char *libname, const char *prefix)\n{", "s->lib = dlopen(libname, RTLD_NOW | RTLD_GLOBAL);", "if (!s->lib) {", "av_log(logctx, AV_LOG_WARNING, \"%s not found\\n\", libname);", "return AVERROR_ENCODER_NOT_FOUND;", "}", "s->ptr_Init ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
1,460
static void encode_cblk(Jpeg2000EncoderContext *s, Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, Jpeg2000Tile *tile, int width, int height, int bandpos, int lev) { int pass_t = 2, passno, x, y, max=0, nmsedec, bpno; int64_t wmsedec = 0; memset(t1->flags, 0, t1->stride * (height +...
true
FFmpeg
3d5822d9cf07d08bce82903e4715658f46b01b5c
static void encode_cblk(Jpeg2000EncoderContext *s, Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, Jpeg2000Tile *tile, int width, int height, int bandpos, int lev) { int pass_t = 2, passno, x, y, max=0, nmsedec, bpno; int64_t wmsedec = 0; memset(t1->flags, 0, t1->stride * (height +...
{ "code": [ " ff_mqc_initenc(&t1->mqc, cblk->data);" ], "line_no": [ 53 ] }
static void FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000T1Context *VAR_1, Jpeg2000Cblk *VAR_2, Jpeg2000Tile *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8 = 2, VAR_9, VAR_10, VAR_11, VAR_12=0, VAR_13, VAR_14; int64_t wmsedec = 0; memset(VAR_1->flags, 0, VAR_...
[ "static void FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000T1Context *VAR_1, Jpeg2000Cblk *VAR_2, Jpeg2000Tile *VAR_3,\nint VAR_4, int VAR_5, int VAR_6, int VAR_7)\n{", "int VAR_8 = 2, VAR_9, VAR_10, VAR_11, VAR_12=0, VAR_13, VAR_14;", "int64_t wmsedec = 0;", "memset(VAR_1->flags, 0, VAR_1->stride * (VAR_5 + ...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
1,461
static void gic_dist_writeb(void *opaque, hwaddr offset, uint32_t value, MemTxAttrs attrs) { GICState *s = (GICState *)opaque; int irq; int i; int cpu; cpu = gic_get_current_cpu(s); if (offset < 0x100) { if (offset == 0) { if (s->securi...
true
qemu
2531088f6c1ce1f620f8d5a545f0af95598e69fc
static void gic_dist_writeb(void *opaque, hwaddr offset, uint32_t value, MemTxAttrs attrs) { GICState *s = (GICState *)opaque; int irq; int i; int cpu; cpu = gic_get_current_cpu(s); if (offset < 0x100) { if (offset == 0) { if (s->securi...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint32_t VAR_2, MemTxAttrs VAR_3) { GICState *s = (GICState *)VAR_0; int VAR_4; int VAR_5; int VAR_6; VAR_6 = gic_get_current_cpu(s); if (VAR_1 < 0x100) { if (VAR_1 == 0) { if (s->security_e...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint32_t VAR_2, MemTxAttrs VAR_3)\n{", "GICState *s = (GICState *)VAR_0;", "int VAR_4;", "int VAR_5;", "int VAR_6;", "VAR_6 = gic_get_current_cpu(s);", "if (VAR_1 < 0x100) {", "if (VAR_1 == 0) {", "if (s->security_extn && !VAR_3.secure) {", "s->ctlr ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49 ...
1,462
static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { GifState *s = avctx->priv_data; AVFrame *picture = data; int ret; bytestream2_init(&s->gb, avpkt->data, avpkt->size); s->picture.pts = avpkt->pts; s->picture.pkt_pts = avpkt->pts; ...
true
FFmpeg
46cb61819d867961e8f2052a8f13bcf2027d484f
static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { GifState *s = avctx->priv_data; AVFrame *picture = data; int ret; bytestream2_init(&s->gb, avpkt->data, avpkt->size); s->picture.pts = avpkt->pts; s->picture.pkt_pts = avpkt->pts; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { GifState *s = VAR_0->priv_data; AVFrame *picture = VAR_1; int VAR_4; bytestream2_init(&s->gb, VAR_3->VAR_1, VAR_3->size); s->picture.pts = VAR_3->pts; s->picture.pkt_pts = VAR_3->pts; s->pictur...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "GifState *s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "int VAR_4;", "bytestream2_init(&s->gb, VAR_3->VAR_1, VAR_3->size);", "s->picture.pts = VAR_3->pts;", "s->picture.pkt_pts = VAR_3->pts;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12, 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18, 19 ], [ 20, 21 ], [ 22 ], [ ...
1,463
static GSList *gd_vc_init(GtkDisplayState *s, VirtualConsole *vc, int index, GSList *group, GtkWidget *view_menu) { #if defined(CONFIG_VTE) const char *label; char buffer[32]; char path[32]; #if VTE_CHECK_VERSION(0, 26, 0) VtePty *pty; #endif GIOChannel *chan; ...
true
qemu
d4370741402a97b8b6d0c38fef18ab38bf25ab22
static GSList *gd_vc_init(GtkDisplayState *s, VirtualConsole *vc, int index, GSList *group, GtkWidget *view_menu) { #if defined(CONFIG_VTE) const char *label; char buffer[32]; char path[32]; #if VTE_CHECK_VERSION(0, 26, 0) VtePty *pty; #endif GIOChannel *chan; ...
{ "code": [ "#if VTE_CHECK_VERSION(0, 26, 0)", " VtePty *pty;", "#endif", " GIOChannel *chan;", " int master_fd, slave_fd;", " master_fd = qemu_openpty_raw(&slave_fd, NULL);", " g_assert(master_fd != -1);", "#if VTE_CHECK_VERSION(0, 26, 0)", " pty = vte_pty_new_fo...
static GSList *FUNC_0(GtkDisplayState *s, VirtualConsole *vc, int index, GSList *group, GtkWidget *view_menu) { #if defined(CONFIG_VTE) const char *label; char buffer[32]; char path[32]; #if VTE_CHECK_VERSION(0, 26, 0) VtePty *pty; #endif GIOChannel *chan; Gt...
[ "static GSList *FUNC_0(GtkDisplayState *s, VirtualConsole *vc, int index, GSList *group,\nGtkWidget *view_menu)\n{", "#if defined(CONFIG_VTE)\nconst char *label;", "char buffer[32];", "char path[32];", "#if VTE_CHECK_VERSION(0, 26, 0)\nVtePty *pty;", "#endif\nGIOChannel *chan;", "GtkWidget *scrolled_win...
[ 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ...
1,464
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index) { AVPacket out_pkt = { 0 }, flush_pkt = { 0 }; AVStream *st = s->streams[stream_index]; uint8_t *data = pkt ? pkt->data : NULL; int size = pkt ? pkt->size : 0; int ret = 0, got_output = 0; if (!pkt) { ...
true
FFmpeg
b64fe493717cb2f05a019d9f13778382a78d9d0a
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index) { AVPacket out_pkt = { 0 }, flush_pkt = { 0 }; AVStream *st = s->streams[stream_index]; uint8_t *data = pkt ? pkt->data : NULL; int size = pkt ? pkt->size : 0; int ret = 0, got_output = 0; if (!pkt) { ...
{ "code": [ " if ((ret = add_to_pktbuf(&s->internal->parse_queue, &out_pkt,", " &s->internal->parse_queue_end,", " 1))) {", " av_packet_unref(&out_pkt);" ], "line_no": [ 151, 153, 155, 157 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, int VAR_2) { AVPacket out_pkt = { 0 }, flush_pkt = { 0 }; AVStream *st = VAR_0->streams[VAR_2]; uint8_t *data = VAR_1 ? VAR_1->data : NULL; int VAR_3 = VAR_1 ? VAR_1->VAR_3 : 0; int VAR_4 = 0, VAR_5 = 0; if (!VAR_1) { ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, int VAR_2)\n{", "AVPacket out_pkt = { 0 }, flush_pkt = { 0 };", "AVStream *st = VAR_0->streams[VAR_2];", "uint8_t *data = VAR_1 ? VAR_1->data : NULL;", "int VAR_3 = VAR_1 ? VAR_1->VAR_3 : 0;", "int VAR_4 = 0, VAR_5 = 0;", "if (!VAR_1) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49, 51 ...
1,465
int ff_frame_thread_init(AVCodecContext *avctx) { int thread_count = avctx->thread_count; const AVCodec *codec = avctx->codec; AVCodecContext *src = avctx; FrameThreadContext *fctx; int i, err = 0; #if HAVE_W32THREADS w32thread_init(); #endif if (!thread_count) { int n...
true
FFmpeg
ac4a5e3abd8a022ab32245ad527ffc37eabab8b1
int ff_frame_thread_init(AVCodecContext *avctx) { int thread_count = avctx->thread_count; const AVCodec *codec = avctx->codec; AVCodecContext *src = avctx; FrameThreadContext *fctx; int i, err = 0; #if HAVE_W32THREADS w32thread_init(); #endif if (!thread_count) { int n...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0) { int VAR_1 = VAR_0->VAR_1; const AVCodec *VAR_2 = VAR_0->VAR_2; AVCodecContext *src = VAR_0; FrameThreadContext *fctx; int VAR_3, VAR_4 = 0; #if HAVE_W32THREADS w32thread_init(); #endif if (!VAR_1) { int VAR_5 = av_cpu_count(); ...
[ "int FUNC_0(AVCodecContext *VAR_0)\n{", "int VAR_1 = VAR_0->VAR_1;", "const AVCodec *VAR_2 = VAR_0->VAR_2;", "AVCodecContext *src = VAR_0;", "FrameThreadContext *fctx;", "int VAR_3, VAR_4 = 0;", "#if HAVE_W32THREADS\nw32thread_init();", "#endif\nif (!VAR_1) {", "int VAR_5 = av_cpu_count();", "av_l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ...
1,466
CPUState *cpu_generic_init(const char *typename, const char *cpu_model) { /* TODO: all callers of cpu_generic_init() need to be converted to * call cpu_parse_features() only once, before calling cpu_generic_init(). */ const char *cpu_type = cpu_parse_cpu_model(typename, cpu_model); if (cpu...
true
qemu
4482e05cbbb7e50e476f6a9500cf0b38913bd939
CPUState *cpu_generic_init(const char *typename, const char *cpu_model) { const char *cpu_type = cpu_parse_cpu_model(typename, cpu_model); if (cpu_type) { return cpu_create(cpu_type); } return NULL; }
{ "code": [ " const char *cpu_type = cpu_parse_cpu_model(typename, cpu_model);", " if (cpu_type) {", " return cpu_create(cpu_type);", " return NULL;" ], "line_no": [ 11, 15, 17, 21 ] }
CPUState *FUNC_0(const char *typename, const char *cpu_model) { const char *VAR_0 = cpu_parse_cpu_model(typename, cpu_model); if (VAR_0) { return cpu_create(VAR_0); } return NULL; }
[ "CPUState *FUNC_0(const char *typename, const char *cpu_model)\n{", "const char *VAR_0 = cpu_parse_cpu_model(typename, cpu_model);", "if (VAR_0) {", "return cpu_create(VAR_0);", "}", "return NULL;", "}" ]
[ 0, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
1,467
static int handle_metadata(RTMPContext *rt, RTMPPacket *pkt) { int ret, old_flv_size, type; const uint8_t *next; uint8_t *p; uint32_t size; uint32_t ts, cts, pts = 0; old_flv_size = update_offset(rt, pkt->size); if ((ret = av_reallocp(&rt->flv_data, rt->flv_size)) < 0) { ...
true
FFmpeg
24fee95321c1463360ba7042d026dae021854360
static int handle_metadata(RTMPContext *rt, RTMPPacket *pkt) { int ret, old_flv_size, type; const uint8_t *next; uint8_t *p; uint32_t size; uint32_t ts, cts, pts = 0; old_flv_size = update_offset(rt, pkt->size); if ((ret = av_reallocp(&rt->flv_data, rt->flv_size)) < 0) { ...
{ "code": [ " memcpy(p, next, RTMP_HEADER);" ], "line_no": [ 77 ] }
static int FUNC_0(RTMPContext *VAR_0, RTMPPacket *VAR_1) { int VAR_2, VAR_3, VAR_4; const uint8_t *VAR_5; uint8_t *p; uint32_t size; uint32_t ts, cts, pts = 0; VAR_3 = update_offset(VAR_0, VAR_1->size); if ((VAR_2 = av_reallocp(&VAR_0->flv_data, VAR_0->flv_size)) < 0) { ...
[ "static int FUNC_0(RTMPContext *VAR_0, RTMPPacket *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "const uint8_t *VAR_5;", "uint8_t *p;", "uint32_t size;", "uint32_t ts, cts, pts = 0;", "VAR_3 = update_offset(VAR_0, VAR_1->size);", "if ((VAR_2 = av_reallocp(&VAR_0->flv_data, VAR_0->flv_size)) < 0) {", "VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53,...
1,468
static void gen_sub_carry(TCGv dest, TCGv t0, TCGv t1) { TCGv tmp; tcg_gen_sub_i32(dest, t0, t1); tmp = load_cpu_field(CF); tcg_gen_add_i32(dest, dest, tmp); tcg_gen_subi_i32(dest, dest, 1); dead_tmp(tmp); }
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static void gen_sub_carry(TCGv dest, TCGv t0, TCGv t1) { TCGv tmp; tcg_gen_sub_i32(dest, t0, t1); tmp = load_cpu_field(CF); tcg_gen_add_i32(dest, dest, tmp); tcg_gen_subi_i32(dest, dest, 1); dead_tmp(tmp); }
{ "code": [ " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tm...
static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2) { TCGv tmp; tcg_gen_sub_i32(VAR_0, VAR_1, VAR_2); tmp = load_cpu_field(CF); tcg_gen_add_i32(VAR_0, VAR_0, tmp); tcg_gen_subi_i32(VAR_0, VAR_0, 1); dead_tmp(tmp); }
[ "static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "TCGv tmp;", "tcg_gen_sub_i32(VAR_0, VAR_1, VAR_2);", "tmp = load_cpu_field(CF);", "tcg_gen_add_i32(VAR_0, VAR_0, tmp);", "tcg_gen_subi_i32(VAR_0, VAR_0, 1);", "dead_tmp(tmp);", "}" ]
[ 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
1,470
static void gen_dstst(DisasContext *ctx) { if (rA(ctx->opcode) == 0) { gen_inval_exception(ctx, POWERPC_EXCP_INVAL_LSWX); } else { /* interpreted as no-op */ } }
true
qemu
e41029b378b4a65a0b89b5a8dc087aca6b5d012d
static void gen_dstst(DisasContext *ctx) { if (rA(ctx->opcode) == 0) { gen_inval_exception(ctx, POWERPC_EXCP_INVAL_LSWX); } else { } }
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_INVAL_LSWX);", " gen_inval_exception(ctx, POWERPC_EXCP_INVAL_LSWX);" ], "line_no": [ 7, 7 ] }
static void FUNC_0(DisasContext *VAR_0) { if (rA(VAR_0->opcode) == 0) { gen_inval_exception(VAR_0, POWERPC_EXCP_INVAL_LSWX); } else { } }
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "if (rA(VAR_0->opcode) == 0) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_INVAL_LSWX);", "} else {", "}", "}" ]
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ] ]
1,471
static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst) { int read_result; MMSSCPacketType packet_type= -1; MMSContext *mms = &mmst->mms; for(;;) { read_result = url_read_complete(mms->mms_hd, mms->in_buffer, 8); if (read_result != 8) { if(read_result < 0) {...
true
FFmpeg
e84314515ac39543641cd148a33b155218df6a74
static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst) { int read_result; MMSSCPacketType packet_type= -1; MMSContext *mms = &mmst->mms; for(;;) { read_result = url_read_complete(mms->mms_hd, mms->in_buffer, 8); if (read_result != 8) { if(read_result < 0) {...
{ "code": [ " hr = AV_RL32(mms->in_buffer + 40);", " if (hr) {" ], "line_no": [ 115, 117 ] }
static MMSSCPacketType FUNC_0(MMSTContext *mmst) { int VAR_0; MMSSCPacketType packet_type= -1; MMSContext *mms = &mmst->mms; for(;;) { VAR_0 = url_read_complete(mms->mms_hd, mms->in_buffer, 8); if (VAR_0 != 8) { if(VAR_0 < 0) { av_log(NULL, AV_LOG_ERR...
[ "static MMSSCPacketType FUNC_0(MMSTContext *mmst)\n{", "int VAR_0;", "MMSSCPacketType packet_type= -1;", "MMSContext *mms = &mmst->mms;", "for(;;) {", "VAR_0 = url_read_complete(mms->mms_hd, mms->in_buffer, 8);", "if (VAR_0 != 8) {", "if(VAR_0 < 0) {", "av_log(NULL, AV_LOG_ERROR,\n\"Error reading pa...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [...
1,472
static void invalid_dict_comma(void) { QObject *obj = qobject_from_json("{'abc':32,}", NULL); g_assert(obj == NULL); }
true
qemu
aec4b054ea36c53c8b887da99f20010133b84378
static void invalid_dict_comma(void) { QObject *obj = qobject_from_json("{'abc':32,}", NULL); g_assert(obj == NULL); }
{ "code": [ " QObject *obj = qobject_from_json(\"{'abc':32,}\", NULL);" ], "line_no": [ 5 ] }
static void FUNC_0(void) { QObject *obj = qobject_from_json("{'abc':32,}", NULL); g_assert(obj == NULL); }
[ "static void FUNC_0(void)\n{", "QObject *obj = qobject_from_json(\"{'abc':32,}\", NULL);", "g_assert(obj == NULL);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,474
static void type_initialize(TypeImpl *ti) { TypeImpl *parent; if (ti->class) { return; } ti->class_size = type_class_get_size(ti); ti->instance_size = type_object_get_size(ti); ti->class = g_malloc0(ti->class_size); parent = type_get_parent(ti); if (parent) { ...
true
qemu
b061dc41f62048acd4a34c6570c0ea396cd9d0b4
static void type_initialize(TypeImpl *ti) { TypeImpl *parent; if (ti->class) { return; } ti->class_size = type_class_get_size(ti); ti->instance_size = type_object_get_size(ti); ti->class = g_malloc0(ti->class_size); parent = type_get_parent(ti); if (parent) { ...
{ "code": [ " ObjectClass *iface = e->data;", " type_initialize_interface(ti, object_class_get_name(iface));", " type_initialize_interface(ti, ti->interfaces[i].typename);" ], "line_no": [ 49, 51, 85 ] }
static void FUNC_0(TypeImpl *VAR_0) { TypeImpl *parent; if (VAR_0->class) { return; } VAR_0->class_size = type_class_get_size(VAR_0); VAR_0->instance_size = type_object_get_size(VAR_0); VAR_0->class = g_malloc0(VAR_0->class_size); parent = type_get_parent(VAR_0); ...
[ "static void FUNC_0(TypeImpl *VAR_0)\n{", "TypeImpl *parent;", "if (VAR_0->class) {", "return;", "}", "VAR_0->class_size = type_class_get_size(VAR_0);", "VAR_0->instance_size = type_object_get_size(VAR_0);", "VAR_0->class = g_malloc0(VAR_0->class_size);", "parent = type_get_parent(VAR_0);", "if (p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
1,475
static av_cold int decode_close_mp3on4(AVCodecContext * avctx) { MP3On4DecodeContext *s = avctx->priv_data; int i; for (i = 0; i < s->frames; i++) av_freep(&s->mp3decctx[i]); return 0; }
true
FFmpeg
783b350b2e49d06030b30ee9b7e1aa5825e4a5a5
static av_cold int decode_close_mp3on4(AVCodecContext * avctx) { MP3On4DecodeContext *s = avctx->priv_data; int i; for (i = 0; i < s->frames; i++) av_freep(&s->mp3decctx[i]); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext * avctx) { MP3On4DecodeContext *s = avctx->priv_data; int VAR_0; for (VAR_0 = 0; VAR_0 < s->frames; VAR_0++) av_freep(&s->mp3decctx[VAR_0]); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "MP3On4DecodeContext *s = avctx->priv_data;", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < s->frames; VAR_0++)", "av_freep(&s->mp3decctx[VAR_0]);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ] ]
1,477
static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int val) { unsigned int rice_order, exp_order, switch_bits, switch_val; int exponent; /* number of prefix bits to switch between Rice and expGolomb */ switch_bits = (codebook & 3) + 1; rice_order = codebook >> 5; ...
true
FFmpeg
6d9e74cd4179f42a8fa860f2e08d370c7c36325f
static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int val) { unsigned int rice_order, exp_order, switch_bits, switch_val; int exponent; switch_bits = (codebook & 3) + 1; rice_order = codebook >> 5; exp_order = (codebook >> 2) & 7; switch_v...
{ "code": [ " put_bits(pb, 1, 1);", " put_bits(pb, exponent, val);" ], "line_no": [ 35, 37 ] }
static inline void FUNC_0(PutBitContext *VAR_0, unsigned VAR_1, int VAR_2) { unsigned int VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7; VAR_5 = (VAR_1 & 3) + 1; VAR_3 = VAR_1 >> 5; VAR_4 = (VAR_1 >> 2) & 7; VAR_6 = VAR_5 << VAR_3; if (VAR_2 >= VAR_6) { VAR...
[ "static inline void FUNC_0(PutBitContext *VAR_0, unsigned VAR_1, int VAR_2)\n{", "unsigned int VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7;", "VAR_5 = (VAR_1 & 3) + 1;", "VAR_3 = VAR_1 >> 5;", "VAR_4 = (VAR_1 >> 2) & 7;", "VAR_6 = VAR_5 << VAR_3;", "if (VAR_2 >= VAR_6) {", "VAR_2 -= VAR_6 - (1 << ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51, 53 ], [ 55...
1,478
static int decoder_decode_frame(Decoder *d, void *fframe) { int got_frame = 0; AVFrame *frame = fframe; d->flushed = 0; do { int ret = -1; if (d->queue->abort_request) return -1; if (!d->packet_pending || d->queue->serial != d->pkt_serial) { ...
true
FFmpeg
2ec4a84dca603a24a8131297036dfe30eed33dd7
static int decoder_decode_frame(Decoder *d, void *fframe) { int got_frame = 0; AVFrame *frame = fframe; d->flushed = 0; do { int ret = -1; if (d->queue->abort_request) return -1; if (!d->packet_pending || d->queue->serial != d->pkt_serial) { ...
{ "code": [ "static int decoder_decode_frame(Decoder *d, void *fframe) {", " AVFrame *frame = fframe;", " ret = avcodec_decode_subtitle2(d->avctx, fframe, &got_frame, &d->pkt_temp);" ], "line_no": [ 1, 5, 125 ] }
static int FUNC_0(Decoder *VAR_0, void *VAR_1) { int VAR_2 = 0; AVFrame *frame = VAR_1; VAR_0->flushed = 0; do { int VAR_3 = -1; if (VAR_0->queue->abort_request) return -1; if (!VAR_0->packet_pending || VAR_0->queue->serial != VAR_0->pkt_serial) { ...
[ "static int FUNC_0(Decoder *VAR_0, void *VAR_1) {", "int VAR_2 = 0;", "AVFrame *frame = VAR_1;", "VAR_0->flushed = 0;", "do {", "int VAR_3 = -1;", "if (VAR_0->queue->abort_request)\nreturn -1;", "if (!VAR_0->packet_pending || VAR_0->queue->serial != VAR_0->pkt_serial) {", "AVPacket pkt;", "do {", ...
[ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...