question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CFG view incomplete for LDC

See original GitHub issue

For this code:

int foo(int i) {
    if (i) {
        return 1;
    }
    return 0;
}

The CFG view shows an incorrect/incomplete graph for foo. https://godbolt.org/g/Q2bCvN

Looking at the assembly output and comparing it with Clang, perhaps the problem is caused by two ret instructions in the D output?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
karlisscommented, Jan 11, 2019

Can this be closed now?

1reaction
karlisscommented, Jan 6, 2019

Here is one more test case not fixed by changes above, might be the same as what @JohanEngelen refers to. https://godbolt.org/z/ywm0vP

Read more comments on GitHub >

github_iconTop Results From Across the Web

CFG view incomplete for LDC · Issue #887 - GitHub
The CFG view shows an incorrect/incomplete graph for foo . ... Looking at the assembly output and comparing it with Clang, perhaps the...
Read more >
Show running output incomplete - Cisco Community
Though everything seems to work fine, the output of "show running-config" only shows up a couple of lines and not the complete config....
Read more >
Big Data issues - Hitachi Vantara Lumada and Pentaho ...
Lumada Data Catalog searches returning incomplete or missing data. See Pentaho Troubleshooting articles for additional topics.
Read more >
Unsupervised Learning of Word Boundary with Description ...
the right-hand side of a rule (a deterministic CFG ... ing to see how nmch performance can be improved. ... lihood from incomplete...
Read more >
FreshPorts -- lang/ldc-devel: D frontend for llvm, with the Tango ...
LDC is a compiler for the D programming Language. It is based on the DMD frontend and uses LLVM as the backend. LLVM...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found