id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
2,688
static int decode_rle(AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc, int step) { int i, j; int offset = avctx->width * step; uint8_t *outdata = p->data[0]; for (i = 0; i < avctx->height; i++) { int size, left, code, pix; uint8_t *out = outdata; ...
true
FFmpeg
1eda55510ae5d15ce3df9f496002508580899045
static int decode_rle(AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc, int step) { int i, j; int offset = avctx->width * step; uint8_t *outdata = p->data[0]; for (i = 0; i < avctx->height; i++) { int size, left, code, pix; uint8_t *out = outdata; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, GetByteContext *VAR_2, int VAR_3) { int VAR_4, VAR_5; int VAR_6 = VAR_0->width * VAR_3; uint8_t *outdata = VAR_1->data[0]; for (VAR_4 = 0; VAR_4 < VAR_0->height; VAR_4++) { int size, left, code, pix; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, GetByteContext *VAR_2,\nint VAR_3)\n{", "int VAR_4, VAR_5;", "int VAR_6 = VAR_0->width * VAR_3;", "uint8_t *outdata = VAR_1->data[0];", "for (VAR_4 = 0; VAR_4 < VAR_0->height; VAR_4++) {", "int size, left, code, pix;", "uint8_t *out = outdata;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29, 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ], [ 50 ], [ 52 ], [ 54 ...
2,689
uint64_t helper_msub64_q_ssov(CPUTriCoreState *env, uint64_t r1, uint32_t r2, uint32_t r3, uint32_t n) { int64_t t1 = (int64_t)r1; int64_t t2 = sextract64(r2, 0, 32); int64_t t3 = sextract64(r3, 0, 32); int64_t result, mul; int64_t ovf; mul = (t2 * t3) << ...
true
qemu
9029710b9ead9c11649ec142d18581412d8f3e68
uint64_t helper_msub64_q_ssov(CPUTriCoreState *env, uint64_t r1, uint32_t r2, uint32_t r3, uint32_t n) { int64_t t1 = (int64_t)r1; int64_t t2 = sextract64(r2, 0, 32); int64_t t3 = sextract64(r3, 0, 32); int64_t result, mul; int64_t ovf; mul = (t2 * t3) << ...
{ "code": [], "line_no": [] }
uint64_t FUNC_0(CPUTriCoreState *env, uint64_t r1, uint32_t r2, uint32_t r3, uint32_t n) { int64_t t1 = (int64_t)r1; int64_t t2 = sextract64(r2, 0, 32); int64_t t3 = sextract64(r3, 0, 32); int64_t result, mul; int64_t ovf; mul = (t2 * t3) << n; result...
[ "uint64_t FUNC_0(CPUTriCoreState *env, uint64_t r1, uint32_t r2,\nuint32_t r3, uint32_t n)\n{", "int64_t t1 = (int64_t)r1;", "int64_t t2 = sextract64(r2, 0, 32);", "int64_t t3 = sextract64(r3, 0, 32);", "int64_t result, mul;", "int64_t ovf;", "mul = (t2 * t3) << n;", "result = t1 - mul;", "env->PSW_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 56 ], [ 58 ], [...
2,690
static void mtree_print_mr(fprintf_function mon_printf, void *f, const MemoryRegion *mr, unsigned int level, hwaddr base, MemoryRegionListHead *alias_print_queue) { MemoryRegionList *new_ml, *ml, *next_ml; MemoryRegionListHea...
true
qemu
b31f84126215e3fd4b8acbc3083ae30d407329e8
static void mtree_print_mr(fprintf_function mon_printf, void *f, const MemoryRegion *mr, unsigned int level, hwaddr base, MemoryRegionListHead *alias_print_queue) { MemoryRegionList *new_ml, *ml, *next_ml; MemoryRegionListHea...
{ "code": [ " base + mr->addr,", " base + mr->addr + MR_SIZE(mr->size),", " base + mr->addr,", " base + mr->addr + MR_SIZE(mr->size),", " mtree_print_mr(mon_printf, f, ml->mr, level + 1, base + mr->addr," ], "line_n...
static void FUNC_0(fprintf_function VAR_0, void *VAR_1, const MemoryRegion *VAR_2, unsigned int VAR_3, hwaddr VAR_4, MemoryRegionListHead *VAR_5) { MemoryRegionList *new_ml, *ml, *next_ml; MemoryRegionListHead submr_print_que...
[ "static void FUNC_0(fprintf_function VAR_0, void *VAR_1,\nconst MemoryRegion *VAR_2, unsigned int VAR_3,\nhwaddr VAR_4,\nMemoryRegionListHead *VAR_5)\n{", "MemoryRegionList *new_ml, *ml, *next_ml;", "MemoryRegionListHead submr_print_queue;", "const MemoryRegion *VAR_6;", "unsigned int VAR_7;", "if (!VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
2,691
static uint64_t bonito_cop_readl(void *opaque, hwaddr addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)]; return val;
true
qemu
58d479786b11a7e982419c1e0905b8490ef9a787
static uint64_t bonito_cop_readl(void *opaque, hwaddr addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)]; return val;
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)]; return val;
[ "static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{", "uint32_t val;", "PCIBonitoState *s = opaque;", "val = ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)];", "return val;" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ] ]
2,692
static int vmdk_snapshot_create(const char *filename, const char *backing_file) { int snp_fd, p_fd; int ret; uint32_t p_cid; char *p_name, *gd_buf, *rgd_buf; const char *real_filename, *temp_str; VMDK4Header header; uint32_t gde_entries, gd_size; int64_t gd_offset, rgd_offset, c...
true
qemu
a161329b61106ab093aab6d3227ac85e0b8251a9
static int vmdk_snapshot_create(const char *filename, const char *backing_file) { int snp_fd, p_fd; int ret; uint32_t p_cid; char *p_name, *gd_buf, *rgd_buf; const char *real_filename, *temp_str; VMDK4Header header; uint32_t gde_entries, gd_size; int64_t gd_offset, rgd_offset, c...
{ "code": [ " qemu_free(rgd_buf);" ], "line_no": [ 263 ] }
static int FUNC_0(const char *VAR_0, const char *VAR_1) { int VAR_2, VAR_3; int VAR_4; uint32_t p_cid; char *VAR_5, *VAR_6, *VAR_7; const char *VAR_8, *VAR_9; VMDK4Header header; uint32_t gde_entries, gd_size; int64_t gd_offset, rgd_offset, capacity, gt_size; char VAR_10[DE...
[ "static int FUNC_0(const char *VAR_0, const char *VAR_1)\n{", "int VAR_2, VAR_3;", "int VAR_4;", "uint32_t p_cid;", "char *VAR_5, *VAR_6, *VAR_7;", "const char *VAR_8, *VAR_9;", "VMDK4Header header;", "uint32_t gde_entries, gd_size;", "int64_t gd_offset, rgd_offset, capacity, gt_size;", "char VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49 ], [ 53 ], [ 55, 57 ...
2,693
static void piix3_ide_xen_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = pci_piix_ide_initfn; k->vendor_id = PCI_VENDOR_ID_INTEL; k->device_id = PCI_DEVICE_ID_INTEL_82371SB_1; k->class_id = PCI_C...
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void piix3_ide_xen_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = pci_piix_ide_initfn; k->vendor_id = PCI_VENDOR_ID_INTEL; k->device_id = PCI_DEVICE_ID_INTEL_82371SB_1; k->class_id = PCI_C...
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0); k->init = pci_piix_ide_initfn; k->vendor_id = PCI_VENDOR_ID_INTEL; k->device_id = PCI_DEVICE_ID_INTEL_82371SB_1; k->class_id = PCI_CLASS_STORAGE_IDE;...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);", "k->init = pci_piix_ide_initfn;", "k->vendor_id = PCI_VENDOR_ID_INTEL;", "k->device_id = PCI_DEVICE_ID_INTEL_82371SB_1;", "k->class_id = PCI_CLASS_STORAGE_I...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
2,694
static int sami_paragraph_to_ass(AVCodecContext *avctx, const char *src) { SAMIContext *sami = avctx->priv_data; int ret = 0; char *tag = NULL; char *dupsrc = av_strdup(src); char *p = dupsrc; AVBPrint *dst_content = &sami->encoded_content; AVBPrint *dst_source = &sami->encoded_source; a...
true
FFmpeg
61bbc537ab2305392bd170a6f404ed6402bee4a8
static int sami_paragraph_to_ass(AVCodecContext *avctx, const char *src) { SAMIContext *sami = avctx->priv_data; int ret = 0; char *tag = NULL; char *dupsrc = av_strdup(src); char *p = dupsrc; AVBPrint *dst_content = &sami->encoded_content; AVBPrint *dst_source = &sami->encoded_source; a...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const char *VAR_1) { SAMIContext *sami = VAR_0->priv_data; int VAR_2 = 0; char *VAR_3 = NULL; char *VAR_4 = av_strdup(VAR_1); char *VAR_5 = VAR_4; AVBPrint *dst_content = &sami->encoded_content; AVBPrint *dst_source = &sami->encoded_source; av_bpr...
[ "static int FUNC_0(AVCodecContext *VAR_0, const char *VAR_1)\n{", "SAMIContext *sami = VAR_0->priv_data;", "int VAR_2 = 0;", "char *VAR_3 = NULL;", "char *VAR_4 = av_strdup(VAR_1);", "char *VAR_5 = VAR_4;", "AVBPrint *dst_content = &sami->encoded_content;", "AVBPrint *dst_source = &sami->encoded_sourc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 18 ], [ 19, 20 ], [ 21 ], [ 22 ], [ ...
2,695
static void reset_codec(WmallDecodeCtx *s) { int ich, ilms; s->mclms_recent = s->mclms_order * s->num_channels; for (ich = 0; ich < s->num_channels; ich++) { for (ilms = 0; ilms < s->cdlms_ttl[ich]; ilms++) s->cdlms[ich][ilms].recent = s->cdlms[ich][ilms].order; /* first s...
true
FFmpeg
be8a0d26dbeec72b8e254e00724f170c28644c98
static void reset_codec(WmallDecodeCtx *s) { int ich, ilms; s->mclms_recent = s->mclms_order * s->num_channels; for (ich = 0; ich < s->num_channels; ich++) { for (ilms = 0; ilms < s->cdlms_ttl[ich]; ilms++) s->cdlms[ich][ilms].recent = s->cdlms[ich][ilms].order; ...
{ "code": [ " s->cdlms[ich][ilms].recent = s->cdlms[ich][ilms].order;" ], "line_no": [ 13 ] }
static void FUNC_0(WmallDecodeCtx *VAR_0) { int VAR_1, VAR_2; VAR_0->mclms_recent = VAR_0->mclms_order * VAR_0->num_channels; for (VAR_1 = 0; VAR_1 < VAR_0->num_channels; VAR_1++) { for (VAR_2 = 0; VAR_2 < VAR_0->cdlms_ttl[VAR_1]; VAR_2++) VAR_0->cdlms[VAR_1][VAR_2].recent = VAR_0-...
[ "static void FUNC_0(WmallDecodeCtx *VAR_0)\n{", "int VAR_1, VAR_2;", "VAR_0->mclms_recent = VAR_0->mclms_order * VAR_0->num_channels;", "for (VAR_1 = 0; VAR_1 < VAR_0->num_channels; VAR_1++) {", "for (VAR_2 = 0; VAR_2 < VAR_0->cdlms_ttl[VAR_1]; VAR_2++)", "VAR_0->cdlms[VAR_1][VAR_2].recent = VAR_0->cdlms[...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
2,696
static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream, int flv_codecid, int read) { AVCodecContext *vcodec = vstream->codec; switch(flv_codecid) { case FLV_CODECID_H263 : vcodec->codec_id = AV_CODEC_ID_FLV1 ; break; case FLV_CODECID_SCREEN: vcodec->codec_id = AV_CODEC_ID_FL...
true
FFmpeg
c5a738ca4e9789b4678b10240777d931e7dc24c9
static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream, int flv_codecid, int read) { AVCodecContext *vcodec = vstream->codec; switch(flv_codecid) { case FLV_CODECID_H263 : vcodec->codec_id = AV_CODEC_ID_FLV1 ; break; case FLV_CODECID_SCREEN: vcodec->codec_id = AV_CODEC_ID_FL...
{ "code": [ " vcodec->extradata_size = 1;", " vcodec->extradata[0] = avio_r8(s->pb);" ], "line_no": [ 25, 31 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2, int VAR_3) { AVCodecContext *vcodec = VAR_1->codec; switch(VAR_2) { case FLV_CODECID_H263 : vcodec->codec_id = AV_CODEC_ID_FLV1 ; break; case FLV_CODECID_SCREEN: vcodec->codec_id = AV_CODEC_ID_FLASHSV; break; c...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2, int VAR_3) {", "AVCodecContext *vcodec = VAR_1->codec;", "switch(VAR_2) {", "case FLV_CODECID_H263 : vcodec->codec_id = AV_CODEC_ID_FLV1 ; break;", "case FLV_CODECID_SCREEN: vcodec->codec_id = AV_CODEC_ID_FLASHSV; break;", "case FLV...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43,...
2,697
float64 float64_scalbn( float64 a, int n STATUS_PARAM ) { flag aSign; int16 aExp; uint64_t aSig; a = float64_squash_input_denormal(a STATUS_VAR); aSig = extractFloat64Frac( a ); aExp = extractFloat64Exp( a ); aSign = extractFloat64Sign( a ); if ( aExp == 0x7FF ) { r...
true
qemu
326b9e98a391d542cc33c4c91782ff4ba51edfc5
float64 float64_scalbn( float64 a, int n STATUS_PARAM ) { flag aSign; int16 aExp; uint64_t aSig; a = float64_squash_input_denormal(a STATUS_VAR); aSig = extractFloat64Frac( a ); aExp = extractFloat64Exp( a ); aSign = extractFloat64Sign( a ); if ( aExp == 0x7FF ) { r...
{ "code": [ " int16 aExp;", " int16 aExp;", " int16 aExp;", " if ( aExp == 0x7FF ) {" ], "line_no": [ 7, 7, 7, 23 ] }
float64 FUNC_0( float64 a, int n STATUS_PARAM ) { flag aSign; int16 aExp; uint64_t aSig; a = float64_squash_input_denormal(a STATUS_VAR); aSig = extractFloat64Frac( a ); aExp = extractFloat64Exp( a ); aSign = extractFloat64Sign( a ); if ( aExp == 0x7FF ) { return a;...
[ "float64 FUNC_0( float64 a, int n STATUS_PARAM )\n{", "flag aSign;", "int16 aExp;", "uint64_t aSig;", "a = float64_squash_input_denormal(a STATUS_VAR);", "aSig = extractFloat64Frac( a );", "aExp = extractFloat64Exp( a );", "aSign = extractFloat64Sign( a );", "if ( aExp == 0x7FF ) {", "return a;", ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
2,698
static int postcopy_start(MigrationState *ms, bool *old_vm_running) { int ret; QIOChannelBuffer *bioc; QEMUFile *fb; int64_t time_at_stop = qemu_clock_get_ms(QEMU_CLOCK_REALTIME); bool restart_block = false; int cur_state = MIGRATION_STATUS_ACTIVE; if (!migrate_pause_before_switchove...
true
qemu
7287cbd46e2d6fb582ca78c3cb49b1e53d91a761
static int postcopy_start(MigrationState *ms, bool *old_vm_running) { int ret; QIOChannelBuffer *bioc; QEMUFile *fb; int64_t time_at_stop = qemu_clock_get_ms(QEMU_CLOCK_REALTIME); bool restart_block = false; int cur_state = MIGRATION_STATUS_ACTIVE; if (!migrate_pause_before_switchove...
{ "code": [ "static int postcopy_start(MigrationState *ms, bool *old_vm_running)", " *old_vm_running = runstate_is_running();" ], "line_no": [ 1, 37 ] }
static int FUNC_0(MigrationState *VAR_0, bool *VAR_1) { int VAR_2; QIOChannelBuffer *bioc; QEMUFile *fb; int64_t time_at_stop = qemu_clock_get_ms(QEMU_CLOCK_REALTIME); bool restart_block = false; int VAR_3 = MIGRATION_STATUS_ACTIVE; if (!migrate_pause_before_switchover()) { ...
[ "static int FUNC_0(MigrationState *VAR_0, bool *VAR_1)\n{", "int VAR_2;", "QIOChannelBuffer *bioc;", "QEMUFile *fb;", "int64_t time_at_stop = qemu_clock_get_ms(QEMU_CLOCK_REALTIME);", "bool restart_block = false;", "int VAR_3 = MIGRATION_STATUS_ACTIVE;", "if (!migrate_pause_before_switchover()) {", ...
[ 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, 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 ], [...
2,699
static BusState *qbus_find(const char *path) { DeviceState *dev; BusState *bus; char elem[128]; int pos, len; /* find start element */ if (path[0] == '/') { bus = sysbus_get_default(); pos = 0; } else { if (sscanf(path, "%127[^/]%n", elem, &len) != 1) { ...
true
qemu
ed238ba2a0239368dd0cec9bfaf3300a5bd303ce
static BusState *qbus_find(const char *path) { DeviceState *dev; BusState *bus; char elem[128]; int pos, len; if (path[0] == '/') { bus = sysbus_get_default(); pos = 0; } else { if (sscanf(path, "%127[^/]%n", elem, &len) != 1) { assert(!path...
{ "code": [ " } else if (qbus_is_full(bus)) {", " qerror_report(ERROR_CLASS_GENERIC_ERROR, \"Bus '%s' is full\",", " elem);", " return NULL;", " return bus;", " switch (dev->num_child_bus) {", " case 0:"...
static BusState *FUNC_0(const char *path) { DeviceState *dev; BusState *bus; char VAR_0[128]; int VAR_1, VAR_2; if (path[0] == '/') { bus = sysbus_get_default(); VAR_1 = 0; } else { if (sscanf(path, "%127[^/]%n", VAR_0, &VAR_2) != 1) { asser...
[ "static BusState *FUNC_0(const char *path)\n{", "DeviceState *dev;", "BusState *bus;", "char VAR_0[128];", "int VAR_1, VAR_2;", "if (path[0] == '/') {", "bus = sysbus_get_default();", "VAR_1 = 0;", "} else {", "if (sscanf(path, \"%127[^/]%n\", VAR_0, &VAR_2) != 1) {", "assert(!path[0]);", "VAR...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [...
2,700
void bdrv_init(void) { bdrv_register(&bdrv_raw); bdrv_register(&bdrv_host_device); bdrv_register(&bdrv_cow); bdrv_register(&bdrv_qcow); bdrv_register(&bdrv_vmdk); bdrv_register(&bdrv_cloop); bdrv_register(&bdrv_dmg); bdrv_register(&bdrv_bochs); bdrv_register(&bdrv_vpc); ...
true
qemu
cd01b4a312248dd4e12c3d389d1a349cea4015d8
void bdrv_init(void) { bdrv_register(&bdrv_raw); bdrv_register(&bdrv_host_device); bdrv_register(&bdrv_cow); bdrv_register(&bdrv_qcow); bdrv_register(&bdrv_vmdk); bdrv_register(&bdrv_cloop); bdrv_register(&bdrv_dmg); bdrv_register(&bdrv_bochs); bdrv_register(&bdrv_vpc); ...
{ "code": [], "line_no": [] }
void FUNC_0(void) { bdrv_register(&bdrv_raw); bdrv_register(&bdrv_host_device); bdrv_register(&bdrv_cow); bdrv_register(&bdrv_qcow); bdrv_register(&bdrv_vmdk); bdrv_register(&bdrv_cloop); bdrv_register(&bdrv_dmg); bdrv_register(&bdrv_bochs); bdrv_register(&bdrv_vpc); ...
[ "void FUNC_0(void)\n{", "bdrv_register(&bdrv_raw);", "bdrv_register(&bdrv_host_device);", "bdrv_register(&bdrv_cow);", "bdrv_register(&bdrv_qcow);", "bdrv_register(&bdrv_vmdk);", "bdrv_register(&bdrv_cloop);", "bdrv_register(&bdrv_dmg);", "bdrv_register(&bdrv_bochs);", "bdrv_register(&bdrv_vpc);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 10 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 32 ], [ 35 ] ]
2,701
void ff_h264_direct_dist_scale_factor(H264Context * const h){ const int poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD]; const int poc1 = h->ref_list[1][0].poc; int i, field; if (FRAME_MBAFF(h)) for (field = 0; field < 2; field++){ const int poc = ...
true
FFmpeg
ebd1c505d22ad96e044880755ed9f4cf7cab4f78
void ff_h264_direct_dist_scale_factor(H264Context * const h){ const int poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD]; const int poc1 = h->ref_list[1][0].poc; int i, field; if (FRAME_MBAFF(h)) for (field = 0; field < 2; field++){ const int poc = ...
{ "code": [ " const int poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD];" ], "line_no": [ 3 ] }
void FUNC_0(H264Context * const VAR_0){ const int VAR_5 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_structure == PICT_BOTTOM_FIELD]; const int VAR_5 = VAR_0->ref_list[1][0].VAR_5; int VAR_3, VAR_4; if (FRAME_MBAFF(VAR_0)) for (VAR_4 = 0; VAR_4 < 2; VAR_4++){ const int VAR_...
[ "void FUNC_0(H264Context * const VAR_0){", "const int VAR_5 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_structure == PICT_BOTTOM_FIELD];", "const int VAR_5 = VAR_0->ref_list[1][0].VAR_5;", "int VAR_3, VAR_4;", "if (FRAME_MBAFF(VAR_0))\nfor (VAR_4 = 0; VAR_4 < 2; VAR_4++){", "const int VAR_5 = VAR_0->c...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
2,702
static void virtio_net_handle_tx_bh(VirtIODevice *vdev, VirtQueue *vq) { VirtIONet *n = to_virtio_net(vdev); if (unlikely(n->tx_waiting)) { return; } virtio_queue_set_notification(vq, 0); qemu_bh_schedule(n->tx_bh); n->tx_waiting = 1; }
true
qemu
783e7706937fe15523b609b545587a028a2bdd03
static void virtio_net_handle_tx_bh(VirtIODevice *vdev, VirtQueue *vq) { VirtIONet *n = to_virtio_net(vdev); if (unlikely(n->tx_waiting)) { return; } virtio_queue_set_notification(vq, 0); qemu_bh_schedule(n->tx_bh); n->tx_waiting = 1; }
{ "code": [ " VirtIONet *n = to_virtio_net(vdev);", " n->tx_waiting = 1;" ], "line_no": [ 5, 19 ] }
static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1) { VirtIONet *n = to_virtio_net(VAR_0); if (unlikely(n->tx_waiting)) { return; } virtio_queue_set_notification(VAR_1, 0); qemu_bh_schedule(n->tx_bh); n->tx_waiting = 1; }
[ "static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{", "VirtIONet *n = to_virtio_net(VAR_0);", "if (unlikely(n->tx_waiting)) {", "return;", "}", "virtio_queue_set_notification(VAR_1, 0);", "qemu_bh_schedule(n->tx_bh);", "n->tx_waiting = 1;", "}" ]
[ 0, 1, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
2,703
static int net_dump_init(NetClientState *peer, const char *device, const char *name, const char *filename, int len) { struct pcap_file_hdr hdr; NetClientState *nc; DumpState *s; struct tm tm; int fd; fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, ...
true
qemu
3791f83ca999edc2d11eb2006ccc1091cd712c15
static int net_dump_init(NetClientState *peer, const char *device, const char *name, const char *filename, int len) { struct pcap_file_hdr hdr; NetClientState *nc; DumpState *s; struct tm tm; int fd; fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, ...
{ "code": [ " const char *name, const char *filename, int len)", " error_report(\"-net dump: can't open %s\", filename);", " error_report(\"-net dump write error: %s\", strerror(errno));" ], "line_no": [ 3, 23, 49 ] }
static int FUNC_0(NetClientState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4) { struct pcap_file_hdr VAR_5; NetClientState *nc; DumpState *s; struct VAR_6 VAR_6; int VAR_7; VAR_7 = open(VAR_3, O_CREAT | O_TRUNC | O_WRONLY | O_BINA...
[ "static int FUNC_0(NetClientState *VAR_0, const char *VAR_1,\nconst char *VAR_2, const char *VAR_3, int VAR_4)\n{", "struct pcap_file_hdr VAR_5;", "NetClientState *nc;", "DumpState *s;", "struct VAR_6 VAR_6;", "int VAR_7;", "VAR_7 = open(VAR_3, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0644);", "if (VA...
[ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
2,705
AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int perms, enum AVSampleFormat sample_fmt, int size, int64_t channel_layout, int planar) { AVFilterBuffer *samples = av_mallocz(sizeo...
true
FFmpeg
ecea47a6ed9e9250474e1ef26120ff5dc9e71e8e
AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int perms, enum AVSampleFormat sample_fmt, int size, int64_t channel_layout, int planar) { AVFilterBuffer *samples = av_mallocz(sizeo...
{ "code": [ " av_free(buf);" ], "line_no": [ 143 ] }
AVFilterBufferRef *FUNC_0(AVFilterLink *link, int perms, enum AVSampleFormat sample_fmt, int size, int64_t channel_layout, int planar) { AVFilterBuffer *samples = av_mallocz(sizeof(AVFilterBuffer)); AV...
[ "AVFilterBufferRef *FUNC_0(AVFilterLink *link, int perms,\nenum AVSampleFormat sample_fmt, int size,\nint64_t channel_layout, int planar)\n{", "AVFilterBuffer *samples = av_mallocz(sizeof(AVFilterBuffer));", "AVFilterBufferRef *ref = NULL;", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5 = 0;", "char *VAR_6;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ...
2,706
static void test_keyval_visit_any(void) { Visitor *v; QDict *qdict; QObject *any; QList *qlist; QString *qstr; qdict = keyval_parse("a.0=null,a.1=1", NULL, &error_abort); v = qobject_input_visitor_new_keyval(QOBJECT(qdict)); QDECREF(qdict); visit_start_struct(v, NULL, NUL...
true
qemu
cb69166bb8defaaa4b3e0a4e31de693737634a54
static void test_keyval_visit_any(void) { Visitor *v; QDict *qdict; QObject *any; QList *qlist; QString *qstr; qdict = keyval_parse("a.0=null,a.1=1", NULL, &error_abort); v = qobject_input_visitor_new_keyval(QOBJECT(qdict)); QDECREF(qdict); visit_start_struct(v, NULL, NUL...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { Visitor *v; QDict *qdict; QObject *any; QList *qlist; QString *qstr; qdict = keyval_parse("a.0=null,a.1=1", NULL, &error_abort); v = qobject_input_visitor_new_keyval(QOBJECT(qdict)); QDECREF(qdict); visit_start_struct(v, NULL, NULL, 0, &error_ab...
[ "static void FUNC_0(void)\n{", "Visitor *v;", "QDict *qdict;", "QObject *any;", "QList *qlist;", "QString *qstr;", "qdict = keyval_parse(\"a.0=null,a.1=1\", NULL, &error_abort);", "v = qobject_input_visitor_new_keyval(QOBJECT(qdict));", "QDECREF(qdict);", "visit_start_struct(v, NULL, NULL, 0, &err...
[ 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 ], [ 36 ], [ 38 ], [ 40 ], [ 44 ], [ 46 ...
2,707
static int vc1_decode_i_block_adv(VC1Context *v, int16_t block[64], int n, int coded, int codingset, int mquant) { GetBitContext *gb = &v->s.gb; MpegEncContext *s = &v->s; int dc_pred_dir = 0; /* Direction of the DC prediction used */ int i; int16_t *dc_val; ...
true
FFmpeg
63c61f0be03624fbd9e352d8393122beb3ddcc1a
static int vc1_decode_i_block_adv(VC1Context *v, int16_t block[64], int n, int coded, int codingset, int mquant) { GetBitContext *gb = &v->s.gb; MpegEncContext *s = &v->s; int dc_pred_dir = 0; int i; int16_t *dc_val; int16_t *ac_val, *ac_val2; int ...
{ "code": [ " int16_t *dc_val;", " int16_t *dc_val;" ], "line_no": [ 15, 15 ] }
static int FUNC_0(VC1Context *VAR_0, int16_t VAR_1[64], int VAR_2, int VAR_3, int VAR_4, int VAR_5) { GetBitContext *gb = &VAR_0->s.gb; MpegEncContext *s = &VAR_0->s; int VAR_6 = 0; int VAR_7; int16_t *dc_val; int16_t *ac_val, *ac_val2; int VAR_8; ...
[ "static int FUNC_0(VC1Context *VAR_0, int16_t VAR_1[64], int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{", "GetBitContext *gb = &VAR_0->s.gb;", "MpegEncContext *s = &VAR_0->s;", "int VAR_6 = 0;", "int VAR_7;", "int16_t *dc_val;", "int16_t *ac_val, *ac_val2;", "int VAR_8;", "int VAR_9 = VAR_0->VAR_9,...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
2,708
static int crc_write_packet(struct AVFormatContext *s, int stream_index, const uint8_t *buf, int size, int64_t pts) { CRCState *crc = s->priv_data; crc->crcval = adler32(crc->crcval, buf, size); return 0; }
false
FFmpeg
ee9f36a88eb3e2706ea659acb0ca80c414fa5d8a
static int crc_write_packet(struct AVFormatContext *s, int stream_index, const uint8_t *buf, int size, int64_t pts) { CRCState *crc = s->priv_data; crc->crcval = adler32(crc->crcval, buf, size); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(struct AVFormatContext *VAR_0, int VAR_1, const uint8_t *VAR_2, int VAR_3, int64_t VAR_4) { CRCState *crc = VAR_0->priv_data; crc->crcval = adler32(crc->crcval, VAR_2, VAR_3); return 0; }
[ "static int FUNC_0(struct AVFormatContext *VAR_0,\nint VAR_1,\nconst uint8_t *VAR_2, int VAR_3, int64_t VAR_4)\n{", "CRCState *crc = VAR_0->priv_data;", "crc->crcval = adler32(crc->crcval, VAR_2, VAR_3);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
2,709
void kvm_arch_update_guest_debug(CPUState *cpu, struct kvm_guest_debug *dbg) { }
true
qemu
8a0548f94edecb96acb9b7fb9106ccc821c4996f
void kvm_arch_update_guest_debug(CPUState *cpu, struct kvm_guest_debug *dbg) { }
{ "code": [ "void kvm_arch_update_guest_debug(CPUState *cpu, struct kvm_guest_debug *dbg)" ], "line_no": [ 1 ] }
void FUNC_0(CPUState *VAR_0, struct kvm_guest_debug *VAR_1) { }
[ "void FUNC_0(CPUState *VAR_0, struct kvm_guest_debug *VAR_1)\n{", "}" ]
[ 1, 0 ]
[ [ 1, 3 ], [ 5 ] ]
2,710
static void do_subtitle_out(AVFormatContext *s, OutputStream *ost, InputStream *ist, AVSubtitle *sub) { int subtitle_out_max_size = 1024 * 1024; int subtitle_out_size, nb, i; AVCodecContext *enc; AVPacket pkt; int64_...
true
FFmpeg
36393434782b013ebacc8c30dd3c93531e2b197d
static void do_subtitle_out(AVFormatContext *s, OutputStream *ost, InputStream *ist, AVSubtitle *sub) { int subtitle_out_max_size = 1024 * 1024; int subtitle_out_size, nb, i; AVCodecContext *enc; AVPacket pkt; int64_...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, OutputStream *VAR_1, InputStream *VAR_2, AVSubtitle *VAR_3) { int VAR_4 = 1024 * 1024; int VAR_5, VAR_6, VAR_7; AVCodecContext *enc; AVPacket pkt; int64_t pts; if (VAR_3...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nOutputStream *VAR_1,\nInputStream *VAR_2,\nAVSubtitle *VAR_3)\n{", "int VAR_4 = 1024 * 1024;", "int VAR_5, VAR_6, VAR_7;", "AVCodecContext *enc;", "AVPacket pkt;", "int64_t pts;", "if (VAR_3->pts == AV_NOPTS_VALUE) {", "av_log(NULL, AV_LOG_ERROR, \"Subtitle...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 24, 25 ], [ 26, 27 ],...
2,711
static uint32_t uhci_ioport_readw(void *opaque, uint32_t addr) { UHCIState *s = opaque; uint32_t val; addr &= 0x1f; switch(addr) { case 0x00: val = s->cmd; break; case 0x02: val = s->status; break; case 0x04: val = s->intr; brea...
false
qemu
54f254f973a1b2ed0f3571390f4de060adfe23e8
static uint32_t uhci_ioport_readw(void *opaque, uint32_t addr) { UHCIState *s = opaque; uint32_t val; addr &= 0x1f; switch(addr) { case 0x00: val = s->cmd; break; case 0x02: val = s->status; break; case 0x04: val = s->intr; brea...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, uint32_t addr) { UHCIState *s = opaque; uint32_t val; addr &= 0x1f; switch(addr) { case 0x00: val = s->cmd; break; case 0x02: val = s->status; break; case 0x04: val = s->intr; break; cas...
[ "static uint32_t FUNC_0(void *opaque, uint32_t addr)\n{", "UHCIState *s = opaque;", "uint32_t val;", "addr &= 0x1f;", "switch(addr) {", "case 0x00:\nval = s->cmd;", "break;", "case 0x02:\nval = s->status;", "break;", "case 0x04:\nval = s->intr;", "break;", "case 0x06:\nval = s->frnum;", "bre...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], ...
2,712
cac_delete_pki_applet_private(VCardAppletPrivate *applet_private) { CACPKIAppletData *pki_applet_data = NULL; if (applet_private == NULL) { return; } pki_applet_data = &(applet_private->u.pki_data); if (pki_applet_data->cert != NULL) { g_free(pki_applet_data->cert); } ...
false
qemu
1687a089f103f9b7a1b4a1555068054cb46ee9e9
cac_delete_pki_applet_private(VCardAppletPrivate *applet_private) { CACPKIAppletData *pki_applet_data = NULL; if (applet_private == NULL) { return; } pki_applet_data = &(applet_private->u.pki_data); if (pki_applet_data->cert != NULL) { g_free(pki_applet_data->cert); } ...
{ "code": [], "line_no": [] }
FUNC_0(VCardAppletPrivate *VAR_0) { CACPKIAppletData *pki_applet_data = NULL; if (VAR_0 == NULL) { return; } pki_applet_data = &(VAR_0->u.pki_data); if (pki_applet_data->cert != NULL) { g_free(pki_applet_data->cert); } if (pki_applet_data->sign_buffer != NULL) { ...
[ "FUNC_0(VCardAppletPrivate *VAR_0)\n{", "CACPKIAppletData *pki_applet_data = NULL;", "if (VAR_0 == NULL) {", "return;", "}", "pki_applet_data = &(VAR_0->u.pki_data);", "if (pki_applet_data->cert != NULL) {", "g_free(pki_applet_data->cert);", "}", "if (pki_applet_data->sign_buffer != NULL) {", "g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
2,714
static void cpu_handle_debug_exception(CPUState *env) { CPUWatchpoint *wp; if (!env->watchpoint_hit) TAILQ_FOREACH(wp, &env->watchpoints, entry) wp->flags &= ~BP_WATCHPOINT_HIT; if (debug_excp_handler) debug_excp_handler(env); }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static void cpu_handle_debug_exception(CPUState *env) { CPUWatchpoint *wp; if (!env->watchpoint_hit) TAILQ_FOREACH(wp, &env->watchpoints, entry) wp->flags &= ~BP_WATCHPOINT_HIT; if (debug_excp_handler) debug_excp_handler(env); }
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0) { CPUWatchpoint *wp; if (!VAR_0->watchpoint_hit) TAILQ_FOREACH(wp, &VAR_0->watchpoints, entry) wp->flags &= ~BP_WATCHPOINT_HIT; if (debug_excp_handler) debug_excp_handler(VAR_0); }
[ "static void FUNC_0(CPUState *VAR_0)\n{", "CPUWatchpoint *wp;", "if (!VAR_0->watchpoint_hit)\nTAILQ_FOREACH(wp, &VAR_0->watchpoints, entry)\nwp->flags &= ~BP_WATCHPOINT_HIT;", "if (debug_excp_handler)\ndebug_excp_handler(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 17, 19 ], [ 21 ] ]
2,715
static int do_co_pwrite_zeroes(BlockBackend *blk, int64_t offset, int64_t count, int flags, int64_t *total) { Coroutine *co; CoWriteZeroes data = { .blk = blk, .offset = offset, .count = count, .total = total, .flags = flags, ...
false
qemu
a367467995d0528fe591d87ca2e437c7b7d7951b
static int do_co_pwrite_zeroes(BlockBackend *blk, int64_t offset, int64_t count, int flags, int64_t *total) { Coroutine *co; CoWriteZeroes data = { .blk = blk, .offset = offset, .count = count, .total = total, .flags = flags, ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockBackend *VAR_0, int64_t VAR_1, int64_t VAR_2, int VAR_3, int64_t *VAR_4) { Coroutine *co; CoWriteZeroes data = { .VAR_0 = VAR_0, .VAR_1 = VAR_1, .VAR_2 = VAR_2, .VAR_4 = VAR_4, .VAR_3 = VAR_3, ....
[ "static int FUNC_0(BlockBackend *VAR_0, int64_t VAR_1,\nint64_t VAR_2, int VAR_3, int64_t *VAR_4)\n{", "Coroutine *co;", "CoWriteZeroes data = {", ".VAR_0 = VAR_0,\n.VAR_1 = VAR_1,\n.VAR_2 = VAR_2,\n.VAR_4 = VAR_4,\n.VAR_3 = VAR_3,\n.done = false,\n};", "if (VAR_2 >> BDRV_SECTOR_BITS > INT_MAX) {", ...
[ 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 ], [ 49 ], [ 51 ], [...
2,716
static inline void cow_set_bits(uint8_t *bitmap, int start, int64_t nb_sectors) { int64_t bitnum = start, last = start + nb_sectors; while (bitnum < last) { if ((bitnum & 7) == 0 && bitnum + 8 <= last) { bitmap[bitnum / 8] = 0xFF; bitnum += 8; continue; ...
false
qemu
550830f9351291c585c963204ad9127998b1c1ce
static inline void cow_set_bits(uint8_t *bitmap, int start, int64_t nb_sectors) { int64_t bitnum = start, last = start + nb_sectors; while (bitnum < last) { if ((bitnum & 7) == 0 && bitnum + 8 <= last) { bitmap[bitnum / 8] = 0xFF; bitnum += 8; continue; ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int64_t VAR_2) { int64_t bitnum = VAR_1, last = VAR_1 + VAR_2; while (bitnum < last) { if ((bitnum & 7) == 0 && bitnum + 8 <= last) { VAR_0[bitnum / 8] = 0xFF; bitnum += 8; continue; } VAR_0...
[ "static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int64_t VAR_2)\n{", "int64_t bitnum = VAR_1, last = VAR_1 + VAR_2;", "while (bitnum < last) {", "if ((bitnum & 7) == 0 && bitnum + 8 <= last) {", "VAR_0[bitnum / 8] = 0xFF;", "bitnum += 8;", "continue;", "}", "VAR_0[bitnum/8] |= (1 << (bitnum % 8...
[ 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 ] ]
2,717
int bdrv_open2(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret, open_flags; char tmp_filename[PATH_MAX]; char backing_filename[PATH_MAX]; bs->is_temporary = 0; bs->encrypted = 0; bs->valid_key = 0; /* buffer_alignment defaulted to ...
false
qemu
6987307ca30aead67e8545934186c92f942710f6
int bdrv_open2(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret, open_flags; char tmp_filename[PATH_MAX]; char backing_filename[PATH_MAX]; bs->is_temporary = 0; bs->encrypted = 0; bs->valid_key = 0; bs->buffer_alignment = 512;...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2, BlockDriver *VAR_3) { int VAR_4, VAR_5; char VAR_6[PATH_MAX]; char VAR_7[PATH_MAX]; VAR_0->is_temporary = 0; VAR_0->encrypted = 0; VAR_0->valid_key = 0; VAR_0->buffer_alignment = 512; if ...
[ "int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2,\nBlockDriver *VAR_3)\n{", "int VAR_4, VAR_5;", "char VAR_6[PATH_MAX];", "char VAR_7[PATH_MAX];", "VAR_0->is_temporary = 0;", "VAR_0->encrypted = 0;", "VAR_0->valid_key = 0;", "VAR_0->buffer_alignment = 512;", "if (VAR_2 & BDRV_O_SNAP...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
2,718
milkymist_init(QEMUMachineInitArgs *args) { const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; const char *kernel_cmdline = args->kernel_cmdline; const char *initrd_filename = args->initrd_filename; LM32CPU *cpu; CPULM32State *env; int kerne...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
milkymist_init(QEMUMachineInitArgs *args) { const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; const char *kernel_cmdline = args->kernel_cmdline; const char *initrd_filename = args->initrd_filename; LM32CPU *cpu; CPULM32State *env; int kerne...
{ "code": [], "line_no": [] }
FUNC_0(QEMUMachineInitArgs *VAR_0) { const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; LM32CPU *cpu; CPULM32State *env; int VAR_5; DriveInfo *dinfo; MemoryRegion *address_space_mem = get_s...
[ "FUNC_0(QEMUMachineInitArgs *VAR_0)\n{", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "LM32CPU *cpu;", "CPULM32State *env;", "int VAR_5;", "DriveInfo *dinfo;", "MemoryRegion *address_space_mem = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
2,719
static int aac_decode_frame_int(AVCodecContext *avctx, void *data, int *got_frame_ptr, GetBitContext *gb, AVPacket *avpkt) { AACContext *ac = avctx->priv_data; ChannelElement *che = NULL, *che_prev = NULL; enum RawDataBlockType elem_type, elem_type_prev = TYPE_END; ...
false
FFmpeg
21f68528e39db68fd3e22fef8f4783d19034dc1d
static int aac_decode_frame_int(AVCodecContext *avctx, void *data, int *got_frame_ptr, GetBitContext *gb, AVPacket *avpkt) { AACContext *ac = avctx->priv_data; ChannelElement *che = NULL, *che_prev = NULL; enum RawDataBlockType elem_type, elem_type_prev = TYPE_END; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, GetBitContext *VAR_3, AVPacket *VAR_4) { AACContext *ac = VAR_0->priv_data; ChannelElement *che = NULL, *che_prev = NULL; enum RawDataBlockType VAR_5, VAR_6 = TYPE_END; int VAR_7, VAR_8; int VAR_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, GetBitContext *VAR_3, AVPacket *VAR_4)\n{", "AACContext *ac = VAR_0->priv_data;", "ChannelElement *che = NULL, *che_prev = NULL;", "enum RawDataBlockType VAR_5, VAR_6 = TYPE_END;", "int VAR_7, VAR_8;", "int VAR_9 = 0, VAR_10, 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, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
2,720
void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, const char *boot_device, BusState *idebus0, BusState *idebus1, FDCtrl *floppy_controller, ISADevice *s) { int val, nb; FDriveType fd0, fd1; static pc_cmos_init_late_arg arg; ...
false
qemu
63ffb564dca94f8bda01ed6d209784104630a4d2
void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, const char *boot_device, BusState *idebus0, BusState *idebus1, FDCtrl *floppy_controller, ISADevice *s) { int val, nb; FDriveType fd0, fd1; static pc_cmos_init_late_arg arg; ...
{ "code": [], "line_no": [] }
void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1, const char *VAR_2, BusState *VAR_3, BusState *VAR_4, FDCtrl *VAR_5, ISADevice *VAR_6) { int VAR_7, VAR_8; FDriveType fd0, fd1; static pc_cmos_init_late_arg VAR_9; VAR_7 = 640; ...
[ "void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1,\nconst char *VAR_2,\nBusState *VAR_3, BusState *VAR_4,\nFDCtrl *VAR_5, ISADevice *VAR_6)\n{", "int VAR_7, VAR_8;", "FDriveType fd0, fd1;", "static pc_cmos_init_late_arg VAR_9;", "VAR_7 = 640;", "rtc_set_memory(VAR_6, 0x15, VAR_7);", "rtc_set_memory(VAR_6,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
2,721
START_TEST(unterminated_dict_comma) { QObject *obj = qobject_from_json("{'abc':32,"); fail_unless(obj == NULL); }
false
qemu
ef76dc59fa5203d146a2acf85a0ad5a5971a4824
START_TEST(unterminated_dict_comma) { QObject *obj = qobject_from_json("{'abc':32,"); fail_unless(obj == NULL); }
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { QObject *obj = qobject_from_json("{'abc':32,"); fail_unless(obj == NULL); }
[ "FUNC_0(VAR_0)\n{", "QObject *obj = qobject_from_json(\"{'abc':32,\");", "fail_unless(obj == NULL);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
2,722
void qemu_iovec_concat(QEMUIOVector *dst, QEMUIOVector *src, size_t soffset, size_t sbytes) { int i; size_t done; struct iovec *siov = src->iov; assert(dst->nalloc != -1); assert(src->size >= soffset); for (i = 0, done = 0; done < sbytes && i < src->niov; i++) { ...
false
qemu
530c0bbd73e1b658c9266582072847de1fbdff10
void qemu_iovec_concat(QEMUIOVector *dst, QEMUIOVector *src, size_t soffset, size_t sbytes) { int i; size_t done; struct iovec *siov = src->iov; assert(dst->nalloc != -1); assert(src->size >= soffset); for (i = 0, done = 0; done < sbytes && i < src->niov; i++) { ...
{ "code": [], "line_no": [] }
void FUNC_0(QEMUIOVector *VAR_0, QEMUIOVector *VAR_1, size_t VAR_2, size_t VAR_3) { int VAR_4; size_t done; struct iovec *VAR_5 = VAR_1->iov; assert(VAR_0->nalloc != -1); assert(VAR_1->size >= VAR_2); for (VAR_4 = 0, done = 0; done < VAR_3 && VAR_4 < VAR_1->niov; V...
[ "void FUNC_0(QEMUIOVector *VAR_0,\nQEMUIOVector *VAR_1, size_t VAR_2, size_t VAR_3)\n{", "int VAR_4;", "size_t done;", "struct iovec *VAR_5 = VAR_1->iov;", "assert(VAR_0->nalloc != -1);", "assert(VAR_1->size >= VAR_2);", "for (VAR_4 = 0, done = 0; done < VAR_3 && VAR_4 < VAR_1->niov; VAR_4++) {", "if ...
[ 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 ], [ 39 ] ]
2,723
void net_host_device_add(Monitor *mon, const char *device, const char *opts) { if (!net_host_check_device(device)) { monitor_printf(mon, "invalid host network device %s\n", device); return; } if (net_client_init(device, opts ? : "") < 0) { monitor_printf(mon, "adding host netw...
false
qemu
206ab6e090eeddce71372041454d50d93a63017d
void net_host_device_add(Monitor *mon, const char *device, const char *opts) { if (!net_host_check_device(device)) { monitor_printf(mon, "invalid host network device %s\n", device); return; } if (net_client_init(device, opts ? : "") < 0) { monitor_printf(mon, "adding host netw...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const char *VAR_1, const char *VAR_2) { if (!net_host_check_device(VAR_1)) { monitor_printf(VAR_0, "invalid host network VAR_1 %s\n", VAR_1); return; } if (net_client_init(VAR_1, VAR_2 ? : "") < 0) { monitor_printf(VAR_0, "adding host network VAR_1 ...
[ "void FUNC_0(Monitor *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "if (!net_host_check_device(VAR_1)) {", "monitor_printf(VAR_0, \"invalid host network VAR_1 %s\\n\", VAR_1);", "return;", "}", "if (net_client_init(VAR_1, VAR_2 ? : \"\") < 0) {", "monitor_printf(VAR_0, \"adding host network VAR_1 %...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
2,724
static void musicpal_register_devices(void) { sysbus_register_dev("mv88w8618_pic", sizeof(mv88w8618_pic_state), mv88w8618_pic_init); sysbus_register_dev("mv88w8618_pit", sizeof(mv88w8618_pit_state), mv88w8618_pit_init); sysbus_register_dev("mv88w8618_fla...
false
qemu
c88d6bded69804617f412a60c7375cc93f8687a5
static void musicpal_register_devices(void) { sysbus_register_dev("mv88w8618_pic", sizeof(mv88w8618_pic_state), mv88w8618_pic_init); sysbus_register_dev("mv88w8618_pit", sizeof(mv88w8618_pit_state), mv88w8618_pit_init); sysbus_register_dev("mv88w8618_fla...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { sysbus_register_dev("mv88w8618_pic", sizeof(mv88w8618_pic_state), mv88w8618_pic_init); sysbus_register_dev("mv88w8618_pit", sizeof(mv88w8618_pit_state), mv88w8618_pit_init); sysbus_register_dev("mv88w8618_flashcfg", sizeof(mv88...
[ "static void FUNC_0(void)\n{", "sysbus_register_dev(\"mv88w8618_pic\", sizeof(mv88w8618_pic_state),\nmv88w8618_pic_init);", "sysbus_register_dev(\"mv88w8618_pit\", sizeof(mv88w8618_pit_state),\nmv88w8618_pit_init);", "sysbus_register_dev(\"mv88w8618_flashcfg\", sizeof(mv88w8618_flashcfg_state),\nmv88w8618_fla...
[ 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 ] ]
2,725
static int qcow2_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcowState *s = bs->opaque; int len, i, ret = 0; QCowHeader header; QemuOpts *opts; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; const char ...
false
qemu
76abe4071d111a9ca6dcc9b9689a831c39ffa718
static int qcow2_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcowState *s = bs->opaque; int len, i, ret = 0; QCowHeader header; QemuOpts *opts; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; const char ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVQcowState *s = VAR_0->opaque; int VAR_4, VAR_5, VAR_6 = 0; QCowHeader header; QemuOpts *opts; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; co...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_4, VAR_5, VAR_6 = 0;", "QCowHeader header;", "QemuOpts *opts;", "Error *local_err = NULL;", "uint64_t ext_end;", "uint64_t l1_vm_state_index;", "const char *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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
2,726
static void vexpress_a9_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { CPUState *env = NULL; MemoryRegion *sysmem = get_system_m...
false
qemu
aac1e02c1d4b6d02f35a199a454fd46416380ff5
static void vexpress_a9_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { CPUState *env = NULL; MemoryRegion *sysmem = get_system_m...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5) { CPUState *env = NULL; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5)\n{", "CPUState *env = NULL;", "MemoryRegion *sysmem = get_system_memory();", "MemoryRegion *ram = g_new(MemoryRegion, 1);", "MemoryRegion *lowram = g_new(MemoryRegion, 1);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
2,727
static void gpollfds_to_select(int ret) { int i; FD_ZERO(&rfds); FD_ZERO(&wfds); FD_ZERO(&xfds); if (ret <= 0) { return; } for (i = 0; i < gpollfds->len; i++) { int fd = g_array_index(gpollfds, GPollFD, i).fd; int revents = g_array_index(gpollfds, GPo...
false
qemu
9cbaacf999b01b27dc3a22502705178057af66de
static void gpollfds_to_select(int ret) { int i; FD_ZERO(&rfds); FD_ZERO(&wfds); FD_ZERO(&xfds); if (ret <= 0) { return; } for (i = 0; i < gpollfds->len; i++) { int fd = g_array_index(gpollfds, GPollFD, i).fd; int revents = g_array_index(gpollfds, GPo...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0) { int VAR_1; FD_ZERO(&rfds); FD_ZERO(&wfds); FD_ZERO(&xfds); if (VAR_0 <= 0) { return; } for (VAR_1 = 0; VAR_1 < gpollfds->len; VAR_1++) { int fd = g_array_index(gpollfds, GPollFD, VAR_1).fd; int revents = g_array_index(g...
[ "static void FUNC_0(int VAR_0)\n{", "int VAR_1;", "FD_ZERO(&rfds);", "FD_ZERO(&wfds);", "FD_ZERO(&xfds);", "if (VAR_0 <= 0) {", "return;", "}", "for (VAR_1 = 0; VAR_1 < gpollfds->len; VAR_1++) {", "int fd = g_array_index(gpollfds, GPollFD, VAR_1).fd;", "int revents = g_array_index(gpollfds, GPol...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
2,728
static void cpu_4xx_pit_cb (void *opaque) { CPUState *env; ppc_tb_t *tb_env; ppcemb_timer_t *ppcemb_timer; env = opaque; tb_env = env->tb_env; ppcemb_timer = tb_env->opaque; env->spr[SPR_40x_TSR] |= 1 << 27; if ((env->spr[SPR_40x_TCR] >> 26) & 0x1) ppc_set_irq(env, PP...
false
qemu
d63cb48db9016328a7a69f3a1c2938cd3dfc9d1a
static void cpu_4xx_pit_cb (void *opaque) { CPUState *env; ppc_tb_t *tb_env; ppcemb_timer_t *ppcemb_timer; env = opaque; tb_env = env->tb_env; ppcemb_timer = tb_env->opaque; env->spr[SPR_40x_TSR] |= 1 << 27; if ((env->spr[SPR_40x_TCR] >> 26) & 0x1) ppc_set_irq(env, PP...
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0) { CPUState *env; ppc_tb_t *tb_env; ppcemb_timer_t *ppcemb_timer; env = VAR_0; tb_env = env->tb_env; ppcemb_timer = tb_env->VAR_0; env->spr[SPR_40x_TSR] |= 1 << 27; if ((env->spr[SPR_40x_TCR] >> 26) & 0x1) ppc_set_irq(env, PPC_INTERRUPT...
[ "static void FUNC_0 (void *VAR_0)\n{", "CPUState *env;", "ppc_tb_t *tb_env;", "ppcemb_timer_t *ppcemb_timer;", "env = VAR_0;", "tb_env = env->tb_env;", "ppcemb_timer = tb_env->VAR_0;", "env->spr[SPR_40x_TSR] |= 1 << 27;", "if ((env->spr[SPR_40x_TCR] >> 26) & 0x1)\nppc_set_irq(env, PPC_INTERRUPT_PIT,...
[ 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 ] ]
2,729
CPUArchState *cpu_copy(CPUArchState *env) { CPUState *cpu = ENV_GET_CPU(env); CPUArchState *new_env = cpu_init(cpu_model); CPUState *new_cpu = ENV_GET_CPU(new_env); #if defined(TARGET_HAS_ICE) CPUBreakpoint *bp; CPUWatchpoint *wp; #endif /* Reset non arch specific state */ cpu_re...
false
qemu
ec53b45bcd1f74f7a4c31331fa6d50b402cd6d26
CPUArchState *cpu_copy(CPUArchState *env) { CPUState *cpu = ENV_GET_CPU(env); CPUArchState *new_env = cpu_init(cpu_model); CPUState *new_cpu = ENV_GET_CPU(new_env); #if defined(TARGET_HAS_ICE) CPUBreakpoint *bp; CPUWatchpoint *wp; #endif cpu_reset(new_cpu); memcpy(new_env...
{ "code": [], "line_no": [] }
CPUArchState *FUNC_0(CPUArchState *env) { CPUState *cpu = ENV_GET_CPU(env); CPUArchState *new_env = cpu_init(cpu_model); CPUState *new_cpu = ENV_GET_CPU(new_env); #if defined(TARGET_HAS_ICE) CPUBreakpoint *bp; CPUWatchpoint *wp; #endif cpu_reset(new_cpu); memcpy(new_env, ...
[ "CPUArchState *FUNC_0(CPUArchState *env)\n{", "CPUState *cpu = ENV_GET_CPU(env);", "CPUArchState *new_env = cpu_init(cpu_model);", "CPUState *new_cpu = ENV_GET_CPU(new_env);", "#if defined(TARGET_HAS_ICE)\nCPUBreakpoint *bp;", "CPUWatchpoint *wp;", "#endif\ncpu_reset(new_cpu);", "memcpy(new_env, env, ...
[ 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, 23 ], [ 27 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 59 ], [ 61 ...
2,730
static void mdct512(AC3MDCTContext *mdct, float *out, float *in) { mdct->fft.mdct_calc(&mdct->fft, out, in); }
false
FFmpeg
79997def65fd2313b48a5f3c3a884c6149ae9b5d
static void mdct512(AC3MDCTContext *mdct, float *out, float *in) { mdct->fft.mdct_calc(&mdct->fft, out, in); }
{ "code": [], "line_no": [] }
static void FUNC_0(AC3MDCTContext *VAR_0, float *VAR_1, float *VAR_2) { VAR_0->fft.mdct_calc(&VAR_0->fft, VAR_1, VAR_2); }
[ "static void FUNC_0(AC3MDCTContext *VAR_0, float *VAR_1, float *VAR_2)\n{", "VAR_0->fft.mdct_calc(&VAR_0->fft, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,731
static void av_noinline qpeg_decode_inter(QpegContext *qctx, uint8_t *dst, int stride, int width, int height, int delta, const uint8_t *ctable, uint8_t *refdata) { int i, j; int code; int filled = 0; int or...
false
FFmpeg
921706691a87c3ea5f5b92afd9b423e5f8c6e9d9
static void av_noinline qpeg_decode_inter(QpegContext *qctx, uint8_t *dst, int stride, int width, int height, int delta, const uint8_t *ctable, uint8_t *refdata) { int i, j; int code; int filled = 0; int or...
{ "code": [], "line_no": [] }
static void VAR_0 qpeg_decode_inter(QpegContext *qctx, uint8_t *dst, int stride, int width, int height, int delta, const uint8_t *ctable, uint8_t *refdata) { int i, j; int code; int filled = 0; int orig_hei...
[ "static void VAR_0 qpeg_decode_inter(QpegContext *qctx, uint8_t *dst,\nint stride, int width, int height,\nint delta, const uint8_t *ctable,\nuint8_t *refdata)\n{", "int i, j;", "int code;", "int filled = 0;", "int orig_height;", "if(!refdata)\nrefdata= dst;", "for(i = 0; i < height; i++)", "memcpy(ds...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
2,732
static void block_job_detach_aio_context(void *opaque) { BlockJob *job = opaque; /* In case the job terminates during aio_poll()... */ block_job_ref(job); block_job_pause(job); if (!job->paused) { /* If job is !job->busy this kicks it into the next pause point. */ block...
false
qemu
bae8196d9f97916de6323e70e3e374362ee16ec4
static void block_job_detach_aio_context(void *opaque) { BlockJob *job = opaque; block_job_ref(job); block_job_pause(job); if (!job->paused) { block_job_enter(job); } while (!job->paused && !job->completed) { aio_poll(block_job_get_aio_context(job),...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { BlockJob *job = VAR_0; block_job_ref(job); block_job_pause(job); if (!job->paused) { block_job_enter(job); } while (!job->paused && !job->completed) { aio_poll(block_job_get_aio_context(job), true); } bl...
[ "static void FUNC_0(void *VAR_0)\n{", "BlockJob *job = VAR_0;", "block_job_ref(job);", "block_job_pause(job);", "if (!job->paused) {", "block_job_enter(job);", "}", "while (!job->paused && !job->completed) {", "aio_poll(block_job_get_aio_context(job), true);", "}", "block_job_unref(job);", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
2,733
void numa_cpu_pre_plug(const CPUArchId *slot, DeviceState *dev, Error **errp) { int mapped_node_id; /* set by -numa option */ int node_id = object_property_get_int(OBJECT(dev), "node-id", &error_abort); /* by default CPUState::numa_node was 0 if it wasn't set explicitly * TODO: make it error whe...
false
qemu
d41f3e750d2c06c613cb1b8db7724f0fbc0a2b14
void numa_cpu_pre_plug(const CPUArchId *slot, DeviceState *dev, Error **errp) { int mapped_node_id; int node_id = object_property_get_int(OBJECT(dev), "node-id", &error_abort); mapped_node_id = slot->props.node_id; if (!slot->props.has_node_id) { mapped_node_id = 0; } ...
{ "code": [], "line_no": [] }
void FUNC_0(const CPUArchId *VAR_0, DeviceState *VAR_1, Error **VAR_2) { int VAR_3; int VAR_4 = object_property_get_int(OBJECT(VAR_1), "node-id", &error_abort); VAR_3 = VAR_0->props.VAR_4; if (!VAR_0->props.has_node_id) { VAR_3 = 0; } if (VAR_4 == CPU_UNSET_NUMA_NO...
[ "void FUNC_0(const CPUArchId *VAR_0, DeviceState *VAR_1, Error **VAR_2)\n{", "int VAR_3;", "int VAR_4 = object_property_get_int(OBJECT(VAR_1), \"node-id\", &error_abort);", "VAR_3 = VAR_0->props.VAR_4;", "if (!VAR_0->props.has_node_id) {", "VAR_3 = 0;", "}", "if (VAR_4 == CPU_UNSET_NUMA_NODE_ID) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ] ]
2,734
static void multiwrite_cb(void *opaque, int ret) { MultiwriteCB *mcb = opaque; trace_multiwrite_cb(mcb, ret); if (ret < 0 && !mcb->error) { mcb->error = ret; } mcb->num_requests--; if (mcb->num_requests == 0) { multiwrite_user_cb(mcb); g_free(mcb); } ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static void multiwrite_cb(void *opaque, int ret) { MultiwriteCB *mcb = opaque; trace_multiwrite_cb(mcb, ret); if (ret < 0 && !mcb->error) { mcb->error = ret; } mcb->num_requests--; if (mcb->num_requests == 0) { multiwrite_user_cb(mcb); g_free(mcb); } ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1) { MultiwriteCB *mcb = VAR_0; trace_multiwrite_cb(mcb, VAR_1); if (VAR_1 < 0 && !mcb->error) { mcb->error = VAR_1; } mcb->num_requests--; if (mcb->num_requests == 0) { multiwrite_user_cb(mcb); g_free(mcb); } ...
[ "static void FUNC_0(void *VAR_0, int VAR_1)\n{", "MultiwriteCB *mcb = VAR_0;", "trace_multiwrite_cb(mcb, VAR_1);", "if (VAR_1 < 0 && !mcb->error) {", "mcb->error = VAR_1;", "}", "mcb->num_requests--;", "if (mcb->num_requests == 0) {", "multiwrite_user_cb(mcb);", "g_free(mcb);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
2,735
static void qdict_setup(void) { tests_dict = qdict_new(); fail_unless(tests_dict != NULL); }
false
qemu
ac531cb6e542b1e61d668604adf9dc5306a948c0
static void qdict_setup(void) { tests_dict = qdict_new(); fail_unless(tests_dict != NULL); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { tests_dict = qdict_new(); fail_unless(tests_dict != NULL); }
[ "static void FUNC_0(void)\n{", "tests_dict = qdict_new();", "fail_unless(tests_dict != NULL);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
2,736
static int parallels_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVParallelsState *s = bs->opaque; int i; ParallelsHeader ph; int ret; ret = bdrv_pread(bs->file, 0, &ph, sizeof(ph)); if (ret < 0) { goto fail; } ...
false
qemu
369f7de9d57e4dd2f312255fc12271d5749c0a4e
static int parallels_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVParallelsState *s = bs->opaque; int i; ParallelsHeader ph; int ret; ret = bdrv_pread(bs->file, 0, &ph, sizeof(ph)); if (ret < 0) { goto fail; } ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVParallelsState *s = VAR_0->opaque; int VAR_4; ParallelsHeader ph; int VAR_5; VAR_5 = bdrv_pread(VAR_0->file, 0, &ph, sizeof(ph)); if (VAR_5 < 0) { goto fail; ...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVParallelsState *s = VAR_0->opaque;", "int VAR_4;", "ParallelsHeader ph;", "int VAR_5;", "VAR_5 = bdrv_pread(VAR_0->file, 0, &ph, sizeof(ph));", "if (VAR_5 < 0) {", "goto fail;", "}", "VAR_0->total_sector...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
2,738
void imx_timerp_create(const target_phys_addr_t addr, qemu_irq irq, DeviceState *ccm) { IMXTimerPState *pp; DeviceState *dev; dev = sysbus_create_simple("imx_timerp", addr, irq); pp = container_of(dev, IMXTimerPState, busdev.qdev); ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void imx_timerp_create(const target_phys_addr_t addr, qemu_irq irq, DeviceState *ccm) { IMXTimerPState *pp; DeviceState *dev; dev = sysbus_create_simple("imx_timerp", addr, irq); pp = container_of(dev, IMXTimerPState, busdev.qdev); ...
{ "code": [], "line_no": [] }
void FUNC_0(const target_phys_addr_t VAR_0, qemu_irq VAR_1, DeviceState *VAR_2) { IMXTimerPState *pp; DeviceState *dev; dev = sysbus_create_simple("imx_timerp", VAR_0, VAR_1); pp = container_of(dev, IMXTimerPState, busdev.qdev); p...
[ "void FUNC_0(const target_phys_addr_t VAR_0,\nqemu_irq VAR_1,\nDeviceState *VAR_2)\n{", "IMXTimerPState *pp;", "DeviceState *dev;", "dev = sysbus_create_simple(\"imx_timerp\", VAR_0, VAR_1);", "pp = container_of(dev, IMXTimerPState, busdev.qdev);", "pp->VAR_2 = VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
2,739
if_start(Slirp *slirp) { uint64_t now = qemu_get_clock_ns(rt_clock); int requeued = 0; bool from_batchq = false; struct mbuf *ifm, *ifqt; DEBUG_CALL("if_start"); if (slirp->if_queued == 0) return; /* Nothing to do */ again: /* check if we can really output */ if (!sl...
false
qemu
b87ffa163185e339f9f9f1e6dbc561e0f990442d
if_start(Slirp *slirp) { uint64_t now = qemu_get_clock_ns(rt_clock); int requeued = 0; bool from_batchq = false; struct mbuf *ifm, *ifqt; DEBUG_CALL("if_start"); if (slirp->if_queued == 0) return; again: if (!slirp_can_output(slirp->opaque)) return; ...
{ "code": [], "line_no": [] }
FUNC_0(Slirp *VAR_0) { uint64_t now = qemu_get_clock_ns(rt_clock); int VAR_1 = 0; bool from_batchq = false; struct mbuf *VAR_2, *VAR_3; DEBUG_CALL("FUNC_0"); if (VAR_0->if_queued == 0) return; again: if (!slirp_can_output(VAR_0->opaque)) return; ...
[ "FUNC_0(Slirp *VAR_0)\n{", "uint64_t now = qemu_get_clock_ns(rt_clock);", "int VAR_1 = 0;", "bool from_batchq = false;", "struct mbuf *VAR_2, *VAR_3;", "DEBUG_CALL(\"FUNC_0\");", "if (VAR_0->if_queued == 0)\nreturn;", "again:\nif (!slirp_can_output(VAR_0->opaque))\nreturn;", "if (VAR_0->if_fastq.ifq...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 25, 29, 31 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 55, 57 ], [ 61 ], [ 63 ], [ 67 ], [ 73 ], [...
2,740
e1000_cleanup(NetClientState *nc) { E1000State *s = qemu_get_nic_opaque(nc); s->nic = NULL; }
false
qemu
57407ea44cc0a3d630b9b89a2be011f1955ce5c1
e1000_cleanup(NetClientState *nc) { E1000State *s = qemu_get_nic_opaque(nc); s->nic = NULL; }
{ "code": [], "line_no": [] }
FUNC_0(NetClientState *VAR_0) { E1000State *s = qemu_get_nic_opaque(VAR_0); s->nic = NULL; }
[ "FUNC_0(NetClientState *VAR_0)\n{", "E1000State *s = qemu_get_nic_opaque(VAR_0);", "s->nic = NULL;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
2,741
void ff_vp3_h_loop_filter_mmx(uint8_t *src, int stride, int *bounding_values) { x86_reg tmp; __asm__ volatile( "movd -2(%1), %%mm6 \n\t" "movd -2(%1,%3), %%mm0 \n\t" "movd -2(%1,%3,2), %%mm1 \n\t" "movd -2(%1,%4), %%mm4 \n\t" TRANSPOSE8x4(%%mm6, %%mm0...
false
FFmpeg
daa1ea049a9445b7bed03963cb789497065dd1eb
void ff_vp3_h_loop_filter_mmx(uint8_t *src, int stride, int *bounding_values) { x86_reg tmp; __asm__ volatile( "movd -2(%1), %%mm6 \n\t" "movd -2(%1,%3), %%mm0 \n\t" "movd -2(%1,%3,2), %%mm1 \n\t" "movd -2(%1,%4), %%mm4 \n\t" TRANSPOSE8x4(%%mm6, %%mm0...
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, int VAR_1, int *VAR_2) { x86_reg tmp; __asm__ volatile( "movd -2(%1), %%mm6 \n\t" "movd -2(%1,%3), %%mm0 \n\t" "movd -2(%1,%3,2), %%mm1 \n\t" "movd -2(%1,%4), %%mm4 \n\t" TRANSPOSE8x4(%%mm6, %%mm0, %%mm1, %%mm4, -2(%2), -2(...
[ "void FUNC_0(uint8_t *VAR_0, int VAR_1, int *VAR_2)\n{", "x86_reg tmp;", "__asm__ volatile(\n\"movd -2(%1), %%mm6 \\n\\t\"\n\"movd -2(%1,%3), %%mm0 \\n\\t\"\n\"movd -2(%1,%3,2), %%mm1 \\n\\t\"\n\"movd -2(%1,%4), %%mm4 \\n\\t\"\nTRANSPOSE8x4(%%mm6, %%mm0, %%mm1, %%mm4, -2(%2), -2(%2,%3), -2(%2,%3,2), -2...
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15, 17, 21, 23, 25, 29, 31, 35, 37, 39, 41, 43 ], [ 45 ] ]
2,742
static void sdram_set_bcr (uint32_t *bcrp, uint32_t bcr, int enabled) { if (*bcrp & 0x00000001) { /* Unmap RAM */ #ifdef DEBUG_SDRAM printf("%s: unmap RAM area " TARGET_FMT_plx " " TARGET_FMT_lx "\n", __func__, sdram_base(*bcrp), sdram_size(*bcrp)); #endif cpu_register...
false
qemu
b6dcbe086c77ec683f5ff0b693593cda1d61f3a1
static void sdram_set_bcr (uint32_t *bcrp, uint32_t bcr, int enabled) { if (*bcrp & 0x00000001) { #ifdef DEBUG_SDRAM printf("%s: unmap RAM area " TARGET_FMT_plx " " TARGET_FMT_lx "\n", __func__, sdram_base(*bcrp), sdram_size(*bcrp)); #endif cpu_register_physical_memor...
{ "code": [], "line_no": [] }
static void FUNC_0 (uint32_t *VAR_0, uint32_t VAR_1, int VAR_2) { if (*VAR_0 & 0x00000001) { #ifdef DEBUG_SDRAM printf("%s: unmap RAM area " TARGET_FMT_plx " " TARGET_FMT_lx "\n", __func__, sdram_base(*VAR_0), sdram_size(*VAR_0)); #endif cpu_register_physical_memory(s...
[ "static void FUNC_0 (uint32_t *VAR_0, uint32_t VAR_1, int VAR_2)\n{", "if (*VAR_0 & 0x00000001) {", "#ifdef DEBUG_SDRAM\nprintf(\"%s: unmap RAM area \" TARGET_FMT_plx \" \" TARGET_FMT_lx \"\\n\",\n__func__, sdram_base(*VAR_0), sdram_size(*VAR_0));", "#endif\ncpu_register_physical_memory(sdram_base(*VAR_0), sd...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33, 35, 37 ], [ 39 ], [ 41 ] ]
2,743
static Suite *qfloat_suite(void) { Suite *s; TCase *qfloat_public_tcase; s = suite_create("QFloat test-suite"); qfloat_public_tcase = tcase_create("Public Interface"); suite_add_tcase(s, qfloat_public_tcase); tcase_add_test(qfloat_public_tcase, qfloat_from_double_test); tcase_add...
false
qemu
a9e1c28ddaae5a48415fec1f336b5560eb85d3e1
static Suite *qfloat_suite(void) { Suite *s; TCase *qfloat_public_tcase; s = suite_create("QFloat test-suite"); qfloat_public_tcase = tcase_create("Public Interface"); suite_add_tcase(s, qfloat_public_tcase); tcase_add_test(qfloat_public_tcase, qfloat_from_double_test); tcase_add...
{ "code": [], "line_no": [] }
static Suite *FUNC_0(void) { Suite *s; TCase *qfloat_public_tcase; s = suite_create("QFloat test-suite"); qfloat_public_tcase = tcase_create("Public Interface"); suite_add_tcase(s, qfloat_public_tcase); tcase_add_test(qfloat_public_tcase, qfloat_from_double_test); tcase_add_test(...
[ "static Suite *FUNC_0(void)\n{", "Suite *s;", "TCase *qfloat_public_tcase;", "s = suite_create(\"QFloat test-suite\");", "qfloat_public_tcase = tcase_create(\"Public Interface\");", "suite_add_tcase(s, qfloat_public_tcase);", "tcase_add_test(qfloat_public_tcase, qfloat_from_double_test);", "tcase_add_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
2,744
void qemu_unregister_clock_reset_notifier(QEMUClock *clock, Notifier *notifier) { qemu_clock_unregister_reset_notifier(clock->type, notifier); }
false
qemu
b4049b74b97f30fe944c63b5f158ec9e87bd2593
void qemu_unregister_clock_reset_notifier(QEMUClock *clock, Notifier *notifier) { qemu_clock_unregister_reset_notifier(clock->type, notifier); }
{ "code": [], "line_no": [] }
void FUNC_0(QEMUClock *VAR_0, Notifier *VAR_1) { qemu_clock_unregister_reset_notifier(VAR_0->type, VAR_1); }
[ "void FUNC_0(QEMUClock *VAR_0,\nNotifier *VAR_1)\n{", "qemu_clock_unregister_reset_notifier(VAR_0->type, VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
2,745
target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr) { uint8_t *pde_ptr, *pte_ptr; uint32_t pde, pte, paddr, page_offset, page_size; if (!(env->cr[0] & CR0_PG_MASK)) { pte = addr; page_size = 4096; } else { /* page directory entry */ pde_ptr =...
false
qemu
1ac157da77c863b62b1d2f467626a440d57cf17d
target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr) { uint8_t *pde_ptr, *pte_ptr; uint32_t pde, pte, paddr, page_offset, page_size; if (!(env->cr[0] & CR0_PG_MASK)) { pte = addr; page_size = 4096; } else { pde_ptr = phys_ram_base + ...
{ "code": [], "line_no": [] }
target_ulong FUNC_0(CPUState *env, target_ulong addr) { uint8_t *pde_ptr, *pte_ptr; uint32_t pde, pte, paddr, page_offset, page_size; if (!(env->cr[0] & CR0_PG_MASK)) { pte = addr; page_size = 4096; } else { pde_ptr = phys_ram_base + (((env->cr[3...
[ "target_ulong FUNC_0(CPUState *env, target_ulong addr)\n{", "uint8_t *pde_ptr, *pte_ptr;", "uint32_t pde, pte, paddr, page_offset, page_size;", "if (!(env->cr[0] & CR0_PG_MASK)) {", "pte = addr;", "page_size = 4096;", "} else {", "pde_ptr = phys_ram_base +\n(((env->cr[3] & ~0xfff) + ((addr >> 20) & ~3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51...
2,746
static uint64_t imx_serial_read(void *opaque, target_phys_addr_t offset, unsigned size) { IMXSerialState *s = (IMXSerialState *)opaque; uint32_t c; DPRINTF("read(offset=%x)\n", offset >> 2); switch (offset >> 2) { case 0x0: /* URXD */ c = s->readbuff...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t imx_serial_read(void *opaque, target_phys_addr_t offset, unsigned size) { IMXSerialState *s = (IMXSerialState *)opaque; uint32_t c; DPRINTF("read(offset=%x)\n", offset >> 2); switch (offset >> 2) { case 0x0: c = s->readbuff; ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size) { IMXSerialState *s = (IMXSerialState *)opaque; uint32_t c; DPRINTF("read(offset=%x)\n", offset >> 2); switch (offset >> 2) { case 0x0: c = s->readbuff; if (!(s-...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{", "IMXSerialState *s = (IMXSerialState *)opaque;", "uint32_t c;", "DPRINTF(\"read(offset=%x)\\n\", offset >> 2);", "switch (offset >> 2) {", "case 0x0:\nc = s->readbuff;", "if (!(s->uts1 & UTS1_RXEMPTY)) {", "c |= URXD...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 49, 51 ], [ 55,...
2,747
void qemu_del_net_client(NetClientState *nc) { NetClientState *ncs[MAX_QUEUE_NUM]; int queues, i; /* If the NetClientState belongs to a multiqueue backend, we will change all * other NetClientStates also. */ queues = qemu_find_net_clients_except(nc->name, ncs, ...
false
qemu
7fb439115de7354b3ac2becf24457acaf828296b
void qemu_del_net_client(NetClientState *nc) { NetClientState *ncs[MAX_QUEUE_NUM]; int queues, i; queues = qemu_find_net_clients_except(nc->name, ncs, NET_CLIENT_OPTIONS_KIND_NIC, MAX_QUEUE_NUM); asser...
{ "code": [], "line_no": [] }
void FUNC_0(NetClientState *VAR_0) { NetClientState *ncs[MAX_QUEUE_NUM]; int VAR_1, VAR_2; VAR_1 = qemu_find_net_clients_except(VAR_0->name, ncs, NET_CLIENT_OPTIONS_KIND_NIC, MAX_QUEUE_NUM); assert(VAR...
[ "void FUNC_0(NetClientState *VAR_0)\n{", "NetClientState *ncs[MAX_QUEUE_NUM];", "int VAR_1, VAR_2;", "VAR_1 = qemu_find_net_clients_except(VAR_0->name, ncs,\nNET_CLIENT_OPTIONS_KIND_NIC,\nMAX_QUEUE_NUM);", "assert(VAR_1 != 0);", "if (VAR_0->peer && VAR_0->peer->info->type == NET_CLIENT_OPTIONS_KIND_NIC) {...
[ 0, 0, 0, 0, 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 ], [ 17, 19, 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61...
2,748
static inline void omap_gp_timer_trigger(struct omap_gp_timer_s *timer) { if (timer->pt) /* TODO in overflow-and-match mode if the first event to * occurs is the match, don't toggle. */ omap_gp_timer_out(timer, !timer->out_val); else /* TODO inverted pulse on timer->out_...
false
qemu
75554a3ca10a7ad295d2a3d2e14ee6ba90f94c8b
static inline void omap_gp_timer_trigger(struct omap_gp_timer_s *timer) { if (timer->pt) omap_gp_timer_out(timer, !timer->out_val); else qemu_irq_pulse(timer->out); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(struct omap_gp_timer_s *VAR_0) { if (VAR_0->pt) omap_gp_timer_out(VAR_0, !VAR_0->out_val); else qemu_irq_pulse(VAR_0->out); }
[ "static inline void FUNC_0(struct omap_gp_timer_s *VAR_0)\n{", "if (VAR_0->pt)\nomap_gp_timer_out(VAR_0, !VAR_0->out_val);", "else\nqemu_irq_pulse(VAR_0->out);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 11 ], [ 13, 17 ], [ 19 ] ]
2,749
timer_write(void *opaque, target_phys_addr_t addr, uint64_t val64, unsigned int size) { struct etrax_timer *t = opaque; uint32_t value = val64; switch (addr) { case RW_TMR0_DIV: t->rw_tmr0_div = value; break; case RW_TMR0_CTRL: ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
timer_write(void *opaque, target_phys_addr_t addr, uint64_t val64, unsigned int size) { struct etrax_timer *t = opaque; uint32_t value = val64; switch (addr) { case RW_TMR0_DIV: t->rw_tmr0_div = value; break; case RW_TMR0_CTRL: ...
{ "code": [], "line_no": [] }
FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned int VAR_3) { struct etrax_timer *VAR_4 = VAR_0; uint32_t value = VAR_2; switch (VAR_1) { case RW_TMR0_DIV: VAR_4->rw_tmr0_div = value; break; case RW_TMR0_CTRL: ...
[ "FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{", "struct etrax_timer *VAR_4 = VAR_0;", "uint32_t value = VAR_2;", "switch (VAR_1)\n{", "case RW_TMR0_DIV:\nVAR_4->rw_tmr0_div = value;", "break;", "case RW_TMR0_CTRL:\nD(printf (\"RW_TMR0_CTRL=%x\\n\", value));", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49,...
2,750
void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) { mpeg1_encode_sequence_header(s); /* mpeg1 picture header */ put_header(s, PICTURE_START_CODE); /* temporal reference */ // RAL: s->picture_number instead of s->fake_picture_number put_bits(&s->pb, 10, (s->pictur...
false
FFmpeg
2c492e94fc9d8a5e998b25f4d0390c95f2d4674f
void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) { mpeg1_encode_sequence_header(s); put_header(s, PICTURE_START_CODE); put_bits(&s->pb, 10, (s->picture_number - s->gop_picture_number) & 0x3ff); s->fake_picture_number++; ...
{ "code": [], "line_no": [] }
void FUNC_0(MpegEncContext *VAR_0, int VAR_1) { mpeg1_encode_sequence_header(VAR_0); put_header(VAR_0, PICTURE_START_CODE); put_bits(&VAR_0->pb, 10, (VAR_0->VAR_1 - VAR_0->gop_picture_number) & 0x3ff); VAR_0->fake_picture_number++; put_b...
[ "void FUNC_0(MpegEncContext *VAR_0, int VAR_1)\n{", "mpeg1_encode_sequence_header(VAR_0);", "put_header(VAR_0, PICTURE_START_CODE);", "put_bits(&VAR_0->pb, 10, (VAR_0->VAR_1 -\nVAR_0->gop_picture_number) & 0x3ff);", "VAR_0->fake_picture_number++;", "put_bits(&VAR_0->pb, 3, VAR_0->pict_type);", "VAR_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, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [ 51 ], [ 57 ], [ 59 ], [ 61, 63 ], [ 65, 67 ], ...
2,751
static inline void gen_op_fcmpd(int fccno, TCGv_i64 r_rs1, TCGv_i64 r_rs2) { gen_helper_fcmpd(cpu_env, r_rs1, r_rs2); }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
static inline void gen_op_fcmpd(int fccno, TCGv_i64 r_rs1, TCGv_i64 r_rs2) { gen_helper_fcmpd(cpu_env, r_rs1, r_rs2); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(int VAR_0, TCGv_i64 VAR_1, TCGv_i64 VAR_2) { gen_helper_fcmpd(cpu_env, VAR_1, VAR_2); }
[ "static inline void FUNC_0(int VAR_0, TCGv_i64 VAR_1, TCGv_i64 VAR_2)\n{", "gen_helper_fcmpd(cpu_env, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,752
int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t r3, uint64_t gaddr, uint8_t ar, uintptr_t ra) { CPUS390XState *env = &cpu->env; S390PCIBusDevice *pbdev; MemoryRegion *mr; MemTxResult result; int i; uint32_t fh; uint8_t pcias; uint8_t len; ...
false
qemu
0e7c259adff7e97f829a08a5f146e7ee03b5ae47
int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t r3, uint64_t gaddr, uint8_t ar, uintptr_t ra) { CPUS390XState *env = &cpu->env; S390PCIBusDevice *pbdev; MemoryRegion *mr; MemTxResult result; int i; uint32_t fh; uint8_t pcias; uint8_t len; ...
{ "code": [], "line_no": [] }
int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint8_t VAR_2, uint64_t VAR_3, uint8_t VAR_4, uintptr_t VAR_5) { CPUS390XState *env = &VAR_0->env; S390PCIBusDevice *pbdev; MemoryRegion *mr; MemTxResult result; int VAR_6; uint32_t fh; uint8_t pcias; uint8_t len...
[ "int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint8_t VAR_2, uint64_t VAR_3,\nuint8_t VAR_4, uintptr_t VAR_5)\n{", "CPUS390XState *env = &VAR_0->env;", "S390PCIBusDevice *pbdev;", "MemoryRegion *mr;", "MemTxResult result;", "int VAR_6;", "uint32_t fh;", "uint8_t pcias;", "uint8_t len;", "uint8_t buff...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
2,754
static void *spapr_create_fdt_skel(const char *cpu_model, target_phys_addr_t rma_size, target_phys_addr_t initrd_base, target_phys_addr_t initrd_size, const char *boot_device, ...
false
qemu
a7342588c081c7497bc7810431a03fa7b669af40
static void *spapr_create_fdt_skel(const char *cpu_model, target_phys_addr_t rma_size, target_phys_addr_t initrd_base, target_phys_addr_t initrd_size, const char *boot_device, ...
{ "code": [], "line_no": [] }
static void *FUNC_0(const char *VAR_0, target_phys_addr_t VAR_1, target_phys_addr_t VAR_2, target_phys_addr_t VAR_3, const char *VAR_4, cons...
[ "static void *FUNC_0(const char *VAR_0,\ntarget_phys_addr_t VAR_1,\ntarget_phys_addr_t VAR_2,\ntarget_phys_addr_t VAR_3,\nconst char *VAR_4,\nconst char *VAR_5,\nlong VAR_6)\n{", "void *VAR_7;", "CPUState *env;", "uint64_t mem_reg_property_rma[] = { 0, cpu_to_be64(VAR_1) };", "uint64_t mem_reg_property_nonr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ...
2,755
static target_phys_addr_t get_offset(target_phys_addr_t phys_addr, DumpState *s) { RAMBlock *block; target_phys_addr_t offset = s->memory_offset; int64_t size_in_block, start; if (s->has_filter) { if (phys_addr < s->begin || phys_addr >= s->begin + s...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static target_phys_addr_t get_offset(target_phys_addr_t phys_addr, DumpState *s) { RAMBlock *block; target_phys_addr_t offset = s->memory_offset; int64_t size_in_block, start; if (s->has_filter) { if (phys_addr < s->begin || phys_addr >= s->begin + s...
{ "code": [], "line_no": [] }
static target_phys_addr_t FUNC_0(target_phys_addr_t phys_addr, DumpState *s) { RAMBlock *block; target_phys_addr_t offset = s->memory_offset; int64_t size_in_block, start; if (s->has_filter) { if (phys_addr < s->begin || phys_addr >= s->begin + s->le...
[ "static target_phys_addr_t FUNC_0(target_phys_addr_t phys_addr,\nDumpState *s)\n{", "RAMBlock *block;", "target_phys_addr_t offset = s->memory_offset;", "int64_t size_in_block, start;", "if (s->has_filter) {", "if (phys_addr < s->begin || phys_addr >= s->begin + s->length) {", "return -1;", "}", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
2,756
static MegasasCmd *megasas_enqueue_frame(MegasasState *s, target_phys_addr_t frame, uint64_t context, int count) { MegasasCmd *cmd = NULL; int frame_size = MFI_FRAME_SIZE * 16; target_phys_addr_t frame_size_p = frame_size; cmd = megasas_next_frame(s, frame); /* All frames busy */ i...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static MegasasCmd *megasas_enqueue_frame(MegasasState *s, target_phys_addr_t frame, uint64_t context, int count) { MegasasCmd *cmd = NULL; int frame_size = MFI_FRAME_SIZE * 16; target_phys_addr_t frame_size_p = frame_size; cmd = megasas_next_frame(s, frame); if (!cmd) { r...
{ "code": [], "line_no": [] }
static MegasasCmd *FUNC_0(MegasasState *s, target_phys_addr_t frame, uint64_t context, int count) { MegasasCmd *cmd = NULL; int VAR_0 = MFI_FRAME_SIZE * 16; target_phys_addr_t frame_size_p = VAR_0; cmd = megasas_next_frame(s, frame); if (!cmd) { return NULL; } i...
[ "static MegasasCmd *FUNC_0(MegasasState *s,\ntarget_phys_addr_t frame, uint64_t context, int count)\n{", "MegasasCmd *cmd = NULL;", "int VAR_0 = MFI_FRAME_SIZE * 16;", "target_phys_addr_t frame_size_p = VAR_0;", "cmd = megasas_next_frame(s, frame);", "if (!cmd) {", "return NULL;", "}", "if (!cmd->pa...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
2,757
void helper_stl_raw(uint64_t t0, uint64_t t1) { stl_raw(t1, t0); }
false
qemu
2374e73edafff0586cbfb67c333c5a7588f81fd5
void helper_stl_raw(uint64_t t0, uint64_t t1) { stl_raw(t1, t0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint64_t VAR_0, uint64_t VAR_1) { stl_raw(VAR_1, VAR_0); }
[ "void FUNC_0(uint64_t VAR_0, uint64_t VAR_1)\n{", "stl_raw(VAR_1, VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,758
static void string_deserialize(void **native_out, void *datap, VisitorFunc visit, Error **errp) { StringSerializeData *d = datap; d->string = string_output_get_string(d->sov); d->siv = string_input_visitor_new(d->string); visit(d->siv, native_out, errp); }
false
qemu
3b098d56979d2f7fd707c5be85555d114353a28d
static void string_deserialize(void **native_out, void *datap, VisitorFunc visit, Error **errp) { StringSerializeData *d = datap; d->string = string_output_get_string(d->sov); d->siv = string_input_visitor_new(d->string); visit(d->siv, native_out, errp); }
{ "code": [], "line_no": [] }
static void FUNC_0(void **VAR_0, void *VAR_1, VisitorFunc VAR_2, Error **VAR_3) { StringSerializeData *d = VAR_1; d->string = string_output_get_string(d->sov); d->siv = string_input_visitor_new(d->string); VAR_2(d->siv, VAR_0, VAR_3); }
[ "static void FUNC_0(void **VAR_0, void *VAR_1,\nVisitorFunc VAR_2, Error **VAR_3)\n{", "StringSerializeData *d = VAR_1;", "d->string = string_output_get_string(d->sov);", "d->siv = string_input_visitor_new(d->string);", "VAR_2(d->siv, VAR_0, VAR_3);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
2,759
static uint16_t mlp_checksum16(const uint8_t *buf, unsigned int buf_size) { uint16_t crc; if (!crc_init) { av_crc_init(crc_2D, 0, 16, 0x002D, sizeof(crc_2D)); crc_init = 1; } crc = av_crc(crc_2D, 0, buf, buf_size - 2); crc ^= AV_RL16(buf + buf_size - 2); return crc; ...
false
FFmpeg
ee5b34d56e7fa9c1eb1a2aeb2bf7b55516c99c8a
static uint16_t mlp_checksum16(const uint8_t *buf, unsigned int buf_size) { uint16_t crc; if (!crc_init) { av_crc_init(crc_2D, 0, 16, 0x002D, sizeof(crc_2D)); crc_init = 1; } crc = av_crc(crc_2D, 0, buf, buf_size - 2); crc ^= AV_RL16(buf + buf_size - 2); return crc; ...
{ "code": [], "line_no": [] }
static uint16_t FUNC_0(const uint8_t *buf, unsigned int buf_size) { uint16_t crc; if (!crc_init) { av_crc_init(crc_2D, 0, 16, 0x002D, sizeof(crc_2D)); crc_init = 1; } crc = av_crc(crc_2D, 0, buf, buf_size - 2); crc ^= AV_RL16(buf + buf_size - 2); return crc; }
[ "static uint16_t FUNC_0(const uint8_t *buf, unsigned int buf_size)\n{", "uint16_t crc;", "if (!crc_init) {", "av_crc_init(crc_2D, 0, 16, 0x002D, sizeof(crc_2D));", "crc_init = 1;", "}", "crc = av_crc(crc_2D, 0, buf, buf_size - 2);", "crc ^= AV_RL16(buf + buf_size - 2);", "return crc;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
2,760
static void blkdebug_debug_event(BlockDriverState *bs, BlkDebugEvent event) { BDRVBlkdebugState *s = bs->opaque; struct BlkdebugRule *rule; bool injected; assert((int)event >= 0 && event < BLKDBG_EVENT_MAX); injected = false; s->new_state = s->state; QLIST_FOREACH(rule, &s->rules...
false
qemu
3c90c65d7adab49a41952ee14e1d65f81355e408
static void blkdebug_debug_event(BlockDriverState *bs, BlkDebugEvent event) { BDRVBlkdebugState *s = bs->opaque; struct BlkdebugRule *rule; bool injected; assert((int)event >= 0 && event < BLKDBG_EVENT_MAX); injected = false; s->new_state = s->state; QLIST_FOREACH(rule, &s->rules...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, BlkDebugEvent VAR_1) { BDRVBlkdebugState *s = VAR_0->opaque; struct BlkdebugRule *VAR_2; bool injected; assert((int)VAR_1 >= 0 && VAR_1 < BLKDBG_EVENT_MAX); injected = false; s->new_state = s->state; QLIST_FOREACH(VAR_2, &s->rules[VAR_1...
[ "static void FUNC_0(BlockDriverState *VAR_0, BlkDebugEvent VAR_1)\n{", "BDRVBlkdebugState *s = VAR_0->opaque;", "struct BlkdebugRule *VAR_2;", "bool injected;", "assert((int)VAR_1 >= 0 && VAR_1 < BLKDBG_EVENT_MAX);", "injected = false;", "s->new_state = s->state;", "QLIST_FOREACH(VAR_2, &s->rules[VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
2,761
static int protocol_client_init(VncState *vs, uint8_t *data, size_t len) { char buf[1024]; VncShareMode mode; int size; mode = data[0] ? VNC_SHARE_MODE_SHARED : VNC_SHARE_MODE_EXCLUSIVE; switch (vs->vd->share_policy) { case VNC_SHARE_POLICY_IGNORE: /* * Ignore the sha...
false
qemu
97efe4f961dcf5a0126baa75e8a6bff66d33186f
static int protocol_client_init(VncState *vs, uint8_t *data, size_t len) { char buf[1024]; VncShareMode mode; int size; mode = data[0] ? VNC_SHARE_MODE_SHARED : VNC_SHARE_MODE_EXCLUSIVE; switch (vs->vd->share_policy) { case VNC_SHARE_POLICY_IGNORE: break; ...
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2) { char VAR_3[1024]; VncShareMode mode; int VAR_4; mode = VAR_1[0] ? VNC_SHARE_MODE_SHARED : VNC_SHARE_MODE_EXCLUSIVE; switch (VAR_0->vd->share_policy) { case VNC_SHARE_POLICY_IGNORE: break; ...
[ "static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{", "char VAR_3[1024];", "VncShareMode mode;", "int VAR_4;", "mode = VAR_1[0] ? VNC_SHARE_MODE_SHARED : VNC_SHARE_MODE_EXCLUSIVE;", "switch (VAR_0->vd->share_policy) {", "case VNC_SHARE_POLICY_IGNORE:\nbreak;", "case VNC_SHARE_POLICY_A...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 33 ], [ 35, 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67, 69 ], [ 71 ], [ 73 ], [ 75 ], [ 77 ], [...
2,764
static void migration_completion(MigrationState *s, int current_active_state, bool *old_vm_running, int64_t *start_time) { int ret; if (s->state == MIGRATION_STATUS_ACTIVE) { qemu_mutex_lock_iothread(); *start_time = qemu...
false
qemu
0b827d5e7291193887d22d058bc20c12b423047c
static void migration_completion(MigrationState *s, int current_active_state, bool *old_vm_running, int64_t *start_time) { int ret; if (s->state == MIGRATION_STATUS_ACTIVE) { qemu_mutex_lock_iothread(); *start_time = qemu...
{ "code": [], "line_no": [] }
static void FUNC_0(MigrationState *VAR_0, int VAR_1, bool *VAR_2, int64_t *VAR_3) { int VAR_4; if (VAR_0->state == MIGRATION_STATUS_ACTIVE) { qemu_mutex_lock_iothread(); *VAR_3 = qemu_clock_get_ms(QEMU_CLOCK_REALTIME); ...
[ "static void FUNC_0(MigrationState *VAR_0, int VAR_1,\nbool *VAR_2,\nint64_t *VAR_3)\n{", "int VAR_4;", "if (VAR_0->state == MIGRATION_STATUS_ACTIVE) {", "qemu_mutex_lock_iothread();", "*VAR_3 = qemu_clock_get_ms(QEMU_CLOCK_REALTIME);", "qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER);", "*VAR_2 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
2,765
void replay_read_next_clock(ReplayClockKind kind) { unsigned int read_kind = replay_data_kind - EVENT_CLOCK; assert(read_kind == kind); int64_t clock = replay_get_qword(); replay_check_error(); replay_finish_event(); replay_state.cached_clock[read_kind] = clock; }
false
qemu
f186d64d8fda4bb22c15beb8e45b7814fbd8b51e
void replay_read_next_clock(ReplayClockKind kind) { unsigned int read_kind = replay_data_kind - EVENT_CLOCK; assert(read_kind == kind); int64_t clock = replay_get_qword(); replay_check_error(); replay_finish_event(); replay_state.cached_clock[read_kind] = clock; }
{ "code": [], "line_no": [] }
void FUNC_0(ReplayClockKind VAR_0) { unsigned int VAR_1 = replay_data_kind - EVENT_CLOCK; assert(VAR_1 == VAR_0); int64_t clock = replay_get_qword(); replay_check_error(); replay_finish_event(); replay_state.cached_clock[VAR_1] = clock; }
[ "void FUNC_0(ReplayClockKind VAR_0)\n{", "unsigned int VAR_1 = replay_data_kind - EVENT_CLOCK;", "assert(VAR_1 == VAR_0);", "int64_t clock = replay_get_qword();", "replay_check_error();", "replay_finish_event();", "replay_state.cached_clock[VAR_1] = clock;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
2,766
static void exynos4210_gfrc_event(void *opaque) { Exynos4210MCTState *s = (Exynos4210MCTState *)opaque; int i; uint64_t distance; DPRINTF("\n"); s->g_timer.reg.cnt += s->g_timer.count; /* Process all comparators */ for (i = 0; i < MCT_GT_CMP_NUM; i++) { if (s->g_time...
false
qemu
97331270e50f5858c82a0c6d146da81f5b776535
static void exynos4210_gfrc_event(void *opaque) { Exynos4210MCTState *s = (Exynos4210MCTState *)opaque; int i; uint64_t distance; DPRINTF("\n"); s->g_timer.reg.cnt += s->g_timer.count; for (i = 0; i < MCT_GT_CMP_NUM; i++) { if (s->g_timer.reg.cnt == s->g_timer.reg.c...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { Exynos4210MCTState *s = (Exynos4210MCTState *)VAR_0; int VAR_1; uint64_t distance; DPRINTF("\n"); s->g_timer.reg.cnt += s->g_timer.count; for (VAR_1 = 0; VAR_1 < MCT_GT_CMP_NUM; VAR_1++) { if (s->g_timer.reg.cnt == s->g_timer.reg.co...
[ "static void FUNC_0(void *VAR_0)\n{", "Exynos4210MCTState *s = (Exynos4210MCTState *)VAR_0;", "int VAR_1;", "uint64_t distance;", "DPRINTF(\"\\n\");", "s->g_timer.reg.cnt += s->g_timer.count;", "for (VAR_1 = 0; VAR_1 < MCT_GT_CMP_NUM; VAR_1++) {", "if (s->g_timer.reg.cnt == s->g_timer.reg.comp[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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 23 ], [ 27 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ...
2,767
static void lance_init(NICInfo *nd, target_phys_addr_t leaddr, void *dma_opaque, qemu_irq irq) { DeviceState *dev; SysBusDevice *s; qemu_irq reset; qemu_check_nic_model(&nd_table[0], "lance"); dev = qdev_create(NULL, "lance"); dev->nd = nd; qdev_prop_set_p...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
static void lance_init(NICInfo *nd, target_phys_addr_t leaddr, void *dma_opaque, qemu_irq irq) { DeviceState *dev; SysBusDevice *s; qemu_irq reset; qemu_check_nic_model(&nd_table[0], "lance"); dev = qdev_create(NULL, "lance"); dev->nd = nd; qdev_prop_set_p...
{ "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);", " ...
static void FUNC_0(NICInfo *VAR_0, target_phys_addr_t VAR_1, void *VAR_2, qemu_irq VAR_3) { DeviceState *dev; SysBusDevice *s; qemu_irq reset; qemu_check_nic_model(&nd_table[0], "lance"); dev = qdev_create(NULL, "lance"); dev->VAR_0 = VAR_0; qdev_prop_set_...
[ "static void FUNC_0(NICInfo *VAR_0, target_phys_addr_t VAR_1,\nvoid *VAR_2, qemu_irq VAR_3)\n{", "DeviceState *dev;", "SysBusDevice *s;", "qemu_irq reset;", "qemu_check_nic_model(&nd_table[0], \"lance\");", "dev = qdev_create(NULL, \"lance\");", "dev->VAR_0 = VAR_0;", "qdev_prop_set_ptr(dev, \"dma\", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
2,768
int ff_mpeg_ref_picture(MpegEncContext *s, Picture *dst, Picture *src) { int ret; av_assert0(!dst->f.buf[0]); av_assert0(src->f.buf[0]); src->tf.f = &src->f; dst->tf.f = &dst->f; ret = ff_thread_ref_frame(&dst->tf, &src->tf); if (ret < 0) goto fail; ret = update_p...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
int ff_mpeg_ref_picture(MpegEncContext *s, Picture *dst, Picture *src) { int ret; av_assert0(!dst->f.buf[0]); av_assert0(src->f.buf[0]); src->tf.f = &src->f; dst->tf.f = &dst->f; ret = ff_thread_ref_frame(&dst->tf, &src->tf); if (ret < 0) goto fail; ret = update_p...
{ "code": [ " av_assert0(!dst->f.buf[0]);", " av_assert0(src->f.buf[0]);", " src->tf.f = &src->f;", " dst->tf.f = &dst->f;" ], "line_no": [ 9, 11, 15, 17 ] }
int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1, Picture *VAR_2) { int VAR_3; av_assert0(!VAR_1->f.buf[0]); av_assert0(VAR_2->f.buf[0]); VAR_2->tf.f = &VAR_2->f; VAR_1->tf.f = &VAR_1->f; VAR_3 = ff_thread_ref_frame(&VAR_1->tf, &VAR_2->tf); if (VAR_3 < 0) goto fail; ...
[ "int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1, Picture *VAR_2)\n{", "int VAR_3;", "av_assert0(!VAR_1->f.buf[0]);", "av_assert0(VAR_2->f.buf[0]);", "VAR_2->tf.f = &VAR_2->f;", "VAR_1->tf.f = &VAR_1->f;", "VAR_3 = ff_thread_ref_frame(&VAR_1->tf, &VAR_2->tf);", "if (VAR_3 < 0)\ngoto fail;", "VAR_3 ...
[ 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], ...
2,769
static int encode_slices(VC2EncContext *s) { uint8_t *buf; int i, slice_x, slice_y, skip = 0; int bytes_left = 0; SliceArgs *enc_args = s->slice_args; int bytes_top[SLICE_REDIST_TOTAL] = {0}; SliceArgs *top_loc[SLICE_REDIST_TOTAL] = {NULL}; avpriv_align_put_bits(&s->pb); flu...
true
FFmpeg
b88be742fac7a77a8095e8155ba8790db4b77568
static int encode_slices(VC2EncContext *s) { uint8_t *buf; int i, slice_x, slice_y, skip = 0; int bytes_left = 0; SliceArgs *enc_args = s->slice_args; int bytes_top[SLICE_REDIST_TOTAL] = {0}; SliceArgs *top_loc[SLICE_REDIST_TOTAL] = {NULL}; avpriv_align_put_bits(&s->pb); flu...
{ "code": [ " int i, slice_x, slice_y, skip = 0;", " int bytes_left = 0;", " int bytes_top[SLICE_REDIST_TOTAL] = {0};", " SliceArgs *top_loc[SLICE_REDIST_TOTAL] = {NULL};", " bytes_left += args->bytes_left;", " for (i = 0; i < FFMIN(SLICE_REDIST_TOTAL, s->num_...
static int FUNC_0(VC2EncContext *VAR_0) { uint8_t *buf; int VAR_1, VAR_2, VAR_3, VAR_4 = 0; int VAR_5 = 0; SliceArgs *enc_args = VAR_0->slice_args; int VAR_6[SLICE_REDIST_TOTAL] = {0}; SliceArgs *top_loc[SLICE_REDIST_TOTAL] = {NULL}; avpriv_align_put_bits(&VAR_0->pb); flush_...
[ "static int FUNC_0(VC2EncContext *VAR_0)\n{", "uint8_t *buf;", "int VAR_1, VAR_2, VAR_3, VAR_4 = 0;", "int VAR_5 = 0;", "SliceArgs *enc_args = VAR_0->slice_args;", "int VAR_6[SLICE_REDIST_TOTAL] = {0};", "SliceArgs *top_loc[SLICE_REDIST_TOTAL] = {NULL};", "avpriv_align_put_bits(&VAR_0->pb);", "flush...
[ 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
2,770
int64_t parse_time_or_die(const char *context, const char *timestr, int is_duration) { int64_t us; if (av_parse_time(&us, timestr, is_duration) < 0) { av_log(NULL, AV_LOG_FATAL, "Invalid %s specification for %s: %s\n", is_duration ? "duration" : "date", con...
true
FFmpeg
636ced8e1dc8248a1353b416240b93d70ad03edb
int64_t parse_time_or_die(const char *context, const char *timestr, int is_duration) { int64_t us; if (av_parse_time(&us, timestr, is_duration) < 0) { av_log(NULL, AV_LOG_FATAL, "Invalid %s specification for %s: %s\n", is_duration ? "duration" : "date", con...
{ "code": [ " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(...
int64_t FUNC_0(const char *context, const char *timestr, int is_duration) { int64_t us; if (av_parse_time(&us, timestr, is_duration) < 0) { av_log(NULL, AV_LOG_FATAL, "Invalid %s specification for %s: %s\n", is_duration ? "duration" : "date", context, times...
[ "int64_t FUNC_0(const char *context, const char *timestr,\nint is_duration)\n{", "int64_t us;", "if (av_parse_time(&us, timestr, is_duration) < 0) {", "av_log(NULL, AV_LOG_FATAL, \"Invalid %s specification for %s: %s\\n\",\nis_duration ? \"duration\" : \"date\", context, timestr);", "exit(1);", "}", "re...
[ 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
2,771
PPC_OP(mulhw) { T0 = ((int64_t)Ts0 * (int64_t)Ts1) >> 32; RETURN(); }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
PPC_OP(mulhw) { T0 = ((int64_t)Ts0 * (int64_t)Ts1) >> 32; RETURN(); }
{ "code": [ " RETURN();", "PPC_OP(mulhw)", " T0 = ((int64_t)Ts0 * (int64_t)Ts1) >> 32;", " RETURN();" ], "line_no": [ 7, 1, 5, 7 ] }
FUNC_0(VAR_0) { T0 = ((int64_t)Ts0 * (int64_t)Ts1) >> 32; RETURN(); }
[ "FUNC_0(VAR_0)\n{", "T0 = ((int64_t)Ts0 * (int64_t)Ts1) >> 32;", "RETURN();", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
2,772
static void rtas_stop_self(PowerPCCPU *cpu, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { CPUState *cs = CPU(cpu); CPUPPCState *env = &cpu->env; cs->h...
true
qemu
9a94ee5bb15793ef69692998ef57794a33074134
static void rtas_stop_self(PowerPCCPU *cpu, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { CPUState *cs = CPU(cpu); CPUPPCState *env = &cpu->env; cs->h...
{ "code": [], "line_no": [] }
static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1, uint32_t VAR_2, uint32_t VAR_3, target_ulong VAR_4, uint32_t VAR_5, target_ulong VAR_6) { CPUState *cs = CPU(VAR_0); CPUPPCState *env = &VAR_0->env; cs->...
[ "static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4,\nuint32_t VAR_5, target_ulong VAR_6)\n{", "CPUState *cs = CPU(VAR_0);", "CPUPPCState *env = &VAR_0->env;", "cs->halted = 1;", "qemu_cpu_kick(cs);", "env->msr = 0;", "env->spr[SPR_LPCR] ...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 18 ], [ 20 ], [ 40 ], [ 50 ], [ 52 ] ]
2,773
static int get_cluster_offset(BlockDriverState *bs, uint64_t offset, int allocate, int compressed_size, int n_start, int n_end, uint64_t *result) { BDRVQcowState *s = bs->opaque; int min_index, i, j, l1_index, l2_ind...
true
qemu
d7a753a148d4738eef95a3b193b081a9c905399f
static int get_cluster_offset(BlockDriverState *bs, uint64_t offset, int allocate, int compressed_size, int n_start, int n_end, uint64_t *result) { BDRVQcowState *s = bs->opaque; int min_index, i, j, l1_index, l2_ind...
{ "code": [ " uint64_t l2_offset, *l2_table, cluster_offset, tmp;", " l2_offset = (l2_offset + s->cluster_size - 1) & ~(s->cluster_size - 1);", " cluster_offset = (cluster_offset + s->cluster_size - 1) &", " ~(s->cluster_size - 1);", " cluster_off...
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, uint64_t *VAR_6) { BDRVQcowState *s = VAR_0->opaque; int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; uint64...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nuint64_t VAR_1, int VAR_2,\nint VAR_3,\nint VAR_4, int VAR_5, uint64_t *VAR_6)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "uint64_t l2_offset, *l2_table, cluster_offset, tmp;", "uint32_t min_count;", "int VAR_1...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51, 53, 55 ...
2,774
int av_get_packet(AVIOContext *s, AVPacket *pkt, int size) { int ret; size= ffio_limit(s, size); ret= av_new_packet(pkt, size); if(ret<0) return ret; pkt->pos= avio_tell(s); ret= avio_read(s, pkt->data, size); if(ret<=0) av_free_packet(pkt); else ...
true
FFmpeg
7effbee66cf457c62f795d9b9ed3a1110b364b89
int av_get_packet(AVIOContext *s, AVPacket *pkt, int size) { int ret; size= ffio_limit(s, size); ret= av_new_packet(pkt, size); if(ret<0) return ret; pkt->pos= avio_tell(s); ret= avio_read(s, pkt->data, size); if(ret<=0) av_free_packet(pkt); else ...
{ "code": [], "line_no": [] }
int FUNC_0(AVIOContext *VAR_0, AVPacket *VAR_1, int VAR_2) { int VAR_3; VAR_2= ffio_limit(VAR_0, VAR_2); VAR_3= av_new_packet(VAR_1, VAR_2); if(VAR_3<0) return VAR_3; VAR_1->pos= avio_tell(VAR_0); VAR_3= avio_read(VAR_0, VAR_1->data, VAR_2); if(VAR_3<=0) av...
[ "int FUNC_0(AVIOContext *VAR_0, AVPacket *VAR_1, int VAR_2)\n{", "int VAR_3;", "VAR_2= ffio_limit(VAR_0, VAR_2);", "VAR_3= av_new_packet(VAR_1, VAR_2);", "if(VAR_3<0)\nreturn VAR_3;", "VAR_1->pos= avio_tell(VAR_0);", "VAR_3= avio_read(VAR_0, VAR_1->data, VAR_2);", "if(VAR_3<=0)\nav_free_packet(VAR_1);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 8 ], [ 12 ], [ 16, 18 ], [ 22 ], [ 26 ], [ 28, 30 ], [ 32, 34 ], [ 36, 38 ], [ 42 ], [ 44 ] ]
2,775
void xtensa_translate_init(void) { static const char * const regnames[] = { "ar0", "ar1", "ar2", "ar3", "ar4", "ar5", "ar6", "ar7", "ar8", "ar9", "ar10", "ar11", "ar12", "ar13", "ar14", "ar15", }; static const char * const fregnames[] = { "f0", "f1", "f2", "f...
true
qemu
fe0bd475aa31e60674f7f53b85dc293108026202
void xtensa_translate_init(void) { static const char * const regnames[] = { "ar0", "ar1", "ar2", "ar3", "ar4", "ar5", "ar6", "ar7", "ar8", "ar9", "ar10", "ar11", "ar12", "ar13", "ar14", "ar15", }; static const char * const fregnames[] = { "f0", "f1", "f2", "f...
{ "code": [ " if (sregnames[i]) {", " sregnames[i]);", " if (uregnames[i]) {", " uregnames[i]);", " if (sregnames[i]) {", " if (uregnames[i]) {" ], "line_no": [ 67, 73, 83, 89, 67, 83 ] }
void FUNC_0(void) { static const char * const VAR_0[] = { "ar0", "ar1", "ar2", "ar3", "ar4", "ar5", "ar6", "ar7", "ar8", "ar9", "ar10", "ar11", "ar12", "ar13", "ar14", "ar15", }; static const char * const VAR_1[] = { "f0", "f1", "f2", "f3", "f4", "f5...
[ "void FUNC_0(void)\n{", "static const char * const VAR_0[] = {", "\"ar0\", \"ar1\", \"ar2\", \"ar3\",\n\"ar4\", \"ar5\", \"ar6\", \"ar7\",\n\"ar8\", \"ar9\", \"ar10\", \"ar11\",\n\"ar12\", \"ar13\", \"ar14\", \"ar15\",\n};", "static const char * const VAR_1[] = {", "\"f0\", \"f1\", \"f2\", \"f3\",\n\"f4\", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13, 15 ], [ 17 ], [ 19, 21, 23, 25, 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 53 ], [ 55, 57, 59 ], [...
2,776
float64 HELPER(recpe_f64)(float64 input, void *fpstp) { float_status *fpst = fpstp; float64 f64 = float64_squash_input_denormal(input, fpst); uint64_t f64_val = float64_val(f64); uint64_t f64_sbit = 0x8000000000000000ULL & f64_val; int64_t f64_exp = extract64(f64_val, 52, 11); float64 r64...
true
qemu
fc1792e9aa36227ee9994757974f9397684e1a48
float64 HELPER(recpe_f64)(float64 input, void *fpstp) { float_status *fpst = fpstp; float64 f64 = float64_squash_input_denormal(input, fpst); uint64_t f64_val = float64_val(f64); uint64_t f64_sbit = 0x8000000000000000ULL & f64_val; int64_t f64_exp = extract64(f64_val, 52, 11); float64 r64...
{ "code": [ " } else if (f64_exp >= 1023 && fpst->flush_to_zero) {" ], "line_no": [ 73 ] }
float64 FUNC_0(recpe_f64)(float64 input, void *fpstp) { float_status *fpst = fpstp; float64 f64 = float64_squash_input_denormal(input, fpst); uint64_t f64_val = float64_val(f64); uint64_t f64_sbit = 0x8000000000000000ULL & f64_val; int64_t f64_exp = extract64(f64_val, 52, 11); float64 r64...
[ "float64 FUNC_0(recpe_f64)(float64 input, void *fpstp)\n{", "float_status *fpst = fpstp;", "float64 f64 = float64_squash_input_denormal(input, fpst);", "uint64_t f64_val = float64_val(f64);", "uint64_t f64_sbit = 0x8000000000000000ULL & f64_val;", "int64_t f64_exp = extract64(f64_val, 52, 11);", "float6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
2,777
static void stm32f2xx_usart_write(void *opaque, hwaddr addr, uint64_t val64, unsigned int size) { STM32F2XXUsartState *s = opaque; uint32_t value = val64; unsigned char ch; DB_PRINT("Write 0x%" PRIx32 ", 0x%"HWADDR_PRIx"\n", value, addr); switch (addr) { ...
true
qemu
6ab3fc32ea640026726bc5f9f4db622d0954fb8a
static void stm32f2xx_usart_write(void *opaque, hwaddr addr, uint64_t val64, unsigned int size) { STM32F2XXUsartState *s = opaque; uint32_t value = val64; unsigned char ch; DB_PRINT("Write 0x%" PRIx32 ", 0x%"HWADDR_PRIx"\n", value, addr); switch (addr) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned int VAR_3) { STM32F2XXUsartState *s = VAR_0; uint32_t value = VAR_2; unsigned char VAR_4; DB_PRINT("Write 0x%" PRIx32 ", 0x%"HWADDR_PRIx"\n", value, VAR_1); switch (VAR_1) { case ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{", "STM32F2XXUsartState *s = VAR_0;", "uint32_t value = VAR_2;", "unsigned char VAR_4;", "DB_PRINT(\"Write 0x%\" PRIx32 \", 0x%\"HWADDR_PRIx\"\\n\", value, VAR_1);", "switch (VAR_1) {", "case USART_SR:\nif (value <= 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
2,778
static void simpleCopy(SwsContext *c, uint8_t* srcParam[], int srcStrideParam[], int srcSliceY, int srcSliceH, uint8_t* dstParam[], int dstStride[]){ int srcStride[3]; uint8_t *src[3]; uint8_t *dst[3]; if(c->srcFormat == IMGFMT_I420){ src[0]= srcParam[0]; src[1]= srcParam[2]; src[2]= ...
true
FFmpeg
9bd8bd1add6be33f5eb7f2645350901ab2a56a6c
static void simpleCopy(SwsContext *c, uint8_t* srcParam[], int srcStrideParam[], int srcSliceY, int srcSliceH, uint8_t* dstParam[], int dstStride[]){ int srcStride[3]; uint8_t *src[3]; uint8_t *dst[3]; if(c->srcFormat == IMGFMT_I420){ src[0]= srcParam[0]; src[1]= srcParam[2]; src[2]= ...
{ "code": [ "\t\t\twhile(length+c->srcW <= dstStride[0] ", "\t\t\t && length+c->srcW <= srcStride[0]) length+= c->srcW;" ], "line_no": [ 111, 113 ] }
static void FUNC_0(SwsContext *VAR_0, uint8_t* VAR_1[], int VAR_2[], int VAR_3, int VAR_4, uint8_t* VAR_5[], int VAR_6[]){ int VAR_7[3]; uint8_t *src[3]; uint8_t *dst[3]; if(VAR_0->srcFormat == IMGFMT_I420){ src[0]= VAR_1[0]; src[1]= VAR_1[2]; src[2]= VAR_1[1]; VAR_7[0]= VAR_2[0]; ...
[ "static void FUNC_0(SwsContext *VAR_0, uint8_t* VAR_1[], int VAR_2[], int VAR_3,\nint VAR_4, uint8_t* VAR_5[], int VAR_6[]){", "int VAR_7[3];", "uint8_t *src[3];", "uint8_t *dst[3];", "if(VAR_0->srcFormat == IMGFMT_I420){", "src[0]= VAR_1[0];", "src[1]= VAR_1[2];", "src[2]= VAR_1[1];", "VAR_7[0]= VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
2,779
static void free_ahci_device(QPCIDevice *dev) { QPCIBus *pcibus = dev ? dev->bus : NULL; /* libqos doesn't have a function for this, so free it manually */ g_free(dev); qpci_free_pc(pcibus); }
true
qemu
9a75b0a037e3a8030992244353f17b62f6daf2ab
static void free_ahci_device(QPCIDevice *dev) { QPCIBus *pcibus = dev ? dev->bus : NULL; g_free(dev); qpci_free_pc(pcibus); }
{ "code": [ "static void free_ahci_device(QPCIDevice *dev)", " QPCIBus *pcibus = dev ? dev->bus : NULL;", " g_free(dev);", " qpci_free_pc(pcibus);" ], "line_no": [ 1, 5, 11, 13 ] }
static void FUNC_0(QPCIDevice *VAR_0) { QPCIBus *pcibus = VAR_0 ? VAR_0->bus : NULL; g_free(VAR_0); qpci_free_pc(pcibus); }
[ "static void FUNC_0(QPCIDevice *VAR_0)\n{", "QPCIBus *pcibus = VAR_0 ? VAR_0->bus : NULL;", "g_free(VAR_0);", "qpci_free_pc(pcibus);", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ] ]
2,780
int av_reduce(int *dst_nom, int *dst_den, int64_t nom, int64_t den, int64_t max){ AVRational a0={0,1}, a1={1,0}; int sign= (nom<0) ^ (den<0); int64_t gcd= ff_gcd(FFABS(nom), FFABS(den)); nom = FFABS(nom)/gcd; den = FFABS(den)/gcd; if(nom<=max && den<=max){ a1= (AVRational){nom, ...
true
FFmpeg
62b9fc1571b1354cf596a280b5fe55a9593a7a2f
int av_reduce(int *dst_nom, int *dst_den, int64_t nom, int64_t den, int64_t max){ AVRational a0={0,1}, a1={1,0}; int sign= (nom<0) ^ (den<0); int64_t gcd= ff_gcd(FFABS(nom), FFABS(den)); nom = FFABS(nom)/gcd; den = FFABS(den)/gcd; if(nom<=max && den<=max){ a1= (AVRational){nom, ...
{ "code": [ " int64_t x = nom / den;" ], "line_no": [ 27 ] }
int FUNC_0(int *VAR_0, int *VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4){ AVRational a0={0,1}, a1={1,0}; int VAR_5= (VAR_2<0) ^ (VAR_3<0); int64_t gcd= ff_gcd(FFABS(VAR_2), FFABS(VAR_3)); VAR_2 = FFABS(VAR_2)/gcd; VAR_3 = FFABS(VAR_3)/gcd; if(VAR_2<=VAR_4 && VAR_3<=VAR_4){ ...
[ "int FUNC_0(int *VAR_0, int *VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4){", "AVRational a0={0,1}, a1={1,0};", "int VAR_5= (VAR_2<0) ^ (VAR_3<0);", "int64_t gcd= ff_gcd(FFABS(VAR_2), FFABS(VAR_3));", "VAR_2 = FFABS(VAR_2)/gcd;", "VAR_3 = FFABS(VAR_3)/gcd;", "if(VAR_2<=VAR_4 && VAR_3<=VAR_4){", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [ 51...
2,781
PPC_OP(cmpi) { if (Ts0 < SPARAM(1)) { T0 = 0x08; } else if (Ts0 > SPARAM(1)) { T0 = 0x04; } else { T0 = 0x02; } RETURN(); }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
PPC_OP(cmpi) { if (Ts0 < SPARAM(1)) { T0 = 0x08; } else if (Ts0 > SPARAM(1)) { T0 = 0x04; } else { T0 = 0x02; } RETURN(); }
{ "code": [ " RETURN();", " } else {", " } else {", " } else {", "PPC_OP(cmpi)", " if (Ts0 < SPARAM(1)) {", " } else if (Ts0 > SPARAM(1)) {", " } else {", " } else {", " } else {", " } else {", " } else {", " RETURN();", " ...
FUNC_0(VAR_0) { if (Ts0 < SPARAM(1)) { T0 = 0x08; } else if (Ts0 > SPARAM(1)) { T0 = 0x04; } else { T0 = 0x02; } RETURN(); }
[ "FUNC_0(VAR_0)\n{", "if (Ts0 < SPARAM(1)) {", "T0 = 0x08;", "} else if (Ts0 > SPARAM(1)) {", "T0 = 0x04;", "} else {", "T0 = 0x02;", "}", "RETURN();", "}" ]
[ 1, 1, 0, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
2,782
static int bdrv_rd_badreq_bytes(BlockDriverState *bs, int64_t offset, int count) { int64_t size = bs->total_sectors << SECTOR_BITS; return count < 0 || size < 0 || count > size || offset > size - count; }
true
qemu
b5eff355460643d09e533024360fe0522f368c07
static int bdrv_rd_badreq_bytes(BlockDriverState *bs, int64_t offset, int count) { int64_t size = bs->total_sectors << SECTOR_BITS; return count < 0 || size < 0 || count > size || offset > size - count; }
{ "code": [ "static int bdrv_rd_badreq_bytes(BlockDriverState *bs,", " int64_t offset, int count)", " int64_t size = bs->total_sectors << SECTOR_BITS;", " count < 0 ||", " size < 0 ||", " count > size ||", " offset > size - coun...
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2) { int64_t size = VAR_0->total_sectors << SECTOR_BITS; return VAR_2 < 0 || size < 0 || VAR_2 > size || VAR_1 > size - VAR_2; }
[ "static int FUNC_0(BlockDriverState *VAR_0,\nint64_t VAR_1, int VAR_2)\n{", "int64_t size = VAR_0->total_sectors << SECTOR_BITS;", "return\nVAR_2 < 0 ||\nsize < 0 ||\nVAR_2 > size ||\nVAR_1 > size - VAR_2;", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13, 15, 17 ], [ 19 ] ]
2,783
static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid, ff_asf_guid mediatype, ff_asf_guid subtype, ff_asf_guid formattype, int size) { WtvContext *wtv = s->priv_data; AVIOContext *pb = wtv->pb; if (!ff_guidcmp...
true
FFmpeg
ca402f32e392590a81a1381dab41c4f9c2c2f98a
static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid, ff_asf_guid mediatype, ff_asf_guid subtype, ff_asf_guid formattype, int size) { WtvContext *wtv = s->priv_data; AVIOContext *pb = wtv->pb; if (!ff_guidcmp...
{ "code": [ " ff_get_wav_header(pb, st->codec, size);" ], "line_no": [ 61 ] }
static AVStream * FUNC_0(AVFormatContext *s, AVStream *st, int sid, ff_asf_guid mediatype, ff_asf_guid subtype, ff_asf_guid formattype, int size) { WtvContext *wtv = s->priv_data; AVIOContext *pb = wtv->pb; if (!ff_guidcmp(subtype, ...
[ "static AVStream * FUNC_0(AVFormatContext *s, AVStream *st, int sid,\nff_asf_guid mediatype, ff_asf_guid subtype,\nff_asf_guid formattype, int size)\n{", "WtvContext *wtv = s->priv_data;", "AVIOContext *pb = wtv->pb;", "if (!ff_guidcmp(subtype, mediasubtype_cpfilters_processed) &&\n!ff_guidcmp(formattype, for...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
2,784
static inline void RENAME(hyscale)(uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter, int32_t *mmx...
false
FFmpeg
4bff9ef9d0781c4de228bf1f85634d2706fc589b
static inline void RENAME(hyscale)(uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter, int32_t *mmx...
{ "code": [], "line_no": [] }
static inline void FUNC_0(hyscale)(uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter, int32_t *mmx...
[ "static inline void FUNC_0(hyscale)(uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc,\nint flags, int canMMX2BeUsed, int16_t *hLumFilter,\nint16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode,\nint srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,\nint32_t *mmx2FilterPos)\n{", "if(s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
2,785
static void filter(AVFilterContext *ctx, AVFilterBufferRef *dstpic, int parity, int tff) { YADIFContext *yadif = ctx->priv; int y, i; for (i = 0; i < yadif->csp->nb_components; i++) { int w = dstpic->video->w; int h = dstpic->video->h; int refs = yadif->c...
false
FFmpeg
2f7e8dcf45f11df94f47acbe6825cc93514ea59b
static void filter(AVFilterContext *ctx, AVFilterBufferRef *dstpic, int parity, int tff) { YADIFContext *yadif = ctx->priv; int y, i; for (i = 0; i < yadif->csp->nb_components; i++) { int w = dstpic->video->w; int h = dstpic->video->h; int refs = yadif->c...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef *VAR_1, int VAR_2, int VAR_3) { YADIFContext *yadif = VAR_0->priv; int VAR_4, VAR_5; for (VAR_5 = 0; VAR_5 < yadif->csp->nb_components; VAR_5++) { int w = VAR_1->video->w; int h = VAR_1->video->h; ...
[ "static void FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef *VAR_1,\nint VAR_2, int VAR_3)\n{", "YADIFContext *yadif = VAR_0->priv;", "int VAR_4, VAR_5;", "for (VAR_5 = 0; VAR_5 < yadif->csp->nb_components; VAR_5++) {", "int w = VAR_1->video->w;", "int h = VAR_1->video->h;", "int refs = yadif->cur->li...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
2,786
static void vorbis_free_extradata(PayloadContext * data) { av_free(data); }
false
FFmpeg
202a6697ba54293235ce2d7bd5724f4f461e417f
static void vorbis_free_extradata(PayloadContext * data) { av_free(data); }
{ "code": [], "line_no": [] }
static void FUNC_0(PayloadContext * VAR_0) { av_free(VAR_0); }
[ "static void FUNC_0(PayloadContext * VAR_0)\n{", "av_free(VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
2,787
static int dxva2_alloc(AVCodecContext *s) { InputStream *ist = s->opaque; int loglevel = (ist->hwaccel_id == HWACCEL_AUTO) ? AV_LOG_VERBOSE : AV_LOG_ERROR; DXVA2Context *ctx; HANDLE device_handle; HRESULT hr; AVHWDeviceContext *device_ctx; AVDXVA2DeviceContext *device_hwctx; ...
false
FFmpeg
70143a3954e1c4412efb2bf1a3a818adea2d3abf
static int dxva2_alloc(AVCodecContext *s) { InputStream *ist = s->opaque; int loglevel = (ist->hwaccel_id == HWACCEL_AUTO) ? AV_LOG_VERBOSE : AV_LOG_ERROR; DXVA2Context *ctx; HANDLE device_handle; HRESULT hr; AVHWDeviceContext *device_ctx; AVDXVA2DeviceContext *device_hwctx; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { InputStream *ist = VAR_0->opaque; int VAR_1 = (ist->hwaccel_id == HWACCEL_AUTO) ? AV_LOG_VERBOSE : AV_LOG_ERROR; DXVA2Context *ctx; HANDLE device_handle; HRESULT hr; AVHWDeviceContext *device_ctx; AVDXVA2DeviceContext *device_hwctx; ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "InputStream *ist = VAR_0->opaque;", "int VAR_1 = (ist->hwaccel_id == HWACCEL_AUTO) ? AV_LOG_VERBOSE : AV_LOG_ERROR;", "DXVA2Context *ctx;", "HANDLE device_handle;", "HRESULT hr;", "AVHWDeviceContext *device_ctx;", "AVDXVA2DeviceContext *device_hwctx;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47, 49 ], [ 51 ], [...
2,788
static av_cold int amr_nb_encode_init(AVCodecContext *avctx) { AMRContext *s = avctx->priv_data; if (avctx->sample_rate != 8000) { av_log(avctx, AV_LOG_ERROR, "Only 8000Hz sample rate supported\n"); return AVERROR(ENOSYS); } if (avctx->channels != 1) { av_log(avctx, A...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int amr_nb_encode_init(AVCodecContext *avctx) { AMRContext *s = avctx->priv_data; if (avctx->sample_rate != 8000) { av_log(avctx, AV_LOG_ERROR, "Only 8000Hz sample rate supported\n"); return AVERROR(ENOSYS); } if (avctx->channels != 1) { av_log(avctx, A...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { AMRContext *s = avctx->priv_data; if (avctx->sample_rate != 8000) { av_log(avctx, AV_LOG_ERROR, "Only 8000Hz sample rate supported\n"); return AVERROR(ENOSYS); } if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR,...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "AMRContext *s = avctx->priv_data;", "if (avctx->sample_rate != 8000) {", "av_log(avctx, AV_LOG_ERROR, \"Only 8000Hz sample rate supported\\n\");", "return AVERROR(ENOSYS);", "}", "if (avctx->channels != 1) {", "av_log(avctx, AV_LOG_ERROR, \"Only ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51...
2,790
static void avc_luma_mid_4w_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height) { uint32_t loop_cnt; v16i8 src0, src1, src2, src3, src4; v16i8 mask0, mask1, mask2; v8i16 hz_out0, hz_out1, hz_...
false
FFmpeg
e549933a270dd2cfc36f2cf9bb6b29acf3dc6d08
static void avc_luma_mid_4w_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height) { uint32_t loop_cnt; v16i8 src0, src1, src2, src3, src4; v16i8 mask0, mask1, mask2; v8i16 hz_out0, hz_out1, hz_...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1, uint8_t *VAR_2, int32_t VAR_3, int32_t VAR_4) { uint32_t loop_cnt; v16i8 src0, src1, src2, src3, src4; v16i8 mask0, mask1, mask2; v8i16 hz_out0, hz_out1, hz_out2, hz_out3; ...
[ "static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1,\nuint8_t *VAR_2, int32_t VAR_3,\nint32_t VAR_4)\n{", "uint32_t loop_cnt;", "v16i8 src0, src1, src2, src3, src4;", "v16i8 mask0, mask1, mask2;", "v8i16 hz_out0, hz_out1, hz_out2, hz_out3;", "v8i16 hz_out4, hz_out5, hz_out6, hz_out7, hz_out8;", "v8i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ...
2,791
static int svq1_motion_inter_4v_block(MpegEncContext *s, GetBitContext *bitbuf, uint8_t *current, uint8_t *previous, int pitch, svq1_pmv *motion, int x, int y) { uint8_t *src; uint8_t *dst; svq1_pmv mv; svq1_pmv *pmv[4]; ...
false
FFmpeg
7b9fc769e40a7709fa59a54e2a810f76364eee4b
static int svq1_motion_inter_4v_block(MpegEncContext *s, GetBitContext *bitbuf, uint8_t *current, uint8_t *previous, int pitch, svq1_pmv *motion, int x, int y) { uint8_t *src; uint8_t *dst; svq1_pmv mv; svq1_pmv *pmv[4]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0, GetBitContext *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4, svq1_pmv *VAR_5, int VAR_6, int VAR_7) { uint8_t *src; uint8_t *dst; svq1_pmv mv; svq1_pmv *pmv[4]; int VAR_8,...
[ "static int FUNC_0(MpegEncContext *VAR_0, GetBitContext *VAR_1,\nuint8_t *VAR_2, uint8_t *VAR_3,\nint VAR_4, svq1_pmv *VAR_5, int VAR_6, int VAR_7)\n{", "uint8_t *src;", "uint8_t *dst;", "svq1_pmv mv;", "svq1_pmv *pmv[4];", "int VAR_8, VAR_9;", "pmv[0] = &VAR_5[0];", "if (VAR_7 == 0) {", "pmv[1] =\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45, 47 ], [ 53 ], [ 55 ], [ 57,...
2,792
int ff_avc_parse_nal_units(AVIOContext *pb, const uint8_t *buf_in, int size) { const uint8_t *p = buf_in; const uint8_t *end = p + size; const uint8_t *nal_start, *nal_end; size = 0; nal_start = ff_avc_find_startcode(p, end); while (nal_start < end) { while(!*(nal_start++)); ...
false
FFmpeg
6c643e070584ba7af251d3907e277d2170537b1f
int ff_avc_parse_nal_units(AVIOContext *pb, const uint8_t *buf_in, int size) { const uint8_t *p = buf_in; const uint8_t *end = p + size; const uint8_t *nal_start, *nal_end; size = 0; nal_start = ff_avc_find_startcode(p, end); while (nal_start < end) { while(!*(nal_start++)); ...
{ "code": [], "line_no": [] }
int FUNC_0(AVIOContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { const uint8_t *VAR_3 = VAR_1; const uint8_t *VAR_4 = VAR_3 + VAR_2; const uint8_t *VAR_5, *nal_end; VAR_2 = 0; VAR_5 = ff_avc_find_startcode(VAR_3, VAR_4); while (VAR_5 < VAR_4) { while(!*(VAR_5++)); nal...
[ "int FUNC_0(AVIOContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "const uint8_t *VAR_3 = VAR_1;", "const uint8_t *VAR_4 = VAR_3 + VAR_2;", "const uint8_t *VAR_5, *nal_end;", "VAR_2 = 0;", "VAR_5 = ff_avc_find_startcode(VAR_3, VAR_4);", "while (VAR_5 < VAR_4) {", "while(!*(VAR_5++));", "nal_end ...
[ 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 ] ]
2,794
static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { FLACParseContext *fpc = s->priv_data; FLACHeaderMarker *curr; int nb_headers; int read_size = 0; ...
false
FFmpeg
4b5d4720c1c46e8a80b945854a6dec5f681e11c0
static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { FLACParseContext *fpc = s->priv_data; FLACHeaderMarker *curr; int nb_headers; int read_size = 0; ...
{ "code": [], "line_no": [] }
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) { FLACParseContext *fpc = VAR_0->priv_data; FLACHeaderMarker *curr; int VAR_6; int VAR_7 = 0; if (VAR_0->fla...
[ "static int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1,\nconst uint8_t **VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{", "FLACParseContext *fpc = VAR_0->priv_data;", "FLACHeaderMarker *curr;", "int VAR_6;", "int VAR_7 = 0;", "if (VAR_0->flags & PARSER_FLAG_COMPLETE_FRAMES) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39, 41 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ...
2,796
void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len) { if (s->chr_read) { s->chr_read(s->handler_opaque, buf, len); } }
false
qemu
33577b47c64435fcc2a1bc01c7e82534256f1fc3
void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len) { if (s->chr_read) { s->chr_read(s->handler_opaque, buf, len); } }
{ "code": [], "line_no": [] }
void FUNC_0(CharDriverState *VAR_0, uint8_t *VAR_1, int VAR_2) { if (VAR_0->chr_read) { VAR_0->chr_read(VAR_0->handler_opaque, VAR_1, VAR_2); } }
[ "void FUNC_0(CharDriverState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "if (VAR_0->chr_read) {", "VAR_0->chr_read(VAR_0->handler_opaque, VAR_1, VAR_2);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]