daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. define void @f1(i32* %a, i32 %b, i32 %c)
  2. {
  3.     %d = alloca i32
  4.     store i32 %b, i32* %d
  5.     br label %l2
  6.  
  7.     l2:
  8.     %t1 = load i32* %d
  9.     %c1 = icmp sge i32 %t1, %c
  10.     br i1 %c1, label %koniec, label %body
  11.  
  12.     body:
  13.     %t2 = load i32, i32* %d
  14.     %tad = getelementptr i32, i32* %a, i32 %t2
  15.     %t3 = load i32, i32* %tad
  16.  
  17.     %t4 = add i32 1, %t2
  18.     %tad1 = getelementptr i32, i32* %a, i32 %t4
  19.     %t6 = load i32, i32* %tad1
  20.  
  21.     %c2 = icmp sle i32 %t3, %t6
  22.  
  23.     br i1 %c2, label %less, label %skip
  24.  
  25.     less:
  26.     %t9 = sub i32 %t6, %t3
  27.     store i32 %t9, i32* %tad1
  28.     br label %less
  29.  
  30.  
  31.     skip:
  32.     %t7 = load i32, i32* %d
  33.     %t8 = add i32 1, %t7
  34.     store i32 %t8, i32* %d
  35.     br label %l2
  36.  
  37.     koniec:
  38.     ret void
  39.  
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top