lethigh_ceiling_r=their_resources.iter().filter(|&r|prio_map.get(r).unwrap_or(&0)>=&task.prio);// Retrives all resources with a ceiling higher then the task prio
println!("Checking against {:?}",other_task.id);
//println!("Checking against {:?}",other_task.id);
//println!("{:?}",&high_ceiling_r);
forresourceinhigh_ceiling_r{
println!("Conflict {:?}",resource);
//println!("Conflict {:?}", resource);
// Fetch the longest critical section in the task that uses this resource
letc_length=find_longest_critical(&other_task.trace,&resource).expect("Check on your hashmap function, it bronk");// Lets just unwrap couse this shouldn't happen att this stage TODO: Make a test to check that the pre_analysis function functions correctly