This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
abc/abc-strict-aliasing.patch
Jerry James c3b63ec8c9 Update to latest git snapshot.
- Add patches: -strict-aliasing, -overflow.
- Avoid bogus rpaths.
2021-04-01 09:05:43 -06:00

17 lines
800 B
Diff

--- src/aig/gia/giaUtil.c.orig 2021-03-28 19:40:27.000000000 -0600
+++ src/aig/gia/giaUtil.c 2021-03-31 09:24:59.453286422 -0600
@@ -2109,11 +2109,13 @@ void Gia_AigerWriteLut( Gia_Man_t * p, c
Gia_ManForEachObj( p, pObj, i )
if ( i && Gia_ObjIsLut(p, i) )
{
+ word truth;
pLuts[iLut].Type = 3;
Gia_LutForEachFanin( p, i, iFan, k )
pLuts[iLut].pFans[k] = Gia_ManObj(p, iFan)->Value;
pLuts[iLut].nFans = k;
- *(word *)pLuts[iLut].pTruth = Gia_LutComputeTruth6(p, i, vTruths);
+ truth = Gia_LutComputeTruth6(p, i, vTruths);
+ memcpy( pLuts[iLut].pTruth, &truth, sizeof(word) );
pObj->Value = pLuts[iLut].Out = Abc_Var2Lit( iLut, 0 );
iLut++;
}