<div class="gmail_quote">On 13 April 2011 17:27, David Nadlinger <span dir="ltr"><<a href="mailto:see@klickverbot.at">see@klickverbot.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 4/13/11 5:16 PM, Trass3r wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think I also came across such a tool but I'm not sure if it was this one.<br>
Since it uses a grammar (subset) to generate the programs it should be<br>
perfectly possible to adapt it for D.<br>
Though it "is mainly intended to find bugs in the parts of a compiler<br>
that perform transformations on an intermediate representation".<br>
</blockquote>
<br></div>
>From what I recall from a quick look at the Csmith sources and Xuejun Yang's talk at the LLVM developer meeting, Csmith is tailored rather specifically to C, and isn't based on a grammar representation that could be easily swapped out…<br>
<font color="#888888">
<br>
David<br>
</font></blockquote></div><br><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><b>Can Csmith be altered to emit programs in a language other than C or C++?</b> Not easily.</span><div>
<font class="Apple-style-span" face="'Times New Roman'" size="3"><a href="http://embed.cs.utah.edu/csmith/using.html">http://embed.cs.utah.edu/csmith/using.html</a><br clear="all"></font><br>-- <br>// Yours sincerely<br>
// Emil 'Skeen' Madsen<br>
</div>