fix the if test by naming branch and label and stitching them in constructor

This commit is contained in:
Torsten Ruger
2014-07-16 21:16:08 +03:00
parent ba15f352db
commit 7534626d87
3 changed files with 40 additions and 25 deletions

View File

@ -54,7 +54,7 @@ def ofthen(n)
end
end
HERE
@output = nil
@output = [Virtual::MethodDefinition.new(:ofthen,[Virtual::Argument.new(:n,Virtual::Mystery.new())],Virtual::SelfReference.new(nil),Virtual::Local.new(:maybenot,Virtual::IntegerConstant.new(667)),Virtual::MethodEnter.new(Virtual::ImplicitBranch.new(nil,Virtual::FrameSet.new(:isit,Virtual::IntegerConstant.new(42),Virtual::Label.new(:if_merge_0,nil)),Virtual::FrameSet.new(:maybenot,Virtual::IntegerConstant.new(667),Virtual::Label.new(:if_merge_0,nil)))))]
check
end