im know doctor but i think you have do have ibs, also sounds like u might have piles aswel
To find a cause of bloating (gas) have:
1. Lactose-free diet for 2 days, and if you're lactose intolerant, this should help.
2. Low-fructose diet for 2 days (check my journals), and if you have fructose malabsorption, it should help.
If one of these will help, you can have official (breath) tests for both.
If bloating is in your upper abdomen, and it results in excessive burping, have a breath urea test for H. pylori (made by gastroenterologist).