From 03be76f7f5f15811d113d87b620eab4c8c85510b Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Thu, 22 Sep 2022 21:57:37 +0200 Subject: [PATCH] Fix postcondition in false branch of integer range estimation after signed less than comparison --- oscar64/InterCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar64/InterCode.cpp b/oscar64/InterCode.cpp index 7a1f440..eafc403 100644 --- a/oscar64/InterCode.cpp +++ b/oscar64/InterCode.cpp @@ -6094,7 +6094,7 @@ void InterCodeBasicBlock::UpdateLocalIntegerRangeSets(const GrowingVariableArray if (mFalseValueRange[s1].mMinState == IntegerValueRange::S_BOUND && mFalseValueRange[s1].mMinValue >= 0) { - mFalseValueRange[s1].LimitMin(mInstructions[sz - 2]->mSrc[0].mRange.mMaxValue); + mFalseValueRange[s1].LimitMin(mInstructions[sz - 2]->mSrc[0].mRange.mMinValue); } } }