Skip to content
Snippets Groups Projects
Commit 15acce32 authored by chrg's avatar chrg
Browse files

Work work!

parent 0f54a4c2
No related branches found
No related tags found
No related merge requests found
Showing
with 688 additions and 0 deletions
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// 0 remove static at ("test/cases/small/for.c": line 1) // 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4) // 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4) // 1 reduce to left at ("test/cases/small/for.c": line 4)
// 0 remove empty declaration at ("test/cases/small/for.c": line 4)
// 0 remove empty compound at ("test/cases/small/for.c": line 4) // 0 remove empty compound at ("test/cases/small/for.c": line 4)
static int a = 0; static int a = 0;
......
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// 0 remove static at ("test/cases/small/for.c": line 1) // 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4) // 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4) // 1 reduce to left at ("test/cases/small/for.c": line 4)
// 0 remove empty declaration at ("test/cases/small/for.c": line 4)
// 1 remove empty compound at ("test/cases/small/for.c": line 4) // 1 remove empty compound at ("test/cases/small/for.c": line 4)
static int a = 0; static int a = 0;
......
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
// 0 inline variable a at ("test/cases/small/for.c": line 1)
// 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4)
// 1 remove empty declaration at ("test/cases/small/for.c": line 4)
// 0 remove empty compound at ("test/cases/small/for.c": line 4)
// 0 remove the for loop at ("test/cases/small/for.c": line 4)
static int a = 0;
int main()
{
for (;;)
{
}
}
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
// 0 inline variable a at ("test/cases/small/for.c": line 1)
// 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4)
// 1 remove empty declaration at ("test/cases/small/for.c": line 4)
// 0 remove empty compound at ("test/cases/small/for.c": line 4)
// 1 remove the for loop at ("test/cases/small/for.c": line 4)
// 0 expand compound statment at ("test/cases/small/for.c": line 4)
static int a = 0;
int main()
{
{
}
}
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
// 0 inline variable a at ("test/cases/small/for.c": line 1)
// 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4)
// 1 remove empty declaration at ("test/cases/small/for.c": line 4)
// 0 remove empty compound at ("test/cases/small/for.c": line 4)
// 1 remove the for loop at ("test/cases/small/for.c": line 4)
// 1 expand compound statment at ("test/cases/small/for.c": line 4)
// 0 remove empty compound at ("test/cases/small/for.c": line 3)
static int a = 0;
int main()
{
}
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
// 0 inline variable a at ("test/cases/small/for.c": line 1)
// 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4)
// 1 remove empty declaration at ("test/cases/small/for.c": line 4)
// 0 remove empty compound at ("test/cases/small/for.c": line 4)
// 1 remove the for loop at ("test/cases/small/for.c": line 4)
// 1 expand compound statment at ("test/cases/small/for.c": line 4)
// 1 remove empty compound at ("test/cases/small/for.c": line 3)
static int a = 0;
int main()
{
}
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
// 0 inline variable a at ("test/cases/small/for.c": line 1)
// 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4)
// 1 remove empty declaration at ("test/cases/small/for.c": line 4)
// 1 remove empty compound at ("test/cases/small/for.c": line 4)
// 0 remove the for loop at ("test/cases/small/for.c": line 4)
static int a = 0;
int main()
{
for (;;)
{
}
}
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
// 0 inline variable a at ("test/cases/small/for.c": line 1)
// 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4)
// 1 remove empty declaration at ("test/cases/small/for.c": line 4)
// 1 remove empty compound at ("test/cases/small/for.c": line 4)
// 1 remove the for loop at ("test/cases/small/for.c": line 4)
// 0 expand compound statment at ("test/cases/small/for.c": line 4)
static int a = 0;
int main()
{
{
}
}
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
// 0 inline variable a at ("test/cases/small/for.c": line 1)
// 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4)
// 1 remove empty declaration at ("test/cases/small/for.c": line 4)
// 1 remove empty compound at ("test/cases/small/for.c": line 4)
// 1 remove the for loop at ("test/cases/small/for.c": line 4)
// 1 expand compound statment at ("test/cases/small/for.c": line 4)
// 0 remove empty compound at ("test/cases/small/for.c": line 3)
static int a = 0;
int main()
{
}
CTranslUnit
[ CDeclExt
( CDecl
[ CStorageSpec
( CStatic () )
, CTypeSpec
( CIntType () )
]
[ CDeclarationItem
( CDeclr
( Just
( Ident "a" 97 () )
) [] Nothing [] ()
)
( Just
( CInitExpr
( CConst
( CIntConst 0 () )
) ()
)
) Nothing
] ()
)
, CFDefExt
( CFunDef
[ CTypeSpec
( CIntType () )
]
( CDeclr
( Just
( Ident "main" 232419565 () )
)
[ CFunDeclr
( CFunParamsNew [] False ) [] ()
] Nothing [] ()
) []
( CCompound []
[ CBlockStmt
( CFor
( CForInitializing
( Just
( CAssign CAssignOp
( CVar
( Ident "a" 97 () ) ()
)
( CConst
( CIntConst 0 () )
) ()
)
)
) Nothing Nothing
( CCompound [] [] () ) ()
)
] ()
) ()
)
] ()
// 0 inline variable a at ("test/cases/small/for.c": line 1)
// 0 remove static at ("test/cases/small/for.c": line 1)
// 0 remove initializer at ("test/cases/small/for.c": line 4)
// 1 reduce to left at ("test/cases/small/for.c": line 4)
// 1 remove empty declaration at ("test/cases/small/for.c": line 4)
// 1 remove empty compound at ("test/cases/small/for.c": line 4)
// 1 remove the for loop at ("test/cases/small/for.c": line 4)
// 1 expand compound statment at ("test/cases/small/for.c": line 4)
// 1 remove empty compound at ("test/cases/small/for.c": line 3)
static int a = 0;
int main()
{
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment