comparison: fix bug handling min_t()
commitbc80c86e05bba07482b62933a73e44292de0a560
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Jun 2013 09:38:06 +0000 (28 12:38 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Jun 2013 09:38:06 +0000 (28 12:38 +0300)
treec8e1a6bbca0a03d1dc2f45690a4cd11d80798077
parent766712fa941f978af2d257110738ace406173e7d
comparison: fix bug handling min_t()

The problem is that when we parsed a condition we were using the states
we had just written to determine the other states.  We have to save the
states first and use the original states.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_comparison.c
validation/sm_compare12.c [new file with mode: 0644]