1{module, bad_tuples}. %% version = 0 2 3{exports, [{heap_overflow,1}, 4 {long,2}, 5 {module_info,0}, 6 {module_info,1}, 7 {self_referential,1}, 8 {short,1}]}. 9 10{attributes, []}. 11 12{labels, 13}. 13 14 15{function, short, 1, 2}. 16 {label,1}. 17 {line,[{location,"bad_tuples.erl",4}]}. 18 {func_info,{atom,bad_tuples},{atom,short},1}. 19 {label,2}. 20 {test_heap,3,1}. 21 {put_tuple,2,{x,1}}. 22 {put,{atom,ok}}. 23 {move,{x,1},{x,0}}. 24 return. 25 26 27{function, long, 2, 4}. 28 {label,3}. 29 {line,[{location,"bad_tuples.erl",7}]}. 30 {func_info,{atom,bad_tuples},{atom,long},2}. 31 {label,4}. 32 {test_heap,6,2}. 33 {put_tuple,2,{x,2}}. 34 {put,{x,0}}. 35 {put,{x,1}}. 36 {put,{atom,too_long}}. 37 {put_tuple,2,{x,0}}. 38 {put,{atom,ok}}. 39 {put,{x,2}}. 40 return. 41 42 43{function, heap_overflow, 1, 6}. 44 {label,5}. 45 {line,[{location,"bad_tuples.erl",10}]}. 46 {func_info,{atom,bad_tuples},{atom,heap_overflow},1}. 47 {label,6}. 48 {test_heap,3,1}. 49 {put_tuple,2,{x,1}}. 50 {put,{atom,ok}}. 51 {put,{x,0}}. 52 {put,{x,0}}. 53 {move,{x,1},{x,0}}. 54 return. 55 56 57{function, self_referential, 1, 8}. 58 {label,7}. 59 {line,[{location,"bad_tuples.erl",13}]}. 60 {func_info,{atom,bad_tuples},{atom,self_referential},1}. 61 {label,8}. 62 {test_heap,3,1}. 63 {put_tuple,2,{x,1}}. 64 {put,{atom,ok}}. 65 {put,{x,1}}. 66 {move,{x,1},{x,0}}. 67 return. 68 69 70{function, module_info, 0, 10}. 71 {label,9}. 72 {line,[]}. 73 {func_info,{atom,bad_tuples},{atom,module_info},0}. 74 {label,10}. 75 {move,{atom,bad_tuples},{x,0}}. 76 {line,[]}. 77 {call_ext_only,1,{extfunc,erlang,get_module_info,1}}. 78 79 80{function, module_info, 1, 12}. 81 {label,11}. 82 {line,[]}. 83 {func_info,{atom,bad_tuples},{atom,module_info},1}. 84 {label,12}. 85 {move,{x,0},{x,1}}. 86 {move,{atom,bad_tuples},{x,0}}. 87 {line,[]}. 88 {call_ext_only,2,{extfunc,erlang,get_module_info,2}}. 89