Apply 'make format'
This commit is contained in:
parent
5e89fd2c64
commit
2e6d056755
|
|
@ -225,9 +225,7 @@ class RandomizeMarkVisitor final : public VNVisitor {
|
||||||
AstArg* const argp = VN_CAST(pinp, Arg);
|
AstArg* const argp = VN_CAST(pinp, Arg);
|
||||||
//AstNodeExpr* exprp = argp->exprp();
|
//AstNodeExpr* exprp = argp->exprp();
|
||||||
AstWith* const withp = VN_CAST(pinp, With);
|
AstWith* const withp = VN_CAST(pinp, With);
|
||||||
if (withp == nodep) {
|
if (withp == nodep) { instdwith = true; }
|
||||||
instdwith = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
iterateChildrenConst(nodep);
|
iterateChildrenConst(nodep);
|
||||||
instdwith = false;
|
instdwith = false;
|
||||||
|
|
@ -485,11 +483,12 @@ class RandomizeMarkVisitor final : public VNVisitor {
|
||||||
if (VN_IS(pinp, With)) continue;
|
if (VN_IS(pinp, With)) continue;
|
||||||
AstArg* const argp = VN_CAST(pinp, Arg);
|
AstArg* const argp = VN_CAST(pinp, Arg);
|
||||||
AstNodeExpr* exprp = argp->exprp();
|
AstNodeExpr* exprp = argp->exprp();
|
||||||
if( VN_IS(exprp, NodeVarRef) && nodep->varp() == VN_CAST(exprp, NodeVarRef)->varp()){
|
if (VN_IS(exprp, NodeVarRef)
|
||||||
|
&& nodep->varp() == VN_CAST(exprp, NodeVarRef)->varp()) {
|
||||||
nodep->user1(true);
|
nodep->user1(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else{
|
else {
|
||||||
// nodep->user1(false);
|
// nodep->user1(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -503,17 +502,19 @@ class RandomizeMarkVisitor final : public VNVisitor {
|
||||||
// of type AstLambdaArgRef. They are randomized too.
|
// of type AstLambdaArgRef. They are randomized too.
|
||||||
const bool randObject = nodep->fromp()->user1() || VN_IS(nodep->fromp(), LambdaArgRef);
|
const bool randObject = nodep->fromp()->user1() || VN_IS(nodep->fromp(), LambdaArgRef);
|
||||||
// nodep->user1((randObject && nodep->varp()->rand().isRandomizable()));
|
// nodep->user1((randObject && nodep->varp()->rand().isRandomizable()));
|
||||||
nodep->user1((randObject && nodep->varp()->rand().isRandomizable()
|
nodep->user1(
|
||||||
&& !(instdwith && stdrandcall))); // nodep->user1((randObject &&
|
(randObject && nodep->varp()->rand().isRandomizable()
|
||||||
// nodep->varp()->rand().isRandomizable())
|
&& !(instdwith && stdrandcall))); // nodep->user1((randObject &&
|
||||||
// || (instdwith && stdrandcall));
|
// nodep->varp()->rand().isRandomizable())
|
||||||
|
// || (instdwith && stdrandcall));
|
||||||
nodep->user2p(m_modp);
|
nodep->user2p(m_modp);
|
||||||
if (instdwith && stdrandcall) {
|
if (instdwith && stdrandcall) {
|
||||||
for (AstNode* pinp = stdrandcall->pinsp(); pinp; pinp = pinp->nextp()) {
|
for (AstNode* pinp = stdrandcall->pinsp(); pinp; pinp = pinp->nextp()) {
|
||||||
if (VN_IS(pinp, With)) continue;
|
if (VN_IS(pinp, With)) continue;
|
||||||
AstArg* const argp = VN_CAST(pinp, Arg);
|
AstArg* const argp = VN_CAST(pinp, Arg);
|
||||||
AstNodeExpr* exprp = argp->exprp();
|
AstNodeExpr* exprp = argp->exprp();
|
||||||
if( VN_IS(exprp, MemberSel) && nodep->varp()== VN_CAST(exprp, MemberSel)->varp()){
|
if (VN_IS(exprp, MemberSel)
|
||||||
|
&& nodep->varp() == VN_CAST(exprp, MemberSel)->varp()) {
|
||||||
|
|
||||||
nodep->user1(true);
|
nodep->user1(true);
|
||||||
if (VN_IS(nodep->fromp(), VarRef))
|
if (VN_IS(nodep->fromp(), VarRef))
|
||||||
|
|
@ -523,7 +524,7 @@ class RandomizeMarkVisitor final : public VNVisitor {
|
||||||
/// membersel req as in vARREF visitor checks for it.
|
/// membersel req as in vARREF visitor checks for it.
|
||||||
}
|
}
|
||||||
|
|
||||||
else{
|
else {
|
||||||
// nodep->user1(false);
|
// nodep->user1(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue