Linking: recursion through a source callee (ListStack.push) gives an empty summary; push/pop depth; list of lists ends in ∩
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start with the analyzer test in CommonTest and the reduced H4–H6 examples, then trace how recursive summaries and LS.push/pop links are composed. Reproduce the reported results with setMaxIterations(10) and inspect the mem composition-table cell for gap 3. Done means all four gaps are addressed, including dependence reaching the caller’s result in the fernflower 2c target.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found while reducing fernflower's Statement.getPostReversePostOrderList (dynamic modification check, 2c: the returned list holds the receiver's statements, maddi says @Independent). The real code builds a StrongConnectivityHelper from this; its recursive visit pushes nodes on a ListStack (a subclass of ArrayList with a pointer field) and pops them into lists of components.
Reduced shapes (analyzer test, CommonTest, setMaxIterations(10)), with today's results:
static class LS<T> extends ArrayList<T> {
private int pointer;
public void push(T item) { this.add(item); pointer++; }
public T pop() { pointer--; T o = this.get(pointer); this.remove(pointer); return o; }
}
static class H5 { // recursion + push
private final LS<S> comp = new LS<>();
void visit(S s) { comp.push(s); for (S t : s.succ) visit(t); }
}
static class H6 { // recursion + add: fine
private final List<S> comp = new ArrayList<>();
void visit(S s) { comp.add(s); for (S t : s.succ) visit(t); }
}
static class H4 { // push, then pop into a list of lists, no recursion
private final LS<S> comp = new LS<>();
private final List<List<S>> comps = new ArrayList<>();
void visit(S s) {
comp.push(s);
List<S> c = new ArrayList<>(); S in;
do { in = comp.pop(); c.add(in); } while (in != s);
comps.add(c);
}
}
| method | links | param 0 |
|---|---|---|
LS.push |
0:item∈∈this*.§tss |
@Independent(hc=true) |
LS.pop |
pop∈∈this*.§tss |
|
H6.visit |
0:s∈this.comp*.§$s, … |
@Dependent |
H4.visit |
0:s∈∈this.comp*.§$ss, 0:s∩this.comps*.§$ss |
@Dependent |
H5.visit |
[-] (empty) |
@Independent |
Three gaps:
- Recursion with a source callee loses everything.
H5.visitgets an empty summary, whileH6.visit(same recursion,List.addinstead ofpush) is fine andH4.visit(pushwithout recursion) keepssincomp. In the recursive call cycle,push's link seems not to be applied to the first-pass summary. LS.push/poplink at the wrong depth.LS<T> extends ArrayList<T>;itemshould be∈ this.§ts, not∈∈ this*.§tss. That depth carries over toH4(∈∈ this.comp*.§$ss).- Popping into a list of lists ends in
∩:0:s ∩ this.comps*.§$ssinstead of a membership two levels down, and∩does not count for independence.
Separately, at the caller none of the helper variants carry dependence back: List<S> pN() { return new HN(this).exits(); } is @Independent for all of them, including H0, which has none of the three gaps (a plain List<S> comp, the constructor calls visit(start.getFirst()) which does comp.add(s), exits() returns new ArrayList<>(comp); H0.<init> and H0.visit param 0 are @Dependent). So the step from a helper object built from this back to the caller's result is a fourth gap, not yet reduced further.
The fernflower 2c target needs all four. Gap 3 is related to the mem cell of the composition table (⊆∘∋ = ∋?, gate MONOTABLE=mem), not default yet.
- Ngôn ngữ chính
- Java
- Star
- 1
- Fork
- 1
- Merge trung bình
- 48 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeLaser/maddi
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Javadoc warnings are the only noise on an otherwise clean CI runCó thể làm lại được @jayeshamundkar06-bit đã nhận 27 ngày trước và không có pull request nào đang mở. Đang mởbuild/ci good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Tất cả issue của CodeLaser/maddi
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
federicoiosue/Omni-Notes#1044 ·
-
Industrial Center Text TypoĐang mởBug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Terraform releases proxy leaves a temp folder behind on every cache refreshCó thể đã có người làm @dhananjay6561 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
terrakube-io/terrakube#4069 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
find-sec-bugs/find-sec-bugs#789 ·