Remix.run Logo
pertymcpert 5 hours ago

If Clang generated non-deterministic output due to pointer addresses then that's a bug (happens regularly) that should be fixed. The most common way this happens if it some code path is iterating over a DenseMap which is non-deterministic. Sometimes that's fine and sometimes that's not depending on how that map is used. The common way to fix that is to switch to a MapVector which pays some additional runtime/memory cost to guarantee deterministic iteration order.

xena 5 hours ago | parent [-]

I'll try and make a minimal reproduction case and file a bug. Do you know if any tooling that can take a binary and fuzz it down to a minimal reproduction set?

2 hours ago | parent | next [-]
[deleted]
amatria 4 hours ago | parent | prev | next [-]

cvise. Here is a link to a mini tutorial I wrote for a user in an LLVM issue: https://github.com/llvm/llvm-project/issues/108827#issuecomm...

glandium 4 hours ago | parent | prev [-]

Claude code is actually rather good at this. If your initial testcase is not too big, you can use creduce or cvise.