.bss:00000000 ; .bss:00000000 ; +-------------------------------------------------------------------------+ .bss:00000000 ; | This file has been generated by The Interactive Disassembler (IDA) | .bss:00000000 ; | Copyright (c) 2009 by Hex-Rays, | .bss:00000000 ; | License info: 48-337D-7334-D3 | .bss:00000000 ; | Tycho Anderson, University of Wisconsin/Computer Sciences Department | .bss:00000000 ; +-------------------------------------------------------------------------+ .bss:00000000 ; .bss:00000000 ; Input MD5 : 33E7C316FBCC891B4935EE4D3EC51648 .bss:00000000 .bss:00000000 ; File Name : C:\working\TSL\analyzer\TSLFiles\DASH\regression\instraliasing\instraliasing--REACH-0.obj .bss:00000000 ; Format : COFF (X386MAGIC) .bss:00000000 ; includelib "LIBCMT" .bss:00000000 ; includelib "OLDNAMES"" .bss:00000000 .bss:00000000 .686p .bss:00000000 .mmx .bss:00000000 .model flat .bss:00000000 .bss:00000000 ; =========================================================================== .bss:00000000 .bss:00000000 ; Segment type: Uninitialized .bss:00000000 ; Segment permissions: Read/Write .bss:00000000 _bss segment dword public 'BSS' use32 .bss:00000000 assume cs:_bss .bss:00000000 assume es:nothing, ss:nothing, ds:nothing, fs:nothing, gs:nothing .bss:00000000 public ?n@@3HA .bss:00000000 ; int n .bss:00000000 ?n@@3HA dd ? ; DATA XREF: foo(int)+3r .bss:00000000 ; foo(int)+Bw ... .bss:00000000 _bss ends .bss:00000000 .text:00000004 ; =========================================================================== .text:00000004 .text:00000004 ; Segment type: Pure code .text:00000004 ; Segment permissions: Read/Execute .text:00000004 _text segment para public 'CODE' use32 .text:00000004 assume cs:_text .text:00000004 ;org 4 .text:00000004 assume es:nothing, ss:nothing, ds:nothing, fs:nothing, gs:nothing .text:00000004 .text:00000004 ; =============== S U B R O U T I N E ======================================= .text:00000004 .text:00000004 ; Attributes: bp-based frame .text:00000004 .text:00000004 ; int __cdecl foo(int) .text:00000004 public ?foo@@YAHH@Z .text:00000004 ?foo@@YAHH@Z proc near ; DATA XREF: _main+3Ao .text:00000004 .text:00000004 arg_0 = dword ptr 8 .text:00000004 .text:00000004 push ebp .text:00000005 mov ebp, esp .text:00000007 mov eax, ds:?n@@3HA ; int n .text:0000000C add eax, [ebp+arg_0] .text:0000000F mov ds:?n@@3HA, eax ; int n .text:00000014 mov eax, 1 .text:00000019 pop ebp .text:0000001A retn .text:0000001A ?foo@@YAHH@Z endp .text:0000001A .text:0000001A ; --------------------------------------------------------------------------- .text:0000001B db 9 dup(0CCh) .text:00000024 .text:00000024 ; =============== S U B R O U T I N E ======================================= .text:00000024 .text:00000024 ; Attributes: bp-based frame .text:00000024 .text:00000024 public _main .text:00000024 _main proc near .text:00000024 .text:00000024 var_4 = dword ptr -4 .text:00000024 .text:00000024 push ebp .text:00000025 mov ebp, esp .text:00000027 sub esp, 8 .text:0000002A push ebx .text:0000002B mov eax, [ebp+var_4] .text:0000002E mov ds:?n@@3HA, eax ; int n .text:00000033 cmp [ebp+var_4], 0 .text:00000037 jge short loc_45 .text:00000039 mov ds:?n@@3HA, 3 ; int n .text:00000043 jmp short loc_4F .text:00000045 ; --------------------------------------------------------------------------- .text:00000045 .text:00000045 loc_45: ; CODE XREF: _main+13j .text:00000045 mov ds:?n@@3HA, 4 ; int n .text:0000004F .text:0000004F loc_4F: ; CODE XREF: _main+1Fj .text:0000004F mov eax, 2 .text:00000054 .text:00000054 $L1$2538: ; DATA XREF: _main+3Fo .text:00000054 mov edx, 0D0FF046Ah .text:00000059 cmp eax, 1 .text:0000005C jz short loc_6B .text:0000005E mov eax, offset ?foo@@YAHH@Z ; foo(int) .text:00000063 lea ebx, $L1$2538+1 .text:00000069 jmp ebx .text:0000006B ; --------------------------------------------------------------------------- .text:0000006B .text:0000006B loc_6B: ; CODE XREF: _main+38j .text:0000006B xor edx, edx .text:0000006D cmp ds:?n@@3HA, 2 ; int n .text:00000074 jnz short loc_7B .text:00000076 cmp eax, 2A00h .text:0000007B .text:0000007B loc_7B: ; CODE XREF: _main+50j .text:0000007B xor eax, eax .text:0000007D pop ebx .text:0000007E mov esp, ebp .text:00000080 pop ebp .text:00000081 retn .text:00000081 _main endp .text:00000081 .text:00000081 _text ends .text:00000081 .text:00000081 .text:00000081 end