Advertisement
Guest User

lol2.ll

a guest
May 11th, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 2.88 KB | None | 0 0
  1. ; ModuleID = 'lol.ll'
  2. source_filename = "lol.c"
  3. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  4. target triple = "x86_64-pc-linux-gnu"
  5.  
  6. @.str = private unnamed_addr constant [73 x i8] c"dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd %d\0A\00", align 1
  7.  
  8. ; Function Attrs: nounwind uwtable
  9. define dso_local i32 @dumby(i32) local_unnamed_addr #0 {
  10.   %2 = icmp slt i32 %0, 456
  11.   %3 = select i1 %2, i32 457, i32 456
  12.   br label %4
  13.  
  14. ; <label>:4:                                      ; preds = %4, %1
  15.   %5 = phi i32 [ %3, %1 ], [ %13, %4 ]
  16.   %6 = phi i32 [ %0, %1 ], [ %9, %4 ]
  17.   %7 = sdiv i32 123, %6
  18.   %8 = add nsw i32 %7, 100
  19.   %9 = mul nsw i32 %8, %6
  20.   %10 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i32 %9)
  21.   %11 = icmp sgt i32 %5, %9
  22.   %12 = zext i1 %11 to i32
  23.   %13 = add nuw nsw i32 %5, %12
  24.   %14 = icmp eq i32 %13, 0
  25.   br i1 %14, label %15, label %4
  26.  
  27. ; <label>:15:                                     ; preds = %4
  28.   %16 = mul nsw i32 %9, %9
  29.   ret i32 %16
  30. }
  31.  
  32. ; Function Attrs: nounwind
  33. declare dso_local i32 @printf(i8* nocapture readonly, ...) local_unnamed_addr #1
  34.  
  35. ; Function Attrs: norecurse nounwind readnone uwtable
  36. define dso_local i32 @main() local_unnamed_addr #2 {
  37.   ret i32 0
  38. }
  39.  
  40. attributes #0 = { nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
  41. attributes #1 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
  42. attributes #2 = { norecurse nounwind readnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
  43.  
  44. !llvm.module.flags = !{!0}
  45. !llvm.ident = !{!1}
  46.  
  47. !0 = !{i32 1, !"wchar_size", i32 4}
  48. !1 = !{!"clang version 8.0.1-svn357234-1~exp1~20190407122916.56 (branches/release_80)"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement