Thanks a lot for your reply. I am currently thinking of using a text file to use as an input, but if the POC works I will switch to IPASIR. Thanks for the suggestion!! I wouldn't have known otherwise.
Your code is giving an error since Lit (trail[i]) is being compared to lbool(l_True). I am still unclear about the way literals are represented in the code. I see that var(Lit) is right-shifting the bytes by 1 which is equivalent to multiplying the variable number by 2. Why is that necessary?
Thanks for suggesting to look into trail. I think I am starting to get hold od this code.