id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
25,763
void bdrv_init(void) { module_call_init(MODULE_INIT_BLOCK); }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
void bdrv_init(void) { module_call_init(MODULE_INIT_BLOCK); }
{ "code": [], "line_no": [] }
void FUNC_0(void) { module_call_init(MODULE_INIT_BLOCK); }
[ "void FUNC_0(void)\n{", "module_call_init(MODULE_INIT_BLOCK);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
25,764
void hmp_change(Monitor *mon, const QDict *qdict) { const char *device = qdict_get_str(qdict, "device"); const char *target = qdict_get_str(qdict, "target"); const char *arg = qdict_get_try_str(qdict, "arg"); Error *err = NULL; if (strcmp(device, "vnc") == 0 && (strcmp(target, "...
false
qemu
eef5ad1086403d8ac8d91208a0e8dc34734b671c
void hmp_change(Monitor *mon, const QDict *qdict) { const char *device = qdict_get_str(qdict, "device"); const char *target = qdict_get_str(qdict, "target"); const char *arg = qdict_get_try_str(qdict, "arg"); Error *err = NULL; if (strcmp(device, "vnc") == 0 && (strcmp(target, "...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2"); const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); const char *VAR_4 = qdict_get_try_str(VAR_1, "VAR_4"); Error *err = NULL; if (strcmp(VAR_2, "vnc") == 0 && (strcmp(VAR_3, "pass...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");", "const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");", "const char *VAR_4 = qdict_get_try_str(VAR_1, \"VAR_4\");", "Error *err = NULL;", "if (strcmp(VAR_2, \"vnc\") == 0 &&\n(strcmp(VAR_3, \"pass...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [...
25,765
static void gen_loop(DisasContext *ctx, int r1, int32_t offset) { int l1; l1 = gen_new_label(); tcg_gen_subi_tl(cpu_gpr_a[r1], cpu_gpr_a[r1], 1); tcg_gen_brcondi_tl(TCG_COND_EQ, cpu_gpr_a[r1], -1, l1); gen_goto_tb(ctx, 1, ctx->pc + offset); gen_set_label(l1); gen_goto_tb(ctx, 0, ct...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static void gen_loop(DisasContext *ctx, int r1, int32_t offset) { int l1; l1 = gen_new_label(); tcg_gen_subi_tl(cpu_gpr_a[r1], cpu_gpr_a[r1], 1); tcg_gen_brcondi_tl(TCG_COND_EQ, cpu_gpr_a[r1], -1, l1); gen_goto_tb(ctx, 1, ctx->pc + offset); gen_set_label(l1); gen_goto_tb(ctx, 0, ct...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, int VAR_1, int32_t VAR_2) { int VAR_3; VAR_3 = gen_new_label(); tcg_gen_subi_tl(cpu_gpr_a[VAR_1], cpu_gpr_a[VAR_1], 1); tcg_gen_brcondi_tl(TCG_COND_EQ, cpu_gpr_a[VAR_1], -1, VAR_3); gen_goto_tb(VAR_0, 1, VAR_0->pc + VAR_2); gen_set_label(VAR_3); ...
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, int32_t VAR_2)\n{", "int VAR_3;", "VAR_3 = gen_new_label();", "tcg_gen_subi_tl(cpu_gpr_a[VAR_1], cpu_gpr_a[VAR_1], 1);", "tcg_gen_brcondi_tl(TCG_COND_EQ, cpu_gpr_a[VAR_1], -1, VAR_3);", "gen_goto_tb(VAR_0, 1, VAR_0->pc + VAR_2);", "gen_set_label(VAR_3)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
25,766
static void tight_send_compact_size(VncState *vs, size_t len) { int lpc = 0; int bytes = 0; char buf[3] = {0, 0, 0}; buf[bytes++] = len & 0x7F; if (len > 0x7F) { buf[bytes-1] |= 0x80; buf[bytes++] = (len >> 7) & 0x7F; if (len > 0x3FFF) { buf[bytes-1] |...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
static void tight_send_compact_size(VncState *vs, size_t len) { int lpc = 0; int bytes = 0; char buf[3] = {0, 0, 0}; buf[bytes++] = len & 0x7F; if (len > 0x7F) { buf[bytes-1] |= 0x80; buf[bytes++] = (len >> 7) & 0x7F; if (len > 0x3FFF) { buf[bytes-1] |...
{ "code": [], "line_no": [] }
static void FUNC_0(VncState *VAR_0, size_t VAR_1) { int VAR_2 = 0; int VAR_3 = 0; char VAR_4[3] = {0, 0, 0}; VAR_4[VAR_3++] = VAR_1 & 0x7F; if (VAR_1 > 0x7F) { VAR_4[VAR_3-1] |= 0x80; VAR_4[VAR_3++] = (VAR_1 >> 7) & 0x7F; if (VAR_1 > 0x3FFF) { VAR_4[VA...
[ "static void FUNC_0(VncState *VAR_0, size_t VAR_1)\n{", "int VAR_2 = 0;", "int VAR_3 = 0;", "char VAR_4[3] = {0, 0, 0};", "VAR_4[VAR_3++] = VAR_1 & 0x7F;", "if (VAR_1 > 0x7F) {", "VAR_4[VAR_3-1] |= 0x80;", "VAR_4[VAR_3++] = (VAR_1 >> 7) & 0x7F;", "if (VAR_1 > 0x3FFF) {", "VAR_4[VAR_3-1] |= 0x80;",...
[ 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 ] ]
25,767
static inline void gen_evmwsmi(DisasContext *ctx) { TCGv_i64 t0, t1; if (unlikely(!ctx->spe_enabled)) { gen_exception(ctx, POWERPC_EXCP_APU); return; } t0 = tcg_temp_new_i64(); t1 = tcg_temp_new_i64(); /* t0 := rA; t1 := rB */ #if defined(TARGET_PPC64) tcg_ge...
false
qemu
27a69bb088bee6d4efea254659422fb9c751b3c7
static inline void gen_evmwsmi(DisasContext *ctx) { TCGv_i64 t0, t1; if (unlikely(!ctx->spe_enabled)) { gen_exception(ctx, POWERPC_EXCP_APU); return; } t0 = tcg_temp_new_i64(); t1 = tcg_temp_new_i64(); #if defined(TARGET_PPC64) tcg_gen_ext32s_tl(t0, cpu_gpr[...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0) { TCGv_i64 t0, t1; if (unlikely(!VAR_0->spe_enabled)) { gen_exception(VAR_0, POWERPC_EXCP_APU); return; } t0 = tcg_temp_new_i64(); t1 = tcg_temp_new_i64(); #if defined(TARGET_PPC64) tcg_gen_ext32s_tl(t0, cpu_gpr...
[ "static inline void FUNC_0(DisasContext *VAR_0)\n{", "TCGv_i64 t0, t1;", "if (unlikely(!VAR_0->spe_enabled)) {", "gen_exception(VAR_0, POWERPC_EXCP_APU);", "return;", "}", "t0 = tcg_temp_new_i64();", "t1 = tcg_temp_new_i64();", "#if defined(TARGET_PPC64)\ntcg_gen_ext32s_tl(t0, cpu_gpr[rA(VAR_0->opco...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 43 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ] ]
25,768
static uint64_t subpage_ram_read(void *opaque, target_phys_addr_t addr, unsigned size) { ram_addr_t raddr = addr; void *ptr = qemu_get_ram_ptr(raddr); switch (size) { case 1: return ldub_p(ptr); case 2: return lduw_p(ptr); case 4: return ldl_p(ptr); ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t subpage_ram_read(void *opaque, target_phys_addr_t addr, unsigned size) { ram_addr_t raddr = addr; void *ptr = qemu_get_ram_ptr(raddr); switch (size) { case 1: return ldub_p(ptr); case 2: return lduw_p(ptr); case 4: return ldl_p(ptr); ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { ram_addr_t raddr = addr; void *VAR_0 = qemu_get_ram_ptr(raddr); switch (size) { case 1: return ldub_p(VAR_0); case 2: return lduw_p(VAR_0); case 4: return ldl_p(VAR_0); de...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "ram_addr_t raddr = addr;", "void *VAR_0 = qemu_get_ram_ptr(raddr);", "switch (size) {", "case 1: return ldub_p(VAR_0);", "case 2: return lduw_p(VAR_0);", "case 4: return ldl_p(VAR_0);", "default: abort();", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
25,770
static int xan_decode_init(AVCodecContext *avctx) { XanContext *s = avctx->priv_data; int i; s->avctx = avctx; if ((avctx->codec->id == CODEC_ID_XAN_WC3) && (s->avctx->palctrl == NULL)) { av_log(avctx, AV_LOG_ERROR, " WC3 Xan video: palette expected.\n"); return -1; ...
false
FFmpeg
ca16618b01abfde44b4eaf92dc89b01aa1b4a91e
static int xan_decode_init(AVCodecContext *avctx) { XanContext *s = avctx->priv_data; int i; s->avctx = avctx; if ((avctx->codec->id == CODEC_ID_XAN_WC3) && (s->avctx->palctrl == NULL)) { av_log(avctx, AV_LOG_ERROR, " WC3 Xan video: palette expected.\n"); return -1; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { XanContext *s = VAR_0->priv_data; int VAR_1; s->VAR_0 = VAR_0; if ((VAR_0->codec->id == CODEC_ID_XAN_WC3) && (s->VAR_0->palctrl == NULL)) { av_log(VAR_0, AV_LOG_ERROR, " WC3 Xan video: palette expected.\n"); return -1; ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "XanContext *s = VAR_0->priv_data;", "int VAR_1;", "s->VAR_0 = VAR_0;", "if ((VAR_0->codec->id == CODEC_ID_XAN_WC3) &&\n(s->VAR_0->palctrl == NULL)) {", "av_log(VAR_0, AV_LOG_ERROR, \" WC3 Xan video: palette expected.\\n\");", "return -1;", "}", "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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], ...
25,771
void gen_intermediate_code_internal(XtensaCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUXtensaState *env = &cpu->env; DisasContext dc; int insn_count = 0; int j, lj = -1; int max_insns = tb->cflags & CF_COUNT_MASK; ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
void gen_intermediate_code_internal(XtensaCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUXtensaState *env = &cpu->env; DisasContext dc; int insn_count = 0; int j, lj = -1; int max_insns = tb->cflags & CF_COUNT_MASK; ...
{ "code": [], "line_no": [] }
void FUNC_0(XtensaCPU *VAR_0, TranslationBlock *VAR_1, bool VAR_2) { CPUState *cs = CPU(VAR_0); CPUXtensaState *env = &VAR_0->env; DisasContext dc; int VAR_3 = 0; int VAR_4, VAR_5 = -1; int VAR_6 = VAR_1->cflags & CF_COUNT_MASK; uint32_t pc_start ...
[ "void FUNC_0(XtensaCPU *VAR_0,\nTranslationBlock *VAR_1, bool VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "CPUXtensaState *env = &VAR_0->env;", "DisasContext dc;", "int VAR_3 = 0;", "int VAR_4, VAR_5 = -1;", "int VAR_6 = VAR_1->cflags & CF_COUNT_MASK;", "uint32_t pc_start = VAR_1->pc;", "uint32_t next...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
25,772
static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) { int i, j, slice; int A, B, C; uint8_t *bsrc; int slice_start, slice_height; const int cmask = ~(rmode ? 3 : 1); const int stride2 = stride << ...
true
FFmpeg
0ce3a0f9d9523a9bcad4c6d451ca5bbd7a4f420d
static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) { int i, j, slice; int A, B, C; uint8_t *bsrc; int slice_start, slice_height; const int cmask = ~(rmode ? 3 : 1); const int stride2 = stride << ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11, VAR_12; uint8_t *bsrc; int VAR_13, VAR_14; const int VAR_15 = ~(VAR_6 ? 3 : 1); const int VAR_16 = VAR_2 << ...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{", "int VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_12;", "uint8_t *bsrc;", "int VAR_13, VAR_14;", "const int VAR_15 = ~(VAR_6 ? 3 : 1);", "const int VAR_16 = VAR_2 << 1;", "for (VAR_9 = 0; V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
25,773
static target_ulong h_put_tce_indirect(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { int i; target_ulong liobn = args[0]; target_ulong ioba = args[1]; target_ulong ioba1 = ioba; ...
true
qemu
4d9ab7d4ed46c63d047862d11946996005742a09
static target_ulong h_put_tce_indirect(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { int i; target_ulong liobn = args[0]; target_ulong ioba = args[1]; target_ulong ioba1 = ioba; ...
{ "code": [ " target_ulong off = (tce_list & ~SPAPR_TCE_RW) +", " i * sizeof(target_ulong);", " tce = ldq_be_phys(cs->as, off);" ], "line_no": [ 57, 59, 61 ] }
static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { int VAR_0; target_ulong liobn = args[0]; target_ulong ioba = args[1]; target_ulong ioba1 = ioba; targ...
[ "static target_ulong FUNC_0(PowerPCCPU *cpu,\nsPAPRMachineState *spapr,\ntarget_ulong opcode, target_ulong *args)\n{", "int VAR_0;", "target_ulong liobn = args[0];", "target_ulong ioba = args[1];", "target_ulong ioba1 = ioba;", "target_ulong tce_list = args[2];", "target_ulong npages = args[3];", "tar...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
25,774
ivshmem_server_parse_args(IvshmemServerArgs *args, int argc, char *argv[]) { int c; unsigned long long v; Error *errp = NULL; while ((c = getopt(argc, argv, "h" /* help */ "v" /* verbose */ "F" /* foreground */ ...
true
qemu
45b00c44ceffeac8143fb8857a12677234114f2b
ivshmem_server_parse_args(IvshmemServerArgs *args, int argc, char *argv[]) { int c; unsigned long long v; Error *errp = NULL; while ((c = getopt(argc, argv, "h" "v" "F" "p:" ...
{ "code": [ " args->pid_file = strdup(optarg);", " args->unix_socket_path = strdup(optarg);", " args->shm_path = strdup(optarg);" ], "line_no": [ 63, 71, 79 ] }
FUNC_0(IvshmemServerArgs *VAR_0, int VAR_1, char *VAR_2[]) { int VAR_3; unsigned long long VAR_4; Error *errp = NULL; while ((VAR_3 = getopt(VAR_1, VAR_2, "h" "VAR_4" "F" "p:" ...
[ "FUNC_0(IvshmemServerArgs *VAR_0, int VAR_1, char *VAR_2[])\n{", "int VAR_3;", "unsigned long long VAR_4;", "Error *errp = NULL;", "while ((VAR_3 = getopt(VAR_1, VAR_2,\n\"h\"\n\"VAR_4\"\n\"F\"\n\"p:\"\n\"S:\"\n\"m:\"\n\"l:\"\n\"n:\"\n)) != -1) {", "switch (VAR_3) {", "case 'h':\nivshmem_server_usage(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17, 19, 21, 23, 25, 27, 29, 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 53, 55 ], [ 57 ], [ 61, 63 ], [...
25,776
static int nbd_negotiate_options(NBDClient *client, uint16_t myflags, Error **errp) { uint32_t flags; bool fixedNewstyle = false; bool no_zeroes = false; /* Client sends: [ 0 .. 3] client flags Then we loop until NBD_OPT_EXPORT_NAME or NBD_...
true
qemu
894e02804c862c6940b43a0a488164655d3fb3f0
static int nbd_negotiate_options(NBDClient *client, uint16_t myflags, Error **errp) { uint32_t flags; bool fixedNewstyle = false; bool no_zeroes = false; if (nbd_read(client->ioc, &flags, sizeof(flags), errp) < 0) { erro...
{ "code": [ " return -EIO;", " return -EIO;", " return -EIO;", " return -EIO;", " return -EIO;", " if (nbd_drop(client->ioc, length, errp) < 0) {", " return -EIO;", " ret = nbd_negotiate_send_rep_err(cl...
static int FUNC_0(NBDClient *VAR_0, uint16_t VAR_1, Error **VAR_2) { uint32_t flags; bool fixedNewstyle = false; bool no_zeroes = false; if (nbd_read(VAR_0->ioc, &flags, sizeof(flags), VAR_2) < 0) { error_prepend(VAR_2, ...
[ "static int FUNC_0(NBDClient *VAR_0, uint16_t VAR_1,\nError **VAR_2)\n{", "uint32_t flags;", "bool fixedNewstyle = false;", "bool no_zeroes = false;", "if (nbd_read(VAR_0->ioc, &flags, sizeof(flags), VAR_2) < 0) {", "error_prepend(VAR_2, \"read failed: \");", "return -EIO;", "}", "be32_to_cpus(&flag...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 69 ], [ 71 ], [ 73 ], [...
25,778
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; uint8_t *current, *previous; int result, i, x, y, width, h...
false
FFmpeg
7b9fc769e40a7709fa59a54e2a810f76364eee4b
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; uint8_t *current, *previous; int result, i, x, y, width, h...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MpegEncContext *s = VAR_0->priv_data; uint8_t *current, *previous; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MpegEncContext *s = VAR_0->priv_data;", "uint8_t *current, *previous;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "AVFrame *pict ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 35, 37 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ], [...
25,779
static int sd_snapshot_goto(BlockDriverState *bs, const char *snapshot_id) { BDRVSheepdogState *s = bs->opaque; BDRVSheepdogState *old_s; char tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid = 0; int ret = 0; old_s = g_malloc(sizeof(BDRVSheepdogState)); memcpy(old_s, s, sizeof(BDRVSheep...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
static int sd_snapshot_goto(BlockDriverState *bs, const char *snapshot_id) { BDRVSheepdogState *s = bs->opaque; BDRVSheepdogState *old_s; char tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid = 0; int ret = 0; old_s = g_malloc(sizeof(BDRVSheepdogState)); memcpy(old_s, s, sizeof(BDRVSheep...
{ "code": [ " old_s = g_malloc(sizeof(BDRVSheepdogState));" ], "line_no": [ 17 ] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1) { BDRVSheepdogState *s = VAR_0->opaque; BDRVSheepdogState *old_s; char VAR_2[SD_MAX_VDI_TAG_LEN]; uint32_t snapid = 0; int VAR_3 = 0; old_s = g_malloc(sizeof(BDRVSheepdogState)); memcpy(old_s, s, sizeof(BDRVSheepdogSta...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1)\n{", "BDRVSheepdogState *s = VAR_0->opaque;", "BDRVSheepdogState *old_s;", "char VAR_2[SD_MAX_VDI_TAG_LEN];", "uint32_t snapid = 0;", "int VAR_3 = 0;", "old_s = g_malloc(sizeof(BDRVSheepdogState));", "memcpy(old_s, s, sizeof(BDRVSheepdogSt...
[ 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 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
25,780
static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap) { RMContext *rm = s->priv_data; AVStream *st; ByteIOContext *pb = &s->pb; unsigned int tag, v; int tag_size, size, codec_data_size, i; int64_t codec_pos; unsigned int h263_hack_version, start_time, duration; char buf[1...
true
FFmpeg
a443a2530d00b7019269202ac0f5ca8ba0a021c7
static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap) { RMContext *rm = s->priv_data; AVStream *st; ByteIOContext *pb = &s->pb; unsigned int tag, v; int tag_size, size, codec_data_size, i; int64_t codec_pos; unsigned int h263_hack_version, start_time, duration; char buf[1...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { RMContext *rm = VAR_0->priv_data; AVStream *st; ByteIOContext *pb = &VAR_0->pb; unsigned int VAR_2, VAR_3; int VAR_4, VAR_5, VAR_6, VAR_7; int64_t codec_pos; unsigned int VAR_8, VAR_9, VAR_10; char VAR_11[128]; in...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "RMContext *rm = VAR_0->priv_data;", "AVStream *st;", "ByteIOContext *pb = &VAR_0->pb;", "unsigned int VAR_2, VAR_3;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "int64_t codec_pos;", "unsigned int VAR_8, VAR_9, VAR_10;", "char VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ],...
25,781
static int64_t allocate_clusters(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVParallelsState *s = bs->opaque; uint32_t idx, to_allocate, i; int64_t pos, space; pos = block_status(s, sector_num, nb_sectors, pnum); if (pos > 0) { ...
true
qemu
86d1bd70987cd11d85d01f52aa5824c63d910471
static int64_t allocate_clusters(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVParallelsState *s = bs->opaque; uint32_t idx, to_allocate, i; int64_t pos, space; pos = block_status(s, sector_num, nb_sectors, pnum); if (pos > 0) { ...
{ "code": [ " uint32_t idx, to_allocate, i;", " int64_t pos, space;", " if (idx >= s->bat_size) {", " return -EINVAL;" ], "line_no": [ 9, 11, 27, 29 ] }
static int64_t FUNC_0(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVParallelsState *s = bs->opaque; uint32_t idx, to_allocate, i; int64_t pos, space; pos = block_status(s, sector_num, nb_sectors, pnum); if (pos > 0) { re...
[ "static int64_t FUNC_0(BlockDriverState *bs, int64_t sector_num,\nint nb_sectors, int *pnum)\n{", "BDRVParallelsState *s = bs->opaque;", "uint32_t idx, to_allocate, i;", "int64_t pos, space;", "pos = block_status(s, sector_num, nb_sectors, pnum);", "if (pos > 0) {", "return pos;", "}", "idx = sector...
[ 0, 0, 1, 1, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49,...
25,783
static void send_scsi_cdb_read10(QPCIDevice *dev, void *ide_base, uint64_t lba, int nblocks) { Read10CDB pkt = { .padding = 0 }; int i; g_assert_cmpint(lba, <=, UINT32_MAX); g_assert_cmpint(nblocks, <=, UINT16_MAX); g_assert_cmpint(nblocks, >=, 0); /*...
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static void send_scsi_cdb_read10(QPCIDevice *dev, void *ide_base, uint64_t lba, int nblocks) { Read10CDB pkt = { .padding = 0 }; int i; g_assert_cmpint(lba, <=, UINT32_MAX); g_assert_cmpint(nblocks, <=, UINT16_MAX); g_assert_cmpint(nblocks, >=, 0); ...
{ "code": [ "static void send_scsi_cdb_read10(QPCIDevice *dev, void *ide_base,", " qpci_io_writew(dev, ide_base + reg_data," ], "line_no": [ 1, 35 ] }
static void FUNC_0(QPCIDevice *VAR_0, void *VAR_1, uint64_t VAR_2, int VAR_3) { Read10CDB pkt = { .padding = 0 }; int VAR_4; g_assert_cmpint(VAR_2, <=, UINT32_MAX); g_assert_cmpint(VAR_3, <=, UINT16_MAX); g_assert_cmpint(VAR_3, >=, 0); pkt.opcod...
[ "static void FUNC_0(QPCIDevice *VAR_0, void *VAR_1,\nuint64_t VAR_2, int VAR_3)\n{", "Read10CDB pkt = { .padding = 0 };", "int VAR_4;", "g_assert_cmpint(VAR_2, <=, UINT32_MAX);", "g_assert_cmpint(VAR_3, <=, UINT16_MAX);", "g_assert_cmpint(VAR_3, >=, 0);", "pkt.opcode = 0x28;", "pkt.VAR_2 = cpu_to_be32...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ] ]
25,784
static int vobsub_read_header(AVFormatContext *s) { int i, ret = 0, header_parsed = 0, langidx = 0; MpegDemuxContext *vobsub = s->priv_data; char *sub_name = NULL; size_t fname_len; char *ext, *header_str; AVBPrint header; int64_t delay = 0; AVStream *st = NULL; sub_name ...
true
FFmpeg
cba92a2226151abf0e3c24ed594e127203d485b8
static int vobsub_read_header(AVFormatContext *s) { int i, ret = 0, header_parsed = 0, langidx = 0; MpegDemuxContext *vobsub = s->priv_data; char *sub_name = NULL; size_t fname_len; char *ext, *header_str; AVBPrint header; int64_t delay = 0; AVStream *st = NULL; sub_name ...
{ "code": [ " char line[2048];", " int n, stream_id = 0;", " char id[64] = {0};", " n = sscanf(line, \"id: %63[^,], index: %u\", id, &stream_id);", " if (n != 2) {", " st = avformat_new_stream(s, NULL);", " if (!st) {...
static int FUNC_0(AVFormatContext *VAR_0) { int VAR_1, VAR_2 = 0, VAR_3 = 0, VAR_4 = 0; MpegDemuxContext *vobsub = VAR_0->priv_data; char *VAR_5 = NULL; size_t fname_len; char *VAR_6, *VAR_7; AVBPrint header; int64_t delay = 0; AVStream *st = NULL; VAR_5 = av_strdup(VAR_0...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1, VAR_2 = 0, VAR_3 = 0, VAR_4 = 0;", "MpegDemuxContext *vobsub = VAR_0->priv_data;", "char *VAR_5 = NULL;", "size_t fname_len;", "char *VAR_6, *VAR_7;", "AVBPrint header;", "int64_t delay = 0;", "AVStream *st = NULL;", "VAR_5 = av_strdup(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
25,786
QBool *qobject_to_qbool(const QObject *obj) { if (qobject_type(obj) != QTYPE_QBOOL) return NULL; return container_of(obj, QBool, base); }
true
qemu
14b6160099f0caf5dc9d62e637b007bc5d719a96
QBool *qobject_to_qbool(const QObject *obj) { if (qobject_type(obj) != QTYPE_QBOOL) return NULL; return container_of(obj, QBool, base); }
{ "code": [ " if (qobject_type(obj) != QTYPE_QBOOL)" ], "line_no": [ 5 ] }
QBool *FUNC_0(const QObject *obj) { if (qobject_type(obj) != QTYPE_QBOOL) return NULL; return container_of(obj, QBool, base); }
[ "QBool *FUNC_0(const QObject *obj)\n{", "if (qobject_type(obj) != QTYPE_QBOOL)\nreturn NULL;", "return container_of(obj, QBool, base);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ] ]
25,788
static av_always_inline int mvd_decode(HEVCContext *s) { int ret = 2; int k = 1; while (k < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc)) { ret += 1 << k; k++; } if (k == CABAC_MAX_BIN) av_log(s->avctx, AV_LOG_ERROR, "CABAC_MAX_BIN : %d\n", k); while (k--...
true
FFmpeg
d5028f61e44b7607b6a547f218f7d85217490a5b
static av_always_inline int mvd_decode(HEVCContext *s) { int ret = 2; int k = 1; while (k < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc)) { ret += 1 << k; k++; } if (k == CABAC_MAX_BIN) av_log(s->avctx, AV_LOG_ERROR, "CABAC_MAX_BIN : %d\n", k); while (k--...
{ "code": [ " ret += 1 << k;", " if (k == CABAC_MAX_BIN)" ], "line_no": [ 13, 19 ] }
static av_always_inline int FUNC_0(HEVCContext *s) { int VAR_0 = 2; int VAR_1 = 1; while (VAR_1 < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc)) { VAR_0 += 1 << VAR_1; VAR_1++; } if (VAR_1 == CABAC_MAX_BIN) av_log(s->avctx, AV_LOG_ERROR, "CABAC_MAX_BIN : %d\n",...
[ "static av_always_inline int FUNC_0(HEVCContext *s)\n{", "int VAR_0 = 2;", "int VAR_1 = 1;", "while (VAR_1 < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc)) {", "VAR_0 += 1 << VAR_1;", "VAR_1++;", "}", "if (VAR_1 == CABAC_MAX_BIN)\nav_log(s->avctx, AV_LOG_ERROR, \"CABAC_MAX_BIN : %d\\n\", VAR_1);",...
[ 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ] ]
25,789
static int handle_hypercall(S390CPU *cpu, struct kvm_run *run) { CPUS390XState *env = &cpu->env; cpu_synchronize_state(CPU(cpu)); env->regs[2] = s390_virtio_hypercall(env); return 0; }
true
qemu
77319f22635e3f0ef86730503b4d18dd9a833529
static int handle_hypercall(S390CPU *cpu, struct kvm_run *run) { CPUS390XState *env = &cpu->env; cpu_synchronize_state(CPU(cpu)); env->regs[2] = s390_virtio_hypercall(env); return 0; }
{ "code": [ " env->regs[2] = s390_virtio_hypercall(env);", " return 0;" ], "line_no": [ 11, 15 ] }
static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1) { CPUS390XState *env = &VAR_0->env; cpu_synchronize_state(CPU(VAR_0)); env->regs[2] = s390_virtio_hypercall(env); return 0; }
[ "static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1)\n{", "CPUS390XState *env = &VAR_0->env;", "cpu_synchronize_state(CPU(VAR_0));", "env->regs[2] = s390_virtio_hypercall(env);", "return 0;", "}" ]
[ 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
25,790
av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v) { MpegEncContext *s = &v->s; int i; int mb_height = FFALIGN(s->mb_height, 2); /* Allocate mb bitplanes */ v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); ...
true
FFmpeg
01f0e6a0c9270f1d5bef08459a6f167cf55e0596
av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v) { MpegEncContext *s = &v->s; int i; int mb_height = FFALIGN(s->mb_height, 2); v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); v->forward_mb_plane = av...
{ "code": [ " for (i = 0; i < 4; i++)", " if (!(v->sr_rows[i >> 1][i & 1] = av_malloc(v->output_width))) return -1;" ], "line_no": [ 89, 91 ] }
av_cold int FUNC_0(VC1Context *v) { MpegEncContext *s = &v->s; int VAR_0; int VAR_1 = FFALIGN(s->VAR_1, 2); v->mv_type_mb_plane = av_malloc (s->mb_stride * VAR_1); v->direct_mb_plane = av_malloc (s->mb_stride * VAR_1); v->forward_mb_plane = av_malloc (s->mb_stride * VAR_1); ...
[ "av_cold int FUNC_0(VC1Context *v)\n{", "MpegEncContext *s = &v->s;", "int VAR_0;", "int VAR_1 = FFALIGN(s->VAR_1, 2);", "v->mv_type_mb_plane = av_malloc (s->mb_stride * VAR_1);", "v->direct_mb_plane = av_malloc (s->mb_stride * VAR_1);", "v->forward_mb_plane = av_malloc (s->mb_stride * VAR_1);", "v->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
25,791
static int vapic_prepare(VAPICROMState *s) { vapic_map_rom_writable(s); if (patch_hypercalls(s) < 0) { return -1; } vapic_enable_tpr_reporting(true); return 0; }
true
qemu
18e5eec4db96a00907eb588a2b803401637c7f67
static int vapic_prepare(VAPICROMState *s) { vapic_map_rom_writable(s); if (patch_hypercalls(s) < 0) { return -1; } vapic_enable_tpr_reporting(true); return 0; }
{ "code": [ " vapic_map_rom_writable(s);" ], "line_no": [ 5 ] }
static int FUNC_0(VAPICROMState *VAR_0) { vapic_map_rom_writable(VAR_0); if (patch_hypercalls(VAR_0) < 0) { return -1; } vapic_enable_tpr_reporting(true); return 0; }
[ "static int FUNC_0(VAPICROMState *VAR_0)\n{", "vapic_map_rom_writable(VAR_0);", "if (patch_hypercalls(VAR_0) < 0) {", "return -1;", "}", "vapic_enable_tpr_reporting(true);", "return 0;", "}" ]
[ 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ] ]
25,792
void ahci_uninit(AHCIState *s) { int i, j; for (i = 0; i < s->ports; i++) { AHCIDevice *ad = &s->dev[i]; for (j = 0; j < 2; j++) { IDEState *s = &ad->port.ifs[j]; ide_exit(s); } } g_free(s->dev); }
true
qemu
955f5c7ba127746345a3d43b4d7c885ca159ae6b
void ahci_uninit(AHCIState *s) { int i, j; for (i = 0; i < s->ports; i++) { AHCIDevice *ad = &s->dev[i]; for (j = 0; j < 2; j++) { IDEState *s = &ad->port.ifs[j]; ide_exit(s); } } g_free(s->dev); }
{ "code": [], "line_no": [] }
void FUNC_0(AHCIState *VAR_0) { int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < VAR_0->ports; VAR_1++) { AHCIDevice *ad = &VAR_0->dev[VAR_1]; for (VAR_2 = 0; VAR_2 < 2; VAR_2++) { IDEState *VAR_0 = &ad->port.ifs[VAR_2]; ide_exit(VAR_0); } } g_...
[ "void FUNC_0(AHCIState *VAR_0)\n{", "int VAR_1, VAR_2;", "for (VAR_1 = 0; VAR_1 < VAR_0->ports; VAR_1++) {", "AHCIDevice *ad = &VAR_0->dev[VAR_1];", "for (VAR_2 = 0; VAR_2 < 2; VAR_2++) {", "IDEState *VAR_0 = &ad->port.ifs[VAR_2];", "ide_exit(VAR_0);", "}", "}", "g_free(VAR_0->dev);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 26 ], [ 30 ], [ 32 ] ]
25,793
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size; size = RAW_PACKET_SIZE; if (av_new_packet(pkt, size) < 0) return AVERROR(ENOMEM); pkt->pos= avio_tell(s->pb); pkt->stream_index = 0; ret = ffio_read_partial(s->pb, pkt->data, size); if (...
true
FFmpeg
efd6b80b402a54923f007378a7dc5397676a8f3a
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size; size = RAW_PACKET_SIZE; if (av_new_packet(pkt, size) < 0) return AVERROR(ENOMEM); pkt->pos= avio_tell(s->pb); pkt->stream_index = 0; ret = ffio_read_partial(s->pb, pkt->data, size); if (...
{ "code": [ " pkt->size = ret;" ], "line_no": [ 33 ] }
int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2, VAR_3; VAR_3 = RAW_PACKET_SIZE; if (av_new_packet(VAR_1, VAR_3) < 0) return AVERROR(ENOMEM); VAR_1->pos= avio_tell(VAR_0->pb); VAR_1->stream_index = 0; VAR_2 = ffio_read_partial(VAR_0->pb, VAR_1->data, VAR_3);...
[ "int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2, VAR_3;", "VAR_3 = RAW_PACKET_SIZE;", "if (av_new_packet(VAR_1, VAR_3) < 0)\nreturn AVERROR(ENOMEM);", "VAR_1->pos= avio_tell(VAR_0->pb);", "VAR_1->stream_index = 0;", "VAR_2 = ffio_read_partial(VAR_0->pb, VAR_1->data, VAR_3);", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
25,794
static inline struct rgbvec interp_tetrahedral(const LUT3DContext *lut3d, const struct rgbvec *s) { const struct rgbvec d = {s->r - PREV(s->r), s->g - PREV(s->g), s->b - PREV(s->b)}; const struct rgbvec c000 = lut3d->lut[PREV(s->r)][PREV(s->g)][PREV(s->b)]; ...
true
FFmpeg
b6ee25e300420a3c98b78a1c2e983250ff065038
static inline struct rgbvec interp_tetrahedral(const LUT3DContext *lut3d, const struct rgbvec *s) { const struct rgbvec d = {s->r - PREV(s->r), s->g - PREV(s->g), s->b - PREV(s->b)}; const struct rgbvec c000 = lut3d->lut[PREV(s->r)][PREV(s->g)][PREV(s->b)]; ...
{ "code": [ " const struct rgbvec d = {s->r - PREV(s->r), s->g - PREV(s->g), s->b - PREV(s->b)};", " const struct rgbvec c000 = lut3d->lut[PREV(s->r)][PREV(s->g)][PREV(s->b)];", " const struct rgbvec c001 = lut3d->lut[PREV(s->r)][PREV(s->g)][NEXT(s->b)];", " const struct rgbvec c010 = lut3...
static inline struct rgbvec FUNC_0(const LUT3DContext *VAR_0, const struct rgbvec *VAR_1) { const struct rgbvec VAR_2 = {VAR_1->r - PREV(VAR_1->r), VAR_1->g - PREV(VAR_1->g), VAR_1->b - PREV(VAR_1->b)}; const struct rgbvec VAR_3 = VAR_0->lut[PREV(VAR_1->r)][PRE...
[ "static inline struct rgbvec FUNC_0(const LUT3DContext *VAR_0,\nconst struct rgbvec *VAR_1)\n{", "const struct rgbvec VAR_2 = {VAR_1->r - PREV(VAR_1->r), VAR_1->g - PREV(VAR_1->g), VAR_1->b - PREV(VAR_1->b)};", "const struct rgbvec VAR_3 = VAR_0->lut[PREV(VAR_1->r)][PREV(VAR_1->g)][PREV(VAR_1->b)];", "const s...
[ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
25,795
static av_cold int nvenc_setup_device(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; CUresult cu_res; CUcontext cu_context_curr; switch (avctx->codec->id) { case AV_CODEC_ID_H264: ctx->init_encode_params....
false
FFmpeg
0d021cc8b30a6f81c27fbeca7f99f1ee7a20acf8
static av_cold int nvenc_setup_device(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; CUresult cu_res; CUcontext cu_context_curr; switch (avctx->codec->id) { case AV_CODEC_ID_H264: ctx->init_encode_params....
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; CUresult cu_res; CUcontext cu_context_curr; switch (avctx->codec->id) { case AV_CODEC_ID_H264: ctx->init_encode_params.encodeGUID =...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "NvencContext *ctx = avctx->priv_data;", "NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;", "CUresult cu_res;", "CUcontext cu_context_curr;", "switch (avctx->codec->id) {", "case AV_CODEC_ID_H264:\nctx->init_encode_params.encodeGUID = NV_ENC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55...
25,796
static int read_channel_data(ALSDecContext *ctx, ALSChannelData *cd, int c) { GetBitContext *gb = &ctx->gb; ALSChannelData *current = cd; unsigned int channels = ctx->avctx->channels; int entries = 0; while (entries < channels && !(current->stop_flag = get_bits1(gb))) { ...
true
FFmpeg
ca488ad480360dfafcb5766f7bfbb567a0638979
static int read_channel_data(ALSDecContext *ctx, ALSChannelData *cd, int c) { GetBitContext *gb = &ctx->gb; ALSChannelData *current = cd; unsigned int channels = ctx->avctx->channels; int entries = 0; while (entries < channels && !(current->stop_flag = get_bits1(gb))) { ...
{ "code": [ " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return 0;", " ...
static int FUNC_0(ALSDecContext *VAR_0, ALSChannelData *VAR_1, int VAR_2) { GetBitContext *gb = &VAR_0->gb; ALSChannelData *current = VAR_1; unsigned int VAR_3 = VAR_0->avctx->VAR_3; int VAR_4 = 0; while (VAR_4 < VAR_3 && !(current->stop_flag = get_bits1(gb))) { ...
[ "static int FUNC_0(ALSDecContext *VAR_0, ALSChannelData *VAR_1, int VAR_2)\n{", "GetBitContext *gb = &VAR_0->gb;", "ALSChannelData *current = VAR_1;", "unsigned int VAR_3 = VAR_0->avctx->VAR_3;", "int VAR_4 = 0;", "while (VAR_4 < VAR_3 && !(current->stop_flag = get_bits1(gb))) {", "c...
[ 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, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
25,797
static void cpu_unregister_map_client(void *_client) { MapClient *client = (MapClient *)_client; QLIST_REMOVE(client, link); g_free(client); }
true
qemu
e95205e1f9cd2c4262b7a7b1c992a94512c86d0e
static void cpu_unregister_map_client(void *_client) { MapClient *client = (MapClient *)_client; QLIST_REMOVE(client, link); g_free(client); }
{ "code": [ "static void cpu_unregister_map_client(void *_client)", " MapClient *client = (MapClient *)_client;", " QLIST_REMOVE(client, link);", " g_free(client);" ], "line_no": [ 1, 5, 9, 11 ] }
static void FUNC_0(void *VAR_0) { MapClient *client = (MapClient *)VAR_0; QLIST_REMOVE(client, link); g_free(client); }
[ "static void FUNC_0(void *VAR_0)\n{", "MapClient *client = (MapClient *)VAR_0;", "QLIST_REMOVE(client, link);", "g_free(client);", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
25,798
static int rv34_decoder_alloc(RV34DecContext *r) { r->intra_types_stride = r->s.mb_width * 4 + 4; r->cbp_chroma = av_malloc(r->s.mb_stride * r->s.mb_height * sizeof(*r->cbp_chroma)); r->cbp_luma = av_malloc(r->s.mb_stride * r->s.mb_height * ...
true
FFmpeg
ea1e630c47e70672a7933c048090601ce09c8195
static int rv34_decoder_alloc(RV34DecContext *r) { r->intra_types_stride = r->s.mb_width * 4 + 4; r->cbp_chroma = av_malloc(r->s.mb_stride * r->s.mb_height * sizeof(*r->cbp_chroma)); r->cbp_luma = av_malloc(r->s.mb_stride * r->s.mb_height * ...
{ "code": [ " r->cbp_chroma = av_malloc(r->s.mb_stride * r->s.mb_height *", " r->cbp_luma = av_malloc(r->s.mb_stride * r->s.mb_height *", " r->deblock_coefs = av_malloc(r->s.mb_stride * r->s.mb_height *" ], "line_no": [ 9, 13, 17 ] }
static int FUNC_0(RV34DecContext *VAR_0) { VAR_0->intra_types_stride = VAR_0->s.mb_width * 4 + 4; VAR_0->cbp_chroma = av_malloc(VAR_0->s.mb_stride * VAR_0->s.mb_height * sizeof(*VAR_0->cbp_chroma)); VAR_0->cbp_luma = av_malloc(VAR_0->s.mb_stride * VAR...
[ "static int FUNC_0(RV34DecContext *VAR_0)\n{", "VAR_0->intra_types_stride = VAR_0->s.mb_width * 4 + 4;", "VAR_0->cbp_chroma = av_malloc(VAR_0->s.mb_stride * VAR_0->s.mb_height *\nsizeof(*VAR_0->cbp_chroma));", "VAR_0->cbp_luma = av_malloc(VAR_0->s.mb_stride * VAR_0->s.mb_height *\nsizeof(*VAR_0-...
[ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ] ]
25,799
static int dvbsub_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { DVBSubParseContext *pc = s->priv_data; uint8_t *p, *p_end; int i, len, buf_po...
true
FFmpeg
de41d5372faa4ad7ad439e71975fc6f4ea0c0efc
static int dvbsub_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { DVBSubParseContext *pc = s->priv_data; uint8_t *p, *p_end; int i, len, buf_po...
{ "code": [ " if (p + 6 <= p_end)", " if (p + len + 6 <= p_end)", " if (p + 1 < p_end)" ], "line_no": [ 161, 169, 189 ] }
static int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1, const uint8_t **VAR_2, int *VAR_3, const uint8_t *VAR_4, int VAR_5) { DVBSubParseContext *pc = VAR_0->priv_data; uint8_t *p, *p_end; int VAR_6, VAR_7, VAR_8 = ...
[ "static int FUNC_0(AVCodecParserContext *VAR_0,\nAVCodecContext *VAR_1,\nconst uint8_t **VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{", "DVBSubParseContext *pc = VAR_0->priv_data;", "uint8_t *p, *p_end;", "int VAR_6, VAR_7, VAR_8 = 0;", "av_dlog(VAR_1, \"DVB parse packet pts=%\"PRIx64\", lpts=%\"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 51 ], [ 55, 57 ], [ 59, 61 ...
25,800
static void id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags, ID3v2ExtraMeta **extra_meta) { int isv34, unsync; unsigned tlen; char tag[5]; int64_t next, end = avio_tell(s->pb) + len; int taghdrlen; const char *reason = NULL; AVIOContex...
true
FFmpeg
0e0f6bd4a5796f4f668092d7925a31b9b30fedd4
static void id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags, ID3v2ExtraMeta **extra_meta) { int isv34, unsync; unsigned tlen; char tag[5]; int64_t next, end = avio_tell(s->pb) + len; int taghdrlen; const char *reason = NULL; AVIOContex...
{ "code": [ " avio_read(s->pb, tag, 4);", " avio_read(s->pb, tag, 3);" ], "line_no": [ 137, 155 ] }
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3, ID3v2ExtraMeta **VAR_4) { int VAR_5, VAR_6; unsigned VAR_7; char VAR_8[5]; int64_t next, end = avio_tell(VAR_0->pb) + VAR_1; int VAR_9; const char *VAR_10 = NULL; AVIOContext ...
[ "static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, uint8_t VAR_2,\nuint8_t VAR_3, ID3v2ExtraMeta **VAR_4)\n{", "int VAR_5, VAR_6;", "unsigned VAR_7;", "char VAR_8[5];", "int64_t next, end = avio_tell(VAR_0->pb) + VAR_1;", "int VAR_9;", "const char *VAR_10 = NULL;", "AVIOContext pb;", "AVIOContex...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ...
25,801
static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, int ecpl, int start_subband, int end_subband, const uint8_t *default_band_struct, uint8_t *band_struct, int *num_subbands, ...
true
FFmpeg
f23dc1e1f9ee3a00db951d3dec7d5bfb0e04dae8
static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, int ecpl, int start_subband, int end_subband, const uint8_t *default_band_struct, uint8_t *band_struct, int *num_subbands, ...
{ "code": [ " int subbnd, bnd, n_subbands, n_bands;" ], "line_no": [ 13 ] }
static void FUNC_0(GetBitContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, const uint8_t *VAR_6, uint8_t *VAR_7, int *VAR_8, int *VAR_9, uint8_t *VAR_10) { ...
[ "static void FUNC_0(GetBitContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nconst uint8_t *VAR_6,\nuint8_t *VAR_7, int *VAR_8,\nint *VAR_9, uint8_t *VAR_10)\n{", "int VAR_11, VAR_12, VAR_13, VAR_14;", "uint8_t bnd_sz[22];", "VAR_13 = VAR_5 - VAR_4;", "if (!VAR_2 || get_bits1(VAR_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, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ...
25,802
static void dump_iterate(DumpState *s, Error **errp) { GuestPhysBlock *block; int64_t size; int ret; Error *local_err = NULL; while (1) { block = s->next_block; size = block->target_end - block->target_start; if (s->has_filter) { size -= s->start; ...
true
qemu
08a655be71d0a130a5d9bf7816d096ec31c4f055
static void dump_iterate(DumpState *s, Error **errp) { GuestPhysBlock *block; int64_t size; int ret; Error *local_err = NULL; while (1) { block = s->next_block; size = block->target_end - block->target_start; if (s->has_filter) { size -= s->start; ...
{ "code": [ " int ret;", " while (1) {", " ret = get_next_block(s, block);", " if (ret == 1) {", " dump_completed(s);" ], "line_no": [ 9, 15, 47, 49, 51 ] }
static void FUNC_0(DumpState *VAR_0, Error **VAR_1) { GuestPhysBlock *block; int64_t size; int VAR_2; Error *local_err = NULL; while (1) { block = VAR_0->next_block; size = block->target_end - block->target_start; if (VAR_0->has_filter) { size -= VAR...
[ "static void FUNC_0(DumpState *VAR_0, Error **VAR_1)\n{", "GuestPhysBlock *block;", "int64_t size;", "int VAR_2;", "Error *local_err = NULL;", "while (1) {", "block = VAR_0->next_block;", "size = block->target_end - block->target_start;", "if (VAR_0->has_filter) {", "size -= VAR_0->start;", "if ...
[ 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ...
25,803
fdctrl_t *fdctrl_init_sysbus(qemu_irq irq, int dma_chann, target_phys_addr_t mmio_base, DriveInfo **fds) { fdctrl_t *fdctrl; DeviceState *dev; fdctrl_sysbus_t *sys; dev = qdev_create(NULL, "sysbus-fdc"); sys = DO_UPCAST(fdctrl_sysbu...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
fdctrl_t *fdctrl_init_sysbus(qemu_irq irq, int dma_chann, target_phys_addr_t mmio_base, DriveInfo **fds) { fdctrl_t *fdctrl; DeviceState *dev; fdctrl_sysbus_t *sys; dev = qdev_create(NULL, "sysbus-fdc"); sys = DO_UPCAST(fdctrl_sysbu...
{ "code": [ " if (qdev_init(dev) != 0)", " return NULL;", " if (qdev_init(dev) != 0)", " return NULL;" ], "line_no": [ 29, 31, 29, 31 ] }
fdctrl_t *FUNC_0(qemu_irq irq, int dma_chann, target_phys_addr_t mmio_base, DriveInfo **fds) { fdctrl_t *fdctrl; DeviceState *dev; fdctrl_sysbus_t *sys; dev = qdev_create(NULL, "sysbus-fdc"); sys = DO_UPCAST(fdctrl_sysbus_t, busdev....
[ "fdctrl_t *FUNC_0(qemu_irq irq, int dma_chann,\ntarget_phys_addr_t mmio_base,\nDriveInfo **fds)\n{", "fdctrl_t *fdctrl;", "DeviceState *dev;", "fdctrl_sysbus_t *sys;", "dev = qdev_create(NULL, \"sysbus-fdc\");", "sys = DO_UPCAST(fdctrl_sysbus_t, busdev.qdev, dev);", "fdctrl = &sys->state;", "fdctrl->d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
25,804
static void uhci_async_complete(USBPort *port, USBPacket *packet) { UHCIAsync *async = container_of(packet, UHCIAsync, packet); UHCIState *s = async->queue->uhci; if (async->isoc) { UHCI_TD td; uint32_t link = async->td; uint32_t int_mask = 0, val; pci_dma_read(&s...
false
qemu
9a16c5950d9ce38671a1ac259dcde3e707767922
static void uhci_async_complete(USBPort *port, USBPacket *packet) { UHCIAsync *async = container_of(packet, UHCIAsync, packet); UHCIState *s = async->queue->uhci; if (async->isoc) { UHCI_TD td; uint32_t link = async->td; uint32_t int_mask = 0, val; pci_dma_read(&s...
{ "code": [], "line_no": [] }
static void FUNC_0(USBPort *VAR_0, USBPacket *VAR_1) { UHCIAsync *async = container_of(VAR_1, UHCIAsync, VAR_1); UHCIState *s = async->queue->uhci; if (async->isoc) { UHCI_TD td; uint32_t link = async->td; uint32_t int_mask = 0, val; pci_dma_read(&s->dev, link & ~...
[ "static void FUNC_0(USBPort *VAR_0, USBPacket *VAR_1)\n{", "UHCIAsync *async = container_of(VAR_1, UHCIAsync, VAR_1);", "UHCIState *s = async->queue->uhci;", "if (async->isoc) {", "UHCI_TD td;", "uint32_t link = async->td;", "uint32_t int_mask = 0, val;", "pci_dma_read(&s->dev, link & ~0xf, &td, sizeo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
25,805
int coroutine_fn thread_pool_submit_co(ThreadPoolFunc *func, void *arg) { ThreadPoolCo tpc = { .co = qemu_coroutine_self(), .ret = -EINPROGRESS }; assert(qemu_in_coroutine()); thread_pool_submit_aio(func, arg, thread_pool_co_cb, &tpc); qemu_coroutine_yield(); return tpc.ret; }
false
qemu
c4d9d19645a484298a67e9021060bc7c2b081d0f
int coroutine_fn thread_pool_submit_co(ThreadPoolFunc *func, void *arg) { ThreadPoolCo tpc = { .co = qemu_coroutine_self(), .ret = -EINPROGRESS }; assert(qemu_in_coroutine()); thread_pool_submit_aio(func, arg, thread_pool_co_cb, &tpc); qemu_coroutine_yield(); return tpc.ret; }
{ "code": [], "line_no": [] }
int VAR_0 thread_pool_submit_co(ThreadPoolFunc *func, void *arg) { ThreadPoolCo tpc = { .co = qemu_coroutine_self(), .ret = -EINPROGRESS }; assert(qemu_in_coroutine()); thread_pool_submit_aio(func, arg, thread_pool_co_cb, &tpc); qemu_coroutine_yield(); return tpc.ret; }
[ "int VAR_0 thread_pool_submit_co(ThreadPoolFunc *func, void *arg)\n{", "ThreadPoolCo tpc = { .co = qemu_coroutine_self(), .ret = -EINPROGRESS };", "assert(qemu_in_coroutine());", "thread_pool_submit_aio(func, arg, thread_pool_co_cb, &tpc);", "qemu_coroutine_yield();", "return tpc.ret;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
25,806
static void uhci_process_frame(UHCIState *s) { uint32_t frame_addr, link, old_td_ctrl, val, int_mask; uint32_t curr_qh; int cnt, ret; UHCI_TD td; UHCI_QH qh; QhDb qhdb; frame_addr = s->fl_base_addr + ((s->frnum & 0x3ff) << 2); DPRINTF("uhci: processing frame %d addr 0x%x\n" ...
false
qemu
fff23ee9a5de74ab111b3cea9eec56782e7d7c50
static void uhci_process_frame(UHCIState *s) { uint32_t frame_addr, link, old_td_ctrl, val, int_mask; uint32_t curr_qh; int cnt, ret; UHCI_TD td; UHCI_QH qh; QhDb qhdb; frame_addr = s->fl_base_addr + ((s->frnum & 0x3ff) << 2); DPRINTF("uhci: processing frame %d addr 0x%x\n" ...
{ "code": [], "line_no": [] }
static void FUNC_0(UHCIState *VAR_0) { uint32_t frame_addr, link, old_td_ctrl, val, int_mask; uint32_t curr_qh; int VAR_1, VAR_2; UHCI_TD td; UHCI_QH qh; QhDb qhdb; frame_addr = VAR_0->fl_base_addr + ((VAR_0->frnum & 0x3ff) << 2); DPRINTF("uhci: processing frame %d addr 0x%x...
[ "static void FUNC_0(UHCIState *VAR_0)\n{", "uint32_t frame_addr, link, old_td_ctrl, val, int_mask;", "uint32_t curr_qh;", "int VAR_1, VAR_2;", "UHCI_TD td;", "UHCI_QH qh;", "QhDb qhdb;", "frame_addr = VAR_0->fl_base_addr + ((VAR_0->frnum & 0x3ff) << 2);", "DPRINTF(\"uhci: processing frame %d addr 0x...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 51 ], [ 67 ], [ 69 ], [ 71 ...
25,807
int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AVFrame tmp; AVFrame *padded_frame = ...
false
FFmpeg
8ab80707841a73ca7708e1e1aa97f3513fff3d35
int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AVFrame tmp; AVFrame *padded_frame = ...
{ "code": [], "line_no": [] }
int VAR_0 avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AVFrame tmp; AVFrame *padded_frame = NULL; int...
[ "int VAR_0 avcodec_encode_audio2(AVCodecContext *avctx,\nAVPacket *avpkt,\nconst AVFrame *frame,\nint *got_packet_ptr)\n{", "AVFrame tmp;", "AVFrame *padded_frame = NULL;", "int ret;", "AVPacket user_pkt = *avpkt;", "int needs_realloc = !user_pkt.data;", "*got_packet_ptr = 0;", "if (!(avctx->codec->ca...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43, 45 ], [ 47, 49, 51 ], [ 53 ], [ 55 ...
25,808
static void virtio_input_handle_sts(VirtIODevice *vdev, VirtQueue *vq) { VirtIOInputClass *vic = VIRTIO_INPUT_GET_CLASS(vdev); VirtIOInput *vinput = VIRTIO_INPUT(vdev); virtio_input_event event; VirtQueueElement elem; int len; while (virtqueue_pop(vinput->sts, &elem)) { memset(...
false
qemu
51b19ebe4320f3dcd93cea71235c1219318ddfd2
static void virtio_input_handle_sts(VirtIODevice *vdev, VirtQueue *vq) { VirtIOInputClass *vic = VIRTIO_INPUT_GET_CLASS(vdev); VirtIOInput *vinput = VIRTIO_INPUT(vdev); virtio_input_event event; VirtQueueElement elem; int len; while (virtqueue_pop(vinput->sts, &elem)) { memset(...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1) { VirtIOInputClass *vic = VIRTIO_INPUT_GET_CLASS(VAR_0); VirtIOInput *vinput = VIRTIO_INPUT(VAR_0); virtio_input_event event; VirtQueueElement elem; int VAR_2; while (virtqueue_pop(vinput->sts, &elem)) { memset(&event, 0...
[ "static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{", "VirtIOInputClass *vic = VIRTIO_INPUT_GET_CLASS(VAR_0);", "VirtIOInput *vinput = VIRTIO_INPUT(VAR_0);", "virtio_input_event event;", "VirtQueueElement elem;", "int VAR_2;", "while (virtqueue_pop(vinput->sts, &elem)) {", "memset(&event, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
25,809
void qmp_guest_file_close(int64_t handle, Error **err) { GuestFileHandle *gfh = guest_file_handle_find(handle, err); int ret; slog("guest-file-close called, handle: %ld", handle); if (!gfh) { return; } ret = fclose(gfh->fh); if (ret == -1) { error_set(err, QERR_...
false
qemu
3ac4b7c51e3ba181a86983ba2601a595ed8f3b1d
void qmp_guest_file_close(int64_t handle, Error **err) { GuestFileHandle *gfh = guest_file_handle_find(handle, err); int ret; slog("guest-file-close called, handle: %ld", handle); if (!gfh) { return; } ret = fclose(gfh->fh); if (ret == -1) { error_set(err, QERR_...
{ "code": [], "line_no": [] }
void FUNC_0(int64_t VAR_0, Error **VAR_1) { GuestFileHandle *gfh = guest_file_handle_find(VAR_0, VAR_1); int VAR_2; slog("guest-file-close called, VAR_0: %ld", VAR_0); if (!gfh) { return; } VAR_2 = fclose(gfh->fh); if (VAR_2 == -1) { error_set(VAR_1, QERR_QGA_CO...
[ "void FUNC_0(int64_t VAR_0, Error **VAR_1)\n{", "GuestFileHandle *gfh = guest_file_handle_find(VAR_0, VAR_1);", "int VAR_2;", "slog(\"guest-file-close called, VAR_0: %ld\", VAR_0);", "if (!gfh) {", "return;", "}", "VAR_2 = fclose(gfh->fh);", "if (VAR_2 == -1) {", "error_set(VAR_1, QERR_QGA_COMMAND...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
25,811
static int convert_read(ImgConvertState *s, int64_t sector_num, int nb_sectors, uint8_t *buf) { int n; int ret; if (s->status == BLK_ZERO || s->status == BLK_BACKING_FILE) { return 0; } assert(nb_sectors <= s->buf_sectors); while (nb_sectors > 0) { ...
false
qemu
aad15de4275d2fc90acdf6101493dfee4e39b803
static int convert_read(ImgConvertState *s, int64_t sector_num, int nb_sectors, uint8_t *buf) { int n; int ret; if (s->status == BLK_ZERO || s->status == BLK_BACKING_FILE) { return 0; } assert(nb_sectors <= s->buf_sectors); while (nb_sectors > 0) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(ImgConvertState *VAR_0, int64_t VAR_1, int VAR_2, uint8_t *VAR_3) { int VAR_4; int VAR_5; if (VAR_0->status == BLK_ZERO || VAR_0->status == BLK_BACKING_FILE) { return 0; } assert(VAR_2 <= VAR_0->buf_sectors); while (VAR_2 > 0) { ...
[ "static int FUNC_0(ImgConvertState *VAR_0, int64_t VAR_1, int VAR_2,\nuint8_t *VAR_3)\n{", "int VAR_4;", "int VAR_5;", "if (VAR_0->status == BLK_ZERO || VAR_0->status == BLK_BACKING_FILE) {", "return 0;", "}", "assert(VAR_2 <= VAR_0->buf_sectors);", "while (VAR_2 > 0) {", "BlockBackend *blk;", "in...
[ 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 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [...
25,812
static void qemu_announce_self_once(void *opaque) { static int count = SELF_ANNOUNCE_ROUNDS; QEMUTimer *timer = *(QEMUTimer **)opaque; qemu_foreach_nic(qemu_announce_self_iter, NULL); if (--count) { /* delay 50ms, 150ms, 250ms, ... */ qemu_mod_timer(timer, qemu_get_clock(rt_cl...
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
static void qemu_announce_self_once(void *opaque) { static int count = SELF_ANNOUNCE_ROUNDS; QEMUTimer *timer = *(QEMUTimer **)opaque; qemu_foreach_nic(qemu_announce_self_iter, NULL); if (--count) { qemu_mod_timer(timer, qemu_get_clock(rt_clock) + 50 +...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { static int VAR_1 = SELF_ANNOUNCE_ROUNDS; QEMUTimer *timer = *(QEMUTimer **)VAR_0; qemu_foreach_nic(qemu_announce_self_iter, NULL); if (--VAR_1) { qemu_mod_timer(timer, qemu_get_clock(rt_clock) + 50 + (SELF_ANNOUNCE_ROU...
[ "static void FUNC_0(void *VAR_0)\n{", "static int VAR_1 = SELF_ANNOUNCE_ROUNDS;", "QEMUTimer *timer = *(QEMUTimer **)VAR_0;", "qemu_foreach_nic(qemu_announce_self_iter, NULL);", "if (--VAR_1) {", "qemu_mod_timer(timer, qemu_get_clock(rt_clock) +\n50 + (SELF_ANNOUNCE_ROUNDS - VAR_1 - 1) * 100);", "} else...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
25,815
static int nvme_init(PCIDevice *pci_dev) { NvmeCtrl *n = NVME(pci_dev); NvmeIdCtrl *id = &n->id_ctrl; int i; int64_t bs_size; uint8_t *pci_conf; if (!(n->conf.bs)) { return -1; } bs_size = bdrv_getlength(n->conf.bs); if (bs_size < 0) { return -1; ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static int nvme_init(PCIDevice *pci_dev) { NvmeCtrl *n = NVME(pci_dev); NvmeIdCtrl *id = &n->id_ctrl; int i; int64_t bs_size; uint8_t *pci_conf; if (!(n->conf.bs)) { return -1; } bs_size = bdrv_getlength(n->conf.bs); if (bs_size < 0) { return -1; ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { NvmeCtrl *n = NVME(VAR_0); NvmeIdCtrl *id = &n->id_ctrl; int VAR_1; int64_t bs_size; uint8_t *pci_conf; if (!(n->conf.bs)) { return -1; } bs_size = bdrv_getlength(n->conf.bs); if (bs_size < 0) { return -1; }...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "NvmeCtrl *n = NVME(VAR_0);", "NvmeIdCtrl *id = &n->id_ctrl;", "int VAR_1;", "int64_t bs_size;", "uint8_t *pci_conf;", "if (!(n->conf.bs)) {", "return -1;", "}", "bs_size = bdrv_getlength(n->conf.bs);", "if (bs_size < 0) {", "return -1;", "}", "blk...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51...
25,816
int blk_get_max_transfer_length(BlockBackend *blk) { BlockDriverState *bs = blk_bs(blk); if (bs) { return bs->bl.max_transfer_length; } else { return 0; } }
false
qemu
24ce9a20260713e86377cfa78fb8699335759f4f
int blk_get_max_transfer_length(BlockBackend *blk) { BlockDriverState *bs = blk_bs(blk); if (bs) { return bs->bl.max_transfer_length; } else { return 0; } }
{ "code": [], "line_no": [] }
int FUNC_0(BlockBackend *VAR_0) { BlockDriverState *bs = blk_bs(VAR_0); if (bs) { return bs->bl.max_transfer_length; } else { return 0; } }
[ "int FUNC_0(BlockBackend *VAR_0)\n{", "BlockDriverState *bs = blk_bs(VAR_0);", "if (bs) {", "return bs->bl.max_transfer_length;", "} else {", "return 0;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
25,817
START_TEST(qstring_append_chr_test) { int i; QString *qstring; const char *str = "qstring append char unit-test"; qstring = qstring_new(); for (i = 0; str[i]; i++) qstring_append_chr(qstring, str[i]); fail_unless(strcmp(str, qstring_get_str(qstring)) == 0); QDECREF(qst...
false
qemu
0ac7cc2af500b948510f2481c22e84a57b0a2447
START_TEST(qstring_append_chr_test) { int i; QString *qstring; const char *str = "qstring append char unit-test"; qstring = qstring_new(); for (i = 0; str[i]; i++) qstring_append_chr(qstring, str[i]); fail_unless(strcmp(str, qstring_get_str(qstring)) == 0); QDECREF(qst...
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { int VAR_1; QString *qstring; const char *VAR_2 = "qstring append char unit-test"; qstring = qstring_new(); for (VAR_1 = 0; VAR_2[VAR_1]; VAR_1++) qstring_append_chr(qstring, VAR_2[VAR_1]); fail_unless(strcmp(VAR_2, qstring_get_str(qstring)) == 0); QDECR...
[ "FUNC_0(VAR_0)\n{", "int VAR_1;", "QString *qstring;", "const char *VAR_2 = \"qstring append char unit-test\";", "qstring = qstring_new();", "for (VAR_1 = 0; VAR_2[VAR_1]; VAR_1++)", "qstring_append_chr(qstring, VAR_2[VAR_1]);", "fail_unless(strcmp(VAR_2, qstring_get_str(qstring)) == 0);", "QDECREF(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ] ]
25,818
static int ftp_get_line(FTPContext *s, char *line, int line_size) { int ch; char *q = line; int ori_block_flag = s->conn_control_block_flag; for (;;) { ch = ftp_getc(s); if (ch < 0) { s->conn_control_block_flag = ori_block_flag; return ch; } ...
false
FFmpeg
247e658784ead984f96021acb9c95052ba599f26
static int ftp_get_line(FTPContext *s, char *line, int line_size) { int ch; char *q = line; int ori_block_flag = s->conn_control_block_flag; for (;;) { ch = ftp_getc(s); if (ch < 0) { s->conn_control_block_flag = ori_block_flag; return ch; } ...
{ "code": [], "line_no": [] }
static int FUNC_0(FTPContext *VAR_0, char *VAR_1, int VAR_2) { int VAR_3; char *VAR_4 = VAR_1; int VAR_5 = VAR_0->conn_control_block_flag; for (;;) { VAR_3 = ftp_getc(VAR_0); if (VAR_3 < 0) { VAR_0->conn_control_block_flag = VAR_5; return VAR_3; ...
[ "static int FUNC_0(FTPContext *VAR_0, char *VAR_1, int VAR_2)\n{", "int VAR_3;", "char *VAR_4 = VAR_1;", "int VAR_5 = VAR_0->conn_control_block_flag;", "for (;;) {", "VAR_3 = ftp_getc(VAR_0);", "if (VAR_3 < 0) {", "VAR_0->conn_control_block_flag = VAR_5;", "return VAR_3;", "}", "if (VAR_3 == '\\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
25,819
static int raw_co_ioctl(BlockDriverState *bs, unsigned long int req, void *buf) { BDRVRawState *s = bs->opaque; if (s->offset || s->has_size) { return -ENOTSUP; } return bdrv_co_ioctl(bs->file->bs, req, buf); }
false
qemu
2e6fc7eb1a4af1b127df5f07b8bb28af891946fa
static int raw_co_ioctl(BlockDriverState *bs, unsigned long int req, void *buf) { BDRVRawState *s = bs->opaque; if (s->offset || s->has_size) { return -ENOTSUP; } return bdrv_co_ioctl(bs->file->bs, req, buf); }
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, unsigned long int VAR_1, void *VAR_2) { BDRVRawState *s = VAR_0->opaque; if (s->offset || s->has_size) { return -ENOTSUP; } return bdrv_co_ioctl(VAR_0->file->VAR_0, VAR_1, VAR_2); }
[ "static int FUNC_0(BlockDriverState *VAR_0, unsigned long int VAR_1, void *VAR_2)\n{", "BDRVRawState *s = VAR_0->opaque;", "if (s->offset || s->has_size) {", "return -ENOTSUP;", "}", "return bdrv_co_ioctl(VAR_0->file->VAR_0, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
25,820
static void lsi_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { LSIState *s = opaque; lsi_reg_writeb(s, addr & 0xff, val); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void lsi_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { LSIState *s = opaque; lsi_reg_writeb(s, addr & 0xff, val); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { LSIState *s = VAR_0; lsi_reg_writeb(s, VAR_1 & 0xff, VAR_2); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "LSIState *s = VAR_0;", "lsi_reg_writeb(s, VAR_1 & 0xff, VAR_2);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
25,821
void input_type_enum(Visitor *v, int *obj, const char *strings[], const char *kind, const char *name, Error **errp) { int64_t value = 0; char *enum_str; assert(strings); visit_type_str(v, &enum_str, name, errp); if (error_is_set(errp)) { ...
false
qemu
94c3db85b4cc1d4e078859834a761bcc9d988780
void input_type_enum(Visitor *v, int *obj, const char *strings[], const char *kind, const char *name, Error **errp) { int64_t value = 0; char *enum_str; assert(strings); visit_type_str(v, &enum_str, name, errp); if (error_is_set(errp)) { ...
{ "code": [], "line_no": [] }
void FUNC_0(Visitor *VAR_0, int *VAR_1, const char *VAR_2[], const char *VAR_3, const char *VAR_4, Error **VAR_5) { int64_t value = 0; char *VAR_6; assert(VAR_2); visit_type_str(VAR_0, &VAR_6, VAR_4, VAR_5); if (error_is_set(VAR_5)) { re...
[ "void FUNC_0(Visitor *VAR_0, int *VAR_1, const char *VAR_2[],\nconst char *VAR_3, const char *VAR_4,\nError **VAR_5)\n{", "int64_t value = 0;", "char *VAR_6;", "assert(VAR_2);", "visit_type_str(VAR_0, &VAR_6, VAR_4, VAR_5);", "if (error_is_set(VAR_5)) {", "return;", "}", "while (VAR_2[value] != NULL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
25,822
int queue_signal(CPUArchState *env, int sig, target_siginfo_t *info) { CPUState *cpu = ENV_GET_CPU(env); TaskState *ts = cpu->opaque; struct emulated_sigtable *k; struct sigqueue *q, **pq; abi_ulong handler; int queue; trace_user_queue_signal(env, sig); k = &ts->sigtab[sig - 1...
false
qemu
c19c1578f8a9b894f5e368e35139620a98bf6a69
int queue_signal(CPUArchState *env, int sig, target_siginfo_t *info) { CPUState *cpu = ENV_GET_CPU(env); TaskState *ts = cpu->opaque; struct emulated_sigtable *k; struct sigqueue *q, **pq; abi_ulong handler; int queue; trace_user_queue_signal(env, sig); k = &ts->sigtab[sig - 1...
{ "code": [], "line_no": [] }
int FUNC_0(CPUArchState *VAR_0, int VAR_1, target_siginfo_t *VAR_2) { CPUState *cpu = ENV_GET_CPU(VAR_0); TaskState *ts = cpu->opaque; struct emulated_sigtable *VAR_3; struct sigqueue *VAR_4, **VAR_5; abi_ulong handler; int VAR_6; trace_user_queue_signal(VAR_0, VAR_1); VAR_3 =...
[ "int FUNC_0(CPUArchState *VAR_0, int VAR_1, target_siginfo_t *VAR_2)\n{", "CPUState *cpu = ENV_GET_CPU(VAR_0);", "TaskState *ts = cpu->opaque;", "struct emulated_sigtable *VAR_3;", "struct sigqueue *VAR_4, **VAR_5;", "abi_ulong handler;", "int VAR_6;", "trace_user_queue_signal(VAR_0, VAR_1);", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 65,...
25,823
int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){ int i; int w= s->width; int h= s->height; InternalBuffer *buf; int *picture_number; if(pic->data[0]!=NULL) { av_log(s, AV_LOG_ERROR, "pic->data[0]!=NULL in avcodec_default_get_buffer\n"); return -1; } if(s->...
true
FFmpeg
5b67307a6898d9b1b1b78034d4f4fa79932d91bf
int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){ int i; int w= s->width; int h= s->height; InternalBuffer *buf; int *picture_number; if(pic->data[0]!=NULL) { av_log(s, AV_LOG_ERROR, "pic->data[0]!=NULL in avcodec_default_get_buffer\n"); return -1; } if(s->...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1){ int VAR_2; int VAR_3= VAR_0->width; int VAR_4= VAR_0->height; InternalBuffer *buf; int *VAR_5; if(VAR_1->data[0]!=NULL) { av_log(VAR_0, AV_LOG_ERROR, "VAR_1->data[0]!=NULL in FUNC_0\n"); return -1; } if(VAR_0->internal_bu...
[ "int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1){", "int VAR_2;", "int VAR_3= VAR_0->width;", "int VAR_4= VAR_0->height;", "InternalBuffer *buf;", "int *VAR_5;", "if(VAR_1->data[0]!=NULL) {", "av_log(VAR_0, AV_LOG_ERROR, \"VAR_1->data[0]!=NULL in FUNC_0\\n\");", "return -1;", "}", "if(VAR_0->i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, ...
25,824
static int tm2_build_huff_table(TM2Context *ctx, TM2Codes *code) { TM2Huff huff; int res = 0; huff.val_bits = get_bits(&ctx->gb, 5); huff.max_bits = get_bits(&ctx->gb, 5); huff.min_bits = get_bits(&ctx->gb, 5); huff.nodes = get_bits_long(&ctx->gb, 17); huff.num = 0; /* check...
true
FFmpeg
b7b1509d06d3696d3b944791227fe198ded0654b
static int tm2_build_huff_table(TM2Context *ctx, TM2Codes *code) { TM2Huff huff; int res = 0; huff.val_bits = get_bits(&ctx->gb, 5); huff.max_bits = get_bits(&ctx->gb, 5); huff.min_bits = get_bits(&ctx->gb, 5); huff.nodes = get_bits_long(&ctx->gb, 17); huff.num = 0; if...
{ "code": [ " (huff.max_bits < 0) || (huff.max_bits > 32)) {" ], "line_no": [ 27 ] }
static int FUNC_0(TM2Context *VAR_0, TM2Codes *VAR_1) { TM2Huff huff; int VAR_2 = 0; huff.val_bits = get_bits(&VAR_0->gb, 5); huff.max_bits = get_bits(&VAR_0->gb, 5); huff.min_bits = get_bits(&VAR_0->gb, 5); huff.nodes = get_bits_long(&VAR_0->gb, 17); huff.num = 0; if(...
[ "static int FUNC_0(TM2Context *VAR_0, TM2Codes *VAR_1)\n{", "TM2Huff huff;", "int VAR_2 = 0;", "huff.val_bits = get_bits(&VAR_0->gb, 5);", "huff.max_bits = get_bits(&VAR_0->gb, 5);", "huff.min_bits = get_bits(&VAR_0->gb, 5);", "huff.nodes = get_bits_long(&VAR_0->gb, 17);", "huff.num = 0;", "if((huff...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 55 ], ...
25,825
void gen_intermediate_code_internal(XtensaCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUXtensaState *env = &cpu->env; DisasContext dc; int insn_count = 0; int j, lj = -1; uint16_t *gen_opc_end = tcg_ctx.gen_opc_buf + OPC...
true
qemu
2db59a76c421cdd1039d10e32a9798952d3ff5ba
void gen_intermediate_code_internal(XtensaCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUXtensaState *env = &cpu->env; DisasContext dc; int insn_count = 0; int j, lj = -1; uint16_t *gen_opc_end = tcg_ctx.gen_opc_buf + OPC...
{ "code": [ " break;", " } else {", " reset_used_window(&dc);" ], "line_no": [ 195, 267, 71 ] }
void FUNC_0(XtensaCPU *VAR_0, TranslationBlock *VAR_1, bool VAR_2) { CPUState *cs = CPU(VAR_0); CPUXtensaState *env = &VAR_0->env; DisasContext dc; int VAR_3 = 0; int VAR_4, VAR_5 = -1; uint16_t *gen_opc_end = tcg_ctx.gen_opc_buf + OPC_MAX_SIZE; i...
[ "void FUNC_0(XtensaCPU *VAR_0,\nTranslationBlock *VAR_1, bool VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "CPUXtensaState *env = &VAR_0->env;", "DisasContext dc;", "int VAR_3 = 0;", "int VAR_4, VAR_5 = -1;", "uint16_t *gen_opc_end = tcg_ctx.gen_opc_buf + OPC_MAX_SIZE;", "int VAR_6 = VAR_1->cflags & CF_C...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
25,826
static void dump_map_entry(OutputFormat output_format, MapEntry *e, MapEntry *next) { switch (output_format) { case OFORMAT_HUMAN: if ((e->flags & BDRV_BLOCK_DATA) && !(e->flags & BDRV_BLOCK_OFFSET_VALID)) { error_report("File contains external, ...
true
qemu
c745bfb4300206280ce6156b4bafe765f610057c
static void dump_map_entry(OutputFormat output_format, MapEntry *e, MapEntry *next) { switch (output_format) { case OFORMAT_HUMAN: if ((e->flags & BDRV_BLOCK_DATA) && !(e->flags & BDRV_BLOCK_OFFSET_VALID)) { error_report("File contains external, ...
{ "code": [ " printf(\", 'offset': %\"PRId64\"\", e->offset);" ], "line_no": [ 63 ] }
static void FUNC_0(OutputFormat VAR_0, MapEntry *VAR_1, MapEntry *VAR_2) { switch (VAR_0) { case OFORMAT_HUMAN: if ((VAR_1->flags & BDRV_BLOCK_DATA) && !(VAR_1->flags & BDRV_BLOCK_OFFSET_VALID)) { error_report("File contains external, encrypted o...
[ "static void FUNC_0(OutputFormat VAR_0, MapEntry *VAR_1,\nMapEntry *VAR_2)\n{", "switch (VAR_0) {", "case OFORMAT_HUMAN:\nif ((VAR_1->flags & BDRV_BLOCK_DATA) &&\n!(VAR_1->flags & BDRV_BLOCK_OFFSET_VALID)) {", "error_report(\"File contains external, encrypted or compressed clusters.\");", "exit(1);", "}",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51, 53, 55,...
25,827
int escc_init(target_phys_addr_t base, qemu_irq irqA, qemu_irq irqB, CharDriverState *chrA, CharDriverState *chrB, int clock, int it_shift) { DeviceState *dev; SysBusDevice *s; SerialState *d; dev = qdev_create(NULL, "escc"); qdev_prop_set_uint32(dev, "disabled"...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
int escc_init(target_phys_addr_t base, qemu_irq irqA, qemu_irq irqB, CharDriverState *chrA, CharDriverState *chrB, int clock, int it_shift) { DeviceState *dev; SysBusDevice *s; SerialState *d; dev = qdev_create(NULL, "escc"); qdev_prop_set_uint32(dev, "disabled"...
{ "code": [ " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " ...
int FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1, qemu_irq VAR_2, CharDriverState *VAR_3, CharDriverState *VAR_4, int VAR_5, int VAR_6) { DeviceState *dev; SysBusDevice *s; SerialState *d; dev = qdev_create(NULL, "escc"); qdev_prop_set_uint32(dev, "disabled",...
[ "int FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1, qemu_irq VAR_2,\nCharDriverState *VAR_3, CharDriverState *VAR_4,\nint VAR_5, int VAR_6)\n{", "DeviceState *dev;", "SysBusDevice *s;", "SerialState *d;", "dev = qdev_create(NULL, \"escc\");", "qdev_prop_set_uint32(dev, \"disabled\", 0);", "qdev_prop_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
25,829
static void wmv2_idct_row(short * b) { int s1, s2; int a0, a1, a2, a3, a4, a5, a6, a7; /* step 1 */ a1 = W1 * b[1] + W7 * b[7]; a7 = W7 * b[1] - W1 * b[7]; a5 = W5 * b[5] + W3 * b[3]; a3 = W3 * b[5] - W5 * b[3]; a2 = W2 * b[2] + W6 * b[6]; a6 = W6 * b[2] - W2 * b[6]; ...
true
FFmpeg
df640dbbc949d0f4deefaf43e86b8bd50ae997cc
static void wmv2_idct_row(short * b) { int s1, s2; int a0, a1, a2, a3, a4, a5, a6, a7; a1 = W1 * b[1] + W7 * b[7]; a7 = W7 * b[1] - W1 * b[7]; a5 = W5 * b[5] + W3 * b[3]; a3 = W3 * b[5] - W5 * b[3]; a2 = W2 * b[2] + W6 * b[6]; a6 = W6 * b[2] - W2 * b[6]; a0 = W0 * b...
{ "code": [ " s2 = (181 * (a1 - a5 - a7 + a3) + 128) >> 8;" ], "line_no": [ 35 ] }
static void FUNC_0(short * VAR_0) { int VAR_1, VAR_2; int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; VAR_4 = W1 * VAR_0[1] + W7 * VAR_0[7]; VAR_10 = W7 * VAR_0[1] - W1 * VAR_0[7]; VAR_8 = W5 * VAR_0[5] + W3 * VAR_0[3]; VAR_6 = W3 * VAR_0[5] - W5 * VAR_0[3]; VAR_...
[ "static void FUNC_0(short * VAR_0)\n{", "int VAR_1, VAR_2;", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "VAR_4 = W1 * VAR_0[1] + W7 * VAR_0[7];", "VAR_10 = W7 * VAR_0[1] - W1 * VAR_0[7];", "VAR_8 = W5 * VAR_0[5] + W3 * VAR_0[3];", "VAR_6 = W3 * VAR_0[5] - W5 * VAR_0[3];", "VAR_5 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
25,830
static void init_dev(tc58128_dev * dev, const char *filename) { int ret, blocks; dev->state = WAIT; dev->flash_contents = g_malloc0(FLASH_SIZE); memset(dev->flash_contents, 0xff, FLASH_SIZE); if (!dev->flash_contents) { fprintf(stderr, "could not alloc memory for flash\n"); exit(1); ...
true
qemu
35914dc7240f7d81e22219217cfa826c2c383e7b
static void init_dev(tc58128_dev * dev, const char *filename) { int ret, blocks; dev->state = WAIT; dev->flash_contents = g_malloc0(FLASH_SIZE); memset(dev->flash_contents, 0xff, FLASH_SIZE); if (!dev->flash_contents) { fprintf(stderr, "could not alloc memory for flash\n"); exit(1); ...
{ "code": [ " dev->flash_contents = g_malloc0(FLASH_SIZE);", " if (!dev->flash_contents) {", "\tfprintf(stderr, \"could not alloc memory for flash\\n\");", "\texit(1);" ], "line_no": [ 11, 15, 17, 19 ] }
static void FUNC_0(tc58128_dev * VAR_0, const char *VAR_1) { int VAR_2, VAR_3; VAR_0->state = WAIT; VAR_0->flash_contents = g_malloc0(FLASH_SIZE); memset(VAR_0->flash_contents, 0xff, FLASH_SIZE); if (!VAR_0->flash_contents) { fprintf(stderr, "could not alloc memory for flash\n"); exit(1)...
[ "static void FUNC_0(tc58128_dev * VAR_0, const char *VAR_1)\n{", "int VAR_2, VAR_3;", "VAR_0->state = WAIT;", "VAR_0->flash_contents = g_malloc0(FLASH_SIZE);", "memset(VAR_0->flash_contents, 0xff, FLASH_SIZE);", "if (!VAR_0->flash_contents) {", "fprintf(stderr, \"could not alloc memory for flash\\n\");"...
[ 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], ...
25,832
int ff_h264_decode_mb_cavlc(H264Context *h){ MpegEncContext * const s = &h->s; int mb_xy; int partition_count; unsigned int mb_type, cbp; int dct8x8_allowed= h->pps.transform_8x8_mode; int decode_chroma = h->sps.chroma_format_idc == 1 || h->sps.chroma_format_idc == 2; const int pixel_...
true
FFmpeg
45b7bd7c53b41bc5ff6fc2158831f2b1b1256113
int ff_h264_decode_mb_cavlc(H264Context *h){ MpegEncContext * const s = &h->s; int mb_xy; int partition_count; unsigned int mb_type, cbp; int dct8x8_allowed= h->pps.transform_8x8_mode; int decode_chroma = h->sps.chroma_format_idc == 1 || h->sps.chroma_format_idc == 2; const int pixel_...
{ "code": [ " h->intra16x16_pred_mode= ff_h264_check_intra_pred_mode(h, h->intra16x16_pred_mode);", " pred_mode= ff_h264_check_intra_pred_mode(h, get_ue_golomb_31(&s->gb));" ], "line_no": [ 263, 273 ] }
int FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; int VAR_1; int VAR_2; unsigned int VAR_3, VAR_4; int VAR_5= VAR_0->pps.transform_8x8_mode; int VAR_6 = VAR_0->sps.chroma_format_idc == 1 || VAR_0->sps.chroma_format_idc == 2; const int VAR_7 = VAR_0->VAR_7; V...
[ "int FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_1;", "int VAR_2;", "unsigned int VAR_3, VAR_4;", "int VAR_5= VAR_0->pps.transform_8x8_mode;", "int VAR_6 = VAR_0->sps.chroma_format_idc == 1 || VAR_0->sps.chroma_format_idc == 2;", "const int VAR_7 = VAR_0->VAR_7;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [...
25,833
static void d3d11va_frames_uninit(AVHWFramesContext *ctx) { AVD3D11VAFramesContext *frames_hwctx = ctx->hwctx; D3D11VAFramesContext *s = ctx->internal->priv; if (frames_hwctx->texture) ID3D11Texture2D_Release(frames_hwctx->texture); if (s->staging_texture) ID3D11Texture2D_Rel...
true
FFmpeg
1509d739a036b9838e12f28dac9f09ac37bc3928
static void d3d11va_frames_uninit(AVHWFramesContext *ctx) { AVD3D11VAFramesContext *frames_hwctx = ctx->hwctx; D3D11VAFramesContext *s = ctx->internal->priv; if (frames_hwctx->texture) ID3D11Texture2D_Release(frames_hwctx->texture); if (s->staging_texture) ID3D11Texture2D_Rel...
{ "code": [], "line_no": [] }
static void FUNC_0(AVHWFramesContext *VAR_0) { AVD3D11VAFramesContext *frames_hwctx = VAR_0->hwctx; D3D11VAFramesContext *s = VAR_0->internal->priv; if (frames_hwctx->texture) ID3D11Texture2D_Release(frames_hwctx->texture); if (s->staging_texture) ID3D11Texture2D_Release(s->s...
[ "static void FUNC_0(AVHWFramesContext *VAR_0)\n{", "AVD3D11VAFramesContext *frames_hwctx = VAR_0->hwctx;", "D3D11VAFramesContext *s = VAR_0->internal->priv;", "if (frames_hwctx->texture)\nID3D11Texture2D_Release(frames_hwctx->texture);", "if (s->staging_texture)\nID3D11Texture2D_Release(s->staging_texture);...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 18, 20 ], [ 23 ] ]
25,834
static void mov_read_chapters(AVFormatContext *s) { MOVContext *mov = s->priv_data; AVStream *st = NULL; MOVStreamContext *sc; int64_t cur_pos; int i; for (i = 0; i < s->nb_streams; i++) if (s->streams[i]->id == mov->chapter_track) { st = s->streams[i]; ...
false
FFmpeg
697400eac07c0614f6b9f2e7615563982dbcbe4a
static void mov_read_chapters(AVFormatContext *s) { MOVContext *mov = s->priv_data; AVStream *st = NULL; MOVStreamContext *sc; int64_t cur_pos; int i; for (i = 0; i < s->nb_streams; i++) if (s->streams[i]->id == mov->chapter_track) { st = s->streams[i]; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0) { MOVContext *mov = VAR_0->priv_data; AVStream *st = NULL; MOVStreamContext *sc; int64_t cur_pos; int VAR_1; for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) if (VAR_0->streams[VAR_1]->id == mov->chapter_track) { st = V...
[ "static void FUNC_0(AVFormatContext *VAR_0)\n{", "MOVContext *mov = VAR_0->priv_data;", "AVStream *st = NULL;", "MOVStreamContext *sc;", "int64_t cur_pos;", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++)", "if (VAR_0->streams[VAR_1]->id == mov->chapter_track) {", "st = VAR_0->str...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
25,835
static int msrle_decode_pal4(AVCodecContext *avctx, AVFrame *pic, GetByteContext *gb) { unsigned char rle_code; unsigned char extra_byte, odd_pixel; unsigned char stream_byte; int pixel_ptr = 0; int line = avctx->height - 1; int i; while (line >= 0 && ...
false
FFmpeg
e856ac23732822ac04fe5dd959cff94c7249c17e
static int msrle_decode_pal4(AVCodecContext *avctx, AVFrame *pic, GetByteContext *gb) { unsigned char rle_code; unsigned char extra_byte, odd_pixel; unsigned char stream_byte; int pixel_ptr = 0; int line = avctx->height - 1; int i; while (line >= 0 && ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, GetByteContext *VAR_2) { unsigned char VAR_3; unsigned char VAR_4, VAR_5; unsigned char VAR_6; int VAR_7 = 0; int VAR_8 = VAR_0->height - 1; int VAR_9; while (VAR_8 >= 0 && VAR_7 <= VAR_0->width)...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nGetByteContext *VAR_2)\n{", "unsigned char VAR_3;", "unsigned char VAR_4, VAR_5;", "unsigned char VAR_6;", "int VAR_7 = 0;", "int VAR_8 = VAR_0->height - 1;", "int VAR_9;", "while (VAR_8 >= 0 && VAR_7 <= VAR_0->width) {", "if (bytestream2_ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
25,836
static void update_initial_durations(AVFormatContext *s, AVStream *st, int stream_index, int duration) { AVPacketList *pktl = s->internal->packet_buffer ? s->internal->packet_buffer : s->internal->parse_queue; int64_t cur_dts = RELATIVE_TS_BASE; if (st->first_d...
false
FFmpeg
3206ea4ba31ebf446a3c4f1220adb895b3272c15
static void update_initial_durations(AVFormatContext *s, AVStream *st, int stream_index, int duration) { AVPacketList *pktl = s->internal->packet_buffer ? s->internal->packet_buffer : s->internal->parse_queue; int64_t cur_dts = RELATIVE_TS_BASE; if (st->first_d...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2, int VAR_3) { AVPacketList *pktl = VAR_0->internal->packet_buffer ? VAR_0->internal->packet_buffer : VAR_0->internal->parse_queue; int64_t cur_dts = RELATIVE_TS_BASE; if (VAR_1->first_dts != ...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,\nint VAR_2, int VAR_3)\n{", "AVPacketList *pktl = VAR_0->internal->packet_buffer ? VAR_0->internal->packet_buffer : VAR_0->internal->parse_queue;", "int64_t cur_dts = RELATIVE_TS_BASE;", "if (VAR_1->first_dts != AV_NOPTS_VALUE) {", "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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
25,837
int poll(struct pollfd *fds, nfds_t numfds, int timeout) { fd_set read_set; fd_set write_set; fd_set exception_set; nfds_t i; int n; int rc; #ifdef __MINGW32__ if (numfds >= FD_SETSIZE) { errno = EINVAL; return -1; } #endif FD_ZERO(&read_set); F...
false
FFmpeg
6ff3f3e7cec7cd78a01d0bf76cbccfbe68dc0894
int poll(struct pollfd *fds, nfds_t numfds, int timeout) { fd_set read_set; fd_set write_set; fd_set exception_set; nfds_t i; int n; int rc; #ifdef __MINGW32__ if (numfds >= FD_SETSIZE) { errno = EINVAL; return -1; } #endif FD_ZERO(&read_set); F...
{ "code": [], "line_no": [] }
int FUNC_0(struct pollfd *VAR_0, nfds_t VAR_1, int VAR_2) { fd_set read_set; fd_set write_set; fd_set exception_set; nfds_t i; int VAR_3; int VAR_4; #ifdef __MINGW32__ if (VAR_1 >= FD_SETSIZE) { errno = EINVAL; return -1; } #endif FD_ZERO(&read_set);...
[ "int FUNC_0(struct pollfd *VAR_0, nfds_t VAR_1, int VAR_2)\n{", "fd_set read_set;", "fd_set write_set;", "fd_set exception_set;", "nfds_t i;", "int VAR_3;", "int VAR_4;", "#ifdef __MINGW32__\nif (VAR_1 >= FD_SETSIZE) {", "errno = EINVAL;", "return -1;", "}", "#endif\nFD_ZERO(&read_set);", "F...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ...
25,838
int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, int wanted_stream_nb, int related_stream, AVCodec **decoder_ret, int flags) { int i, nb_streams = ic->nb_streams; int ret = AVERROR_STREAM_NOT_FOUND, best_count = -1, best_bitrate = -1, best_...
false
FFmpeg
42c41e96ff6dc4fa24d98e1913aff925b8122776
int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, int wanted_stream_nb, int related_stream, AVCodec **decoder_ret, int flags) { int i, nb_streams = ic->nb_streams; int ret = AVERROR_STREAM_NOT_FOUND, best_count = -1, best_bitrate = -1, best_...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, enum AVMediaType VAR_1, int VAR_2, int VAR_3, AVCodec **VAR_4, int VAR_5) { int VAR_6, VAR_7 = VAR_0->VAR_7; int VAR_8 = AVERROR_STREAM_NOT_FOUND, VAR_9 = -1, VAR_10 = -1, VAR_11 = -1, VAR_12, VAR_13, VAR_14; unsigned *...
[ "int FUNC_0(AVFormatContext *VAR_0, enum AVMediaType VAR_1,\nint VAR_2, int VAR_3,\nAVCodec **VAR_4, int VAR_5)\n{", "int VAR_6, VAR_7 = VAR_0->VAR_7;", "int VAR_8 = AVERROR_STREAM_NOT_FOUND, VAR_9 = -1, VAR_10 = -1, VAR_11 = -1, VAR_12, VAR_13, VAR_14;", "unsigned *VAR_15 = NULL;", "const AVCodec *VAR_16 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41, 43 ], [ 45, 47 ...
25,840
static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len) { MpegTSContext *ts = filter->u.section_filter.opaque; SectionHeader h1, *h = &h1; PESContext *pes; AVStream *st; const uint8_t *p, *p_end, *desc_list_end, *desc_end; int program_info_length, pcr_pid, pid, s...
true
FFmpeg
28af284cfb44cb198c1b1c01e61c90b10fd9e395
static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len) { MpegTSContext *ts = filter->u.section_filter.opaque; SectionHeader h1, *h = &h1; PESContext *pes; AVStream *st; const uint8_t *p, *p_end, *desc_list_end, *desc_end; int program_info_length, pcr_pid, pid, s...
{ "code": [ " if(ts->pids[pid]){", " assert(ts->pids[pid]->type == MPEGTS_PES);" ], "line_no": [ 245, 247 ] }
static void FUNC_0(MpegTSFilter *VAR_0, const uint8_t *VAR_1, int VAR_2) { MpegTSContext *ts = VAR_0->u.section_filter.opaque; SectionHeader h1, *h = &h1; PESContext *pes; AVStream *st; const uint8_t *VAR_3, *p_end, *desc_list_end, *desc_end; int VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8...
[ "static void FUNC_0(MpegTSFilter *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "MpegTSContext *ts = VAR_0->u.section_filter.opaque;", "SectionHeader h1, *h = &h1;", "PESContext *pes;", "AVStream *st;", "const uint8_t *VAR_3, *p_end, *desc_list_end, *desc_end;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "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, 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, 45 ], [ 47, 49,...
25,841
static inline void RENAME(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, uint8_t *uDest, ui...
true
FFmpeg
c3ab0004ae4dffc32494ae84dd15cfaa909a7884
static inline void RENAME(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, uint8_t *uDest, ui...
{ "code": [ " uint8_t *dest, uint8_t *uDest, uint8_t *vDest, uint8_t *aDest, int dstW, int chrDstW)", " uint8_t *dest, uint8_t *uDest, uint8_t *vDest, uint8_t *aDest, int dstW, int chrDstW)" ], "line_no": [ 5, 5 ] }
static inline void FUNC_0(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, uint8_t *uDest, ui...
[ "static inline void FUNC_0(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize,\nconst int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, const int16_t **alpSrc,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest, uint8_t *aDest, int dstW, int chrDstW)\n{", "#if CO...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25, 27 ], [ 31, 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45, 47 ], [ 51, 53 ], [ 55 ], [...
25,842
static int qcow_make_empty(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; uint32_t l1_length = s->l1_size * sizeof(uint64_t); int ret; memset(s->l1_table, 0, l1_length); if (bdrv_pwrite(bs->file, s->l1_table_offset, s->l1_table, l1_length) < 0) return -1; ret = bdrv_truncate(b...
true
qemu
5e5557d97026d1d3325e0e7b0ba593366da2f3dc
static int qcow_make_empty(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; uint32_t l1_length = s->l1_size * sizeof(uint64_t); int ret; memset(s->l1_table, 0, l1_length); if (bdrv_pwrite(bs->file, s->l1_table_offset, s->l1_table, l1_length) < 0) return -1; ret = bdrv_truncate(b...
{ "code": [ " if (bdrv_pwrite(bs->file, s->l1_table_offset, s->l1_table, l1_length) < 0)", "\treturn -1;" ], "line_no": [ 15, 17 ] }
static int FUNC_0(BlockDriverState *VAR_0) { BDRVQcowState *s = VAR_0->opaque; uint32_t l1_length = s->l1_size * sizeof(uint64_t); int VAR_1; memset(s->l1_table, 0, l1_length); if (bdrv_pwrite(VAR_0->file, s->l1_table_offset, s->l1_table, l1_length) < 0) return -1; VAR_1 = bdrv_trunca...
[ "static int FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVQcowState *s = VAR_0->opaque;", "uint32_t l1_length = s->l1_size * sizeof(uint64_t);", "int VAR_1;", "memset(s->l1_table, 0, l1_length);", "if (bdrv_pwrite(VAR_0->file, s->l1_table_offset, s->l1_table, l1_length) < 0)\nreturn -1;", "VAR_1 = bdrv_trun...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
25,843
static inline void vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y, int mvn, int r_x, int r_y, uint8_t* is_intra, int dir) { MpegEncContext *s = &v->s; int xy, wrap, off = 0; int A[2], B[2], C[2]; int px, py; int a_valid = 0, b_valid = 0, c_va...
true
FFmpeg
6c5bd7d785ffb796b8cfbae677ab54755b26a22b
static inline void vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y, int mvn, int r_x, int r_y, uint8_t* is_intra, int dir) { MpegEncContext *s = &v->s; int xy, wrap, off = 0; int A[2], B[2], C[2]; int px, py; int a_valid = 0, b_valid = 0, c_va...
{ "code": [ " int px, py;", " } else", " px = py = 0;", " } else px = py = 0;", " } else", " px = py = 0;" ], "line_no": [ 13, 289, 291, 375, 407, 409 ] }
static inline void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, uint8_t* VAR_7, int VAR_8) { MpegEncContext *s = &VAR_0->s; int VAR_9, VAR_10, VAR_11 = 0; int VAR_12[2], VAR_13[2], VAR_14[2]; int VAR_15, VAR_16; ...
[ "static inline void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6, uint8_t* VAR_7, int VAR_8)\n{", "MpegEncContext *s = &VAR_0->s;", "int VAR_9, VAR_10, VAR_11 = 0;", "int VAR_12[2], VAR_13[2], VAR_14[2];", "int VAR_15, VAR_16;", "int VAR_17 = 0, VAR_18 = 0, V...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
25,844
void bdrv_append_temp_snapshot(BlockDriverState *bs, Error **errp) { /* TODO: extra byte is a hack to ensure MAX_PATH space on Windows. */ char tmp_filename[PATH_MAX + 1]; int64_t total_size; BlockDriver *bdrv_qcow2; QEMUOptionParameter *create_options; QDict *snapshot_options; Blo...
true
qemu
1ba4b6a553ad9ff4645af7fab8adfc6e810fcc69
void bdrv_append_temp_snapshot(BlockDriverState *bs, Error **errp) { char tmp_filename[PATH_MAX + 1]; int64_t total_size; BlockDriver *bdrv_qcow2; QEMUOptionParameter *create_options; QDict *snapshot_options; BlockDriverState *bs_snapshot; Error *local_err; int ret; ...
{ "code": [ " char tmp_filename[PATH_MAX + 1];", " ret = get_tmp_filename(tmp_filename, sizeof(tmp_filename));" ], "line_no": [ 7, 51 ] }
void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1) { char VAR_2[PATH_MAX + 1]; int64_t total_size; BlockDriver *bdrv_qcow2; QEMUOptionParameter *create_options; QDict *snapshot_options; BlockDriverState *bs_snapshot; Error *local_err; int VAR_3; t...
[ "void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{", "char VAR_2[PATH_MAX + 1];", "int64_t total_size;", "BlockDriver *bdrv_qcow2;", "QEMUOptionParameter *create_options;", "QDict *snapshot_options;", "BlockDriverState *bs_snapshot;", "Error *local_err;", "int VAR_3;", "total_size = bdrv_getl...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 5...
25,845
int nbd_client_co_flush(BlockDriverState *bs) { NBDClientSession *client = nbd_get_client_session(bs); NBDRequest request = { .type = NBD_CMD_FLUSH }; NBDReply reply; ssize_t ret; if (!(client->nbdflags & NBD_FLAG_SEND_FLUSH)) { return 0; } request.from = 0; request...
true
qemu
6bdcc018a6ed760b9dfe43539124e420aed83092
int nbd_client_co_flush(BlockDriverState *bs) { NBDClientSession *client = nbd_get_client_session(bs); NBDRequest request = { .type = NBD_CMD_FLUSH }; NBDReply reply; ssize_t ret; if (!(client->nbdflags & NBD_FLAG_SEND_FLUSH)) { return 0; } request.from = 0; request...
{ "code": [ " nbd_coroutine_start(client, &request);", " nbd_coroutine_start(client, &request);", " nbd_coroutine_start(client, &request);", " nbd_coroutine_start(client, &request);", " nbd_coroutine_start(client, &request);" ], "line_no": [ 29, 29, 29, 29, 2...
int FUNC_0(BlockDriverState *VAR_0) { NBDClientSession *client = nbd_get_client_session(VAR_0); NBDRequest request = { .type = NBD_CMD_FLUSH }; NBDReply reply; ssize_t ret; if (!(client->nbdflags & NBD_FLAG_SEND_FLUSH)) { return 0; } request.from = 0; request.len = ...
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "NBDClientSession *client = nbd_get_client_session(VAR_0);", "NBDRequest request = { .type = NBD_CMD_FLUSH };", "NBDReply reply;", "ssize_t ret;", "if (!(client->nbdflags & NBD_FLAG_SEND_FLUSH)) {", "return 0;", "}", "request.from = 0;", "request.len = 0;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
25,846
int do_sigaction(int sig, const struct target_sigaction *act, struct target_sigaction *oact) { struct emulated_sigaction *k; if (sig < 1 || sig > TARGET_NSIG) return -EINVAL; k = &sigact_table[sig - 1]; #if defined(DEBUG_SIGNAL) && 0 fprintf(stderr, "sigaction sig=%d a...
true
qemu
773b93ee0684a9b9d1f0029a936a251411289027
int do_sigaction(int sig, const struct target_sigaction *act, struct target_sigaction *oact) { struct emulated_sigaction *k; if (sig < 1 || sig > TARGET_NSIG) return -EINVAL; k = &sigact_table[sig - 1]; #if defined(DEBUG_SIGNAL) && 0 fprintf(stderr, "sigaction sig=%d a...
{ "code": [ "#endif", "#endif", "#if defined(DEBUG_SIGNAL) && 0" ], "line_no": [ 23, 23, 17 ] }
int FUNC_0(int VAR_0, const struct target_sigaction *VAR_1, struct target_sigaction *VAR_2) { struct emulated_sigaction *VAR_3; if (VAR_0 < 1 || VAR_0 > TARGET_NSIG) return -EINVAL; VAR_3 = &sigact_table[VAR_0 - 1]; #if defined(DEBUG_SIGNAL) && 0 fprintf(stderr, "sigac...
[ "int FUNC_0(int VAR_0, const struct target_sigaction *VAR_1,\nstruct target_sigaction *VAR_2)\n{", "struct emulated_sigaction *VAR_3;", "if (VAR_0 < 1 || VAR_0 > TARGET_NSIG)\nreturn -EINVAL;", "VAR_3 = &sigact_table[VAR_0 - 1];", "#if defined(DEBUG_SIGNAL) && 0\nfprintf(stderr, \"sigaction VAR_0=%d VAR_1=0...
[ 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17, 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
25,847
DeviceState *qdev_try_create(BusState *bus, const char *name) { DeviceState *dev; dev = DEVICE(object_new(name)); if (!dev) { if (!bus) { bus = sysbus_get_default(); qdev_set_parent_bus(dev, bus); qdev_prop_set_globals(dev); return dev;
true
qemu
4ed658ca925249021789d6a51fd6f99f68213f28
DeviceState *qdev_try_create(BusState *bus, const char *name) { DeviceState *dev; dev = DEVICE(object_new(name)); if (!dev) { if (!bus) { bus = sysbus_get_default(); qdev_set_parent_bus(dev, bus); qdev_prop_set_globals(dev); return dev;
{ "code": [], "line_no": [] }
DeviceState *FUNC_0(BusState *bus, const char *name) { DeviceState *dev; dev = DEVICE(object_new(name)); if (!dev) { if (!bus) { bus = sysbus_get_default(); qdev_set_parent_bus(dev, bus); qdev_prop_set_globals(dev); return dev;
[ "DeviceState *FUNC_0(BusState *bus, const char *name)\n{", "DeviceState *dev;", "dev = DEVICE(object_new(name));", "if (!dev) {", "if (!bus) {", "bus = sysbus_get_default();", "qdev_set_parent_bus(dev, bus);", "qdev_prop_set_globals(dev);", "return dev;" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 12 ], [ 14 ], [ 20 ], [ 22 ], [ 27 ], [ 29 ], [ 33 ] ]
25,848
const AVOption *av_set_string(void *obj, const char *name, const char *val){ const AVOption *o= av_find_opt(obj, name, NULL, 0, 0); if(o && o->offset==0 && o->type == FF_OPT_TYPE_CONST && o->unit){ return set_all_opt(obj, o->unit, o->default_val); } if(!o || !val || o->offset<=0) r...
true
FFmpeg
24cdc39e9dfd2b98e96c96387903bd41313bd0dd
const AVOption *av_set_string(void *obj, const char *name, const char *val){ const AVOption *o= av_find_opt(obj, name, NULL, 0, 0); if(o && o->offset==0 && o->type == FF_OPT_TYPE_CONST && o->unit){ return set_all_opt(obj, o->unit, o->default_val); } if(!o || !val || o->offset<=0) r...
{ "code": [ " memcpy(((uint8_t*)obj) + o->offset, val, sizeof(val));" ], "line_no": [ 105 ] }
const AVOption *FUNC_0(void *obj, const char *name, const char *val){ const AVOption *VAR_0= av_find_opt(obj, name, NULL, 0, 0); if(VAR_0 && VAR_0->offset==0 && VAR_0->type == FF_OPT_TYPE_CONST && VAR_0->unit){ return set_all_opt(obj, VAR_0->unit, VAR_0->default_val); } if(!VAR_0 || !val ||...
[ "const AVOption *FUNC_0(void *obj, const char *name, const char *val){", "const AVOption *VAR_0= av_find_opt(obj, name, NULL, 0, 0);", "if(VAR_0 && VAR_0->offset==0 && VAR_0->type == FF_OPT_TYPE_CONST && VAR_0->unit){", "return set_all_opt(obj, VAR_0->unit, VAR_0->default_val);", "}", "if(!VAR_0 || !val |...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
25,849
int ff_h2645_extract_rbsp(const uint8_t *src, int length, H2645NAL *nal, int small_padding) { int i, si, di; uint8_t *dst; int64_t padding = small_padding ? AV_INPUT_BUFFER_PADDING_SIZE : MAX_MBPAIR_SIZE; nal->skipped_bytes = 0; #define STARTCODE_TEST ...
true
FFmpeg
382a68b0088b06b8df20d0133d767d53d8f161ef
int ff_h2645_extract_rbsp(const uint8_t *src, int length, H2645NAL *nal, int small_padding) { int i, si, di; uint8_t *dst; int64_t padding = small_padding ? AV_INPUT_BUFFER_PADDING_SIZE : MAX_MBPAIR_SIZE; nal->skipped_bytes = 0; #define STARTCODE_TEST ...
{ "code": [ " int64_t padding = small_padding ? AV_INPUT_BUFFER_PADDING_SIZE : MAX_MBPAIR_SIZE;", " av_fast_malloc(&nal->rbsp_buffer, &nal->rbsp_buffer_size,", " length + padding);" ], "line_no": [ 11, 123, 125 ] }
int FUNC_0(const uint8_t *VAR_0, int VAR_1, H2645NAL *VAR_2, int VAR_3) { int VAR_4, VAR_5, VAR_6; uint8_t *dst; int64_t padding = VAR_3 ? AV_INPUT_BUFFER_PADDING_SIZE : MAX_MBPAIR_SIZE; VAR_2->skipped_bytes = 0; #define STARTCODE_TEST ...
[ "int FUNC_0(const uint8_t *VAR_0, int VAR_1,\nH2645NAL *VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6;", "uint8_t *dst;", "int64_t padding = VAR_3 ? AV_INPUT_BUFFER_PADDING_SIZE : MAX_MBPAIR_SIZE;", "VAR_2->skipped_bytes = 0;", "#define STARTCODE_TEST \\\...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39 ], [ 41, 43, 45, 47 ], [ 49, 51, 53, 55 ...
25,850
static int check_refblocks(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, bool *rebuild, uint16_t **refcount_table, int64_t *nb_clusters) { BDRVQcowState *s = bs->opaque; int64_t i, size; int ret; for(i = 0; i < s->refcount_t...
true
qemu
7453c96b78c2b09aa72924f933bb9616e5474194
static int check_refblocks(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, bool *rebuild, uint16_t **refcount_table, int64_t *nb_clusters) { BDRVQcowState *s = bs->opaque; int64_t i, size; int ret; for(i = 0; i < s->refcount_t...
{ "code": [ " uint16_t **refcount_table, int64_t *nb_clusters)", " if ((*refcount_table)[cluster] != 1) {", " \" refcount=%d\\n\", i, (*refcount_table)[cluster]);" ], "line_no": [ 5, 175, 179 ] }
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, BdrvCheckMode VAR_2, bool *VAR_3, uint16_t **VAR_4, int64_t *VAR_5) { BDRVQcowState *s = VAR_0->opaque; int64_t i, size; int VAR_6; for(i = 0; i < s->refcount_table_size; i++...
[ "static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nBdrvCheckMode VAR_2, bool *VAR_3,\nuint16_t **VAR_4, int64_t *VAR_5)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int64_t i, size;", "int VAR_6;", "for(i = 0; i < s->refcount_table_size; i++) {", "uint64_t offset, cluster;", "offset = s-...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 53 ], [ 55 ...
25,851
static void choose_pixel_fmt(AVStream *st, AVCodec *codec) { if(codec && codec->pix_fmts){ const enum PixelFormat *p= codec->pix_fmts; if(st->codec->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL){ if(st->codec->codec_id==CODEC_ID_MJPEG){ p= (const enum PixelForm...
true
FFmpeg
b5ef6f8eb452c37b19d973d61548725d7b91113e
static void choose_pixel_fmt(AVStream *st, AVCodec *codec) { if(codec && codec->pix_fmts){ const enum PixelFormat *p= codec->pix_fmts; if(st->codec->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL){ if(st->codec->codec_id==CODEC_ID_MJPEG){ p= (const enum PixelForm...
{ "code": [], "line_no": [] }
static void FUNC_0(AVStream *VAR_0, AVCodec *VAR_1) { if(VAR_1 && VAR_1->pix_fmts){ const enum PixelFormat *VAR_2= VAR_1->pix_fmts; if(VAR_0->VAR_1->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL){ if(VAR_0->VAR_1->codec_id==CODEC_ID_MJPEG){ VAR_2= (const enum Pi...
[ "static void FUNC_0(AVStream *VAR_0, AVCodec *VAR_1)\n{", "if(VAR_1 && VAR_1->pix_fmts){", "const enum PixelFormat *VAR_2= VAR_1->pix_fmts;", "if(VAR_0->VAR_1->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL){", "if(VAR_0->VAR_1->codec_id==CODEC_ID_MJPEG){", "VAR_2= (const enum PixelFormat[]){PIX_FMT_YU...
[ 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 ], [ 34, 36, 38, 40, 42 ], [ 44 ], [ 46 ], [...
25,852
static void virtio_gpu_reset(VirtIODevice *vdev) { VirtIOGPU *g = VIRTIO_GPU(vdev); struct virtio_gpu_simple_resource *res, *tmp; int i; g->enable = 0; QTAILQ_FOREACH_SAFE(res, &g->reslist, next, tmp) { virtio_gpu_resource_destroy(g, res); } for (i = 0; i < g->conf.max_o...
true
qemu
79d16c21a565927943486b26789caa62413ff371
static void virtio_gpu_reset(VirtIODevice *vdev) { VirtIOGPU *g = VIRTIO_GPU(vdev); struct virtio_gpu_simple_resource *res, *tmp; int i; g->enable = 0; QTAILQ_FOREACH_SAFE(res, &g->reslist, next, tmp) { virtio_gpu_resource_destroy(g, res); } for (i = 0; i < g->conf.max_o...
{ "code": [ "#if 0", " g->req_state[i].x = 0;", " g->req_state[i].y = 0;", " if (i == 0) {", " g->req_state[0].width = 1024;", " g->req_state[0].height = 768;", " } else {", " g->req_state[i].width = 0;", " g->...
static void FUNC_0(VirtIODevice *VAR_0) { VirtIOGPU *g = VIRTIO_GPU(VAR_0); struct virtio_gpu_simple_resource *VAR_1, *VAR_2; int VAR_3; g->enable = 0; QTAILQ_FOREACH_SAFE(VAR_1, &g->reslist, next, VAR_2) { virtio_gpu_resource_destroy(g, VAR_1); } for (VAR_3 = 0; VAR_3 <...
[ "static void FUNC_0(VirtIODevice *VAR_0)\n{", "VirtIOGPU *g = VIRTIO_GPU(VAR_0);", "struct virtio_gpu_simple_resource *VAR_1, *VAR_2;", "int VAR_3;", "g->enable = 0;", "QTAILQ_FOREACH_SAFE(VAR_1, &g->reslist, next, VAR_2) {", "virtio_gpu_resource_destroy(g, VAR_1);", "}", "for (VAR_3 = 0; VAR_3 < g-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ...
25,853
static void gen_divu(DisasContext *dc, TCGv dest, TCGv srca, TCGv srcb) { TCGv sr_cy = tcg_temp_new(); TCGv t0 = tcg_temp_new(); tcg_gen_setcondi_tl(TCG_COND_EQ, sr_cy, srcb, 0); /* The result of divide-by-zero is undefined. Supress the host-side exception by dividing by 1. */ tcg_g...
true
qemu
9745807191a81c45970f780166f44a7f93b18653
static void gen_divu(DisasContext *dc, TCGv dest, TCGv srca, TCGv srcb) { TCGv sr_cy = tcg_temp_new(); TCGv t0 = tcg_temp_new(); tcg_gen_setcondi_tl(TCG_COND_EQ, sr_cy, srcb, 0); tcg_gen_or_tl(t0, srcb, sr_cy); tcg_gen_divu_tl(dest, srca, t0); tcg_temp_free(t0); tcg_gen_d...
{ "code": [ " TCGv sr_cy = tcg_temp_new();", " tcg_gen_deposit_tl(cpu_sr, cpu_sr, sr_cy, ctz32(SR_CY), 1);", " tcg_temp_free(sr_cy);", " TCGv sr_cy = tcg_temp_new();", " tcg_gen_deposit_tl(cpu_sr, cpu_sr, sr_cy, ctz32(SR_CY), 1);", " tcg_temp_free(sr_cy);", " TCGv sr_c...
static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2, TCGv VAR_3) { TCGv sr_cy = tcg_temp_new(); TCGv t0 = tcg_temp_new(); tcg_gen_setcondi_tl(TCG_COND_EQ, sr_cy, VAR_3, 0); tcg_gen_or_tl(t0, VAR_3, sr_cy); tcg_gen_divu_tl(VAR_1, VAR_2, t0); tcg_temp_free(t0); t...
[ "static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2, TCGv VAR_3)\n{", "TCGv sr_cy = tcg_temp_new();", "TCGv t0 = tcg_temp_new();", "tcg_gen_setcondi_tl(TCG_COND_EQ, sr_cy, VAR_3, 0);", "tcg_gen_or_tl(t0, VAR_3, sr_cy);", "tcg_gen_divu_tl(VAR_1, VAR_2, t0);", "tcg_temp_free(t0);", "tcg_gen_...
[ 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ] ]
25,855
av_cold int vp56_free(AVCodecContext *avctx) { VP56Context *s = avctx->priv_data; int pt; av_freep(&s->qscale_table); av_freep(&s->above_blocks); av_freep(&s->macroblocks); av_freep(&s->edge_emu_buffer_alloc); if (s->framep[VP56_FRAME_GOLDEN]->data[0]) avctx->release_buffer(avctx, s-...
true
FFmpeg
0a41faa9a77dc83d8d933e99f1ba902ecd146e79
av_cold int vp56_free(AVCodecContext *avctx) { VP56Context *s = avctx->priv_data; int pt; av_freep(&s->qscale_table); av_freep(&s->above_blocks); av_freep(&s->macroblocks); av_freep(&s->edge_emu_buffer_alloc); if (s->framep[VP56_FRAME_GOLDEN]->data[0]) avctx->release_buffer(avctx, s-...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { VP56Context *s = avctx->priv_data; int VAR_0; av_freep(&s->qscale_table); av_freep(&s->above_blocks); av_freep(&s->macroblocks); av_freep(&s->edge_emu_buffer_alloc); if (s->framep[VP56_FRAME_GOLDEN]->data[0]) avctx->release_buffer(avctx, s-...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VP56Context *s = avctx->priv_data;", "int VAR_0;", "av_freep(&s->qscale_table);", "av_freep(&s->above_blocks);", "av_freep(&s->macroblocks);", "av_freep(&s->edge_emu_buffer_alloc);", "if (s->framep[VP56_FRAME_GOLDEN]->data[0])\navctx->release_buffer(avc...
[ 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 ] ]
25,857
static void decode_block_params(DiracContext *s, DiracArith arith[8], DiracBlock *block, int stride, int x, int y) { int i; block->ref = pred_block_mode(block, stride, x, y, DIRAC_REF_MASK_REF1); block->ref ^= dirac_get_arith_bit(arith, CTX_PMODE_REF1); if (s->...
true
FFmpeg
b5995856a4236c27f231210bb08d70688e045192
static void decode_block_params(DiracContext *s, DiracArith arith[8], DiracBlock *block, int stride, int x, int y) { int i; block->ref = pred_block_mode(block, stride, x, y, DIRAC_REF_MASK_REF1); block->ref ^= dirac_get_arith_bit(arith, CTX_PMODE_REF1); if (s->...
{ "code": [ " block->u.dc[i] += dirac_get_arith_int(arith+1+i, CTX_DC_F1, CTX_DC_DATA);" ], "line_no": [ 33 ] }
static void FUNC_0(DiracContext *VAR_0, DiracArith VAR_1[8], DiracBlock *VAR_2, int VAR_3, int VAR_4, int VAR_5) { int VAR_6; VAR_2->ref = pred_block_mode(VAR_2, VAR_3, VAR_4, VAR_5, DIRAC_REF_MASK_REF1); VAR_2->ref ^= dirac_get_arith_bit(VAR_1, CTX_PMODE_REF1); ...
[ "static void FUNC_0(DiracContext *VAR_0, DiracArith VAR_1[8], DiracBlock *VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{", "int VAR_6;", "VAR_2->ref = pred_block_mode(VAR_2, VAR_3, VAR_4, VAR_5, DIRAC_REF_MASK_REF1);", "VAR_2->ref ^= dirac_get_arith_bit(VAR_1, CTX_PMODE_REF1);", "if (VAR_0->num_refs == 2) {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], ...
25,858
static void adb_mouse_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); ADBDeviceClass *adc = ADB_DEVICE_CLASS(oc); ADBMouseClass *amc = ADB_MOUSE_CLASS(oc); amc->parent_realize = dc->realize; dc->realize = adb_mouse_realizefn; set_bit(DEVICE_CATEGORY_INPUT, ...
true
qemu
77cb0f5aafc8e6d0c6d3c339f381c9b7921648e0
static void adb_mouse_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); ADBDeviceClass *adc = ADB_DEVICE_CLASS(oc); ADBMouseClass *amc = ADB_MOUSE_CLASS(oc); amc->parent_realize = dc->realize; dc->realize = adb_mouse_realizefn; set_bit(DEVICE_CATEGORY_INPUT, ...
{ "code": [ " DeviceClass *dc = DEVICE_CLASS(oc);", " ADBDeviceClass *adc = ADB_DEVICE_CLASS(oc);", " set_bit(DEVICE_CATEGORY_INPUT, dc->categories);", "static void adb_mouse_class_init(ObjectClass *oc, void *data)", " DeviceClass *dc = DEVICE_CLASS(oc);", " ADBDeviceClass *adc ...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); ADBDeviceClass *adc = ADB_DEVICE_CLASS(VAR_0); ADBMouseClass *amc = ADB_MOUSE_CLASS(VAR_0); amc->parent_realize = dc->realize; dc->realize = adb_mouse_realizefn; set_bit(DEVICE_CATEGORY_INPUT, d...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "ADBDeviceClass *adc = ADB_DEVICE_CLASS(VAR_0);", "ADBMouseClass *amc = ADB_MOUSE_CLASS(VAR_0);", "amc->parent_realize = dc->realize;", "dc->realize = adb_mouse_realizefn;", "set_bit(DEVICE_CATEGORY_INPUT...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
25,860
static int do_sd_create(char *filename, int64_t vdi_size, uint32_t base_vid, uint32_t *vdi_id, int snapshot, const char *addr, const char *port) { SheepdogVdiReq hdr; SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr; int fd, ret; unsigned int wlen, rlen...
true
qemu
3178e2755ec5a7fb1afe583fb6ac2622c2c42184
static int do_sd_create(char *filename, int64_t vdi_size, uint32_t base_vid, uint32_t *vdi_id, int snapshot, const char *addr, const char *port) { SheepdogVdiReq hdr; SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr; int fd, ret; unsigned int wlen, rlen...
{ "code": [ " memset(buf, 0, sizeof(buf));", " strncpy(buf, filename, SD_MAX_VDI_LEN);" ], "line_no": [ 31, 33 ] }
static int FUNC_0(char *VAR_0, int64_t VAR_1, uint32_t VAR_2, uint32_t *VAR_3, int VAR_4, const char *VAR_5, const char *VAR_6) { SheepdogVdiReq hdr; SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr; int VAR_7, VAR_8; unsigned int VAR_9, VAR_10 = 0; ...
[ "static int FUNC_0(char *VAR_0, int64_t VAR_1,\nuint32_t VAR_2, uint32_t *VAR_3, int VAR_4,\nconst char *VAR_5, const char *VAR_6)\n{", "SheepdogVdiReq hdr;", "SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr;", "int VAR_7, VAR_8;", "unsigned int VAR_9, VAR_10 = 0;", "char VAR_11[SD_MAX_VDI_LEN];", "VAR_7 =...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ...
25,861
int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *got_picture_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; AVFrame *pict = ...
true
FFmpeg
68def00a6330e46eea2ee6735fa4ae91317e8f5c
int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *got_picture_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; AVFrame *pict = ...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->VAR_15; RV34DecContext *r = VAR_0->priv_data; MpegEncContext *s = &r->s; AVFrame *pict = VAR_1; SliceInfo ...
[ "int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->VAR_15;", "RV34DecContext *r = VAR_0->priv_data;", "MpegEncContext *s = &r->s;", "AVFrame *pict = VAR_1;", "SliceInfo si;", "int VAR_11;", "int VAR_7;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 16 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ 24 ],...
25,863
static int flic_decode_frame_15_16BPP(AVCodecContext *avctx, void *data, int *got_frame, const uint8_t *buf, int buf_size) { /* Note, the only difference between the 15Bpp and 16Bpp */ /* Format is the pixel format, the packets are...
true
FFmpeg
355e27e24dc88d6ba8f27501a34925d9d937a399
static int flic_decode_frame_15_16BPP(AVCodecContext *avctx, void *data, int *got_frame, const uint8_t *buf, int buf_size) { FlicDecodeContext *s = avctx->priv_data; GetByteContext g2; int pixel_ptr; unsigne...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { FlicDecodeContext *s = VAR_0->priv_data; GetByteContext g2; int VAR_5; unsigned char VAR_6; unsigne...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "FlicDecodeContext *s = VAR_0->priv_data;", "GetByteContext g2;", "int VAR_5;", "unsigned char VAR_6;", "unsigned int VAR_7;", "int VAR_8;", "unsigned int VAR_9;", "int VAR_10;", "int VAR_11,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57...
25,864
void gen_intermediate_code(CPUState *cs, TranslationBlock * tb) { CPUSPARCState *env = cs->env_ptr; target_ulong pc_start, last_pc; DisasContext dc1, *dc = &dc1; int num_insns; int max_insns; unsigned int insn; memset(dc, 0, sizeof(DisasContext)); dc->tb = tb; pc_start = ...
true
qemu
c5a49c63fa26e8825ad101dfe86339ae4c216539
void gen_intermediate_code(CPUState *cs, TranslationBlock * tb) { CPUSPARCState *env = cs->env_ptr; target_ulong pc_start, last_pc; DisasContext dc1, *dc = &dc1; int num_insns; int max_insns; unsigned int insn; memset(dc, 0, sizeof(DisasContext)); dc->tb = tb; pc_start = ...
{ "code": [ " max_insns = tb->cflags & CF_COUNT_MASK;", " if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) {", " max_insns = tb->cflags & CF_COUNT_MASK;", " if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) {", " if (tb->cflags & CF_LAST_IO) {", " max_i...
void FUNC_0(CPUState *VAR_0, TranslationBlock * VAR_1) { CPUSPARCState *env = VAR_0->env_ptr; target_ulong pc_start, last_pc; DisasContext dc1, *dc = &dc1; int VAR_2; int VAR_3; unsigned int VAR_4; memset(dc, 0, sizeof(DisasContext)); dc->VAR_1 = VAR_1; pc_start = VAR_1->...
[ "void FUNC_0(CPUState *VAR_0, TranslationBlock * VAR_1)\n{", "CPUSPARCState *env = VAR_0->env_ptr;", "target_ulong pc_start, last_pc;", "DisasContext dc1, *dc = &dc1;", "int VAR_2;", "int VAR_3;", "unsigned int VAR_4;", "memset(dc, 0, sizeof(DisasContext));", "dc->VAR_1 = VAR_1;", "pc_start = VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 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, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43,...
25,866
static void cortex_a15_initfn(Object *obj) { ARMCPU *cpu = ARM_CPU(obj); set_feature(&cpu->env, ARM_FEATURE_V7); set_feature(&cpu->env, ARM_FEATURE_VFP4); set_feature(&cpu->env, ARM_FEATURE_VFP_FP16); set_feature(&cpu->env, ARM_FEATURE_NEON); set_feature(&cpu->env, ARM_FEATURE_THUMB2EE); ...
true
qemu
de9b05b807918d40db9e26ddd6a54ad2978ac5b7
static void cortex_a15_initfn(Object *obj) { ARMCPU *cpu = ARM_CPU(obj); set_feature(&cpu->env, ARM_FEATURE_V7); set_feature(&cpu->env, ARM_FEATURE_VFP4); set_feature(&cpu->env, ARM_FEATURE_VFP_FP16); set_feature(&cpu->env, ARM_FEATURE_NEON); set_feature(&cpu->env, ARM_FEATURE_THUMB2EE); ...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { ARMCPU *cpu = ARM_CPU(VAR_0); set_feature(&cpu->env, ARM_FEATURE_V7); set_feature(&cpu->env, ARM_FEATURE_VFP4); set_feature(&cpu->env, ARM_FEATURE_VFP_FP16); set_feature(&cpu->env, ARM_FEATURE_NEON); set_feature(&cpu->env, ARM_FEATURE_THUMB2EE); se...
[ "static void FUNC_0(Object *VAR_0)\n{", "ARMCPU *cpu = ARM_CPU(VAR_0);", "set_feature(&cpu->env, ARM_FEATURE_V7);", "set_feature(&cpu->env, ARM_FEATURE_VFP4);", "set_feature(&cpu->env, ARM_FEATURE_VFP_FP16);", "set_feature(&cpu->env, ARM_FEATURE_NEON);", "set_feature(&cpu->env, ARM_FEATURE_THUMB2EE);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ...
25,867
void OPPROTO op_check_reservation_64 (void) { if ((uint64_t)env->reserve == (uint64_t)(T0 & ~0x00000003)) env->reserve = -1; RETURN(); }
true
qemu
6f2d8978728c48ca46f5c01835438508aace5c64
void OPPROTO op_check_reservation_64 (void) { if ((uint64_t)env->reserve == (uint64_t)(T0 & ~0x00000003)) env->reserve = -1; RETURN(); }
{ "code": [ " env->reserve = -1;" ], "line_no": [ 7 ] }
void VAR_0 op_check_reservation_64 (void) { if ((uint64_t)env->reserve == (uint64_t)(T0 & ~0x00000003)) env->reserve = -1; RETURN(); }
[ "void VAR_0 op_check_reservation_64 (void)\n{", "if ((uint64_t)env->reserve == (uint64_t)(T0 & ~0x00000003))\nenv->reserve = -1;", "RETURN();", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
25,870
static int vp8_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { VP8Context *s = avctx->priv_data; int ret, mb_x, mb_y, i, y, referenced; enum AVDiscard skip_thresh; AVFrame *av_uninit(curframe), *prev_frame; release_queued_segmap...
true
FFmpeg
fb90785e98ac405198c0ca9fec133227f6d82826
static int vp8_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { VP8Context *s = avctx->priv_data; int ret, mb_x, mb_y, i, y, referenced; enum AVDiscard skip_thresh; AVFrame *av_uninit(curframe), *prev_frame; release_queued_segmap...
{ "code": [ " return ret;", " return ret;", " if (!s->keyframe && (!s->framep[VP56_FRAME_PREVIOUS] ||", " !s->framep[VP56_FRAME_GOLDEN] ||", " !s->framep[VP56_FRAME_GOLDEN2])) {", " av_log(avctx, AV_LOG_WARNING, \"Discardi...
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { VP8Context *s = VAR_0->priv_data; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; enum AVDiscard VAR_10; AVFrame *av_uninit(curframe), *prev_frame; release_queued_segmaps(s, 0); ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "VP8Context *s = VAR_0->priv_data;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "enum AVDiscard VAR_10;", "AVFrame *av_uninit(curframe), *prev_frame;", "release_queued_segmaps(s, 0);", "if ((VAR_4 = decode_fr...
[ 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 31, 33 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [ 59, 61, 63,...
25,871
static void serial_update_parameters(SerialState *s) { int speed, parity, data_bits, stop_bits, frame_size; QEMUSerialSetParams ssp; if (s->divider == 0) return; /* Start bit. */ frame_size = 1; if (s->lcr & 0x08) { /* Parity bit. */ frame_size++; i...
true
qemu
3592fe0c919cf27a81d8e9f9b4f269553418bb01
static void serial_update_parameters(SerialState *s) { int speed, parity, data_bits, stop_bits, frame_size; QEMUSerialSetParams ssp; if (s->divider == 0) return; frame_size = 1; if (s->lcr & 0x08) { frame_size++; if (s->lcr & 0x10) pa...
{ "code": [ " if (s->divider == 0)" ], "line_no": [ 11 ] }
static void FUNC_0(SerialState *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5; QEMUSerialSetParams ssp; if (VAR_0->divider == 0) return; VAR_5 = 1; if (VAR_0->lcr & 0x08) { VAR_5++; if (VAR_0->lcr & 0x10) VAR_2 = 'E'; else ...
[ "static void FUNC_0(SerialState *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "QEMUSerialSetParams ssp;", "if (VAR_0->divider == 0)\nreturn;", "VAR_5 = 1;", "if (VAR_0->lcr & 0x08) {", "VAR_5++;", "if (VAR_0->lcr & 0x10)\nVAR_2 = 'E';", "else\nVAR_2 = 'O';", "} else {", "VAR_2 = 'N';", ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 55 ], ...
25,873
static void vp7_luma_dc_wht_c(int16_t block[4][4][16], int16_t dc[16]) { int i, a1, b1, c1, d1; int16_t tmp[16]; for (i = 0; i < 4; i++) { a1 = (dc[i * 4 + 0] + dc[i * 4 + 2]) * 23170; b1 = (dc[i * 4 + 0] - dc[i * 4 + 2]) * 23170; c1 = dc[i * 4 + 1] * 12540 - dc[i * 4 + 3] *...
true
FFmpeg
ccce2248bf56692fc7bd436ca2c9acca772d486a
static void vp7_luma_dc_wht_c(int16_t block[4][4][16], int16_t dc[16]) { int i, a1, b1, c1, d1; int16_t tmp[16]; for (i = 0; i < 4; i++) { a1 = (dc[i * 4 + 0] + dc[i * 4 + 2]) * 23170; b1 = (dc[i * 4 + 0] - dc[i * 4 + 2]) * 23170; c1 = dc[i * 4 + 1] * 12540 - dc[i * 4 + 3] *...
{ "code": [ " int i, a1, b1, c1, d1;", " tmp[i * 4 + 0] = (a1 + d1) >> 14;", " tmp[i * 4 + 3] = (a1 - d1) >> 14;", " tmp[i * 4 + 1] = (b1 + c1) >> 14;", " tmp[i * 4 + 2] = (b1 - c1) >> 14;", " block[0][i][0] = (a1 + d1 + 0x20000) >> 18;", " bloc...
static void FUNC_0(int16_t VAR_0[4][4][16], int16_t VAR_1[16]) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; int16_t tmp[16]; for (VAR_2 = 0; VAR_2 < 4; VAR_2++) { VAR_3 = (VAR_1[VAR_2 * 4 + 0] + VAR_1[VAR_2 * 4 + 2]) * 23170; VAR_4 = (VAR_1[VAR_2 * 4 + 0] - VAR_1[VAR_2 * 4 + 2]) * 23170;...
[ "static void FUNC_0(int16_t VAR_0[4][4][16], int16_t VAR_1[16])\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "int16_t tmp[16];", "for (VAR_2 = 0; VAR_2 < 4; VAR_2++) {", "VAR_3 = (VAR_1[VAR_2 * 4 + 0] + VAR_1[VAR_2 * 4 + 2]) * 23170;", "VAR_4 = (VAR_1[VAR_2 * 4 + 0] - VAR_1[VAR_2 * 4 + 2]) * 23170;", ...
[ 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
25,874
static void generate_noise(G723_1_Context *p) { int i, j, idx, t; int off[SUBFRAMES]; int signs[SUBFRAMES / 2 * 11], pos[SUBFRAMES / 2 * 11]; int tmp[SUBFRAME_LEN * 2]; int16_t *vector_ptr; int64_t sum; int b0, c, delta, x, shift; p->pitch_lag[0] = cng_rand(&p->cng_random_seed...
true
FFmpeg
d3088e0fd8749788818cb5df92abaa3b12e409e1
static void generate_noise(G723_1_Context *p) { int i, j, idx, t; int off[SUBFRAMES]; int signs[SUBFRAMES / 2 * 11], pos[SUBFRAMES / 2 * 11]; int tmp[SUBFRAME_LEN * 2]; int16_t *vector_ptr; int64_t sum; int b0, c, delta, x, shift; p->pitch_lag[0] = cng_rand(&p->cng_random_seed...
{ "code": [ " signs[i * 11 + j] = (t & 1) * 2 - 1 << 14;", " t = vector_ptr[j] << -shift;", " x <<= shift;" ], "line_no": [ 49, 137, 213 ] }
static void FUNC_0(G723_1_Context *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4; int VAR_5[SUBFRAMES]; int VAR_6[SUBFRAMES / 2 * 11], pos[SUBFRAMES / 2 * 11]; int VAR_7[SUBFRAME_LEN * 2]; int16_t *vector_ptr; int64_t sum; int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; VAR_0->pitch_lag[0...
[ "static void FUNC_0(G723_1_Context *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4;", "int VAR_5[SUBFRAMES];", "int VAR_6[SUBFRAMES / 2 * 11], pos[SUBFRAMES / 2 * 11];", "int VAR_7[SUBFRAME_LEN * 2];", "int16_t *vector_ptr;", "int64_t sum;", "int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "VAR_0->pitch_la...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
25,875
struct GuestFileRead *qmp_guest_file_read(int64_t handle, bool has_count, int64_t count, Error **errp) { GuestFileHandle *gfh = guest_file_handle_find(handle, errp); GuestFileRead *read_data = NULL; guchar *buf; FILE *fh; size_t read_count; if ...
true
qemu
f3a06403b82c7f036564e4caf18b52ce6885fcfb
struct GuestFileRead *qmp_guest_file_read(int64_t handle, bool has_count, int64_t count, Error **errp) { GuestFileHandle *gfh = guest_file_handle_find(handle, errp); GuestFileRead *read_data = NULL; guchar *buf; FILE *fh; size_t read_count; if ...
{ "code": [ " read_data = g_malloc0(sizeof(GuestFileRead));", " read_data = g_malloc0(sizeof(GuestFileRead));" ], "line_no": [ 59, 59 ] }
struct GuestFileRead *FUNC_0(int64_t VAR_0, bool VAR_1, int64_t VAR_2, Error **VAR_3) { GuestFileHandle *gfh = guest_file_handle_find(VAR_0, VAR_3); GuestFileRead *VAR_4 = NULL; guchar *buf; FILE *fh; size_t read_count; if (!gfh) { ret...
[ "struct GuestFileRead *FUNC_0(int64_t VAR_0, bool VAR_1,\nint64_t VAR_2, Error **VAR_3)\n{", "GuestFileHandle *gfh = guest_file_handle_find(VAR_0, VAR_3);", "GuestFileRead *VAR_4 = NULL;", "guchar *buf;", "FILE *fh;", "size_t read_count;", "if (!gfh) {", "return NULL;", "}", "if (!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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
25,876
static int virtio_blk_handle_rw_error(VirtIOBlockReq *req, int error, int is_read) { BlockInterfaceErrorAction action = drive_get_on_error(req->dev->bs, is_read); VirtIOBlock *s = req->dev; if (action == BLOCK_ERR_IGNORE) { bdrv_mon_event(req->dev->bs, BDRV_ACTION_IGNORE, is_rea...
true
qemu
908bb9497bcb5543930cc345326afff939a6ffa4
static int virtio_blk_handle_rw_error(VirtIOBlockReq *req, int error, int is_read) { BlockInterfaceErrorAction action = drive_get_on_error(req->dev->bs, is_read); VirtIOBlock *s = req->dev; if (action == BLOCK_ERR_IGNORE) { bdrv_mon_event(req->dev->bs, BDRV_ACTION_IGNORE, is_rea...
{ "code": [ " bdrv_mon_event(req->dev->bs, BDRV_ACTION_IGNORE, is_read);", " bdrv_mon_event(req->dev->bs, BDRV_ACTION_STOP, is_read);", " bdrv_mon_event(req->dev->bs, BDRV_ACTION_REPORT, is_read);" ], "line_no": [ 17, 33, 41 ] }
static int FUNC_0(VirtIOBlockReq *VAR_0, int VAR_1, int VAR_2) { BlockInterfaceErrorAction action = drive_get_on_error(VAR_0->dev->bs, VAR_2); VirtIOBlock *s = VAR_0->dev; if (action == BLOCK_ERR_IGNORE) { bdrv_mon_event(VAR_0->dev->bs, BDRV_ACTION_IGNORE, VAR_2); retur...
[ "static int FUNC_0(VirtIOBlockReq *VAR_0, int VAR_1,\nint VAR_2)\n{", "BlockInterfaceErrorAction action =\ndrive_get_on_error(VAR_0->dev->bs, VAR_2);", "VirtIOBlock *s = VAR_0->dev;", "if (action == BLOCK_ERR_IGNORE) {", "bdrv_mon_event(VAR_0->dev->bs, BDRV_ACTION_IGNORE, VAR_2);", "return 0;", "}", "...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
25,877
int av_read_pause(AVFormatContext *s) { if (s->iformat->read_pause) return s->iformat->read_pause(s); if (s->pb && s->pb->read_pause) return av_url_read_fpause(s->pb, 1); return AVERROR(ENOSYS); }
false
FFmpeg
fd2982a0a01942091b2f08e17486ff4562f675a6
int av_read_pause(AVFormatContext *s) { if (s->iformat->read_pause) return s->iformat->read_pause(s); if (s->pb && s->pb->read_pause) return av_url_read_fpause(s->pb, 1); return AVERROR(ENOSYS); }
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0) { if (VAR_0->iformat->read_pause) return VAR_0->iformat->read_pause(VAR_0); if (VAR_0->pb && VAR_0->pb->read_pause) return av_url_read_fpause(VAR_0->pb, 1); return AVERROR(ENOSYS); }
[ "int FUNC_0(AVFormatContext *VAR_0)\n{", "if (VAR_0->iformat->read_pause)\nreturn VAR_0->iformat->read_pause(VAR_0);", "if (VAR_0->pb && VAR_0->pb->read_pause)\nreturn av_url_read_fpause(VAR_0->pb, 1);", "return AVERROR(ENOSYS);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ] ]
25,878
static BlockAIOCB *iscsi_aio_ioctl(BlockDriverState *bs, unsigned long int req, void *buf, BlockCompletionFunc *cb, void *opaque) { IscsiLun *iscsilun = bs->opaque; struct iscsi_context *iscsi = iscsilun->iscsi; struct iscsi_data data; IscsiAIOCB *acb; acb = qemu_aio_get(&iscsi_aiocb...
true
qemu
a6b3167fa0e825aebb5a7cd8b437b6d41584a196
static BlockAIOCB *iscsi_aio_ioctl(BlockDriverState *bs, unsigned long int req, void *buf, BlockCompletionFunc *cb, void *opaque) { IscsiLun *iscsilun = bs->opaque; struct iscsi_context *iscsi = iscsilun->iscsi; struct iscsi_data data; IscsiAIOCB *acb; acb = qemu_aio_get(&iscsi_aiocb...
{ "code": [], "line_no": [] }
static BlockAIOCB *FUNC_0(BlockDriverState *bs, unsigned long int req, void *buf, BlockCompletionFunc *cb, void *opaque) { IscsiLun *iscsilun = bs->opaque; struct iscsi_context *VAR_0 = iscsilun->VAR_0; struct iscsi_data VAR_1; IscsiAIOCB *acb; acb = qemu_aio_get(&iscsi_aiocb_info, b...
[ "static BlockAIOCB *FUNC_0(BlockDriverState *bs,\nunsigned long int req, void *buf,\nBlockCompletionFunc *cb, void *opaque)\n{", "IscsiLun *iscsilun = bs->opaque;", "struct iscsi_context *VAR_0 = iscsilun->VAR_0;", "struct iscsi_data VAR_1;", "IscsiAIOCB *acb;", "acb = qemu_aio_get(&iscsi_aiocb_info, bs, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ ...
25,879
static void *thread_function(void *data) { GMainLoop *loop; loop = g_main_loop_new(NULL, FALSE); g_main_loop_run(loop); return NULL; }
true
qemu
9732baf67850dac57dfc7dc8980bf408889a8973
static void *thread_function(void *data) { GMainLoop *loop; loop = g_main_loop_new(NULL, FALSE); g_main_loop_run(loop); return NULL; }
{ "code": [ " GMainLoop *loop;", " loop = g_main_loop_new(NULL, FALSE);" ], "line_no": [ 5, 7 ] }
static void *FUNC_0(void *VAR_0) { GMainLoop *loop; loop = g_main_loop_new(NULL, FALSE); g_main_loop_run(loop); return NULL; }
[ "static void *FUNC_0(void *VAR_0)\n{", "GMainLoop *loop;", "loop = g_main_loop_new(NULL, FALSE);", "g_main_loop_run(loop);", "return NULL;", "}" ]
[ 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
25,880
static DisplaySurface* sdl_create_displaysurface(int width, int height) { DisplaySurface *surface = (DisplaySurface*) g_malloc0(sizeof(DisplaySurface)); if (surface == NULL) { fprintf(stderr, "sdl_create_displaysurface: malloc failed\n"); exit(1); } surface->width = width; ...
true
qemu
63ea491d4efc1e02cda3d335db3a46c81adf14ee
static DisplaySurface* sdl_create_displaysurface(int width, int height) { DisplaySurface *surface = (DisplaySurface*) g_malloc0(sizeof(DisplaySurface)); if (surface == NULL) { fprintf(stderr, "sdl_create_displaysurface: malloc failed\n"); exit(1); } surface->width = width; ...
{ "code": [ " if (surface == NULL) {", " fprintf(stderr, \"sdl_create_displaysurface: malloc failed\\n\");", " exit(1);" ], "line_no": [ 7, 9, 11 ] }
static DisplaySurface* FUNC_0(int width, int height) { DisplaySurface *surface = (DisplaySurface*) g_malloc0(sizeof(DisplaySurface)); if (surface == NULL) { fprintf(stderr, "FUNC_0: malloc failed\n"); exit(1); } surface->width = width; surface->height = height; if (s...
[ "static DisplaySurface* FUNC_0(int width, int height)\n{", "DisplaySurface *surface = (DisplaySurface*) g_malloc0(sizeof(DisplaySurface));", "if (surface == NULL) {", "fprintf(stderr, \"FUNC_0: malloc failed\\n\");", "exit(1);", "}", "surface->width = width;", "surface->height = height;", "if (scali...
[ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
25,881
static int _get_transform_coeffs(uint8_t *exps, uint8_t *bap, float chcoeff, float *samples, int start, int end, int dith_flag, GetBitContext *gb, dither_state *state) { int16_t mantissa; int i; int gcode; mant_group l3_grp, l5_grp, l11_grp; for (i = 0; i < 3; i++) ...
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static int _get_transform_coeffs(uint8_t *exps, uint8_t *bap, float chcoeff, float *samples, int start, int end, int dith_flag, GetBitContext *gb, dither_state *state) { int16_t mantissa; int i; int gcode; mant_group l3_grp, l5_grp, l11_grp; for (i = 0; i < 3; i++) ...
{ "code": [], "line_no": [] }
static int FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, float VAR_2, float *VAR_3, int VAR_4, int VAR_5, int VAR_6, GetBitContext *VAR_7, dither_state *VAR_8) { int16_t mantissa; int VAR_9; int VAR_10; mant_group l3_grp, l5_grp, l11_grp; for (VAR_9 = 0; VAR_9 < 3; VAR_9++) ...
[ "static int FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, float VAR_2,\nfloat *VAR_3, int VAR_4, int VAR_5, int VAR_6, GetBitContext *VAR_7,\ndither_state *VAR_8)\n{", "int16_t mantissa;", "int VAR_9;", "int VAR_10;", "mant_group l3_grp, l5_grp, l11_grp;", "for (VAR_9 = 0; VAR_9 < 3; VAR_9++)", "l3_grp.gcodes[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41, 43, 45 ], [ 47, 49 ], [ 51 ], [ 53 ...
25,882
static void DEF(avg, pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) { MOVQ_BFE(mm6); __asm__ volatile( "lea (%3, %3), %%"REG_a" \n\t" "movq (%1), %%mm0 \n\t" ".p2align 3 \n\t" "1: ...
false
FFmpeg
0493e42eb2f9fbf42d0aee0b48a84f81f19fb7fa
static void DEF(avg, pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) { MOVQ_BFE(mm6); __asm__ volatile( "lea (%3, %3), %%"REG_a" \n\t" "movq (%1), %%mm0 \n\t" ".p2align 3 \n\t" "1: ...
{ "code": [], "line_no": [] }
static void FUNC_0(avg, pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) { MOVQ_BFE(mm6); __asm__ volatile( "lea (%3, %3), %%"REG_a" \n\t" "movq (%1), %%mm0 \n\t" ".p2align 3 \n\t" "1: ...
[ "static void FUNC_0(avg, pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n{", "MOVQ_BFE(mm6);", "__asm__ volatile(\n\"lea (%3, %3), %%\"REG_a\" \\n\\t\"\n\"movq (%1), %%mm0 \\n\\t\"\n\".p2align 3 \\n\\t\"\n\"1: \...
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 65, 67, 69, 71, 73 ], [ 75 ] ]