Question
Trying to find 6 inputs/ 6 values that are in decending order. The values must be in between 1-6 and they can't be repeating. What
Trying to find 6 inputs/ 6 values that are in decending order. The values must be in between 1-6 and they can't be repeating. What is the line number that I can print out all the nodes? Dump of assembler code for function phase_6: 0x000000000040117e <+0>: push %r13 0x0000000000401180 <+2>: push %r12 0x0000000000401182 <+4>: push %rbp 0x0000000000401183 <+5>: push %rbx 0x0000000000401184 <+6>: sub $0x68,%rsp 0x0000000000401188 <+10>: mov %fs:0x28,%rax 0x0000000000401191 <+19>: mov %rax,0x58(%rsp) 0x0000000000401196 <+24>: xor %eax,%eax 0x0000000000401198 <+26>: mov %rsp,%rsi 0x000000000040119b <+29>: callq 0x4016ba 0x00000000004011a0 <+34>: mov %rsp,%r12 0x00000000004011a3 <+37>: mov $0x0,%r13d 0x00000000004011a9 <+43>: mov %r12,%rbp 0x00000000004011ac <+46>: mov (%r12),%eax 0x00000000004011b0 <+50>: sub $0x1,%eax 0x00000000004011b3 <+53>: cmp $0x5,%eax 0x00000000004011b6 <+56>: jbe 0x4011bd 0x00000000004011b8 <+58>: callq 0x401684 0x00000000004011bd <+63>: add $0x1,%r13d 0x00000000004011c1 <+67>: cmp $0x6,%r13d 0x00000000004011c5 <+71>: je 0x401204 0x00000000004011c7 <+73>: mov %r13d,%ebx 0x00000000004011ca <+76>: movslq %ebx,%rax 0x00000000004011cd <+79>: mov (%rsp,%rax,4),%eax 0x00000000004011d0 <+82>: cmp %eax,0x0(%rbp) 0x00000000004011d3 <+85>: jne 0x4011da 0x00000000004011d5 <+87>: callq 0x401684 => 0x00000000004011da <+92>: add $0x1,%ebx 0x00000000004011dd <+95>: cmp $0x5,%ebx 0x00000000004011e0 <+98>: jle 0x4011ca 0x00000000004011e2 <+100>: add $0x4,%r12 0x00000000004011e6 <+104>: jmp 0x4011a9 0x00000000004011e8 <+106>: mov 0x8(%rdx),%rdx 0x00000000004011ec <+110>: add $0x1,%eax 0x00000000004011ef <+113>: cmp %ecx,%eax 0x00000000004011f1 <+115>: jne 0x4011e8 0x00000000004011f3 <+117>: mov %rdx,0x20(%rsp,%rsi,2) 0x00000000004011f8 <+122>: add $0x4,%rsi 0x00000000004011fc <+126>: cmp $0x18,%rsi 0x0000000000401200 <+130>: jne 0x401209 0x0000000000401202 <+132>: jmp 0x40121d 0x0000000000401204 <+134>: mov $0x0,%esi 0x0000000000401209 <+139>: mov (%rsp,%rsi,1),%ecx 0x000000000040120c <+142>: mov $0x1,%eax 0x0000000000401211 <+147>: mov $0x6042f0,%edx 0x0000000000401216 <+152>: cmp $0x1,%ecx 0x0000000000401219 <+155>: jg 0x4011e8 0x000000000040121b <+157>: jmp 0x4011f3 0x000000000040121d <+159>: mov 0x20(%rsp),%rbx ---Type to continue, or q to quit--- 0x0000000000401222 <+164>: lea 0x20(%rsp),%rax 0x0000000000401227 <+169>: lea 0x48(%rsp),%rsi 0x000000000040122c <+174>: mov %rbx,%rcx 0x000000000040122f <+177>: mov 0x8(%rax),%rdx 0x0000000000401233 <+181>: mov %rdx,0x8(%rcx) 0x0000000000401237 <+185>: add $0x8,%rax 0x000000000040123b <+189>: mov %rdx,%rcx 0x000000000040123e <+192>: cmp %rsi,%rax 0x0000000000401241 <+195>: jne 0x40122f 0x0000000000401243 <+197>: movq $0x0,0x8(%rdx) 0x000000000040124b <+205>: mov $0x5,%ebp 0x0000000000401250 <+210>: mov 0x8(%rbx),%rax 0x0000000000401254 <+214>: mov (%rax),%eax 0x0000000000401256 <+216>: cmp %eax,(%rbx) 0x0000000000401258 <+218>: jle 0x40125f 0x000000000040125a <+220>: callq 0x401684 0x000000000040125f <+225>: mov 0x8(%rbx),%rbx 0x0000000000401263 <+229>: sub $0x1,%ebp 0x0000000000401266 <+232>: jne 0x401250 0x0000000000401268 <+234>: mov 0x58(%rsp),%rax 0x000000000040126d <+239>: xor %fs:0x28,%rax 0x0000000000401276 <+248>: je 0x40127d 0x0000000000401278 <+250>: callq 0x400b90 <__stack_chk_fail@plt> 0x000000000040127d <+255>: add $0x68,%rsp 0x0000000000401281 <+259>: pop %rbx 0x0000000000401282 <+260>: pop %rbp 0x0000000000401283 <+261>: pop %r12 0x0000000000401285 <+263>: pop %r13 0x0000000000401287 <+265>: retq End of assembler dump.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started