How is the infinitive phrase used in the sentence?
To wake up on time, set your alarm before going to bed.
a. adjective
b. adverb
c. noun as subject
d. noun as direct object