From: trevor_hansen Date: Mon, 12 Mar 2012 04:11:58 +0000 (+0000) Subject: Check not and minus better when type checking. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=265c5e762d6ac661927e2bc5d7eba215b3c3b788;p=francis%2Fstp.git Check not and minus better when type checking. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1591 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/AST/ASTmisc.cpp b/src/AST/ASTmisc.cpp index 4f01aa8..e9a208b 100644 --- a/src/AST/ASTmisc.cpp +++ b/src/AST/ASTmisc.cpp @@ -466,6 +466,8 @@ namespace BEEV checkChildrenAreBV(v, n); if (n.Degree() != 1) FatalError("BVTypeCheck: should have exactly 1 args\n", n); + if (n.GetValueWidth() != n[0].GetValueWidth()) + FatalError("BVTypeCheck: should have same value width\n", n); break; case BVEXTRACT: checkChildrenAreBV(v, n);