#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef intptr_t UINTPTR_MAX;

/* Variables and functions */
int *get_matches(char const *, char const *, double const);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  const char *long_desc =
      "Description Inspire and inform each patient. Allow others to achieve "
      "their most important objectives while you achieve yours. Improve their "
      "prospects and the vitality of your career. Connect with your goals and "
      "change lives with Fresenius Medical Care North America. Create strong, "
      "vital connections with your knowledge and kind reassurance. Enhance "
      "lives and your potential for success with the global leader in dialysis "
      "healthcare: Fresenius Medical Care North America. By forming powerful "
      "bonds among patients, their families, and our team members, we have "
      "built an atmosphere of clinical excellence and trust. Offering vast "
      "resources, we advance careers and the healthcare of countless "
      "individuals. Why Join the Fresenius Team? Passion. Dedication. "
      "Knowledge. Motivation. Experience. These are the impressive qualities "
      "you ll find in the Fresenius Leadership Team. Our strength in the North "
      "American market and extensive global network provide our employees with "
      "the best of both worlds the friendliness of a local organization and "
      "the stability of a worldwide organization for diverse experiences and "
      "challenging career opportunities. When you join the Fresenius Medical "
      "Care team, you ll be welcomed into a company that is built on the "
      "philosophy that our employees are our most important asset. Our career "
      "advantages include the following: Fresenius Medical Care is the nation "
      "s largest provider of renal care, meeting the needs of more than "
      "135,000 patients at 1,800 clinics throughout the country. Our "
      "well-established, trusted organization fosters a spirit of camaraderie, "
      "emphasizing friendly collaboration, professional support, and career "
      "development. Superior training, UltraCare quality control, and "
      "certification procedures ensure your potential to succeed and advance "
      "as a professional. Competitive compensation and exceptional benefits. "
      "Outstanding tuition reimbursement program. Recognized among Fortune s "
      "World s Most Admired Companies in 2011. National Safety Award from CNA "
      "insurance companies for 11 consecutive years. Opportunities to give "
      "back by participating in philanthropy and community outreach programs. "
      "Team Leader Registered Nurse Make the most of this exciting opportunity "
      "to work with a leader in the field of healthcare. The professional we "
      "select will direct Patient Care Technicians, LVNs/LPNs, and Dialysis "
      "Assistants in the provision of safe, effective chronic dialysis therapy "
      "in compliance with facility and governmental standards. This friendly, "
      "knowledgeable communicator will interact with patients and families as "
      "well, providing educational information about end-stage renal disease "
      "(ESRD), vascular access, and dialysis therapy. PURPOSE AND SCOPE: "
      "Functions as part of the hemodialysis health care team as a Team Leader "
      "Registered Nurse to ensure provision of quality patient care on a daily "
      "basis in accordance with FMS policies, procedures, and training. "
      "Supports FMCNA s mission, vision, values, and customer service "
      "philosophy. Support FMCNA s commitment to the Quality Enhancement "
      "Program (QEP) and CQI Activities, including those related to patient "
      "satisfaction. Actively participate in process improvement activities "
      "that enhance the likelihood that patients will achieve the FMCNA "
      "Quality Enhancement Goals (QEP). Adhere to all requirements of the "
      "FMCNA Compliance Program, and FMS patient care and administrative "
      "policies. DUTIES / ACTIVITIES : CUSTOMER SERVICE: Responsible for "
      "driving the FMS culture though values and customer service standards. "
      "Accountable for outstanding customer service to all external and "
      "internal customers. Develops and maintains effective relationships "
      "through effective and timely communication. Takes initiative and action "
      "to respond, resolve and follow up regarding customer service issues "
      "with all customers in a timely manner. PRINCIPAL RESPONSIBILITIES AND "
      "DUTIES STAFF RELATED: Directs Patient Care Technician s provision of "
      "safe and effective delivery of chronic hemodialysis therapy to patients "
      "in compliance with standards outlined in the facility policy procedure "
      "manuals, as well as regulations set forth by the corporation, state, "
      "and federal agencies. Delegates tasks to all direct patient care staff "
      "including but not limited to LVN/LPNs, Patient Care Technicians, and "
      "Dialysis Assistants. Ensures adequate staffing through daily management "
      "of staff scheduling when appropriate. Assesses daily patient care needs "
      "and develops appropriate patient care assignments. Routinely monitors "
      "patient care staff for appropriate techniques and adherence to facility "
      "policy and procedures. Assists Clinical Manager with staff performance "
      "evaluations. Participates in staff training and orientation of new "
      "staff as assigned. Participates in all required staff meetings as "
      "scheduled. Functions as Team Leader. PATIENT RELATED: Education: "
      "Ensures educational needs of patients and family are met regarding End "
      "Stage Renal Disease (ESRD). Provides ongoing education to patients "
      "regarding their renal disease, vascular access and dialysis therapy, "
      "and other related health conditions. Discusses with patient, and "
      "records education related to diet/fluid and medication compliance. "
      "Provides patient specific detailed education regarding adequacy "
      "measures where applicable - Online Clearance Monitoring (OLC), Adequacy "
      "Monitoring Program (AMP), Urea Kinetic Modeling (UKM). Ensures "
      "transplant awareness, modality awareness, and drive catheter reduction. "
      "Educates patients regarding laboratory values and the relationship to "
      "adequate dialysis therapy, compliance with treatment schedule, "
      "medications, and fluid. Dialysis Treatment: Provides safe and effective "
      "delivery of care to patients with ESRD. Accurately implements treatment "
      "prescriptions including Sodium (Na) modeling prescription, and "
      "Ultrafiltration modeling (where appropriate) to ensure stable treatment "
      "therapy as indicated. Assesses patients responses to hemodialysis "
      "treatment therapy, making appropriate adjustments and modifications to "
      "the treatment plan as indicated by the prescribing physician. "
      "Communicates problems or concerns to the Clinical Manager or physician. "
      "Identifies and communicates patient related issues to the Clinical "
      "Manager or physician. Initiates Initial and Annual Nursing Assessment, "
      "and ongoing evaluation and documentation of patient care needs "
      "according to FMC Policies and Procedures. Actively participates in the "
      "pre evaluation, initiation, monitoring, termination, access "
      "homeostasis, and post evaluation of patients receiving hemodialysis "
      "treatment therapy according to established FMC procedures. Takes "
      "appropriate intervention for changes in patient adequacy status and "
      "troubleshooting access flow issues as identified by OLC/AMP yellow "
      "lights. Provides, supervises (if applicable), and monitors hemodialysis "
      "access care according to established procedures. Implements, "
      "administers, monitors, and documents patient's response to prescribed "
      "interdialytic transfusions, including appropriate notification of "
      "adverse reactions to physician and appropriate blood supplier. Ensures "
      "accurate and complete documentation by Patient Care Technician on the "
      "Hemodialysis Treatment Sheet. Laboratory-related: Reviews, transcribes, "
      "and enters physician lab orders accurately into the Medical Information "
      "System. Ensures appropriate preparation of lab requisitions for Spectra "
      "or alternate lab. Ensures correct labs tubes are utilized for "
      "prescribed lab specimens and that lab draw and processing procedures "
      "are performed appropriately for all lab samples. Identifies and ensures "
      "appropriate follow-through regarding missed labs and specimens reported "
      "to be insufficient according to company policies and procedures. "
      "Ensures all specimens are appropriately packaged according to "
      "Department of Transportation (DOT) policies and procedures relating to "
      "shipment of blood or body fluid specimens and potentially hazardous "
      "material. Ensures that all labs are directed and delivered to "
      "appropriate labs. Reports alert/panic and abnormal labs results to "
      "appropriate physician. Ensures lab results are forwarded to physicians "
      "as requested. General Duties: Enforces all company approved polices and "
      "procedures, as well as regulations set forth by state and federal "
      "agencies and departments. Maintains overall shift operation in a safe, "
      "efficient, and effective manner. Act as a resource for other staff "
      "members. Routinely meets with the Clinical Manager to discuss personnel "
      "and patient care status, issues, and information. Collaborate and "
      "communicate with physicians and other members of the healthcare team to "
      "interpret, adjust, and coordinate care provided to the patient. "
      "Provides assistance as needed to patients regarding prescription "
      "refills according to FMCNA Policies. Ensures all physician orders are "
      "transcribed and entered into the Medical Information system in a timely "
      "manner. Oversees all documentation of patient information. Maintains "
      "facility drug list for all required stock medications. Maintains "
      "competency with all emergency operational procedures, and initiates CPR "
      "and emergency measures in the event of a cardiac and/or respiratory "
      "arrest. Ensures verification and availability of adequate emergency "
      "equipment. Ensures provision of appropriate vaccinations, "
      "immunizations, and annual Tuberculosis (TB) testing. Administers "
      "medications as prescribed or in accordance with approved algorithm(s), "
      "and documents appropriate medical justification if indicated. "
      "Administers PRN medications as prescribed and completes appropriate "
      "documentation of assessment of effectiveness. Maintains appropriate "
      "recording of controlled substances as required by law. Assists with the "
      "coordination of patient transportation if necessary. "
      "MAINTENANCE/TECHNICAL: Ensures a clean, safe, and sanitary environment "
      "in the dialysis facility treatment area. Ensures competency in the "
      "operation of all dialysis-related equipment safely and effectively. "
      "Ensures all patient stations, including machines and chairs, are clean "
      "and free of blood and placed appropriately. Ensures that all blood "
      "spills are immediately addressed according to FMCNA Bloodborne Pathogen "
      "Control Policies. MEDICAL RECORDS DOCUMENTATION: General Ensures all "
      "relevant data including physician orders, lab results, vital signs and "
      "treatment parameters, and patient status are documented appropriately "
      "and entered into Medical Information System. Ensures all appropriate "
      "patient related treatment data is entered into the Medical Information "
      "System. Ensures all FMCNA policies regarding patient admission, "
      "transfer, and discharge are appropriately implemented. Ensures and "
      "verify accuracy of Patient Care Technician documentation. Daily Reviews "
      "and ensures appropriate daily completion of Hemodialysis Treatment "
      "Sheets by all patient care staff. Ensures that all appropriate "
      "procedures are followed regarding opening and closing procedures, "
      "inclusive of monitoring that all staff and patients have safely left "
      "the premises. Monthly Initiates, documents, and completes ongoing "
      "Continuous Quality Improvement (CQI) activities including monthly "
      "reports. Completes monthly nurses' progress note. Ensures patient "
      "medical records are complete with appropriate information, "
      "documentation, and identification on each page (Addressograph label is "
      "on all chart forms). Reviews transplant status and follows established "
      "procedure regarding appropriate action to be taken. Completes patient "
      "care plans for new patients within the initial 30 days or any patients "
      "deemed unstable requiring monthly patient care plans. Completes any "
      "long-term programs that are due. Annually Completes initial and annual "
      "Nursing History and Assessment physical. Ensures completion of Annual "
      "Standing Order Review with each physician as required. Other: Performs "
      "additional duties as assigned. PHYSICAL DEMANDS AND WORKING CONDITIONS: "
      "The physical demands and work environment characteristics described "
      "here are representative of those an employee encounters while "
      "performing the essential functions of this job. Reasonable "
      "accommodations may be made to enable individuals with disabilities to "
      "perform the essential functions. The position provides direct patient "
      "care that regularly involves heavy lifting and moving of patients, and "
      "assisting with ambulation. Equipment aids and/or coworkers may provide "
      "assistance. This position requires frequent, prolonged periods of "
      "standing and the employee must be able to bend over. The employee may "
      "occasionally be required to move, with assistance, machines and "
      "equipment of up to 200 lbs., and may lift chemical and water solutions "
      "of up to 30 lbs. up as high as 5 feet. The work environment is "
      "characteristic of a health care facility with air temperature control "
      "and moderate noise levels. May be exposed to infectious and contagious "
      "diseases/materials. EDUCATION: Graduate of an accredited School of "
      "Nursing (R.N.). Current appropriate state licensure. Must meet the "
      "practice requirements in the state in which he or she is employed. "
      "EXPERIENCE AND REQUIRED SKILLS: Minimum of one year medical-surgical "
      "nursing experience preferred RN Team Leaders assuming responsibility "
      "for nursing and patient services in the absence of the Clinical Manager "
      "must have one year clinical experience and six months ESRD experience "
      "Hemodialysis experience preferred. ICU experience preferred. "
      "Successfully complete a training course in the theory and practice of "
      "hemodialysis. Successfully complete CPR Certification. Employees must "
      "meet the necessary requirements of Ishihara's Color Blindness test as a "
      "condition of employment. ICD-9 coding Training. Nurses Technical "
      "Training. Team Leader Certification Training. Must meet appropriate "
      "state requirements (if any). Category Nurse";
  const char *target = "nurses";
  const double cutoff = 0.95;
  int *matches = get_matches(long_desc, target, cutoff);
  intptr_t matchAddr = (intptr_t)matches;
  if (matchAddr == ((UINTPTR_MAX) - (1))) {
    printf("Error in initial phrase-to-word regex\n");
    return (int)((UINTPTR_MAX) - (1));
  } else if (matchAddr == ((UINTPTR_MAX) - (2))) {
    printf("Ran out of memory!\n");
    return (int)((UINTPTR_MAX) - (2));
  } else if (matchAddr == ((UINTPTR_MAX) - (3))) {
    printf(
        "Too many matches! Either the phrase is too long, the cutoff is too "
        "low, or the target word "
        "is too short. Target words should have at least 4-5 letters; targets "
        "shorter than this are "
        "usually abbreviations and better suited to regex-based matchers.\n");
    return (int)((UINTPTR_MAX) - (3));
  } else if (matchAddr == ((UINTPTR_MAX) - (4))) {
    printf("A random error occurred. Make sure your phrase is a legitimate "
           "input\n");
    return (int)((UINTPTR_MAX) - (4));
  }
  int matchPos = 0;
  for (matchPos = 0; matchPos < (0x1000); matchPos++) {
    if (matches[matchPos] == -1) {
      printf("Total match count: %d\n", matchPos);
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xecb(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0x4447(%rip),%rax
mov    %rax,-0x20(%rbp)
movsd  0xeac(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
movsd  0xe97(%rip),%xmm0
call   1030 <get_matches@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
cmpq   $0xffffffffffffffff,-0x38(%rbp)
jne    119f <main+0x7f>
lea    0x440a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    127a <main+0x15a>
cmpq   $0xfffffffffffffffe,-0x38(%rbp)
jne    11c4 <main+0xa4>
lea    0x440c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xfffffffe,-0x4(%rbp)
jmp    127a <main+0x15a>
cmpq   $0xfffffffffffffffd,-0x38(%rbp)
jne    11e9 <main+0xc9>
lea    0x43fb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xfffffffd,-0x4(%rbp)
jmp    127a <main+0x15a>
cmpq   $0xfffffffffffffffc,-0x38(%rbp)
jne    120e <main+0xee>
lea    0x44ce(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xfffffffc,-0x4(%rbp)
jmp    127a <main+0x15a>
jmp    1213 <main+0xf3>
jmp    1218 <main+0xf8>
jmp    121d <main+0xfd>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x1000,-0x3c(%rbp)
jge    1273 <main+0x153>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
jne    1260 <main+0x140>
mov    -0x3c(%rbp),%esi
lea    0x44bb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1273 <main+0x153>
jmp    1265 <main+0x145>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    122b <main+0x10b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee0(%rip),%rdi
lea    0x4460(%rip),%rsi
movsd  0xeb9(%rip),%xmm0
call   1040 <get_matches@plt>
lea    0x4(%rax),%rcx
cmp    $0x3,%rcx
ja     117c <main+0x4c>
lea    0xeab(%rip),%rax
movslq (%rax,%rcx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0x4450(%rip),%rdi
call   1030 <puts@plt>
mov    $0xfffffffc,%ebx
jmp    1205 <main+0xd5>
xor    %esi,%esi
xchg   %ax,%ax
cmpl   $0xffffffff,(%rax,%rsi,4)
je     11f5 <main+0xc5>
cmpl   $0xffffffff,0x4(%rax,%rsi,4)
je     11e5 <main+0xb5>
cmpl   $0xffffffff,0x8(%rax,%rsi,4)
je     11eb <main+0xbb>
cmpl   $0xffffffff,0xc(%rax,%rsi,4)
je     11f1 <main+0xc1>
add    $0x4,%rsi
cmp    $0x1000,%rsi
jne    1180 <main+0x50>
xor    %ebx,%ebx
jmp    1205 <main+0xd5>
lea    0x444f(%rip),%rdi
call   1030 <puts@plt>
mov    $0xfffffffd,%ebx
jmp    1205 <main+0xd5>
lea    0x4533(%rip),%rdi
call   1030 <puts@plt>
mov    $0xfffffffe,%ebx
jmp    1205 <main+0xd5>
lea    0x4533(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%ebx
jmp    1205 <main+0xd5>
add    $0x1,%rsi
jmp    11f5 <main+0xc5>
add    $0x2,%rsi
jmp    11f5 <main+0xc5>
add    $0x3,%rsi
lea    0x43aa(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13703 x i8] c"Description Inspire and inform each patient. Allow others to achieve their most important objectives while you achieve yours. Improve their prospects and the vitality of your career. Connect with your goals and change lives with Fresenius Medical Care North America. Create strong, vital connections with your knowledge and kind reassurance. Enhance lives and your potential for success with the global leader in dialysis healthcare: Fresenius Medical Care North America. By forming powerful bonds among patients, their families, and our team members, we have built an atmosphere of clinical excellence and trust. Offering vast resources, we advance careers and the healthcare of countless individuals. Why Join the Fresenius Team? Passion. Dedication. Knowledge. Motivation. Experience. These are the impressive qualities you ll find in the Fresenius Leadership Team. Our strength in the North American market and extensive global network provide our employees with the best of both worlds the friendliness of a local organization and the stability of a worldwide organization for diverse experiences and challenging career opportunities. When you join the Fresenius Medical Care team, you ll be welcomed into a company that is built on the philosophy that our employees are our most important asset. Our career advantages include the following: Fresenius Medical Care is the nation s largest provider of renal care, meeting the needs of more than 135,000 patients at 1,800 clinics throughout the country. Our well-established, trusted organization fosters a spirit of camaraderie, emphasizing friendly collaboration, professional support, and career development. Superior training, UltraCare quality control, and certification procedures ensure your potential to succeed and advance as a professional. Competitive compensation and exceptional benefits. Outstanding tuition reimbursement program. Recognized among Fortune s World s Most Admired Companies in 2011. National Safety Award from CNA insurance companies for 11 consecutive years. Opportunities to give back by participating in philanthropy and community outreach programs. Team Leader Registered Nurse Make the most of this exciting opportunity to work with a leader in the field of healthcare. The professional we select will direct Patient Care Technicians, LVNs/LPNs, and Dialysis Assistants in the provision of safe, effective chronic dialysis therapy in compliance with facility and governmental standards. This friendly, knowledgeable communicator will interact with patients and families as well, providing educational information about end-stage renal disease (ESRD), vascular access, and dialysis therapy. PURPOSE AND SCOPE: Functions as part of the hemodialysis health care team as a Team Leader Registered Nurse to ensure provision of quality patient care on a daily basis in accordance with FMS policies, procedures, and training. Supports FMCNA s mission, vision, values, and customer service philosophy. Support FMCNA s commitment to the Quality Enhancement Program (QEP) and CQI Activities, including those related to patient satisfaction. Actively participate in process improvement activities that enhance the likelihood that patients will achieve the FMCNA Quality Enhancement Goals (QEP). Adhere to all requirements of the FMCNA Compliance Program, and FMS patient care and administrative policies. DUTIES / ACTIVITIES : CUSTOMER SERVICE: Responsible for driving the FMS culture though values and customer service standards. Accountable for outstanding customer service to all external and internal customers. Develops and maintains effective relationships through effective and timely communication. Takes initiative and action to respond, resolve and follow up regarding customer service issues with all customers in a timely manner. PRINCIPAL RESPONSIBILITIES AND DUTIES STAFF RELATED: Directs Patient Care Technician s provision of safe and effective delivery of chronic hemodialysis therapy to patients in compliance with standards outlined in the facility policy procedure manuals, as well as regulations set forth by the corporation, state, and federal agencies. Delegates tasks to all direct patient care staff including but not limited to LVN/LPNs, Patient Care Technicians, and Dialysis Assistants. Ensures adequate staffing through daily management of staff scheduling when appropriate. Assesses daily patient care needs and develops appropriate patient care assignments. Routinely monitors patient care staff for appropriate techniques and adherence to facility policy and procedures. Assists Clinical Manager with staff performance evaluations. Participates in staff training and orientation of new staff as assigned. Participates in all required staff meetings as scheduled. Functions as Team Leader. PATIENT RELATED: Education: Ensures educational needs of patients and family are met regarding End Stage Renal Disease (ESRD). Provides ongoing education to patients regarding their renal disease, vascular access and dialysis therapy, and other related health conditions. Discusses with patient, and records education related to diet/fluid and medication compliance. Provides patient specific detailed education regarding adequacy measures where applicable - Online Clearance Monitoring (OLC), Adequacy Monitoring Program (AMP), Urea Kinetic Modeling (UKM). Ensures transplant awareness, modality awareness, and drive catheter reduction. Educates patients regarding laboratory values and the relationship to adequate dialysis therapy, compliance with treatment schedule, medications, and fluid. Dialysis Treatment: Provides safe and effective delivery of care to patients with ESRD. Accurately implements treatment prescriptions including Sodium (Na) modeling prescription, and Ultrafiltration modeling (where appropriate) to ensure stable treatment therapy as indicated. Assesses patients responses to hemodialysis treatment therapy, making appropriate adjustments and modifications to the treatment plan as indicated by the prescribing physician. Communicates problems or concerns to the Clinical Manager or physician. Identifies and communicates patient related issues to the Clinical Manager or physician. Initiates Initial and Annual Nursing Assessment, and ongoing evaluation and documentation of patient care needs according to FMC Policies and Procedures. Actively participates in the pre evaluation, initiation, monitoring, termination, access homeostasis, and post evaluation of patients receiving hemodialysis treatment therapy according to established FMC procedures. Takes appropriate intervention for changes in patient adequacy status and troubleshooting access flow issues as identified by OLC/AMP yellow lights. Provides, supervises (if applicable), and monitors hemodialysis access care according to established procedures. Implements, administers, monitors, and documents patient's response to prescribed interdialytic transfusions, including appropriate notification of adverse reactions to physician and appropriate blood supplier. Ensures accurate and complete documentation by Patient Care Technician on the Hemodialysis Treatment Sheet. Laboratory-related: Reviews, transcribes, and enters physician lab orders accurately into the Medical Information System. Ensures appropriate preparation of lab requisitions for Spectra or alternate lab. Ensures correct labs tubes are utilized for prescribed lab specimens and that lab draw and processing procedures are performed appropriately for all lab samples. Identifies and ensures appropriate follow-through regarding missed labs and specimens reported to be insufficient according to company policies and procedures. Ensures all specimens are appropriately packaged according to Department of Transportation (DOT) policies and procedures relating to shipment of blood or body fluid specimens and potentially hazardous material. Ensures that all labs are directed and delivered to appropriate labs. Reports alert/panic and abnormal labs results to appropriate physician. Ensures lab results are forwarded to physicians as requested. General Duties: Enforces all company approved polices and procedures, as well as regulations set forth by state and federal agencies and departments. Maintains overall shift operation in a safe, efficient, and effective manner. Act as a resource for other staff members. Routinely meets with the Clinical Manager to discuss personnel and patient care status, issues, and information. Collaborate and communicate with physicians and other members of the healthcare team to interpret, adjust, and coordinate care provided to the patient. Provides assistance as needed to patients regarding prescription refills according to FMCNA Policies. Ensures all physician orders are transcribed and entered into the Medical Information system in a timely manner. Oversees all documentation of patient information. Maintains facility drug list for all required stock medications. Maintains competency with all emergency operational procedures, and initiates CPR and emergency measures in the event of a cardiac and/or respiratory arrest. Ensures verification and availability of adequate emergency equipment. Ensures provision of appropriate vaccinations, immunizations, and annual Tuberculosis (TB) testing. Administers medications as prescribed or in accordance with approved algorithm(s), and documents appropriate medical justification if indicated. Administers PRN medications as prescribed and completes appropriate documentation of assessment of effectiveness. Maintains appropriate recording of controlled substances as required by law. Assists with the coordination of patient transportation if necessary. MAINTENANCE/TECHNICAL: Ensures a clean, safe, and sanitary environment in the dialysis facility treatment area. Ensures competency in the operation of all dialysis-related equipment safely and effectively. Ensures all patient stations, including machines and chairs, are clean and free of blood and placed appropriately. Ensures that all blood spills are immediately addressed according to FMCNA Bloodborne Pathogen Control Policies. MEDICAL RECORDS DOCUMENTATION: General Ensures all relevant data including physician orders, lab results, vital signs and treatment parameters, and patient status are documented appropriately and entered into Medical Information System. Ensures all appropriate patient related treatment data is entered into the Medical Information System. Ensures all FMCNA policies regarding patient admission, transfer, and discharge are appropriately implemented. Ensures and verify accuracy of Patient Care Technician documentation. Daily Reviews and ensures appropriate daily completion of Hemodialysis Treatment Sheets by all patient care staff. Ensures that all appropriate procedures are followed regarding opening and closing procedures, inclusive of monitoring that all staff and patients have safely left the premises. Monthly Initiates, documents, and completes ongoing Continuous Quality Improvement (CQI) activities including monthly reports. Completes monthly nurses' progress note. Ensures patient medical records are complete with appropriate information, documentation, and identification on each page (Addressograph label is on all chart forms). Reviews transplant status and follows established procedure regarding appropriate action to be taken. Completes patient care plans for new patients within the initial 30 days or any patients deemed unstable requiring monthly patient care plans. Completes any long-term programs that are due. Annually Completes initial and annual Nursing History and Assessment physical. Ensures completion of Annual Standing Order Review with each physician as required. Other: Performs additional duties as assigned. PHYSICAL DEMANDS AND WORKING CONDITIONS: The physical demands and work environment characteristics described here are representative of those an employee encounters while performing the essential functions of this job. Reasonable accommodations may be made to enable individuals with disabilities to perform the essential functions. The position provides direct patient care that regularly involves heavy lifting and moving of patients, and assisting with ambulation. Equipment aids and/or coworkers may provide assistance. This position requires frequent, prolonged periods of standing and the employee must be able to bend over. The employee may occasionally be required to move, with assistance, machines and equipment of up to 200 lbs., and may lift chemical and water solutions of up to 30 lbs. up as high as 5 feet. The work environment is characteristic of a health care facility with air temperature control and moderate noise levels. May be exposed to infectious and contagious diseases/materials. EDUCATION: Graduate of an accredited School of Nursing (R.N.). Current appropriate state licensure. Must meet the practice requirements in the state in which he or she is employed. EXPERIENCE AND REQUIRED SKILLS: Minimum of one year medical-surgical nursing experience preferred RN Team Leaders assuming responsibility for nursing and patient services in the absence of the Clinical Manager must have one year clinical experience and six months ESRD experience Hemodialysis experience preferred. ICU experience preferred. Successfully complete a training course in the theory and practice of hemodialysis. Successfully complete CPR Certification. Employees must meet the necessary requirements of Ishihara's Color Blindness test as a condition of employment. ICD-9 coding Training. Nurses Technical Training. Team Leader Certification Training. Must meet appropriate state requirements (if any). Category Nurse\00"
@.str.1 = [7 x i8] c"nurses\00"
@.str.2 = [39 x i8] c"Error in initial phrase-to-word regex\0A\00"
@.str.3 = [20 x i8] c"Ran out of memory!\0A\00"
@.str.4 = [248 x i8] c"Too many matches! Either the phrase is too long, the cutoff is too low, or the target word is too short. Target words should have at least 4-5 letters; targets shorter than this are usually abbreviations and better suited to regex-based matchers.\0A\00"
@.str.5 = [70 x i8] c"A random error occurred. Make sure your phrase is a legitimate input\0A\00"
@.str.6 = [23 x i8] c"Total match count: %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca double
%9 = alloca i32*
%10 = alloca i64
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([13703 x i8], [13703 x i8]* @.str, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %7
store double 0x3FEE666666666666, double* %8
%12 = load i8*, i8** %6
%13 = load i8*, i8** %7
%14 = call i32* @get_matches(i8* %12, i8* %13, double 0x3FEE666666666666)
store i32* %14, i32** %9
%15 = load i32*, i32** %9
%16 = ptrtoint i32* %15 to i64
store i64 %16, i64* %10
%17 = load i64, i64* %10
%18 = icmp eq i64 %17, -1
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %3
br label %58
21: ; preds = %2
%22 = load i64, i64* %10
%23 = icmp eq i64 %22, -2
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
store i32 -2, i32* %3
br label %58
26: ; preds = %21
%27 = load i64, i64* %10
%28 = icmp eq i64 %27, -3
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([248 x i8], [248 x i8]* @.str.4, i64 0, i64 0))
store i32 -3, i32* %3
br label %58
31: ; preds = %26
%32 = load i64, i64* %10
%33 = icmp eq i64 %32, -4
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
store i32 -4, i32* %3
br label %58
36: ; preds = %31
br label %37
37: ; preds = %36
br label %38
38: ; preds = %37
br label %39
39: ; preds = %38
store i32 0, i32* %11
store i32 0, i32* %11
br label %40
40: ; preds = %54, %39
%41 = load i32, i32* %11
%42 = icmp slt i32 %41, 4096
br i1 %42, label %43, label %57
43: ; preds = %40
%44 = load i32*, i32** %9
%45 = load i32, i32* %11
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, i32* %44, i64 %46
%48 = load i32, i32* %47
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %53
50: ; preds = %43
%51 = load i32, i32* %11
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %51)
br label %57
53: ; preds = %43
br label %54
54: ; preds = %53
%55 = load i32, i32* %11
%56 = add nsw i32 %55, 1
store i32 %56, i32* %11
br label %40
57: ; preds = %50, %40
store i32 0, i32* %3
br label %58
58: ; preds = %57, %34, %29, %24, %19
%59 = load i32, i32* %3
ret i32 %59
}

LLVM IR (-O2):
@.str = [13703 x i8] c"Description Inspire and inform each patient. Allow others to achieve their most important objectives while you achieve yours. Improve their prospects and the vitality of your career. Connect with your goals and change lives with Fresenius Medical Care North America. Create strong, vital connections with your knowledge and kind reassurance. Enhance lives and your potential for success with the global leader in dialysis healthcare: Fresenius Medical Care North America. By forming powerful bonds among patients, their families, and our team members, we have built an atmosphere of clinical excellence and trust. Offering vast resources, we advance careers and the healthcare of countless individuals. Why Join the Fresenius Team? Passion. Dedication. Knowledge. Motivation. Experience. These are the impressive qualities you ll find in the Fresenius Leadership Team. Our strength in the North American market and extensive global network provide our employees with the best of both worlds the friendliness of a local organization and the stability of a worldwide organization for diverse experiences and challenging career opportunities. When you join the Fresenius Medical Care team, you ll be welcomed into a company that is built on the philosophy that our employees are our most important asset. Our career advantages include the following: Fresenius Medical Care is the nation s largest provider of renal care, meeting the needs of more than 135,000 patients at 1,800 clinics throughout the country. Our well-established, trusted organization fosters a spirit of camaraderie, emphasizing friendly collaboration, professional support, and career development. Superior training, UltraCare quality control, and certification procedures ensure your potential to succeed and advance as a professional. Competitive compensation and exceptional benefits. Outstanding tuition reimbursement program. Recognized among Fortune s World s Most Admired Companies in 2011. National Safety Award from CNA insurance companies for 11 consecutive years. Opportunities to give back by participating in philanthropy and community outreach programs. Team Leader Registered Nurse Make the most of this exciting opportunity to work with a leader in the field of healthcare. The professional we select will direct Patient Care Technicians, LVNs/LPNs, and Dialysis Assistants in the provision of safe, effective chronic dialysis therapy in compliance with facility and governmental standards. This friendly, knowledgeable communicator will interact with patients and families as well, providing educational information about end-stage renal disease (ESRD), vascular access, and dialysis therapy. PURPOSE AND SCOPE: Functions as part of the hemodialysis health care team as a Team Leader Registered Nurse to ensure provision of quality patient care on a daily basis in accordance with FMS policies, procedures, and training. Supports FMCNA s mission, vision, values, and customer service philosophy. Support FMCNA s commitment to the Quality Enhancement Program (QEP) and CQI Activities, including those related to patient satisfaction. Actively participate in process improvement activities that enhance the likelihood that patients will achieve the FMCNA Quality Enhancement Goals (QEP). Adhere to all requirements of the FMCNA Compliance Program, and FMS patient care and administrative policies. DUTIES / ACTIVITIES : CUSTOMER SERVICE: Responsible for driving the FMS culture though values and customer service standards. Accountable for outstanding customer service to all external and internal customers. Develops and maintains effective relationships through effective and timely communication. Takes initiative and action to respond, resolve and follow up regarding customer service issues with all customers in a timely manner. PRINCIPAL RESPONSIBILITIES AND DUTIES STAFF RELATED: Directs Patient Care Technician s provision of safe and effective delivery of chronic hemodialysis therapy to patients in compliance with standards outlined in the facility policy procedure manuals, as well as regulations set forth by the corporation, state, and federal agencies. Delegates tasks to all direct patient care staff including but not limited to LVN/LPNs, Patient Care Technicians, and Dialysis Assistants. Ensures adequate staffing through daily management of staff scheduling when appropriate. Assesses daily patient care needs and develops appropriate patient care assignments. Routinely monitors patient care staff for appropriate techniques and adherence to facility policy and procedures. Assists Clinical Manager with staff performance evaluations. Participates in staff training and orientation of new staff as assigned. Participates in all required staff meetings as scheduled. Functions as Team Leader. PATIENT RELATED: Education: Ensures educational needs of patients and family are met regarding End Stage Renal Disease (ESRD). Provides ongoing education to patients regarding their renal disease, vascular access and dialysis therapy, and other related health conditions. Discusses with patient, and records education related to diet/fluid and medication compliance. Provides patient specific detailed education regarding adequacy measures where applicable - Online Clearance Monitoring (OLC), Adequacy Monitoring Program (AMP), Urea Kinetic Modeling (UKM). Ensures transplant awareness, modality awareness, and drive catheter reduction. Educates patients regarding laboratory values and the relationship to adequate dialysis therapy, compliance with treatment schedule, medications, and fluid. Dialysis Treatment: Provides safe and effective delivery of care to patients with ESRD. Accurately implements treatment prescriptions including Sodium (Na) modeling prescription, and Ultrafiltration modeling (where appropriate) to ensure stable treatment therapy as indicated. Assesses patients responses to hemodialysis treatment therapy, making appropriate adjustments and modifications to the treatment plan as indicated by the prescribing physician. Communicates problems or concerns to the Clinical Manager or physician. Identifies and communicates patient related issues to the Clinical Manager or physician. Initiates Initial and Annual Nursing Assessment, and ongoing evaluation and documentation of patient care needs according to FMC Policies and Procedures. Actively participates in the pre evaluation, initiation, monitoring, termination, access homeostasis, and post evaluation of patients receiving hemodialysis treatment therapy according to established FMC procedures. Takes appropriate intervention for changes in patient adequacy status and troubleshooting access flow issues as identified by OLC/AMP yellow lights. Provides, supervises (if applicable), and monitors hemodialysis access care according to established procedures. Implements, administers, monitors, and documents patient's response to prescribed interdialytic transfusions, including appropriate notification of adverse reactions to physician and appropriate blood supplier. Ensures accurate and complete documentation by Patient Care Technician on the Hemodialysis Treatment Sheet. Laboratory-related: Reviews, transcribes, and enters physician lab orders accurately into the Medical Information System. Ensures appropriate preparation of lab requisitions for Spectra or alternate lab. Ensures correct labs tubes are utilized for prescribed lab specimens and that lab draw and processing procedures are performed appropriately for all lab samples. Identifies and ensures appropriate follow-through regarding missed labs and specimens reported to be insufficient according to company policies and procedures. Ensures all specimens are appropriately packaged according to Department of Transportation (DOT) policies and procedures relating to shipment of blood or body fluid specimens and potentially hazardous material. Ensures that all labs are directed and delivered to appropriate labs. Reports alert/panic and abnormal labs results to appropriate physician. Ensures lab results are forwarded to physicians as requested. General Duties: Enforces all company approved polices and procedures, as well as regulations set forth by state and federal agencies and departments. Maintains overall shift operation in a safe, efficient, and effective manner. Act as a resource for other staff members. Routinely meets with the Clinical Manager to discuss personnel and patient care status, issues, and information. Collaborate and communicate with physicians and other members of the healthcare team to interpret, adjust, and coordinate care provided to the patient. Provides assistance as needed to patients regarding prescription refills according to FMCNA Policies. Ensures all physician orders are transcribed and entered into the Medical Information system in a timely manner. Oversees all documentation of patient information. Maintains facility drug list for all required stock medications. Maintains competency with all emergency operational procedures, and initiates CPR and emergency measures in the event of a cardiac and/or respiratory arrest. Ensures verification and availability of adequate emergency equipment. Ensures provision of appropriate vaccinations, immunizations, and annual Tuberculosis (TB) testing. Administers medications as prescribed or in accordance with approved algorithm(s), and documents appropriate medical justification if indicated. Administers PRN medications as prescribed and completes appropriate documentation of assessment of effectiveness. Maintains appropriate recording of controlled substances as required by law. Assists with the coordination of patient transportation if necessary. MAINTENANCE/TECHNICAL: Ensures a clean, safe, and sanitary environment in the dialysis facility treatment area. Ensures competency in the operation of all dialysis-related equipment safely and effectively. Ensures all patient stations, including machines and chairs, are clean and free of blood and placed appropriately. Ensures that all blood spills are immediately addressed according to FMCNA Bloodborne Pathogen Control Policies. MEDICAL RECORDS DOCUMENTATION: General Ensures all relevant data including physician orders, lab results, vital signs and treatment parameters, and patient status are documented appropriately and entered into Medical Information System. Ensures all appropriate patient related treatment data is entered into the Medical Information System. Ensures all FMCNA policies regarding patient admission, transfer, and discharge are appropriately implemented. Ensures and verify accuracy of Patient Care Technician documentation. Daily Reviews and ensures appropriate daily completion of Hemodialysis Treatment Sheets by all patient care staff. Ensures that all appropriate procedures are followed regarding opening and closing procedures, inclusive of monitoring that all staff and patients have safely left the premises. Monthly Initiates, documents, and completes ongoing Continuous Quality Improvement (CQI) activities including monthly reports. Completes monthly nurses' progress note. Ensures patient medical records are complete with appropriate information, documentation, and identification on each page (Addressograph label is on all chart forms). Reviews transplant status and follows established procedure regarding appropriate action to be taken. Completes patient care plans for new patients within the initial 30 days or any patients deemed unstable requiring monthly patient care plans. Completes any long-term programs that are due. Annually Completes initial and annual Nursing History and Assessment physical. Ensures completion of Annual Standing Order Review with each physician as required. Other: Performs additional duties as assigned. PHYSICAL DEMANDS AND WORKING CONDITIONS: The physical demands and work environment characteristics described here are representative of those an employee encounters while performing the essential functions of this job. Reasonable accommodations may be made to enable individuals with disabilities to perform the essential functions. The position provides direct patient care that regularly involves heavy lifting and moving of patients, and assisting with ambulation. Equipment aids and/or coworkers may provide assistance. This position requires frequent, prolonged periods of standing and the employee must be able to bend over. The employee may occasionally be required to move, with assistance, machines and equipment of up to 200 lbs., and may lift chemical and water solutions of up to 30 lbs. up as high as 5 feet. The work environment is characteristic of a health care facility with air temperature control and moderate noise levels. May be exposed to infectious and contagious diseases/materials. EDUCATION: Graduate of an accredited School of Nursing (R.N.). Current appropriate state licensure. Must meet the practice requirements in the state in which he or she is employed. EXPERIENCE AND REQUIRED SKILLS: Minimum of one year medical-surgical nursing experience preferred RN Team Leaders assuming responsibility for nursing and patient services in the absence of the Clinical Manager must have one year clinical experience and six months ESRD experience Hemodialysis experience preferred. ICU experience preferred. Successfully complete a training course in the theory and practice of hemodialysis. Successfully complete CPR Certification. Employees must meet the necessary requirements of Ishihara's Color Blindness test as a condition of employment. ICD-9 coding Training. Nurses Technical Training. Team Leader Certification Training. Must meet appropriate state requirements (if any). Category Nurse\00"
@.str.1 = [7 x i8] c"nurses\00"
@.str.6 = [23 x i8] c"Total match count: %d\0A\00"
@str = [69 x i8] c"A random error occurred. Make sure your phrase is a legitimate input\00"
@str.7 = [247 x i8] c"Too many matches! Either the phrase is too long, the cutoff is too low, or the target word is too short. Target words should have at least 4-5 letters; targets shorter than this are usually abbreviations and better suited to regex-based matchers.\00"
@str.8 = [19 x i8] c"Ran out of memory!\00"
@str.9 = [38 x i8] c"Error in initial phrase-to-word regex\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32* @get_matches(i8* getelementptr inbounds ([13703 x i8], [13703 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double 0x3FEE666666666666)
%4 = ptrtoint i32* %3 to i64
switch i64 %4, label %13 [
i64 -1, label %5
i64 -2, label %7
i64 -3, label %9
i64 -4, label %11
]
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.9, i64 0, i64 0))
br label %40
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.8, i64 0, i64 0))
br label %40
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([247 x i8], [247 x i8]* @str.7, i64 0, i64 0))
br label %40
11: ; preds = %2
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
br label %40
13: ; preds = %2, %37
%14 = phi i64 [ %38, %37 ], [ 0, %2 ]
%15 = getelementptr inbounds i32, i32* %3, i64 %14
%16 = load i32, i32* %15
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %22
18: ; preds = %32, %27, %22, %13
%19 = phi i64 [ %14, %13 ], [ %23, %22 ], [ %28, %27 ], [ %33, %32 ]
%20 = trunc i64 %19 to i32
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %20)
br label %40
22: ; preds = %13
%23 = or i64 %14, 1
%24 = getelementptr inbounds i32, i32* %3, i64 %23
%25 = load i32, i32* %24
%26 = icmp eq i32 %25, -1
br i1 %26, label %18, label %27
27: ; preds = %22
%28 = or i64 %14, 2
%29 = getelementptr inbounds i32, i32* %3, i64 %28
%30 = load i32, i32* %29
%31 = icmp eq i32 %30, -1
br i1 %31, label %18, label %32
32: ; preds = %27
%33 = or i64 %14, 3
%34 = getelementptr inbounds i32, i32* %3, i64 %33
%35 = load i32, i32* %34
%36 = icmp eq i32 %35, -1
br i1 %36, label %18, label %37
37: ; preds = %32
%38 = add nuw nsw i64 %14, 4
%39 = icmp eq i64 %38, 4096
br i1 %39, label %40, label %13
40: ; preds = %37, %18, %11, %9, %7, %5
%41 = phi i32 [ -1, %5 ], [ -2, %7 ], [ -3, %9 ], [ -4, %11 ], [ 0, %18 ], [ 0, %37 ]
ret i32 %41
}