<div dir="ltr"><div class="gmail_extra">On Mon, Apr 8, 2013 at 2:07 PM, Cameron McInally <span dir="ltr"><<a href="mailto:cameron.mcinally@nyu.edu" target="_blank">cameron.mcinally@nyu.edu</a>></span> wrote:<br><div class="gmail_quote">
<div>... </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote">
<div><br></div><div>*** IR Dump Before Deduce function attributes ***</div><div>define i32 @main() #0 {</div><div>entry:</div><div>  call void @__ubsan_handle_divrem_overflow(i8* bitcast ({ { i8*, i32, i32 }, { i16, i16, [6 x i8] }* }* @2 to i8*), i64 6, i64 0) #3</div>

<div>  %call1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x i8]* @.str, i64 0, i64 0), i32 undef) #3</div><div>  ret i32 0</div><div>} </div></div></div></div></div></blockquote><div><br></div><div style>
On second thought, I do see the idiv operands. So that will work!</div><div style><br></div><div style>I suppose I just have to disambiguate between div and mod for this to be complete. That could be done at my interface.</div>
<div style><br></div><div style>Thanks for the help, guys.</div><div style><br></div><div style>-Cameron </div></div></div></div>