The objective of this study is to test two hypotheses : ( @ ) the analgesic effect of opioids improves cognitive function by decreasing pain , and ( @ ) pain antagonizes cognitive effects of opioids .