prosyslab-classroom / cs348-information-security

61 stars 10 forks source link

[Question][Hw5] Getting cond of icmp #152

Closed ee12ha0220 closed 3 years ago

ee12ha0220 commented 3 years ago

The icmp instruction in Llvm IR looks like this.

icmp (cond) (ty) (op1), (op2)

Is there a way I can get information about (cond) in the type of Llvm.Icmp.t?

Altterisk commented 3 years ago

I used Llvm.icmp_predicate to get the Llvm.Icmp.t

ee12ha0220 commented 3 years ago

Thanks a lot!